- improved USB disk parameter check
[bochs-mirror.git] / configure
blob450924e21389a7bf977a69e0d4d09b7e8a5c2963
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.370 2008/06/12 21:02:54 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 BX_EXTERNAL_DEBUGGER
873 DISASM_VAR
874 READLINE_LIB
875 INSTRUMENT_DIR
876 INSTRUMENT_VAR
877 FPU_VAR
878 CDROM_OBJS
879 SB16_OBJS
880 SOUNDLOW_OBJS
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-external-debugger enable external debugger support (win32 only)
1583 --enable-disasm compile in support for disassembler
1584 --enable-all-optimizations compile in all possible optimizations
1585 --enable-readline use readline library, if available
1586 --enable-instrumentation compile in support for instrumentation
1587 --enable-logging enable logging
1588 --enable-assert-checks enable BX_ASSERT checks
1589 --enable-raw-serial use raw serial port access
1590 --enable-vbe use VESA BIOS extensions
1591 --enable-clgd54xx enable CLGD54XX emulation
1592 --enable-fpu compile in FPU emulation
1593 --enable-vme virtual 8086 mode extensions
1594 --enable-mmx MMX support
1595 --enable-3dnow 3DNow! support (incomplete)
1596 --enable-sse SSE support (--enable-sse=no|1|2|3|4)
1597 --enable-sse-extension support for SSE extensions
1598 --enable-daz denormals-are-zeroes support
1599 --enable-xsave support for XSAVE/XRSTOR extensions
1600 --enable-aes support for AES instructions
1601 --enable-alignment-check alignment check (#AC) support
1602 --enable-misaligned-sse misaligned SSE support
1603 --enable-sep SYSENTER/SYSEXIT support
1604 --enable-popcnt support for POPCNT 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-magic-breakpoints enables magic breakpoints (deprecated)
1615 --enable-save-restore enables save/restore (deprecated)
1617 Optional Packages:
1618 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1619 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1620 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1621 --with-pic try to use only PIC/non-PIC objects [default=use
1622 both]
1623 --with-tags[=TAGS] include additional configurations [automatic]
1624 --with-x use the X Window System
1625 --with-x11 use X11 GUI
1626 --with-beos use BeOS GUI
1627 --with-win32 use Win32 GUI
1628 --with-macos use Macintosh/CodeWarrior environment
1629 --with-carbon compile for MacOS X with Carbon GUI
1630 --with-nogui no native GUI, just use blank stubs
1631 --with-term textmode terminal environment
1632 --with-rfb use RFB protocol, works with VNC viewer
1633 --with-amigaos use AmigaOS (or MorphOS) GUI
1634 --with-sdl use SDL libraries
1635 --with-svga use SVGALib libraries
1636 --with-wx use wxWidgets libraries
1637 --with-all-libs compile all guis that Bochs supports
1639 Some influential environment variables:
1640 CC C compiler command
1641 CFLAGS C compiler flags
1642 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1643 nonstandard directory <lib dir>
1644 LIBS libraries to pass to the linker, e.g. -l<library>
1645 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1646 you have headers in a nonstandard directory <include dir>
1647 CXX C++ compiler command
1648 CXXFLAGS C++ compiler flags
1649 CPP C preprocessor
1650 CXXCPP C++ preprocessor
1651 F77 Fortran 77 compiler command
1652 FFLAGS Fortran 77 compiler flags
1653 XMKMF Path to xmkmf, Makefile generator for X Window System
1654 PKG_CONFIG path to pkg-config utility
1655 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1656 GTK_LIBS linker flags for GTK, overriding pkg-config
1658 Use these variables to override the choices made by `configure' or to help
1659 it to find libraries and programs with nonstandard names/locations.
1661 _ACEOF
1662 ac_status=$?
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" || continue
1669 ac_builddir=.
1671 case "$ac_dir" in
1672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1675 # A ".." for each directory in $ac_dir_suffix.
1676 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1677 case $ac_top_builddir_sub in
1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 esac ;;
1681 esac
1682 ac_abs_top_builddir=$ac_pwd
1683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684 # for backward compatibility:
1685 ac_top_builddir=$ac_top_build_prefix
1687 case $srcdir in
1688 .) # We are building in place.
1689 ac_srcdir=.
1690 ac_top_srcdir=$ac_top_builddir_sub
1691 ac_abs_top_srcdir=$ac_pwd ;;
1692 [\\/]* | ?:[\\/]* ) # Absolute name.
1693 ac_srcdir=$srcdir$ac_dir_suffix;
1694 ac_top_srcdir=$srcdir
1695 ac_abs_top_srcdir=$srcdir ;;
1696 *) # Relative name.
1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698 ac_top_srcdir=$ac_top_build_prefix$srcdir
1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700 esac
1701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1703 cd "$ac_dir" || { ac_status=$?; continue; }
1704 # Check for guested configure.
1705 if test -f "$ac_srcdir/configure.gnu"; then
1706 echo &&
1707 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1708 elif test -f "$ac_srcdir/configure"; then
1709 echo &&
1710 $SHELL "$ac_srcdir/configure" --help=recursive
1711 else
1712 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713 fi || ac_status=$?
1714 cd "$ac_pwd" || { ac_status=$?; break; }
1715 done
1718 test -n "$ac_init_help" && exit $ac_status
1719 if $ac_init_version; then
1720 cat <<\_ACEOF
1721 configure
1722 generated by GNU Autoconf 2.61
1724 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1725 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1726 This configure script is free software; the Free Software Foundation
1727 gives unlimited permission to copy, distribute and modify it.
1728 _ACEOF
1729 exit
1731 cat >config.log <<_ACEOF
1732 This file contains any messages produced by compilers while
1733 running configure, to aid debugging if configure makes a mistake.
1735 It was created by $as_me, which was
1736 generated by GNU Autoconf 2.61. Invocation command line was
1738 $ $0 $@
1740 _ACEOF
1741 exec 5>>config.log
1743 cat <<_ASUNAME
1744 ## --------- ##
1745 ## Platform. ##
1746 ## --------- ##
1748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1765 _ASUNAME
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1770 IFS=$as_save_IFS
1771 test -z "$as_dir" && as_dir=.
1772 echo "PATH: $as_dir"
1773 done
1774 IFS=$as_save_IFS
1776 } >&5
1778 cat >&5 <<_ACEOF
1781 ## ----------- ##
1782 ## Core tests. ##
1783 ## ----------- ##
1785 _ACEOF
1788 # Keep a trace of the command line.
1789 # Strip out --no-create and --no-recursion so they do not pile up.
1790 # Strip out --silent because we don't want to record it for future runs.
1791 # Also quote any args containing shell meta-characters.
1792 # Make two passes to allow for proper duplicate-argument suppression.
1793 ac_configure_args=
1794 ac_configure_args0=
1795 ac_configure_args1=
1796 ac_must_keep_next=false
1797 for ac_pass in 1 2
1799 for ac_arg
1801 case $ac_arg in
1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804 | -silent | --silent | --silen | --sile | --sil)
1805 continue ;;
1806 *\'*)
1807 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 esac
1809 case $ac_pass in
1810 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1812 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1813 if test $ac_must_keep_next = true; then
1814 ac_must_keep_next=false # Got value, back to normal.
1815 else
1816 case $ac_arg in
1817 *=* | --config-cache | -C | -disable-* | --disable-* \
1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820 | -with-* | --with-* | -without-* | --without-* | --x)
1821 case "$ac_configure_args0 " in
1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823 esac
1825 -* ) ac_must_keep_next=true ;;
1826 esac
1828 ac_configure_args="$ac_configure_args '$ac_arg'"
1830 esac
1831 done
1832 done
1833 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1834 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1836 # When interrupted or exit'd, cleanup temporary files, and complete
1837 # config.log. We remove comments because anyway the quotes in there
1838 # would cause problems or look ugly.
1839 # WARNING: Use '\'' to represent an apostrophe within the trap.
1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841 trap 'exit_status=$?
1842 # Save into config.log some information that might help in debugging.
1844 echo
1846 cat <<\_ASBOX
1847 ## ---------------- ##
1848 ## Cache variables. ##
1849 ## ---------------- ##
1850 _ASBOX
1851 echo
1852 # The following way of writing the cache mishandles newlines in values,
1854 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1855 eval ac_val=\$$ac_var
1856 case $ac_val in #(
1857 *${as_nl}*)
1858 case $ac_var in #(
1859 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1860 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1861 esac
1862 case $ac_var in #(
1863 _ | IFS | as_nl) ;; #(
1864 *) $as_unset $ac_var ;;
1865 esac ;;
1866 esac
1867 done
1868 (set) 2>&1 |
1869 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1870 *${as_nl}ac_space=\ *)
1871 sed -n \
1872 "s/'\''/'\''\\\\'\'''\''/g;
1873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1874 ;; #(
1876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1878 esac |
1879 sort
1881 echo
1883 cat <<\_ASBOX
1884 ## ----------------- ##
1885 ## Output variables. ##
1886 ## ----------------- ##
1887 _ASBOX
1888 echo
1889 for ac_var in $ac_subst_vars
1891 eval ac_val=\$$ac_var
1892 case $ac_val in
1893 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 esac
1895 echo "$ac_var='\''$ac_val'\''"
1896 done | sort
1897 echo
1899 if test -n "$ac_subst_files"; then
1900 cat <<\_ASBOX
1901 ## ------------------- ##
1902 ## File substitutions. ##
1903 ## ------------------- ##
1904 _ASBOX
1905 echo
1906 for ac_var in $ac_subst_files
1908 eval ac_val=\$$ac_var
1909 case $ac_val in
1910 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911 esac
1912 echo "$ac_var='\''$ac_val'\''"
1913 done | sort
1914 echo
1917 if test -s confdefs.h; then
1918 cat <<\_ASBOX
1919 ## ----------- ##
1920 ## confdefs.h. ##
1921 ## ----------- ##
1922 _ASBOX
1923 echo
1924 cat confdefs.h
1925 echo
1927 test "$ac_signal" != 0 &&
1928 echo "$as_me: caught signal $ac_signal"
1929 echo "$as_me: exit $exit_status"
1930 } >&5
1931 rm -f core *.core core.conftest.* &&
1932 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1933 exit $exit_status
1935 for ac_signal in 1 2 13 15; do
1936 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1937 done
1938 ac_signal=0
1940 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1941 rm -f -r conftest* confdefs.h
1943 # Predefined preprocessor variables.
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_NAME "$PACKAGE_NAME"
1947 _ACEOF
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1952 _ACEOF
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1957 _ACEOF
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_STRING "$PACKAGE_STRING"
1962 _ACEOF
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1967 _ACEOF
1970 # Let the site file select an alternate cache file if it wants to.
1971 # Prefer explicitly selected file to automatically selected ones.
1972 if test -n "$CONFIG_SITE"; then
1973 set x "$CONFIG_SITE"
1974 elif test "x$prefix" != xNONE; then
1975 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1976 else
1977 set x "$ac_default_prefix/share/config.site" \
1978 "$ac_default_prefix/etc/config.site"
1980 shift
1981 for ac_site_file
1983 if test -r "$ac_site_file"; then
1984 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1985 echo "$as_me: loading site script $ac_site_file" >&6;}
1986 sed 's/^/| /' "$ac_site_file" >&5
1987 . "$ac_site_file"
1989 done
1991 if test -r "$cache_file"; then
1992 # Some versions of bash will fail to source /dev/null (special
1993 # files actually), so we avoid doing that.
1994 if test -f "$cache_file"; then
1995 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1996 echo "$as_me: loading cache $cache_file" >&6;}
1997 case $cache_file in
1998 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1999 *) . "./$cache_file";;
2000 esac
2002 else
2003 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2004 echo "$as_me: creating cache $cache_file" >&6;}
2005 >$cache_file
2008 # Check that the precious variables saved in the cache have kept the same
2009 # value.
2010 ac_cache_corrupted=false
2011 for ac_var in $ac_precious_vars; do
2012 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2013 eval ac_new_set=\$ac_env_${ac_var}_set
2014 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2015 eval ac_new_val=\$ac_env_${ac_var}_value
2016 case $ac_old_set,$ac_new_set in
2017 set,)
2018 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2019 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2020 ac_cache_corrupted=: ;;
2021 ,set)
2022 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2023 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2024 ac_cache_corrupted=: ;;
2025 ,);;
2027 if test "x$ac_old_val" != "x$ac_new_val"; then
2028 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2029 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2030 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2031 echo "$as_me: former value: $ac_old_val" >&2;}
2032 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2033 echo "$as_me: current value: $ac_new_val" >&2;}
2034 ac_cache_corrupted=:
2035 fi;;
2036 esac
2037 # Pass precious variables to config.status.
2038 if test "$ac_new_set" = set; then
2039 case $ac_new_val in
2040 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2041 *) ac_arg=$ac_var=$ac_new_val ;;
2042 esac
2043 case " $ac_configure_args " in
2044 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2045 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2046 esac
2048 done
2049 if $ac_cache_corrupted; then
2050 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2051 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2052 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2053 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2054 { (exit 1); exit 1; }; }
2073 ac_ext=c
2074 ac_cpp='$CPP $CPPFLAGS'
2075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 ac_config_headers="$ac_config_headers config.h"
2083 ac_config_headers="$ac_config_headers ltdlconf.h"
2086 VERSION="2.3.7.cvs"
2087 VER_STRING="2.3.7.cvs"
2088 WIN_VER_STRING="2, 3, 7, 1"
2089 REL_STRING="Build from CVS snapshot, after release 2.3.7"
2094 ac_aux_dir=
2095 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2096 if test -f "$ac_dir/install-sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install-sh -c"
2099 break
2100 elif test -f "$ac_dir/install.sh"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/install.sh -c"
2103 break
2104 elif test -f "$ac_dir/shtool"; then
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/shtool install -c"
2107 break
2109 done
2110 if test -z "$ac_aux_dir"; then
2111 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2112 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2113 { (exit 1); exit 1; }; }
2116 # These three variables are undocumented and unsupported,
2117 # and are intended to be withdrawn in a future Autoconf release.
2118 # They can cause serious problems if a builder's source tree is in a directory
2119 # whose full name contains unusual characters.
2120 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 ac_build_alias=$build_alias
2137 test "x$ac_build_alias" = x &&
2138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x &&
2140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
2143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2156 esac
2157 build=$ac_cv_build
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_build
2160 shift
2161 build_cpu=$1
2162 build_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 build_os=$*
2167 IFS=$ac_save_IFS
2168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test "x$host_alias" = x; then
2177 ac_cv_host=$ac_cv_build
2178 else
2179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2188 case $ac_cv_host in
2189 *-*-*) ;;
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2193 esac
2194 host=$ac_cv_host
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_host
2197 shift
2198 host_cpu=$1
2199 host_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 host_os=$*
2204 IFS=$ac_save_IFS
2205 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2208 { echo "$as_me:$LINENO: checking target system type" >&5
2209 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2210 if test "${ac_cv_target+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 if test "x$target_alias" = x; then
2214 ac_cv_target=$ac_cv_host
2215 else
2216 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2219 { (exit 1); exit 1; }; }
2223 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2224 echo "${ECHO_T}$ac_cv_target" >&6; }
2225 case $ac_cv_target in
2226 *-*-*) ;;
2227 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2228 echo "$as_me: error: invalid value of canonical target" >&2;}
2229 { (exit 1); exit 1; }; };;
2230 esac
2231 target=$ac_cv_target
2232 ac_save_IFS=$IFS; IFS='-'
2233 set x $ac_cv_target
2234 shift
2235 target_cpu=$1
2236 target_vendor=$2
2237 shift; shift
2238 # Remember, the first character of IFS is used to create $*,
2239 # except with old shells:
2240 target_os=$*
2241 IFS=$ac_save_IFS
2242 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2245 # The aliases save the names the user supplied, while $host etc.
2246 # will get canonicalized.
2247 test -n "$target_alias" &&
2248 test "$program_prefix$program_suffix$program_transform_name" = \
2249 NONENONEs,x,x, &&
2250 program_prefix=${target_alias}-
2252 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2253 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2254 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257 cross_configure=1
2258 else
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2261 cross_configure=0
2264 # this case statement defines the compile flags which are needed to
2265 # compile bochs on a platform. Don't put things like optimization settings
2266 # into the configure.in file, since people will want to be able to change
2267 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2268 NO_LT=0
2269 need_dlcompat_for_plugins=0
2270 case "$target" in
2271 *-pc-windows* | *-pc-winnt*)
2272 DEFAULT_GUI=win32 # default to win32 gui
2274 *-pc-cygwin* | *-pc-mingw32*)
2275 NO_LT=1 # do not use libtool at all on cygwin
2276 if test "$with_term" = yes; then
2277 # ncurses won't compile with -mno-cygwin or -DWIN32
2278 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2279 # see /usr/include/curses.h for details.
2280 ADD_FLAGS="-DBROKEN_LINKER=1"
2281 else
2282 # default case
2283 ADD_FLAGS="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui
2284 DEFAULT_GUI=win32 # default to win32 gui
2287 *-macosx* | *-darwin*)
2288 ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile
2289 DEFAULT_GUI=carbon # default to carbon
2290 need_dlcompat_for_plugins=1
2292 *-macos*)
2293 DEFAULT_GUI=macos # macos defaults to macos
2295 *-beos*)
2296 ADD_FLAGS="-Wno-multichar"
2297 DEFAULT_GUI=beos # beos defaults to beos
2299 *-amigaos* | *-morphos*)
2300 DEFAULT_GUI=amigaos # amigaos or morphos defaults to amigaos gui
2302 *-solaris*)
2303 ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2304 LIBS="$LIBS -lsocket -lnsl"
2305 DEFAULT_GUI=x11
2308 DEFAULT_GUI=x11
2310 esac
2311 if test "${ADD_FLAGS:+set}" = set; then
2312 CFLAGS="$CFLAGS $ADD_FLAGS"
2313 CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
2314 CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
2317 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2318 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2319 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2320 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2322 if (test "$with_sdl" != yes) && \
2323 (test "$with_svga" != yes) && \
2324 (test "$with_x11" != yes) && \
2325 (test "$with_beos" != yes) && \
2326 (test "$with_win32" != yes) && \
2327 (test "$with_nogui" != yes) && \
2328 (test "$with_term" != yes) && \
2329 (test "$with_rfb" != yes) && \
2330 (test "$with_amigaos" != yes) && \
2331 (test "$with_carbon" != yes) && \
2332 (test "$with_wx" != yes) && \
2333 (test "$with_macos" != yes); then
2334 # use DEFAULT_GUI. Set the appropriate variable.
2335 # DEFAULT_GUI must be set to one of the names above. Otherwise, no
2336 # valid $with_* variable will be set and who knows what will happen?
2337 eval "with_${DEFAULT_GUI}=yes"
2340 ac_ext=c
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353 if test -n "$CC"; then
2354 ac_cv_prog_CC="$CC" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 break 2
2367 done
2368 done
2369 IFS=$as_save_IFS
2373 CC=$ac_cv_prog_CC
2374 if test -n "$CC"; then
2375 { echo "$as_me:$LINENO: result: $CC" >&5
2376 echo "${ECHO_T}$CC" >&6; }
2377 else
2378 { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2384 if test -z "$ac_cv_prog_CC"; then
2385 ac_ct_CC=$CC
2386 # Extract the first word of "gcc", so it can be a program name with args.
2387 set dummy gcc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_CC="gcc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2407 done
2408 done
2409 IFS=$as_save_IFS
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 echo "${ECHO_T}$ac_ct_CC" >&6; }
2417 else
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2422 if test "x$ac_ct_CC" = x; then
2423 CC=""
2424 else
2425 case $cross_compiling:$ac_tool_warned in
2426 yes:)
2427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&5
2430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2431 whose name does not start with the host triplet. If you think this
2432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2433 ac_tool_warned=yes ;;
2434 esac
2435 CC=$ac_ct_CC
2437 else
2438 CC="$ac_cv_prog_CC"
2441 if test -z "$CC"; then
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}cc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_CC="${ac_tool_prefix}cc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2464 done
2465 done
2466 IFS=$as_save_IFS
2470 CC=$ac_cv_prog_CC
2471 if test -n "$CC"; then
2472 { echo "$as_me:$LINENO: result: $CC" >&5
2473 echo "${ECHO_T}$CC" >&6; }
2474 else
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2482 if test -z "$CC"; then
2483 # Extract the first word of "cc", so it can be a program name with args.
2484 set dummy cc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 ac_prog_rejected=no
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2502 ac_prog_rejected=yes
2503 continue
2505 ac_cv_prog_CC="cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2509 done
2510 done
2511 IFS=$as_save_IFS
2513 if test $ac_prog_rejected = yes; then
2514 # We found a bogon in the path, so make sure we never use it.
2515 set dummy $ac_cv_prog_CC
2516 shift
2517 if test $# != 0; then
2518 # We chose a different compiler from the bogus one.
2519 # However, it has the same basename, so the bogon will be chosen
2520 # first if we set CC to just the basename; use the full file name.
2521 shift
2522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2527 CC=$ac_cv_prog_CC
2528 if test -n "$CC"; then
2529 { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2531 else
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2538 if test -z "$CC"; then
2539 if test -n "$ac_tool_prefix"; then
2540 for ac_prog in cl.exe
2542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2563 done
2564 done
2565 IFS=$as_save_IFS
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2573 else
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2579 test -n "$CC" && break
2580 done
2582 if test -z "$CC"; then
2583 ac_ct_CC=$CC
2584 for ac_prog in cl.exe
2586 # Extract the first word of "$ac_prog", so it can be a program name with args.
2587 set dummy $ac_prog; ac_word=$2
2588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 if test -n "$ac_ct_CC"; then
2594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_ac_ct_CC="$ac_prog"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2607 done
2608 done
2609 IFS=$as_save_IFS
2613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614 if test -n "$ac_ct_CC"; then
2615 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2616 echo "${ECHO_T}$ac_ct_CC" >&6; }
2617 else
2618 { echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6; }
2623 test -n "$ac_ct_CC" && break
2624 done
2626 if test "x$ac_ct_CC" = x; then
2627 CC=""
2628 else
2629 case $cross_compiling:$ac_tool_warned in
2630 yes:)
2631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2632 whose name does not start with the host triplet. If you think this
2633 configuration is useful to you, please write to autoconf@gnu.org." >&5
2634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet. If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2637 ac_tool_warned=yes ;;
2638 esac
2639 CC=$ac_ct_CC
2646 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2647 See \`config.log' for more details." >&5
2648 echo "$as_me: error: no acceptable C compiler found in \$PATH
2649 See \`config.log' for more details." >&2;}
2650 { (exit 1); exit 1; }; }
2652 # Provide some information about the compiler.
2653 echo "$as_me:$LINENO: checking for C compiler version" >&5
2654 ac_compiler=`set X $ac_compile; echo $2`
2655 { (ac_try="$ac_compiler --version >&5"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compiler --version >&5") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }
2665 { (ac_try="$ac_compiler -v >&5"
2666 case "(($ac_try" in
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compiler -v >&5") 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (ac_try="$ac_compiler -V >&5"
2676 case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler -V >&5") 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2694 main ()
2698 return 0;
2700 _ACEOF
2701 ac_clean_files_save=$ac_clean_files
2702 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2703 # Try to create an executable without -o first, disregard a.out.
2704 # It will help us diagnose broken compilers, and finding out an intuition
2705 # of exeext.
2706 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2707 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2708 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2710 # List of possible output files, starting from the most likely.
2711 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2712 # only as a last resort. b.out is created by i960 compilers.
2713 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2715 # The IRIX 6 linker writes into existing files which may not be
2716 # executable, retaining their permissions. Remove them first so a
2717 # subsequent execution test works.
2718 ac_rmfiles=
2719 for ac_file in $ac_files
2721 case $ac_file in
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2723 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2724 esac
2725 done
2726 rm -f $ac_rmfiles
2728 if { (ac_try="$ac_link_default"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_link_default") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; then
2738 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2739 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2740 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2741 # so that the user can short-circuit this test for compilers unknown to
2742 # Autoconf.
2743 for ac_file in $ac_files ''
2745 test -f "$ac_file" || continue
2746 case $ac_file in
2747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2749 [ab].out )
2750 # We found the default executable, but exeext='' is most
2751 # certainly right.
2752 break;;
2753 *.* )
2754 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2755 then :; else
2756 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 # We set ac_cv_exeext here because the later test for it is not
2759 # safe: cross compilers may not add the suffix if given an `-o'
2760 # argument, so we may need to know it at that point already.
2761 # Even if this section looks crufty: it has the advantage of
2762 # actually working.
2763 break;;
2765 break;;
2766 esac
2767 done
2768 test "$ac_cv_exeext" = no && ac_cv_exeext=
2770 else
2771 ac_file=''
2774 { echo "$as_me:$LINENO: result: $ac_file" >&5
2775 echo "${ECHO_T}$ac_file" >&6; }
2776 if test -z "$ac_file"; then
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2780 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: C compiler cannot create executables
2783 See \`config.log' for more details." >&2;}
2784 { (exit 77); exit 77; }; }
2787 ac_exeext=$ac_cv_exeext
2789 # Check that the compiler produces executables we can run. If not, either
2790 # the compiler is broken, or we cross compile.
2791 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2792 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2793 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2794 # If not cross compiling, check that we can run a simple program.
2795 if test "$cross_compiling" != yes; then
2796 if { ac_try='./$ac_file'
2797 { (case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_try") 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 cross_compiling=no
2807 else
2808 if test "$cross_compiling" = maybe; then
2809 cross_compiling=yes
2810 else
2811 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2812 If you meant to cross compile, use \`--host'.
2813 See \`config.log' for more details." >&5
2814 echo "$as_me: error: cannot run C compiled programs.
2815 If you meant to cross compile, use \`--host'.
2816 See \`config.log' for more details." >&2;}
2817 { (exit 1); exit 1; }; }
2821 { echo "$as_me:$LINENO: result: yes" >&5
2822 echo "${ECHO_T}yes" >&6; }
2824 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2825 ac_clean_files=$ac_clean_files_save
2826 # Check that the compiler produces executables we can run. If not, either
2827 # the compiler is broken, or we cross compile.
2828 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2829 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2830 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2831 echo "${ECHO_T}$cross_compiling" >&6; }
2833 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2834 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2835 if { (ac_try="$ac_link"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_link") 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; then
2845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2846 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2847 # work properly (i.e., refer to `conftest.exe'), while it won't with
2848 # `rm'.
2849 for ac_file in conftest.exe conftest conftest.*; do
2850 test -f "$ac_file" || continue
2851 case $ac_file in
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854 break;;
2855 * ) break;;
2856 esac
2857 done
2858 else
2859 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2862 See \`config.log' for more details." >&2;}
2863 { (exit 1); exit 1; }; }
2866 rm -f conftest$ac_cv_exeext
2867 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2868 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2870 rm -f conftest.$ac_ext
2871 EXEEXT=$ac_cv_exeext
2872 ac_exeext=$EXEEXT
2873 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2874 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2875 if test "${ac_cv_objext+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2886 main ()
2890 return 0;
2892 _ACEOF
2893 rm -f conftest.o conftest.obj
2894 if { (ac_try="$ac_compile"
2895 case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 for ac_file in conftest.o conftest.obj conftest.*; do
2905 test -f "$ac_file" || continue;
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2909 break;;
2910 esac
2911 done
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2923 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2925 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2926 echo "${ECHO_T}$ac_cv_objext" >&6; }
2927 OBJEXT=$ac_cv_objext
2928 ac_objext=$OBJEXT
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h. */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2942 main ()
2944 #ifndef __GNUC__
2945 choke me
2946 #endif
2949 return 0;
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && {
2966 test -z "$ac_c_werror_flag" ||
2967 test ! -s conftest.err
2968 } && test -s conftest.$ac_objext; then
2969 ac_compiler_gnu=yes
2970 else
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 ac_compiler_gnu=no
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2981 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2983 GCC=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CFLAGS=${CFLAGS+set}
2985 ac_save_CFLAGS=$CFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2987 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cc_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 ac_save_c_werror_flag=$ac_c_werror_flag
2992 ac_c_werror_flag=yes
2993 ac_cv_prog_cc_g=no
2994 CFLAGS="-g"
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3003 main ()
3007 return 0;
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && {
3024 test -z "$ac_c_werror_flag" ||
3025 test ! -s conftest.err
3026 } && test -s conftest.$ac_objext; then
3027 ac_cv_prog_cc_g=yes
3028 else
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 CFLAGS=""
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3041 main ()
3045 return 0;
3047 _ACEOF
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3056 ac_status=$?
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } && {
3062 test -z "$ac_c_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.$ac_objext; then
3066 else
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 ac_c_werror_flag=$ac_save_c_werror_flag
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3080 main ()
3084 return 0;
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_cv_prog_cc_g=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3123 if test "$ac_test_CFLAGS" = set; then
3124 CFLAGS=$ac_save_CFLAGS
3125 elif test $ac_cv_prog_cc_g = yes; then
3126 if test "$GCC" = yes; then
3127 CFLAGS="-g -O2"
3128 else
3129 CFLAGS="-g"
3131 else
3132 if test "$GCC" = yes; then
3133 CFLAGS="-O2"
3134 else
3135 CFLAGS=
3138 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3139 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_cc_c89+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 ac_cv_prog_cc_c89=no
3144 ac_save_CC=$CC
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151 #include <stdarg.h>
3152 #include <stdio.h>
3153 #include <sys/types.h>
3154 #include <sys/stat.h>
3155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3156 struct buf { int x; };
3157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158 static char *e (p, i)
3159 char **p;
3160 int i;
3162 return p[i];
3164 static char *f (char * (*g) (char **, int), char **p, ...)
3166 char *s;
3167 va_list v;
3168 va_start (v,p);
3169 s = g (p, va_arg (v,int));
3170 va_end (v);
3171 return s;
3174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3175 function prototypes and stuff, but not '\xHH' hex character constants.
3176 These don't provoke an error unfortunately, instead are silently treated
3177 as 'x'. The following induces an error, until -std is added to get
3178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3179 array size at least. It's necessary to write '\x00'==0 to get something
3180 that's true only with -std. */
3181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3184 inside strings and character constants. */
3185 #define FOO(x) 'x'
3186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3188 int test (int i, double x);
3189 struct s1 {int (*f) (int a);};
3190 struct s2 {int (*f) (double a);};
3191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3192 int argc;
3193 char **argv;
3195 main ()
3197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3199 return 0;
3201 _ACEOF
3202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205 CC="$ac_save_CC $ac_arg"
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && {
3220 test -z "$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 } && test -s conftest.$ac_objext; then
3223 ac_cv_prog_cc_c89=$ac_arg
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3231 rm -f core conftest.err conftest.$ac_objext
3232 test "x$ac_cv_prog_cc_c89" != "xno" && break
3233 done
3234 rm -f conftest.$ac_ext
3235 CC=$ac_save_CC
3238 # AC_CACHE_VAL
3239 case "x$ac_cv_prog_cc_c89" in
3241 { echo "$as_me:$LINENO: result: none needed" >&5
3242 echo "${ECHO_T}none needed" >&6; } ;;
3243 xno)
3244 { echo "$as_me:$LINENO: result: unsupported" >&5
3245 echo "${ECHO_T}unsupported" >&6; } ;;
3247 CC="$CC $ac_cv_prog_cc_c89"
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3250 esac
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 ac_ext=cpp
3260 ac_cpp='$CXXCPP $CPPFLAGS'
3261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3264 if test -z "$CXX"; then
3265 if test -n "$CCC"; then
3266 CXX=$CCC
3267 else
3268 if test -n "$ac_tool_prefix"; then
3269 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_CXX+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 if test -n "$CXX"; then
3279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3292 done
3293 done
3294 IFS=$as_save_IFS
3298 CXX=$ac_cv_prog_CXX
3299 if test -n "$CXX"; then
3300 { echo "$as_me:$LINENO: result: $CXX" >&5
3301 echo "${ECHO_T}$CXX" >&6; }
3302 else
3303 { echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6; }
3308 test -n "$CXX" && break
3309 done
3311 if test -z "$CXX"; then
3312 ac_ct_CXX=$CXX
3313 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3315 # Extract the first word of "$ac_prog", so it can be a program name with args.
3316 set dummy $ac_prog; ac_word=$2
3317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3319 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 if test -n "$ac_ct_CXX"; then
3323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_prog_ac_ct_CXX="$ac_prog"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3338 IFS=$as_save_IFS
3342 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3343 if test -n "$ac_ct_CXX"; then
3344 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3345 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3346 else
3347 { echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6; }
3352 test -n "$ac_ct_CXX" && break
3353 done
3355 if test "x$ac_ct_CXX" = x; then
3356 CXX="g++"
3357 else
3358 case $cross_compiling:$ac_tool_warned in
3359 yes:)
3360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3361 whose name does not start with the host triplet. If you think this
3362 configuration is useful to you, please write to autoconf@gnu.org." >&5
3363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3364 whose name does not start with the host triplet. If you think this
3365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3366 ac_tool_warned=yes ;;
3367 esac
3368 CXX=$ac_ct_CXX
3374 # Provide some information about the compiler.
3375 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3376 ac_compiler=`set X $ac_compile; echo $2`
3377 { (ac_try="$ac_compiler --version >&5"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_compiler --version >&5") 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }
3387 { (ac_try="$ac_compiler -v >&5"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compiler -v >&5") 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }
3397 { (ac_try="$ac_compiler -V >&5"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compiler -V >&5") 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }
3408 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3409 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3410 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3421 main ()
3423 #ifndef __GNUC__
3424 choke me
3425 #endif
3428 return 0;
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_cxx_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3448 ac_compiler_gnu=yes
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 ac_compiler_gnu=no
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3460 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3461 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3462 GXX=`test $ac_compiler_gnu = yes && echo yes`
3463 ac_test_CXXFLAGS=${CXXFLAGS+set}
3464 ac_save_CXXFLAGS=$CXXFLAGS
3465 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3466 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3467 if test "${ac_cv_prog_cxx_g+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3471 ac_cxx_werror_flag=yes
3472 ac_cv_prog_cxx_g=no
3473 CXXFLAGS="-g"
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3482 main ()
3486 return 0;
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_compile") 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && {
3503 test -z "$ac_cxx_werror_flag" ||
3504 test ! -s conftest.err
3505 } && test -s conftest.$ac_objext; then
3506 ac_cv_prog_cxx_g=yes
3507 else
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 CXXFLAGS=""
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3520 main ()
3524 return 0;
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_compile") 2>conftest.er1
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } && {
3541 test -z "$ac_cxx_werror_flag" ||
3542 test ! -s conftest.err
3543 } && test -s conftest.$ac_objext; then
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3550 CXXFLAGS="-g"
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3559 main ()
3563 return 0;
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_cxx_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
3583 ac_cv_prog_cxx_g=yes
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3601 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3602 if test "$ac_test_CXXFLAGS" = set; then
3603 CXXFLAGS=$ac_save_CXXFLAGS
3604 elif test $ac_cv_prog_cxx_g = yes; then
3605 if test "$GXX" = yes; then
3606 CXXFLAGS="-g -O2"
3607 else
3608 CXXFLAGS="-g"
3610 else
3611 if test "$GXX" = yes; then
3612 CXXFLAGS="-O2"
3613 else
3614 CXXFLAGS=
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3624 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3625 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3626 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629 cat >conftest.make <<\_ACEOF
3630 SHELL = /bin/sh
3631 all:
3632 @echo '@@@%%%=$(MAKE)=@@@%%%'
3633 _ACEOF
3634 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3635 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3636 *@@@%%%=?*=@@@%%%*)
3637 eval ac_cv_prog_make_${ac_make}_set=yes;;
3639 eval ac_cv_prog_make_${ac_make}_set=no;;
3640 esac
3641 rm -f conftest.make
3643 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3644 { echo "$as_me:$LINENO: result: yes" >&5
3645 echo "${ECHO_T}yes" >&6; }
3646 SET_MAKE=
3647 else
3648 { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3650 SET_MAKE="MAKE=${MAKE-make}"
3654 # Check whether --enable-static was given.
3655 if test "${enable_static+set}" = set; then
3656 enableval=$enable_static; p=${PACKAGE-default}
3657 case $enableval in
3658 yes) enable_static=yes ;;
3659 no) enable_static=no ;;
3661 enable_static=no
3662 # Look at the argument we got. We use all the common list separators.
3663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3664 for pkg in $enableval; do
3665 IFS="$lt_save_ifs"
3666 if test "X$pkg" = "X$p"; then
3667 enable_static=yes
3669 done
3670 IFS="$lt_save_ifs"
3672 esac
3673 else
3674 enable_static=no
3681 # Check whether --enable-shared was given.
3682 if test "${enable_shared+set}" = set; then
3683 enableval=$enable_shared; p=${PACKAGE-default}
3684 case $enableval in
3685 yes) enable_shared=yes ;;
3686 no) enable_shared=no ;;
3688 enable_shared=no
3689 # Look at the argument we got. We use all the common list separators.
3690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3691 for pkg in $enableval; do
3692 IFS="$lt_save_ifs"
3693 if test "X$pkg" = "X$p"; then
3694 enable_shared=yes
3696 done
3697 IFS="$lt_save_ifs"
3699 esac
3700 else
3701 enable_shared=yes
3705 # Check whether --enable-fast-install was given.
3706 if test "${enable_fast_install+set}" = set; then
3707 enableval=$enable_fast_install; p=${PACKAGE-default}
3708 case $enableval in
3709 yes) enable_fast_install=yes ;;
3710 no) enable_fast_install=no ;;
3712 enable_fast_install=no
3713 # Look at the argument we got. We use all the common list separators.
3714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3715 for pkg in $enableval; do
3716 IFS="$lt_save_ifs"
3717 if test "X$pkg" = "X$p"; then
3718 enable_fast_install=yes
3720 done
3721 IFS="$lt_save_ifs"
3723 esac
3724 else
3725 enable_fast_install=yes
3729 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3730 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3731 if test "${lt_cv_path_SED+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 # Loop through the user's path and test for sed and gsed.
3735 # Then use that list of sed's as ones to test for truncation.
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
3741 for lt_ac_prog in sed gsed; do
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3744 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3746 done
3747 done
3748 done
3749 lt_ac_max=0
3750 lt_ac_count=0
3751 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3752 # along with /bin/sed that truncates output.
3753 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3754 test ! -f $lt_ac_sed && break
3755 cat /dev/null > conftest.in
3756 lt_ac_count=0
3757 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3758 # Check for GNU sed and select it if it is found.
3759 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3760 lt_cv_path_SED=$lt_ac_sed
3761 break
3763 while true; do
3764 cat conftest.in conftest.in >conftest.tmp
3765 mv conftest.tmp conftest.in
3766 cp conftest.in conftest.nl
3767 echo >>conftest.nl
3768 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3769 cmp -s conftest.out conftest.nl || break
3770 # 10000 chars as input seems more than enough
3771 test $lt_ac_count -gt 10 && break
3772 lt_ac_count=`expr $lt_ac_count + 1`
3773 if test $lt_ac_count -gt $lt_ac_max; then
3774 lt_ac_max=$lt_ac_count
3775 lt_cv_path_SED=$lt_ac_sed
3777 done
3778 done
3779 SED=$lt_cv_path_SED
3783 { echo "$as_me:$LINENO: result: $SED" >&5
3784 echo "${ECHO_T}$SED" >&6; }
3786 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3787 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3788 if test "${ac_cv_path_GREP+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 # Extract the first word of "grep ggrep" to use in msg output
3792 if test -z "$GREP"; then
3793 set dummy grep ggrep; ac_prog_name=$2
3794 if test "${ac_cv_path_GREP+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 ac_path_GREP_found=false
3798 # Loop through the user's path and test for each of PROGNAME-LIST
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_prog in grep ggrep; do
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3807 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3808 # Check for GNU ac_path_GREP and select it if it is found.
3809 # Check for GNU $ac_path_GREP
3810 case `"$ac_path_GREP" --version 2>&1` in
3811 *GNU*)
3812 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3814 ac_count=0
3815 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3816 while :
3818 cat "conftest.in" "conftest.in" >"conftest.tmp"
3819 mv "conftest.tmp" "conftest.in"
3820 cp "conftest.in" "conftest.nl"
3821 echo 'GREP' >> "conftest.nl"
3822 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3824 ac_count=`expr $ac_count + 1`
3825 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3826 # Best one so far, save it but keep looking for a better one
3827 ac_cv_path_GREP="$ac_path_GREP"
3828 ac_path_GREP_max=$ac_count
3830 # 10*(2^10) chars as input seems more than enough
3831 test $ac_count -gt 10 && break
3832 done
3833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834 esac
3837 $ac_path_GREP_found && break 3
3838 done
3839 done
3841 done
3842 IFS=$as_save_IFS
3847 GREP="$ac_cv_path_GREP"
3848 if test -z "$GREP"; then
3849 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3850 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3851 { (exit 1); exit 1; }; }
3854 else
3855 ac_cv_path_GREP=$GREP
3860 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3861 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3862 GREP="$ac_cv_path_GREP"
3865 { echo "$as_me:$LINENO: checking for egrep" >&5
3866 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3867 if test "${ac_cv_path_EGREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3871 then ac_cv_path_EGREP="$GREP -E"
3872 else
3873 # Extract the first word of "egrep" to use in msg output
3874 if test -z "$EGREP"; then
3875 set dummy egrep; ac_prog_name=$2
3876 if test "${ac_cv_path_EGREP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 ac_path_EGREP_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in egrep; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3890 # Check for GNU ac_path_EGREP and select it if it is found.
3891 # Check for GNU $ac_path_EGREP
3892 case `"$ac_path_EGREP" --version 2>&1` in
3893 *GNU*)
3894 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3896 ac_count=0
3897 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3898 while :
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 echo 'EGREP' >> "conftest.nl"
3904 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906 ac_count=`expr $ac_count + 1`
3907 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_EGREP="$ac_path_EGREP"
3910 ac_path_EGREP_max=$ac_count
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3914 done
3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916 esac
3919 $ac_path_EGREP_found && break 3
3920 done
3921 done
3923 done
3924 IFS=$as_save_IFS
3929 EGREP="$ac_cv_path_EGREP"
3930 if test -z "$EGREP"; then
3931 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3933 { (exit 1); exit 1; }; }
3936 else
3937 ac_cv_path_EGREP=$EGREP
3943 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3944 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3945 EGREP="$ac_cv_path_EGREP"
3949 # Check whether --with-gnu-ld was given.
3950 if test "${with_gnu_ld+set}" = set; then
3951 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3952 else
3953 with_gnu_ld=no
3956 ac_prog=ld
3957 if test "$GCC" = yes; then
3958 # Check if gcc -print-prog-name=ld gives a path.
3959 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3960 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3961 case $host in
3962 *-*-mingw*)
3963 # gcc leaves a trailing carriage return which upsets mingw
3964 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3966 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3967 esac
3968 case $ac_prog in
3969 # Accept absolute paths.
3970 [\\/]* | ?:[\\/]*)
3971 re_direlt='/[^/][^/]*/\.\./'
3972 # Canonicalize the pathname of ld
3973 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3974 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3975 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3976 done
3977 test -z "$LD" && LD="$ac_prog"
3980 # If it fails, then pretend we aren't using GCC.
3981 ac_prog=ld
3984 # If it is relative, then search for the first ld in PATH.
3985 with_gnu_ld=unknown
3987 esac
3988 elif test "$with_gnu_ld" = yes; then
3989 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3990 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3991 else
3992 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3993 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3995 if test "${lt_cv_path_LD+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 if test -z "$LD"; then
3999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4000 for ac_dir in $PATH; do
4001 IFS="$lt_save_ifs"
4002 test -z "$ac_dir" && ac_dir=.
4003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4004 lt_cv_path_LD="$ac_dir/$ac_prog"
4005 # Check to see if the program is GNU ld. I'd rather use --version,
4006 # but apparently some GNU ld's only accept -v.
4007 # Break only if it was the GNU/non-GNU ld that we prefer.
4008 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4009 *GNU* | *'with BFD'*)
4010 test "$with_gnu_ld" != no && break
4013 test "$with_gnu_ld" != yes && break
4015 esac
4017 done
4018 IFS="$lt_save_ifs"
4019 else
4020 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4024 LD="$lt_cv_path_LD"
4025 if test -n "$LD"; then
4026 { echo "$as_me:$LINENO: result: $LD" >&5
4027 echo "${ECHO_T}$LD" >&6; }
4028 else
4029 { echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6; }
4032 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4033 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4034 { (exit 1); exit 1; }; }
4035 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4036 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4037 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4041 case `$LD -v 2>&1 </dev/null` in
4042 *GNU* | *'with BFD'*)
4043 lt_cv_prog_gnu_ld=yes
4046 lt_cv_prog_gnu_ld=no
4048 esac
4050 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4051 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4052 with_gnu_ld=$lt_cv_prog_gnu_ld
4055 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4056 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4057 if test "${lt_cv_ld_reload_flag+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 lt_cv_ld_reload_flag='-r'
4062 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4063 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4064 reload_flag=$lt_cv_ld_reload_flag
4065 case $reload_flag in
4066 "" | " "*) ;;
4067 *) reload_flag=" $reload_flag" ;;
4068 esac
4069 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4071 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4072 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4073 if test "${lt_cv_path_NM+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 if test -n "$NM"; then
4077 # Let the user override the test.
4078 lt_cv_path_NM="$NM"
4079 else
4080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4081 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4082 IFS="$lt_save_ifs"
4083 test -z "$ac_dir" && ac_dir=.
4084 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4085 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4086 # Check to see if the nm accepts a BSD-compat flag.
4087 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4088 # nm: unknown option "B" ignored
4089 # Tru64's nm complains that /dev/null is an invalid object file
4090 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4091 */dev/null* | *'Invalid file or object type'*)
4092 lt_cv_path_NM="$tmp_nm -B"
4093 break
4096 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4097 */dev/null*)
4098 lt_cv_path_NM="$tmp_nm -p"
4099 break
4102 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4103 continue # so that we can try to find one that supports BSD flags
4105 esac
4106 esac
4108 done
4109 IFS="$lt_save_ifs"
4110 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4113 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4114 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4115 NM="$lt_cv_path_NM"
4117 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4118 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4119 LN_S=$as_ln_s
4120 if test "$LN_S" = "ln -s"; then
4121 { echo "$as_me:$LINENO: result: yes" >&5
4122 echo "${ECHO_T}yes" >&6; }
4123 else
4124 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4125 echo "${ECHO_T}no, using $LN_S" >&6; }
4128 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4129 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4130 if test "${lt_cv_deplibs_check_method+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133 lt_cv_file_magic_cmd='$MAGIC_CMD'
4134 lt_cv_file_magic_test_file=
4135 lt_cv_deplibs_check_method='unknown'
4136 # Need to set the preceding variable on all platforms that support
4137 # interlibrary dependencies.
4138 # 'none' -- dependencies not supported.
4139 # `unknown' -- same as none, but documents that we really don't know.
4140 # 'pass_all' -- all dependencies passed with no checks.
4141 # 'test_compile' -- check by making test program.
4142 # 'file_magic [[regex]]' -- check by looking for files in library path
4143 # which responds to the $file_magic_cmd with a given extended regex.
4144 # If you have `file' or equivalent on your system and you're not sure
4145 # whether `pass_all' will *always* work, you probably want this one.
4147 case $host_os in
4148 aix4* | aix5*)
4149 lt_cv_deplibs_check_method=pass_all
4152 beos*)
4153 lt_cv_deplibs_check_method=pass_all
4156 bsdi4*)
4157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4158 lt_cv_file_magic_cmd='/usr/bin/file -L'
4159 lt_cv_file_magic_test_file=/shlib/libc.so
4162 cygwin* | mingw* | pw32*)
4163 # win32_libid is a shell function defined in ltmain.sh
4164 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4165 lt_cv_file_magic_cmd='win32_libid'
4168 darwin* | rhapsody*)
4169 # this will be overwritten by pass_all, but leave it in just in case
4170 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4171 lt_cv_file_magic_cmd='/usr/bin/file -L'
4172 case "$host_os" in
4173 rhapsody* | darwin1.[012])
4174 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4176 *) # Darwin 1.3 on
4177 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4179 esac
4180 lt_cv_deplibs_check_method=pass_all
4183 freebsd* | kfreebsd*-gnu)
4184 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4185 case $host_cpu in
4186 i*86 )
4187 # Not sure whether the presence of OpenBSD here was a mistake.
4188 # Let's accept both of them until this is cleared up.
4189 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4190 lt_cv_file_magic_cmd=/usr/bin/file
4191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4193 esac
4194 else
4195 lt_cv_deplibs_check_method=pass_all
4199 gnu*)
4200 lt_cv_deplibs_check_method=pass_all
4203 hpux10.20* | hpux11*)
4204 lt_cv_file_magic_cmd=/usr/bin/file
4205 case "$host_cpu" in
4206 ia64*)
4207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4208 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4210 hppa*64*)
4211 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]'
4212 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4215 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4216 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4218 esac
4221 irix5* | irix6* | nonstopux*)
4222 case $host_os in
4223 irix5* | nonstopux*)
4224 # this will be overridden with pass_all, but let us keep it just in case
4225 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4228 case $LD in
4229 *-32|*"-32 ") libmagic=32-bit;;
4230 *-n32|*"-n32 ") libmagic=N32;;
4231 *-64|*"-64 ") libmagic=64-bit;;
4232 *) libmagic=never-match;;
4233 esac
4234 # this will be overridden with pass_all, but let us keep it just in case
4235 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4237 esac
4238 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4239 lt_cv_deplibs_check_method=pass_all
4242 # This must be Linux ELF.
4243 linux*)
4244 case $host_cpu in
4245 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4246 lt_cv_deplibs_check_method=pass_all ;;
4248 # glibc up to 2.1.1 does not perform some relocations on ARM
4249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4250 esac
4251 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4254 netbsd*)
4255 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4257 else
4258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4262 newos6*)
4263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4264 lt_cv_file_magic_cmd=/usr/bin/file
4265 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4268 nto-qnx*)
4269 lt_cv_deplibs_check_method=unknown
4272 openbsd*)
4273 lt_cv_file_magic_cmd=/usr/bin/file
4274 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4275 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4277 else
4278 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4282 osf3* | osf4* | osf5*)
4283 # this will be overridden with pass_all, but let us keep it just in case
4284 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4285 lt_cv_file_magic_test_file=/shlib/libc.so
4286 lt_cv_deplibs_check_method=pass_all
4289 sco3.2v5*)
4290 lt_cv_deplibs_check_method=pass_all
4293 solaris*)
4294 lt_cv_deplibs_check_method=pass_all
4295 lt_cv_file_magic_test_file=/lib/libc.so
4298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4299 case $host_vendor in
4300 motorola)
4301 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]'
4302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4304 ncr)
4305 lt_cv_deplibs_check_method=pass_all
4307 sequent)
4308 lt_cv_file_magic_cmd='/bin/file'
4309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4311 sni)
4312 lt_cv_file_magic_cmd='/bin/file'
4313 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4314 lt_cv_file_magic_test_file=/lib/libc.so
4316 siemens)
4317 lt_cv_deplibs_check_method=pass_all
4319 esac
4322 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4323 lt_cv_deplibs_check_method=pass_all
4325 esac
4328 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4329 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4330 file_magic_cmd=$lt_cv_file_magic_cmd
4331 deplibs_check_method=$lt_cv_deplibs_check_method
4332 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4337 # If no C compiler was specified, use CC.
4338 LTCC=${LTCC-"$CC"}
4340 # Allow CC to be a program name with arguments.
4341 compiler=$CC
4344 # Check whether --enable-libtool-lock was given.
4345 if test "${enable_libtool_lock+set}" = set; then
4346 enableval=$enable_libtool_lock;
4349 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4351 # Some flags need to be propagated to the compiler or linker for good
4352 # libtool support.
4353 case $host in
4354 ia64-*-hpux*)
4355 # Find out which ABI we are using.
4356 echo 'int i;' > conftest.$ac_ext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; then
4362 case `/usr/bin/file conftest.$ac_objext` in
4363 *ELF-32*)
4364 HPUX_IA64_MODE="32"
4366 *ELF-64*)
4367 HPUX_IA64_MODE="64"
4369 esac
4371 rm -rf conftest*
4373 *-*-irix6*)
4374 # Find out which ABI we are using.
4375 echo '#line 4375 "configure"' > conftest.$ac_ext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; then
4381 if test "$lt_cv_prog_gnu_ld" = yes; then
4382 case `/usr/bin/file conftest.$ac_objext` in
4383 *32-bit*)
4384 LD="${LD-ld} -melf32bsmip"
4386 *N32*)
4387 LD="${LD-ld} -melf32bmipn32"
4389 *64-bit*)
4390 LD="${LD-ld} -melf64bmip"
4392 esac
4393 else
4394 case `/usr/bin/file conftest.$ac_objext` in
4395 *32-bit*)
4396 LD="${LD-ld} -32"
4398 *N32*)
4399 LD="${LD-ld} -n32"
4401 *64-bit*)
4402 LD="${LD-ld} -64"
4404 esac
4407 rm -rf conftest*
4410 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4411 # Find out which ABI we are using.
4412 echo 'int i;' > conftest.$ac_ext
4413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4414 (eval $ac_compile) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; then
4418 case "`/usr/bin/file conftest.o`" in
4419 *32-bit*)
4420 case $host in
4421 x86_64-*linux*)
4422 LD="${LD-ld} -m elf_i386"
4424 ppc64-*linux*|powerpc64-*linux*)
4425 LD="${LD-ld} -m elf32ppclinux"
4427 s390x-*linux*)
4428 LD="${LD-ld} -m elf_s390"
4430 sparc64-*linux*)
4431 LD="${LD-ld} -m elf32_sparc"
4433 esac
4435 *64-bit*)
4436 case $host in
4437 x86_64-*linux*)
4438 LD="${LD-ld} -m elf_x86_64"
4440 ppc*-*linux*|powerpc*-*linux*)
4441 LD="${LD-ld} -m elf64ppc"
4443 s390*-*linux*)
4444 LD="${LD-ld} -m elf64_s390"
4446 sparc*-*linux*)
4447 LD="${LD-ld} -m elf64_sparc"
4449 esac
4451 esac
4453 rm -rf conftest*
4456 *-*-sco3.2v5*)
4457 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4458 SAVE_CFLAGS="$CFLAGS"
4459 CFLAGS="$CFLAGS -belf"
4460 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4461 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4462 if test "${lt_cv_cc_needs_belf+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 ac_ext=c
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4479 main ()
4483 return 0;
4485 _ACEOF
4486 rm -f conftest.$ac_objext conftest$ac_exeext
4487 if { (ac_try="$ac_link"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_link") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest$ac_exeext &&
4503 $as_test_x conftest$ac_exeext; then
4504 lt_cv_cc_needs_belf=yes
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 lt_cv_cc_needs_belf=no
4512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4513 conftest$ac_exeext conftest.$ac_ext
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4522 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4523 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4524 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4525 CFLAGS="$SAVE_CFLAGS"
4529 esac
4531 need_locks="$enable_libtool_lock"
4534 ac_ext=c
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4540 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4541 # On Suns, sometimes $CPP names a directory.
4542 if test -n "$CPP" && test -d "$CPP"; then
4543 CPP=
4545 if test -z "$CPP"; then
4546 if test "${ac_cv_prog_CPP+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 # Double quotes because CPP needs to be expanded
4550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4552 ac_preproc_ok=false
4553 for ac_c_preproc_warn_flag in '' yes
4555 # Use a header file that comes with gcc, so configuring glibc
4556 # with a fresh cross-compiler works.
4557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4558 # <limits.h> exists even on freestanding compilers.
4559 # On the NeXT, cc -E runs the code through the compiler's parser,
4560 # not just through cpp. "Syntax error" is here to catch this case.
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #ifdef __STDC__
4568 # include <limits.h>
4569 #else
4570 # include <assert.h>
4571 #endif
4572 Syntax error
4573 _ACEOF
4574 if { (ac_try="$ac_cpp conftest.$ac_ext"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev/null && {
4587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4589 }; then
4591 else
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 # Broken: fails on valid input.
4596 continue
4599 rm -f conftest.err conftest.$ac_ext
4601 # OK, works on sane cases. Now check whether nonexistent headers
4602 # can be detected and how.
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 #include <ac_nonexistent.h>
4610 _ACEOF
4611 if { (ac_try="$ac_cpp conftest.$ac_ext"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } >/dev/null && {
4624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 }; then
4627 # Broken: success on invalid input.
4628 continue
4629 else
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 # Passes both tests.
4634 ac_preproc_ok=:
4635 break
4638 rm -f conftest.err conftest.$ac_ext
4640 done
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.err conftest.$ac_ext
4643 if $ac_preproc_ok; then
4644 break
4647 done
4648 ac_cv_prog_CPP=$CPP
4651 CPP=$ac_cv_prog_CPP
4652 else
4653 ac_cv_prog_CPP=$CPP
4655 { echo "$as_me:$LINENO: result: $CPP" >&5
4656 echo "${ECHO_T}$CPP" >&6; }
4657 ac_preproc_ok=false
4658 for ac_c_preproc_warn_flag in '' yes
4660 # Use a header file that comes with gcc, so configuring glibc
4661 # with a fresh cross-compiler works.
4662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4663 # <limits.h> exists even on freestanding compilers.
4664 # On the NeXT, cc -E runs the code through the compiler's parser,
4665 # not just through cpp. "Syntax error" is here to catch this case.
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 #ifdef __STDC__
4673 # include <limits.h>
4674 #else
4675 # include <assert.h>
4676 #endif
4677 Syntax error
4678 _ACEOF
4679 if { (ac_try="$ac_cpp conftest.$ac_ext"
4680 case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } >/dev/null && {
4692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 }; then
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 # Broken: fails on valid input.
4701 continue
4704 rm -f conftest.err conftest.$ac_ext
4706 # OK, works on sane cases. Now check whether nonexistent headers
4707 # can be detected and how.
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #include <ac_nonexistent.h>
4715 _ACEOF
4716 if { (ac_try="$ac_cpp conftest.$ac_ext"
4717 case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4720 esac
4721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null && {
4729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730 test ! -s conftest.err
4731 }; then
4732 # Broken: success on invalid input.
4733 continue
4734 else
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4738 # Passes both tests.
4739 ac_preproc_ok=:
4740 break
4743 rm -f conftest.err conftest.$ac_ext
4745 done
4746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747 rm -f conftest.err conftest.$ac_ext
4748 if $ac_preproc_ok; then
4750 else
4751 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4752 See \`config.log' for more details." >&5
4753 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4754 See \`config.log' for more details." >&2;}
4755 { (exit 1); exit 1; }; }
4758 ac_ext=c
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4766 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4767 if test "${ac_cv_header_stdc+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 #include <stdlib.h>
4777 #include <stdarg.h>
4778 #include <string.h>
4779 #include <float.h>
4782 main ()
4786 return 0;
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4806 ac_cv_header_stdc=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 ac_cv_header_stdc=no
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 if test $ac_cv_header_stdc = yes; then
4817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #include <string.h>
4826 _ACEOF
4827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4828 $EGREP "memchr" >/dev/null 2>&1; then
4830 else
4831 ac_cv_header_stdc=no
4833 rm -f conftest*
4837 if test $ac_cv_header_stdc = yes; then
4838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 #include <stdlib.h>
4847 _ACEOF
4848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4849 $EGREP "free" >/dev/null 2>&1; then
4851 else
4852 ac_cv_header_stdc=no
4854 rm -f conftest*
4858 if test $ac_cv_header_stdc = yes; then
4859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4860 if test "$cross_compiling" = yes; then
4862 else
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <ctype.h>
4870 #include <stdlib.h>
4871 #if ((' ' & 0x0FF) == 0x020)
4872 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4873 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4874 #else
4875 # define ISLOWER(c) \
4876 (('a' <= (c) && (c) <= 'i') \
4877 || ('j' <= (c) && (c) <= 'r') \
4878 || ('s' <= (c) && (c) <= 'z'))
4879 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4880 #endif
4882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4884 main ()
4886 int i;
4887 for (i = 0; i < 256; i++)
4888 if (XOR (islower (i), ISLOWER (i))
4889 || toupper (i) != TOUPPER (i))
4890 return 2;
4891 return 0;
4893 _ACEOF
4894 rm -f conftest$ac_exeext
4895 if { (ac_try="$ac_link"
4896 case "(($ac_try" in
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4899 esac
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901 (eval "$ac_link") 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4905 { (case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_try") 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4915 else
4916 echo "$as_me: program exited with status $ac_status" >&5
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ( exit $ac_status )
4921 ac_cv_header_stdc=no
4923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4929 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4930 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4931 if test $ac_cv_header_stdc = yes; then
4933 cat >>confdefs.h <<\_ACEOF
4934 #define STDC_HEADERS 1
4935 _ACEOF
4939 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4949 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4950 inttypes.h stdint.h unistd.h
4952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4966 #include <$ac_header>
4967 _ACEOF
4968 rm -f conftest.$ac_objext
4969 if { (ac_try="$ac_compile"
4970 case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973 esac
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_compile") 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } && {
4982 test -z "$ac_c_werror_flag" ||
4983 test ! -s conftest.err
4984 } && test -s conftest.$ac_objext; then
4985 eval "$as_ac_Header=yes"
4986 else
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4990 eval "$as_ac_Header=no"
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 ac_res=`eval echo '${'$as_ac_Header'}'`
4996 { echo "$as_me:$LINENO: result: $ac_res" >&5
4997 echo "${ECHO_T}$ac_res" >&6; }
4998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4999 cat >>confdefs.h <<_ACEOF
5000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5001 _ACEOF
5005 done
5009 for ac_header in dlfcn.h
5011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 ac_res=`eval echo '${'$as_ac_Header'}'`
5019 { echo "$as_me:$LINENO: result: $ac_res" >&5
5020 echo "${ECHO_T}$ac_res" >&6; }
5021 else
5022 # Is the header compilable?
5023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 $ac_includes_default
5032 #include <$ac_header>
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (ac_try="$ac_compile"
5036 case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compile") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && {
5048 test -z "$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 } && test -s conftest.$ac_objext; then
5051 ac_header_compiler=yes
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 ac_header_compiler=no
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5061 echo "${ECHO_T}$ac_header_compiler" >&6; }
5063 # Is the header present?
5064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 #include <$ac_header>
5073 _ACEOF
5074 if { (ac_try="$ac_cpp conftest.$ac_ext"
5075 case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078 esac
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null && {
5087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 }; then
5090 ac_header_preproc=yes
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 ac_header_preproc=no
5098 rm -f conftest.err conftest.$ac_ext
5099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5100 echo "${ECHO_T}$ac_header_preproc" >&6; }
5102 # So? What about this header?
5103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5104 yes:no: )
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5109 ac_header_preproc=yes
5111 no:yes:* )
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5126 esac
5127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 eval "$as_ac_Header=\$ac_header_preproc"
5134 ac_res=`eval echo '${'$as_ac_Header'}'`
5135 { echo "$as_me:$LINENO: result: $ac_res" >&5
5136 echo "${ECHO_T}$ac_res" >&6; }
5139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5140 cat >>confdefs.h <<_ACEOF
5141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5142 _ACEOF
5146 done
5148 ac_ext=cpp
5149 ac_cpp='$CXXCPP $CPPFLAGS'
5150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5153 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5154 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5155 if test -z "$CXXCPP"; then
5156 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 # Double quotes because CXXCPP needs to be expanded
5160 for CXXCPP in "$CXX -E" "/lib/cpp"
5162 ac_preproc_ok=false
5163 for ac_cxx_preproc_warn_flag in '' yes
5165 # Use a header file that comes with gcc, so configuring glibc
5166 # with a fresh cross-compiler works.
5167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5168 # <limits.h> exists even on freestanding compilers.
5169 # On the NeXT, cc -E runs the code through the compiler's parser,
5170 # not just through cpp. "Syntax error" is here to catch this case.
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 #ifdef __STDC__
5178 # include <limits.h>
5179 #else
5180 # include <assert.h>
5181 #endif
5182 Syntax error
5183 _ACEOF
5184 if { (ac_try="$ac_cpp conftest.$ac_ext"
5185 case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5198 test ! -s conftest.err
5199 }; then
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 # Broken: fails on valid input.
5206 continue
5209 rm -f conftest.err conftest.$ac_ext
5211 # OK, works on sane cases. Now check whether nonexistent headers
5212 # can be detected and how.
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <ac_nonexistent.h>
5220 _ACEOF
5221 if { (ac_try="$ac_cpp conftest.$ac_ext"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } >/dev/null && {
5234 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5235 test ! -s conftest.err
5236 }; then
5237 # Broken: success on invalid input.
5238 continue
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 # Passes both tests.
5244 ac_preproc_ok=:
5245 break
5248 rm -f conftest.err conftest.$ac_ext
5250 done
5251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5252 rm -f conftest.err conftest.$ac_ext
5253 if $ac_preproc_ok; then
5254 break
5257 done
5258 ac_cv_prog_CXXCPP=$CXXCPP
5261 CXXCPP=$ac_cv_prog_CXXCPP
5262 else
5263 ac_cv_prog_CXXCPP=$CXXCPP
5265 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5266 echo "${ECHO_T}$CXXCPP" >&6; }
5267 ac_preproc_ok=false
5268 for ac_cxx_preproc_warn_flag in '' yes
5270 # Use a header file that comes with gcc, so configuring glibc
5271 # with a fresh cross-compiler works.
5272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5273 # <limits.h> exists even on freestanding compilers.
5274 # On the NeXT, cc -E runs the code through the compiler's parser,
5275 # not just through cpp. "Syntax error" is here to catch this case.
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #ifdef __STDC__
5283 # include <limits.h>
5284 #else
5285 # include <assert.h>
5286 #endif
5287 Syntax error
5288 _ACEOF
5289 if { (ac_try="$ac_cpp conftest.$ac_ext"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } >/dev/null && {
5302 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5303 test ! -s conftest.err
5304 }; then
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 # Broken: fails on valid input.
5311 continue
5314 rm -f conftest.err conftest.$ac_ext
5316 # OK, works on sane cases. Now check whether nonexistent headers
5317 # can be detected and how.
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 #include <ac_nonexistent.h>
5325 _ACEOF
5326 if { (ac_try="$ac_cpp conftest.$ac_ext"
5327 case "(($ac_try" in
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5330 esac
5331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } >/dev/null && {
5339 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5340 test ! -s conftest.err
5341 }; then
5342 # Broken: success on invalid input.
5343 continue
5344 else
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 # Passes both tests.
5349 ac_preproc_ok=:
5350 break
5353 rm -f conftest.err conftest.$ac_ext
5355 done
5356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5357 rm -f conftest.err conftest.$ac_ext
5358 if $ac_preproc_ok; then
5360 else
5361 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5362 See \`config.log' for more details." >&5
5363 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5364 See \`config.log' for more details." >&2;}
5365 { (exit 1); exit 1; }; }
5368 ac_ext=cpp
5369 ac_cpp='$CXXCPP $CPPFLAGS'
5370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5375 ac_ext=f
5376 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5377 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5379 if test -n "$ac_tool_prefix"; then
5380 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
5382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5386 if test "${ac_cv_prog_F77+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 if test -n "$F77"; then
5390 ac_cv_prog_F77="$F77" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5403 done
5404 done
5405 IFS=$as_save_IFS
5409 F77=$ac_cv_prog_F77
5410 if test -n "$F77"; then
5411 { echo "$as_me:$LINENO: result: $F77" >&5
5412 echo "${ECHO_T}$F77" >&6; }
5413 else
5414 { echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6; }
5419 test -n "$F77" && break
5420 done
5422 if test -z "$F77"; then
5423 ac_ct_F77=$F77
5424 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
5426 # Extract the first word of "$ac_prog", so it can be a program name with args.
5427 set dummy $ac_prog; ac_word=$2
5428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5430 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433 if test -n "$ac_ct_F77"; then
5434 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_ac_ct_F77="$ac_prog"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5447 done
5448 done
5449 IFS=$as_save_IFS
5453 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5454 if test -n "$ac_ct_F77"; then
5455 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5456 echo "${ECHO_T}$ac_ct_F77" >&6; }
5457 else
5458 { echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6; }
5463 test -n "$ac_ct_F77" && break
5464 done
5466 if test "x$ac_ct_F77" = x; then
5467 F77=""
5468 else
5469 case $cross_compiling:$ac_tool_warned in
5470 yes:)
5471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5472 whose name does not start with the host triplet. If you think this
5473 configuration is useful to you, please write to autoconf@gnu.org." >&5
5474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5475 whose name does not start with the host triplet. If you think this
5476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5477 ac_tool_warned=yes ;;
5478 esac
5479 F77=$ac_ct_F77
5484 # Provide some information about the compiler.
5485 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5486 ac_compiler=`set X $ac_compile; echo $2`
5487 { (ac_try="$ac_compiler --version >&5"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compiler --version >&5") 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }
5497 { (ac_try="$ac_compiler -v >&5"
5498 case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compiler -v >&5") 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }
5507 { (ac_try="$ac_compiler -V >&5"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compiler -V >&5") 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }
5517 rm -f a.out
5519 # If we don't use `.F' as extension, the preprocessor is not run on the
5520 # input file. (Note that this only needs to work for GNU compilers.)
5521 ac_save_ext=$ac_ext
5522 ac_ext=F
5523 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5524 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5525 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 cat >conftest.$ac_ext <<_ACEOF
5529 program main
5530 #ifndef __GNUC__
5531 choke me
5532 #endif
5535 _ACEOF
5536 rm -f conftest.$ac_objext
5537 if { (ac_try="$ac_compile"
5538 case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_f77_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5553 ac_compiler_gnu=yes
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 ac_compiler_gnu=no
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5565 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5566 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5567 ac_ext=$ac_save_ext
5568 ac_test_FFLAGS=${FFLAGS+set}
5569 ac_save_FFLAGS=$FFLAGS
5570 FFLAGS=
5571 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5572 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5573 if test "${ac_cv_prog_f77_g+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 FFLAGS=-g
5577 cat >conftest.$ac_ext <<_ACEOF
5578 program main
5581 _ACEOF
5582 rm -f conftest.$ac_objext
5583 if { (ac_try="$ac_compile"
5584 case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_compile") 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } && {
5596 test -z "$ac_f77_werror_flag" ||
5597 test ! -s conftest.err
5598 } && test -s conftest.$ac_objext; then
5599 ac_cv_prog_f77_g=yes
5600 else
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5604 ac_cv_prog_f77_g=no
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5611 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5612 if test "$ac_test_FFLAGS" = set; then
5613 FFLAGS=$ac_save_FFLAGS
5614 elif test $ac_cv_prog_f77_g = yes; then
5615 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5616 FFLAGS="-g -O2"
5617 else
5618 FFLAGS="-g"
5620 else
5621 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5622 FFLAGS="-O2"
5623 else
5624 FFLAGS=
5628 G77=`test $ac_compiler_gnu = yes && echo yes`
5629 ac_ext=c
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5639 # find the maximum length of command line arguments
5640 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5641 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5642 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5646 testring="ABCD"
5648 case $build_os in
5649 msdosdjgpp*)
5650 # On DJGPP, this test can blow up pretty badly due to problems in libc
5651 # (any single argument exceeding 2000 bytes causes a buffer overrun
5652 # during glob expansion). Even if it were fixed, the result of this
5653 # check would be larger than it should be.
5654 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5657 gnu*)
5658 # Under GNU Hurd, this test is not required because there is
5659 # no limit to the length of command line arguments.
5660 # Libtool will interpret -1 as no limit whatsoever
5661 lt_cv_sys_max_cmd_len=-1;
5664 cygwin* | mingw*)
5665 # On Win9x/ME, this test blows up -- it succeeds, but takes
5666 # about 5 minutes as the teststring grows exponentially.
5667 # Worse, since 9x/ME are not pre-emptively multitasking,
5668 # you end up with a "frozen" computer, even though with patience
5669 # the test eventually succeeds (with a max line length of 256k).
5670 # Instead, let's just punt: use the minimum linelength reported by
5671 # all of the supported platforms: 8192 (on NT/2K/XP).
5672 lt_cv_sys_max_cmd_len=8192;
5675 amigaos* | morphos*)
5676 # On AmigaOS with pdksh, this test takes hours, literally.
5677 # So we just punt and use a minimum line length of 8192.
5678 lt_cv_sys_max_cmd_len=8192;
5682 # If test is not a shell built-in, we'll probably end up computing a
5683 # maximum length that is only half of the actual maximum length, but
5684 # we can't tell.
5685 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5686 = "XX$testring") >/dev/null 2>&1 &&
5687 new_result=`expr "X$testring" : ".*" 2>&1` &&
5688 lt_cv_sys_max_cmd_len=$new_result &&
5689 test $i != 17 # 1/2 MB should be enough
5691 i=`expr $i + 1`
5692 testring=$testring$testring
5693 done
5694 testring=
5695 # Add a significant safety factor because C++ compilers can tack on massive
5696 # amounts of additional arguments before passing them to the linker.
5697 # It appears as though 1/2 is a usable value.
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5700 esac
5704 if test -n $lt_cv_sys_max_cmd_len ; then
5705 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5706 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5707 else
5708 { echo "$as_me:$LINENO: result: none" >&5
5709 echo "${ECHO_T}none" >&6; }
5715 # Check for command to grab the raw symbol name followed by C symbol from nm.
5716 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5717 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5718 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5722 # These are sane defaults that work on at least a few old systems.
5723 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5725 # Character class describing NM global symbol codes.
5726 symcode='[BCDEGRST]'
5728 # Regexp to match symbols that can be accessed directly from C.
5729 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5731 # Transform the above into a raw symbol and a C symbol.
5732 symxfrm='\1 \2\3 \3'
5734 # Transform an extracted symbol line into a proper C declaration
5735 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5737 # Transform an extracted symbol line into symbol name and symbol address
5738 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'"
5740 # Define system-specific variables.
5741 case $host_os in
5742 aix*)
5743 symcode='[BCDT]'
5745 cygwin* | mingw* | pw32*)
5746 symcode='[ABCDGISTW]'
5748 hpux*) # Its linker distinguishes data from code symbols
5749 if test "$host_cpu" = ia64; then
5750 symcode='[ABCDEGRST]'
5752 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5753 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'"
5755 irix* | nonstopux*)
5756 symcode='[BCDEGRST]'
5758 osf*)
5759 symcode='[BCDEGQRST]'
5761 solaris* | sysv5*)
5762 symcode='[BDRT]'
5764 sysv4)
5765 symcode='[DFNSTU]'
5767 esac
5769 # Handle CRLF in mingw tool chain
5770 opt_cr=
5771 case $build_os in
5772 mingw*)
5773 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5775 esac
5777 # If we're using GNU nm, then use its standard symbol codes.
5778 case `$NM -V 2>&1` in
5779 *GNU* | *'with BFD'*)
5780 symcode='[ABCDGIRSTW]' ;;
5781 esac
5783 # Try without a prefix undercore, then with it.
5784 for ac_symprfx in "" "_"; do
5786 # Write the raw and C identifiers.
5787 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5789 # Check to see that the pipe works correctly.
5790 pipe_works=no
5792 rm -f conftest*
5793 cat > conftest.$ac_ext <<EOF
5794 #ifdef __cplusplus
5795 extern "C" {
5796 #endif
5797 char nm_test_var;
5798 void nm_test_func(){}
5799 #ifdef __cplusplus
5801 #endif
5802 int main(){nm_test_var='a';nm_test_func();return(0);}
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806 (eval $ac_compile) 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; then
5810 # Now try to grab the symbols.
5811 nlist=conftest.nm
5812 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5813 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && test -s "$nlist"; then
5817 # Try sorting and uniquifying the output.
5818 if sort "$nlist" | uniq > "$nlist"T; then
5819 mv -f "$nlist"T "$nlist"
5820 else
5821 rm -f "$nlist"T
5824 # Make sure that we snagged all the symbols we need.
5825 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5826 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5827 cat <<EOF > conftest.$ac_ext
5828 #ifdef __cplusplus
5829 extern "C" {
5830 #endif
5833 # Now generate the symbol file.
5834 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5836 cat <<EOF >> conftest.$ac_ext
5837 #if defined (__STDC__) && __STDC__
5838 # define lt_ptr_t void *
5839 #else
5840 # define lt_ptr_t char *
5841 # define const
5842 #endif
5844 /* The mapping between symbol names and symbols. */
5845 const struct {
5846 const char *name;
5847 lt_ptr_t address;
5849 lt_preloaded_symbols[] =
5852 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5853 cat <<\EOF >> conftest.$ac_ext
5854 {0, (lt_ptr_t) 0}
5857 #ifdef __cplusplus
5859 #endif
5861 # Now try linking the two files.
5862 mv conftest.$ac_objext conftstm.$ac_objext
5863 lt_save_LIBS="$LIBS"
5864 lt_save_CFLAGS="$CFLAGS"
5865 LIBS="conftstm.$ac_objext"
5866 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5868 (eval $ac_link) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5872 pipe_works=yes
5874 LIBS="$lt_save_LIBS"
5875 CFLAGS="$lt_save_CFLAGS"
5876 else
5877 echo "cannot find nm_test_func in $nlist" >&5
5879 else
5880 echo "cannot find nm_test_var in $nlist" >&5
5882 else
5883 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5885 else
5886 echo "$progname: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5889 rm -f conftest* conftst*
5891 # Do not use the global_symbol_pipe unless it works.
5892 if test "$pipe_works" = yes; then
5893 break
5894 else
5895 lt_cv_sys_global_symbol_pipe=
5897 done
5901 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5902 lt_cv_sys_global_symbol_to_cdecl=
5904 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5905 { echo "$as_me:$LINENO: result: failed" >&5
5906 echo "${ECHO_T}failed" >&6; }
5907 else
5908 { echo "$as_me:$LINENO: result: ok" >&5
5909 echo "${ECHO_T}ok" >&6; }
5912 { echo "$as_me:$LINENO: checking for objdir" >&5
5913 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5914 if test "${lt_cv_objdir+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917 rm -f .libs 2>/dev/null
5918 mkdir .libs 2>/dev/null
5919 if test -d .libs; then
5920 lt_cv_objdir=.libs
5921 else
5922 # MS-DOS does not allow filenames that begin with a dot.
5923 lt_cv_objdir=_libs
5925 rmdir .libs 2>/dev/null
5927 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5928 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5929 objdir=$lt_cv_objdir
5935 case $host_os in
5936 aix3*)
5937 # AIX sometimes has problems with the GCC collect2 program. For some
5938 # reason, if we set the COLLECT_NAMES environment variable, the problems
5939 # vanish in a puff of smoke.
5940 if test "X${COLLECT_NAMES+set}" != Xset; then
5941 COLLECT_NAMES=
5942 export COLLECT_NAMES
5945 esac
5947 # Sed substitution that helps us do robust quoting. It backslashifies
5948 # metacharacters that are still active within double-quoted strings.
5949 Xsed='sed -e s/^X//'
5950 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5952 # Same as above, but do not quote variable references.
5953 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5955 # Sed substitution to delay expansion of an escaped shell variable in a
5956 # double_quote_subst'ed string.
5957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5959 # Sed substitution to avoid accidental globbing in evaled expressions
5960 no_glob_subst='s/\*/\\\*/g'
5962 # Constants:
5963 rm="rm -f"
5965 # Global variables:
5966 default_ofile=libtool
5967 can_build_shared=yes
5969 # All known linkers require a `.a' archive for static linking (except M$VC,
5970 # which needs '.lib').
5971 libext=a
5972 ltmain="$ac_aux_dir/ltmain.sh"
5973 ofile="$default_ofile"
5974 with_gnu_ld="$lt_cv_prog_gnu_ld"
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}ar; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_prog_AR+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 if test -n "$AR"; then
5985 ac_cv_prog_AR="$AR" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_AR="${ac_tool_prefix}ar"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5998 done
5999 done
6000 IFS=$as_save_IFS
6004 AR=$ac_cv_prog_AR
6005 if test -n "$AR"; then
6006 { echo "$as_me:$LINENO: result: $AR" >&5
6007 echo "${ECHO_T}$AR" >&6; }
6008 else
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6015 if test -z "$ac_cv_prog_AR"; then
6016 ac_ct_AR=$AR
6017 # Extract the first word of "ar", so it can be a program name with args.
6018 set dummy ar; ac_word=$2
6019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6021 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 if test -n "$ac_ct_AR"; then
6025 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034 ac_cv_prog_ac_ct_AR="ar"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6038 done
6039 done
6040 IFS=$as_save_IFS
6044 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6045 if test -n "$ac_ct_AR"; then
6046 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6047 echo "${ECHO_T}$ac_ct_AR" >&6; }
6048 else
6049 { echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6; }
6053 if test "x$ac_ct_AR" = x; then
6054 AR="false"
6055 else
6056 case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6059 whose name does not start with the host triplet. If you think this
6060 configuration is useful to you, please write to autoconf@gnu.org." >&5
6061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6062 whose name does not start with the host triplet. If you think this
6063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6064 ac_tool_warned=yes ;;
6065 esac
6066 AR=$ac_ct_AR
6068 else
6069 AR="$ac_cv_prog_AR"
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 if test -n "$RANLIB"; then
6081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6094 done
6095 done
6096 IFS=$as_save_IFS
6100 RANLIB=$ac_cv_prog_RANLIB
6101 if test -n "$RANLIB"; then
6102 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6103 echo "${ECHO_T}$RANLIB" >&6; }
6104 else
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6111 if test -z "$ac_cv_prog_RANLIB"; then
6112 ac_ct_RANLIB=$RANLIB
6113 # Extract the first word of "ranlib", so it can be a program name with args.
6114 set dummy ranlib; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 if test -n "$ac_ct_RANLIB"; then
6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_ac_ct_RANLIB="ranlib"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6134 done
6135 done
6136 IFS=$as_save_IFS
6140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141 if test -n "$ac_ct_RANLIB"; then
6142 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6144 else
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6149 if test "x$ac_ct_RANLIB" = x; then
6150 RANLIB=":"
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155 whose name does not start with the host triplet. If you think this
6156 configuration is useful to you, please write to autoconf@gnu.org." >&5
6157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158 whose name does not start with the host triplet. If you think this
6159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162 RANLIB=$ac_ct_RANLIB
6164 else
6165 RANLIB="$ac_cv_prog_RANLIB"
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}strip; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_prog_STRIP+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 if test -n "$STRIP"; then
6177 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6190 done
6191 done
6192 IFS=$as_save_IFS
6196 STRIP=$ac_cv_prog_STRIP
6197 if test -n "$STRIP"; then
6198 { echo "$as_me:$LINENO: result: $STRIP" >&5
6199 echo "${ECHO_T}$STRIP" >&6; }
6200 else
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6207 if test -z "$ac_cv_prog_STRIP"; then
6208 ac_ct_STRIP=$STRIP
6209 # Extract the first word of "strip", so it can be a program name with args.
6210 set dummy strip; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 if test -n "$ac_ct_STRIP"; then
6217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_STRIP="strip"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6230 done
6231 done
6232 IFS=$as_save_IFS
6236 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6237 if test -n "$ac_ct_STRIP"; then
6238 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6239 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6240 else
6241 { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6245 if test "x$ac_ct_STRIP" = x; then
6246 STRIP=":"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251 whose name does not start with the host triplet. If you think this
6252 configuration is useful to you, please write to autoconf@gnu.org." >&5
6253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet. If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 STRIP=$ac_ct_STRIP
6260 else
6261 STRIP="$ac_cv_prog_STRIP"
6265 old_CC="$CC"
6266 old_CFLAGS="$CFLAGS"
6268 # Set sane defaults for various variables
6269 test -z "$AR" && AR=ar
6270 test -z "$AR_FLAGS" && AR_FLAGS=cru
6271 test -z "$AS" && AS=as
6272 test -z "$CC" && CC=cc
6273 test -z "$LTCC" && LTCC=$CC
6274 test -z "$DLLTOOL" && DLLTOOL=dlltool
6275 test -z "$LD" && LD=ld
6276 test -z "$LN_S" && LN_S="ln -s"
6277 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6278 test -z "$NM" && NM=nm
6279 test -z "$SED" && SED=sed
6280 test -z "$OBJDUMP" && OBJDUMP=objdump
6281 test -z "$RANLIB" && RANLIB=:
6282 test -z "$STRIP" && STRIP=:
6283 test -z "$ac_objext" && ac_objext=o
6285 # Determine commands to create old-style static archives.
6286 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6287 old_postinstall_cmds='chmod 644 $oldlib'
6288 old_postuninstall_cmds=
6290 if test -n "$RANLIB"; then
6291 case $host_os in
6292 openbsd*)
6293 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6296 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6298 esac
6299 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6302 # Only perform the check for file, if the check method requires it
6303 case $deplibs_check_method in
6304 file_magic*)
6305 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6306 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6307 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6308 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 case $MAGIC_CMD in
6312 [\\/*] | ?:[\\/]*)
6313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6316 lt_save_MAGIC_CMD="$MAGIC_CMD"
6317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6319 for ac_dir in $ac_dummy; do
6320 IFS="$lt_save_ifs"
6321 test -z "$ac_dir" && ac_dir=.
6322 if test -f $ac_dir/${ac_tool_prefix}file; then
6323 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6324 if test -n "$file_magic_test_file"; then
6325 case $deplibs_check_method in
6326 "file_magic "*)
6327 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6330 $EGREP "$file_magic_regex" > /dev/null; then
6332 else
6333 cat <<EOF 1>&2
6335 *** Warning: the command libtool uses to detect shared libraries,
6336 *** $file_magic_cmd, produces output that libtool cannot recognize.
6337 *** The result is that libtool may fail to recognize shared libraries
6338 *** as such. This will affect the creation of libtool libraries that
6339 *** depend on shared libraries, but programs linked with such libtool
6340 *** libraries will work regardless of this problem. Nevertheless, you
6341 *** may want to report the problem to your system manager and/or to
6342 *** bug-libtool@gnu.org
6345 fi ;;
6346 esac
6348 break
6350 done
6351 IFS="$lt_save_ifs"
6352 MAGIC_CMD="$lt_save_MAGIC_CMD"
6354 esac
6357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6358 if test -n "$MAGIC_CMD"; then
6359 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6360 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6361 else
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6366 if test -z "$lt_cv_path_MAGIC_CMD"; then
6367 if test -n "$ac_tool_prefix"; then
6368 { echo "$as_me:$LINENO: checking for file" >&5
6369 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6370 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 case $MAGIC_CMD in
6374 [\\/*] | ?:[\\/]*)
6375 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6378 lt_save_MAGIC_CMD="$MAGIC_CMD"
6379 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6380 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6381 for ac_dir in $ac_dummy; do
6382 IFS="$lt_save_ifs"
6383 test -z "$ac_dir" && ac_dir=.
6384 if test -f $ac_dir/file; then
6385 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6386 if test -n "$file_magic_test_file"; then
6387 case $deplibs_check_method in
6388 "file_magic "*)
6389 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6391 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6392 $EGREP "$file_magic_regex" > /dev/null; then
6394 else
6395 cat <<EOF 1>&2
6397 *** Warning: the command libtool uses to detect shared libraries,
6398 *** $file_magic_cmd, produces output that libtool cannot recognize.
6399 *** The result is that libtool may fail to recognize shared libraries
6400 *** as such. This will affect the creation of libtool libraries that
6401 *** depend on shared libraries, but programs linked with such libtool
6402 *** libraries will work regardless of this problem. Nevertheless, you
6403 *** may want to report the problem to your system manager and/or to
6404 *** bug-libtool@gnu.org
6407 fi ;;
6408 esac
6410 break
6412 done
6413 IFS="$lt_save_ifs"
6414 MAGIC_CMD="$lt_save_MAGIC_CMD"
6416 esac
6419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6420 if test -n "$MAGIC_CMD"; then
6421 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6422 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6423 else
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6428 else
6429 MAGIC_CMD=:
6435 esac
6437 enable_dlopen=yes
6438 enable_win32_dll=no
6440 # Check whether --enable-libtool-lock was given.
6441 if test "${enable_libtool_lock+set}" = set; then
6442 enableval=$enable_libtool_lock;
6445 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6448 # Check whether --with-pic was given.
6449 if test "${with_pic+set}" = set; then
6450 withval=$with_pic; pic_mode="$withval"
6451 else
6452 pic_mode=default
6455 test -z "$pic_mode" && pic_mode=default
6457 # Use C for the default configuration in the libtool script
6458 tagname=
6459 lt_save_CC="$CC"
6460 ac_ext=c
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467 # Source file extension for C test sources.
6468 ac_ext=c
6470 # Object file extension for compiled C test sources.
6471 objext=o
6472 objext=$objext
6474 # Code to be used in simple compile tests
6475 lt_simple_compile_test_code="int some_variable = 0;\n"
6477 # Code to be used in simple link tests
6478 lt_simple_link_test_code='int main(){return(0);}\n'
6481 # If no C compiler was specified, use CC.
6482 LTCC=${LTCC-"$CC"}
6484 # Allow CC to be a program name with arguments.
6485 compiler=$CC
6489 # Check for any special shared library compilation flags.
6491 lt_prog_cc_shlib=
6492 if test "$GCC" = no; then
6493 case $host_os in
6494 sco3.2v5*)
6495 lt_prog_cc_shlib='-belf'
6497 esac
6499 if test -n "$lt_prog_cc_shlib"; then
6500 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6501 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6502 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6503 else
6504 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6505 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6506 lt_cv_prog_cc_can_build_shared=no
6512 # Check to make sure the static flag actually works.
6514 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6515 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6516 if test "${lt_prog_compiler_static_works+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519 lt_prog_compiler_static_works=no
6520 save_LDFLAGS="$LDFLAGS"
6521 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6522 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6523 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6524 # The compiler can only warn and ignore the option if not recognized
6525 # So say no if there are warnings
6526 if test -s conftest.err; then
6527 # Append any errors to the config.log.
6528 cat conftest.err 1>&5
6529 else
6530 lt_prog_compiler_static_works=yes
6533 $rm conftest*
6534 LDFLAGS="$save_LDFLAGS"
6537 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6538 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6540 if test x"$lt_prog_compiler_static_works" = xyes; then
6542 else
6543 lt_prog_compiler_static=
6548 ## CAVEAT EMPTOR:
6549 ## There is no encapsulation within the following macros, do not change
6550 ## the running order or otherwise move them around unless you know exactly
6551 ## what you are doing...
6553 lt_prog_compiler_no_builtin_flag=
6555 if test "$GCC" = yes; then
6556 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6559 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6560 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6561 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 lt_cv_prog_compiler_rtti_exceptions=no
6565 ac_outfile=conftest.$ac_objext
6566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6567 lt_compiler_flag="-fno-rtti -fno-exceptions"
6568 # Insert the option either (1) after the last *FLAGS variable, or
6569 # (2) before a word containing "conftest.", or (3) at the end.
6570 # Note that $ac_compile itself does not contain backslashes and begins
6571 # with a dollar sign (not a hyphen), so the echo should work correctly.
6572 # The option is referenced via a variable to avoid confusing sed.
6573 lt_compile=`echo "$ac_compile" | $SED \
6574 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6576 -e 's:$: $lt_compiler_flag:'`
6577 (eval echo "\"\$as_me:6577: $lt_compile\"" >&5)
6578 (eval "$lt_compile" 2>conftest.err)
6579 ac_status=$?
6580 cat conftest.err >&5
6581 echo "$as_me:6581: \$? = $ac_status" >&5
6582 if (exit $ac_status) && test -s "$ac_outfile"; then
6583 # The compiler can only warn and ignore the option if not recognized
6584 # So say no if there are warnings
6585 if test ! -s conftest.err; then
6586 lt_cv_prog_compiler_rtti_exceptions=yes
6589 $rm conftest*
6592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6593 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6595 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6596 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6597 else
6603 lt_prog_compiler_wl=
6604 lt_prog_compiler_pic=
6605 lt_prog_compiler_static=
6607 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6608 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6610 if test "$GCC" = yes; then
6611 lt_prog_compiler_wl='-Wl,'
6612 lt_prog_compiler_static='-static'
6614 case $host_os in
6615 aix*)
6616 # All AIX code is PIC.
6617 if test "$host_cpu" = ia64; then
6618 # AIX 5 now supports IA64 processor
6619 lt_prog_compiler_static='-Bstatic'
6623 amigaos*)
6624 # FIXME: we need at least 68020 code to build shared libraries, but
6625 # adding the `-m68020' flag to GCC prevents building anything better,
6626 # like `-m68040'.
6627 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6630 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6631 # PIC is the default for these OSes.
6634 mingw* | pw32* | os2*)
6635 # This hack is so that the source file can tell whether it is being
6636 # built for inclusion in a dll (and should export symbols for example).
6637 lt_prog_compiler_pic='-DDLL_EXPORT'
6640 darwin* | rhapsody*)
6641 # PIC is the default on this platform
6642 # Common symbols not allowed in MH_DYLIB files
6643 lt_prog_compiler_pic='-fno-common'
6646 msdosdjgpp*)
6647 # Just because we use GCC doesn't mean we suddenly get shared libraries
6648 # on systems that don't support them.
6649 lt_prog_compiler_can_build_shared=no
6650 enable_shared=no
6653 sysv4*MP*)
6654 if test -d /usr/nec; then
6655 lt_prog_compiler_pic=-Kconform_pic
6659 hpux*)
6660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6661 # not for PA HP-UX.
6662 case "$host_cpu" in
6663 hppa*64*|ia64*)
6664 # +Z the default
6667 lt_prog_compiler_pic='-fPIC'
6669 esac
6673 lt_prog_compiler_pic='-fPIC'
6675 esac
6676 else
6677 # PORTME Check for flag to pass linker flags through the system compiler.
6678 case $host_os in
6679 aix*)
6680 lt_prog_compiler_wl='-Wl,'
6681 if test "$host_cpu" = ia64; then
6682 # AIX 5 now supports IA64 processor
6683 lt_prog_compiler_static='-Bstatic'
6684 else
6685 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6689 mingw* | pw32* | os2*)
6690 # This hack is so that the source file can tell whether it is being
6691 # built for inclusion in a dll (and should export symbols for example).
6692 lt_prog_compiler_pic='-DDLL_EXPORT'
6695 hpux9* | hpux10* | hpux11*)
6696 lt_prog_compiler_wl='-Wl,'
6697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6698 # not for PA HP-UX.
6699 case "$host_cpu" in
6700 hppa*64*|ia64*)
6701 # +Z the default
6704 lt_prog_compiler_pic='+Z'
6706 esac
6707 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6708 lt_prog_compiler_static='${wl}-a ${wl}archive'
6711 irix5* | irix6* | nonstopux*)
6712 lt_prog_compiler_wl='-Wl,'
6713 # PIC (with -KPIC) is the default.
6714 lt_prog_compiler_static='-non_shared'
6717 newsos6)
6718 lt_prog_compiler_pic='-KPIC'
6719 lt_prog_compiler_static='-Bstatic'
6722 linux*)
6723 case $CC in
6724 icc* | ecc*)
6725 lt_prog_compiler_wl='-Wl,'
6726 lt_prog_compiler_pic='-KPIC'
6727 lt_prog_compiler_static='-static'
6729 ccc*)
6730 lt_prog_compiler_wl='-Wl,'
6731 # All Alpha code is PIC.
6732 lt_prog_compiler_static='-non_shared'
6734 esac
6737 osf3* | osf4* | osf5*)
6738 lt_prog_compiler_wl='-Wl,'
6739 # All OSF/1 code is PIC.
6740 lt_prog_compiler_static='-non_shared'
6743 sco3.2v5*)
6744 lt_prog_compiler_pic='-Kpic'
6745 lt_prog_compiler_static='-dn'
6748 solaris*)
6749 lt_prog_compiler_wl='-Wl,'
6750 lt_prog_compiler_pic='-KPIC'
6751 lt_prog_compiler_static='-Bstatic'
6754 sunos4*)
6755 lt_prog_compiler_wl='-Qoption ld '
6756 lt_prog_compiler_pic='-PIC'
6757 lt_prog_compiler_static='-Bstatic'
6760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6761 lt_prog_compiler_wl='-Wl,'
6762 lt_prog_compiler_pic='-KPIC'
6763 lt_prog_compiler_static='-Bstatic'
6766 sysv4*MP*)
6767 if test -d /usr/nec ;then
6768 lt_prog_compiler_pic='-Kconform_pic'
6769 lt_prog_compiler_static='-Bstatic'
6773 uts4*)
6774 lt_prog_compiler_pic='-pic'
6775 lt_prog_compiler_static='-Bstatic'
6779 lt_prog_compiler_can_build_shared=no
6781 esac
6784 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6785 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6788 # Check to make sure the PIC flag actually works.
6790 if test -n "$lt_prog_compiler_pic"; then
6792 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6793 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6794 if test "${lt_prog_compiler_pic_works+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 lt_prog_compiler_pic_works=no
6798 ac_outfile=conftest.$ac_objext
6799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6800 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6801 # Insert the option either (1) after the last *FLAGS variable, or
6802 # (2) before a word containing "conftest.", or (3) at the end.
6803 # Note that $ac_compile itself does not contain backslashes and begins
6804 # with a dollar sign (not a hyphen), so the echo should work correctly.
6805 # The option is referenced via a variable to avoid confusing sed.
6806 lt_compile=`echo "$ac_compile" | $SED \
6807 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6809 -e 's:$: $lt_compiler_flag:'`
6810 (eval echo "\"\$as_me:6810: $lt_compile\"" >&5)
6811 (eval "$lt_compile" 2>conftest.err)
6812 ac_status=$?
6813 cat conftest.err >&5
6814 echo "$as_me:6814: \$? = $ac_status" >&5
6815 if (exit $ac_status) && test -s "$ac_outfile"; then
6816 # The compiler can only warn and ignore the option if not recognized
6817 # So say no if there are warnings
6818 if test ! -s conftest.err; then
6819 lt_prog_compiler_pic_works=yes
6822 $rm conftest*
6825 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6826 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6828 if test x"$lt_prog_compiler_pic_works" = xyes; then
6829 case $lt_prog_compiler_pic in
6830 "" | " "*) ;;
6831 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6832 esac
6833 else
6834 lt_prog_compiler_pic=
6835 lt_prog_compiler_can_build_shared=no
6839 case "$host_os" in
6840 # For platforms which do not support PIC, -DPIC is meaningless:
6841 *djgpp*)
6842 lt_prog_compiler_pic=
6845 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6847 esac
6849 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6850 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6851 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 lt_cv_prog_compiler_c_o=no
6855 $rm -r conftest 2>/dev/null
6856 mkdir conftest
6857 cd conftest
6858 mkdir out
6859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6861 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6862 # that will create temporary files in the current directory regardless of
6863 # the output directory. Thus, making CWD read-only will cause this test
6864 # to fail, enabling locking or at least warning the user not to do parallel
6865 # builds.
6866 chmod -w .
6868 lt_compiler_flag="-o out/conftest2.$ac_objext"
6869 # Insert the option either (1) after the last *FLAGS variable, or
6870 # (2) before a word containing "conftest.", or (3) at the end.
6871 # Note that $ac_compile itself does not contain backslashes and begins
6872 # with a dollar sign (not a hyphen), so the echo should work correctly.
6873 lt_compile=`echo "$ac_compile" | $SED \
6874 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6876 -e 's:$: $lt_compiler_flag:'`
6877 (eval echo "\"\$as_me:6877: $lt_compile\"" >&5)
6878 (eval "$lt_compile" 2>out/conftest.err)
6879 ac_status=$?
6880 cat out/conftest.err >&5
6881 echo "$as_me:6881: \$? = $ac_status" >&5
6882 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6883 then
6884 # The compiler can only warn and ignore the option if not recognized
6885 # So say no if there are warnings
6886 if test ! -s out/conftest.err; then
6887 lt_cv_prog_compiler_c_o=yes
6890 chmod u+w .
6891 $rm conftest*
6892 # SGI C++ compiler will create directory out/ii_files/ for
6893 # template instantiation
6894 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6895 $rm out/* && rmdir out
6896 cd ..
6897 rmdir conftest
6898 $rm conftest*
6901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6905 hard_links="nottested"
6906 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6907 # do not overwrite the value of need_locks provided by the user
6908 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6909 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6910 hard_links=yes
6911 $rm conftest*
6912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6913 touch conftest.a
6914 ln conftest.a conftest.b 2>&5 || hard_links=no
6915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6916 { echo "$as_me:$LINENO: result: $hard_links" >&5
6917 echo "${ECHO_T}$hard_links" >&6; }
6918 if test "$hard_links" = no; then
6919 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6920 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6921 need_locks=warn
6923 else
6924 need_locks=no
6927 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6928 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6930 runpath_var=
6931 allow_undefined_flag=
6932 enable_shared_with_static_runtimes=no
6933 archive_cmds=
6934 archive_expsym_cmds=
6935 old_archive_From_new_cmds=
6936 old_archive_from_expsyms_cmds=
6937 export_dynamic_flag_spec=
6938 whole_archive_flag_spec=
6939 thread_safe_flag_spec=
6940 hardcode_libdir_flag_spec=
6941 hardcode_libdir_flag_spec_ld=
6942 hardcode_libdir_separator=
6943 hardcode_direct=no
6944 hardcode_minus_L=no
6945 hardcode_shlibpath_var=unsupported
6946 link_all_deplibs=unknown
6947 hardcode_automatic=no
6948 module_cmds=
6949 module_expsym_cmds=
6950 always_export_symbols=no
6951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6952 # include_expsyms should be a list of space-separated symbols to be *always*
6953 # included in the symbol list
6954 include_expsyms=
6955 # exclude_expsyms can be an extended regexp of symbols to exclude
6956 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6957 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6958 # as well as any symbol that contains `d'.
6959 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6960 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6961 # platforms (ab)use it in PIC code, but their linkers get confused if
6962 # the symbol is explicitly referenced. Since portable code cannot
6963 # rely on this symbol name, it's probably fine to never include it in
6964 # preloaded symbol tables.
6965 extract_expsyms_cmds=
6967 case $host_os in
6968 cygwin* | mingw* | pw32*)
6969 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6970 # When not using gcc, we currently assume that we are using
6971 # Microsoft Visual C++.
6972 if test "$GCC" != yes; then
6973 with_gnu_ld=no
6976 openbsd*)
6977 with_gnu_ld=no
6979 esac
6981 ld_shlibs=yes
6982 if test "$with_gnu_ld" = yes; then
6983 # If archive_cmds runs LD, not CC, wlarc should be empty
6984 wlarc='${wl}'
6986 # See if GNU ld supports shared libraries.
6987 case $host_os in
6988 aix3* | aix4* | aix5*)
6989 # On AIX/PPC, the GNU linker is very broken
6990 if test "$host_cpu" != ia64; then
6991 ld_shlibs=no
6992 cat <<EOF 1>&2
6994 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6995 *** to be unable to reliably create shared libraries on AIX.
6996 *** Therefore, libtool is disabling shared libraries support. If you
6997 *** really care for shared libraries, you may want to modify your PATH
6998 *** so that a non-GNU linker is found, and then restart.
7004 amigaos*)
7005 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)'
7006 hardcode_libdir_flag_spec='-L$libdir'
7007 hardcode_minus_L=yes
7009 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7010 # that the semantics of dynamic libraries on AmigaOS, at least up
7011 # to version 4, is to share data among multiple programs linked
7012 # with the same dynamic library. Since this doesn't match the
7013 # behavior of shared libraries on other platforms, we can't use
7014 # them.
7015 ld_shlibs=no
7018 beos*)
7019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7020 allow_undefined_flag=unsupported
7021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7022 # support --undefined. This deserves some investigation. FIXME
7023 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7024 else
7025 ld_shlibs=no
7029 cygwin* | mingw* | pw32*)
7030 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7031 # as there is no search path for DLLs.
7032 hardcode_libdir_flag_spec='-L$libdir'
7033 allow_undefined_flag=unsupported
7034 always_export_symbols=no
7035 enable_shared_with_static_runtimes=yes
7036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7038 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7040 # If the export-symbols file already is a .def file (1st line
7041 # is EXPORTS), use it as is; otherwise, prepend...
7042 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7043 cp $export_symbols $output_objdir/$soname.def;
7044 else
7045 echo EXPORTS > $output_objdir/$soname.def;
7046 cat $export_symbols >> $output_objdir/$soname.def;
7048 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7049 else
7050 ld_shlibs=no
7054 netbsd*)
7055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7056 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7057 wlarc=
7058 else
7059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7064 solaris* | sysv5*)
7065 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7066 ld_shlibs=no
7067 cat <<EOF 1>&2
7069 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7070 *** create shared libraries on Solaris systems. Therefore, libtool
7071 *** is disabling shared libraries support. We urge you to upgrade GNU
7072 *** binutils to release 2.9.1 or newer. Another option is to modify
7073 *** your PATH or compiler configuration so that the native linker is
7074 *** used, and then restart.
7077 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7080 else
7081 ld_shlibs=no
7085 sunos4*)
7086 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7087 wlarc=
7088 hardcode_direct=yes
7089 hardcode_shlibpath_var=no
7092 linux*)
7093 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7094 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095 archive_cmds="$tmp_archive_cmds"
7096 supports_anon_versioning=no
7097 case `$LD -v 2>/dev/null` in
7098 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7099 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7100 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7101 *\ 2.11.*) ;; # other 2.11 versions
7102 *) supports_anon_versioning=yes ;;
7103 esac
7104 if test $supports_anon_versioning = yes; then
7105 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7107 $echo "local: *; };" >> $output_objdir/$libname.ver~
7108 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7109 else
7110 archive_expsym_cmds="$tmp_archive_cmds"
7112 else
7113 ld_shlibs=no
7118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7121 else
7122 ld_shlibs=no
7125 esac
7127 if test "$ld_shlibs" = yes; then
7128 runpath_var=LD_RUN_PATH
7129 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7130 export_dynamic_flag_spec='${wl}--export-dynamic'
7131 # ancient GNU ld didn't support --whole-archive et. al.
7132 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7133 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7134 else
7135 whole_archive_flag_spec=
7138 else
7139 # PORTME fill in a description of your system's linker (not GNU ld)
7140 case $host_os in
7141 aix3*)
7142 allow_undefined_flag=unsupported
7143 always_export_symbols=yes
7144 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'
7145 # Note: this linker hardcodes the directories in LIBPATH if there
7146 # are no directories specified by -L.
7147 hardcode_minus_L=yes
7148 if test "$GCC" = yes && test -z "$link_static_flag"; then
7149 # Neither direct hardcoding nor static linking is supported with a
7150 # broken collect2.
7151 hardcode_direct=unsupported
7155 aix4* | aix5*)
7156 if test "$host_cpu" = ia64; then
7157 # On IA64, the linker does run time linking by default, so we don't
7158 # have to do anything special.
7159 aix_use_runtimelinking=no
7160 exp_sym_flag='-Bexport'
7161 no_entry_flag=""
7162 else
7163 # If we're using GNU nm, then we don't want the "-C" option.
7164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7165 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7166 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'
7167 else
7168 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'
7170 aix_use_runtimelinking=no
7172 # Test if we are trying to use run time linking or normal
7173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7174 # need to do runtime linking.
7175 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7176 for ld_flag in $LDFLAGS; do
7177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7178 aix_use_runtimelinking=yes
7179 break
7181 done
7182 esac
7184 exp_sym_flag='-bexport'
7185 no_entry_flag='-bnoentry'
7188 # When large executables or shared objects are built, AIX ld can
7189 # have problems creating the table of contents. If linking a library
7190 # or program results in "error TOC overflow" add -mminimal-toc to
7191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7194 archive_cmds=''
7195 hardcode_direct=yes
7196 hardcode_libdir_separator=':'
7197 link_all_deplibs=yes
7199 if test "$GCC" = yes; then
7200 case $host_os in aix4.012|aix4.012.*)
7201 # We only want to do this on AIX 4.2 and lower, the check
7202 # below for broken collect2 doesn't work under 4.3+
7203 collect2name=`${CC} -print-prog-name=collect2`
7204 if test -f "$collect2name" && \
7205 strings "$collect2name" | grep resolve_lib_name >/dev/null
7206 then
7207 # We have reworked collect2
7208 hardcode_direct=yes
7209 else
7210 # We have old collect2
7211 hardcode_direct=unsupported
7212 # It fails to find uninstalled libraries when the uninstalled
7213 # path is not listed in the libpath. Setting hardcode_minus_L
7214 # to unsupported forces relinking
7215 hardcode_minus_L=yes
7216 hardcode_libdir_flag_spec='-L$libdir'
7217 hardcode_libdir_separator=
7219 esac
7220 shared_flag='-shared'
7221 else
7222 # not using gcc
7223 if test "$host_cpu" = ia64; then
7224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7225 # chokes on -Wl,-G. The following line is correct:
7226 shared_flag='-G'
7227 else
7228 if test "$aix_use_runtimelinking" = yes; then
7229 shared_flag='${wl}-G'
7230 else
7231 shared_flag='${wl}-bM:SRE'
7236 # It seems that -bexpall does not export symbols beginning with
7237 # underscore (_), so it is better to generate a list of symbols to export.
7238 always_export_symbols=yes
7239 if test "$aix_use_runtimelinking" = yes; then
7240 # Warning - without using the other runtime loading flags (-brtl),
7241 # -berok will link without error, but may produce a broken library.
7242 allow_undefined_flag='-berok'
7243 # Determine the default libpath from the value encoded in an empty executable.
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7252 main ()
7256 return 0;
7258 _ACEOF
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (ac_try="$ac_link"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_link") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest$ac_exeext &&
7276 $as_test_x conftest$ac_exeext; then
7278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7280 # Check for a 64-bit object if we didn't find anything.
7281 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; }
7282 }'`; fi
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7291 conftest$ac_exeext conftest.$ac_ext
7292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7294 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7295 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"
7296 else
7297 if test "$host_cpu" = ia64; then
7298 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7299 allow_undefined_flag="-z nodefs"
7300 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"
7301 else
7302 # Determine the default libpath from the value encoded in an empty executable.
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7311 main ()
7315 return 0;
7317 _ACEOF
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (ac_try="$ac_link"
7320 case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_link") 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest$ac_exeext &&
7335 $as_test_x conftest$ac_exeext; then
7337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7339 # Check for a 64-bit object if we didn't find anything.
7340 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; }
7341 }'`; fi
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7350 conftest$ac_exeext conftest.$ac_ext
7351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7353 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7354 # Warning - without using the other run time loading flags,
7355 # -berok will link without error, but may produce a broken library.
7356 no_undefined_flag=' ${wl}-bernotok'
7357 allow_undefined_flag=' ${wl}-berok'
7358 # -bexpall does not export symbols beginning with underscore (_)
7359 always_export_symbols=yes
7360 # Exported symbols can be pulled into shared objects from archives
7361 whole_archive_flag_spec=' '
7362 archive_cmds_need_lc=yes
7363 # This is similar to how AIX traditionally builds it's shared libraries.
7364 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'
7369 amigaos*)
7370 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)'
7371 hardcode_libdir_flag_spec='-L$libdir'
7372 hardcode_minus_L=yes
7373 # see comment about different semantics on the GNU ld section
7374 ld_shlibs=no
7377 bsdi4*)
7378 export_dynamic_flag_spec=-rdynamic
7381 cygwin* | mingw* | pw32*)
7382 # When not using gcc, we currently assume that we are using
7383 # Microsoft Visual C++.
7384 # hardcode_libdir_flag_spec is actually meaningless, as there is
7385 # no search path for DLLs.
7386 hardcode_libdir_flag_spec=' '
7387 allow_undefined_flag=unsupported
7388 # Tell ltmain to make .lib files, not .a files.
7389 libext=lib
7390 # Tell ltmain to make .dll files, not .so files.
7391 shrext=".dll"
7392 # FIXME: Setting linknames here is a bad hack.
7393 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7394 # The linker will automatically build a .lib file if we build a DLL.
7395 old_archive_From_new_cmds='true'
7396 # FIXME: Should let the user specify the lib program.
7397 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7398 fix_srcfile_path='`cygpath -w "$srcfile"`'
7399 enable_shared_with_static_runtimes=yes
7402 darwin* | rhapsody*)
7403 if test "$GXX" = yes ; then
7404 archive_cmds_need_lc=no
7405 case "$host_os" in
7406 rhapsody* | darwin1.[012])
7407 allow_undefined_flag='-undefined suppress'
7409 *) # Darwin 1.3 on
7410 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7411 allow_undefined_flag='-flat_namespace -undefined suppress'
7412 else
7413 case ${MACOSX_DEPLOYMENT_TARGET} in
7414 10.[012])
7415 allow_undefined_flag='-flat_namespace -undefined suppress'
7417 10.*)
7418 allow_undefined_flag='-undefined dynamic_lookup'
7420 esac
7423 esac
7424 lt_int_apple_cc_single_mod=no
7425 output_verbose_link_cmd='echo'
7426 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7427 lt_int_apple_cc_single_mod=yes
7429 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7430 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7431 else
7432 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'
7434 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7436 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7437 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}'
7438 else
7439 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}'
7441 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}'
7442 hardcode_direct=no
7443 hardcode_automatic=yes
7444 hardcode_shlibpath_var=unsupported
7445 whole_archive_flag_spec='-all_load $convenience'
7446 link_all_deplibs=yes
7447 else
7448 ld_shlibs=no
7452 dgux*)
7453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454 hardcode_libdir_flag_spec='-L$libdir'
7455 hardcode_shlibpath_var=no
7458 freebsd1*)
7459 ld_shlibs=no
7462 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7463 # support. Future versions do this automatically, but an explicit c++rt0.o
7464 # does not break anything, and helps significantly (at the cost of a little
7465 # extra space).
7466 freebsd2.2*)
7467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7468 hardcode_libdir_flag_spec='-R$libdir'
7469 hardcode_direct=yes
7470 hardcode_shlibpath_var=no
7473 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7474 freebsd2*)
7475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7476 hardcode_direct=yes
7477 hardcode_minus_L=yes
7478 hardcode_shlibpath_var=no
7481 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7482 freebsd* | kfreebsd*-gnu)
7483 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7484 hardcode_libdir_flag_spec='-R$libdir'
7485 hardcode_direct=yes
7486 hardcode_shlibpath_var=no
7489 hpux9*)
7490 if test "$GCC" = yes; then
7491 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'
7492 else
7493 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'
7495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7496 hardcode_libdir_separator=:
7497 hardcode_direct=yes
7499 # hardcode_minus_L: Not really in the search PATH,
7500 # but as the default location of the library.
7501 hardcode_minus_L=yes
7502 export_dynamic_flag_spec='${wl}-E'
7505 hpux10* | hpux11*)
7506 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7507 case "$host_cpu" in
7508 hppa*64*|ia64*)
7509 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7512 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7514 esac
7515 else
7516 case "$host_cpu" in
7517 hppa*64*|ia64*)
7518 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7521 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7523 esac
7525 if test "$with_gnu_ld" = no; then
7526 case "$host_cpu" in
7527 hppa*64*)
7528 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7529 hardcode_libdir_flag_spec_ld='+b $libdir'
7530 hardcode_libdir_separator=:
7531 hardcode_direct=no
7532 hardcode_shlibpath_var=no
7534 ia64*)
7535 hardcode_libdir_flag_spec='-L$libdir'
7536 hardcode_direct=no
7537 hardcode_shlibpath_var=no
7539 # hardcode_minus_L: Not really in the search PATH,
7540 # but as the default location of the library.
7541 hardcode_minus_L=yes
7544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7545 hardcode_libdir_separator=:
7546 hardcode_direct=yes
7547 export_dynamic_flag_spec='${wl}-E'
7549 # hardcode_minus_L: Not really in the search PATH,
7550 # but as the default location of the library.
7551 hardcode_minus_L=yes
7553 esac
7557 irix5* | irix6* | nonstopux*)
7558 if test "$GCC" = yes; then
7559 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'
7560 else
7561 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'
7562 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7565 hardcode_libdir_separator=:
7566 link_all_deplibs=yes
7569 netbsd*)
7570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7572 else
7573 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7575 hardcode_libdir_flag_spec='-R$libdir'
7576 hardcode_direct=yes
7577 hardcode_shlibpath_var=no
7580 newsos6)
7581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7582 hardcode_direct=yes
7583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7584 hardcode_libdir_separator=:
7585 hardcode_shlibpath_var=no
7588 openbsd*)
7589 hardcode_direct=yes
7590 hardcode_shlibpath_var=no
7591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7594 export_dynamic_flag_spec='${wl}-E'
7595 else
7596 case $host_os in
7597 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7599 hardcode_libdir_flag_spec='-R$libdir'
7602 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7603 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7605 esac
7609 os2*)
7610 hardcode_libdir_flag_spec='-L$libdir'
7611 hardcode_minus_L=yes
7612 allow_undefined_flag=unsupported
7613 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'
7614 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7617 osf3*)
7618 if test "$GCC" = yes; then
7619 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7620 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'
7621 else
7622 allow_undefined_flag=' -expect_unresolved \*'
7623 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'
7625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7626 hardcode_libdir_separator=:
7629 osf4* | osf5*) # as osf3* with the addition of -msym flag
7630 if test "$GCC" = yes; then
7631 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7632 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'
7633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7634 else
7635 allow_undefined_flag=' -expect_unresolved \*'
7636 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'
7637 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7638 $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'
7640 # Both c and cxx compiler support -rpath directly
7641 hardcode_libdir_flag_spec='-rpath $libdir'
7643 hardcode_libdir_separator=:
7646 sco3.2v5*)
7647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7648 hardcode_shlibpath_var=no
7649 export_dynamic_flag_spec='${wl}-Bexport'
7650 runpath_var=LD_RUN_PATH
7651 hardcode_runpath_var=yes
7654 solaris*)
7655 no_undefined_flag=' -z text'
7656 if test "$GCC" = yes; then
7657 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7658 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7659 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7660 else
7661 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7662 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7665 hardcode_libdir_flag_spec='-R$libdir'
7666 hardcode_shlibpath_var=no
7667 case $host_os in
7668 solaris2.[0-5] | solaris2.[0-5].*) ;;
7669 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7670 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7671 esac
7672 link_all_deplibs=yes
7675 sunos4*)
7676 if test "x$host_vendor" = xsequent; then
7677 # Use $CC to link under sequent, because it throws in some extra .o
7678 # files that make .init and .fini sections work.
7679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7680 else
7681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7683 hardcode_libdir_flag_spec='-L$libdir'
7684 hardcode_direct=yes
7685 hardcode_minus_L=yes
7686 hardcode_shlibpath_var=no
7689 sysv4)
7690 case $host_vendor in
7691 sni)
7692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7693 hardcode_direct=yes # is this really true???
7695 siemens)
7696 ## LD is ld it makes a PLAMLIB
7697 ## CC just makes a GrossModule.
7698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7699 reload_cmds='$CC -r -o $output$reload_objs'
7700 hardcode_direct=no
7702 motorola)
7703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7706 esac
7707 runpath_var='LD_RUN_PATH'
7708 hardcode_shlibpath_var=no
7711 sysv4.3*)
7712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7713 hardcode_shlibpath_var=no
7714 export_dynamic_flag_spec='-Bexport'
7717 sysv4*MP*)
7718 if test -d /usr/nec; then
7719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7720 hardcode_shlibpath_var=no
7721 runpath_var=LD_RUN_PATH
7722 hardcode_runpath_var=yes
7723 ld_shlibs=yes
7727 sysv4.2uw2*)
7728 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7729 hardcode_direct=yes
7730 hardcode_minus_L=no
7731 hardcode_shlibpath_var=no
7732 hardcode_runpath_var=yes
7733 runpath_var=LD_RUN_PATH
7736 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7737 no_undefined_flag='${wl}-z ${wl}text'
7738 if test "$GCC" = yes; then
7739 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740 else
7741 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7743 runpath_var='LD_RUN_PATH'
7744 hardcode_shlibpath_var=no
7747 sysv5*)
7748 no_undefined_flag=' -z text'
7749 # $CC -shared without GNU ld will not create a library from C++
7750 # object files and a static libstdc++, better avoid it by now
7751 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7752 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7753 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7754 hardcode_libdir_flag_spec=
7755 hardcode_shlibpath_var=no
7756 runpath_var='LD_RUN_PATH'
7759 uts4*)
7760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7761 hardcode_libdir_flag_spec='-L$libdir'
7762 hardcode_shlibpath_var=no
7766 ld_shlibs=no
7768 esac
7771 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7772 echo "${ECHO_T}$ld_shlibs" >&6; }
7773 test "$ld_shlibs" = no && can_build_shared=no
7775 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7776 if test "$GCC" = yes; then
7777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7781 # Do we need to explicitly link libc?
7783 case "x$archive_cmds_need_lc" in
7784 x|xyes)
7785 # Assume -lc should be added
7786 archive_cmds_need_lc=yes
7788 if test "$enable_shared" = yes && test "$GCC" = yes; then
7789 case $archive_cmds in
7790 *'~'*)
7791 # FIXME: we may have to deal with multi-command sequences.
7793 '$CC '*)
7794 # Test whether the compiler implicitly links with -lc since on some
7795 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7796 # to ld, don't add -lc before -lgcc.
7797 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7798 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7799 $rm conftest*
7800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7803 (eval $ac_compile) 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } 2>conftest.err; then
7807 soname=conftest
7808 lib=conftest
7809 libobjs=conftest.$ac_objext
7810 deplibs=
7811 wl=$lt_prog_compiler_wl
7812 compiler_flags=-v
7813 linker_flags=-v
7814 verstring=
7815 output_objdir=.
7816 libname=conftest
7817 lt_save_allow_undefined_flag=$allow_undefined_flag
7818 allow_undefined_flag=
7819 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7820 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }
7824 then
7825 archive_cmds_need_lc=no
7826 else
7827 archive_cmds_need_lc=yes
7829 allow_undefined_flag=$lt_save_allow_undefined_flag
7830 else
7831 cat conftest.err 1>&5
7833 $rm conftest*
7834 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7835 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7837 esac
7840 esac
7842 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7843 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7844 library_names_spec=
7845 libname_spec='lib$name'
7846 soname_spec=
7847 shrext=".so"
7848 postinstall_cmds=
7849 postuninstall_cmds=
7850 finish_cmds=
7851 finish_eval=
7852 shlibpath_var=
7853 shlibpath_overrides_runpath=unknown
7854 version_type=none
7855 dynamic_linker="$host_os ld.so"
7856 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7857 if test "$GCC" = yes; then
7858 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7859 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7860 # if the path contains ";" then we assume it to be the separator
7861 # otherwise default to the standard path separator (i.e. ":") - it is
7862 # assumed that no part of a normal pathname contains ";" but that should
7863 # okay in the real world where ";" in dirpaths is itself problematic.
7864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7865 else
7866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7868 else
7869 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7871 need_lib_prefix=unknown
7872 hardcode_into_libs=no
7874 # when you set need_version to no, make sure it does not cause -set_version
7875 # flags to be left without arguments
7876 need_version=unknown
7878 case $host_os in
7879 aix3*)
7880 version_type=linux
7881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7882 shlibpath_var=LIBPATH
7884 # AIX 3 has no versioning support, so we append a major version to the name.
7885 soname_spec='${libname}${release}${shared_ext}$major'
7888 aix4* | aix5*)
7889 version_type=linux
7890 need_lib_prefix=no
7891 need_version=no
7892 hardcode_into_libs=yes
7893 if test "$host_cpu" = ia64; then
7894 # AIX 5 supports IA64
7895 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7896 shlibpath_var=LD_LIBRARY_PATH
7897 else
7898 # With GCC up to 2.95.x, collect2 would create an import file
7899 # for dependence libraries. The import file would start with
7900 # the line `#! .'. This would cause the generated library to
7901 # depend on `.', always an invalid library. This was fixed in
7902 # development snapshots of GCC prior to 3.0.
7903 case $host_os in
7904 aix4 | aix4.[01] | aix4.[01].*)
7905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7906 echo ' yes '
7907 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7909 else
7910 can_build_shared=no
7913 esac
7914 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7915 # soname into executable. Probably we can add versioning support to
7916 # collect2, so additional links can be useful in future.
7917 if test "$aix_use_runtimelinking" = yes; then
7918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7919 # instead of lib<name>.a to let people know that these are not
7920 # typical AIX shared libraries.
7921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7922 else
7923 # We preserve .a as extension for shared libraries through AIX4.2
7924 # and later when we are not doing run time linking.
7925 library_names_spec='${libname}${release}.a $libname.a'
7926 soname_spec='${libname}${release}${shared_ext}$major'
7928 shlibpath_var=LIBPATH
7932 amigaos*)
7933 library_names_spec='$libname.ixlibrary $libname.a'
7934 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7935 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'
7938 beos*)
7939 library_names_spec='${libname}${shared_ext}'
7940 dynamic_linker="$host_os ld.so"
7941 shlibpath_var=LIBRARY_PATH
7944 bsdi4*)
7945 version_type=linux
7946 need_version=no
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7948 soname_spec='${libname}${release}${shared_ext}$major'
7949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7950 shlibpath_var=LD_LIBRARY_PATH
7951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7953 # the default ld.so.conf also contains /usr/contrib/lib and
7954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7955 # libtool to hard-code these into programs
7958 cygwin* | mingw* | pw32*)
7959 version_type=windows
7960 shrext=".dll"
7961 need_version=no
7962 need_lib_prefix=no
7964 case $GCC,$host_os in
7965 yes,cygwin* | yes,mingw* | yes,pw32*)
7966 library_names_spec='$libname.dll.a'
7967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7968 postinstall_cmds='base_file=`basename \${file}`~
7969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7970 dldir=$destdir/`dirname \$dlpath`~
7971 test -d \$dldir || mkdir -p \$dldir~
7972 $install_prog $dir/$dlname \$dldir/$dlname'
7973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7974 dlpath=$dir/\$dldll~
7975 $rm \$dlpath'
7976 shlibpath_overrides_runpath=yes
7978 case $host_os in
7979 cygwin*)
7980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7984 mingw*)
7985 # MinGW DLLs use traditional 'lib' prefix
7986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7989 # It is most probably a Windows format PATH printed by
7990 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7991 # path with ; separators, and with drive letters. We can handle the
7992 # drive letters (cygwin fileutils understands them), so leave them,
7993 # especially as we might pass files found there to a mingw objdump,
7994 # which wouldn't understand a cygwinified path. Ahh.
7995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7996 else
7997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8000 pw32*)
8001 # pw32 DLLs use 'pw' prefix rather than 'lib'
8002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8004 esac
8008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8010 esac
8011 dynamic_linker='Win32 ld.exe'
8012 # FIXME: first we should search . and the directory the executable is in
8013 shlibpath_var=PATH
8016 darwin* | rhapsody*)
8017 dynamic_linker="$host_os dyld"
8018 version_type=darwin
8019 need_lib_prefix=no
8020 need_version=no
8021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8022 soname_spec='${libname}${release}${major}$shared_ext'
8023 shlibpath_overrides_runpath=yes
8024 shlibpath_var=DYLD_LIBRARY_PATH
8025 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8027 if test "$GCC" = yes; then
8028 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"`
8029 else
8030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8035 dgux*)
8036 version_type=linux
8037 need_lib_prefix=no
8038 need_version=no
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 shlibpath_var=LD_LIBRARY_PATH
8044 freebsd1*)
8045 dynamic_linker=no
8048 kfreebsd*-gnu)
8049 version_type=linux
8050 need_lib_prefix=no
8051 need_version=no
8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 shlibpath_var=LD_LIBRARY_PATH
8055 shlibpath_overrides_runpath=no
8056 hardcode_into_libs=yes
8057 dynamic_linker='GNU ld.so'
8060 freebsd*)
8061 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8062 version_type=freebsd-$objformat
8063 case $version_type in
8064 freebsd-elf*)
8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8066 need_version=no
8067 need_lib_prefix=no
8069 freebsd-*)
8070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8071 need_version=yes
8073 esac
8074 shlibpath_var=LD_LIBRARY_PATH
8075 case $host_os in
8076 freebsd2*)
8077 shlibpath_overrides_runpath=yes
8079 freebsd3.01* | freebsdelf3.01*)
8080 shlibpath_overrides_runpath=yes
8081 hardcode_into_libs=yes
8083 *) # from 3.2 on
8084 shlibpath_overrides_runpath=no
8085 hardcode_into_libs=yes
8087 esac
8090 gnu*)
8091 version_type=linux
8092 need_lib_prefix=no
8093 need_version=no
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8095 soname_spec='${libname}${release}${shared_ext}$major'
8096 shlibpath_var=LD_LIBRARY_PATH
8097 hardcode_into_libs=yes
8100 hpux9* | hpux10* | hpux11*)
8101 # Give a soname corresponding to the major version so that dld.sl refuses to
8102 # link against other versions.
8103 version_type=sunos
8104 need_lib_prefix=no
8105 need_version=no
8106 case "$host_cpu" in
8107 ia64*)
8108 shrext='.so'
8109 hardcode_into_libs=yes
8110 dynamic_linker="$host_os dld.so"
8111 shlibpath_var=LD_LIBRARY_PATH
8112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8114 soname_spec='${libname}${release}${shared_ext}$major'
8115 if test "X$HPUX_IA64_MODE" = X32; then
8116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8117 else
8118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8122 hppa*64*)
8123 shrext='.sl'
8124 hardcode_into_libs=yes
8125 dynamic_linker="$host_os dld.sl"
8126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8129 soname_spec='${libname}${release}${shared_ext}$major'
8130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8134 shrext='.sl'
8135 dynamic_linker="$host_os dld.sl"
8136 shlibpath_var=SHLIB_PATH
8137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8139 soname_spec='${libname}${release}${shared_ext}$major'
8141 esac
8142 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8143 postinstall_cmds='chmod 555 $lib'
8146 irix5* | irix6* | nonstopux*)
8147 case $host_os in
8148 nonstopux*) version_type=nonstopux ;;
8150 if test "$lt_cv_prog_gnu_ld" = yes; then
8151 version_type=linux
8152 else
8153 version_type=irix
8154 fi ;;
8155 esac
8156 need_lib_prefix=no
8157 need_version=no
8158 soname_spec='${libname}${release}${shared_ext}$major'
8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8160 case $host_os in
8161 irix5* | nonstopux*)
8162 libsuff= shlibsuff=
8165 case $LD in # libtool.m4 will add one of these switches to LD
8166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8167 libsuff= shlibsuff= libmagic=32-bit;;
8168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8169 libsuff=32 shlibsuff=N32 libmagic=N32;;
8170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8172 *) libsuff= shlibsuff= libmagic=never-match;;
8173 esac
8175 esac
8176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8177 shlibpath_overrides_runpath=no
8178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8180 hardcode_into_libs=yes
8183 # No shared lib support for Linux oldld, aout, or coff.
8184 linux*oldld* | linux*aout* | linux*coff*)
8185 dynamic_linker=no
8188 # This must be Linux ELF.
8189 linux*)
8190 version_type=linux
8191 need_lib_prefix=no
8192 need_version=no
8193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8194 soname_spec='${libname}${release}${shared_ext}$major'
8195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8196 shlibpath_var=LD_LIBRARY_PATH
8197 shlibpath_overrides_runpath=no
8198 # This implies no fast_install, which is unacceptable.
8199 # Some rework will be needed to allow for fast_install
8200 # before this can be enabled.
8201 hardcode_into_libs=yes
8203 # We used to test for /lib/ld.so.1 and disable shared libraries on
8204 # powerpc, because MkLinux only supported shared libraries with the
8205 # GNU dynamic linker. Since this was broken with cross compilers,
8206 # most powerpc-linux boxes support dynamic linking these days and
8207 # people can always --disable-shared, the test was removed, and we
8208 # assume the GNU/Linux dynamic linker is in use.
8209 dynamic_linker='GNU/Linux ld.so'
8212 netbsd*)
8213 version_type=sunos
8214 need_lib_prefix=no
8215 need_version=no
8216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8219 dynamic_linker='NetBSD (a.out) ld.so'
8220 else
8221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8222 soname_spec='${libname}${release}${shared_ext}$major'
8223 dynamic_linker='NetBSD ld.elf_so'
8225 shlibpath_var=LD_LIBRARY_PATH
8226 shlibpath_overrides_runpath=yes
8227 hardcode_into_libs=yes
8230 newsos6)
8231 version_type=linux
8232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8233 shlibpath_var=LD_LIBRARY_PATH
8234 shlibpath_overrides_runpath=yes
8237 nto-qnx*)
8238 version_type=linux
8239 need_lib_prefix=no
8240 need_version=no
8241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8242 soname_spec='${libname}${release}${shared_ext}$major'
8243 shlibpath_var=LD_LIBRARY_PATH
8244 shlibpath_overrides_runpath=yes
8247 openbsd*)
8248 version_type=sunos
8249 need_lib_prefix=no
8250 need_version=no
8251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8253 shlibpath_var=LD_LIBRARY_PATH
8254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8255 case $host_os in
8256 openbsd2.[89] | openbsd2.[89].*)
8257 shlibpath_overrides_runpath=no
8260 shlibpath_overrides_runpath=yes
8262 esac
8263 else
8264 shlibpath_overrides_runpath=yes
8268 os2*)
8269 libname_spec='$name'
8270 shrext=".dll"
8271 need_lib_prefix=no
8272 library_names_spec='$libname${shared_ext} $libname.a'
8273 dynamic_linker='OS/2 ld.exe'
8274 shlibpath_var=LIBPATH
8277 osf3* | osf4* | osf5*)
8278 version_type=osf
8279 need_lib_prefix=no
8280 need_version=no
8281 soname_spec='${libname}${release}${shared_ext}$major'
8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8283 shlibpath_var=LD_LIBRARY_PATH
8284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8288 sco3.2v5*)
8289 version_type=osf
8290 soname_spec='${libname}${release}${shared_ext}$major'
8291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8292 shlibpath_var=LD_LIBRARY_PATH
8295 solaris*)
8296 version_type=linux
8297 need_lib_prefix=no
8298 need_version=no
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 shlibpath_overrides_runpath=yes
8303 hardcode_into_libs=yes
8304 # ldd complains unless libraries are executable
8305 postinstall_cmds='chmod +x $lib'
8308 sunos4*)
8309 version_type=sunos
8310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8312 shlibpath_var=LD_LIBRARY_PATH
8313 shlibpath_overrides_runpath=yes
8314 if test "$with_gnu_ld" = yes; then
8315 need_lib_prefix=no
8317 need_version=yes
8320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8321 version_type=linux
8322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8323 soname_spec='${libname}${release}${shared_ext}$major'
8324 shlibpath_var=LD_LIBRARY_PATH
8325 case $host_vendor in
8326 sni)
8327 shlibpath_overrides_runpath=no
8328 need_lib_prefix=no
8329 export_dynamic_flag_spec='${wl}-Blargedynsym'
8330 runpath_var=LD_RUN_PATH
8332 siemens)
8333 need_lib_prefix=no
8335 motorola)
8336 need_lib_prefix=no
8337 need_version=no
8338 shlibpath_overrides_runpath=no
8339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8341 esac
8344 sysv4*MP*)
8345 if test -d /usr/nec ;then
8346 version_type=linux
8347 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8348 soname_spec='$libname${shared_ext}.$major'
8349 shlibpath_var=LD_LIBRARY_PATH
8353 uts4*)
8354 version_type=linux
8355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356 soname_spec='${libname}${release}${shared_ext}$major'
8357 shlibpath_var=LD_LIBRARY_PATH
8361 dynamic_linker=no
8363 esac
8364 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8365 echo "${ECHO_T}$dynamic_linker" >&6; }
8366 test "$dynamic_linker" = no && can_build_shared=no
8368 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8370 hardcode_action=
8371 if test -n "$hardcode_libdir_flag_spec" || \
8372 test -n "$runpath_var " || \
8373 test "X$hardcode_automatic"="Xyes" ; then
8375 # We can hardcode non-existant directories.
8376 if test "$hardcode_direct" != no &&
8377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8378 # have to relink, otherwise we might link with an installed library
8379 # when we should be linking with a yet-to-be-installed one
8380 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8381 test "$hardcode_minus_L" != no; then
8382 # Linking always hardcodes the temporary library directory.
8383 hardcode_action=relink
8384 else
8385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8386 hardcode_action=immediate
8388 else
8389 # We cannot hardcode anything, or else we can only hardcode existing
8390 # directories.
8391 hardcode_action=unsupported
8393 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8394 echo "${ECHO_T}$hardcode_action" >&6; }
8396 if test "$hardcode_action" = relink; then
8397 # Fast installation is not supported
8398 enable_fast_install=no
8399 elif test "$shlibpath_overrides_runpath" = yes ||
8400 test "$enable_shared" = no; then
8401 # Fast installation is not necessary
8402 enable_fast_install=needless
8405 striplib=
8406 old_striplib=
8407 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8410 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8411 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8412 { echo "$as_me:$LINENO: result: yes" >&5
8413 echo "${ECHO_T}yes" >&6; }
8414 else
8415 # FIXME - insert some real tests, host_os isn't really good enough
8416 case $host_os in
8417 darwin*)
8418 if test -n "$STRIP" ; then
8419 striplib="$STRIP -x"
8420 { echo "$as_me:$LINENO: result: yes" >&5
8421 echo "${ECHO_T}yes" >&6; }
8422 else
8423 { echo "$as_me:$LINENO: result: no" >&5
8424 echo "${ECHO_T}no" >&6; }
8428 { echo "$as_me:$LINENO: result: no" >&5
8429 echo "${ECHO_T}no" >&6; }
8431 esac
8434 if test "x$enable_dlopen" != xyes; then
8435 enable_dlopen=unknown
8436 enable_dlopen_self=unknown
8437 enable_dlopen_self_static=unknown
8438 else
8439 lt_cv_dlopen=no
8440 lt_cv_dlopen_libs=
8442 case $host_os in
8443 beos*)
8444 lt_cv_dlopen="load_add_on"
8445 lt_cv_dlopen_libs=
8446 lt_cv_dlopen_self=yes
8449 mingw* | pw32*)
8450 lt_cv_dlopen="LoadLibrary"
8451 lt_cv_dlopen_libs=
8454 cygwin*)
8455 lt_cv_dlopen="dlopen"
8456 lt_cv_dlopen_libs=
8459 darwin*)
8460 # if libdl is installed we need to link against it
8461 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466 ac_check_lib_save_LIBS=$LIBS
8467 LIBS="-ldl $LIBS"
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8475 /* Override any GCC internal prototype to avoid an error.
8476 Use char because int might match the return type of a GCC
8477 builtin and then its argument prototype would still apply. */
8478 #ifdef __cplusplus
8479 extern "C"
8480 #endif
8481 char dlopen ();
8483 main ()
8485 return dlopen ();
8487 return 0;
8489 _ACEOF
8490 rm -f conftest.$ac_objext conftest$ac_exeext
8491 if { (ac_try="$ac_link"
8492 case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_link") 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest$ac_exeext &&
8507 $as_test_x conftest$ac_exeext; then
8508 ac_cv_lib_dl_dlopen=yes
8509 else
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 ac_cv_lib_dl_dlopen=no
8516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8517 conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8522 if test $ac_cv_lib_dl_dlopen = yes; then
8523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8524 else
8526 lt_cv_dlopen="dyld"
8527 lt_cv_dlopen_libs=
8528 lt_cv_dlopen_self=yes
8535 { echo "$as_me:$LINENO: checking for shl_load" >&5
8536 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8537 if test "${ac_cv_func_shl_load+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8548 #define shl_load innocuous_shl_load
8550 /* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char shl_load (); below.
8552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553 <limits.h> exists even on freestanding compilers. */
8555 #ifdef __STDC__
8556 # include <limits.h>
8557 #else
8558 # include <assert.h>
8559 #endif
8561 #undef shl_load
8563 /* Override any GCC internal prototype to avoid an error.
8564 Use char because int might match the return type of a GCC
8565 builtin and then its argument prototype would still apply. */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 char shl_load ();
8570 /* The GNU C library defines this for functions which it implements
8571 to always fail with ENOSYS. Some functions are actually named
8572 something starting with __ and the normal name is an alias. */
8573 #if defined __stub_shl_load || defined __stub___shl_load
8574 choke me
8575 #endif
8578 main ()
8580 return shl_load ();
8582 return 0;
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (ac_try="$ac_link"
8587 case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_link") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest$ac_exeext &&
8602 $as_test_x conftest$ac_exeext; then
8603 ac_cv_func_shl_load=yes
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_cv_func_shl_load=no
8611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612 conftest$ac_exeext conftest.$ac_ext
8614 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8615 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8616 if test $ac_cv_func_shl_load = yes; then
8617 lt_cv_dlopen="shl_load"
8618 else
8619 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8620 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8621 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 ac_check_lib_save_LIBS=$LIBS
8625 LIBS="-ldld $LIBS"
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h. */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8633 /* Override any GCC internal prototype to avoid an error.
8634 Use char because int might match the return type of a GCC
8635 builtin and then its argument prototype would still apply. */
8636 #ifdef __cplusplus
8637 extern "C"
8638 #endif
8639 char shl_load ();
8641 main ()
8643 return shl_load ();
8645 return 0;
8647 _ACEOF
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (ac_try="$ac_link"
8650 case "(($ac_try" in
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8653 esac
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_link") 2>conftest.er1
8656 ac_status=$?
8657 grep -v '^ *+' conftest.er1 >conftest.err
8658 rm -f conftest.er1
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } && {
8662 test -z "$ac_c_werror_flag" ||
8663 test ! -s conftest.err
8664 } && test -s conftest$ac_exeext &&
8665 $as_test_x conftest$ac_exeext; then
8666 ac_cv_lib_dld_shl_load=yes
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_cv_lib_dld_shl_load=no
8674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8675 conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8678 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8679 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8680 if test $ac_cv_lib_dld_shl_load = yes; then
8681 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8682 else
8683 { echo "$as_me:$LINENO: checking for dlopen" >&5
8684 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8685 if test "${ac_cv_func_dlopen+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8696 #define dlopen innocuous_dlopen
8698 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char dlopen (); below.
8700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8701 <limits.h> exists even on freestanding compilers. */
8703 #ifdef __STDC__
8704 # include <limits.h>
8705 #else
8706 # include <assert.h>
8707 #endif
8709 #undef dlopen
8711 /* Override any GCC internal prototype to avoid an error.
8712 Use char because int might match the return type of a GCC
8713 builtin and then its argument prototype would still apply. */
8714 #ifdef __cplusplus
8715 extern "C"
8716 #endif
8717 char dlopen ();
8718 /* The GNU C library defines this for functions which it implements
8719 to always fail with ENOSYS. Some functions are actually named
8720 something starting with __ and the normal name is an alias. */
8721 #if defined __stub_dlopen || defined __stub___dlopen
8722 choke me
8723 #endif
8726 main ()
8728 return dlopen ();
8730 return 0;
8732 _ACEOF
8733 rm -f conftest.$ac_objext conftest$ac_exeext
8734 if { (ac_try="$ac_link"
8735 case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_link") 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && {
8747 test -z "$ac_c_werror_flag" ||
8748 test ! -s conftest.err
8749 } && test -s conftest$ac_exeext &&
8750 $as_test_x conftest$ac_exeext; then
8751 ac_cv_func_dlopen=yes
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_cv_func_dlopen=no
8759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8760 conftest$ac_exeext conftest.$ac_ext
8762 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8763 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8764 if test $ac_cv_func_dlopen = yes; then
8765 lt_cv_dlopen="dlopen"
8766 else
8767 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8768 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8769 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772 ac_check_lib_save_LIBS=$LIBS
8773 LIBS="-ldl $LIBS"
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8781 /* Override any GCC internal prototype to avoid an error.
8782 Use char because int might match the return type of a GCC
8783 builtin and then its argument prototype would still apply. */
8784 #ifdef __cplusplus
8785 extern "C"
8786 #endif
8787 char dlopen ();
8789 main ()
8791 return dlopen ();
8793 return 0;
8795 _ACEOF
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (ac_try="$ac_link"
8798 case "(($ac_try" in
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8801 esac
8802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803 (eval "$ac_link") 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && {
8810 test -z "$ac_c_werror_flag" ||
8811 test ! -s conftest.err
8812 } && test -s conftest$ac_exeext &&
8813 $as_test_x conftest$ac_exeext; then
8814 ac_cv_lib_dl_dlopen=yes
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_cv_lib_dl_dlopen=no
8822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8828 if test $ac_cv_lib_dl_dlopen = yes; then
8829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8830 else
8831 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 ac_check_lib_save_LIBS=$LIBS
8837 LIBS="-lsvld $LIBS"
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8845 /* Override any GCC internal prototype to avoid an error.
8846 Use char because int might match the return type of a GCC
8847 builtin and then its argument prototype would still apply. */
8848 #ifdef __cplusplus
8849 extern "C"
8850 #endif
8851 char dlopen ();
8853 main ()
8855 return dlopen ();
8857 return 0;
8859 _ACEOF
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8862 case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_link") 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } && {
8874 test -z "$ac_c_werror_flag" ||
8875 test ! -s conftest.err
8876 } && test -s conftest$ac_exeext &&
8877 $as_test_x conftest$ac_exeext; then
8878 ac_cv_lib_svld_dlopen=yes
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_cv_lib_svld_dlopen=no
8886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8887 conftest$ac_exeext conftest.$ac_ext
8888 LIBS=$ac_check_lib_save_LIBS
8890 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8891 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8892 if test $ac_cv_lib_svld_dlopen = yes; then
8893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8894 else
8895 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8896 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900 ac_check_lib_save_LIBS=$LIBS
8901 LIBS="-ldld $LIBS"
8902 cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h. */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 /* Override any GCC internal prototype to avoid an error.
8910 Use char because int might match the return type of a GCC
8911 builtin and then its argument prototype would still apply. */
8912 #ifdef __cplusplus
8913 extern "C"
8914 #endif
8915 char dld_link ();
8917 main ()
8919 return dld_link ();
8921 return 0;
8923 _ACEOF
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (ac_try="$ac_link"
8926 case "(($ac_try" in
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8929 esac
8930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931 (eval "$ac_link") 2>conftest.er1
8932 ac_status=$?
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && {
8938 test -z "$ac_c_werror_flag" ||
8939 test ! -s conftest.err
8940 } && test -s conftest$ac_exeext &&
8941 $as_test_x conftest$ac_exeext; then
8942 ac_cv_lib_dld_dld_link=yes
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_cv_lib_dld_dld_link=no
8950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8951 conftest$ac_exeext conftest.$ac_ext
8952 LIBS=$ac_check_lib_save_LIBS
8954 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8955 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8956 if test $ac_cv_lib_dld_dld_link = yes; then
8957 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8976 esac
8978 if test "x$lt_cv_dlopen" != xno; then
8979 enable_dlopen=yes
8980 else
8981 enable_dlopen=no
8984 case $lt_cv_dlopen in
8985 dlopen)
8986 save_CPPFLAGS="$CPPFLAGS"
8987 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8989 save_LDFLAGS="$LDFLAGS"
8990 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8992 save_LIBS="$LIBS"
8993 LIBS="$lt_cv_dlopen_libs $LIBS"
8995 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8996 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8997 if test "${lt_cv_dlopen_self+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000 if test "$cross_compiling" = yes; then :
9001 lt_cv_dlopen_self=cross
9002 else
9003 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9004 lt_status=$lt_dlunknown
9005 cat > conftest.$ac_ext <<EOF
9006 #line 9006 "configure"
9007 #include "confdefs.h"
9009 #if HAVE_DLFCN_H
9010 #include <dlfcn.h>
9011 #endif
9013 #include <stdio.h>
9015 #ifdef RTLD_GLOBAL
9016 # define LT_DLGLOBAL RTLD_GLOBAL
9017 #else
9018 # ifdef DL_GLOBAL
9019 # define LT_DLGLOBAL DL_GLOBAL
9020 # else
9021 # define LT_DLGLOBAL 0
9022 # endif
9023 #endif
9025 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9026 find out it does not work in some platform. */
9027 #ifndef LT_DLLAZY_OR_NOW
9028 # ifdef RTLD_LAZY
9029 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9030 # else
9031 # ifdef DL_LAZY
9032 # define LT_DLLAZY_OR_NOW DL_LAZY
9033 # else
9034 # ifdef RTLD_NOW
9035 # define LT_DLLAZY_OR_NOW RTLD_NOW
9036 # else
9037 # ifdef DL_NOW
9038 # define LT_DLLAZY_OR_NOW DL_NOW
9039 # else
9040 # define LT_DLLAZY_OR_NOW 0
9041 # endif
9042 # endif
9043 # endif
9044 # endif
9045 #endif
9047 #ifdef __cplusplus
9048 extern "C" void exit (int);
9049 #endif
9051 void fnord() { int i=42;}
9052 int main ()
9054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9055 int status = $lt_dlunknown;
9057 if (self)
9059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9060 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9061 /* dlclose (self); */
9064 exit (status);
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068 (eval $ac_link) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9072 (./conftest; exit; ) 2>/dev/null
9073 lt_status=$?
9074 case x$lt_status in
9075 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9076 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9077 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9078 esac
9079 else :
9080 # compilation failed
9081 lt_cv_dlopen_self=no
9084 rm -fr conftest*
9088 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9089 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9091 if test "x$lt_cv_dlopen_self" = xyes; then
9092 LDFLAGS="$LDFLAGS $link_static_flag"
9093 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9094 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9095 if test "${lt_cv_dlopen_self_static+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 if test "$cross_compiling" = yes; then :
9099 lt_cv_dlopen_self_static=cross
9100 else
9101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9102 lt_status=$lt_dlunknown
9103 cat > conftest.$ac_ext <<EOF
9104 #line 9104 "configure"
9105 #include "confdefs.h"
9107 #if HAVE_DLFCN_H
9108 #include <dlfcn.h>
9109 #endif
9111 #include <stdio.h>
9113 #ifdef RTLD_GLOBAL
9114 # define LT_DLGLOBAL RTLD_GLOBAL
9115 #else
9116 # ifdef DL_GLOBAL
9117 # define LT_DLGLOBAL DL_GLOBAL
9118 # else
9119 # define LT_DLGLOBAL 0
9120 # endif
9121 #endif
9123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9124 find out it does not work in some platform. */
9125 #ifndef LT_DLLAZY_OR_NOW
9126 # ifdef RTLD_LAZY
9127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9128 # else
9129 # ifdef DL_LAZY
9130 # define LT_DLLAZY_OR_NOW DL_LAZY
9131 # else
9132 # ifdef RTLD_NOW
9133 # define LT_DLLAZY_OR_NOW RTLD_NOW
9134 # else
9135 # ifdef DL_NOW
9136 # define LT_DLLAZY_OR_NOW DL_NOW
9137 # else
9138 # define LT_DLLAZY_OR_NOW 0
9139 # endif
9140 # endif
9141 # endif
9142 # endif
9143 #endif
9145 #ifdef __cplusplus
9146 extern "C" void exit (int);
9147 #endif
9149 void fnord() { int i=42;}
9150 int main ()
9152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9153 int status = $lt_dlunknown;
9155 if (self)
9157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9158 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9159 /* dlclose (self); */
9162 exit (status);
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9170 (./conftest; exit; ) 2>/dev/null
9171 lt_status=$?
9172 case x$lt_status in
9173 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9174 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9175 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9176 esac
9177 else :
9178 # compilation failed
9179 lt_cv_dlopen_self_static=no
9182 rm -fr conftest*
9186 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9187 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9190 CPPFLAGS="$save_CPPFLAGS"
9191 LDFLAGS="$save_LDFLAGS"
9192 LIBS="$save_LIBS"
9194 esac
9196 case $lt_cv_dlopen_self in
9197 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9198 *) enable_dlopen_self=unknown ;;
9199 esac
9201 case $lt_cv_dlopen_self_static in
9202 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9203 *) enable_dlopen_self_static=unknown ;;
9204 esac
9208 # Report which librarie types wil actually be built
9209 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9210 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9211 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9212 echo "${ECHO_T}$can_build_shared" >&6; }
9214 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9215 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9216 test "$can_build_shared" = "no" && enable_shared=no
9218 # On AIX, shared libraries and static libraries use the same namespace, and
9219 # are all built from PIC.
9220 case "$host_os" in
9221 aix3*)
9222 test "$enable_shared" = yes && enable_static=no
9223 if test -n "$RANLIB"; then
9224 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9225 postinstall_cmds='$RANLIB $lib'
9229 aix4*)
9230 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9231 test "$enable_shared" = yes && enable_static=no
9234 darwin* | rhapsody*)
9235 if test "$GCC" = yes; then
9236 archive_cmds_need_lc=no
9237 case "$host_os" in
9238 rhapsody* | darwin1.[012])
9239 allow_undefined_flag='-undefined suppress'
9241 *) # Darwin 1.3 on
9242 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9243 allow_undefined_flag='-flat_namespace -undefined suppress'
9244 else
9245 case ${MACOSX_DEPLOYMENT_TARGET} in
9246 10.[012])
9247 allow_undefined_flag='-flat_namespace -undefined suppress'
9249 10.*)
9250 allow_undefined_flag='-undefined dynamic_lookup'
9252 esac
9255 esac
9256 output_verbose_link_cmd='echo'
9257 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9258 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9259 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9260 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}'
9261 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}'
9262 hardcode_direct=no
9263 hardcode_automatic=yes
9264 hardcode_shlibpath_var=unsupported
9265 whole_archive_flag_spec='-all_load $convenience'
9266 link_all_deplibs=yes
9267 else
9268 ld_shlibs=no
9271 esac
9272 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9273 echo "${ECHO_T}$enable_shared" >&6; }
9275 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9277 # Make sure either enable_shared or enable_static is yes.
9278 test "$enable_shared" = yes || enable_static=yes
9279 { echo "$as_me:$LINENO: result: $enable_static" >&5
9280 echo "${ECHO_T}$enable_static" >&6; }
9282 # The else clause should only fire when bootstrapping the
9283 # libtool distribution, otherwise you forgot to ship ltmain.sh
9284 # with your package, and you will get complaints that there are
9285 # no rules to generate ltmain.sh.
9286 if test -f "$ltmain"; then
9287 # See if we are running on zsh, and set the options which allow our commands through
9288 # without removal of \ escapes.
9289 if test -n "${ZSH_VERSION+set}" ; then
9290 setopt NO_GLOB_SUBST
9292 # Now quote all the things that may contain metacharacters while being
9293 # careful not to overquote the AC_SUBSTed values. We take copies of the
9294 # variables and quote the copies for generation of the libtool script.
9295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9296 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9297 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9298 deplibs_check_method reload_flag reload_cmds need_locks \
9299 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9300 lt_cv_sys_global_symbol_to_c_name_address \
9301 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9302 old_postinstall_cmds old_postuninstall_cmds \
9303 compiler \
9304 CC \
9305 LD \
9306 lt_prog_compiler_wl \
9307 lt_prog_compiler_pic \
9308 lt_prog_compiler_static \
9309 lt_prog_compiler_no_builtin_flag \
9310 export_dynamic_flag_spec \
9311 thread_safe_flag_spec \
9312 whole_archive_flag_spec \
9313 enable_shared_with_static_runtimes \
9314 old_archive_cmds \
9315 old_archive_from_new_cmds \
9316 predep_objects \
9317 postdep_objects \
9318 predeps \
9319 postdeps \
9320 compiler_lib_search_path \
9321 archive_cmds \
9322 archive_expsym_cmds \
9323 postinstall_cmds \
9324 postuninstall_cmds \
9325 old_archive_from_expsyms_cmds \
9326 allow_undefined_flag \
9327 no_undefined_flag \
9328 export_symbols_cmds \
9329 hardcode_libdir_flag_spec \
9330 hardcode_libdir_flag_spec_ld \
9331 hardcode_libdir_separator \
9332 hardcode_automatic \
9333 module_cmds \
9334 module_expsym_cmds \
9335 lt_cv_prog_compiler_c_o \
9336 exclude_expsyms \
9337 include_expsyms; do
9339 case $var in
9340 old_archive_cmds | \
9341 old_archive_from_new_cmds | \
9342 archive_cmds | \
9343 archive_expsym_cmds | \
9344 module_cmds | \
9345 module_expsym_cmds | \
9346 old_archive_from_expsyms_cmds | \
9347 export_symbols_cmds | \
9348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9349 postinstall_cmds | postuninstall_cmds | \
9350 old_postinstall_cmds | old_postuninstall_cmds | \
9351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9352 # Double-quote double-evaled strings.
9353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9358 esac
9359 done
9361 case $lt_echo in
9362 *'\$0 --fallback-echo"')
9363 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9365 esac
9367 cfgfile="${ofile}T"
9368 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9369 $rm -f "$cfgfile"
9370 { echo "$as_me:$LINENO: creating $ofile" >&5
9371 echo "$as_me: creating $ofile" >&6;}
9373 cat <<__EOF__ >> "$cfgfile"
9374 #! $SHELL
9376 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9377 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9378 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9380 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9381 # Free Software Foundation, Inc.
9383 # This file is part of GNU Libtool:
9384 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9386 # This program is free software; you can redistribute it and/or modify
9387 # it under the terms of the GNU General Public License as published by
9388 # the Free Software Foundation; either version 2 of the License, or
9389 # (at your option) any later version.
9391 # This program is distributed in the hope that it will be useful, but
9392 # WITHOUT ANY WARRANTY; without even the implied warranty of
9393 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9394 # General Public License for more details.
9396 # You should have received a copy of the GNU General Public License
9397 # along with this program; if not, write to the Free Software
9398 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9400 # As a special exception to the GNU General Public License, if you
9401 # distribute this file as part of a program that contains a
9402 # configuration script generated by Autoconf, you may include it under
9403 # the same distribution terms that you use for the rest of that program.
9405 # A sed program that does not truncate output.
9406 SED=$lt_SED
9408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9409 Xsed="$SED -e s/^X//"
9411 # The HP-UX ksh and POSIX shell print the target directory to stdout
9412 # if CDPATH is set.
9413 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9415 # The names of the tagged configurations supported by this script.
9416 available_tags=
9418 # ### BEGIN LIBTOOL CONFIG
9420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9422 # Shell to use when invoking shell scripts.
9423 SHELL=$lt_SHELL
9425 # Whether or not to build shared libraries.
9426 build_libtool_libs=$enable_shared
9428 # Whether or not to build static libraries.
9429 build_old_libs=$enable_static
9431 # Whether or not to add -lc for building shared libraries.
9432 build_libtool_need_lc=$archive_cmds_need_lc
9434 # Whether or not to disallow shared libs when runtime libs are static
9435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9437 # Whether or not to optimize for fast installation.
9438 fast_install=$enable_fast_install
9440 # The host system.
9441 host_alias=$host_alias
9442 host=$host
9444 # An echo program that does not interpret backslashes.
9445 echo=$lt_echo
9447 # The archiver.
9448 AR=$lt_AR
9449 AR_FLAGS=$lt_AR_FLAGS
9451 # A C compiler.
9452 LTCC=$lt_LTCC
9454 # A language-specific compiler.
9455 CC=$lt_compiler
9457 # Is the compiler the GNU C compiler?
9458 with_gcc=$GCC
9460 # An ERE matcher.
9461 EGREP=$lt_EGREP
9463 # The linker used to build libraries.
9464 LD=$lt_LD
9466 # Whether we need hard or soft links.
9467 LN_S=$lt_LN_S
9469 # A BSD-compatible nm program.
9470 NM=$lt_NM
9472 # A symbol stripping program
9473 STRIP="$STRIP"
9475 # Used to examine libraries when file_magic_cmd begins "file"
9476 MAGIC_CMD=$MAGIC_CMD
9478 # Used on cygwin: DLL creation program.
9479 DLLTOOL="$DLLTOOL"
9481 # Used on cygwin: object dumper.
9482 OBJDUMP="$OBJDUMP"
9484 # Used on cygwin: assembler.
9485 AS="$AS"
9487 # The name of the directory that contains temporary libtool files.
9488 objdir=$objdir
9490 # How to create reloadable object files.
9491 reload_flag=$lt_reload_flag
9492 reload_cmds=$lt_reload_cmds
9494 # How to pass a linker flag through the compiler.
9495 wl=$lt_lt_prog_compiler_wl
9497 # Object file suffix (normally "o").
9498 objext="$ac_objext"
9500 # Old archive suffix (normally "a").
9501 libext="$libext"
9503 # Shared library suffix (normally ".so").
9504 shrext='$shrext'
9506 # Executable file suffix (normally "").
9507 exeext="$exeext"
9509 # Additional compiler flags for building library objects.
9510 pic_flag=$lt_lt_prog_compiler_pic
9511 pic_mode=$pic_mode
9513 # What is the maximum length of a command?
9514 max_cmd_len=$lt_cv_sys_max_cmd_len
9516 # Does compiler simultaneously support -c and -o options?
9517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9519 # Must we lock files when doing compilation ?
9520 need_locks=$lt_need_locks
9522 # Do we need the lib prefix for modules?
9523 need_lib_prefix=$need_lib_prefix
9525 # Do we need a version for libraries?
9526 need_version=$need_version
9528 # Whether dlopen is supported.
9529 dlopen_support=$enable_dlopen
9531 # Whether dlopen of programs is supported.
9532 dlopen_self=$enable_dlopen_self
9534 # Whether dlopen of statically linked programs is supported.
9535 dlopen_self_static=$enable_dlopen_self_static
9537 # Compiler flag to prevent dynamic linking.
9538 link_static_flag=$lt_lt_prog_compiler_static
9540 # Compiler flag to turn off builtin functions.
9541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9543 # Compiler flag to allow reflexive dlopens.
9544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9546 # Compiler flag to generate shared objects directly from archives.
9547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9549 # Compiler flag to generate thread-safe objects.
9550 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9552 # Library versioning type.
9553 version_type=$version_type
9555 # Format of library name prefix.
9556 libname_spec=$lt_libname_spec
9558 # List of archive names. First name is the real one, the rest are links.
9559 # The last name is the one that the linker finds with -lNAME.
9560 library_names_spec=$lt_library_names_spec
9562 # The coded name of the library, if different from the real name.
9563 soname_spec=$lt_soname_spec
9565 # Commands used to build and install an old-style archive.
9566 RANLIB=$lt_RANLIB
9567 old_archive_cmds=$lt_old_archive_cmds
9568 old_postinstall_cmds=$lt_old_postinstall_cmds
9569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9571 # Create an old-style archive from a shared archive.
9572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9574 # Create a temporary old-style archive to link instead of a shared archive.
9575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9577 # Commands used to build and install a shared archive.
9578 archive_cmds=$lt_archive_cmds
9579 archive_expsym_cmds=$lt_archive_expsym_cmds
9580 postinstall_cmds=$lt_postinstall_cmds
9581 postuninstall_cmds=$lt_postuninstall_cmds
9583 # Commands used to build a loadable module (assumed same as above if empty)
9584 module_cmds=$lt_module_cmds
9585 module_expsym_cmds=$lt_module_expsym_cmds
9587 # Commands to strip libraries.
9588 old_striplib=$lt_old_striplib
9589 striplib=$lt_striplib
9591 # Dependencies to place before the objects being linked to create a
9592 # shared library.
9593 predep_objects=$lt_predep_objects
9595 # Dependencies to place after the objects being linked to create a
9596 # shared library.
9597 postdep_objects=$lt_postdep_objects
9599 # Dependencies to place before the objects being linked to create a
9600 # shared library.
9601 predeps=$lt_predeps
9603 # Dependencies to place after the objects being linked to create a
9604 # shared library.
9605 postdeps=$lt_postdeps
9607 # The library search path used internally by the compiler when linking
9608 # a shared library.
9609 compiler_lib_search_path=$lt_compiler_lib_search_path
9611 # Method to check whether dependent libraries are shared objects.
9612 deplibs_check_method=$lt_deplibs_check_method
9614 # Command to use when deplibs_check_method == file_magic.
9615 file_magic_cmd=$lt_file_magic_cmd
9617 # Flag that allows shared libraries with undefined symbols to be built.
9618 allow_undefined_flag=$lt_allow_undefined_flag
9620 # Flag that forces no undefined symbols.
9621 no_undefined_flag=$lt_no_undefined_flag
9623 # Commands used to finish a libtool library installation in a directory.
9624 finish_cmds=$lt_finish_cmds
9626 # Same as above, but a single script fragment to be evaled but not shown.
9627 finish_eval=$lt_finish_eval
9629 # Take the output of nm and produce a listing of raw symbols and C names.
9630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9632 # Transform the output of nm in a proper C declaration
9633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9635 # Transform the output of nm in a C name address pair
9636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9638 # This is the shared library runtime path variable.
9639 runpath_var=$runpath_var
9641 # This is the shared library path variable.
9642 shlibpath_var=$shlibpath_var
9644 # Is shlibpath searched before the hard-coded library search path?
9645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9647 # How to hardcode a shared library path into an executable.
9648 hardcode_action=$hardcode_action
9650 # Whether we should hardcode library paths into libraries.
9651 hardcode_into_libs=$hardcode_into_libs
9653 # Flag to hardcode \$libdir into a binary during linking.
9654 # This must work even if \$libdir does not exist.
9655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9657 # If ld is used when linking, flag to hardcode \$libdir into
9658 # a binary during linking. This must work even if \$libdir does
9659 # not exist.
9660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9662 # Whether we need a single -rpath flag with a separated argument.
9663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9666 # resulting binary.
9667 hardcode_direct=$hardcode_direct
9669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9670 # resulting binary.
9671 hardcode_minus_L=$hardcode_minus_L
9673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9674 # the resulting binary.
9675 hardcode_shlibpath_var=$hardcode_shlibpath_var
9677 # Set to yes if building a shared library automatically hardcodes DIR into the library
9678 # and all subsequent libraries and executables linked against it.
9679 hardcode_automatic=$hardcode_automatic
9681 # Variables whose values should be saved in libtool wrapper scripts and
9682 # restored at relink time.
9683 variables_saved_for_relink="$variables_saved_for_relink"
9685 # Whether libtool must link a program against all its dependency libraries.
9686 link_all_deplibs=$link_all_deplibs
9688 # Compile-time system search path for libraries
9689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9691 # Run-time system search path for libraries
9692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9694 # Fix the shell variable \$srcfile for the compiler.
9695 fix_srcfile_path="$fix_srcfile_path"
9697 # Set to yes if exported symbols are required.
9698 always_export_symbols=$always_export_symbols
9700 # The commands to list exported symbols.
9701 export_symbols_cmds=$lt_export_symbols_cmds
9703 # The commands to extract the exported symbol list from a shared archive.
9704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9706 # Symbols that should not be listed in the preloaded symbols.
9707 exclude_expsyms=$lt_exclude_expsyms
9709 # Symbols that must always be exported.
9710 include_expsyms=$lt_include_expsyms
9712 # ### END LIBTOOL CONFIG
9714 __EOF__
9717 case $host_os in
9718 aix3*)
9719 cat <<\EOF >> "$cfgfile"
9721 # AIX sometimes has problems with the GCC collect2 program. For some
9722 # reason, if we set the COLLECT_NAMES environment variable, the problems
9723 # vanish in a puff of smoke.
9724 if test "X${COLLECT_NAMES+set}" != Xset; then
9725 COLLECT_NAMES=
9726 export COLLECT_NAMES
9730 esac
9732 # We use sed instead of cat because bash on DJGPP gets confused if
9733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9734 # text mode, it properly converts lines to CR/LF. This bash problem
9735 # is reportedly fixed, but why not run on old versions too?
9736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9738 mv -f "$cfgfile" "$ofile" || \
9739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9740 chmod +x "$ofile"
9742 else
9743 # If there is no Makefile yet, we rely on a make rule to execute
9744 # `config.status --recheck' to rerun these tests and create the
9745 # libtool script then.
9746 test -f Makefile && make "$ltmain"
9750 ac_ext=c
9751 ac_cpp='$CPP $CPPFLAGS'
9752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9756 CC="$lt_save_CC"
9759 # Check whether --with-tags was given.
9760 if test "${with_tags+set}" = set; then
9761 withval=$with_tags; tagnames="$withval"
9765 if test -f "$ltmain" && test -n "$tagnames"; then
9766 if test ! -f "${ofile}"; then
9767 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9768 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9771 if test -z "$LTCC"; then
9772 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9773 if test -z "$LTCC"; then
9774 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9775 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9776 else
9777 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9778 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9782 # Extract list of available tagged configurations in $ofile.
9783 # Note that this assumes the entire list is on one line.
9784 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9787 for tagname in $tagnames; do
9788 IFS="$lt_save_ifs"
9789 # Check whether tagname contains only valid characters
9790 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9791 "") ;;
9792 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9793 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9794 { (exit 1); exit 1; }; }
9796 esac
9798 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9799 then
9800 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9801 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9802 { (exit 1); exit 1; }; }
9805 # Update the list of available tags.
9806 if test -n "$tagname"; then
9807 echo appending configuration tag \"$tagname\" to $ofile
9809 case $tagname in
9810 CXX)
9811 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9812 ac_ext=cpp
9813 ac_cpp='$CXXCPP $CPPFLAGS'
9814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9821 archive_cmds_need_lc_CXX=no
9822 allow_undefined_flag_CXX=
9823 always_export_symbols_CXX=no
9824 archive_expsym_cmds_CXX=
9825 export_dynamic_flag_spec_CXX=
9826 hardcode_direct_CXX=no
9827 hardcode_libdir_flag_spec_CXX=
9828 hardcode_libdir_flag_spec_ld_CXX=
9829 hardcode_libdir_separator_CXX=
9830 hardcode_minus_L_CXX=no
9831 hardcode_automatic_CXX=no
9832 module_cmds_CXX=
9833 module_expsym_cmds_CXX=
9834 link_all_deplibs_CXX=unknown
9835 old_archive_cmds_CXX=$old_archive_cmds
9836 no_undefined_flag_CXX=
9837 whole_archive_flag_spec_CXX=
9838 enable_shared_with_static_runtimes_CXX=no
9840 # Dependencies to place before and after the object being linked:
9841 predep_objects_CXX=
9842 postdep_objects_CXX=
9843 predeps_CXX=
9844 postdeps_CXX=
9845 compiler_lib_search_path_CXX=
9847 # Source file extension for C++ test sources.
9848 ac_ext=cc
9850 # Object file extension for compiled C++ test sources.
9851 objext=o
9852 objext_CXX=$objext
9854 # Code to be used in simple compile tests
9855 lt_simple_compile_test_code="int some_variable = 0;\n"
9857 # Code to be used in simple link tests
9858 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9860 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9862 # If no C compiler was specified, use CC.
9863 LTCC=${LTCC-"$CC"}
9865 # Allow CC to be a program name with arguments.
9866 compiler=$CC
9869 # Allow CC to be a program name with arguments.
9870 lt_save_CC=$CC
9871 lt_save_LD=$LD
9872 lt_save_GCC=$GCC
9873 GCC=$GXX
9874 lt_save_with_gnu_ld=$with_gnu_ld
9875 lt_save_path_LD=$lt_cv_path_LD
9876 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9877 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9878 else
9879 unset lt_cv_prog_gnu_ld
9881 if test -n "${lt_cv_path_LDCXX+set}"; then
9882 lt_cv_path_LD=$lt_cv_path_LDCXX
9883 else
9884 unset lt_cv_path_LD
9886 test -z "${LDCXX+set}" || LD=$LDCXX
9887 CC=${CXX-"c++"}
9888 compiler=$CC
9889 compiler_CXX=$CC
9890 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9892 # We don't want -fno-exception wen compiling C++ code, so set the
9893 # no_builtin_flag separately
9894 if test "$GXX" = yes; then
9895 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9896 else
9897 lt_prog_compiler_no_builtin_flag_CXX=
9900 if test "$GXX" = yes; then
9901 # Set up default GNU C++ configuration
9904 # Check whether --with-gnu-ld was given.
9905 if test "${with_gnu_ld+set}" = set; then
9906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9907 else
9908 with_gnu_ld=no
9911 ac_prog=ld
9912 if test "$GCC" = yes; then
9913 # Check if gcc -print-prog-name=ld gives a path.
9914 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9915 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9916 case $host in
9917 *-*-mingw*)
9918 # gcc leaves a trailing carriage return which upsets mingw
9919 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9921 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9922 esac
9923 case $ac_prog in
9924 # Accept absolute paths.
9925 [\\/]* | ?:[\\/]*)
9926 re_direlt='/[^/][^/]*/\.\./'
9927 # Canonicalize the pathname of ld
9928 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9929 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9930 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9931 done
9932 test -z "$LD" && LD="$ac_prog"
9935 # If it fails, then pretend we aren't using GCC.
9936 ac_prog=ld
9939 # If it is relative, then search for the first ld in PATH.
9940 with_gnu_ld=unknown
9942 esac
9943 elif test "$with_gnu_ld" = yes; then
9944 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9945 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9946 else
9947 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9948 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9950 if test "${lt_cv_path_LD+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953 if test -z "$LD"; then
9954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9955 for ac_dir in $PATH; do
9956 IFS="$lt_save_ifs"
9957 test -z "$ac_dir" && ac_dir=.
9958 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9959 lt_cv_path_LD="$ac_dir/$ac_prog"
9960 # Check to see if the program is GNU ld. I'd rather use --version,
9961 # but apparently some GNU ld's only accept -v.
9962 # Break only if it was the GNU/non-GNU ld that we prefer.
9963 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9964 *GNU* | *'with BFD'*)
9965 test "$with_gnu_ld" != no && break
9968 test "$with_gnu_ld" != yes && break
9970 esac
9972 done
9973 IFS="$lt_save_ifs"
9974 else
9975 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9979 LD="$lt_cv_path_LD"
9980 if test -n "$LD"; then
9981 { echo "$as_me:$LINENO: result: $LD" >&5
9982 echo "${ECHO_T}$LD" >&6; }
9983 else
9984 { echo "$as_me:$LINENO: result: no" >&5
9985 echo "${ECHO_T}no" >&6; }
9987 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9988 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9989 { (exit 1); exit 1; }; }
9990 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9991 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9992 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9996 case `$LD -v 2>&1 </dev/null` in
9997 *GNU* | *'with BFD'*)
9998 lt_cv_prog_gnu_ld=yes
10001 lt_cv_prog_gnu_ld=no
10003 esac
10005 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10006 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10007 with_gnu_ld=$lt_cv_prog_gnu_ld
10011 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10012 # archiving commands below assume that GNU ld is being used.
10013 if test "$with_gnu_ld" = yes; then
10014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10015 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'
10017 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10020 # If archive_cmds runs LD, not CC, wlarc should be empty
10021 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10022 # investigate it a little bit more. (MM)
10023 wlarc='${wl}'
10025 # ancient GNU ld didn't support --whole-archive et. al.
10026 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10027 grep 'no-whole-archive' > /dev/null; then
10028 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10029 else
10030 whole_archive_flag_spec_CXX=
10032 else
10033 with_gnu_ld=no
10034 wlarc=
10036 # A generic and very simple default shared library creation
10037 # command for GNU C++ for the case where it uses the native
10038 # linker, instead of GNU ld. If possible, this setting should
10039 # overridden to take advantage of the native linker features on
10040 # the platform it is being used on.
10041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10044 # Commands to make compiler produce verbose output that lists
10045 # what "hidden" libraries, object files and flags are used when
10046 # linking a shared library.
10047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10049 else
10050 GXX=no
10051 with_gnu_ld=no
10052 wlarc=
10055 # PORTME: fill in a description of your system's C++ link characteristics
10056 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10057 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10058 ld_shlibs_CXX=yes
10059 case $host_os in
10060 aix3*)
10061 # FIXME: insert proper C++ library support
10062 ld_shlibs_CXX=no
10064 aix4* | aix5*)
10065 if test "$host_cpu" = ia64; then
10066 # On IA64, the linker does run time linking by default, so we don't
10067 # have to do anything special.
10068 aix_use_runtimelinking=no
10069 exp_sym_flag='-Bexport'
10070 no_entry_flag=""
10071 else
10072 aix_use_runtimelinking=no
10074 # Test if we are trying to use run time linking or normal
10075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10076 # need to do runtime linking.
10077 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10078 for ld_flag in $LDFLAGS; do
10079 case $ld_flag in
10080 *-brtl*)
10081 aix_use_runtimelinking=yes
10082 break
10084 esac
10085 done
10086 esac
10088 exp_sym_flag='-bexport'
10089 no_entry_flag='-bnoentry'
10092 # When large executables or shared objects are built, AIX ld can
10093 # have problems creating the table of contents. If linking a library
10094 # or program results in "error TOC overflow" add -mminimal-toc to
10095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10098 archive_cmds_CXX=''
10099 hardcode_direct_CXX=yes
10100 hardcode_libdir_separator_CXX=':'
10101 link_all_deplibs_CXX=yes
10103 if test "$GXX" = yes; then
10104 case $host_os in aix4.012|aix4.012.*)
10105 # We only want to do this on AIX 4.2 and lower, the check
10106 # below for broken collect2 doesn't work under 4.3+
10107 collect2name=`${CC} -print-prog-name=collect2`
10108 if test -f "$collect2name" && \
10109 strings "$collect2name" | grep resolve_lib_name >/dev/null
10110 then
10111 # We have reworked collect2
10112 hardcode_direct_CXX=yes
10113 else
10114 # We have old collect2
10115 hardcode_direct_CXX=unsupported
10116 # It fails to find uninstalled libraries when the uninstalled
10117 # path is not listed in the libpath. Setting hardcode_minus_L
10118 # to unsupported forces relinking
10119 hardcode_minus_L_CXX=yes
10120 hardcode_libdir_flag_spec_CXX='-L$libdir'
10121 hardcode_libdir_separator_CXX=
10123 esac
10124 shared_flag='-shared'
10125 else
10126 # not using gcc
10127 if test "$host_cpu" = ia64; then
10128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10129 # chokes on -Wl,-G. The following line is correct:
10130 shared_flag='-G'
10131 else
10132 if test "$aix_use_runtimelinking" = yes; then
10133 shared_flag='${wl}-G'
10134 else
10135 shared_flag='${wl}-bM:SRE'
10140 # It seems that -bexpall does not export symbols beginning with
10141 # underscore (_), so it is better to generate a list of symbols to export.
10142 always_export_symbols_CXX=yes
10143 if test "$aix_use_runtimelinking" = yes; then
10144 # Warning - without using the other runtime loading flags (-brtl),
10145 # -berok will link without error, but may produce a broken library.
10146 allow_undefined_flag_CXX='-berok'
10147 # Determine the default libpath from the value encoded in an empty executable.
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h. */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10156 main ()
10160 return 0;
10162 _ACEOF
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_cxx_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext &&
10180 $as_test_x conftest$ac_exeext; then
10182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10184 # Check for a 64-bit object if we didn't find anything.
10185 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; }
10186 }'`; fi
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195 conftest$ac_exeext conftest.$ac_ext
10196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10198 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10200 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"
10201 else
10202 if test "$host_cpu" = ia64; then
10203 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10204 allow_undefined_flag_CXX="-z nodefs"
10205 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"
10206 else
10207 # Determine the default libpath from the value encoded in an empty executable.
10208 cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h. */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10216 main ()
10220 return 0;
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_cxx_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest$ac_exeext &&
10240 $as_test_x conftest$ac_exeext; then
10242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10244 # Check for a 64-bit object if we didn't find anything.
10245 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; }
10246 }'`; fi
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10258 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10259 # Warning - without using the other run time loading flags,
10260 # -berok will link without error, but may produce a broken library.
10261 no_undefined_flag_CXX=' ${wl}-bernotok'
10262 allow_undefined_flag_CXX=' ${wl}-berok'
10263 # -bexpall does not export symbols beginning with underscore (_)
10264 always_export_symbols_CXX=yes
10265 # Exported symbols can be pulled into shared objects from archives
10266 whole_archive_flag_spec_CXX=' '
10267 archive_cmds_need_lc_CXX=yes
10268 # This is similar to how AIX traditionally builds it's shared libraries.
10269 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'
10273 chorus*)
10274 case $cc_basename in
10276 # FIXME: insert proper C++ library support
10277 ld_shlibs_CXX=no
10279 esac
10282 cygwin* | mingw* | pw32*)
10283 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10284 # as there is no search path for DLLs.
10285 hardcode_libdir_flag_spec_CXX='-L$libdir'
10286 allow_undefined_flag_CXX=unsupported
10287 always_export_symbols_CXX=no
10288 enable_shared_with_static_runtimes_CXX=yes
10290 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10291 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'
10292 # If the export-symbols file already is a .def file (1st line
10293 # is EXPORTS), use it as is; otherwise, prepend...
10294 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10295 cp $export_symbols $output_objdir/$soname.def;
10296 else
10297 echo EXPORTS > $output_objdir/$soname.def;
10298 cat $export_symbols >> $output_objdir/$soname.def;
10300 $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'
10301 else
10302 ld_shlibs_CXX=no
10306 darwin* | rhapsody*)
10307 if test "$GXX" = yes; then
10308 archive_cmds_need_lc_CXX=no
10309 case "$host_os" in
10310 rhapsody* | darwin1.[012])
10311 allow_undefined_flag_CXX='-undefined suppress'
10313 *) # Darwin 1.3 on
10314 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10315 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10316 else
10317 case ${MACOSX_DEPLOYMENT_TARGET} in
10318 10.[012])
10319 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10321 10.*)
10322 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10324 esac
10327 esac
10328 lt_int_apple_cc_single_mod=no
10329 output_verbose_link_cmd='echo'
10330 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10331 lt_int_apple_cc_single_mod=yes
10333 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10334 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10335 else
10336 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'
10338 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10340 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10341 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10342 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}'
10343 else
10344 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}'
10346 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}'
10347 hardcode_direct_CXX=no
10348 hardcode_automatic_CXX=yes
10349 hardcode_shlibpath_var_CXX=unsupported
10350 whole_archive_flag_spec_CXX='-all_load $convenience'
10351 link_all_deplibs_CXX=yes
10352 else
10353 ld_shlibs_CXX=no
10357 dgux*)
10358 case $cc_basename in
10359 ec++)
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10363 ghcx)
10364 # Green Hills C++ Compiler
10365 # FIXME: insert proper C++ library support
10366 ld_shlibs_CXX=no
10369 # FIXME: insert proper C++ library support
10370 ld_shlibs_CXX=no
10372 esac
10374 freebsd12*)
10375 # C++ shared libraries reported to be fairly broken before switch to ELF
10376 ld_shlibs_CXX=no
10378 freebsd-elf*)
10379 archive_cmds_need_lc_CXX=no
10381 freebsd* | kfreebsd*-gnu)
10382 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10383 # conventions
10384 ld_shlibs_CXX=yes
10386 gnu*)
10388 hpux9*)
10389 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10390 hardcode_libdir_separator_CXX=:
10391 export_dynamic_flag_spec_CXX='${wl}-E'
10392 hardcode_direct_CXX=yes
10393 hardcode_minus_L_CXX=yes # Not in the search PATH,
10394 # but as the default
10395 # location of the library.
10397 case $cc_basename in
10399 # FIXME: insert proper C++ library support
10400 ld_shlibs_CXX=no
10402 aCC)
10403 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'
10404 # Commands to make compiler produce verbose output that lists
10405 # what "hidden" libraries, object files and flags are used when
10406 # linking a shared library.
10408 # There doesn't appear to be a way to prevent this compiler from
10409 # explicitly linking system object files so we need to strip them
10410 # from the output so that they don't get included in the library
10411 # dependencies.
10412 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'
10415 if test "$GXX" = yes; then
10416 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'
10417 else
10418 # FIXME: insert proper C++ library support
10419 ld_shlibs_CXX=no
10422 esac
10424 hpux10*|hpux11*)
10425 if test $with_gnu_ld = no; then
10426 case "$host_cpu" in
10427 hppa*64*)
10428 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10429 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10430 hardcode_libdir_separator_CXX=:
10432 ia64*)
10433 hardcode_libdir_flag_spec_CXX='-L$libdir'
10436 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10437 hardcode_libdir_separator_CXX=:
10438 export_dynamic_flag_spec_CXX='${wl}-E'
10440 esac
10442 case "$host_cpu" in
10443 hppa*64*)
10444 hardcode_direct_CXX=no
10445 hardcode_shlibpath_var_CXX=no
10447 ia64*)
10448 hardcode_direct_CXX=no
10449 hardcode_shlibpath_var_CXX=no
10450 hardcode_minus_L_CXX=yes # Not in the search PATH,
10451 # but as the default
10452 # location of the library.
10455 hardcode_direct_CXX=yes
10456 hardcode_minus_L_CXX=yes # Not in the search PATH,
10457 # but as the default
10458 # location of the library.
10460 esac
10462 case $cc_basename in
10464 # FIXME: insert proper C++ library support
10465 ld_shlibs_CXX=no
10467 aCC)
10468 case "$host_cpu" in
10469 hppa*64*|ia64*)
10470 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10473 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10475 esac
10476 # Commands to make compiler produce verbose output that lists
10477 # what "hidden" libraries, object files and flags are used when
10478 # linking a shared library.
10480 # There doesn't appear to be a way to prevent this compiler from
10481 # explicitly linking system object files so we need to strip them
10482 # from the output so that they don't get included in the library
10483 # dependencies.
10484 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'
10487 if test "$GXX" = yes; then
10488 if test $with_gnu_ld = no; then
10489 case "$host_cpu" in
10490 ia64*|hppa*64*)
10491 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10494 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'
10496 esac
10498 else
10499 # FIXME: insert proper C++ library support
10500 ld_shlibs_CXX=no
10503 esac
10505 irix5* | irix6*)
10506 case $cc_basename in
10508 # SGI C++
10509 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'
10511 # Archives containing C++ object files must be created using
10512 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10513 # necessary to make sure instantiated templates are included
10514 # in the archive.
10515 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10518 if test "$GXX" = yes; then
10519 if test "$with_gnu_ld" = no; then
10520 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'
10521 else
10522 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'
10525 link_all_deplibs_CXX=yes
10527 esac
10528 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10529 hardcode_libdir_separator_CXX=:
10531 linux*)
10532 case $cc_basename in
10533 KCC)
10534 # Kuck and Associates, Inc. (KAI) C++ Compiler
10536 # KCC will only create a shared library if the output file
10537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10538 # to its proper name (with version) after linking.
10539 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'
10540 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'
10541 # Commands to make compiler produce verbose output that lists
10542 # what "hidden" libraries, object files and flags are used when
10543 # linking a shared library.
10545 # There doesn't appear to be a way to prevent this compiler from
10546 # explicitly linking system object files so we need to strip them
10547 # from the output so that they don't get included in the library
10548 # dependencies.
10549 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'
10551 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10554 # Archives containing C++ object files must be created using
10555 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10556 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10558 icpc)
10559 # Intel C++
10560 with_gnu_ld=yes
10561 archive_cmds_need_lc_CXX=no
10562 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10563 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'
10564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10566 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10568 cxx)
10569 # Compaq C++
10570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571 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'
10573 runpath_var=LD_RUN_PATH
10574 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10575 hardcode_libdir_separator_CXX=:
10577 # Commands to make compiler produce verbose output that lists
10578 # what "hidden" libraries, object files and flags are used when
10579 # linking a shared library.
10581 # There doesn't appear to be a way to prevent this compiler from
10582 # explicitly linking system object files so we need to strip them
10583 # from the output so that they don't get included in the library
10584 # dependencies.
10585 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'
10587 esac
10589 lynxos*)
10590 # FIXME: insert proper C++ library support
10591 ld_shlibs_CXX=no
10593 m88k*)
10594 # FIXME: insert proper C++ library support
10595 ld_shlibs_CXX=no
10597 mvs*)
10598 case $cc_basename in
10599 cxx)
10600 # FIXME: insert proper C++ library support
10601 ld_shlibs_CXX=no
10604 # FIXME: insert proper C++ library support
10605 ld_shlibs_CXX=no
10607 esac
10609 netbsd*)
10610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10611 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10612 wlarc=
10613 hardcode_libdir_flag_spec_CXX='-R$libdir'
10614 hardcode_direct_CXX=yes
10615 hardcode_shlibpath_var_CXX=no
10617 # Workaround some broken pre-1.5 toolchains
10618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10620 osf3*)
10621 case $cc_basename in
10622 KCC)
10623 # Kuck and Associates, Inc. (KAI) C++ Compiler
10625 # KCC will only create a shared library if the output file
10626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10627 # to its proper name (with version) after linking.
10628 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'
10630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10631 hardcode_libdir_separator_CXX=:
10633 # Archives containing C++ object files must be created using
10634 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10635 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10638 RCC)
10639 # Rational C++ 2.4.1
10640 # FIXME: insert proper C++ library support
10641 ld_shlibs_CXX=no
10643 cxx)
10644 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10645 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'
10647 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10648 hardcode_libdir_separator_CXX=:
10650 # Commands to make compiler produce verbose output that lists
10651 # what "hidden" libraries, object files and flags are used when
10652 # linking a shared library.
10654 # There doesn't appear to be a way to prevent this compiler from
10655 # explicitly linking system object files so we need to strip them
10656 # from the output so that they don't get included in the library
10657 # dependencies.
10658 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'
10661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10663 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'
10665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10666 hardcode_libdir_separator_CXX=:
10668 # Commands to make compiler produce verbose output that lists
10669 # what "hidden" libraries, object files and flags are used when
10670 # linking a shared library.
10671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10673 else
10674 # FIXME: insert proper C++ library support
10675 ld_shlibs_CXX=no
10678 esac
10680 osf4* | osf5*)
10681 case $cc_basename in
10682 KCC)
10683 # Kuck and Associates, Inc. (KAI) C++ Compiler
10685 # KCC will only create a shared library if the output file
10686 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10687 # to its proper name (with version) after linking.
10688 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'
10690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10691 hardcode_libdir_separator_CXX=:
10693 # Archives containing C++ object files must be created using
10694 # the KAI C++ compiler.
10695 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10697 RCC)
10698 # Rational C++ 2.4.1
10699 # FIXME: insert proper C++ library support
10700 ld_shlibs_CXX=no
10702 cxx)
10703 allow_undefined_flag_CXX=' -expect_unresolved \*'
10704 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'
10705 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10706 echo "-hidden">> $lib.exp~
10707 $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~
10708 $rm $lib.exp'
10710 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10711 hardcode_libdir_separator_CXX=:
10713 # Commands to make compiler produce verbose output that lists
10714 # what "hidden" libraries, object files and flags are used when
10715 # linking a shared library.
10717 # There doesn't appear to be a way to prevent this compiler from
10718 # explicitly linking system object files so we need to strip them
10719 # from the output so that they don't get included in the library
10720 # dependencies.
10721 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'
10724 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10725 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10726 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'
10728 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10729 hardcode_libdir_separator_CXX=:
10731 # Commands to make compiler produce verbose output that lists
10732 # what "hidden" libraries, object files and flags are used when
10733 # linking a shared library.
10734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10736 else
10737 # FIXME: insert proper C++ library support
10738 ld_shlibs_CXX=no
10741 esac
10743 psos*)
10744 # FIXME: insert proper C++ library support
10745 ld_shlibs_CXX=no
10747 sco*)
10748 archive_cmds_need_lc_CXX=no
10749 case $cc_basename in
10751 # FIXME: insert proper C++ library support
10752 ld_shlibs_CXX=no
10755 # FIXME: insert proper C++ library support
10756 ld_shlibs_CXX=no
10758 esac
10760 sunos4*)
10761 case $cc_basename in
10763 # Sun C++ 4.x
10764 # FIXME: insert proper C++ library support
10765 ld_shlibs_CXX=no
10767 lcc)
10768 # Lucid
10769 # FIXME: insert proper C++ library support
10770 ld_shlibs_CXX=no
10773 # FIXME: insert proper C++ library support
10774 ld_shlibs_CXX=no
10776 esac
10778 solaris*)
10779 case $cc_basename in
10781 # Sun C++ 4.2, 5.x and Centerline C++
10782 no_undefined_flag_CXX=' -zdefs'
10783 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10784 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10785 $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'
10787 hardcode_libdir_flag_spec_CXX='-R$libdir'
10788 hardcode_shlibpath_var_CXX=no
10789 case $host_os in
10790 solaris2.0-5 | solaris2.0-5.*) ;;
10792 # The C++ compiler is used as linker so we must use $wl
10793 # flag to pass the commands to the underlying system
10794 # linker.
10795 # Supported since Solaris 2.6 (maybe 2.5.1?)
10796 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10798 esac
10799 link_all_deplibs_CXX=yes
10801 # Commands to make compiler produce verbose output that lists
10802 # what "hidden" libraries, object files and flags are used when
10803 # linking a shared library.
10805 # There doesn't appear to be a way to prevent this compiler from
10806 # explicitly linking system object files so we need to strip them
10807 # from the output so that they don't get included in the library
10808 # dependencies.
10809 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'
10811 # Archives containing C++ object files must be created using
10812 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10813 # necessary to make sure instantiated templates are included
10814 # in the archive.
10815 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10817 gcx)
10818 # Green Hills C++ Compiler
10819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10821 # The C++ compiler must be used to create the archive.
10822 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10825 # GNU C++ compiler with Solaris linker
10826 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10827 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10828 if $CC --version | grep -v '^2\.7' > /dev/null; then
10829 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10830 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10831 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10833 # Commands to make compiler produce verbose output that lists
10834 # what "hidden" libraries, object files and flags are used when
10835 # linking a shared library.
10836 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10837 else
10838 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10839 # platform.
10840 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10841 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10842 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10844 # Commands to make compiler produce verbose output that lists
10845 # what "hidden" libraries, object files and flags are used when
10846 # linking a shared library.
10847 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10850 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10853 esac
10855 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10856 archive_cmds_need_lc_CXX=no
10858 tandem*)
10859 case $cc_basename in
10860 NCC)
10861 # NonStop-UX NCC 3.20
10862 # FIXME: insert proper C++ library support
10863 ld_shlibs_CXX=no
10866 # FIXME: insert proper C++ library support
10867 ld_shlibs_CXX=no
10869 esac
10871 vxworks*)
10872 # FIXME: insert proper C++ library support
10873 ld_shlibs_CXX=no
10876 # FIXME: insert proper C++ library support
10877 ld_shlibs_CXX=no
10879 esac
10880 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10881 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10882 test "$ld_shlibs_CXX" = no && can_build_shared=no
10884 GCC_CXX="$GXX"
10885 LD_CXX="$LD"
10887 ## CAVEAT EMPTOR:
10888 ## There is no encapsulation within the following macros, do not change
10889 ## the running order or otherwise move them around unless you know exactly
10890 ## what you are doing...
10892 cat > conftest.$ac_ext <<EOF
10893 class Foo
10895 public:
10896 Foo (void) { a = 0; }
10897 private:
10898 int a;
10902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10903 (eval $ac_compile) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; then
10907 # Parse the compiler output and extract the necessary
10908 # objects, libraries and library flags.
10910 # Sentinel used to keep track of whether or not we are before
10911 # the conftest object file.
10912 pre_test_object_deps_done=no
10914 # The `*' in the case matches for architectures that use `case' in
10915 # $output_verbose_cmd can trigger glob expansion during the loop
10916 # eval without this substitution.
10917 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10919 for p in `eval $output_verbose_link_cmd`; do
10920 case $p in
10922 -L* | -R* | -l*)
10923 # Some compilers place space between "-{L,R}" and the path.
10924 # Remove the space.
10925 if test $p = "-L" \
10926 || test $p = "-R"; then
10927 prev=$p
10928 continue
10929 else
10930 prev=
10933 if test "$pre_test_object_deps_done" = no; then
10934 case $p in
10935 -L* | -R*)
10936 # Internal compiler library paths should come after those
10937 # provided the user. The postdeps already come after the
10938 # user supplied libs so there is no need to process them.
10939 if test -z "$compiler_lib_search_path_CXX"; then
10940 compiler_lib_search_path_CXX="${prev}${p}"
10941 else
10942 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10945 # The "-l" case would never come before the object being
10946 # linked, so don't bother handling this case.
10947 esac
10948 else
10949 if test -z "$postdeps_CXX"; then
10950 postdeps_CXX="${prev}${p}"
10951 else
10952 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10957 *.$objext)
10958 # This assumes that the test object file only shows up
10959 # once in the compiler output.
10960 if test "$p" = "conftest.$objext"; then
10961 pre_test_object_deps_done=yes
10962 continue
10965 if test "$pre_test_object_deps_done" = no; then
10966 if test -z "$predep_objects_CXX"; then
10967 predep_objects_CXX="$p"
10968 else
10969 predep_objects_CXX="$predep_objects_CXX $p"
10971 else
10972 if test -z "$postdep_objects_CXX"; then
10973 postdep_objects_CXX="$p"
10974 else
10975 postdep_objects_CXX="$postdep_objects_CXX $p"
10980 *) ;; # Ignore the rest.
10982 esac
10983 done
10985 # Clean up.
10986 rm -f a.out a.exe
10987 else
10988 echo "libtool.m4: error: problem compiling CXX test program"
10991 $rm -f confest.$objext
10993 case " $postdeps_CXX " in
10994 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10995 esac
10997 lt_prog_compiler_wl_CXX=
10998 lt_prog_compiler_pic_CXX=
10999 lt_prog_compiler_static_CXX=
11001 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11002 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11004 # C++ specific cases for pic, static, wl, etc.
11005 if test "$GXX" = yes; then
11006 lt_prog_compiler_wl_CXX='-Wl,'
11007 lt_prog_compiler_static_CXX='-static'
11009 case $host_os in
11010 aix*)
11011 # All AIX code is PIC.
11012 if test "$host_cpu" = ia64; then
11013 # AIX 5 now supports IA64 processor
11014 lt_prog_compiler_static_CXX='-Bstatic'
11017 amigaos*)
11018 # FIXME: we need at least 68020 code to build shared libraries, but
11019 # adding the `-m68020' flag to GCC prevents building anything better,
11020 # like `-m68040'.
11021 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11023 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11024 # PIC is the default for these OSes.
11026 mingw* | os2* | pw32*)
11027 # This hack is so that the source file can tell whether it is being
11028 # built for inclusion in a dll (and should export symbols for example).
11029 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11031 darwin* | rhapsody*)
11032 # PIC is the default on this platform
11033 # Common symbols not allowed in MH_DYLIB files
11034 lt_prog_compiler_pic_CXX='-fno-common'
11036 *djgpp*)
11037 # DJGPP does not support shared libraries at all
11038 lt_prog_compiler_pic_CXX=
11040 sysv4*MP*)
11041 if test -d /usr/nec; then
11042 lt_prog_compiler_pic_CXX=-Kconform_pic
11045 hpux*)
11046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11047 # not for PA HP-UX.
11048 case "$host_cpu" in
11049 hppa*64*|ia64*)
11052 lt_prog_compiler_pic_CXX='-fPIC'
11054 esac
11057 lt_prog_compiler_pic_CXX='-fPIC'
11059 esac
11060 else
11061 case $host_os in
11062 aix4* | aix5*)
11063 # All AIX code is PIC.
11064 if test "$host_cpu" = ia64; then
11065 # AIX 5 now supports IA64 processor
11066 lt_prog_compiler_static_CXX='-Bstatic'
11067 else
11068 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11071 chorus*)
11072 case $cc_basename in
11073 cxch68)
11074 # Green Hills C++ Compiler
11075 # _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"
11077 esac
11079 dgux*)
11080 case $cc_basename in
11081 ec++)
11082 lt_prog_compiler_pic_CXX='-KPIC'
11084 ghcx)
11085 # Green Hills C++ Compiler
11086 lt_prog_compiler_pic_CXX='-pic'
11090 esac
11092 freebsd* | kfreebsd*-gnu)
11093 # FreeBSD uses GNU C++
11095 hpux9* | hpux10* | hpux11*)
11096 case $cc_basename in
11098 lt_prog_compiler_wl_CXX='-Wl,'
11099 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11100 if test "$host_cpu" != ia64; then
11101 lt_prog_compiler_pic_CXX='+Z'
11104 aCC)
11105 lt_prog_compiler_wl_CXX='-Wl,'
11106 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11107 case "$host_cpu" in
11108 hppa*64*|ia64*)
11109 # +Z the default
11112 lt_prog_compiler_pic_CXX='+Z'
11114 esac
11118 esac
11120 irix5* | irix6* | nonstopux*)
11121 case $cc_basename in
11123 lt_prog_compiler_wl_CXX='-Wl,'
11124 lt_prog_compiler_static_CXX='-non_shared'
11125 # CC pic flag -KPIC is the default.
11129 esac
11131 linux*)
11132 case $cc_basename in
11133 KCC)
11134 # KAI C++ Compiler
11135 lt_prog_compiler_wl_CXX='--backend -Wl,'
11136 lt_prog_compiler_pic_CXX='-fPIC'
11138 icpc)
11139 # Intel C++
11140 lt_prog_compiler_wl_CXX='-Wl,'
11141 lt_prog_compiler_pic_CXX='-KPIC'
11142 lt_prog_compiler_static_CXX='-static'
11144 cxx)
11145 # Compaq C++
11146 # Make sure the PIC flag is empty. It appears that all Alpha
11147 # Linux and Compaq Tru64 Unix objects are PIC.
11148 lt_prog_compiler_pic_CXX=
11149 lt_prog_compiler_static_CXX='-non_shared'
11153 esac
11155 lynxos*)
11157 m88k*)
11159 mvs*)
11160 case $cc_basename in
11161 cxx)
11162 lt_prog_compiler_pic_CXX='-W c,exportall'
11166 esac
11168 netbsd*)
11170 osf3* | osf4* | osf5*)
11171 case $cc_basename in
11172 KCC)
11173 lt_prog_compiler_wl_CXX='--backend -Wl,'
11175 RCC)
11176 # Rational C++ 2.4.1
11177 lt_prog_compiler_pic_CXX='-pic'
11179 cxx)
11180 # Digital/Compaq C++
11181 lt_prog_compiler_wl_CXX='-Wl,'
11182 # Make sure the PIC flag is empty. It appears that all Alpha
11183 # Linux and Compaq Tru64 Unix objects are PIC.
11184 lt_prog_compiler_pic_CXX=
11185 lt_prog_compiler_static_CXX='-non_shared'
11189 esac
11191 psos*)
11193 sco*)
11194 case $cc_basename in
11196 lt_prog_compiler_pic_CXX='-fPIC'
11200 esac
11202 solaris*)
11203 case $cc_basename in
11205 # Sun C++ 4.2, 5.x and Centerline C++
11206 lt_prog_compiler_pic_CXX='-KPIC'
11207 lt_prog_compiler_static_CXX='-Bstatic'
11208 lt_prog_compiler_wl_CXX='-Qoption ld '
11210 gcx)
11211 # Green Hills C++ Compiler
11212 lt_prog_compiler_pic_CXX='-PIC'
11216 esac
11218 sunos4*)
11219 case $cc_basename in
11221 # Sun C++ 4.x
11222 lt_prog_compiler_pic_CXX='-pic'
11223 lt_prog_compiler_static_CXX='-Bstatic'
11225 lcc)
11226 # Lucid
11227 lt_prog_compiler_pic_CXX='-pic'
11231 esac
11233 tandem*)
11234 case $cc_basename in
11235 NCC)
11236 # NonStop-UX NCC 3.20
11237 lt_prog_compiler_pic_CXX='-KPIC'
11241 esac
11243 unixware*)
11245 vxworks*)
11248 lt_prog_compiler_can_build_shared_CXX=no
11250 esac
11253 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11254 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11257 # Check to make sure the PIC flag actually works.
11259 if test -n "$lt_prog_compiler_pic_CXX"; then
11261 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11262 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11263 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 lt_prog_compiler_pic_works_CXX=no
11267 ac_outfile=conftest.$ac_objext
11268 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11269 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11270 # Insert the option either (1) after the last *FLAGS variable, or
11271 # (2) before a word containing "conftest.", or (3) at the end.
11272 # Note that $ac_compile itself does not contain backslashes and begins
11273 # with a dollar sign (not a hyphen), so the echo should work correctly.
11274 # The option is referenced via a variable to avoid confusing sed.
11275 lt_compile=`echo "$ac_compile" | $SED \
11276 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11278 -e 's:$: $lt_compiler_flag:'`
11279 (eval echo "\"\$as_me:11279: $lt_compile\"" >&5)
11280 (eval "$lt_compile" 2>conftest.err)
11281 ac_status=$?
11282 cat conftest.err >&5
11283 echo "$as_me:11283: \$? = $ac_status" >&5
11284 if (exit $ac_status) && test -s "$ac_outfile"; then
11285 # The compiler can only warn and ignore the option if not recognized
11286 # So say no if there are warnings
11287 if test ! -s conftest.err; then
11288 lt_prog_compiler_pic_works_CXX=yes
11291 $rm conftest*
11294 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11295 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11297 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11298 case $lt_prog_compiler_pic_CXX in
11299 "" | " "*) ;;
11300 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11301 esac
11302 else
11303 lt_prog_compiler_pic_CXX=
11304 lt_prog_compiler_can_build_shared_CXX=no
11308 case "$host_os" in
11309 # For platforms which do not support PIC, -DPIC is meaningless:
11310 *djgpp*)
11311 lt_prog_compiler_pic_CXX=
11314 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11316 esac
11318 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11319 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11320 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323 lt_cv_prog_compiler_c_o_CXX=no
11324 $rm -r conftest 2>/dev/null
11325 mkdir conftest
11326 cd conftest
11327 mkdir out
11328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11330 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11331 # that will create temporary files in the current directory regardless of
11332 # the output directory. Thus, making CWD read-only will cause this test
11333 # to fail, enabling locking or at least warning the user not to do parallel
11334 # builds.
11335 chmod -w .
11337 lt_compiler_flag="-o out/conftest2.$ac_objext"
11338 # Insert the option either (1) after the last *FLAGS variable, or
11339 # (2) before a word containing "conftest.", or (3) at the end.
11340 # Note that $ac_compile itself does not contain backslashes and begins
11341 # with a dollar sign (not a hyphen), so the echo should work correctly.
11342 lt_compile=`echo "$ac_compile" | $SED \
11343 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11345 -e 's:$: $lt_compiler_flag:'`
11346 (eval echo "\"\$as_me:11346: $lt_compile\"" >&5)
11347 (eval "$lt_compile" 2>out/conftest.err)
11348 ac_status=$?
11349 cat out/conftest.err >&5
11350 echo "$as_me:11350: \$? = $ac_status" >&5
11351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11352 then
11353 # The compiler can only warn and ignore the option if not recognized
11354 # So say no if there are warnings
11355 if test ! -s out/conftest.err; then
11356 lt_cv_prog_compiler_c_o_CXX=yes
11359 chmod u+w .
11360 $rm conftest*
11361 # SGI C++ compiler will create directory out/ii_files/ for
11362 # template instantiation
11363 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11364 $rm out/* && rmdir out
11365 cd ..
11366 rmdir conftest
11367 $rm conftest*
11370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11371 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11374 hard_links="nottested"
11375 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11376 # do not overwrite the value of need_locks provided by the user
11377 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11378 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11379 hard_links=yes
11380 $rm conftest*
11381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11382 touch conftest.a
11383 ln conftest.a conftest.b 2>&5 || hard_links=no
11384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11385 { echo "$as_me:$LINENO: result: $hard_links" >&5
11386 echo "${ECHO_T}$hard_links" >&6; }
11387 if test "$hard_links" = no; then
11388 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11389 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11390 need_locks=warn
11392 else
11393 need_locks=no
11396 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11397 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11399 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11400 case $host_os in
11401 aix4* | aix5*)
11402 # If we're using GNU nm, then we don't want the "-C" option.
11403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11404 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11405 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'
11406 else
11407 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'
11410 pw32*)
11411 export_symbols_cmds_CXX="$ltdll_cmds"
11413 cygwin* | mingw*)
11414 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11419 esac
11421 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11422 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11423 test "$ld_shlibs_CXX" = no && can_build_shared=no
11425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11426 if test "$GCC" = yes; then
11427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11431 # Do we need to explicitly link libc?
11433 case "x$archive_cmds_need_lc_CXX" in
11434 x|xyes)
11435 # Assume -lc should be added
11436 archive_cmds_need_lc_CXX=yes
11438 if test "$enable_shared" = yes && test "$GCC" = yes; then
11439 case $archive_cmds_CXX in
11440 *'~'*)
11441 # FIXME: we may have to deal with multi-command sequences.
11443 '$CC '*)
11444 # Test whether the compiler implicitly links with -lc since on some
11445 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11446 # to ld, don't add -lc before -lgcc.
11447 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11448 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11449 $rm conftest*
11450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11453 (eval $ac_compile) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } 2>conftest.err; then
11457 soname=conftest
11458 lib=conftest
11459 libobjs=conftest.$ac_objext
11460 deplibs=
11461 wl=$lt_prog_compiler_wl_CXX
11462 compiler_flags=-v
11463 linker_flags=-v
11464 verstring=
11465 output_objdir=.
11466 libname=conftest
11467 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11468 allow_undefined_flag_CXX=
11469 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11470 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }
11474 then
11475 archive_cmds_need_lc_CXX=no
11476 else
11477 archive_cmds_need_lc_CXX=yes
11479 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11480 else
11481 cat conftest.err 1>&5
11483 $rm conftest*
11484 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11485 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11487 esac
11490 esac
11492 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11493 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11494 library_names_spec=
11495 libname_spec='lib$name'
11496 soname_spec=
11497 shrext=".so"
11498 postinstall_cmds=
11499 postuninstall_cmds=
11500 finish_cmds=
11501 finish_eval=
11502 shlibpath_var=
11503 shlibpath_overrides_runpath=unknown
11504 version_type=none
11505 dynamic_linker="$host_os ld.so"
11506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11507 if test "$GCC" = yes; then
11508 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11509 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11510 # if the path contains ";" then we assume it to be the separator
11511 # otherwise default to the standard path separator (i.e. ":") - it is
11512 # assumed that no part of a normal pathname contains ";" but that should
11513 # okay in the real world where ";" in dirpaths is itself problematic.
11514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11515 else
11516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11518 else
11519 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11521 need_lib_prefix=unknown
11522 hardcode_into_libs=no
11524 # when you set need_version to no, make sure it does not cause -set_version
11525 # flags to be left without arguments
11526 need_version=unknown
11528 case $host_os in
11529 aix3*)
11530 version_type=linux
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11532 shlibpath_var=LIBPATH
11534 # AIX 3 has no versioning support, so we append a major version to the name.
11535 soname_spec='${libname}${release}${shared_ext}$major'
11538 aix4* | aix5*)
11539 version_type=linux
11540 need_lib_prefix=no
11541 need_version=no
11542 hardcode_into_libs=yes
11543 if test "$host_cpu" = ia64; then
11544 # AIX 5 supports IA64
11545 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 else
11548 # With GCC up to 2.95.x, collect2 would create an import file
11549 # for dependence libraries. The import file would start with
11550 # the line `#! .'. This would cause the generated library to
11551 # depend on `.', always an invalid library. This was fixed in
11552 # development snapshots of GCC prior to 3.0.
11553 case $host_os in
11554 aix4 | aix4.[01] | aix4.[01].*)
11555 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11556 echo ' yes '
11557 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11559 else
11560 can_build_shared=no
11563 esac
11564 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11565 # soname into executable. Probably we can add versioning support to
11566 # collect2, so additional links can be useful in future.
11567 if test "$aix_use_runtimelinking" = yes; then
11568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11569 # instead of lib<name>.a to let people know that these are not
11570 # typical AIX shared libraries.
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 else
11573 # We preserve .a as extension for shared libraries through AIX4.2
11574 # and later when we are not doing run time linking.
11575 library_names_spec='${libname}${release}.a $libname.a'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11578 shlibpath_var=LIBPATH
11582 amigaos*)
11583 library_names_spec='$libname.ixlibrary $libname.a'
11584 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11585 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'
11588 beos*)
11589 library_names_spec='${libname}${shared_ext}'
11590 dynamic_linker="$host_os ld.so"
11591 shlibpath_var=LIBRARY_PATH
11594 bsdi4*)
11595 version_type=linux
11596 need_version=no
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11603 # the default ld.so.conf also contains /usr/contrib/lib and
11604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11605 # libtool to hard-code these into programs
11608 cygwin* | mingw* | pw32*)
11609 version_type=windows
11610 shrext=".dll"
11611 need_version=no
11612 need_lib_prefix=no
11614 case $GCC,$host_os in
11615 yes,cygwin* | yes,mingw* | yes,pw32*)
11616 library_names_spec='$libname.dll.a'
11617 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11618 postinstall_cmds='base_file=`basename \${file}`~
11619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11620 dldir=$destdir/`dirname \$dlpath`~
11621 test -d \$dldir || mkdir -p \$dldir~
11622 $install_prog $dir/$dlname \$dldir/$dlname'
11623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11624 dlpath=$dir/\$dldll~
11625 $rm \$dlpath'
11626 shlibpath_overrides_runpath=yes
11628 case $host_os in
11629 cygwin*)
11630 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11631 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11632 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11634 mingw*)
11635 # MinGW DLLs use traditional 'lib' prefix
11636 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11638 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11639 # It is most probably a Windows format PATH printed by
11640 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11641 # path with ; separators, and with drive letters. We can handle the
11642 # drive letters (cygwin fileutils understands them), so leave them,
11643 # especially as we might pass files found there to a mingw objdump,
11644 # which wouldn't understand a cygwinified path. Ahh.
11645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11646 else
11647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11650 pw32*)
11651 # pw32 DLLs use 'pw' prefix rather than 'lib'
11652 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11654 esac
11658 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11660 esac
11661 dynamic_linker='Win32 ld.exe'
11662 # FIXME: first we should search . and the directory the executable is in
11663 shlibpath_var=PATH
11666 darwin* | rhapsody*)
11667 dynamic_linker="$host_os dyld"
11668 version_type=darwin
11669 need_lib_prefix=no
11670 need_version=no
11671 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11672 soname_spec='${libname}${release}${major}$shared_ext'
11673 shlibpath_overrides_runpath=yes
11674 shlibpath_var=DYLD_LIBRARY_PATH
11675 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11676 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11677 if test "$GCC" = yes; then
11678 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"`
11679 else
11680 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11685 dgux*)
11686 version_type=linux
11687 need_lib_prefix=no
11688 need_version=no
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 shlibpath_var=LD_LIBRARY_PATH
11694 freebsd1*)
11695 dynamic_linker=no
11698 kfreebsd*-gnu)
11699 version_type=linux
11700 need_lib_prefix=no
11701 need_version=no
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11703 soname_spec='${libname}${release}${shared_ext}$major'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 shlibpath_overrides_runpath=no
11706 hardcode_into_libs=yes
11707 dynamic_linker='GNU ld.so'
11710 freebsd*)
11711 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11712 version_type=freebsd-$objformat
11713 case $version_type in
11714 freebsd-elf*)
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11716 need_version=no
11717 need_lib_prefix=no
11719 freebsd-*)
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11721 need_version=yes
11723 esac
11724 shlibpath_var=LD_LIBRARY_PATH
11725 case $host_os in
11726 freebsd2*)
11727 shlibpath_overrides_runpath=yes
11729 freebsd3.01* | freebsdelf3.01*)
11730 shlibpath_overrides_runpath=yes
11731 hardcode_into_libs=yes
11733 *) # from 3.2 on
11734 shlibpath_overrides_runpath=no
11735 hardcode_into_libs=yes
11737 esac
11740 gnu*)
11741 version_type=linux
11742 need_lib_prefix=no
11743 need_version=no
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11746 shlibpath_var=LD_LIBRARY_PATH
11747 hardcode_into_libs=yes
11750 hpux9* | hpux10* | hpux11*)
11751 # Give a soname corresponding to the major version so that dld.sl refuses to
11752 # link against other versions.
11753 version_type=sunos
11754 need_lib_prefix=no
11755 need_version=no
11756 case "$host_cpu" in
11757 ia64*)
11758 shrext='.so'
11759 hardcode_into_libs=yes
11760 dynamic_linker="$host_os dld.so"
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 if test "X$HPUX_IA64_MODE" = X32; then
11766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11767 else
11768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11772 hppa*64*)
11773 shrext='.sl'
11774 hardcode_into_libs=yes
11775 dynamic_linker="$host_os dld.sl"
11776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11784 shrext='.sl'
11785 dynamic_linker="$host_os dld.sl"
11786 shlibpath_var=SHLIB_PATH
11787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11791 esac
11792 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11793 postinstall_cmds='chmod 555 $lib'
11796 irix5* | irix6* | nonstopux*)
11797 case $host_os in
11798 nonstopux*) version_type=nonstopux ;;
11800 if test "$lt_cv_prog_gnu_ld" = yes; then
11801 version_type=linux
11802 else
11803 version_type=irix
11804 fi ;;
11805 esac
11806 need_lib_prefix=no
11807 need_version=no
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11810 case $host_os in
11811 irix5* | nonstopux*)
11812 libsuff= shlibsuff=
11815 case $LD in # libtool.m4 will add one of these switches to LD
11816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11817 libsuff= shlibsuff= libmagic=32-bit;;
11818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11819 libsuff=32 shlibsuff=N32 libmagic=N32;;
11820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11822 *) libsuff= shlibsuff= libmagic=never-match;;
11823 esac
11825 esac
11826 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11827 shlibpath_overrides_runpath=no
11828 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11829 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11830 hardcode_into_libs=yes
11833 # No shared lib support for Linux oldld, aout, or coff.
11834 linux*oldld* | linux*aout* | linux*coff*)
11835 dynamic_linker=no
11838 # This must be Linux ELF.
11839 linux*)
11840 version_type=linux
11841 need_lib_prefix=no
11842 need_version=no
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 soname_spec='${libname}${release}${shared_ext}$major'
11845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=no
11848 # This implies no fast_install, which is unacceptable.
11849 # Some rework will be needed to allow for fast_install
11850 # before this can be enabled.
11851 hardcode_into_libs=yes
11853 # We used to test for /lib/ld.so.1 and disable shared libraries on
11854 # powerpc, because MkLinux only supported shared libraries with the
11855 # GNU dynamic linker. Since this was broken with cross compilers,
11856 # most powerpc-linux boxes support dynamic linking these days and
11857 # people can always --disable-shared, the test was removed, and we
11858 # assume the GNU/Linux dynamic linker is in use.
11859 dynamic_linker='GNU/Linux ld.so'
11862 netbsd*)
11863 version_type=sunos
11864 need_lib_prefix=no
11865 need_version=no
11866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11869 dynamic_linker='NetBSD (a.out) ld.so'
11870 else
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 dynamic_linker='NetBSD ld.elf_so'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 shlibpath_overrides_runpath=yes
11877 hardcode_into_libs=yes
11880 newsos6)
11881 version_type=linux
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes
11887 nto-qnx*)
11888 version_type=linux
11889 need_lib_prefix=no
11890 need_version=no
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=yes
11897 openbsd*)
11898 version_type=sunos
11899 need_lib_prefix=no
11900 need_version=no
11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11905 case $host_os in
11906 openbsd2.[89] | openbsd2.[89].*)
11907 shlibpath_overrides_runpath=no
11910 shlibpath_overrides_runpath=yes
11912 esac
11913 else
11914 shlibpath_overrides_runpath=yes
11918 os2*)
11919 libname_spec='$name'
11920 shrext=".dll"
11921 need_lib_prefix=no
11922 library_names_spec='$libname${shared_ext} $libname.a'
11923 dynamic_linker='OS/2 ld.exe'
11924 shlibpath_var=LIBPATH
11927 osf3* | osf4* | osf5*)
11928 version_type=osf
11929 need_lib_prefix=no
11930 need_version=no
11931 soname_spec='${libname}${release}${shared_ext}$major'
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11938 sco3.2v5*)
11939 version_type=osf
11940 soname_spec='${libname}${release}${shared_ext}$major'
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11942 shlibpath_var=LD_LIBRARY_PATH
11945 solaris*)
11946 version_type=linux
11947 need_lib_prefix=no
11948 need_version=no
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950 soname_spec='${libname}${release}${shared_ext}$major'
11951 shlibpath_var=LD_LIBRARY_PATH
11952 shlibpath_overrides_runpath=yes
11953 hardcode_into_libs=yes
11954 # ldd complains unless libraries are executable
11955 postinstall_cmds='chmod +x $lib'
11958 sunos4*)
11959 version_type=sunos
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=yes
11964 if test "$with_gnu_ld" = yes; then
11965 need_lib_prefix=no
11967 need_version=yes
11970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11971 version_type=linux
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973 soname_spec='${libname}${release}${shared_ext}$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 case $host_vendor in
11976 sni)
11977 shlibpath_overrides_runpath=no
11978 need_lib_prefix=no
11979 export_dynamic_flag_spec='${wl}-Blargedynsym'
11980 runpath_var=LD_RUN_PATH
11982 siemens)
11983 need_lib_prefix=no
11985 motorola)
11986 need_lib_prefix=no
11987 need_version=no
11988 shlibpath_overrides_runpath=no
11989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11991 esac
11994 sysv4*MP*)
11995 if test -d /usr/nec ;then
11996 version_type=linux
11997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11998 soname_spec='$libname${shared_ext}.$major'
11999 shlibpath_var=LD_LIBRARY_PATH
12003 uts4*)
12004 version_type=linux
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006 soname_spec='${libname}${release}${shared_ext}$major'
12007 shlibpath_var=LD_LIBRARY_PATH
12011 dynamic_linker=no
12013 esac
12014 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12015 echo "${ECHO_T}$dynamic_linker" >&6; }
12016 test "$dynamic_linker" = no && can_build_shared=no
12018 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12020 hardcode_action_CXX=
12021 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12022 test -n "$runpath_var CXX" || \
12023 test "X$hardcode_automatic_CXX"="Xyes" ; then
12025 # We can hardcode non-existant directories.
12026 if test "$hardcode_direct_CXX" != no &&
12027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12028 # have to relink, otherwise we might link with an installed library
12029 # when we should be linking with a yet-to-be-installed one
12030 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12031 test "$hardcode_minus_L_CXX" != no; then
12032 # Linking always hardcodes the temporary library directory.
12033 hardcode_action_CXX=relink
12034 else
12035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12036 hardcode_action_CXX=immediate
12038 else
12039 # We cannot hardcode anything, or else we can only hardcode existing
12040 # directories.
12041 hardcode_action_CXX=unsupported
12043 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12044 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12046 if test "$hardcode_action_CXX" = relink; then
12047 # Fast installation is not supported
12048 enable_fast_install=no
12049 elif test "$shlibpath_overrides_runpath" = yes ||
12050 test "$enable_shared" = no; then
12051 # Fast installation is not necessary
12052 enable_fast_install=needless
12055 striplib=
12056 old_striplib=
12057 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12058 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12059 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12060 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12061 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12062 { echo "$as_me:$LINENO: result: yes" >&5
12063 echo "${ECHO_T}yes" >&6; }
12064 else
12065 # FIXME - insert some real tests, host_os isn't really good enough
12066 case $host_os in
12067 darwin*)
12068 if test -n "$STRIP" ; then
12069 striplib="$STRIP -x"
12070 { echo "$as_me:$LINENO: result: yes" >&5
12071 echo "${ECHO_T}yes" >&6; }
12072 else
12073 { echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6; }
12078 { echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6; }
12081 esac
12084 if test "x$enable_dlopen" != xyes; then
12085 enable_dlopen=unknown
12086 enable_dlopen_self=unknown
12087 enable_dlopen_self_static=unknown
12088 else
12089 lt_cv_dlopen=no
12090 lt_cv_dlopen_libs=
12092 case $host_os in
12093 beos*)
12094 lt_cv_dlopen="load_add_on"
12095 lt_cv_dlopen_libs=
12096 lt_cv_dlopen_self=yes
12099 mingw* | pw32*)
12100 lt_cv_dlopen="LoadLibrary"
12101 lt_cv_dlopen_libs=
12104 cygwin*)
12105 lt_cv_dlopen="dlopen"
12106 lt_cv_dlopen_libs=
12109 darwin*)
12110 # if libdl is installed we need to link against it
12111 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12112 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12113 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116 ac_check_lib_save_LIBS=$LIBS
12117 LIBS="-ldl $LIBS"
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h. */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char dlopen ();
12133 main ()
12135 return dlopen ();
12137 return 0;
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_link") 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } && {
12154 test -z "$ac_cxx_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest$ac_exeext &&
12157 $as_test_x conftest$ac_exeext; then
12158 ac_cv_lib_dl_dlopen=yes
12159 else
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 ac_cv_lib_dl_dlopen=no
12166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12167 conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12170 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12172 if test $ac_cv_lib_dl_dlopen = yes; then
12173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12174 else
12176 lt_cv_dlopen="dyld"
12177 lt_cv_dlopen_libs=
12178 lt_cv_dlopen_self=yes
12185 { echo "$as_me:$LINENO: checking for shl_load" >&5
12186 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12187 if test "${ac_cv_func_shl_load+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12198 #define shl_load innocuous_shl_load
12200 /* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char shl_load (); below.
12202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12203 <limits.h> exists even on freestanding compilers. */
12205 #ifdef __STDC__
12206 # include <limits.h>
12207 #else
12208 # include <assert.h>
12209 #endif
12211 #undef shl_load
12213 /* Override any GCC internal prototype to avoid an error.
12214 Use char because int might match the return type of a GCC
12215 builtin and then its argument prototype would still apply. */
12216 #ifdef __cplusplus
12217 extern "C"
12218 #endif
12219 char shl_load ();
12220 /* The GNU C library defines this for functions which it implements
12221 to always fail with ENOSYS. Some functions are actually named
12222 something starting with __ and the normal name is an alias. */
12223 #if defined __stub_shl_load || defined __stub___shl_load
12224 choke me
12225 #endif
12228 main ()
12230 return shl_load ();
12232 return 0;
12234 _ACEOF
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (ac_try="$ac_link"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_link") 2>conftest.er1
12243 ac_status=$?
12244 grep -v '^ *+' conftest.er1 >conftest.err
12245 rm -f conftest.er1
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && {
12249 test -z "$ac_cxx_werror_flag" ||
12250 test ! -s conftest.err
12251 } && test -s conftest$ac_exeext &&
12252 $as_test_x conftest$ac_exeext; then
12253 ac_cv_func_shl_load=yes
12254 else
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 ac_cv_func_shl_load=no
12261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12262 conftest$ac_exeext conftest.$ac_ext
12264 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12265 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12266 if test $ac_cv_func_shl_load = yes; then
12267 lt_cv_dlopen="shl_load"
12268 else
12269 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12270 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12271 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274 ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-ldld $LIBS"
12276 cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h. */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char shl_load ();
12291 main ()
12293 return shl_load ();
12295 return 0;
12297 _ACEOF
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (ac_try="$ac_link"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_link") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && {
12312 test -z "$ac_cxx_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest$ac_exeext &&
12315 $as_test_x conftest$ac_exeext; then
12316 ac_cv_lib_dld_shl_load=yes
12317 else
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ac_cv_lib_dld_shl_load=no
12324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12328 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12329 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12330 if test $ac_cv_lib_dld_shl_load = yes; then
12331 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12332 else
12333 { echo "$as_me:$LINENO: checking for dlopen" >&5
12334 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12335 if test "${ac_cv_func_dlopen+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338 cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h. */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12344 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12346 #define dlopen innocuous_dlopen
12348 /* System header to define __stub macros and hopefully few prototypes,
12349 which can conflict with char dlopen (); below.
12350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12351 <limits.h> exists even on freestanding compilers. */
12353 #ifdef __STDC__
12354 # include <limits.h>
12355 #else
12356 # include <assert.h>
12357 #endif
12359 #undef dlopen
12361 /* Override any GCC internal prototype to avoid an error.
12362 Use char because int might match the return type of a GCC
12363 builtin and then its argument prototype would still apply. */
12364 #ifdef __cplusplus
12365 extern "C"
12366 #endif
12367 char dlopen ();
12368 /* The GNU C library defines this for functions which it implements
12369 to always fail with ENOSYS. Some functions are actually named
12370 something starting with __ and the normal name is an alias. */
12371 #if defined __stub_dlopen || defined __stub___dlopen
12372 choke me
12373 #endif
12376 main ()
12378 return dlopen ();
12380 return 0;
12382 _ACEOF
12383 rm -f conftest.$ac_objext conftest$ac_exeext
12384 if { (ac_try="$ac_link"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_link") 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } && {
12397 test -z "$ac_cxx_werror_flag" ||
12398 test ! -s conftest.err
12399 } && test -s conftest$ac_exeext &&
12400 $as_test_x conftest$ac_exeext; then
12401 ac_cv_func_dlopen=yes
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_cv_func_dlopen=no
12409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12410 conftest$ac_exeext conftest.$ac_ext
12412 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12413 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12414 if test $ac_cv_func_dlopen = yes; then
12415 lt_cv_dlopen="dlopen"
12416 else
12417 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12418 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422 ac_check_lib_save_LIBS=$LIBS
12423 LIBS="-ldl $LIBS"
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12434 #ifdef __cplusplus
12435 extern "C"
12436 #endif
12437 char dlopen ();
12439 main ()
12441 return dlopen ();
12443 return 0;
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (ac_try="$ac_link"
12448 case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_link") 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && {
12460 test -z "$ac_cxx_werror_flag" ||
12461 test ! -s conftest.err
12462 } && test -s conftest$ac_exeext &&
12463 $as_test_x conftest$ac_exeext; then
12464 ac_cv_lib_dl_dlopen=yes
12465 else
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_cv_lib_dl_dlopen=no
12472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12473 conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12477 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12478 if test $ac_cv_lib_dl_dlopen = yes; then
12479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12480 else
12481 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12482 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12483 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486 ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-lsvld $LIBS"
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h. */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12495 /* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 char dlopen ();
12503 main ()
12505 return dlopen ();
12507 return 0;
12509 _ACEOF
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (ac_try="$ac_link"
12512 case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12515 esac
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_link") 2>conftest.er1
12518 ac_status=$?
12519 grep -v '^ *+' conftest.er1 >conftest.err
12520 rm -f conftest.er1
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } && {
12524 test -z "$ac_cxx_werror_flag" ||
12525 test ! -s conftest.err
12526 } && test -s conftest$ac_exeext &&
12527 $as_test_x conftest$ac_exeext; then
12528 ac_cv_lib_svld_dlopen=yes
12529 else
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_cv_lib_svld_dlopen=no
12536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12537 conftest$ac_exeext conftest.$ac_ext
12538 LIBS=$ac_check_lib_save_LIBS
12540 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12541 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12542 if test $ac_cv_lib_svld_dlopen = yes; then
12543 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12544 else
12545 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12546 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12547 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 else
12550 ac_check_lib_save_LIBS=$LIBS
12551 LIBS="-ldld $LIBS"
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12562 #ifdef __cplusplus
12563 extern "C"
12564 #endif
12565 char dld_link ();
12567 main ()
12569 return dld_link ();
12571 return 0;
12573 _ACEOF
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (ac_try="$ac_link"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_link") 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } && {
12588 test -z "$ac_cxx_werror_flag" ||
12589 test ! -s conftest.err
12590 } && test -s conftest$ac_exeext &&
12591 $as_test_x conftest$ac_exeext; then
12592 ac_cv_lib_dld_dld_link=yes
12593 else
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 ac_cv_lib_dld_dld_link=no
12600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12601 conftest$ac_exeext conftest.$ac_ext
12602 LIBS=$ac_check_lib_save_LIBS
12604 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12605 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12606 if test $ac_cv_lib_dld_dld_link = yes; then
12607 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12626 esac
12628 if test "x$lt_cv_dlopen" != xno; then
12629 enable_dlopen=yes
12630 else
12631 enable_dlopen=no
12634 case $lt_cv_dlopen in
12635 dlopen)
12636 save_CPPFLAGS="$CPPFLAGS"
12637 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12639 save_LDFLAGS="$LDFLAGS"
12640 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12642 save_LIBS="$LIBS"
12643 LIBS="$lt_cv_dlopen_libs $LIBS"
12645 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12646 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12647 if test "${lt_cv_dlopen_self+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650 if test "$cross_compiling" = yes; then :
12651 lt_cv_dlopen_self=cross
12652 else
12653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12654 lt_status=$lt_dlunknown
12655 cat > conftest.$ac_ext <<EOF
12656 #line 12656 "configure"
12657 #include "confdefs.h"
12659 #if HAVE_DLFCN_H
12660 #include <dlfcn.h>
12661 #endif
12663 #include <stdio.h>
12665 #ifdef RTLD_GLOBAL
12666 # define LT_DLGLOBAL RTLD_GLOBAL
12667 #else
12668 # ifdef DL_GLOBAL
12669 # define LT_DLGLOBAL DL_GLOBAL
12670 # else
12671 # define LT_DLGLOBAL 0
12672 # endif
12673 #endif
12675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12676 find out it does not work in some platform. */
12677 #ifndef LT_DLLAZY_OR_NOW
12678 # ifdef RTLD_LAZY
12679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12680 # else
12681 # ifdef DL_LAZY
12682 # define LT_DLLAZY_OR_NOW DL_LAZY
12683 # else
12684 # ifdef RTLD_NOW
12685 # define LT_DLLAZY_OR_NOW RTLD_NOW
12686 # else
12687 # ifdef DL_NOW
12688 # define LT_DLLAZY_OR_NOW DL_NOW
12689 # else
12690 # define LT_DLLAZY_OR_NOW 0
12691 # endif
12692 # endif
12693 # endif
12694 # endif
12695 #endif
12697 #ifdef __cplusplus
12698 extern "C" void exit (int);
12699 #endif
12701 void fnord() { int i=42;}
12702 int main ()
12704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12705 int status = $lt_dlunknown;
12707 if (self)
12709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12711 /* dlclose (self); */
12714 exit (status);
12717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12718 (eval $ac_link) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12722 (./conftest; exit; ) 2>/dev/null
12723 lt_status=$?
12724 case x$lt_status in
12725 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12726 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12727 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12728 esac
12729 else :
12730 # compilation failed
12731 lt_cv_dlopen_self=no
12734 rm -fr conftest*
12738 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12739 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12741 if test "x$lt_cv_dlopen_self" = xyes; then
12742 LDFLAGS="$LDFLAGS $link_static_flag"
12743 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12744 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12745 if test "${lt_cv_dlopen_self_static+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748 if test "$cross_compiling" = yes; then :
12749 lt_cv_dlopen_self_static=cross
12750 else
12751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12752 lt_status=$lt_dlunknown
12753 cat > conftest.$ac_ext <<EOF
12754 #line 12754 "configure"
12755 #include "confdefs.h"
12757 #if HAVE_DLFCN_H
12758 #include <dlfcn.h>
12759 #endif
12761 #include <stdio.h>
12763 #ifdef RTLD_GLOBAL
12764 # define LT_DLGLOBAL RTLD_GLOBAL
12765 #else
12766 # ifdef DL_GLOBAL
12767 # define LT_DLGLOBAL DL_GLOBAL
12768 # else
12769 # define LT_DLGLOBAL 0
12770 # endif
12771 #endif
12773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12774 find out it does not work in some platform. */
12775 #ifndef LT_DLLAZY_OR_NOW
12776 # ifdef RTLD_LAZY
12777 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12778 # else
12779 # ifdef DL_LAZY
12780 # define LT_DLLAZY_OR_NOW DL_LAZY
12781 # else
12782 # ifdef RTLD_NOW
12783 # define LT_DLLAZY_OR_NOW RTLD_NOW
12784 # else
12785 # ifdef DL_NOW
12786 # define LT_DLLAZY_OR_NOW DL_NOW
12787 # else
12788 # define LT_DLLAZY_OR_NOW 0
12789 # endif
12790 # endif
12791 # endif
12792 # endif
12793 #endif
12795 #ifdef __cplusplus
12796 extern "C" void exit (int);
12797 #endif
12799 void fnord() { int i=42;}
12800 int main ()
12802 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12803 int status = $lt_dlunknown;
12805 if (self)
12807 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12808 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12809 /* dlclose (self); */
12812 exit (status);
12815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12816 (eval $ac_link) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12820 (./conftest; exit; ) 2>/dev/null
12821 lt_status=$?
12822 case x$lt_status in
12823 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12824 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12825 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12826 esac
12827 else :
12828 # compilation failed
12829 lt_cv_dlopen_self_static=no
12832 rm -fr conftest*
12836 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12837 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12840 CPPFLAGS="$save_CPPFLAGS"
12841 LDFLAGS="$save_LDFLAGS"
12842 LIBS="$save_LIBS"
12844 esac
12846 case $lt_cv_dlopen_self in
12847 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12848 *) enable_dlopen_self=unknown ;;
12849 esac
12851 case $lt_cv_dlopen_self_static in
12852 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12853 *) enable_dlopen_self_static=unknown ;;
12854 esac
12858 # The else clause should only fire when bootstrapping the
12859 # libtool distribution, otherwise you forgot to ship ltmain.sh
12860 # with your package, and you will get complaints that there are
12861 # no rules to generate ltmain.sh.
12862 if test -f "$ltmain"; then
12863 # See if we are running on zsh, and set the options which allow our commands through
12864 # without removal of \ escapes.
12865 if test -n "${ZSH_VERSION+set}" ; then
12866 setopt NO_GLOB_SUBST
12868 # Now quote all the things that may contain metacharacters while being
12869 # careful not to overquote the AC_SUBSTed values. We take copies of the
12870 # variables and quote the copies for generation of the libtool script.
12871 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12872 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12873 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12874 deplibs_check_method reload_flag reload_cmds need_locks \
12875 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12876 lt_cv_sys_global_symbol_to_c_name_address \
12877 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12878 old_postinstall_cmds old_postuninstall_cmds \
12879 compiler_CXX \
12880 CC_CXX \
12881 LD_CXX \
12882 lt_prog_compiler_wl_CXX \
12883 lt_prog_compiler_pic_CXX \
12884 lt_prog_compiler_static_CXX \
12885 lt_prog_compiler_no_builtin_flag_CXX \
12886 export_dynamic_flag_spec_CXX \
12887 thread_safe_flag_spec_CXX \
12888 whole_archive_flag_spec_CXX \
12889 enable_shared_with_static_runtimes_CXX \
12890 old_archive_cmds_CXX \
12891 old_archive_from_new_cmds_CXX \
12892 predep_objects_CXX \
12893 postdep_objects_CXX \
12894 predeps_CXX \
12895 postdeps_CXX \
12896 compiler_lib_search_path_CXX \
12897 archive_cmds_CXX \
12898 archive_expsym_cmds_CXX \
12899 postinstall_cmds_CXX \
12900 postuninstall_cmds_CXX \
12901 old_archive_from_expsyms_cmds_CXX \
12902 allow_undefined_flag_CXX \
12903 no_undefined_flag_CXX \
12904 export_symbols_cmds_CXX \
12905 hardcode_libdir_flag_spec_CXX \
12906 hardcode_libdir_flag_spec_ld_CXX \
12907 hardcode_libdir_separator_CXX \
12908 hardcode_automatic_CXX \
12909 module_cmds_CXX \
12910 module_expsym_cmds_CXX \
12911 lt_cv_prog_compiler_c_o_CXX \
12912 exclude_expsyms_CXX \
12913 include_expsyms_CXX; do
12915 case $var in
12916 old_archive_cmds_CXX | \
12917 old_archive_from_new_cmds_CXX | \
12918 archive_cmds_CXX | \
12919 archive_expsym_cmds_CXX | \
12920 module_cmds_CXX | \
12921 module_expsym_cmds_CXX | \
12922 old_archive_from_expsyms_cmds_CXX | \
12923 export_symbols_cmds_CXX | \
12924 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12925 postinstall_cmds | postuninstall_cmds | \
12926 old_postinstall_cmds | old_postuninstall_cmds | \
12927 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12928 # Double-quote double-evaled strings.
12929 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12932 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12934 esac
12935 done
12937 case $lt_echo in
12938 *'\$0 --fallback-echo"')
12939 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12941 esac
12943 cfgfile="$ofile"
12945 cat <<__EOF__ >> "$cfgfile"
12946 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12948 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12950 # Shell to use when invoking shell scripts.
12951 SHELL=$lt_SHELL
12953 # Whether or not to build shared libraries.
12954 build_libtool_libs=$enable_shared
12956 # Whether or not to build static libraries.
12957 build_old_libs=$enable_static
12959 # Whether or not to add -lc for building shared libraries.
12960 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12962 # Whether or not to disallow shared libs when runtime libs are static
12963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12965 # Whether or not to optimize for fast installation.
12966 fast_install=$enable_fast_install
12968 # The host system.
12969 host_alias=$host_alias
12970 host=$host
12972 # An echo program that does not interpret backslashes.
12973 echo=$lt_echo
12975 # The archiver.
12976 AR=$lt_AR
12977 AR_FLAGS=$lt_AR_FLAGS
12979 # A C compiler.
12980 LTCC=$lt_LTCC
12982 # A language-specific compiler.
12983 CC=$lt_compiler_CXX
12985 # Is the compiler the GNU C compiler?
12986 with_gcc=$GCC_CXX
12988 # An ERE matcher.
12989 EGREP=$lt_EGREP
12991 # The linker used to build libraries.
12992 LD=$lt_LD_CXX
12994 # Whether we need hard or soft links.
12995 LN_S=$lt_LN_S
12997 # A BSD-compatible nm program.
12998 NM=$lt_NM
13000 # A symbol stripping program
13001 STRIP="$STRIP"
13003 # Used to examine libraries when file_magic_cmd begins "file"
13004 MAGIC_CMD=$MAGIC_CMD
13006 # Used on cygwin: DLL creation program.
13007 DLLTOOL="$DLLTOOL"
13009 # Used on cygwin: object dumper.
13010 OBJDUMP="$OBJDUMP"
13012 # Used on cygwin: assembler.
13013 AS="$AS"
13015 # The name of the directory that contains temporary libtool files.
13016 objdir=$objdir
13018 # How to create reloadable object files.
13019 reload_flag=$lt_reload_flag
13020 reload_cmds=$lt_reload_cmds
13022 # How to pass a linker flag through the compiler.
13023 wl=$lt_lt_prog_compiler_wl_CXX
13025 # Object file suffix (normally "o").
13026 objext="$ac_objext"
13028 # Old archive suffix (normally "a").
13029 libext="$libext"
13031 # Shared library suffix (normally ".so").
13032 shrext='$shrext'
13034 # Executable file suffix (normally "").
13035 exeext="$exeext"
13037 # Additional compiler flags for building library objects.
13038 pic_flag=$lt_lt_prog_compiler_pic_CXX
13039 pic_mode=$pic_mode
13041 # What is the maximum length of a command?
13042 max_cmd_len=$lt_cv_sys_max_cmd_len
13044 # Does compiler simultaneously support -c and -o options?
13045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13047 # Must we lock files when doing compilation ?
13048 need_locks=$lt_need_locks
13050 # Do we need the lib prefix for modules?
13051 need_lib_prefix=$need_lib_prefix
13053 # Do we need a version for libraries?
13054 need_version=$need_version
13056 # Whether dlopen is supported.
13057 dlopen_support=$enable_dlopen
13059 # Whether dlopen of programs is supported.
13060 dlopen_self=$enable_dlopen_self
13062 # Whether dlopen of statically linked programs is supported.
13063 dlopen_self_static=$enable_dlopen_self_static
13065 # Compiler flag to prevent dynamic linking.
13066 link_static_flag=$lt_lt_prog_compiler_static_CXX
13068 # Compiler flag to turn off builtin functions.
13069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13071 # Compiler flag to allow reflexive dlopens.
13072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13074 # Compiler flag to generate shared objects directly from archives.
13075 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13077 # Compiler flag to generate thread-safe objects.
13078 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13080 # Library versioning type.
13081 version_type=$version_type
13083 # Format of library name prefix.
13084 libname_spec=$lt_libname_spec
13086 # List of archive names. First name is the real one, the rest are links.
13087 # The last name is the one that the linker finds with -lNAME.
13088 library_names_spec=$lt_library_names_spec
13090 # The coded name of the library, if different from the real name.
13091 soname_spec=$lt_soname_spec
13093 # Commands used to build and install an old-style archive.
13094 RANLIB=$lt_RANLIB
13095 old_archive_cmds=$lt_old_archive_cmds_CXX
13096 old_postinstall_cmds=$lt_old_postinstall_cmds
13097 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13099 # Create an old-style archive from a shared archive.
13100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13102 # Create a temporary old-style archive to link instead of a shared archive.
13103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13105 # Commands used to build and install a shared archive.
13106 archive_cmds=$lt_archive_cmds_CXX
13107 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13108 postinstall_cmds=$lt_postinstall_cmds
13109 postuninstall_cmds=$lt_postuninstall_cmds
13111 # Commands used to build a loadable module (assumed same as above if empty)
13112 module_cmds=$lt_module_cmds_CXX
13113 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13115 # Commands to strip libraries.
13116 old_striplib=$lt_old_striplib
13117 striplib=$lt_striplib
13119 # Dependencies to place before the objects being linked to create a
13120 # shared library.
13121 predep_objects=$lt_predep_objects_CXX
13123 # Dependencies to place after the objects being linked to create a
13124 # shared library.
13125 postdep_objects=$lt_postdep_objects_CXX
13127 # Dependencies to place before the objects being linked to create a
13128 # shared library.
13129 predeps=$lt_predeps_CXX
13131 # Dependencies to place after the objects being linked to create a
13132 # shared library.
13133 postdeps=$lt_postdeps_CXX
13135 # The library search path used internally by the compiler when linking
13136 # a shared library.
13137 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13139 # Method to check whether dependent libraries are shared objects.
13140 deplibs_check_method=$lt_deplibs_check_method
13142 # Command to use when deplibs_check_method == file_magic.
13143 file_magic_cmd=$lt_file_magic_cmd
13145 # Flag that allows shared libraries with undefined symbols to be built.
13146 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13148 # Flag that forces no undefined symbols.
13149 no_undefined_flag=$lt_no_undefined_flag_CXX
13151 # Commands used to finish a libtool library installation in a directory.
13152 finish_cmds=$lt_finish_cmds
13154 # Same as above, but a single script fragment to be evaled but not shown.
13155 finish_eval=$lt_finish_eval
13157 # Take the output of nm and produce a listing of raw symbols and C names.
13158 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13160 # Transform the output of nm in a proper C declaration
13161 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13163 # Transform the output of nm in a C name address pair
13164 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13166 # This is the shared library runtime path variable.
13167 runpath_var=$runpath_var
13169 # This is the shared library path variable.
13170 shlibpath_var=$shlibpath_var
13172 # Is shlibpath searched before the hard-coded library search path?
13173 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13175 # How to hardcode a shared library path into an executable.
13176 hardcode_action=$hardcode_action_CXX
13178 # Whether we should hardcode library paths into libraries.
13179 hardcode_into_libs=$hardcode_into_libs
13181 # Flag to hardcode \$libdir into a binary during linking.
13182 # This must work even if \$libdir does not exist.
13183 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13185 # If ld is used when linking, flag to hardcode \$libdir into
13186 # a binary during linking. This must work even if \$libdir does
13187 # not exist.
13188 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13190 # Whether we need a single -rpath flag with a separated argument.
13191 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13193 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13194 # resulting binary.
13195 hardcode_direct=$hardcode_direct_CXX
13197 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13198 # resulting binary.
13199 hardcode_minus_L=$hardcode_minus_L_CXX
13201 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13202 # the resulting binary.
13203 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13205 # Set to yes if building a shared library automatically hardcodes DIR into the library
13206 # and all subsequent libraries and executables linked against it.
13207 hardcode_automatic=$hardcode_automatic_CXX
13209 # Variables whose values should be saved in libtool wrapper scripts and
13210 # restored at relink time.
13211 variables_saved_for_relink="$variables_saved_for_relink"
13213 # Whether libtool must link a program against all its dependency libraries.
13214 link_all_deplibs=$link_all_deplibs_CXX
13216 # Compile-time system search path for libraries
13217 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13219 # Run-time system search path for libraries
13220 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13222 # Fix the shell variable \$srcfile for the compiler.
13223 fix_srcfile_path="$fix_srcfile_path_CXX"
13225 # Set to yes if exported symbols are required.
13226 always_export_symbols=$always_export_symbols_CXX
13228 # The commands to list exported symbols.
13229 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13231 # The commands to extract the exported symbol list from a shared archive.
13232 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13234 # Symbols that should not be listed in the preloaded symbols.
13235 exclude_expsyms=$lt_exclude_expsyms_CXX
13237 # Symbols that must always be exported.
13238 include_expsyms=$lt_include_expsyms_CXX
13240 # ### END LIBTOOL TAG CONFIG: $tagname
13242 __EOF__
13245 else
13246 # If there is no Makefile yet, we rely on a make rule to execute
13247 # `config.status --recheck' to rerun these tests and create the
13248 # libtool script then.
13249 test -f Makefile && make "$ltmain"
13253 ac_ext=c
13254 ac_cpp='$CPP $CPPFLAGS'
13255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13259 CC=$lt_save_CC
13260 LDCXX=$LD
13261 LD=$lt_save_LD
13262 GCC=$lt_save_GCC
13263 with_gnu_ldcxx=$with_gnu_ld
13264 with_gnu_ld=$lt_save_with_gnu_ld
13265 lt_cv_path_LDCXX=$lt_cv_path_LD
13266 lt_cv_path_LD=$lt_save_path_LD
13267 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13268 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13270 else
13271 tagname=""
13275 F77)
13276 if test -n "$F77" && test "X$F77" != "Xno"; then
13278 ac_ext=f
13279 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13280 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13281 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13284 archive_cmds_need_lc_F77=no
13285 allow_undefined_flag_F77=
13286 always_export_symbols_F77=no
13287 archive_expsym_cmds_F77=
13288 export_dynamic_flag_spec_F77=
13289 hardcode_direct_F77=no
13290 hardcode_libdir_flag_spec_F77=
13291 hardcode_libdir_flag_spec_ld_F77=
13292 hardcode_libdir_separator_F77=
13293 hardcode_minus_L_F77=no
13294 hardcode_automatic_F77=no
13295 module_cmds_F77=
13296 module_expsym_cmds_F77=
13297 link_all_deplibs_F77=unknown
13298 old_archive_cmds_F77=$old_archive_cmds
13299 no_undefined_flag_F77=
13300 whole_archive_flag_spec_F77=
13301 enable_shared_with_static_runtimes_F77=no
13303 # Source file extension for f77 test sources.
13304 ac_ext=f
13306 # Object file extension for compiled f77 test sources.
13307 objext=o
13308 objext_F77=$objext
13310 # Code to be used in simple compile tests
13311 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13313 # Code to be used in simple link tests
13314 lt_simple_link_test_code=" program t\n end\n"
13316 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13318 # If no C compiler was specified, use CC.
13319 LTCC=${LTCC-"$CC"}
13321 # Allow CC to be a program name with arguments.
13322 compiler=$CC
13325 # Allow CC to be a program name with arguments.
13326 lt_save_CC="$CC"
13327 CC=${F77-"f77"}
13328 compiler=$CC
13329 compiler_F77=$CC
13330 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13332 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13333 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13334 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13335 echo "${ECHO_T}$can_build_shared" >&6; }
13337 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13338 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13339 test "$can_build_shared" = "no" && enable_shared=no
13341 # On AIX, shared libraries and static libraries use the same namespace, and
13342 # are all built from PIC.
13343 case "$host_os" in
13344 aix3*)
13345 test "$enable_shared" = yes && enable_static=no
13346 if test -n "$RANLIB"; then
13347 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13348 postinstall_cmds='$RANLIB $lib'
13351 aix4*)
13352 test "$enable_shared" = yes && enable_static=no
13354 esac
13355 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13356 echo "${ECHO_T}$enable_shared" >&6; }
13358 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13359 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13360 # Make sure either enable_shared or enable_static is yes.
13361 test "$enable_shared" = yes || enable_static=yes
13362 { echo "$as_me:$LINENO: result: $enable_static" >&5
13363 echo "${ECHO_T}$enable_static" >&6; }
13365 test "$ld_shlibs_F77" = no && can_build_shared=no
13367 GCC_F77="$G77"
13368 LD_F77="$LD"
13370 lt_prog_compiler_wl_F77=
13371 lt_prog_compiler_pic_F77=
13372 lt_prog_compiler_static_F77=
13374 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13377 if test "$GCC" = yes; then
13378 lt_prog_compiler_wl_F77='-Wl,'
13379 lt_prog_compiler_static_F77='-static'
13381 case $host_os in
13382 aix*)
13383 # All AIX code is PIC.
13384 if test "$host_cpu" = ia64; then
13385 # AIX 5 now supports IA64 processor
13386 lt_prog_compiler_static_F77='-Bstatic'
13390 amigaos*)
13391 # FIXME: we need at least 68020 code to build shared libraries, but
13392 # adding the `-m68020' flag to GCC prevents building anything better,
13393 # like `-m68040'.
13394 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13397 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13398 # PIC is the default for these OSes.
13401 mingw* | pw32* | os2*)
13402 # This hack is so that the source file can tell whether it is being
13403 # built for inclusion in a dll (and should export symbols for example).
13404 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13407 darwin* | rhapsody*)
13408 # PIC is the default on this platform
13409 # Common symbols not allowed in MH_DYLIB files
13410 lt_prog_compiler_pic_F77='-fno-common'
13413 msdosdjgpp*)
13414 # Just because we use GCC doesn't mean we suddenly get shared libraries
13415 # on systems that don't support them.
13416 lt_prog_compiler_can_build_shared_F77=no
13417 enable_shared=no
13420 sysv4*MP*)
13421 if test -d /usr/nec; then
13422 lt_prog_compiler_pic_F77=-Kconform_pic
13426 hpux*)
13427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13428 # not for PA HP-UX.
13429 case "$host_cpu" in
13430 hppa*64*|ia64*)
13431 # +Z the default
13434 lt_prog_compiler_pic_F77='-fPIC'
13436 esac
13440 lt_prog_compiler_pic_F77='-fPIC'
13442 esac
13443 else
13444 # PORTME Check for flag to pass linker flags through the system compiler.
13445 case $host_os in
13446 aix*)
13447 lt_prog_compiler_wl_F77='-Wl,'
13448 if test "$host_cpu" = ia64; then
13449 # AIX 5 now supports IA64 processor
13450 lt_prog_compiler_static_F77='-Bstatic'
13451 else
13452 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13456 mingw* | pw32* | os2*)
13457 # This hack is so that the source file can tell whether it is being
13458 # built for inclusion in a dll (and should export symbols for example).
13459 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13462 hpux9* | hpux10* | hpux11*)
13463 lt_prog_compiler_wl_F77='-Wl,'
13464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13465 # not for PA HP-UX.
13466 case "$host_cpu" in
13467 hppa*64*|ia64*)
13468 # +Z the default
13471 lt_prog_compiler_pic_F77='+Z'
13473 esac
13474 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13475 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13478 irix5* | irix6* | nonstopux*)
13479 lt_prog_compiler_wl_F77='-Wl,'
13480 # PIC (with -KPIC) is the default.
13481 lt_prog_compiler_static_F77='-non_shared'
13484 newsos6)
13485 lt_prog_compiler_pic_F77='-KPIC'
13486 lt_prog_compiler_static_F77='-Bstatic'
13489 linux*)
13490 case $CC in
13491 icc* | ecc*)
13492 lt_prog_compiler_wl_F77='-Wl,'
13493 lt_prog_compiler_pic_F77='-KPIC'
13494 lt_prog_compiler_static_F77='-static'
13496 ccc*)
13497 lt_prog_compiler_wl_F77='-Wl,'
13498 # All Alpha code is PIC.
13499 lt_prog_compiler_static_F77='-non_shared'
13501 esac
13504 osf3* | osf4* | osf5*)
13505 lt_prog_compiler_wl_F77='-Wl,'
13506 # All OSF/1 code is PIC.
13507 lt_prog_compiler_static_F77='-non_shared'
13510 sco3.2v5*)
13511 lt_prog_compiler_pic_F77='-Kpic'
13512 lt_prog_compiler_static_F77='-dn'
13515 solaris*)
13516 lt_prog_compiler_wl_F77='-Wl,'
13517 lt_prog_compiler_pic_F77='-KPIC'
13518 lt_prog_compiler_static_F77='-Bstatic'
13521 sunos4*)
13522 lt_prog_compiler_wl_F77='-Qoption ld '
13523 lt_prog_compiler_pic_F77='-PIC'
13524 lt_prog_compiler_static_F77='-Bstatic'
13527 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13528 lt_prog_compiler_wl_F77='-Wl,'
13529 lt_prog_compiler_pic_F77='-KPIC'
13530 lt_prog_compiler_static_F77='-Bstatic'
13533 sysv4*MP*)
13534 if test -d /usr/nec ;then
13535 lt_prog_compiler_pic_F77='-Kconform_pic'
13536 lt_prog_compiler_static_F77='-Bstatic'
13540 uts4*)
13541 lt_prog_compiler_pic_F77='-pic'
13542 lt_prog_compiler_static_F77='-Bstatic'
13546 lt_prog_compiler_can_build_shared_F77=no
13548 esac
13551 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13552 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13555 # Check to make sure the PIC flag actually works.
13557 if test -n "$lt_prog_compiler_pic_F77"; then
13559 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13560 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13561 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 lt_prog_compiler_pic_works_F77=no
13565 ac_outfile=conftest.$ac_objext
13566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13567 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13568 # Insert the option either (1) after the last *FLAGS variable, or
13569 # (2) before a word containing "conftest.", or (3) at the end.
13570 # Note that $ac_compile itself does not contain backslashes and begins
13571 # with a dollar sign (not a hyphen), so the echo should work correctly.
13572 # The option is referenced via a variable to avoid confusing sed.
13573 lt_compile=`echo "$ac_compile" | $SED \
13574 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13576 -e 's:$: $lt_compiler_flag:'`
13577 (eval echo "\"\$as_me:13577: $lt_compile\"" >&5)
13578 (eval "$lt_compile" 2>conftest.err)
13579 ac_status=$?
13580 cat conftest.err >&5
13581 echo "$as_me:13581: \$? = $ac_status" >&5
13582 if (exit $ac_status) && test -s "$ac_outfile"; then
13583 # The compiler can only warn and ignore the option if not recognized
13584 # So say no if there are warnings
13585 if test ! -s conftest.err; then
13586 lt_prog_compiler_pic_works_F77=yes
13589 $rm conftest*
13592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13593 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13595 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13596 case $lt_prog_compiler_pic_F77 in
13597 "" | " "*) ;;
13598 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13599 esac
13600 else
13601 lt_prog_compiler_pic_F77=
13602 lt_prog_compiler_can_build_shared_F77=no
13606 case "$host_os" in
13607 # For platforms which do not support PIC, -DPIC is meaningless:
13608 *djgpp*)
13609 lt_prog_compiler_pic_F77=
13612 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13614 esac
13616 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13617 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13618 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621 lt_cv_prog_compiler_c_o_F77=no
13622 $rm -r conftest 2>/dev/null
13623 mkdir conftest
13624 cd conftest
13625 mkdir out
13626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13628 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13629 # that will create temporary files in the current directory regardless of
13630 # the output directory. Thus, making CWD read-only will cause this test
13631 # to fail, enabling locking or at least warning the user not to do parallel
13632 # builds.
13633 chmod -w .
13635 lt_compiler_flag="-o out/conftest2.$ac_objext"
13636 # Insert the option either (1) after the last *FLAGS variable, or
13637 # (2) before a word containing "conftest.", or (3) at the end.
13638 # Note that $ac_compile itself does not contain backslashes and begins
13639 # with a dollar sign (not a hyphen), so the echo should work correctly.
13640 lt_compile=`echo "$ac_compile" | $SED \
13641 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13643 -e 's:$: $lt_compiler_flag:'`
13644 (eval echo "\"\$as_me:13644: $lt_compile\"" >&5)
13645 (eval "$lt_compile" 2>out/conftest.err)
13646 ac_status=$?
13647 cat out/conftest.err >&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13650 then
13651 # The compiler can only warn and ignore the option if not recognized
13652 # So say no if there are warnings
13653 if test ! -s out/conftest.err; then
13654 lt_cv_prog_compiler_c_o_F77=yes
13657 chmod u+w .
13658 $rm conftest*
13659 # SGI C++ compiler will create directory out/ii_files/ for
13660 # template instantiation
13661 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13662 $rm out/* && rmdir out
13663 cd ..
13664 rmdir conftest
13665 $rm conftest*
13668 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13669 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13672 hard_links="nottested"
13673 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13674 # do not overwrite the value of need_locks provided by the user
13675 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13676 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13677 hard_links=yes
13678 $rm conftest*
13679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13680 touch conftest.a
13681 ln conftest.a conftest.b 2>&5 || hard_links=no
13682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13683 { echo "$as_me:$LINENO: result: $hard_links" >&5
13684 echo "${ECHO_T}$hard_links" >&6; }
13685 if test "$hard_links" = no; then
13686 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13687 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13688 need_locks=warn
13690 else
13691 need_locks=no
13694 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13695 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13697 runpath_var=
13698 allow_undefined_flag_F77=
13699 enable_shared_with_static_runtimes_F77=no
13700 archive_cmds_F77=
13701 archive_expsym_cmds_F77=
13702 old_archive_From_new_cmds_F77=
13703 old_archive_from_expsyms_cmds_F77=
13704 export_dynamic_flag_spec_F77=
13705 whole_archive_flag_spec_F77=
13706 thread_safe_flag_spec_F77=
13707 hardcode_libdir_flag_spec_F77=
13708 hardcode_libdir_flag_spec_ld_F77=
13709 hardcode_libdir_separator_F77=
13710 hardcode_direct_F77=no
13711 hardcode_minus_L_F77=no
13712 hardcode_shlibpath_var_F77=unsupported
13713 link_all_deplibs_F77=unknown
13714 hardcode_automatic_F77=no
13715 module_cmds_F77=
13716 module_expsym_cmds_F77=
13717 always_export_symbols_F77=no
13718 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13719 # include_expsyms should be a list of space-separated symbols to be *always*
13720 # included in the symbol list
13721 include_expsyms_F77=
13722 # exclude_expsyms can be an extended regexp of symbols to exclude
13723 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13724 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13725 # as well as any symbol that contains `d'.
13726 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13727 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13728 # platforms (ab)use it in PIC code, but their linkers get confused if
13729 # the symbol is explicitly referenced. Since portable code cannot
13730 # rely on this symbol name, it's probably fine to never include it in
13731 # preloaded symbol tables.
13732 extract_expsyms_cmds=
13734 case $host_os in
13735 cygwin* | mingw* | pw32*)
13736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13737 # When not using gcc, we currently assume that we are using
13738 # Microsoft Visual C++.
13739 if test "$GCC" != yes; then
13740 with_gnu_ld=no
13743 openbsd*)
13744 with_gnu_ld=no
13746 esac
13748 ld_shlibs_F77=yes
13749 if test "$with_gnu_ld" = yes; then
13750 # If archive_cmds runs LD, not CC, wlarc should be empty
13751 wlarc='${wl}'
13753 # See if GNU ld supports shared libraries.
13754 case $host_os in
13755 aix3* | aix4* | aix5*)
13756 # On AIX/PPC, the GNU linker is very broken
13757 if test "$host_cpu" != ia64; then
13758 ld_shlibs_F77=no
13759 cat <<EOF 1>&2
13761 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13762 *** to be unable to reliably create shared libraries on AIX.
13763 *** Therefore, libtool is disabling shared libraries support. If you
13764 *** really care for shared libraries, you may want to modify your PATH
13765 *** so that a non-GNU linker is found, and then restart.
13771 amigaos*)
13772 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)'
13773 hardcode_libdir_flag_spec_F77='-L$libdir'
13774 hardcode_minus_L_F77=yes
13776 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13777 # that the semantics of dynamic libraries on AmigaOS, at least up
13778 # to version 4, is to share data among multiple programs linked
13779 # with the same dynamic library. Since this doesn't match the
13780 # behavior of shared libraries on other platforms, we can't use
13781 # them.
13782 ld_shlibs_F77=no
13785 beos*)
13786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13787 allow_undefined_flag_F77=unsupported
13788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13789 # support --undefined. This deserves some investigation. FIXME
13790 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13791 else
13792 ld_shlibs_F77=no
13796 cygwin* | mingw* | pw32*)
13797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13798 # as there is no search path for DLLs.
13799 hardcode_libdir_flag_spec_F77='-L$libdir'
13800 allow_undefined_flag_F77=unsupported
13801 always_export_symbols_F77=no
13802 enable_shared_with_static_runtimes_F77=yes
13803 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13806 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13807 # If the export-symbols file already is a .def file (1st line
13808 # is EXPORTS), use it as is; otherwise, prepend...
13809 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13810 cp $export_symbols $output_objdir/$soname.def;
13811 else
13812 echo EXPORTS > $output_objdir/$soname.def;
13813 cat $export_symbols >> $output_objdir/$soname.def;
13815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13816 else
13817 ld_shlibs=no
13821 netbsd*)
13822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13823 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13824 wlarc=
13825 else
13826 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13831 solaris* | sysv5*)
13832 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13833 ld_shlibs_F77=no
13834 cat <<EOF 1>&2
13836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13837 *** create shared libraries on Solaris systems. Therefore, libtool
13838 *** is disabling shared libraries support. We urge you to upgrade GNU
13839 *** binutils to release 2.9.1 or newer. Another option is to modify
13840 *** your PATH or compiler configuration so that the native linker is
13841 *** used, and then restart.
13844 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13845 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13846 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13847 else
13848 ld_shlibs_F77=no
13852 sunos4*)
13853 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13854 wlarc=
13855 hardcode_direct_F77=yes
13856 hardcode_shlibpath_var_F77=no
13859 linux*)
13860 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13861 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13862 archive_cmds_F77="$tmp_archive_cmds"
13863 supports_anon_versioning=no
13864 case `$LD -v 2>/dev/null` in
13865 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13866 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13867 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13868 *\ 2.11.*) ;; # other 2.11 versions
13869 *) supports_anon_versioning=yes ;;
13870 esac
13871 if test $supports_anon_versioning = yes; then
13872 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13874 $echo "local: *; };" >> $output_objdir/$libname.ver~
13875 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13876 else
13877 archive_expsym_cmds_F77="$tmp_archive_cmds"
13879 else
13880 ld_shlibs_F77=no
13885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13886 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13887 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13888 else
13889 ld_shlibs_F77=no
13892 esac
13894 if test "$ld_shlibs_F77" = yes; then
13895 runpath_var=LD_RUN_PATH
13896 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13897 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13898 # ancient GNU ld didn't support --whole-archive et. al.
13899 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13900 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13901 else
13902 whole_archive_flag_spec_F77=
13905 else
13906 # PORTME fill in a description of your system's linker (not GNU ld)
13907 case $host_os in
13908 aix3*)
13909 allow_undefined_flag_F77=unsupported
13910 always_export_symbols_F77=yes
13911 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'
13912 # Note: this linker hardcodes the directories in LIBPATH if there
13913 # are no directories specified by -L.
13914 hardcode_minus_L_F77=yes
13915 if test "$GCC" = yes && test -z "$link_static_flag"; then
13916 # Neither direct hardcoding nor static linking is supported with a
13917 # broken collect2.
13918 hardcode_direct_F77=unsupported
13922 aix4* | aix5*)
13923 if test "$host_cpu" = ia64; then
13924 # On IA64, the linker does run time linking by default, so we don't
13925 # have to do anything special.
13926 aix_use_runtimelinking=no
13927 exp_sym_flag='-Bexport'
13928 no_entry_flag=""
13929 else
13930 # If we're using GNU nm, then we don't want the "-C" option.
13931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13933 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'
13934 else
13935 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'
13937 aix_use_runtimelinking=no
13939 # Test if we are trying to use run time linking or normal
13940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13941 # need to do runtime linking.
13942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13943 for ld_flag in $LDFLAGS; do
13944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13945 aix_use_runtimelinking=yes
13946 break
13948 done
13949 esac
13951 exp_sym_flag='-bexport'
13952 no_entry_flag='-bnoentry'
13955 # When large executables or shared objects are built, AIX ld can
13956 # have problems creating the table of contents. If linking a library
13957 # or program results in "error TOC overflow" add -mminimal-toc to
13958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13961 archive_cmds_F77=''
13962 hardcode_direct_F77=yes
13963 hardcode_libdir_separator_F77=':'
13964 link_all_deplibs_F77=yes
13966 if test "$GCC" = yes; then
13967 case $host_os in aix4.012|aix4.012.*)
13968 # We only want to do this on AIX 4.2 and lower, the check
13969 # below for broken collect2 doesn't work under 4.3+
13970 collect2name=`${CC} -print-prog-name=collect2`
13971 if test -f "$collect2name" && \
13972 strings "$collect2name" | grep resolve_lib_name >/dev/null
13973 then
13974 # We have reworked collect2
13975 hardcode_direct_F77=yes
13976 else
13977 # We have old collect2
13978 hardcode_direct_F77=unsupported
13979 # It fails to find uninstalled libraries when the uninstalled
13980 # path is not listed in the libpath. Setting hardcode_minus_L
13981 # to unsupported forces relinking
13982 hardcode_minus_L_F77=yes
13983 hardcode_libdir_flag_spec_F77='-L$libdir'
13984 hardcode_libdir_separator_F77=
13986 esac
13987 shared_flag='-shared'
13988 else
13989 # not using gcc
13990 if test "$host_cpu" = ia64; then
13991 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13992 # chokes on -Wl,-G. The following line is correct:
13993 shared_flag='-G'
13994 else
13995 if test "$aix_use_runtimelinking" = yes; then
13996 shared_flag='${wl}-G'
13997 else
13998 shared_flag='${wl}-bM:SRE'
14003 # It seems that -bexpall does not export symbols beginning with
14004 # underscore (_), so it is better to generate a list of symbols to export.
14005 always_export_symbols_F77=yes
14006 if test "$aix_use_runtimelinking" = yes; then
14007 # Warning - without using the other runtime loading flags (-brtl),
14008 # -berok will link without error, but may produce a broken library.
14009 allow_undefined_flag_F77='-berok'
14010 # Determine the default libpath from the value encoded in an empty executable.
14011 cat >conftest.$ac_ext <<_ACEOF
14012 program main
14015 _ACEOF
14016 rm -f conftest.$ac_objext conftest$ac_exeext
14017 if { (ac_try="$ac_link"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_link") 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_f77_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest$ac_exeext &&
14033 $as_test_x conftest$ac_exeext; then
14035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14037 # Check for a 64-bit object if we didn't find anything.
14038 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; }
14039 }'`; fi
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14048 conftest$ac_exeext conftest.$ac_ext
14049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14051 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14052 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"
14053 else
14054 if test "$host_cpu" = ia64; then
14055 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14056 allow_undefined_flag_F77="-z nodefs"
14057 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"
14058 else
14059 # Determine the default libpath from the value encoded in an empty executable.
14060 cat >conftest.$ac_ext <<_ACEOF
14061 program main
14064 _ACEOF
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (ac_try="$ac_link"
14067 case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14070 esac
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_link") 2>conftest.er1
14073 ac_status=$?
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } && {
14079 test -z "$ac_f77_werror_flag" ||
14080 test ! -s conftest.err
14081 } && test -s conftest$ac_exeext &&
14082 $as_test_x conftest$ac_exeext; then
14084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14086 # Check for a 64-bit object if we didn't find anything.
14087 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; }
14088 }'`; fi
14089 else
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14097 conftest$ac_exeext conftest.$ac_ext
14098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14100 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14101 # Warning - without using the other run time loading flags,
14102 # -berok will link without error, but may produce a broken library.
14103 no_undefined_flag_F77=' ${wl}-bernotok'
14104 allow_undefined_flag_F77=' ${wl}-berok'
14105 # -bexpall does not export symbols beginning with underscore (_)
14106 always_export_symbols_F77=yes
14107 # Exported symbols can be pulled into shared objects from archives
14108 whole_archive_flag_spec_F77=' '
14109 archive_cmds_need_lc_F77=yes
14110 # This is similar to how AIX traditionally builds it's shared libraries.
14111 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'
14116 amigaos*)
14117 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)'
14118 hardcode_libdir_flag_spec_F77='-L$libdir'
14119 hardcode_minus_L_F77=yes
14120 # see comment about different semantics on the GNU ld section
14121 ld_shlibs_F77=no
14124 bsdi4*)
14125 export_dynamic_flag_spec_F77=-rdynamic
14128 cygwin* | mingw* | pw32*)
14129 # When not using gcc, we currently assume that we are using
14130 # Microsoft Visual C++.
14131 # hardcode_libdir_flag_spec is actually meaningless, as there is
14132 # no search path for DLLs.
14133 hardcode_libdir_flag_spec_F77=' '
14134 allow_undefined_flag_F77=unsupported
14135 # Tell ltmain to make .lib files, not .a files.
14136 libext=lib
14137 # Tell ltmain to make .dll files, not .so files.
14138 shrext=".dll"
14139 # FIXME: Setting linknames here is a bad hack.
14140 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14141 # The linker will automatically build a .lib file if we build a DLL.
14142 old_archive_From_new_cmds_F77='true'
14143 # FIXME: Should let the user specify the lib program.
14144 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14145 fix_srcfile_path='`cygpath -w "$srcfile"`'
14146 enable_shared_with_static_runtimes_F77=yes
14149 darwin* | rhapsody*)
14150 if test "$GXX" = yes ; then
14151 archive_cmds_need_lc_F77=no
14152 case "$host_os" in
14153 rhapsody* | darwin1.[012])
14154 allow_undefined_flag_F77='-undefined suppress'
14156 *) # Darwin 1.3 on
14157 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14158 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14159 else
14160 case ${MACOSX_DEPLOYMENT_TARGET} in
14161 10.[012])
14162 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14164 10.*)
14165 allow_undefined_flag_F77='-undefined dynamic_lookup'
14167 esac
14170 esac
14171 lt_int_apple_cc_single_mod=no
14172 output_verbose_link_cmd='echo'
14173 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14174 lt_int_apple_cc_single_mod=yes
14176 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14177 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14178 else
14179 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'
14181 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14183 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14184 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}'
14185 else
14186 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}'
14188 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}'
14189 hardcode_direct_F77=no
14190 hardcode_automatic_F77=yes
14191 hardcode_shlibpath_var_F77=unsupported
14192 whole_archive_flag_spec_F77='-all_load $convenience'
14193 link_all_deplibs_F77=yes
14194 else
14195 ld_shlibs_F77=no
14199 dgux*)
14200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201 hardcode_libdir_flag_spec_F77='-L$libdir'
14202 hardcode_shlibpath_var_F77=no
14205 freebsd1*)
14206 ld_shlibs_F77=no
14209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14210 # support. Future versions do this automatically, but an explicit c++rt0.o
14211 # does not break anything, and helps significantly (at the cost of a little
14212 # extra space).
14213 freebsd2.2*)
14214 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14215 hardcode_libdir_flag_spec_F77='-R$libdir'
14216 hardcode_direct_F77=yes
14217 hardcode_shlibpath_var_F77=no
14220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14221 freebsd2*)
14222 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14223 hardcode_direct_F77=yes
14224 hardcode_minus_L_F77=yes
14225 hardcode_shlibpath_var_F77=no
14228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14229 freebsd* | kfreebsd*-gnu)
14230 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14231 hardcode_libdir_flag_spec_F77='-R$libdir'
14232 hardcode_direct_F77=yes
14233 hardcode_shlibpath_var_F77=no
14236 hpux9*)
14237 if test "$GCC" = yes; then
14238 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'
14239 else
14240 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'
14242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14243 hardcode_libdir_separator_F77=:
14244 hardcode_direct_F77=yes
14246 # hardcode_minus_L: Not really in the search PATH,
14247 # but as the default location of the library.
14248 hardcode_minus_L_F77=yes
14249 export_dynamic_flag_spec_F77='${wl}-E'
14252 hpux10* | hpux11*)
14253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14254 case "$host_cpu" in
14255 hppa*64*|ia64*)
14256 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14259 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14261 esac
14262 else
14263 case "$host_cpu" in
14264 hppa*64*|ia64*)
14265 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14268 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14270 esac
14272 if test "$with_gnu_ld" = no; then
14273 case "$host_cpu" in
14274 hppa*64*)
14275 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14276 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14277 hardcode_libdir_separator_F77=:
14278 hardcode_direct_F77=no
14279 hardcode_shlibpath_var_F77=no
14281 ia64*)
14282 hardcode_libdir_flag_spec_F77='-L$libdir'
14283 hardcode_direct_F77=no
14284 hardcode_shlibpath_var_F77=no
14286 # hardcode_minus_L: Not really in the search PATH,
14287 # but as the default location of the library.
14288 hardcode_minus_L_F77=yes
14291 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14292 hardcode_libdir_separator_F77=:
14293 hardcode_direct_F77=yes
14294 export_dynamic_flag_spec_F77='${wl}-E'
14296 # hardcode_minus_L: Not really in the search PATH,
14297 # but as the default location of the library.
14298 hardcode_minus_L_F77=yes
14300 esac
14304 irix5* | irix6* | nonstopux*)
14305 if test "$GCC" = yes; then
14306 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'
14307 else
14308 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'
14309 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14311 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14312 hardcode_libdir_separator_F77=:
14313 link_all_deplibs_F77=yes
14316 netbsd*)
14317 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14318 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14319 else
14320 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14322 hardcode_libdir_flag_spec_F77='-R$libdir'
14323 hardcode_direct_F77=yes
14324 hardcode_shlibpath_var_F77=no
14327 newsos6)
14328 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14329 hardcode_direct_F77=yes
14330 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14331 hardcode_libdir_separator_F77=:
14332 hardcode_shlibpath_var_F77=no
14335 openbsd*)
14336 hardcode_direct_F77=yes
14337 hardcode_shlibpath_var_F77=no
14338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14339 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14340 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14341 export_dynamic_flag_spec_F77='${wl}-E'
14342 else
14343 case $host_os in
14344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14345 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_libdir_flag_spec_F77='-R$libdir'
14349 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14350 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14352 esac
14356 os2*)
14357 hardcode_libdir_flag_spec_F77='-L$libdir'
14358 hardcode_minus_L_F77=yes
14359 allow_undefined_flag_F77=unsupported
14360 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'
14361 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14364 osf3*)
14365 if test "$GCC" = yes; then
14366 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14367 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'
14368 else
14369 allow_undefined_flag_F77=' -expect_unresolved \*'
14370 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'
14372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14373 hardcode_libdir_separator_F77=:
14376 osf4* | osf5*) # as osf3* with the addition of -msym flag
14377 if test "$GCC" = yes; then
14378 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14379 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'
14380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14381 else
14382 allow_undefined_flag_F77=' -expect_unresolved \*'
14383 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'
14384 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~
14385 $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'
14387 # Both c and cxx compiler support -rpath directly
14388 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14390 hardcode_libdir_separator_F77=:
14393 sco3.2v5*)
14394 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14395 hardcode_shlibpath_var_F77=no
14396 export_dynamic_flag_spec_F77='${wl}-Bexport'
14397 runpath_var=LD_RUN_PATH
14398 hardcode_runpath_var=yes
14401 solaris*)
14402 no_undefined_flag_F77=' -z text'
14403 if test "$GCC" = yes; then
14404 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14405 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14406 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14407 else
14408 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14409 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14410 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14412 hardcode_libdir_flag_spec_F77='-R$libdir'
14413 hardcode_shlibpath_var_F77=no
14414 case $host_os in
14415 solaris2.[0-5] | solaris2.[0-5].*) ;;
14416 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14417 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14418 esac
14419 link_all_deplibs_F77=yes
14422 sunos4*)
14423 if test "x$host_vendor" = xsequent; then
14424 # Use $CC to link under sequent, because it throws in some extra .o
14425 # files that make .init and .fini sections work.
14426 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14427 else
14428 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14430 hardcode_libdir_flag_spec_F77='-L$libdir'
14431 hardcode_direct_F77=yes
14432 hardcode_minus_L_F77=yes
14433 hardcode_shlibpath_var_F77=no
14436 sysv4)
14437 case $host_vendor in
14438 sni)
14439 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14440 hardcode_direct_F77=yes # is this really true???
14442 siemens)
14443 ## LD is ld it makes a PLAMLIB
14444 ## CC just makes a GrossModule.
14445 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14446 reload_cmds_F77='$CC -r -o $output$reload_objs'
14447 hardcode_direct_F77=no
14449 motorola)
14450 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14451 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14453 esac
14454 runpath_var='LD_RUN_PATH'
14455 hardcode_shlibpath_var_F77=no
14458 sysv4.3*)
14459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14460 hardcode_shlibpath_var_F77=no
14461 export_dynamic_flag_spec_F77='-Bexport'
14464 sysv4*MP*)
14465 if test -d /usr/nec; then
14466 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14467 hardcode_shlibpath_var_F77=no
14468 runpath_var=LD_RUN_PATH
14469 hardcode_runpath_var=yes
14470 ld_shlibs_F77=yes
14474 sysv4.2uw2*)
14475 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14476 hardcode_direct_F77=yes
14477 hardcode_minus_L_F77=no
14478 hardcode_shlibpath_var_F77=no
14479 hardcode_runpath_var=yes
14480 runpath_var=LD_RUN_PATH
14483 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14484 no_undefined_flag_F77='${wl}-z ${wl}text'
14485 if test "$GCC" = yes; then
14486 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14487 else
14488 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14490 runpath_var='LD_RUN_PATH'
14491 hardcode_shlibpath_var_F77=no
14494 sysv5*)
14495 no_undefined_flag_F77=' -z text'
14496 # $CC -shared without GNU ld will not create a library from C++
14497 # object files and a static libstdc++, better avoid it by now
14498 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14499 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14500 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14501 hardcode_libdir_flag_spec_F77=
14502 hardcode_shlibpath_var_F77=no
14503 runpath_var='LD_RUN_PATH'
14506 uts4*)
14507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14508 hardcode_libdir_flag_spec_F77='-L$libdir'
14509 hardcode_shlibpath_var_F77=no
14513 ld_shlibs_F77=no
14515 esac
14518 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14519 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14520 test "$ld_shlibs_F77" = no && can_build_shared=no
14522 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14523 if test "$GCC" = yes; then
14524 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14528 # Do we need to explicitly link libc?
14530 case "x$archive_cmds_need_lc_F77" in
14531 x|xyes)
14532 # Assume -lc should be added
14533 archive_cmds_need_lc_F77=yes
14535 if test "$enable_shared" = yes && test "$GCC" = yes; then
14536 case $archive_cmds_F77 in
14537 *'~'*)
14538 # FIXME: we may have to deal with multi-command sequences.
14540 '$CC '*)
14541 # Test whether the compiler implicitly links with -lc since on some
14542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14543 # to ld, don't add -lc before -lgcc.
14544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14546 $rm conftest*
14547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550 (eval $ac_compile) 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } 2>conftest.err; then
14554 soname=conftest
14555 lib=conftest
14556 libobjs=conftest.$ac_objext
14557 deplibs=
14558 wl=$lt_prog_compiler_wl_F77
14559 compiler_flags=-v
14560 linker_flags=-v
14561 verstring=
14562 output_objdir=.
14563 libname=conftest
14564 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14565 allow_undefined_flag_F77=
14566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14567 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }
14571 then
14572 archive_cmds_need_lc_F77=no
14573 else
14574 archive_cmds_need_lc_F77=yes
14576 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14577 else
14578 cat conftest.err 1>&5
14580 $rm conftest*
14581 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14582 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14584 esac
14587 esac
14589 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14591 library_names_spec=
14592 libname_spec='lib$name'
14593 soname_spec=
14594 shrext=".so"
14595 postinstall_cmds=
14596 postuninstall_cmds=
14597 finish_cmds=
14598 finish_eval=
14599 shlibpath_var=
14600 shlibpath_overrides_runpath=unknown
14601 version_type=none
14602 dynamic_linker="$host_os ld.so"
14603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14604 if test "$GCC" = yes; then
14605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14606 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14607 # if the path contains ";" then we assume it to be the separator
14608 # otherwise default to the standard path separator (i.e. ":") - it is
14609 # assumed that no part of a normal pathname contains ";" but that should
14610 # okay in the real world where ";" in dirpaths is itself problematic.
14611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14612 else
14613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14615 else
14616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14618 need_lib_prefix=unknown
14619 hardcode_into_libs=no
14621 # when you set need_version to no, make sure it does not cause -set_version
14622 # flags to be left without arguments
14623 need_version=unknown
14625 case $host_os in
14626 aix3*)
14627 version_type=linux
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14629 shlibpath_var=LIBPATH
14631 # AIX 3 has no versioning support, so we append a major version to the name.
14632 soname_spec='${libname}${release}${shared_ext}$major'
14635 aix4* | aix5*)
14636 version_type=linux
14637 need_lib_prefix=no
14638 need_version=no
14639 hardcode_into_libs=yes
14640 if test "$host_cpu" = ia64; then
14641 # AIX 5 supports IA64
14642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 else
14645 # With GCC up to 2.95.x, collect2 would create an import file
14646 # for dependence libraries. The import file would start with
14647 # the line `#! .'. This would cause the generated library to
14648 # depend on `.', always an invalid library. This was fixed in
14649 # development snapshots of GCC prior to 3.0.
14650 case $host_os in
14651 aix4 | aix4.[01] | aix4.[01].*)
14652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14653 echo ' yes '
14654 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14656 else
14657 can_build_shared=no
14660 esac
14661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14662 # soname into executable. Probably we can add versioning support to
14663 # collect2, so additional links can be useful in future.
14664 if test "$aix_use_runtimelinking" = yes; then
14665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14666 # instead of lib<name>.a to let people know that these are not
14667 # typical AIX shared libraries.
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 else
14670 # We preserve .a as extension for shared libraries through AIX4.2
14671 # and later when we are not doing run time linking.
14672 library_names_spec='${libname}${release}.a $libname.a'
14673 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LIBPATH
14679 amigaos*)
14680 library_names_spec='$libname.ixlibrary $libname.a'
14681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14682 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'
14685 beos*)
14686 library_names_spec='${libname}${shared_ext}'
14687 dynamic_linker="$host_os ld.so"
14688 shlibpath_var=LIBRARY_PATH
14691 bsdi4*)
14692 version_type=linux
14693 need_version=no
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14700 # the default ld.so.conf also contains /usr/contrib/lib and
14701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14702 # libtool to hard-code these into programs
14705 cygwin* | mingw* | pw32*)
14706 version_type=windows
14707 shrext=".dll"
14708 need_version=no
14709 need_lib_prefix=no
14711 case $GCC,$host_os in
14712 yes,cygwin* | yes,mingw* | yes,pw32*)
14713 library_names_spec='$libname.dll.a'
14714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14715 postinstall_cmds='base_file=`basename \${file}`~
14716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14717 dldir=$destdir/`dirname \$dlpath`~
14718 test -d \$dldir || mkdir -p \$dldir~
14719 $install_prog $dir/$dlname \$dldir/$dlname'
14720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14721 dlpath=$dir/\$dldll~
14722 $rm \$dlpath'
14723 shlibpath_overrides_runpath=yes
14725 case $host_os in
14726 cygwin*)
14727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14731 mingw*)
14732 # MinGW DLLs use traditional 'lib' prefix
14733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14735 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14736 # It is most probably a Windows format PATH printed by
14737 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14738 # path with ; separators, and with drive letters. We can handle the
14739 # drive letters (cygwin fileutils understands them), so leave them,
14740 # especially as we might pass files found there to a mingw objdump,
14741 # which wouldn't understand a cygwinified path. Ahh.
14742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14743 else
14744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14747 pw32*)
14748 # pw32 DLLs use 'pw' prefix rather than 'lib'
14749 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14751 esac
14755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14757 esac
14758 dynamic_linker='Win32 ld.exe'
14759 # FIXME: first we should search . and the directory the executable is in
14760 shlibpath_var=PATH
14763 darwin* | rhapsody*)
14764 dynamic_linker="$host_os dyld"
14765 version_type=darwin
14766 need_lib_prefix=no
14767 need_version=no
14768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14769 soname_spec='${libname}${release}${major}$shared_ext'
14770 shlibpath_overrides_runpath=yes
14771 shlibpath_var=DYLD_LIBRARY_PATH
14772 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14774 if test "$GCC" = yes; then
14775 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"`
14776 else
14777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14782 dgux*)
14783 version_type=linux
14784 need_lib_prefix=no
14785 need_version=no
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 shlibpath_var=LD_LIBRARY_PATH
14791 freebsd1*)
14792 dynamic_linker=no
14795 kfreebsd*-gnu)
14796 version_type=linux
14797 need_lib_prefix=no
14798 need_version=no
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14800 soname_spec='${libname}${release}${shared_ext}$major'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 shlibpath_overrides_runpath=no
14803 hardcode_into_libs=yes
14804 dynamic_linker='GNU ld.so'
14807 freebsd*)
14808 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14809 version_type=freebsd-$objformat
14810 case $version_type in
14811 freebsd-elf*)
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14813 need_version=no
14814 need_lib_prefix=no
14816 freebsd-*)
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14818 need_version=yes
14820 esac
14821 shlibpath_var=LD_LIBRARY_PATH
14822 case $host_os in
14823 freebsd2*)
14824 shlibpath_overrides_runpath=yes
14826 freebsd3.01* | freebsdelf3.01*)
14827 shlibpath_overrides_runpath=yes
14828 hardcode_into_libs=yes
14830 *) # from 3.2 on
14831 shlibpath_overrides_runpath=no
14832 hardcode_into_libs=yes
14834 esac
14837 gnu*)
14838 version_type=linux
14839 need_lib_prefix=no
14840 need_version=no
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 hardcode_into_libs=yes
14847 hpux9* | hpux10* | hpux11*)
14848 # Give a soname corresponding to the major version so that dld.sl refuses to
14849 # link against other versions.
14850 version_type=sunos
14851 need_lib_prefix=no
14852 need_version=no
14853 case "$host_cpu" in
14854 ia64*)
14855 shrext='.so'
14856 hardcode_into_libs=yes
14857 dynamic_linker="$host_os dld.so"
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 if test "X$HPUX_IA64_MODE" = X32; then
14863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14864 else
14865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14869 hppa*64*)
14870 shrext='.sl'
14871 hardcode_into_libs=yes
14872 dynamic_linker="$host_os dld.sl"
14873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14881 shrext='.sl'
14882 dynamic_linker="$host_os dld.sl"
14883 shlibpath_var=SHLIB_PATH
14884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 soname_spec='${libname}${release}${shared_ext}$major'
14888 esac
14889 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14890 postinstall_cmds='chmod 555 $lib'
14893 irix5* | irix6* | nonstopux*)
14894 case $host_os in
14895 nonstopux*) version_type=nonstopux ;;
14897 if test "$lt_cv_prog_gnu_ld" = yes; then
14898 version_type=linux
14899 else
14900 version_type=irix
14901 fi ;;
14902 esac
14903 need_lib_prefix=no
14904 need_version=no
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14907 case $host_os in
14908 irix5* | nonstopux*)
14909 libsuff= shlibsuff=
14912 case $LD in # libtool.m4 will add one of these switches to LD
14913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14914 libsuff= shlibsuff= libmagic=32-bit;;
14915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14916 libsuff=32 shlibsuff=N32 libmagic=N32;;
14917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14919 *) libsuff= shlibsuff= libmagic=never-match;;
14920 esac
14922 esac
14923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14924 shlibpath_overrides_runpath=no
14925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14927 hardcode_into_libs=yes
14930 # No shared lib support for Linux oldld, aout, or coff.
14931 linux*oldld* | linux*aout* | linux*coff*)
14932 dynamic_linker=no
14935 # This must be Linux ELF.
14936 linux*)
14937 version_type=linux
14938 need_lib_prefix=no
14939 need_version=no
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 shlibpath_overrides_runpath=no
14945 # This implies no fast_install, which is unacceptable.
14946 # Some rework will be needed to allow for fast_install
14947 # before this can be enabled.
14948 hardcode_into_libs=yes
14950 # We used to test for /lib/ld.so.1 and disable shared libraries on
14951 # powerpc, because MkLinux only supported shared libraries with the
14952 # GNU dynamic linker. Since this was broken with cross compilers,
14953 # most powerpc-linux boxes support dynamic linking these days and
14954 # people can always --disable-shared, the test was removed, and we
14955 # assume the GNU/Linux dynamic linker is in use.
14956 dynamic_linker='GNU/Linux ld.so'
14959 netbsd*)
14960 version_type=sunos
14961 need_lib_prefix=no
14962 need_version=no
14963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14966 dynamic_linker='NetBSD (a.out) ld.so'
14967 else
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 dynamic_linker='NetBSD ld.elf_so'
14972 shlibpath_var=LD_LIBRARY_PATH
14973 shlibpath_overrides_runpath=yes
14974 hardcode_into_libs=yes
14977 newsos6)
14978 version_type=linux
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980 shlibpath_var=LD_LIBRARY_PATH
14981 shlibpath_overrides_runpath=yes
14984 nto-qnx*)
14985 version_type=linux
14986 need_lib_prefix=no
14987 need_version=no
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 shlibpath_var=LD_LIBRARY_PATH
14991 shlibpath_overrides_runpath=yes
14994 openbsd*)
14995 version_type=sunos
14996 need_lib_prefix=no
14997 need_version=no
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15000 shlibpath_var=LD_LIBRARY_PATH
15001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15002 case $host_os in
15003 openbsd2.[89] | openbsd2.[89].*)
15004 shlibpath_overrides_runpath=no
15007 shlibpath_overrides_runpath=yes
15009 esac
15010 else
15011 shlibpath_overrides_runpath=yes
15015 os2*)
15016 libname_spec='$name'
15017 shrext=".dll"
15018 need_lib_prefix=no
15019 library_names_spec='$libname${shared_ext} $libname.a'
15020 dynamic_linker='OS/2 ld.exe'
15021 shlibpath_var=LIBPATH
15024 osf3* | osf4* | osf5*)
15025 version_type=osf
15026 need_lib_prefix=no
15027 need_version=no
15028 soname_spec='${libname}${release}${shared_ext}$major'
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15032 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15035 sco3.2v5*)
15036 version_type=osf
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039 shlibpath_var=LD_LIBRARY_PATH
15042 solaris*)
15043 version_type=linux
15044 need_lib_prefix=no
15045 need_version=no
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 shlibpath_overrides_runpath=yes
15050 hardcode_into_libs=yes
15051 # ldd complains unless libraries are executable
15052 postinstall_cmds='chmod +x $lib'
15055 sunos4*)
15056 version_type=sunos
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 shlibpath_overrides_runpath=yes
15061 if test "$with_gnu_ld" = yes; then
15062 need_lib_prefix=no
15064 need_version=yes
15067 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15068 version_type=linux
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 case $host_vendor in
15073 sni)
15074 shlibpath_overrides_runpath=no
15075 need_lib_prefix=no
15076 export_dynamic_flag_spec='${wl}-Blargedynsym'
15077 runpath_var=LD_RUN_PATH
15079 siemens)
15080 need_lib_prefix=no
15082 motorola)
15083 need_lib_prefix=no
15084 need_version=no
15085 shlibpath_overrides_runpath=no
15086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15088 esac
15091 sysv4*MP*)
15092 if test -d /usr/nec ;then
15093 version_type=linux
15094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15095 soname_spec='$libname${shared_ext}.$major'
15096 shlibpath_var=LD_LIBRARY_PATH
15100 uts4*)
15101 version_type=linux
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 shlibpath_var=LD_LIBRARY_PATH
15108 dynamic_linker=no
15110 esac
15111 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15112 echo "${ECHO_T}$dynamic_linker" >&6; }
15113 test "$dynamic_linker" = no && can_build_shared=no
15115 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15116 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15117 hardcode_action_F77=
15118 if test -n "$hardcode_libdir_flag_spec_F77" || \
15119 test -n "$runpath_var F77" || \
15120 test "X$hardcode_automatic_F77"="Xyes" ; then
15122 # We can hardcode non-existant directories.
15123 if test "$hardcode_direct_F77" != no &&
15124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15125 # have to relink, otherwise we might link with an installed library
15126 # when we should be linking with a yet-to-be-installed one
15127 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15128 test "$hardcode_minus_L_F77" != no; then
15129 # Linking always hardcodes the temporary library directory.
15130 hardcode_action_F77=relink
15131 else
15132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15133 hardcode_action_F77=immediate
15135 else
15136 # We cannot hardcode anything, or else we can only hardcode existing
15137 # directories.
15138 hardcode_action_F77=unsupported
15140 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15141 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15143 if test "$hardcode_action_F77" = relink; then
15144 # Fast installation is not supported
15145 enable_fast_install=no
15146 elif test "$shlibpath_overrides_runpath" = yes ||
15147 test "$enable_shared" = no; then
15148 # Fast installation is not necessary
15149 enable_fast_install=needless
15152 striplib=
15153 old_striplib=
15154 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15155 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15156 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15157 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15158 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15159 { echo "$as_me:$LINENO: result: yes" >&5
15160 echo "${ECHO_T}yes" >&6; }
15161 else
15162 # FIXME - insert some real tests, host_os isn't really good enough
15163 case $host_os in
15164 darwin*)
15165 if test -n "$STRIP" ; then
15166 striplib="$STRIP -x"
15167 { echo "$as_me:$LINENO: result: yes" >&5
15168 echo "${ECHO_T}yes" >&6; }
15169 else
15170 { echo "$as_me:$LINENO: result: no" >&5
15171 echo "${ECHO_T}no" >&6; }
15175 { echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6; }
15178 esac
15183 # The else clause should only fire when bootstrapping the
15184 # libtool distribution, otherwise you forgot to ship ltmain.sh
15185 # with your package, and you will get complaints that there are
15186 # no rules to generate ltmain.sh.
15187 if test -f "$ltmain"; then
15188 # See if we are running on zsh, and set the options which allow our commands through
15189 # without removal of \ escapes.
15190 if test -n "${ZSH_VERSION+set}" ; then
15191 setopt NO_GLOB_SUBST
15193 # Now quote all the things that may contain metacharacters while being
15194 # careful not to overquote the AC_SUBSTed values. We take copies of the
15195 # variables and quote the copies for generation of the libtool script.
15196 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15197 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15198 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15199 deplibs_check_method reload_flag reload_cmds need_locks \
15200 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15201 lt_cv_sys_global_symbol_to_c_name_address \
15202 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15203 old_postinstall_cmds old_postuninstall_cmds \
15204 compiler_F77 \
15205 CC_F77 \
15206 LD_F77 \
15207 lt_prog_compiler_wl_F77 \
15208 lt_prog_compiler_pic_F77 \
15209 lt_prog_compiler_static_F77 \
15210 lt_prog_compiler_no_builtin_flag_F77 \
15211 export_dynamic_flag_spec_F77 \
15212 thread_safe_flag_spec_F77 \
15213 whole_archive_flag_spec_F77 \
15214 enable_shared_with_static_runtimes_F77 \
15215 old_archive_cmds_F77 \
15216 old_archive_from_new_cmds_F77 \
15217 predep_objects_F77 \
15218 postdep_objects_F77 \
15219 predeps_F77 \
15220 postdeps_F77 \
15221 compiler_lib_search_path_F77 \
15222 archive_cmds_F77 \
15223 archive_expsym_cmds_F77 \
15224 postinstall_cmds_F77 \
15225 postuninstall_cmds_F77 \
15226 old_archive_from_expsyms_cmds_F77 \
15227 allow_undefined_flag_F77 \
15228 no_undefined_flag_F77 \
15229 export_symbols_cmds_F77 \
15230 hardcode_libdir_flag_spec_F77 \
15231 hardcode_libdir_flag_spec_ld_F77 \
15232 hardcode_libdir_separator_F77 \
15233 hardcode_automatic_F77 \
15234 module_cmds_F77 \
15235 module_expsym_cmds_F77 \
15236 lt_cv_prog_compiler_c_o_F77 \
15237 exclude_expsyms_F77 \
15238 include_expsyms_F77; do
15240 case $var in
15241 old_archive_cmds_F77 | \
15242 old_archive_from_new_cmds_F77 | \
15243 archive_cmds_F77 | \
15244 archive_expsym_cmds_F77 | \
15245 module_cmds_F77 | \
15246 module_expsym_cmds_F77 | \
15247 old_archive_from_expsyms_cmds_F77 | \
15248 export_symbols_cmds_F77 | \
15249 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15250 postinstall_cmds | postuninstall_cmds | \
15251 old_postinstall_cmds | old_postuninstall_cmds | \
15252 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15253 # Double-quote double-evaled strings.
15254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15259 esac
15260 done
15262 case $lt_echo in
15263 *'\$0 --fallback-echo"')
15264 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15266 esac
15268 cfgfile="$ofile"
15270 cat <<__EOF__ >> "$cfgfile"
15271 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15275 # Shell to use when invoking shell scripts.
15276 SHELL=$lt_SHELL
15278 # Whether or not to build shared libraries.
15279 build_libtool_libs=$enable_shared
15281 # Whether or not to build static libraries.
15282 build_old_libs=$enable_static
15284 # Whether or not to add -lc for building shared libraries.
15285 build_libtool_need_lc=$archive_cmds_need_lc_F77
15287 # Whether or not to disallow shared libs when runtime libs are static
15288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15290 # Whether or not to optimize for fast installation.
15291 fast_install=$enable_fast_install
15293 # The host system.
15294 host_alias=$host_alias
15295 host=$host
15297 # An echo program that does not interpret backslashes.
15298 echo=$lt_echo
15300 # The archiver.
15301 AR=$lt_AR
15302 AR_FLAGS=$lt_AR_FLAGS
15304 # A C compiler.
15305 LTCC=$lt_LTCC
15307 # A language-specific compiler.
15308 CC=$lt_compiler_F77
15310 # Is the compiler the GNU C compiler?
15311 with_gcc=$GCC_F77
15313 # An ERE matcher.
15314 EGREP=$lt_EGREP
15316 # The linker used to build libraries.
15317 LD=$lt_LD_F77
15319 # Whether we need hard or soft links.
15320 LN_S=$lt_LN_S
15322 # A BSD-compatible nm program.
15323 NM=$lt_NM
15325 # A symbol stripping program
15326 STRIP="$STRIP"
15328 # Used to examine libraries when file_magic_cmd begins "file"
15329 MAGIC_CMD=$MAGIC_CMD
15331 # Used on cygwin: DLL creation program.
15332 DLLTOOL="$DLLTOOL"
15334 # Used on cygwin: object dumper.
15335 OBJDUMP="$OBJDUMP"
15337 # Used on cygwin: assembler.
15338 AS="$AS"
15340 # The name of the directory that contains temporary libtool files.
15341 objdir=$objdir
15343 # How to create reloadable object files.
15344 reload_flag=$lt_reload_flag
15345 reload_cmds=$lt_reload_cmds
15347 # How to pass a linker flag through the compiler.
15348 wl=$lt_lt_prog_compiler_wl_F77
15350 # Object file suffix (normally "o").
15351 objext="$ac_objext"
15353 # Old archive suffix (normally "a").
15354 libext="$libext"
15356 # Shared library suffix (normally ".so").
15357 shrext='$shrext'
15359 # Executable file suffix (normally "").
15360 exeext="$exeext"
15362 # Additional compiler flags for building library objects.
15363 pic_flag=$lt_lt_prog_compiler_pic_F77
15364 pic_mode=$pic_mode
15366 # What is the maximum length of a command?
15367 max_cmd_len=$lt_cv_sys_max_cmd_len
15369 # Does compiler simultaneously support -c and -o options?
15370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15372 # Must we lock files when doing compilation ?
15373 need_locks=$lt_need_locks
15375 # Do we need the lib prefix for modules?
15376 need_lib_prefix=$need_lib_prefix
15378 # Do we need a version for libraries?
15379 need_version=$need_version
15381 # Whether dlopen is supported.
15382 dlopen_support=$enable_dlopen
15384 # Whether dlopen of programs is supported.
15385 dlopen_self=$enable_dlopen_self
15387 # Whether dlopen of statically linked programs is supported.
15388 dlopen_self_static=$enable_dlopen_self_static
15390 # Compiler flag to prevent dynamic linking.
15391 link_static_flag=$lt_lt_prog_compiler_static_F77
15393 # Compiler flag to turn off builtin functions.
15394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15396 # Compiler flag to allow reflexive dlopens.
15397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15399 # Compiler flag to generate shared objects directly from archives.
15400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15402 # Compiler flag to generate thread-safe objects.
15403 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15405 # Library versioning type.
15406 version_type=$version_type
15408 # Format of library name prefix.
15409 libname_spec=$lt_libname_spec
15411 # List of archive names. First name is the real one, the rest are links.
15412 # The last name is the one that the linker finds with -lNAME.
15413 library_names_spec=$lt_library_names_spec
15415 # The coded name of the library, if different from the real name.
15416 soname_spec=$lt_soname_spec
15418 # Commands used to build and install an old-style archive.
15419 RANLIB=$lt_RANLIB
15420 old_archive_cmds=$lt_old_archive_cmds_F77
15421 old_postinstall_cmds=$lt_old_postinstall_cmds
15422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15424 # Create an old-style archive from a shared archive.
15425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15427 # Create a temporary old-style archive to link instead of a shared archive.
15428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15430 # Commands used to build and install a shared archive.
15431 archive_cmds=$lt_archive_cmds_F77
15432 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15433 postinstall_cmds=$lt_postinstall_cmds
15434 postuninstall_cmds=$lt_postuninstall_cmds
15436 # Commands used to build a loadable module (assumed same as above if empty)
15437 module_cmds=$lt_module_cmds_F77
15438 module_expsym_cmds=$lt_module_expsym_cmds_F77
15440 # Commands to strip libraries.
15441 old_striplib=$lt_old_striplib
15442 striplib=$lt_striplib
15444 # Dependencies to place before the objects being linked to create a
15445 # shared library.
15446 predep_objects=$lt_predep_objects_F77
15448 # Dependencies to place after the objects being linked to create a
15449 # shared library.
15450 postdep_objects=$lt_postdep_objects_F77
15452 # Dependencies to place before the objects being linked to create a
15453 # shared library.
15454 predeps=$lt_predeps_F77
15456 # Dependencies to place after the objects being linked to create a
15457 # shared library.
15458 postdeps=$lt_postdeps_F77
15460 # The library search path used internally by the compiler when linking
15461 # a shared library.
15462 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15464 # Method to check whether dependent libraries are shared objects.
15465 deplibs_check_method=$lt_deplibs_check_method
15467 # Command to use when deplibs_check_method == file_magic.
15468 file_magic_cmd=$lt_file_magic_cmd
15470 # Flag that allows shared libraries with undefined symbols to be built.
15471 allow_undefined_flag=$lt_allow_undefined_flag_F77
15473 # Flag that forces no undefined symbols.
15474 no_undefined_flag=$lt_no_undefined_flag_F77
15476 # Commands used to finish a libtool library installation in a directory.
15477 finish_cmds=$lt_finish_cmds
15479 # Same as above, but a single script fragment to be evaled but not shown.
15480 finish_eval=$lt_finish_eval
15482 # Take the output of nm and produce a listing of raw symbols and C names.
15483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15485 # Transform the output of nm in a proper C declaration
15486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15488 # Transform the output of nm in a C name address pair
15489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15491 # This is the shared library runtime path variable.
15492 runpath_var=$runpath_var
15494 # This is the shared library path variable.
15495 shlibpath_var=$shlibpath_var
15497 # Is shlibpath searched before the hard-coded library search path?
15498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15500 # How to hardcode a shared library path into an executable.
15501 hardcode_action=$hardcode_action_F77
15503 # Whether we should hardcode library paths into libraries.
15504 hardcode_into_libs=$hardcode_into_libs
15506 # Flag to hardcode \$libdir into a binary during linking.
15507 # This must work even if \$libdir does not exist.
15508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15510 # If ld is used when linking, flag to hardcode \$libdir into
15511 # a binary during linking. This must work even if \$libdir does
15512 # not exist.
15513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15515 # Whether we need a single -rpath flag with a separated argument.
15516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15519 # resulting binary.
15520 hardcode_direct=$hardcode_direct_F77
15522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15523 # resulting binary.
15524 hardcode_minus_L=$hardcode_minus_L_F77
15526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15527 # the resulting binary.
15528 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15530 # Set to yes if building a shared library automatically hardcodes DIR into the library
15531 # and all subsequent libraries and executables linked against it.
15532 hardcode_automatic=$hardcode_automatic_F77
15534 # Variables whose values should be saved in libtool wrapper scripts and
15535 # restored at relink time.
15536 variables_saved_for_relink="$variables_saved_for_relink"
15538 # Whether libtool must link a program against all its dependency libraries.
15539 link_all_deplibs=$link_all_deplibs_F77
15541 # Compile-time system search path for libraries
15542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15544 # Run-time system search path for libraries
15545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15547 # Fix the shell variable \$srcfile for the compiler.
15548 fix_srcfile_path="$fix_srcfile_path_F77"
15550 # Set to yes if exported symbols are required.
15551 always_export_symbols=$always_export_symbols_F77
15553 # The commands to list exported symbols.
15554 export_symbols_cmds=$lt_export_symbols_cmds_F77
15556 # The commands to extract the exported symbol list from a shared archive.
15557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15559 # Symbols that should not be listed in the preloaded symbols.
15560 exclude_expsyms=$lt_exclude_expsyms_F77
15562 # Symbols that must always be exported.
15563 include_expsyms=$lt_include_expsyms_F77
15565 # ### END LIBTOOL TAG CONFIG: $tagname
15567 __EOF__
15570 else
15571 # If there is no Makefile yet, we rely on a make rule to execute
15572 # `config.status --recheck' to rerun these tests and create the
15573 # libtool script then.
15574 test -f Makefile && make "$ltmain"
15578 ac_ext=c
15579 ac_cpp='$CPP $CPPFLAGS'
15580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15584 CC="$lt_save_CC"
15586 else
15587 tagname=""
15591 GCJ)
15592 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15595 # Source file extension for Java test sources.
15596 ac_ext=java
15598 # Object file extension for compiled Java test sources.
15599 objext=o
15600 objext_GCJ=$objext
15602 # Code to be used in simple compile tests
15603 lt_simple_compile_test_code="class foo {}\n"
15605 # Code to be used in simple link tests
15606 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15608 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15610 # If no C compiler was specified, use CC.
15611 LTCC=${LTCC-"$CC"}
15613 # Allow CC to be a program name with arguments.
15614 compiler=$CC
15617 # Allow CC to be a program name with arguments.
15618 lt_save_CC="$CC"
15619 CC=${GCJ-"gcj"}
15620 compiler=$CC
15621 compiler_GCJ=$CC
15623 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15624 archive_cmds_need_lc_GCJ=no
15626 ## CAVEAT EMPTOR:
15627 ## There is no encapsulation within the following macros, do not change
15628 ## the running order or otherwise move them around unless you know exactly
15629 ## what you are doing...
15631 lt_prog_compiler_no_builtin_flag_GCJ=
15633 if test "$GCC" = yes; then
15634 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15637 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15638 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15639 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642 lt_cv_prog_compiler_rtti_exceptions=no
15643 ac_outfile=conftest.$ac_objext
15644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15645 lt_compiler_flag="-fno-rtti -fno-exceptions"
15646 # Insert the option either (1) after the last *FLAGS variable, or
15647 # (2) before a word containing "conftest.", or (3) at the end.
15648 # Note that $ac_compile itself does not contain backslashes and begins
15649 # with a dollar sign (not a hyphen), so the echo should work correctly.
15650 # The option is referenced via a variable to avoid confusing sed.
15651 lt_compile=`echo "$ac_compile" | $SED \
15652 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15654 -e 's:$: $lt_compiler_flag:'`
15655 (eval echo "\"\$as_me:15655: $lt_compile\"" >&5)
15656 (eval "$lt_compile" 2>conftest.err)
15657 ac_status=$?
15658 cat conftest.err >&5
15659 echo "$as_me:15659: \$? = $ac_status" >&5
15660 if (exit $ac_status) && test -s "$ac_outfile"; then
15661 # The compiler can only warn and ignore the option if not recognized
15662 # So say no if there are warnings
15663 if test ! -s conftest.err; then
15664 lt_cv_prog_compiler_rtti_exceptions=yes
15667 $rm conftest*
15670 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15671 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15673 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15674 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15675 else
15681 lt_prog_compiler_wl_GCJ=
15682 lt_prog_compiler_pic_GCJ=
15683 lt_prog_compiler_static_GCJ=
15685 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15686 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15688 if test "$GCC" = yes; then
15689 lt_prog_compiler_wl_GCJ='-Wl,'
15690 lt_prog_compiler_static_GCJ='-static'
15692 case $host_os in
15693 aix*)
15694 # All AIX code is PIC.
15695 if test "$host_cpu" = ia64; then
15696 # AIX 5 now supports IA64 processor
15697 lt_prog_compiler_static_GCJ='-Bstatic'
15701 amigaos*)
15702 # FIXME: we need at least 68020 code to build shared libraries, but
15703 # adding the `-m68020' flag to GCC prevents building anything better,
15704 # like `-m68040'.
15705 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15708 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15709 # PIC is the default for these OSes.
15712 mingw* | pw32* | os2*)
15713 # This hack is so that the source file can tell whether it is being
15714 # built for inclusion in a dll (and should export symbols for example).
15715 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15718 darwin* | rhapsody*)
15719 # PIC is the default on this platform
15720 # Common symbols not allowed in MH_DYLIB files
15721 lt_prog_compiler_pic_GCJ='-fno-common'
15724 msdosdjgpp*)
15725 # Just because we use GCC doesn't mean we suddenly get shared libraries
15726 # on systems that don't support them.
15727 lt_prog_compiler_can_build_shared_GCJ=no
15728 enable_shared=no
15731 sysv4*MP*)
15732 if test -d /usr/nec; then
15733 lt_prog_compiler_pic_GCJ=-Kconform_pic
15737 hpux*)
15738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15739 # not for PA HP-UX.
15740 case "$host_cpu" in
15741 hppa*64*|ia64*)
15742 # +Z the default
15745 lt_prog_compiler_pic_GCJ='-fPIC'
15747 esac
15751 lt_prog_compiler_pic_GCJ='-fPIC'
15753 esac
15754 else
15755 # PORTME Check for flag to pass linker flags through the system compiler.
15756 case $host_os in
15757 aix*)
15758 lt_prog_compiler_wl_GCJ='-Wl,'
15759 if test "$host_cpu" = ia64; then
15760 # AIX 5 now supports IA64 processor
15761 lt_prog_compiler_static_GCJ='-Bstatic'
15762 else
15763 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15767 mingw* | pw32* | os2*)
15768 # This hack is so that the source file can tell whether it is being
15769 # built for inclusion in a dll (and should export symbols for example).
15770 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15773 hpux9* | hpux10* | hpux11*)
15774 lt_prog_compiler_wl_GCJ='-Wl,'
15775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15776 # not for PA HP-UX.
15777 case "$host_cpu" in
15778 hppa*64*|ia64*)
15779 # +Z the default
15782 lt_prog_compiler_pic_GCJ='+Z'
15784 esac
15785 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15786 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15789 irix5* | irix6* | nonstopux*)
15790 lt_prog_compiler_wl_GCJ='-Wl,'
15791 # PIC (with -KPIC) is the default.
15792 lt_prog_compiler_static_GCJ='-non_shared'
15795 newsos6)
15796 lt_prog_compiler_pic_GCJ='-KPIC'
15797 lt_prog_compiler_static_GCJ='-Bstatic'
15800 linux*)
15801 case $CC in
15802 icc* | ecc*)
15803 lt_prog_compiler_wl_GCJ='-Wl,'
15804 lt_prog_compiler_pic_GCJ='-KPIC'
15805 lt_prog_compiler_static_GCJ='-static'
15807 ccc*)
15808 lt_prog_compiler_wl_GCJ='-Wl,'
15809 # All Alpha code is PIC.
15810 lt_prog_compiler_static_GCJ='-non_shared'
15812 esac
15815 osf3* | osf4* | osf5*)
15816 lt_prog_compiler_wl_GCJ='-Wl,'
15817 # All OSF/1 code is PIC.
15818 lt_prog_compiler_static_GCJ='-non_shared'
15821 sco3.2v5*)
15822 lt_prog_compiler_pic_GCJ='-Kpic'
15823 lt_prog_compiler_static_GCJ='-dn'
15826 solaris*)
15827 lt_prog_compiler_wl_GCJ='-Wl,'
15828 lt_prog_compiler_pic_GCJ='-KPIC'
15829 lt_prog_compiler_static_GCJ='-Bstatic'
15832 sunos4*)
15833 lt_prog_compiler_wl_GCJ='-Qoption ld '
15834 lt_prog_compiler_pic_GCJ='-PIC'
15835 lt_prog_compiler_static_GCJ='-Bstatic'
15838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15839 lt_prog_compiler_wl_GCJ='-Wl,'
15840 lt_prog_compiler_pic_GCJ='-KPIC'
15841 lt_prog_compiler_static_GCJ='-Bstatic'
15844 sysv4*MP*)
15845 if test -d /usr/nec ;then
15846 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15847 lt_prog_compiler_static_GCJ='-Bstatic'
15851 uts4*)
15852 lt_prog_compiler_pic_GCJ='-pic'
15853 lt_prog_compiler_static_GCJ='-Bstatic'
15857 lt_prog_compiler_can_build_shared_GCJ=no
15859 esac
15862 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15863 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15866 # Check to make sure the PIC flag actually works.
15868 if test -n "$lt_prog_compiler_pic_GCJ"; then
15870 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15871 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15872 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875 lt_prog_compiler_pic_works_GCJ=no
15876 ac_outfile=conftest.$ac_objext
15877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15878 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15879 # Insert the option either (1) after the last *FLAGS variable, or
15880 # (2) before a word containing "conftest.", or (3) at the end.
15881 # Note that $ac_compile itself does not contain backslashes and begins
15882 # with a dollar sign (not a hyphen), so the echo should work correctly.
15883 # The option is referenced via a variable to avoid confusing sed.
15884 lt_compile=`echo "$ac_compile" | $SED \
15885 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15887 -e 's:$: $lt_compiler_flag:'`
15888 (eval echo "\"\$as_me:15888: $lt_compile\"" >&5)
15889 (eval "$lt_compile" 2>conftest.err)
15890 ac_status=$?
15891 cat conftest.err >&5
15892 echo "$as_me:15892: \$? = $ac_status" >&5
15893 if (exit $ac_status) && test -s "$ac_outfile"; then
15894 # The compiler can only warn and ignore the option if not recognized
15895 # So say no if there are warnings
15896 if test ! -s conftest.err; then
15897 lt_prog_compiler_pic_works_GCJ=yes
15900 $rm conftest*
15903 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15904 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15906 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15907 case $lt_prog_compiler_pic_GCJ in
15908 "" | " "*) ;;
15909 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15910 esac
15911 else
15912 lt_prog_compiler_pic_GCJ=
15913 lt_prog_compiler_can_build_shared_GCJ=no
15917 case "$host_os" in
15918 # For platforms which do not support PIC, -DPIC is meaningless:
15919 *djgpp*)
15920 lt_prog_compiler_pic_GCJ=
15923 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15925 esac
15927 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15929 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932 lt_cv_prog_compiler_c_o_GCJ=no
15933 $rm -r conftest 2>/dev/null
15934 mkdir conftest
15935 cd conftest
15936 mkdir out
15937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15939 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15940 # that will create temporary files in the current directory regardless of
15941 # the output directory. Thus, making CWD read-only will cause this test
15942 # to fail, enabling locking or at least warning the user not to do parallel
15943 # builds.
15944 chmod -w .
15946 lt_compiler_flag="-o out/conftest2.$ac_objext"
15947 # Insert the option either (1) after the last *FLAGS variable, or
15948 # (2) before a word containing "conftest.", or (3) at the end.
15949 # Note that $ac_compile itself does not contain backslashes and begins
15950 # with a dollar sign (not a hyphen), so the echo should work correctly.
15951 lt_compile=`echo "$ac_compile" | $SED \
15952 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15954 -e 's:$: $lt_compiler_flag:'`
15955 (eval echo "\"\$as_me:15955: $lt_compile\"" >&5)
15956 (eval "$lt_compile" 2>out/conftest.err)
15957 ac_status=$?
15958 cat out/conftest.err >&5
15959 echo "$as_me:15959: \$? = $ac_status" >&5
15960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15961 then
15962 # The compiler can only warn and ignore the option if not recognized
15963 # So say no if there are warnings
15964 if test ! -s out/conftest.err; then
15965 lt_cv_prog_compiler_c_o_GCJ=yes
15968 chmod u+w .
15969 $rm conftest*
15970 # SGI C++ compiler will create directory out/ii_files/ for
15971 # template instantiation
15972 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15973 $rm out/* && rmdir out
15974 cd ..
15975 rmdir conftest
15976 $rm conftest*
15979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15980 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15983 hard_links="nottested"
15984 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15985 # do not overwrite the value of need_locks provided by the user
15986 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15988 hard_links=yes
15989 $rm conftest*
15990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15991 touch conftest.a
15992 ln conftest.a conftest.b 2>&5 || hard_links=no
15993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15994 { echo "$as_me:$LINENO: result: $hard_links" >&5
15995 echo "${ECHO_T}$hard_links" >&6; }
15996 if test "$hard_links" = no; then
15997 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15999 need_locks=warn
16001 else
16002 need_locks=no
16005 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16006 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16008 runpath_var=
16009 allow_undefined_flag_GCJ=
16010 enable_shared_with_static_runtimes_GCJ=no
16011 archive_cmds_GCJ=
16012 archive_expsym_cmds_GCJ=
16013 old_archive_From_new_cmds_GCJ=
16014 old_archive_from_expsyms_cmds_GCJ=
16015 export_dynamic_flag_spec_GCJ=
16016 whole_archive_flag_spec_GCJ=
16017 thread_safe_flag_spec_GCJ=
16018 hardcode_libdir_flag_spec_GCJ=
16019 hardcode_libdir_flag_spec_ld_GCJ=
16020 hardcode_libdir_separator_GCJ=
16021 hardcode_direct_GCJ=no
16022 hardcode_minus_L_GCJ=no
16023 hardcode_shlibpath_var_GCJ=unsupported
16024 link_all_deplibs_GCJ=unknown
16025 hardcode_automatic_GCJ=no
16026 module_cmds_GCJ=
16027 module_expsym_cmds_GCJ=
16028 always_export_symbols_GCJ=no
16029 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16030 # include_expsyms should be a list of space-separated symbols to be *always*
16031 # included in the symbol list
16032 include_expsyms_GCJ=
16033 # exclude_expsyms can be an extended regexp of symbols to exclude
16034 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16035 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16036 # as well as any symbol that contains `d'.
16037 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16038 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16039 # platforms (ab)use it in PIC code, but their linkers get confused if
16040 # the symbol is explicitly referenced. Since portable code cannot
16041 # rely on this symbol name, it's probably fine to never include it in
16042 # preloaded symbol tables.
16043 extract_expsyms_cmds=
16045 case $host_os in
16046 cygwin* | mingw* | pw32*)
16047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16048 # When not using gcc, we currently assume that we are using
16049 # Microsoft Visual C++.
16050 if test "$GCC" != yes; then
16051 with_gnu_ld=no
16054 openbsd*)
16055 with_gnu_ld=no
16057 esac
16059 ld_shlibs_GCJ=yes
16060 if test "$with_gnu_ld" = yes; then
16061 # If archive_cmds runs LD, not CC, wlarc should be empty
16062 wlarc='${wl}'
16064 # See if GNU ld supports shared libraries.
16065 case $host_os in
16066 aix3* | aix4* | aix5*)
16067 # On AIX/PPC, the GNU linker is very broken
16068 if test "$host_cpu" != ia64; then
16069 ld_shlibs_GCJ=no
16070 cat <<EOF 1>&2
16072 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16073 *** to be unable to reliably create shared libraries on AIX.
16074 *** Therefore, libtool is disabling shared libraries support. If you
16075 *** really care for shared libraries, you may want to modify your PATH
16076 *** so that a non-GNU linker is found, and then restart.
16082 amigaos*)
16083 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)'
16084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16085 hardcode_minus_L_GCJ=yes
16087 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16088 # that the semantics of dynamic libraries on AmigaOS, at least up
16089 # to version 4, is to share data among multiple programs linked
16090 # with the same dynamic library. Since this doesn't match the
16091 # behavior of shared libraries on other platforms, we can't use
16092 # them.
16093 ld_shlibs_GCJ=no
16096 beos*)
16097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16098 allow_undefined_flag_GCJ=unsupported
16099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16100 # support --undefined. This deserves some investigation. FIXME
16101 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16102 else
16103 ld_shlibs_GCJ=no
16107 cygwin* | mingw* | pw32*)
16108 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16109 # as there is no search path for DLLs.
16110 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16111 allow_undefined_flag_GCJ=unsupported
16112 always_export_symbols_GCJ=no
16113 enable_shared_with_static_runtimes_GCJ=yes
16114 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16116 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16117 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16118 # If the export-symbols file already is a .def file (1st line
16119 # is EXPORTS), use it as is; otherwise, prepend...
16120 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16121 cp $export_symbols $output_objdir/$soname.def;
16122 else
16123 echo EXPORTS > $output_objdir/$soname.def;
16124 cat $export_symbols >> $output_objdir/$soname.def;
16126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16127 else
16128 ld_shlibs=no
16132 netbsd*)
16133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16134 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16135 wlarc=
16136 else
16137 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16138 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16142 solaris* | sysv5*)
16143 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16144 ld_shlibs_GCJ=no
16145 cat <<EOF 1>&2
16147 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16148 *** create shared libraries on Solaris systems. Therefore, libtool
16149 *** is disabling shared libraries support. We urge you to upgrade GNU
16150 *** binutils to release 2.9.1 or newer. Another option is to modify
16151 *** your PATH or compiler configuration so that the native linker is
16152 *** used, and then restart.
16155 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16156 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16157 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16158 else
16159 ld_shlibs_GCJ=no
16163 sunos4*)
16164 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16165 wlarc=
16166 hardcode_direct_GCJ=yes
16167 hardcode_shlibpath_var_GCJ=no
16170 linux*)
16171 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16172 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16173 archive_cmds_GCJ="$tmp_archive_cmds"
16174 supports_anon_versioning=no
16175 case `$LD -v 2>/dev/null` in
16176 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16177 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16178 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16179 *\ 2.11.*) ;; # other 2.11 versions
16180 *) supports_anon_versioning=yes ;;
16181 esac
16182 if test $supports_anon_versioning = yes; then
16183 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16185 $echo "local: *; };" >> $output_objdir/$libname.ver~
16186 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16187 else
16188 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16190 else
16191 ld_shlibs_GCJ=no
16196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16197 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16199 else
16200 ld_shlibs_GCJ=no
16203 esac
16205 if test "$ld_shlibs_GCJ" = yes; then
16206 runpath_var=LD_RUN_PATH
16207 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16208 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16209 # ancient GNU ld didn't support --whole-archive et. al.
16210 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16211 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16212 else
16213 whole_archive_flag_spec_GCJ=
16216 else
16217 # PORTME fill in a description of your system's linker (not GNU ld)
16218 case $host_os in
16219 aix3*)
16220 allow_undefined_flag_GCJ=unsupported
16221 always_export_symbols_GCJ=yes
16222 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'
16223 # Note: this linker hardcodes the directories in LIBPATH if there
16224 # are no directories specified by -L.
16225 hardcode_minus_L_GCJ=yes
16226 if test "$GCC" = yes && test -z "$link_static_flag"; then
16227 # Neither direct hardcoding nor static linking is supported with a
16228 # broken collect2.
16229 hardcode_direct_GCJ=unsupported
16233 aix4* | aix5*)
16234 if test "$host_cpu" = ia64; then
16235 # On IA64, the linker does run time linking by default, so we don't
16236 # have to do anything special.
16237 aix_use_runtimelinking=no
16238 exp_sym_flag='-Bexport'
16239 no_entry_flag=""
16240 else
16241 # If we're using GNU nm, then we don't want the "-C" option.
16242 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16243 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16244 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'
16245 else
16246 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'
16248 aix_use_runtimelinking=no
16250 # Test if we are trying to use run time linking or normal
16251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16252 # need to do runtime linking.
16253 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16254 for ld_flag in $LDFLAGS; do
16255 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16256 aix_use_runtimelinking=yes
16257 break
16259 done
16260 esac
16262 exp_sym_flag='-bexport'
16263 no_entry_flag='-bnoentry'
16266 # When large executables or shared objects are built, AIX ld can
16267 # have problems creating the table of contents. If linking a library
16268 # or program results in "error TOC overflow" add -mminimal-toc to
16269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16272 archive_cmds_GCJ=''
16273 hardcode_direct_GCJ=yes
16274 hardcode_libdir_separator_GCJ=':'
16275 link_all_deplibs_GCJ=yes
16277 if test "$GCC" = yes; then
16278 case $host_os in aix4.012|aix4.012.*)
16279 # We only want to do this on AIX 4.2 and lower, the check
16280 # below for broken collect2 doesn't work under 4.3+
16281 collect2name=`${CC} -print-prog-name=collect2`
16282 if test -f "$collect2name" && \
16283 strings "$collect2name" | grep resolve_lib_name >/dev/null
16284 then
16285 # We have reworked collect2
16286 hardcode_direct_GCJ=yes
16287 else
16288 # We have old collect2
16289 hardcode_direct_GCJ=unsupported
16290 # It fails to find uninstalled libraries when the uninstalled
16291 # path is not listed in the libpath. Setting hardcode_minus_L
16292 # to unsupported forces relinking
16293 hardcode_minus_L_GCJ=yes
16294 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16295 hardcode_libdir_separator_GCJ=
16297 esac
16298 shared_flag='-shared'
16299 else
16300 # not using gcc
16301 if test "$host_cpu" = ia64; then
16302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16303 # chokes on -Wl,-G. The following line is correct:
16304 shared_flag='-G'
16305 else
16306 if test "$aix_use_runtimelinking" = yes; then
16307 shared_flag='${wl}-G'
16308 else
16309 shared_flag='${wl}-bM:SRE'
16314 # It seems that -bexpall does not export symbols beginning with
16315 # underscore (_), so it is better to generate a list of symbols to export.
16316 always_export_symbols_GCJ=yes
16317 if test "$aix_use_runtimelinking" = yes; then
16318 # Warning - without using the other runtime loading flags (-brtl),
16319 # -berok will link without error, but may produce a broken library.
16320 allow_undefined_flag_GCJ='-berok'
16321 # Determine the default libpath from the value encoded in an empty executable.
16322 cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h. */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16330 main ()
16334 return 0;
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (ac_try="$ac_link"
16339 case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_link") 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } && {
16351 test -z "$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 } && test -s conftest$ac_exeext &&
16354 $as_test_x conftest$ac_exeext; then
16356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16358 # Check for a 64-bit object if we didn't find anything.
16359 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; }
16360 }'`; fi
16361 else
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16369 conftest$ac_exeext conftest.$ac_ext
16370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16372 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16373 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"
16374 else
16375 if test "$host_cpu" = ia64; then
16376 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16377 allow_undefined_flag_GCJ="-z nodefs"
16378 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"
16379 else
16380 # Determine the default libpath from the value encoded in an empty executable.
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16389 main ()
16393 return 0;
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (ac_try="$ac_link"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_link") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest$ac_exeext &&
16413 $as_test_x conftest$ac_exeext; then
16415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16417 # Check for a 64-bit object if we didn't find anything.
16418 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; }
16419 }'`; fi
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16428 conftest$ac_exeext conftest.$ac_ext
16429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16431 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16432 # Warning - without using the other run time loading flags,
16433 # -berok will link without error, but may produce a broken library.
16434 no_undefined_flag_GCJ=' ${wl}-bernotok'
16435 allow_undefined_flag_GCJ=' ${wl}-berok'
16436 # -bexpall does not export symbols beginning with underscore (_)
16437 always_export_symbols_GCJ=yes
16438 # Exported symbols can be pulled into shared objects from archives
16439 whole_archive_flag_spec_GCJ=' '
16440 archive_cmds_need_lc_GCJ=yes
16441 # This is similar to how AIX traditionally builds it's shared libraries.
16442 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'
16447 amigaos*)
16448 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)'
16449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16450 hardcode_minus_L_GCJ=yes
16451 # see comment about different semantics on the GNU ld section
16452 ld_shlibs_GCJ=no
16455 bsdi4*)
16456 export_dynamic_flag_spec_GCJ=-rdynamic
16459 cygwin* | mingw* | pw32*)
16460 # When not using gcc, we currently assume that we are using
16461 # Microsoft Visual C++.
16462 # hardcode_libdir_flag_spec is actually meaningless, as there is
16463 # no search path for DLLs.
16464 hardcode_libdir_flag_spec_GCJ=' '
16465 allow_undefined_flag_GCJ=unsupported
16466 # Tell ltmain to make .lib files, not .a files.
16467 libext=lib
16468 # Tell ltmain to make .dll files, not .so files.
16469 shrext=".dll"
16470 # FIXME: Setting linknames here is a bad hack.
16471 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16472 # The linker will automatically build a .lib file if we build a DLL.
16473 old_archive_From_new_cmds_GCJ='true'
16474 # FIXME: Should let the user specify the lib program.
16475 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16476 fix_srcfile_path='`cygpath -w "$srcfile"`'
16477 enable_shared_with_static_runtimes_GCJ=yes
16480 darwin* | rhapsody*)
16481 if test "$GXX" = yes ; then
16482 archive_cmds_need_lc_GCJ=no
16483 case "$host_os" in
16484 rhapsody* | darwin1.[012])
16485 allow_undefined_flag_GCJ='-undefined suppress'
16487 *) # Darwin 1.3 on
16488 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16489 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16490 else
16491 case ${MACOSX_DEPLOYMENT_TARGET} in
16492 10.[012])
16493 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16495 10.*)
16496 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16498 esac
16501 esac
16502 lt_int_apple_cc_single_mod=no
16503 output_verbose_link_cmd='echo'
16504 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16505 lt_int_apple_cc_single_mod=yes
16507 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16508 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16509 else
16510 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'
16512 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16514 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16515 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}'
16516 else
16517 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}'
16519 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}'
16520 hardcode_direct_GCJ=no
16521 hardcode_automatic_GCJ=yes
16522 hardcode_shlibpath_var_GCJ=unsupported
16523 whole_archive_flag_spec_GCJ='-all_load $convenience'
16524 link_all_deplibs_GCJ=yes
16525 else
16526 ld_shlibs_GCJ=no
16530 dgux*)
16531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16533 hardcode_shlibpath_var_GCJ=no
16536 freebsd1*)
16537 ld_shlibs_GCJ=no
16540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16541 # support. Future versions do this automatically, but an explicit c++rt0.o
16542 # does not break anything, and helps significantly (at the cost of a little
16543 # extra space).
16544 freebsd2.2*)
16545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16546 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16547 hardcode_direct_GCJ=yes
16548 hardcode_shlibpath_var_GCJ=no
16551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16552 freebsd2*)
16553 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16554 hardcode_direct_GCJ=yes
16555 hardcode_minus_L_GCJ=yes
16556 hardcode_shlibpath_var_GCJ=no
16559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16560 freebsd* | kfreebsd*-gnu)
16561 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16562 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16563 hardcode_direct_GCJ=yes
16564 hardcode_shlibpath_var_GCJ=no
16567 hpux9*)
16568 if test "$GCC" = yes; then
16569 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'
16570 else
16571 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'
16573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16574 hardcode_libdir_separator_GCJ=:
16575 hardcode_direct_GCJ=yes
16577 # hardcode_minus_L: Not really in the search PATH,
16578 # but as the default location of the library.
16579 hardcode_minus_L_GCJ=yes
16580 export_dynamic_flag_spec_GCJ='${wl}-E'
16583 hpux10* | hpux11*)
16584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16585 case "$host_cpu" in
16586 hppa*64*|ia64*)
16587 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16592 esac
16593 else
16594 case "$host_cpu" in
16595 hppa*64*|ia64*)
16596 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16601 esac
16603 if test "$with_gnu_ld" = no; then
16604 case "$host_cpu" in
16605 hppa*64*)
16606 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16607 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16608 hardcode_libdir_separator_GCJ=:
16609 hardcode_direct_GCJ=no
16610 hardcode_shlibpath_var_GCJ=no
16612 ia64*)
16613 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16614 hardcode_direct_GCJ=no
16615 hardcode_shlibpath_var_GCJ=no
16617 # hardcode_minus_L: Not really in the search PATH,
16618 # but as the default location of the library.
16619 hardcode_minus_L_GCJ=yes
16622 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16623 hardcode_libdir_separator_GCJ=:
16624 hardcode_direct_GCJ=yes
16625 export_dynamic_flag_spec_GCJ='${wl}-E'
16627 # hardcode_minus_L: Not really in the search PATH,
16628 # but as the default location of the library.
16629 hardcode_minus_L_GCJ=yes
16631 esac
16635 irix5* | irix6* | nonstopux*)
16636 if test "$GCC" = yes; then
16637 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'
16638 else
16639 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'
16640 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16643 hardcode_libdir_separator_GCJ=:
16644 link_all_deplibs_GCJ=yes
16647 netbsd*)
16648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16649 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16650 else
16651 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16653 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16654 hardcode_direct_GCJ=yes
16655 hardcode_shlibpath_var_GCJ=no
16658 newsos6)
16659 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16660 hardcode_direct_GCJ=yes
16661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16662 hardcode_libdir_separator_GCJ=:
16663 hardcode_shlibpath_var_GCJ=no
16666 openbsd*)
16667 hardcode_direct_GCJ=yes
16668 hardcode_shlibpath_var_GCJ=no
16669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16670 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16671 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16672 export_dynamic_flag_spec_GCJ='${wl}-E'
16673 else
16674 case $host_os in
16675 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16676 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16677 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16680 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16683 esac
16687 os2*)
16688 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16689 hardcode_minus_L_GCJ=yes
16690 allow_undefined_flag_GCJ=unsupported
16691 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'
16692 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16695 osf3*)
16696 if test "$GCC" = yes; then
16697 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16698 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'
16699 else
16700 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16701 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'
16703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16704 hardcode_libdir_separator_GCJ=:
16707 osf4* | osf5*) # as osf3* with the addition of -msym flag
16708 if test "$GCC" = yes; then
16709 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16710 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'
16711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16712 else
16713 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16714 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'
16715 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~
16716 $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'
16718 # Both c and cxx compiler support -rpath directly
16719 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16721 hardcode_libdir_separator_GCJ=:
16724 sco3.2v5*)
16725 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_shlibpath_var_GCJ=no
16727 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16728 runpath_var=LD_RUN_PATH
16729 hardcode_runpath_var=yes
16732 solaris*)
16733 no_undefined_flag_GCJ=' -z text'
16734 if test "$GCC" = yes; then
16735 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16737 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16738 else
16739 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16741 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16743 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16744 hardcode_shlibpath_var_GCJ=no
16745 case $host_os in
16746 solaris2.[0-5] | solaris2.[0-5].*) ;;
16747 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16748 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16749 esac
16750 link_all_deplibs_GCJ=yes
16753 sunos4*)
16754 if test "x$host_vendor" = xsequent; then
16755 # Use $CC to link under sequent, because it throws in some extra .o
16756 # files that make .init and .fini sections work.
16757 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16758 else
16759 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16761 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16762 hardcode_direct_GCJ=yes
16763 hardcode_minus_L_GCJ=yes
16764 hardcode_shlibpath_var_GCJ=no
16767 sysv4)
16768 case $host_vendor in
16769 sni)
16770 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16771 hardcode_direct_GCJ=yes # is this really true???
16773 siemens)
16774 ## LD is ld it makes a PLAMLIB
16775 ## CC just makes a GrossModule.
16776 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16777 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16778 hardcode_direct_GCJ=no
16780 motorola)
16781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16782 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16784 esac
16785 runpath_var='LD_RUN_PATH'
16786 hardcode_shlibpath_var_GCJ=no
16789 sysv4.3*)
16790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16791 hardcode_shlibpath_var_GCJ=no
16792 export_dynamic_flag_spec_GCJ='-Bexport'
16795 sysv4*MP*)
16796 if test -d /usr/nec; then
16797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16798 hardcode_shlibpath_var_GCJ=no
16799 runpath_var=LD_RUN_PATH
16800 hardcode_runpath_var=yes
16801 ld_shlibs_GCJ=yes
16805 sysv4.2uw2*)
16806 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16807 hardcode_direct_GCJ=yes
16808 hardcode_minus_L_GCJ=no
16809 hardcode_shlibpath_var_GCJ=no
16810 hardcode_runpath_var=yes
16811 runpath_var=LD_RUN_PATH
16814 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16815 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16816 if test "$GCC" = yes; then
16817 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16818 else
16819 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16821 runpath_var='LD_RUN_PATH'
16822 hardcode_shlibpath_var_GCJ=no
16825 sysv5*)
16826 no_undefined_flag_GCJ=' -z text'
16827 # $CC -shared without GNU ld will not create a library from C++
16828 # object files and a static libstdc++, better avoid it by now
16829 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16830 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16832 hardcode_libdir_flag_spec_GCJ=
16833 hardcode_shlibpath_var_GCJ=no
16834 runpath_var='LD_RUN_PATH'
16837 uts4*)
16838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16840 hardcode_shlibpath_var_GCJ=no
16844 ld_shlibs_GCJ=no
16846 esac
16849 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16850 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16851 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16853 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16854 if test "$GCC" = yes; then
16855 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16859 # Do we need to explicitly link libc?
16861 case "x$archive_cmds_need_lc_GCJ" in
16862 x|xyes)
16863 # Assume -lc should be added
16864 archive_cmds_need_lc_GCJ=yes
16866 if test "$enable_shared" = yes && test "$GCC" = yes; then
16867 case $archive_cmds_GCJ in
16868 *'~'*)
16869 # FIXME: we may have to deal with multi-command sequences.
16871 '$CC '*)
16872 # Test whether the compiler implicitly links with -lc since on some
16873 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16874 # to ld, don't add -lc before -lgcc.
16875 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16876 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16877 $rm conftest*
16878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881 (eval $ac_compile) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } 2>conftest.err; then
16885 soname=conftest
16886 lib=conftest
16887 libobjs=conftest.$ac_objext
16888 deplibs=
16889 wl=$lt_prog_compiler_wl_GCJ
16890 compiler_flags=-v
16891 linker_flags=-v
16892 verstring=
16893 output_objdir=.
16894 libname=conftest
16895 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16896 allow_undefined_flag_GCJ=
16897 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16898 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }
16902 then
16903 archive_cmds_need_lc_GCJ=no
16904 else
16905 archive_cmds_need_lc_GCJ=yes
16907 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16908 else
16909 cat conftest.err 1>&5
16911 $rm conftest*
16912 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16913 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16915 esac
16918 esac
16920 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16921 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16922 library_names_spec=
16923 libname_spec='lib$name'
16924 soname_spec=
16925 shrext=".so"
16926 postinstall_cmds=
16927 postuninstall_cmds=
16928 finish_cmds=
16929 finish_eval=
16930 shlibpath_var=
16931 shlibpath_overrides_runpath=unknown
16932 version_type=none
16933 dynamic_linker="$host_os ld.so"
16934 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16935 if test "$GCC" = yes; then
16936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16937 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16938 # if the path contains ";" then we assume it to be the separator
16939 # otherwise default to the standard path separator (i.e. ":") - it is
16940 # assumed that no part of a normal pathname contains ";" but that should
16941 # okay in the real world where ";" in dirpaths is itself problematic.
16942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16943 else
16944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16946 else
16947 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16949 need_lib_prefix=unknown
16950 hardcode_into_libs=no
16952 # when you set need_version to no, make sure it does not cause -set_version
16953 # flags to be left without arguments
16954 need_version=unknown
16956 case $host_os in
16957 aix3*)
16958 version_type=linux
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16960 shlibpath_var=LIBPATH
16962 # AIX 3 has no versioning support, so we append a major version to the name.
16963 soname_spec='${libname}${release}${shared_ext}$major'
16966 aix4* | aix5*)
16967 version_type=linux
16968 need_lib_prefix=no
16969 need_version=no
16970 hardcode_into_libs=yes
16971 if test "$host_cpu" = ia64; then
16972 # AIX 5 supports IA64
16973 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16974 shlibpath_var=LD_LIBRARY_PATH
16975 else
16976 # With GCC up to 2.95.x, collect2 would create an import file
16977 # for dependence libraries. The import file would start with
16978 # the line `#! .'. This would cause the generated library to
16979 # depend on `.', always an invalid library. This was fixed in
16980 # development snapshots of GCC prior to 3.0.
16981 case $host_os in
16982 aix4 | aix4.[01] | aix4.[01].*)
16983 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16984 echo ' yes '
16985 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16987 else
16988 can_build_shared=no
16991 esac
16992 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16993 # soname into executable. Probably we can add versioning support to
16994 # collect2, so additional links can be useful in future.
16995 if test "$aix_use_runtimelinking" = yes; then
16996 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16997 # instead of lib<name>.a to let people know that these are not
16998 # typical AIX shared libraries.
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000 else
17001 # We preserve .a as extension for shared libraries through AIX4.2
17002 # and later when we are not doing run time linking.
17003 library_names_spec='${libname}${release}.a $libname.a'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LIBPATH
17010 amigaos*)
17011 library_names_spec='$libname.ixlibrary $libname.a'
17012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17013 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'
17016 beos*)
17017 library_names_spec='${libname}${shared_ext}'
17018 dynamic_linker="$host_os ld.so"
17019 shlibpath_var=LIBRARY_PATH
17022 bsdi4*)
17023 version_type=linux
17024 need_version=no
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17028 shlibpath_var=LD_LIBRARY_PATH
17029 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17030 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17031 # the default ld.so.conf also contains /usr/contrib/lib and
17032 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17033 # libtool to hard-code these into programs
17036 cygwin* | mingw* | pw32*)
17037 version_type=windows
17038 shrext=".dll"
17039 need_version=no
17040 need_lib_prefix=no
17042 case $GCC,$host_os in
17043 yes,cygwin* | yes,mingw* | yes,pw32*)
17044 library_names_spec='$libname.dll.a'
17045 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17046 postinstall_cmds='base_file=`basename \${file}`~
17047 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17048 dldir=$destdir/`dirname \$dlpath`~
17049 test -d \$dldir || mkdir -p \$dldir~
17050 $install_prog $dir/$dlname \$dldir/$dlname'
17051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17052 dlpath=$dir/\$dldll~
17053 $rm \$dlpath'
17054 shlibpath_overrides_runpath=yes
17056 case $host_os in
17057 cygwin*)
17058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17062 mingw*)
17063 # MinGW DLLs use traditional 'lib' prefix
17064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17066 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17067 # It is most probably a Windows format PATH printed by
17068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17069 # path with ; separators, and with drive letters. We can handle the
17070 # drive letters (cygwin fileutils understands them), so leave them,
17071 # especially as we might pass files found there to a mingw objdump,
17072 # which wouldn't understand a cygwinified path. Ahh.
17073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17074 else
17075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17078 pw32*)
17079 # pw32 DLLs use 'pw' prefix rather than 'lib'
17080 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17082 esac
17086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17088 esac
17089 dynamic_linker='Win32 ld.exe'
17090 # FIXME: first we should search . and the directory the executable is in
17091 shlibpath_var=PATH
17094 darwin* | rhapsody*)
17095 dynamic_linker="$host_os dyld"
17096 version_type=darwin
17097 need_lib_prefix=no
17098 need_version=no
17099 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17100 soname_spec='${libname}${release}${major}$shared_ext'
17101 shlibpath_overrides_runpath=yes
17102 shlibpath_var=DYLD_LIBRARY_PATH
17103 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17104 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17105 if test "$GCC" = yes; then
17106 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"`
17107 else
17108 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17113 dgux*)
17114 version_type=linux
17115 need_lib_prefix=no
17116 need_version=no
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 shlibpath_var=LD_LIBRARY_PATH
17122 freebsd1*)
17123 dynamic_linker=no
17126 kfreebsd*-gnu)
17127 version_type=linux
17128 need_lib_prefix=no
17129 need_version=no
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=no
17134 hardcode_into_libs=yes
17135 dynamic_linker='GNU ld.so'
17138 freebsd*)
17139 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17140 version_type=freebsd-$objformat
17141 case $version_type in
17142 freebsd-elf*)
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17144 need_version=no
17145 need_lib_prefix=no
17147 freebsd-*)
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17149 need_version=yes
17151 esac
17152 shlibpath_var=LD_LIBRARY_PATH
17153 case $host_os in
17154 freebsd2*)
17155 shlibpath_overrides_runpath=yes
17157 freebsd3.01* | freebsdelf3.01*)
17158 shlibpath_overrides_runpath=yes
17159 hardcode_into_libs=yes
17161 *) # from 3.2 on
17162 shlibpath_overrides_runpath=no
17163 hardcode_into_libs=yes
17165 esac
17168 gnu*)
17169 version_type=linux
17170 need_lib_prefix=no
17171 need_version=no
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 hardcode_into_libs=yes
17178 hpux9* | hpux10* | hpux11*)
17179 # Give a soname corresponding to the major version so that dld.sl refuses to
17180 # link against other versions.
17181 version_type=sunos
17182 need_lib_prefix=no
17183 need_version=no
17184 case "$host_cpu" in
17185 ia64*)
17186 shrext='.so'
17187 hardcode_into_libs=yes
17188 dynamic_linker="$host_os dld.so"
17189 shlibpath_var=LD_LIBRARY_PATH
17190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 if test "X$HPUX_IA64_MODE" = X32; then
17194 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17195 else
17196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17200 hppa*64*)
17201 shrext='.sl'
17202 hardcode_into_libs=yes
17203 dynamic_linker="$host_os dld.sl"
17204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17212 shrext='.sl'
17213 dynamic_linker="$host_os dld.sl"
17214 shlibpath_var=SHLIB_PATH
17215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 soname_spec='${libname}${release}${shared_ext}$major'
17219 esac
17220 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17221 postinstall_cmds='chmod 555 $lib'
17224 irix5* | irix6* | nonstopux*)
17225 case $host_os in
17226 nonstopux*) version_type=nonstopux ;;
17228 if test "$lt_cv_prog_gnu_ld" = yes; then
17229 version_type=linux
17230 else
17231 version_type=irix
17232 fi ;;
17233 esac
17234 need_lib_prefix=no
17235 need_version=no
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17238 case $host_os in
17239 irix5* | nonstopux*)
17240 libsuff= shlibsuff=
17243 case $LD in # libtool.m4 will add one of these switches to LD
17244 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17245 libsuff= shlibsuff= libmagic=32-bit;;
17246 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17247 libsuff=32 shlibsuff=N32 libmagic=N32;;
17248 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17249 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17250 *) libsuff= shlibsuff= libmagic=never-match;;
17251 esac
17253 esac
17254 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17255 shlibpath_overrides_runpath=no
17256 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17257 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17258 hardcode_into_libs=yes
17261 # No shared lib support for Linux oldld, aout, or coff.
17262 linux*oldld* | linux*aout* | linux*coff*)
17263 dynamic_linker=no
17266 # This must be Linux ELF.
17267 linux*)
17268 version_type=linux
17269 need_lib_prefix=no
17270 need_version=no
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath=no
17276 # This implies no fast_install, which is unacceptable.
17277 # Some rework will be needed to allow for fast_install
17278 # before this can be enabled.
17279 hardcode_into_libs=yes
17281 # We used to test for /lib/ld.so.1 and disable shared libraries on
17282 # powerpc, because MkLinux only supported shared libraries with the
17283 # GNU dynamic linker. Since this was broken with cross compilers,
17284 # most powerpc-linux boxes support dynamic linking these days and
17285 # people can always --disable-shared, the test was removed, and we
17286 # assume the GNU/Linux dynamic linker is in use.
17287 dynamic_linker='GNU/Linux ld.so'
17290 netbsd*)
17291 version_type=sunos
17292 need_lib_prefix=no
17293 need_version=no
17294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17297 dynamic_linker='NetBSD (a.out) ld.so'
17298 else
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 dynamic_linker='NetBSD ld.elf_so'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 shlibpath_overrides_runpath=yes
17305 hardcode_into_libs=yes
17308 newsos6)
17309 version_type=linux
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=yes
17315 nto-qnx*)
17316 version_type=linux
17317 need_lib_prefix=no
17318 need_version=no
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 soname_spec='${libname}${release}${shared_ext}$major'
17321 shlibpath_var=LD_LIBRARY_PATH
17322 shlibpath_overrides_runpath=yes
17325 openbsd*)
17326 version_type=sunos
17327 need_lib_prefix=no
17328 need_version=no
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17333 case $host_os in
17334 openbsd2.[89] | openbsd2.[89].*)
17335 shlibpath_overrides_runpath=no
17338 shlibpath_overrides_runpath=yes
17340 esac
17341 else
17342 shlibpath_overrides_runpath=yes
17346 os2*)
17347 libname_spec='$name'
17348 shrext=".dll"
17349 need_lib_prefix=no
17350 library_names_spec='$libname${shared_ext} $libname.a'
17351 dynamic_linker='OS/2 ld.exe'
17352 shlibpath_var=LIBPATH
17355 osf3* | osf4* | osf5*)
17356 version_type=osf
17357 need_lib_prefix=no
17358 need_version=no
17359 soname_spec='${libname}${release}${shared_ext}$major'
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361 shlibpath_var=LD_LIBRARY_PATH
17362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17366 sco3.2v5*)
17367 version_type=osf
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 shlibpath_var=LD_LIBRARY_PATH
17373 solaris*)
17374 version_type=linux
17375 need_lib_prefix=no
17376 need_version=no
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=yes
17381 hardcode_into_libs=yes
17382 # ldd complains unless libraries are executable
17383 postinstall_cmds='chmod +x $lib'
17386 sunos4*)
17387 version_type=sunos
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=yes
17392 if test "$with_gnu_ld" = yes; then
17393 need_lib_prefix=no
17395 need_version=yes
17398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17399 version_type=linux
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17403 case $host_vendor in
17404 sni)
17405 shlibpath_overrides_runpath=no
17406 need_lib_prefix=no
17407 export_dynamic_flag_spec='${wl}-Blargedynsym'
17408 runpath_var=LD_RUN_PATH
17410 siemens)
17411 need_lib_prefix=no
17413 motorola)
17414 need_lib_prefix=no
17415 need_version=no
17416 shlibpath_overrides_runpath=no
17417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17419 esac
17422 sysv4*MP*)
17423 if test -d /usr/nec ;then
17424 version_type=linux
17425 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17426 soname_spec='$libname${shared_ext}.$major'
17427 shlibpath_var=LD_LIBRARY_PATH
17431 uts4*)
17432 version_type=linux
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17434 soname_spec='${libname}${release}${shared_ext}$major'
17435 shlibpath_var=LD_LIBRARY_PATH
17439 dynamic_linker=no
17441 esac
17442 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17443 echo "${ECHO_T}$dynamic_linker" >&6; }
17444 test "$dynamic_linker" = no && can_build_shared=no
17446 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17447 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17448 hardcode_action_GCJ=
17449 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17450 test -n "$runpath_var GCJ" || \
17451 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17453 # We can hardcode non-existant directories.
17454 if test "$hardcode_direct_GCJ" != no &&
17455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17456 # have to relink, otherwise we might link with an installed library
17457 # when we should be linking with a yet-to-be-installed one
17458 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17459 test "$hardcode_minus_L_GCJ" != no; then
17460 # Linking always hardcodes the temporary library directory.
17461 hardcode_action_GCJ=relink
17462 else
17463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17464 hardcode_action_GCJ=immediate
17466 else
17467 # We cannot hardcode anything, or else we can only hardcode existing
17468 # directories.
17469 hardcode_action_GCJ=unsupported
17471 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17472 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17474 if test "$hardcode_action_GCJ" = relink; then
17475 # Fast installation is not supported
17476 enable_fast_install=no
17477 elif test "$shlibpath_overrides_runpath" = yes ||
17478 test "$enable_shared" = no; then
17479 # Fast installation is not necessary
17480 enable_fast_install=needless
17483 striplib=
17484 old_striplib=
17485 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17486 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17487 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17488 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17489 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17490 { echo "$as_me:$LINENO: result: yes" >&5
17491 echo "${ECHO_T}yes" >&6; }
17492 else
17493 # FIXME - insert some real tests, host_os isn't really good enough
17494 case $host_os in
17495 darwin*)
17496 if test -n "$STRIP" ; then
17497 striplib="$STRIP -x"
17498 { echo "$as_me:$LINENO: result: yes" >&5
17499 echo "${ECHO_T}yes" >&6; }
17500 else
17501 { echo "$as_me:$LINENO: result: no" >&5
17502 echo "${ECHO_T}no" >&6; }
17506 { echo "$as_me:$LINENO: result: no" >&5
17507 echo "${ECHO_T}no" >&6; }
17509 esac
17512 if test "x$enable_dlopen" != xyes; then
17513 enable_dlopen=unknown
17514 enable_dlopen_self=unknown
17515 enable_dlopen_self_static=unknown
17516 else
17517 lt_cv_dlopen=no
17518 lt_cv_dlopen_libs=
17520 case $host_os in
17521 beos*)
17522 lt_cv_dlopen="load_add_on"
17523 lt_cv_dlopen_libs=
17524 lt_cv_dlopen_self=yes
17527 mingw* | pw32*)
17528 lt_cv_dlopen="LoadLibrary"
17529 lt_cv_dlopen_libs=
17532 cygwin*)
17533 lt_cv_dlopen="dlopen"
17534 lt_cv_dlopen_libs=
17537 darwin*)
17538 # if libdl is installed we need to link against it
17539 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17540 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17541 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544 ac_check_lib_save_LIBS=$LIBS
17545 LIBS="-ldl $LIBS"
17546 cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h. */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17553 /* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 char dlopen ();
17561 main ()
17563 return dlopen ();
17565 return 0;
17567 _ACEOF
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest$ac_exeext &&
17585 $as_test_x conftest$ac_exeext; then
17586 ac_cv_lib_dl_dlopen=yes
17587 else
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_cv_lib_dl_dlopen=no
17594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17595 conftest$ac_exeext conftest.$ac_ext
17596 LIBS=$ac_check_lib_save_LIBS
17598 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17599 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17600 if test $ac_cv_lib_dl_dlopen = yes; then
17601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17602 else
17604 lt_cv_dlopen="dyld"
17605 lt_cv_dlopen_libs=
17606 lt_cv_dlopen_self=yes
17613 { echo "$as_me:$LINENO: checking for shl_load" >&5
17614 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17615 if test "${ac_cv_func_shl_load+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618 cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h. */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17626 #define shl_load innocuous_shl_load
17628 /* System header to define __stub macros and hopefully few prototypes,
17629 which can conflict with char shl_load (); below.
17630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17631 <limits.h> exists even on freestanding compilers. */
17633 #ifdef __STDC__
17634 # include <limits.h>
17635 #else
17636 # include <assert.h>
17637 #endif
17639 #undef shl_load
17641 /* Override any GCC internal prototype to avoid an error.
17642 Use char because int might match the return type of a GCC
17643 builtin and then its argument prototype would still apply. */
17644 #ifdef __cplusplus
17645 extern "C"
17646 #endif
17647 char shl_load ();
17648 /* The GNU C library defines this for functions which it implements
17649 to always fail with ENOSYS. Some functions are actually named
17650 something starting with __ and the normal name is an alias. */
17651 #if defined __stub_shl_load || defined __stub___shl_load
17652 choke me
17653 #endif
17656 main ()
17658 return shl_load ();
17660 return 0;
17662 _ACEOF
17663 rm -f conftest.$ac_objext conftest$ac_exeext
17664 if { (ac_try="$ac_link"
17665 case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_link") 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && {
17677 test -z "$ac_c_werror_flag" ||
17678 test ! -s conftest.err
17679 } && test -s conftest$ac_exeext &&
17680 $as_test_x conftest$ac_exeext; then
17681 ac_cv_func_shl_load=yes
17682 else
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ac_cv_func_shl_load=no
17689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17690 conftest$ac_exeext conftest.$ac_ext
17692 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17693 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17694 if test $ac_cv_func_shl_load = yes; then
17695 lt_cv_dlopen="shl_load"
17696 else
17697 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17698 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17699 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17702 ac_check_lib_save_LIBS=$LIBS
17703 LIBS="-ldld $LIBS"
17704 cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17711 /* Override any GCC internal prototype to avoid an error.
17712 Use char because int might match the return type of a GCC
17713 builtin and then its argument prototype would still apply. */
17714 #ifdef __cplusplus
17715 extern "C"
17716 #endif
17717 char shl_load ();
17719 main ()
17721 return shl_load ();
17723 return 0;
17725 _ACEOF
17726 rm -f conftest.$ac_objext conftest$ac_exeext
17727 if { (ac_try="$ac_link"
17728 case "(($ac_try" in
17729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730 *) ac_try_echo=$ac_try;;
17731 esac
17732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733 (eval "$ac_link") 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } && {
17740 test -z "$ac_c_werror_flag" ||
17741 test ! -s conftest.err
17742 } && test -s conftest$ac_exeext &&
17743 $as_test_x conftest$ac_exeext; then
17744 ac_cv_lib_dld_shl_load=yes
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ac_cv_lib_dld_shl_load=no
17752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17753 conftest$ac_exeext conftest.$ac_ext
17754 LIBS=$ac_check_lib_save_LIBS
17756 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17757 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17758 if test $ac_cv_lib_dld_shl_load = yes; then
17759 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17760 else
17761 { echo "$as_me:$LINENO: checking for dlopen" >&5
17762 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17763 if test "${ac_cv_func_dlopen+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17774 #define dlopen innocuous_dlopen
17776 /* System header to define __stub macros and hopefully few prototypes,
17777 which can conflict with char dlopen (); below.
17778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17779 <limits.h> exists even on freestanding compilers. */
17781 #ifdef __STDC__
17782 # include <limits.h>
17783 #else
17784 # include <assert.h>
17785 #endif
17787 #undef dlopen
17789 /* Override any GCC internal prototype to avoid an error.
17790 Use char because int might match the return type of a GCC
17791 builtin and then its argument prototype would still apply. */
17792 #ifdef __cplusplus
17793 extern "C"
17794 #endif
17795 char dlopen ();
17796 /* The GNU C library defines this for functions which it implements
17797 to always fail with ENOSYS. Some functions are actually named
17798 something starting with __ and the normal name is an alias. */
17799 #if defined __stub_dlopen || defined __stub___dlopen
17800 choke me
17801 #endif
17804 main ()
17806 return dlopen ();
17808 return 0;
17810 _ACEOF
17811 rm -f conftest.$ac_objext conftest$ac_exeext
17812 if { (ac_try="$ac_link"
17813 case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17816 esac
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818 (eval "$ac_link") 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } && {
17825 test -z "$ac_c_werror_flag" ||
17826 test ! -s conftest.err
17827 } && test -s conftest$ac_exeext &&
17828 $as_test_x conftest$ac_exeext; then
17829 ac_cv_func_dlopen=yes
17830 else
17831 echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17834 ac_cv_func_dlopen=no
17837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17838 conftest$ac_exeext conftest.$ac_ext
17840 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17841 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17842 if test $ac_cv_func_dlopen = yes; then
17843 lt_cv_dlopen="dlopen"
17844 else
17845 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17846 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17847 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850 ac_check_lib_save_LIBS=$LIBS
17851 LIBS="-ldl $LIBS"
17852 cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h. */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 char dlopen ();
17867 main ()
17869 return dlopen ();
17871 return 0;
17873 _ACEOF
17874 rm -f conftest.$ac_objext conftest$ac_exeext
17875 if { (ac_try="$ac_link"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17879 esac
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_link") 2>conftest.er1
17882 ac_status=$?
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } && {
17888 test -z "$ac_c_werror_flag" ||
17889 test ! -s conftest.err
17890 } && test -s conftest$ac_exeext &&
17891 $as_test_x conftest$ac_exeext; then
17892 ac_cv_lib_dl_dlopen=yes
17893 else
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 ac_cv_lib_dl_dlopen=no
17900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17901 conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17904 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17906 if test $ac_cv_lib_dl_dlopen = yes; then
17907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17908 else
17909 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17910 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17911 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914 ac_check_lib_save_LIBS=$LIBS
17915 LIBS="-lsvld $LIBS"
17916 cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h. */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17923 /* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
17926 #ifdef __cplusplus
17927 extern "C"
17928 #endif
17929 char dlopen ();
17931 main ()
17933 return dlopen ();
17935 return 0;
17937 _ACEOF
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (ac_try="$ac_link"
17940 case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17943 esac
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_link") 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } && {
17952 test -z "$ac_c_werror_flag" ||
17953 test ! -s conftest.err
17954 } && test -s conftest$ac_exeext &&
17955 $as_test_x conftest$ac_exeext; then
17956 ac_cv_lib_svld_dlopen=yes
17957 else
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_lib_svld_dlopen=no
17964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17965 conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17968 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17969 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17970 if test $ac_cv_lib_svld_dlopen = yes; then
17971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17972 else
17973 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17974 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17975 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978 ac_check_lib_save_LIBS=$LIBS
17979 LIBS="-ldld $LIBS"
17980 cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h. */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17987 /* Override any GCC internal prototype to avoid an error.
17988 Use char because int might match the return type of a GCC
17989 builtin and then its argument prototype would still apply. */
17990 #ifdef __cplusplus
17991 extern "C"
17992 #endif
17993 char dld_link ();
17995 main ()
17997 return dld_link ();
17999 return 0;
18001 _ACEOF
18002 rm -f conftest.$ac_objext conftest$ac_exeext
18003 if { (ac_try="$ac_link"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_link") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } && {
18016 test -z "$ac_c_werror_flag" ||
18017 test ! -s conftest.err
18018 } && test -s conftest$ac_exeext &&
18019 $as_test_x conftest$ac_exeext; then
18020 ac_cv_lib_dld_dld_link=yes
18021 else
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 ac_cv_lib_dld_dld_link=no
18028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18029 conftest$ac_exeext conftest.$ac_ext
18030 LIBS=$ac_check_lib_save_LIBS
18032 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18033 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18034 if test $ac_cv_lib_dld_dld_link = yes; then
18035 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18054 esac
18056 if test "x$lt_cv_dlopen" != xno; then
18057 enable_dlopen=yes
18058 else
18059 enable_dlopen=no
18062 case $lt_cv_dlopen in
18063 dlopen)
18064 save_CPPFLAGS="$CPPFLAGS"
18065 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18067 save_LDFLAGS="$LDFLAGS"
18068 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18070 save_LIBS="$LIBS"
18071 LIBS="$lt_cv_dlopen_libs $LIBS"
18073 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18074 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18075 if test "${lt_cv_dlopen_self+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078 if test "$cross_compiling" = yes; then :
18079 lt_cv_dlopen_self=cross
18080 else
18081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18082 lt_status=$lt_dlunknown
18083 cat > conftest.$ac_ext <<EOF
18084 #line 18084 "configure"
18085 #include "confdefs.h"
18087 #if HAVE_DLFCN_H
18088 #include <dlfcn.h>
18089 #endif
18091 #include <stdio.h>
18093 #ifdef RTLD_GLOBAL
18094 # define LT_DLGLOBAL RTLD_GLOBAL
18095 #else
18096 # ifdef DL_GLOBAL
18097 # define LT_DLGLOBAL DL_GLOBAL
18098 # else
18099 # define LT_DLGLOBAL 0
18100 # endif
18101 #endif
18103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18104 find out it does not work in some platform. */
18105 #ifndef LT_DLLAZY_OR_NOW
18106 # ifdef RTLD_LAZY
18107 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18108 # else
18109 # ifdef DL_LAZY
18110 # define LT_DLLAZY_OR_NOW DL_LAZY
18111 # else
18112 # ifdef RTLD_NOW
18113 # define LT_DLLAZY_OR_NOW RTLD_NOW
18114 # else
18115 # ifdef DL_NOW
18116 # define LT_DLLAZY_OR_NOW DL_NOW
18117 # else
18118 # define LT_DLLAZY_OR_NOW 0
18119 # endif
18120 # endif
18121 # endif
18122 # endif
18123 #endif
18125 #ifdef __cplusplus
18126 extern "C" void exit (int);
18127 #endif
18129 void fnord() { int i=42;}
18130 int main ()
18132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18133 int status = $lt_dlunknown;
18135 if (self)
18137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18139 /* dlclose (self); */
18142 exit (status);
18145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18146 (eval $ac_link) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18150 (./conftest; exit; ) 2>/dev/null
18151 lt_status=$?
18152 case x$lt_status in
18153 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18154 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18155 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18156 esac
18157 else :
18158 # compilation failed
18159 lt_cv_dlopen_self=no
18162 rm -fr conftest*
18166 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18167 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18169 if test "x$lt_cv_dlopen_self" = xyes; then
18170 LDFLAGS="$LDFLAGS $link_static_flag"
18171 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18172 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18173 if test "${lt_cv_dlopen_self_static+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176 if test "$cross_compiling" = yes; then :
18177 lt_cv_dlopen_self_static=cross
18178 else
18179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18180 lt_status=$lt_dlunknown
18181 cat > conftest.$ac_ext <<EOF
18182 #line 18182 "configure"
18183 #include "confdefs.h"
18185 #if HAVE_DLFCN_H
18186 #include <dlfcn.h>
18187 #endif
18189 #include <stdio.h>
18191 #ifdef RTLD_GLOBAL
18192 # define LT_DLGLOBAL RTLD_GLOBAL
18193 #else
18194 # ifdef DL_GLOBAL
18195 # define LT_DLGLOBAL DL_GLOBAL
18196 # else
18197 # define LT_DLGLOBAL 0
18198 # endif
18199 #endif
18201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18202 find out it does not work in some platform. */
18203 #ifndef LT_DLLAZY_OR_NOW
18204 # ifdef RTLD_LAZY
18205 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18206 # else
18207 # ifdef DL_LAZY
18208 # define LT_DLLAZY_OR_NOW DL_LAZY
18209 # else
18210 # ifdef RTLD_NOW
18211 # define LT_DLLAZY_OR_NOW RTLD_NOW
18212 # else
18213 # ifdef DL_NOW
18214 # define LT_DLLAZY_OR_NOW DL_NOW
18215 # else
18216 # define LT_DLLAZY_OR_NOW 0
18217 # endif
18218 # endif
18219 # endif
18220 # endif
18221 #endif
18223 #ifdef __cplusplus
18224 extern "C" void exit (int);
18225 #endif
18227 void fnord() { int i=42;}
18228 int main ()
18230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18231 int status = $lt_dlunknown;
18233 if (self)
18235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18236 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18237 /* dlclose (self); */
18240 exit (status);
18243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18244 (eval $ac_link) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18248 (./conftest; exit; ) 2>/dev/null
18249 lt_status=$?
18250 case x$lt_status in
18251 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18252 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18253 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18254 esac
18255 else :
18256 # compilation failed
18257 lt_cv_dlopen_self_static=no
18260 rm -fr conftest*
18264 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18265 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18268 CPPFLAGS="$save_CPPFLAGS"
18269 LDFLAGS="$save_LDFLAGS"
18270 LIBS="$save_LIBS"
18272 esac
18274 case $lt_cv_dlopen_self in
18275 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18276 *) enable_dlopen_self=unknown ;;
18277 esac
18279 case $lt_cv_dlopen_self_static in
18280 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18281 *) enable_dlopen_self_static=unknown ;;
18282 esac
18286 # The else clause should only fire when bootstrapping the
18287 # libtool distribution, otherwise you forgot to ship ltmain.sh
18288 # with your package, and you will get complaints that there are
18289 # no rules to generate ltmain.sh.
18290 if test -f "$ltmain"; then
18291 # See if we are running on zsh, and set the options which allow our commands through
18292 # without removal of \ escapes.
18293 if test -n "${ZSH_VERSION+set}" ; then
18294 setopt NO_GLOB_SUBST
18296 # Now quote all the things that may contain metacharacters while being
18297 # careful not to overquote the AC_SUBSTed values. We take copies of the
18298 # variables and quote the copies for generation of the libtool script.
18299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18300 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18301 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18302 deplibs_check_method reload_flag reload_cmds need_locks \
18303 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18304 lt_cv_sys_global_symbol_to_c_name_address \
18305 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18306 old_postinstall_cmds old_postuninstall_cmds \
18307 compiler_GCJ \
18308 CC_GCJ \
18309 LD_GCJ \
18310 lt_prog_compiler_wl_GCJ \
18311 lt_prog_compiler_pic_GCJ \
18312 lt_prog_compiler_static_GCJ \
18313 lt_prog_compiler_no_builtin_flag_GCJ \
18314 export_dynamic_flag_spec_GCJ \
18315 thread_safe_flag_spec_GCJ \
18316 whole_archive_flag_spec_GCJ \
18317 enable_shared_with_static_runtimes_GCJ \
18318 old_archive_cmds_GCJ \
18319 old_archive_from_new_cmds_GCJ \
18320 predep_objects_GCJ \
18321 postdep_objects_GCJ \
18322 predeps_GCJ \
18323 postdeps_GCJ \
18324 compiler_lib_search_path_GCJ \
18325 archive_cmds_GCJ \
18326 archive_expsym_cmds_GCJ \
18327 postinstall_cmds_GCJ \
18328 postuninstall_cmds_GCJ \
18329 old_archive_from_expsyms_cmds_GCJ \
18330 allow_undefined_flag_GCJ \
18331 no_undefined_flag_GCJ \
18332 export_symbols_cmds_GCJ \
18333 hardcode_libdir_flag_spec_GCJ \
18334 hardcode_libdir_flag_spec_ld_GCJ \
18335 hardcode_libdir_separator_GCJ \
18336 hardcode_automatic_GCJ \
18337 module_cmds_GCJ \
18338 module_expsym_cmds_GCJ \
18339 lt_cv_prog_compiler_c_o_GCJ \
18340 exclude_expsyms_GCJ \
18341 include_expsyms_GCJ; do
18343 case $var in
18344 old_archive_cmds_GCJ | \
18345 old_archive_from_new_cmds_GCJ | \
18346 archive_cmds_GCJ | \
18347 archive_expsym_cmds_GCJ | \
18348 module_cmds_GCJ | \
18349 module_expsym_cmds_GCJ | \
18350 old_archive_from_expsyms_cmds_GCJ | \
18351 export_symbols_cmds_GCJ | \
18352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18353 postinstall_cmds | postuninstall_cmds | \
18354 old_postinstall_cmds | old_postuninstall_cmds | \
18355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18356 # Double-quote double-evaled strings.
18357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18362 esac
18363 done
18365 case $lt_echo in
18366 *'\$0 --fallback-echo"')
18367 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18369 esac
18371 cfgfile="$ofile"
18373 cat <<__EOF__ >> "$cfgfile"
18374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18378 # Shell to use when invoking shell scripts.
18379 SHELL=$lt_SHELL
18381 # Whether or not to build shared libraries.
18382 build_libtool_libs=$enable_shared
18384 # Whether or not to build static libraries.
18385 build_old_libs=$enable_static
18387 # Whether or not to add -lc for building shared libraries.
18388 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18390 # Whether or not to disallow shared libs when runtime libs are static
18391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18393 # Whether or not to optimize for fast installation.
18394 fast_install=$enable_fast_install
18396 # The host system.
18397 host_alias=$host_alias
18398 host=$host
18400 # An echo program that does not interpret backslashes.
18401 echo=$lt_echo
18403 # The archiver.
18404 AR=$lt_AR
18405 AR_FLAGS=$lt_AR_FLAGS
18407 # A C compiler.
18408 LTCC=$lt_LTCC
18410 # A language-specific compiler.
18411 CC=$lt_compiler_GCJ
18413 # Is the compiler the GNU C compiler?
18414 with_gcc=$GCC_GCJ
18416 # An ERE matcher.
18417 EGREP=$lt_EGREP
18419 # The linker used to build libraries.
18420 LD=$lt_LD_GCJ
18422 # Whether we need hard or soft links.
18423 LN_S=$lt_LN_S
18425 # A BSD-compatible nm program.
18426 NM=$lt_NM
18428 # A symbol stripping program
18429 STRIP="$STRIP"
18431 # Used to examine libraries when file_magic_cmd begins "file"
18432 MAGIC_CMD=$MAGIC_CMD
18434 # Used on cygwin: DLL creation program.
18435 DLLTOOL="$DLLTOOL"
18437 # Used on cygwin: object dumper.
18438 OBJDUMP="$OBJDUMP"
18440 # Used on cygwin: assembler.
18441 AS="$AS"
18443 # The name of the directory that contains temporary libtool files.
18444 objdir=$objdir
18446 # How to create reloadable object files.
18447 reload_flag=$lt_reload_flag
18448 reload_cmds=$lt_reload_cmds
18450 # How to pass a linker flag through the compiler.
18451 wl=$lt_lt_prog_compiler_wl_GCJ
18453 # Object file suffix (normally "o").
18454 objext="$ac_objext"
18456 # Old archive suffix (normally "a").
18457 libext="$libext"
18459 # Shared library suffix (normally ".so").
18460 shrext='$shrext'
18462 # Executable file suffix (normally "").
18463 exeext="$exeext"
18465 # Additional compiler flags for building library objects.
18466 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18467 pic_mode=$pic_mode
18469 # What is the maximum length of a command?
18470 max_cmd_len=$lt_cv_sys_max_cmd_len
18472 # Does compiler simultaneously support -c and -o options?
18473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18475 # Must we lock files when doing compilation ?
18476 need_locks=$lt_need_locks
18478 # Do we need the lib prefix for modules?
18479 need_lib_prefix=$need_lib_prefix
18481 # Do we need a version for libraries?
18482 need_version=$need_version
18484 # Whether dlopen is supported.
18485 dlopen_support=$enable_dlopen
18487 # Whether dlopen of programs is supported.
18488 dlopen_self=$enable_dlopen_self
18490 # Whether dlopen of statically linked programs is supported.
18491 dlopen_self_static=$enable_dlopen_self_static
18493 # Compiler flag to prevent dynamic linking.
18494 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18496 # Compiler flag to turn off builtin functions.
18497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18499 # Compiler flag to allow reflexive dlopens.
18500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18502 # Compiler flag to generate shared objects directly from archives.
18503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18505 # Compiler flag to generate thread-safe objects.
18506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18508 # Library versioning type.
18509 version_type=$version_type
18511 # Format of library name prefix.
18512 libname_spec=$lt_libname_spec
18514 # List of archive names. First name is the real one, the rest are links.
18515 # The last name is the one that the linker finds with -lNAME.
18516 library_names_spec=$lt_library_names_spec
18518 # The coded name of the library, if different from the real name.
18519 soname_spec=$lt_soname_spec
18521 # Commands used to build and install an old-style archive.
18522 RANLIB=$lt_RANLIB
18523 old_archive_cmds=$lt_old_archive_cmds_GCJ
18524 old_postinstall_cmds=$lt_old_postinstall_cmds
18525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18527 # Create an old-style archive from a shared archive.
18528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18530 # Create a temporary old-style archive to link instead of a shared archive.
18531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18533 # Commands used to build and install a shared archive.
18534 archive_cmds=$lt_archive_cmds_GCJ
18535 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18536 postinstall_cmds=$lt_postinstall_cmds
18537 postuninstall_cmds=$lt_postuninstall_cmds
18539 # Commands used to build a loadable module (assumed same as above if empty)
18540 module_cmds=$lt_module_cmds_GCJ
18541 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18543 # Commands to strip libraries.
18544 old_striplib=$lt_old_striplib
18545 striplib=$lt_striplib
18547 # Dependencies to place before the objects being linked to create a
18548 # shared library.
18549 predep_objects=$lt_predep_objects_GCJ
18551 # Dependencies to place after the objects being linked to create a
18552 # shared library.
18553 postdep_objects=$lt_postdep_objects_GCJ
18555 # Dependencies to place before the objects being linked to create a
18556 # shared library.
18557 predeps=$lt_predeps_GCJ
18559 # Dependencies to place after the objects being linked to create a
18560 # shared library.
18561 postdeps=$lt_postdeps_GCJ
18563 # The library search path used internally by the compiler when linking
18564 # a shared library.
18565 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18567 # Method to check whether dependent libraries are shared objects.
18568 deplibs_check_method=$lt_deplibs_check_method
18570 # Command to use when deplibs_check_method == file_magic.
18571 file_magic_cmd=$lt_file_magic_cmd
18573 # Flag that allows shared libraries with undefined symbols to be built.
18574 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18576 # Flag that forces no undefined symbols.
18577 no_undefined_flag=$lt_no_undefined_flag_GCJ
18579 # Commands used to finish a libtool library installation in a directory.
18580 finish_cmds=$lt_finish_cmds
18582 # Same as above, but a single script fragment to be evaled but not shown.
18583 finish_eval=$lt_finish_eval
18585 # Take the output of nm and produce a listing of raw symbols and C names.
18586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18588 # Transform the output of nm in a proper C declaration
18589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18591 # Transform the output of nm in a C name address pair
18592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18594 # This is the shared library runtime path variable.
18595 runpath_var=$runpath_var
18597 # This is the shared library path variable.
18598 shlibpath_var=$shlibpath_var
18600 # Is shlibpath searched before the hard-coded library search path?
18601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18603 # How to hardcode a shared library path into an executable.
18604 hardcode_action=$hardcode_action_GCJ
18606 # Whether we should hardcode library paths into libraries.
18607 hardcode_into_libs=$hardcode_into_libs
18609 # Flag to hardcode \$libdir into a binary during linking.
18610 # This must work even if \$libdir does not exist.
18611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18613 # If ld is used when linking, flag to hardcode \$libdir into
18614 # a binary during linking. This must work even if \$libdir does
18615 # not exist.
18616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18618 # Whether we need a single -rpath flag with a separated argument.
18619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18622 # resulting binary.
18623 hardcode_direct=$hardcode_direct_GCJ
18625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18626 # resulting binary.
18627 hardcode_minus_L=$hardcode_minus_L_GCJ
18629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18630 # the resulting binary.
18631 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18633 # Set to yes if building a shared library automatically hardcodes DIR into the library
18634 # and all subsequent libraries and executables linked against it.
18635 hardcode_automatic=$hardcode_automatic_GCJ
18637 # Variables whose values should be saved in libtool wrapper scripts and
18638 # restored at relink time.
18639 variables_saved_for_relink="$variables_saved_for_relink"
18641 # Whether libtool must link a program against all its dependency libraries.
18642 link_all_deplibs=$link_all_deplibs_GCJ
18644 # Compile-time system search path for libraries
18645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18647 # Run-time system search path for libraries
18648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18650 # Fix the shell variable \$srcfile for the compiler.
18651 fix_srcfile_path="$fix_srcfile_path_GCJ"
18653 # Set to yes if exported symbols are required.
18654 always_export_symbols=$always_export_symbols_GCJ
18656 # The commands to list exported symbols.
18657 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18659 # The commands to extract the exported symbol list from a shared archive.
18660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18662 # Symbols that should not be listed in the preloaded symbols.
18663 exclude_expsyms=$lt_exclude_expsyms_GCJ
18665 # Symbols that must always be exported.
18666 include_expsyms=$lt_include_expsyms_GCJ
18668 # ### END LIBTOOL TAG CONFIG: $tagname
18670 __EOF__
18673 else
18674 # If there is no Makefile yet, we rely on a make rule to execute
18675 # `config.status --recheck' to rerun these tests and create the
18676 # libtool script then.
18677 test -f Makefile && make "$ltmain"
18681 ac_ext=c
18682 ac_cpp='$CPP $CPPFLAGS'
18683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18687 CC="$lt_save_CC"
18689 else
18690 tagname=""
18697 # Source file extension for RC test sources.
18698 ac_ext=rc
18700 # Object file extension for compiled RC test sources.
18701 objext=o
18702 objext_RC=$objext
18704 # Code to be used in simple compile tests
18705 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18707 # Code to be used in simple link tests
18708 lt_simple_link_test_code="$lt_simple_compile_test_code"
18710 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18712 # If no C compiler was specified, use CC.
18713 LTCC=${LTCC-"$CC"}
18715 # Allow CC to be a program name with arguments.
18716 compiler=$CC
18719 # Allow CC to be a program name with arguments.
18720 lt_save_CC="$CC"
18721 CC=${RC-"windres"}
18722 compiler=$CC
18723 compiler_RC=$CC
18724 lt_cv_prog_compiler_c_o_RC=yes
18726 # The else clause should only fire when bootstrapping the
18727 # libtool distribution, otherwise you forgot to ship ltmain.sh
18728 # with your package, and you will get complaints that there are
18729 # no rules to generate ltmain.sh.
18730 if test -f "$ltmain"; then
18731 # See if we are running on zsh, and set the options which allow our commands through
18732 # without removal of \ escapes.
18733 if test -n "${ZSH_VERSION+set}" ; then
18734 setopt NO_GLOB_SUBST
18736 # Now quote all the things that may contain metacharacters while being
18737 # careful not to overquote the AC_SUBSTed values. We take copies of the
18738 # variables and quote the copies for generation of the libtool script.
18739 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18740 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18741 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18742 deplibs_check_method reload_flag reload_cmds need_locks \
18743 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18744 lt_cv_sys_global_symbol_to_c_name_address \
18745 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18746 old_postinstall_cmds old_postuninstall_cmds \
18747 compiler_RC \
18748 CC_RC \
18749 LD_RC \
18750 lt_prog_compiler_wl_RC \
18751 lt_prog_compiler_pic_RC \
18752 lt_prog_compiler_static_RC \
18753 lt_prog_compiler_no_builtin_flag_RC \
18754 export_dynamic_flag_spec_RC \
18755 thread_safe_flag_spec_RC \
18756 whole_archive_flag_spec_RC \
18757 enable_shared_with_static_runtimes_RC \
18758 old_archive_cmds_RC \
18759 old_archive_from_new_cmds_RC \
18760 predep_objects_RC \
18761 postdep_objects_RC \
18762 predeps_RC \
18763 postdeps_RC \
18764 compiler_lib_search_path_RC \
18765 archive_cmds_RC \
18766 archive_expsym_cmds_RC \
18767 postinstall_cmds_RC \
18768 postuninstall_cmds_RC \
18769 old_archive_from_expsyms_cmds_RC \
18770 allow_undefined_flag_RC \
18771 no_undefined_flag_RC \
18772 export_symbols_cmds_RC \
18773 hardcode_libdir_flag_spec_RC \
18774 hardcode_libdir_flag_spec_ld_RC \
18775 hardcode_libdir_separator_RC \
18776 hardcode_automatic_RC \
18777 module_cmds_RC \
18778 module_expsym_cmds_RC \
18779 lt_cv_prog_compiler_c_o_RC \
18780 exclude_expsyms_RC \
18781 include_expsyms_RC; do
18783 case $var in
18784 old_archive_cmds_RC | \
18785 old_archive_from_new_cmds_RC | \
18786 archive_cmds_RC | \
18787 archive_expsym_cmds_RC | \
18788 module_cmds_RC | \
18789 module_expsym_cmds_RC | \
18790 old_archive_from_expsyms_cmds_RC | \
18791 export_symbols_cmds_RC | \
18792 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18793 postinstall_cmds | postuninstall_cmds | \
18794 old_postinstall_cmds | old_postuninstall_cmds | \
18795 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18796 # Double-quote double-evaled strings.
18797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18802 esac
18803 done
18805 case $lt_echo in
18806 *'\$0 --fallback-echo"')
18807 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18809 esac
18811 cfgfile="$ofile"
18813 cat <<__EOF__ >> "$cfgfile"
18814 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18816 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18818 # Shell to use when invoking shell scripts.
18819 SHELL=$lt_SHELL
18821 # Whether or not to build shared libraries.
18822 build_libtool_libs=$enable_shared
18824 # Whether or not to build static libraries.
18825 build_old_libs=$enable_static
18827 # Whether or not to add -lc for building shared libraries.
18828 build_libtool_need_lc=$archive_cmds_need_lc_RC
18830 # Whether or not to disallow shared libs when runtime libs are static
18831 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18833 # Whether or not to optimize for fast installation.
18834 fast_install=$enable_fast_install
18836 # The host system.
18837 host_alias=$host_alias
18838 host=$host
18840 # An echo program that does not interpret backslashes.
18841 echo=$lt_echo
18843 # The archiver.
18844 AR=$lt_AR
18845 AR_FLAGS=$lt_AR_FLAGS
18847 # A C compiler.
18848 LTCC=$lt_LTCC
18850 # A language-specific compiler.
18851 CC=$lt_compiler_RC
18853 # Is the compiler the GNU C compiler?
18854 with_gcc=$GCC_RC
18856 # An ERE matcher.
18857 EGREP=$lt_EGREP
18859 # The linker used to build libraries.
18860 LD=$lt_LD_RC
18862 # Whether we need hard or soft links.
18863 LN_S=$lt_LN_S
18865 # A BSD-compatible nm program.
18866 NM=$lt_NM
18868 # A symbol stripping program
18869 STRIP="$STRIP"
18871 # Used to examine libraries when file_magic_cmd begins "file"
18872 MAGIC_CMD=$MAGIC_CMD
18874 # Used on cygwin: DLL creation program.
18875 DLLTOOL="$DLLTOOL"
18877 # Used on cygwin: object dumper.
18878 OBJDUMP="$OBJDUMP"
18880 # Used on cygwin: assembler.
18881 AS="$AS"
18883 # The name of the directory that contains temporary libtool files.
18884 objdir=$objdir
18886 # How to create reloadable object files.
18887 reload_flag=$lt_reload_flag
18888 reload_cmds=$lt_reload_cmds
18890 # How to pass a linker flag through the compiler.
18891 wl=$lt_lt_prog_compiler_wl_RC
18893 # Object file suffix (normally "o").
18894 objext="$ac_objext"
18896 # Old archive suffix (normally "a").
18897 libext="$libext"
18899 # Shared library suffix (normally ".so").
18900 shrext='$shrext'
18902 # Executable file suffix (normally "").
18903 exeext="$exeext"
18905 # Additional compiler flags for building library objects.
18906 pic_flag=$lt_lt_prog_compiler_pic_RC
18907 pic_mode=$pic_mode
18909 # What is the maximum length of a command?
18910 max_cmd_len=$lt_cv_sys_max_cmd_len
18912 # Does compiler simultaneously support -c and -o options?
18913 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18915 # Must we lock files when doing compilation ?
18916 need_locks=$lt_need_locks
18918 # Do we need the lib prefix for modules?
18919 need_lib_prefix=$need_lib_prefix
18921 # Do we need a version for libraries?
18922 need_version=$need_version
18924 # Whether dlopen is supported.
18925 dlopen_support=$enable_dlopen
18927 # Whether dlopen of programs is supported.
18928 dlopen_self=$enable_dlopen_self
18930 # Whether dlopen of statically linked programs is supported.
18931 dlopen_self_static=$enable_dlopen_self_static
18933 # Compiler flag to prevent dynamic linking.
18934 link_static_flag=$lt_lt_prog_compiler_static_RC
18936 # Compiler flag to turn off builtin functions.
18937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18939 # Compiler flag to allow reflexive dlopens.
18940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18942 # Compiler flag to generate shared objects directly from archives.
18943 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18945 # Compiler flag to generate thread-safe objects.
18946 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18948 # Library versioning type.
18949 version_type=$version_type
18951 # Format of library name prefix.
18952 libname_spec=$lt_libname_spec
18954 # List of archive names. First name is the real one, the rest are links.
18955 # The last name is the one that the linker finds with -lNAME.
18956 library_names_spec=$lt_library_names_spec
18958 # The coded name of the library, if different from the real name.
18959 soname_spec=$lt_soname_spec
18961 # Commands used to build and install an old-style archive.
18962 RANLIB=$lt_RANLIB
18963 old_archive_cmds=$lt_old_archive_cmds_RC
18964 old_postinstall_cmds=$lt_old_postinstall_cmds
18965 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18967 # Create an old-style archive from a shared archive.
18968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18970 # Create a temporary old-style archive to link instead of a shared archive.
18971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18973 # Commands used to build and install a shared archive.
18974 archive_cmds=$lt_archive_cmds_RC
18975 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18976 postinstall_cmds=$lt_postinstall_cmds
18977 postuninstall_cmds=$lt_postuninstall_cmds
18979 # Commands used to build a loadable module (assumed same as above if empty)
18980 module_cmds=$lt_module_cmds_RC
18981 module_expsym_cmds=$lt_module_expsym_cmds_RC
18983 # Commands to strip libraries.
18984 old_striplib=$lt_old_striplib
18985 striplib=$lt_striplib
18987 # Dependencies to place before the objects being linked to create a
18988 # shared library.
18989 predep_objects=$lt_predep_objects_RC
18991 # Dependencies to place after the objects being linked to create a
18992 # shared library.
18993 postdep_objects=$lt_postdep_objects_RC
18995 # Dependencies to place before the objects being linked to create a
18996 # shared library.
18997 predeps=$lt_predeps_RC
18999 # Dependencies to place after the objects being linked to create a
19000 # shared library.
19001 postdeps=$lt_postdeps_RC
19003 # The library search path used internally by the compiler when linking
19004 # a shared library.
19005 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19007 # Method to check whether dependent libraries are shared objects.
19008 deplibs_check_method=$lt_deplibs_check_method
19010 # Command to use when deplibs_check_method == file_magic.
19011 file_magic_cmd=$lt_file_magic_cmd
19013 # Flag that allows shared libraries with undefined symbols to be built.
19014 allow_undefined_flag=$lt_allow_undefined_flag_RC
19016 # Flag that forces no undefined symbols.
19017 no_undefined_flag=$lt_no_undefined_flag_RC
19019 # Commands used to finish a libtool library installation in a directory.
19020 finish_cmds=$lt_finish_cmds
19022 # Same as above, but a single script fragment to be evaled but not shown.
19023 finish_eval=$lt_finish_eval
19025 # Take the output of nm and produce a listing of raw symbols and C names.
19026 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19028 # Transform the output of nm in a proper C declaration
19029 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19031 # Transform the output of nm in a C name address pair
19032 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19034 # This is the shared library runtime path variable.
19035 runpath_var=$runpath_var
19037 # This is the shared library path variable.
19038 shlibpath_var=$shlibpath_var
19040 # Is shlibpath searched before the hard-coded library search path?
19041 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19043 # How to hardcode a shared library path into an executable.
19044 hardcode_action=$hardcode_action_RC
19046 # Whether we should hardcode library paths into libraries.
19047 hardcode_into_libs=$hardcode_into_libs
19049 # Flag to hardcode \$libdir into a binary during linking.
19050 # This must work even if \$libdir does not exist.
19051 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19053 # If ld is used when linking, flag to hardcode \$libdir into
19054 # a binary during linking. This must work even if \$libdir does
19055 # not exist.
19056 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19058 # Whether we need a single -rpath flag with a separated argument.
19059 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19061 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19062 # resulting binary.
19063 hardcode_direct=$hardcode_direct_RC
19065 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19066 # resulting binary.
19067 hardcode_minus_L=$hardcode_minus_L_RC
19069 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19070 # the resulting binary.
19071 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19073 # Set to yes if building a shared library automatically hardcodes DIR into the library
19074 # and all subsequent libraries and executables linked against it.
19075 hardcode_automatic=$hardcode_automatic_RC
19077 # Variables whose values should be saved in libtool wrapper scripts and
19078 # restored at relink time.
19079 variables_saved_for_relink="$variables_saved_for_relink"
19081 # Whether libtool must link a program against all its dependency libraries.
19082 link_all_deplibs=$link_all_deplibs_RC
19084 # Compile-time system search path for libraries
19085 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19087 # Run-time system search path for libraries
19088 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19090 # Fix the shell variable \$srcfile for the compiler.
19091 fix_srcfile_path="$fix_srcfile_path_RC"
19093 # Set to yes if exported symbols are required.
19094 always_export_symbols=$always_export_symbols_RC
19096 # The commands to list exported symbols.
19097 export_symbols_cmds=$lt_export_symbols_cmds_RC
19099 # The commands to extract the exported symbol list from a shared archive.
19100 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19102 # Symbols that should not be listed in the preloaded symbols.
19103 exclude_expsyms=$lt_exclude_expsyms_RC
19105 # Symbols that must always be exported.
19106 include_expsyms=$lt_include_expsyms_RC
19108 # ### END LIBTOOL TAG CONFIG: $tagname
19110 __EOF__
19113 else
19114 # If there is no Makefile yet, we rely on a make rule to execute
19115 # `config.status --recheck' to rerun these tests and create the
19116 # libtool script then.
19117 test -f Makefile && make "$ltmain"
19121 ac_ext=c
19122 ac_cpp='$CPP $CPPFLAGS'
19123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19127 CC="$lt_save_CC"
19132 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19133 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19134 { (exit 1); exit 1; }; }
19136 esac
19138 # Append the new tag name to the list of available tags.
19139 if test -n "$tagname" ; then
19140 available_tags="$available_tags $tagname"
19143 done
19144 IFS="$lt_save_ifs"
19146 # Now substitute the updated list of available tags.
19147 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19148 mv "${ofile}T" "$ofile"
19149 chmod +x "$ofile"
19150 else
19151 rm -f "${ofile}T"
19152 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19153 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19154 { (exit 1); exit 1; }; }
19160 # This can be used to rebuild libtool when needed
19161 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19163 # Always use our own libtool.
19164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19166 # Prevent multiple expansion
19187 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19188 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19189 if test "${ac_cv_c_const+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 else
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h. */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19200 main ()
19202 /* FIXME: Include the comments suggested by Paul. */
19203 #ifndef __cplusplus
19204 /* Ultrix mips cc rejects this. */
19205 typedef int charset[2];
19206 const charset cs;
19207 /* SunOS 4.1.1 cc rejects this. */
19208 char const *const *pcpcc;
19209 char **ppc;
19210 /* NEC SVR4.0.2 mips cc rejects this. */
19211 struct point {int x, y;};
19212 static struct point const zero = {0,0};
19213 /* AIX XL C 1.02.0.0 rejects this.
19214 It does not let you subtract one const X* pointer from another in
19215 an arm of an if-expression whose if-part is not a constant
19216 expression */
19217 const char *g = "string";
19218 pcpcc = &g + (g ? g-g : 0);
19219 /* HPUX 7.0 cc rejects these. */
19220 ++pcpcc;
19221 ppc = (char**) pcpcc;
19222 pcpcc = (char const *const *) ppc;
19223 { /* SCO 3.2v4 cc rejects this. */
19224 char *t;
19225 char const *s = 0 ? (char *) 0 : (char const *) 0;
19227 *t++ = 0;
19228 if (s) return 0;
19230 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19231 int x[] = {25, 17};
19232 const int *foo = &x[0];
19233 ++foo;
19235 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19236 typedef const int *iptr;
19237 iptr p = 0;
19238 ++p;
19240 { /* AIX XL C 1.02.0.0 rejects this saying
19241 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19242 struct s { int j; const int *ap[3]; };
19243 struct s *b; b->j = 5;
19245 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19246 const int foo = 10;
19247 if (!foo) return 0;
19249 return !cs[0] && !zero.x;
19250 #endif
19253 return 0;
19255 _ACEOF
19256 rm -f conftest.$ac_objext
19257 if { (ac_try="$ac_compile"
19258 case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19261 esac
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263 (eval "$ac_compile") 2>conftest.er1
19264 ac_status=$?
19265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } && {
19270 test -z "$ac_c_werror_flag" ||
19271 test ! -s conftest.err
19272 } && test -s conftest.$ac_objext; then
19273 ac_cv_c_const=yes
19274 else
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 ac_cv_c_const=no
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19284 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19285 if test $ac_cv_c_const = no; then
19287 cat >>confdefs.h <<\_ACEOF
19288 #define const
19289 _ACEOF
19298 ac_header_dirent=no
19299 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19300 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19301 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19302 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306 cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h. */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 #include <sys/types.h>
19313 #include <$ac_hdr>
19316 main ()
19318 if ((DIR *) 0)
19319 return 0;
19321 return 0;
19323 _ACEOF
19324 rm -f conftest.$ac_objext
19325 if { (ac_try="$ac_compile"
19326 case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_compile") 2>conftest.er1
19332 ac_status=$?
19333 grep -v '^ *+' conftest.er1 >conftest.err
19334 rm -f conftest.er1
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } && {
19338 test -z "$ac_c_werror_flag" ||
19339 test ! -s conftest.err
19340 } && test -s conftest.$ac_objext; then
19341 eval "$as_ac_Header=yes"
19342 else
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 eval "$as_ac_Header=no"
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351 ac_res=`eval echo '${'$as_ac_Header'}'`
19352 { echo "$as_me:$LINENO: result: $ac_res" >&5
19353 echo "${ECHO_T}$ac_res" >&6; }
19354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19355 cat >>confdefs.h <<_ACEOF
19356 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19357 _ACEOF
19359 ac_header_dirent=$ac_hdr; break
19362 done
19363 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19364 if test $ac_header_dirent = dirent.h; then
19365 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19366 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19367 if test "${ac_cv_search_opendir+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 else
19370 ac_func_search_save_LIBS=$LIBS
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h. */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19378 /* Override any GCC internal prototype to avoid an error.
19379 Use char because int might match the return type of a GCC
19380 builtin and then its argument prototype would still apply. */
19381 #ifdef __cplusplus
19382 extern "C"
19383 #endif
19384 char opendir ();
19386 main ()
19388 return opendir ();
19390 return 0;
19392 _ACEOF
19393 for ac_lib in '' dir; do
19394 if test -z "$ac_lib"; then
19395 ac_res="none required"
19396 else
19397 ac_res=-l$ac_lib
19398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (ac_try="$ac_link"
19402 case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_link") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest$ac_exeext &&
19417 $as_test_x conftest$ac_exeext; then
19418 ac_cv_search_opendir=$ac_res
19419 else
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 conftest$ac_exeext
19428 if test "${ac_cv_search_opendir+set}" = set; then
19429 break
19431 done
19432 if test "${ac_cv_search_opendir+set}" = set; then
19434 else
19435 ac_cv_search_opendir=no
19437 rm conftest.$ac_ext
19438 LIBS=$ac_func_search_save_LIBS
19440 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19441 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19442 ac_res=$ac_cv_search_opendir
19443 if test "$ac_res" != no; then
19444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19448 else
19449 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19450 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19451 if test "${ac_cv_search_opendir+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19453 else
19454 ac_func_search_save_LIBS=$LIBS
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19462 /* Override any GCC internal prototype to avoid an error.
19463 Use char because int might match the return type of a GCC
19464 builtin and then its argument prototype would still apply. */
19465 #ifdef __cplusplus
19466 extern "C"
19467 #endif
19468 char opendir ();
19470 main ()
19472 return opendir ();
19474 return 0;
19476 _ACEOF
19477 for ac_lib in '' x; do
19478 if test -z "$ac_lib"; then
19479 ac_res="none required"
19480 else
19481 ac_res=-l$ac_lib
19482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19484 rm -f conftest.$ac_objext conftest$ac_exeext
19485 if { (ac_try="$ac_link"
19486 case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_link") 2>conftest.er1
19492 ac_status=$?
19493 grep -v '^ *+' conftest.er1 >conftest.err
19494 rm -f conftest.er1
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } && {
19498 test -z "$ac_c_werror_flag" ||
19499 test ! -s conftest.err
19500 } && test -s conftest$ac_exeext &&
19501 $as_test_x conftest$ac_exeext; then
19502 ac_cv_search_opendir=$ac_res
19503 else
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19511 conftest$ac_exeext
19512 if test "${ac_cv_search_opendir+set}" = set; then
19513 break
19515 done
19516 if test "${ac_cv_search_opendir+set}" = set; then
19518 else
19519 ac_cv_search_opendir=no
19521 rm conftest.$ac_ext
19522 LIBS=$ac_func_search_save_LIBS
19524 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19525 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19526 ac_res=$ac_cv_search_opendir
19527 if test "$ac_res" != no; then
19528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19534 # Check whether --enable-ltdl-install was given.
19535 if test "${enable_ltdl_install+set}" = set; then
19536 enableval=$enable_ltdl_install;
19540 if test x"${enable_ltdl_install-no}" != xno; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define INSTALL_LTDL 1
19543 _ACEOF
19546 if test x"${enable_ltdl_convenience-no}" != xno; then
19547 cat >>confdefs.h <<\_ACEOF
19548 #define CONVENIENCE_LTDL 1
19549 _ACEOF
19554 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19555 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
19556 if test "${libltdl_cv_shlibext+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19560 module=yes
19561 eval libltdl_cv_shlibext=$shrext
19564 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19565 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
19566 if test -n "$libltdl_cv_shlibext"; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19570 _ACEOF
19575 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19576 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
19577 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580 libltdl_cv_shlibpath_var="$shlibpath_var"
19582 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19583 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
19584 if test -n "$libltdl_cv_shlibpath_var"; then
19586 cat >>confdefs.h <<_ACEOF
19587 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19588 _ACEOF
19593 { echo "$as_me:$LINENO: checking for the default library search path" >&5
19594 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
19595 if test "${libltdl_cv_sys_search_path+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19600 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19601 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
19602 if test -n "$libltdl_cv_sys_search_path"; then
19603 sys_search_path=
19604 for dir in $libltdl_cv_sys_search_path; do
19605 if test -z "$sys_search_path"; then
19606 sys_search_path="$dir"
19607 else
19608 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19610 done
19612 cat >>confdefs.h <<_ACEOF
19613 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19614 _ACEOF
19618 { echo "$as_me:$LINENO: checking for objdir" >&5
19619 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
19620 if test "${libltdl_cv_objdir+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623 libltdl_cv_objdir="$objdir"
19624 if test -n "$objdir"; then
19626 else
19627 rm -f .libs 2>/dev/null
19628 mkdir .libs 2>/dev/null
19629 if test -d .libs; then
19630 libltdl_cv_objdir=.libs
19631 else
19632 # MS-DOS does not allow filenames that begin with a dot.
19633 libltdl_cv_objdir=_libs
19635 rmdir .libs 2>/dev/null
19639 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19640 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
19642 cat >>confdefs.h <<_ACEOF
19643 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19644 _ACEOF
19648 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19649 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
19650 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 else
19653 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19654 libltdl_cv_preloaded_symbols=yes
19655 else
19656 libltdl_cv_preloaded_symbols=no
19660 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19661 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
19662 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_PRELOADED_SYMBOLS 1
19666 _ACEOF
19670 LIBADD_DL=
19672 ac_ext=c
19673 ac_cpp='$CPP $CPPFLAGS'
19674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19679 { echo "$as_me:$LINENO: checking for shl_load" >&5
19680 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
19681 if test "${ac_cv_func_shl_load+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 else
19684 cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h. */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19692 #define shl_load innocuous_shl_load
19694 /* System header to define __stub macros and hopefully few prototypes,
19695 which can conflict with char shl_load (); below.
19696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19697 <limits.h> exists even on freestanding compilers. */
19699 #ifdef __STDC__
19700 # include <limits.h>
19701 #else
19702 # include <assert.h>
19703 #endif
19705 #undef shl_load
19707 /* Override any GCC internal prototype to avoid an error.
19708 Use char because int might match the return type of a GCC
19709 builtin and then its argument prototype would still apply. */
19710 #ifdef __cplusplus
19711 extern "C"
19712 #endif
19713 char shl_load ();
19714 /* The GNU C library defines this for functions which it implements
19715 to always fail with ENOSYS. Some functions are actually named
19716 something starting with __ and the normal name is an alias. */
19717 #if defined __stub_shl_load || defined __stub___shl_load
19718 choke me
19719 #endif
19722 main ()
19724 return shl_load ();
19726 return 0;
19728 _ACEOF
19729 rm -f conftest.$ac_objext conftest$ac_exeext
19730 if { (ac_try="$ac_link"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_link") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && {
19743 test -z "$ac_c_werror_flag" ||
19744 test ! -s conftest.err
19745 } && test -s conftest$ac_exeext &&
19746 $as_test_x conftest$ac_exeext; then
19747 ac_cv_func_shl_load=yes
19748 else
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19752 ac_cv_func_shl_load=no
19755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19756 conftest$ac_exeext conftest.$ac_ext
19758 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19759 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
19760 if test $ac_cv_func_shl_load = yes; then
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_SHL_LOAD 1
19764 _ACEOF
19766 else
19767 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19768 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
19769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772 ac_check_lib_save_LIBS=$LIBS
19773 LIBS="-ldld $LIBS"
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19781 /* Override any GCC internal prototype to avoid an error.
19782 Use char because int might match the return type of a GCC
19783 builtin and then its argument prototype would still apply. */
19784 #ifdef __cplusplus
19785 extern "C"
19786 #endif
19787 char shl_load ();
19789 main ()
19791 return shl_load ();
19793 return 0;
19795 _ACEOF
19796 rm -f conftest.$ac_objext conftest$ac_exeext
19797 if { (ac_try="$ac_link"
19798 case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_link") 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && {
19810 test -z "$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 } && test -s conftest$ac_exeext &&
19813 $as_test_x conftest$ac_exeext; then
19814 ac_cv_lib_dld_shl_load=yes
19815 else
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 ac_cv_lib_dld_shl_load=no
19822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19823 conftest$ac_exeext conftest.$ac_ext
19824 LIBS=$ac_check_lib_save_LIBS
19826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19827 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19828 if test $ac_cv_lib_dld_shl_load = yes; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_SHL_LOAD 1
19832 _ACEOF
19834 LIBADD_DL="$LIBADD_DL -ldld"
19835 else
19836 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19837 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19838 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841 ac_check_lib_save_LIBS=$LIBS
19842 LIBS="-ldl $LIBS"
19843 cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h. */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19853 #ifdef __cplusplus
19854 extern "C"
19855 #endif
19856 char dlopen ();
19858 main ()
19860 return dlopen ();
19862 return 0;
19864 _ACEOF
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (ac_try="$ac_link"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest$ac_exeext &&
19882 $as_test_x conftest$ac_exeext; then
19883 ac_cv_lib_dl_dlopen=yes
19884 else
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_cv_lib_dl_dlopen=no
19891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19895 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19896 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19897 if test $ac_cv_lib_dl_dlopen = yes; then
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_LIBDL 1
19901 _ACEOF
19903 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19904 else
19905 cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h. */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 #if HAVE_DLFCN_H
19912 # include <dlfcn.h>
19913 #endif
19916 main ()
19918 dlopen(0, 0);
19920 return 0;
19922 _ACEOF
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19928 esac
19929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>conftest.er1
19931 ac_status=$?
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest$ac_exeext &&
19940 $as_test_x conftest$ac_exeext; then
19942 cat >>confdefs.h <<\_ACEOF
19943 #define HAVE_LIBDL 1
19944 _ACEOF
19945 libltdl_cv_func_dlopen="yes"
19946 else
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19951 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19952 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 else
19955 ac_check_lib_save_LIBS=$LIBS
19956 LIBS="-lsvld $LIBS"
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h. */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19964 /* Override any GCC internal prototype to avoid an error.
19965 Use char because int might match the return type of a GCC
19966 builtin and then its argument prototype would still apply. */
19967 #ifdef __cplusplus
19968 extern "C"
19969 #endif
19970 char dlopen ();
19972 main ()
19974 return dlopen ();
19976 return 0;
19978 _ACEOF
19979 rm -f conftest.$ac_objext conftest$ac_exeext
19980 if { (ac_try="$ac_link"
19981 case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_link") 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } && {
19993 test -z "$ac_c_werror_flag" ||
19994 test ! -s conftest.err
19995 } && test -s conftest$ac_exeext &&
19996 $as_test_x conftest$ac_exeext; then
19997 ac_cv_lib_svld_dlopen=yes
19998 else
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_lib_svld_dlopen=no
20005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20006 conftest$ac_exeext conftest.$ac_ext
20007 LIBS=$ac_check_lib_save_LIBS
20009 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20010 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20011 if test $ac_cv_lib_svld_dlopen = yes; then
20013 cat >>confdefs.h <<\_ACEOF
20014 #define HAVE_LIBDL 1
20015 _ACEOF
20017 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20018 else
20019 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20020 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024 ac_check_lib_save_LIBS=$LIBS
20025 LIBS="-ldld $LIBS"
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20033 /* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20036 #ifdef __cplusplus
20037 extern "C"
20038 #endif
20039 char dld_link ();
20041 main ()
20043 return dld_link ();
20045 return 0;
20047 _ACEOF
20048 rm -f conftest.$ac_objext conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_link") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest$ac_exeext &&
20065 $as_test_x conftest$ac_exeext; then
20066 ac_cv_lib_dld_dld_link=yes
20067 else
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_cv_lib_dld_dld_link=no
20074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20075 conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_check_lib_save_LIBS
20078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20079 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20080 if test $ac_cv_lib_dld_dld_link = yes; then
20082 cat >>confdefs.h <<\_ACEOF
20083 #define HAVE_DLD 1
20084 _ACEOF
20086 LIBADD_DL="$LIBADD_DL -ldld"
20087 else
20088 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20089 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20090 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20101 #define _dyld_func_lookup innocuous__dyld_func_lookup
20103 /* System header to define __stub macros and hopefully few prototypes,
20104 which can conflict with char _dyld_func_lookup (); below.
20105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20106 <limits.h> exists even on freestanding compilers. */
20108 #ifdef __STDC__
20109 # include <limits.h>
20110 #else
20111 # include <assert.h>
20112 #endif
20114 #undef _dyld_func_lookup
20116 /* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 char _dyld_func_lookup ();
20123 /* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
20126 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20127 choke me
20128 #endif
20131 main ()
20133 return _dyld_func_lookup ();
20135 return 0;
20137 _ACEOF
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>conftest.er1
20146 ac_status=$?
20147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } && {
20152 test -z "$ac_c_werror_flag" ||
20153 test ! -s conftest.err
20154 } && test -s conftest$ac_exeext &&
20155 $as_test_x conftest$ac_exeext; then
20156 ac_cv_func__dyld_func_lookup=yes
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_cv_func__dyld_func_lookup=no
20164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20165 conftest$ac_exeext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20168 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20169 if test $ac_cv_func__dyld_func_lookup = yes; then
20171 cat >>confdefs.h <<\_ACEOF
20172 #define HAVE_DYLD 1
20173 _ACEOF
20186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20187 conftest$ac_exeext conftest.$ac_ext
20198 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20199 then
20200 lt_save_LIBS="$LIBS"
20201 LIBS="$LIBS $LIBADD_DL"
20203 for ac_func in dlerror
20205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20206 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h. */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20219 #define $ac_func innocuous_$ac_func
20221 /* System header to define __stub macros and hopefully few prototypes,
20222 which can conflict with char $ac_func (); below.
20223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20224 <limits.h> exists even on freestanding compilers. */
20226 #ifdef __STDC__
20227 # include <limits.h>
20228 #else
20229 # include <assert.h>
20230 #endif
20232 #undef $ac_func
20234 /* Override any GCC internal prototype to avoid an error.
20235 Use char because int might match the return type of a GCC
20236 builtin and then its argument prototype would still apply. */
20237 #ifdef __cplusplus
20238 extern "C"
20239 #endif
20240 char $ac_func ();
20241 /* The GNU C library defines this for functions which it implements
20242 to always fail with ENOSYS. Some functions are actually named
20243 something starting with __ and the normal name is an alias. */
20244 #if defined __stub_$ac_func || defined __stub___$ac_func
20245 choke me
20246 #endif
20249 main ()
20251 return $ac_func ();
20253 return 0;
20255 _ACEOF
20256 rm -f conftest.$ac_objext conftest$ac_exeext
20257 if { (ac_try="$ac_link"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_link") 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest$ac_exeext &&
20273 $as_test_x conftest$ac_exeext; then
20274 eval "$as_ac_var=yes"
20275 else
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 eval "$as_ac_var=no"
20282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20283 conftest$ac_exeext conftest.$ac_ext
20285 ac_res=`eval echo '${'$as_ac_var'}'`
20286 { echo "$as_me:$LINENO: result: $ac_res" >&5
20287 echo "${ECHO_T}$ac_res" >&6; }
20288 if test `eval echo '${'$as_ac_var'}'` = yes; then
20289 cat >>confdefs.h <<_ACEOF
20290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20291 _ACEOF
20294 done
20296 LIBS="$lt_save_LIBS"
20298 ac_ext=c
20299 ac_cpp='$CPP $CPPFLAGS'
20300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20306 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20307 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20308 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20309 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 else
20311 ac_cv_sys_symbol_underscore=no
20312 cat > conftest.$ac_ext <<EOF
20313 void nm_test_func(){}
20314 int main(){nm_test_func;return 0;}
20316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20317 (eval $ac_compile) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; then
20321 # Now try to grab the symbols.
20322 ac_nlist=conftest.nm
20323 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20324 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && test -s "$ac_nlist"; then
20328 # See whether the symbols have a leading underscore.
20329 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20330 ac_cv_sys_symbol_underscore=yes
20331 else
20332 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20334 else
20335 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20338 else
20339 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20341 else
20342 echo "configure: failed program was:" >&5
20343 cat conftest.c >&5
20345 rm -rf conftest*
20348 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20349 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20352 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20353 if test x"$libltdl_cv_func_dlopen" = xyes ||
20354 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20355 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20356 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20357 if test "${libltdl_cv_need_uscore+set}" = set; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360 libltdl_cv_need_uscore=unknown
20361 save_LIBS="$LIBS"
20362 LIBS="$LIBS $LIBADD_DL"
20363 if test "$cross_compiling" = yes; then :
20364 libltdl_cv_need_uscore=cross
20365 else
20366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20367 lt_status=$lt_dlunknown
20368 cat > conftest.$ac_ext <<EOF
20369 #line 20369 "configure"
20370 #include "confdefs.h"
20372 #if HAVE_DLFCN_H
20373 #include <dlfcn.h>
20374 #endif
20376 #include <stdio.h>
20378 #ifdef RTLD_GLOBAL
20379 # define LT_DLGLOBAL RTLD_GLOBAL
20380 #else
20381 # ifdef DL_GLOBAL
20382 # define LT_DLGLOBAL DL_GLOBAL
20383 # else
20384 # define LT_DLGLOBAL 0
20385 # endif
20386 #endif
20388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20389 find out it does not work in some platform. */
20390 #ifndef LT_DLLAZY_OR_NOW
20391 # ifdef RTLD_LAZY
20392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20393 # else
20394 # ifdef DL_LAZY
20395 # define LT_DLLAZY_OR_NOW DL_LAZY
20396 # else
20397 # ifdef RTLD_NOW
20398 # define LT_DLLAZY_OR_NOW RTLD_NOW
20399 # else
20400 # ifdef DL_NOW
20401 # define LT_DLLAZY_OR_NOW DL_NOW
20402 # else
20403 # define LT_DLLAZY_OR_NOW 0
20404 # endif
20405 # endif
20406 # endif
20407 # endif
20408 #endif
20410 #ifdef __cplusplus
20411 extern "C" void exit (int);
20412 #endif
20414 void fnord() { int i=42;}
20415 int main ()
20417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20418 int status = $lt_dlunknown;
20420 if (self)
20422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20424 /* dlclose (self); */
20427 exit (status);
20430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20431 (eval $ac_link) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20435 (./conftest; exit; ) 2>/dev/null
20436 lt_status=$?
20437 case x$lt_status in
20438 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20439 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20440 x$lt_unknown|x*) ;;
20441 esac
20442 else :
20443 # compilation failed
20447 rm -fr conftest*
20449 LIBS="$save_LIBS"
20452 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20453 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20457 if test x"$libltdl_cv_need_uscore" = xyes; then
20459 cat >>confdefs.h <<\_ACEOF
20460 #define NEED_USCORE 1
20461 _ACEOF
20466 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20467 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
20468 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471 # PORTME does your system automatically load deplibs for dlopen?
20472 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20473 # For now, we just catch OSes we know something about -- in the
20474 # future, we'll try test this programmatically.
20475 libltdl_cv_sys_dlopen_deplibs=unknown
20476 case "$host_os" in
20477 aix3*|aix4.1.*|aix4.2.*)
20478 # Unknown whether this is true for these versions of AIX, but
20479 # we want this `case' here to explicitly catch those versions.
20480 libltdl_cv_sys_dlopen_deplibs=unknown
20482 aix[45]*)
20483 libltdl_cv_sys_dlopen_deplibs=yes
20485 darwin*)
20486 # Assuming the user has installed a libdl from somewhere, this is true
20487 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20488 libltdl_cv_sys_dlopen_deplibs=yes
20490 kfreebsd*-gnu)
20491 libltdl_cv_sys_dlopen_deplibs=yes
20493 gnu*)
20494 libltdl_cv_sys_dlopen_deplibs=yes
20496 hpux10*|hpux11*)
20497 libltdl_cv_sys_dlopen_deplibs=yes
20499 irix[12345]*|irix6.[01]*)
20500 # Catch all versions of IRIX before 6.2, and indicate that we don't
20501 # know how it worked for any of those versions.
20502 libltdl_cv_sys_dlopen_deplibs=unknown
20504 irix*)
20505 # The case above catches anything before 6.2, and it's known that
20506 # at 6.2 and later dlopen does load deplibs.
20507 libltdl_cv_sys_dlopen_deplibs=yes
20509 linux*)
20510 libltdl_cv_sys_dlopen_deplibs=yes
20512 netbsd*)
20513 libltdl_cv_sys_dlopen_deplibs=yes
20515 openbsd*)
20516 libltdl_cv_sys_dlopen_deplibs=yes
20518 osf[1234]*)
20519 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20520 # it did *not* use an RPATH in a shared library to find objects the
20521 # library depends on, so we explictly say `no'.
20522 libltdl_cv_sys_dlopen_deplibs=no
20524 osf5.0|osf5.0a|osf5.1)
20525 # dlopen *does* load deplibs and with the right loader patch applied
20526 # it even uses RPATH in a shared library to search for shared objects
20527 # that the library depends on, but there's no easy way to know if that
20528 # patch is installed. Since this is the case, all we can really
20529 # say is unknown -- it depends on the patch being installed. If
20530 # it is, this changes to `yes'. Without it, it would be `no'.
20531 libltdl_cv_sys_dlopen_deplibs=unknown
20533 osf*)
20534 # the two cases above should catch all versions of osf <= 5.1. Read
20535 # the comments above for what we know about them.
20536 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20537 # is used to find them so we can finally say `yes'.
20538 libltdl_cv_sys_dlopen_deplibs=yes
20540 solaris*)
20541 libltdl_cv_sys_dlopen_deplibs=yes
20543 esac
20546 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20547 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
20548 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20550 cat >>confdefs.h <<\_ACEOF
20551 #define LTDL_DLOPEN_DEPLIBS 1
20552 _ACEOF
20557 for ac_header in argz.h
20559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 ac_res=`eval echo '${'$as_ac_Header'}'`
20567 { echo "$as_me:$LINENO: result: $ac_res" >&5
20568 echo "${ECHO_T}$ac_res" >&6; }
20569 else
20570 # Is the header compilable?
20571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 $ac_includes_default
20580 #include <$ac_header>
20581 _ACEOF
20582 rm -f conftest.$ac_objext
20583 if { (ac_try="$ac_compile"
20584 case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587 esac
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_compile") 2>conftest.er1
20590 ac_status=$?
20591 grep -v '^ *+' conftest.er1 >conftest.err
20592 rm -f conftest.er1
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && {
20596 test -z "$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 } && test -s conftest.$ac_objext; then
20599 ac_header_compiler=yes
20600 else
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_header_compiler=no
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20609 echo "${ECHO_T}$ac_header_compiler" >&6; }
20611 # Is the header present?
20612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h. */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 #include <$ac_header>
20621 _ACEOF
20622 if { (ac_try="$ac_cpp conftest.$ac_ext"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20629 ac_status=$?
20630 grep -v '^ *+' conftest.er1 >conftest.err
20631 rm -f conftest.er1
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } >/dev/null && {
20635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20636 test ! -s conftest.err
20637 }; then
20638 ac_header_preproc=yes
20639 else
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ac_header_preproc=no
20646 rm -f conftest.err conftest.$ac_ext
20647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20648 echo "${ECHO_T}$ac_header_preproc" >&6; }
20650 # So? What about this header?
20651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20652 yes:no: )
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20657 ac_header_preproc=yes
20659 no:yes:* )
20660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20674 esac
20675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680 eval "$as_ac_Header=\$ac_header_preproc"
20682 ac_res=`eval echo '${'$as_ac_Header'}'`
20683 { echo "$as_me:$LINENO: result: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20688 cat >>confdefs.h <<_ACEOF
20689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20690 _ACEOF
20694 done
20697 { echo "$as_me:$LINENO: checking for error_t" >&5
20698 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
20699 if test "${ac_cv_type_error_t+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702 cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h. */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 #if HAVE_ARGZ_H
20709 # include <argz.h>
20710 #endif
20712 typedef error_t ac__type_new_;
20714 main ()
20716 if ((ac__type_new_ *) 0)
20717 return 0;
20718 if (sizeof (ac__type_new_))
20719 return 0;
20721 return 0;
20723 _ACEOF
20724 rm -f conftest.$ac_objext
20725 if { (ac_try="$ac_compile"
20726 case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20729 esac
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_compile") 2>conftest.er1
20732 ac_status=$?
20733 grep -v '^ *+' conftest.er1 >conftest.err
20734 rm -f conftest.er1
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } && {
20738 test -z "$ac_c_werror_flag" ||
20739 test ! -s conftest.err
20740 } && test -s conftest.$ac_objext; then
20741 ac_cv_type_error_t=yes
20742 else
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20746 ac_cv_type_error_t=no
20749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20751 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20752 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
20753 if test $ac_cv_type_error_t = yes; then
20755 cat >>confdefs.h <<_ACEOF
20756 #define HAVE_ERROR_T 1
20757 _ACEOF
20760 else
20762 cat >>confdefs.h <<\_ACEOF
20763 #define error_t int
20764 _ACEOF
20774 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h. */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20790 #define $ac_func innocuous_$ac_func
20792 /* System header to define __stub macros and hopefully few prototypes,
20793 which can conflict with char $ac_func (); below.
20794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20795 <limits.h> exists even on freestanding compilers. */
20797 #ifdef __STDC__
20798 # include <limits.h>
20799 #else
20800 # include <assert.h>
20801 #endif
20803 #undef $ac_func
20805 /* Override any GCC internal prototype to avoid an error.
20806 Use char because int might match the return type of a GCC
20807 builtin and then its argument prototype would still apply. */
20808 #ifdef __cplusplus
20809 extern "C"
20810 #endif
20811 char $ac_func ();
20812 /* The GNU C library defines this for functions which it implements
20813 to always fail with ENOSYS. Some functions are actually named
20814 something starting with __ and the normal name is an alias. */
20815 #if defined __stub_$ac_func || defined __stub___$ac_func
20816 choke me
20817 #endif
20820 main ()
20822 return $ac_func ();
20824 return 0;
20826 _ACEOF
20827 rm -f conftest.$ac_objext conftest$ac_exeext
20828 if { (ac_try="$ac_link"
20829 case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_link") 2>conftest.er1
20835 ac_status=$?
20836 grep -v '^ *+' conftest.er1 >conftest.err
20837 rm -f conftest.er1
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } && {
20841 test -z "$ac_c_werror_flag" ||
20842 test ! -s conftest.err
20843 } && test -s conftest$ac_exeext &&
20844 $as_test_x conftest$ac_exeext; then
20845 eval "$as_ac_var=yes"
20846 else
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 eval "$as_ac_var=no"
20853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20854 conftest$ac_exeext conftest.$ac_ext
20856 ac_res=`eval echo '${'$as_ac_var'}'`
20857 { echo "$as_me:$LINENO: result: $ac_res" >&5
20858 echo "${ECHO_T}$ac_res" >&6; }
20859 if test `eval echo '${'$as_ac_var'}'` = yes; then
20860 cat >>confdefs.h <<_ACEOF
20861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20862 _ACEOF
20865 done
20894 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20895 stdio.h unistd.h
20897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 ac_res=`eval echo '${'$as_ac_Header'}'`
20905 { echo "$as_me:$LINENO: result: $ac_res" >&5
20906 echo "${ECHO_T}$ac_res" >&6; }
20907 else
20908 # Is the header compilable?
20909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 $ac_includes_default
20918 #include <$ac_header>
20919 _ACEOF
20920 rm -f conftest.$ac_objext
20921 if { (ac_try="$ac_compile"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20925 esac
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_compile") 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } && {
20934 test -z "$ac_c_werror_flag" ||
20935 test ! -s conftest.err
20936 } && test -s conftest.$ac_objext; then
20937 ac_header_compiler=yes
20938 else
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ac_header_compiler=no
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20947 echo "${ECHO_T}$ac_header_compiler" >&6; }
20949 # Is the header present?
20950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h. */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20958 #include <$ac_header>
20959 _ACEOF
20960 if { (ac_try="$ac_cpp conftest.$ac_ext"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } >/dev/null && {
20973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20974 test ! -s conftest.err
20975 }; then
20976 ac_header_preproc=yes
20977 else
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20981 ac_header_preproc=no
20984 rm -f conftest.err conftest.$ac_ext
20985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20986 echo "${ECHO_T}$ac_header_preproc" >&6; }
20988 # So? What about this header?
20989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20990 yes:no: )
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20995 ac_header_preproc=yes
20997 no:yes:* )
20998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21012 esac
21013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018 eval "$as_ac_Header=\$ac_header_preproc"
21020 ac_res=`eval echo '${'$as_ac_Header'}'`
21021 { echo "$as_me:$LINENO: result: $ac_res" >&5
21022 echo "${ECHO_T}$ac_res" >&6; }
21025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21026 cat >>confdefs.h <<_ACEOF
21027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21028 _ACEOF
21032 done
21038 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 ac_res=`eval echo '${'$as_ac_Header'}'`
21048 { echo "$as_me:$LINENO: result: $ac_res" >&5
21049 echo "${ECHO_T}$ac_res" >&6; }
21050 else
21051 # Is the header compilable?
21052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 $ac_includes_default
21061 #include <$ac_header>
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_compile") 2>conftest.er1
21071 ac_status=$?
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } && {
21077 test -z "$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21079 } && test -s conftest.$ac_objext; then
21080 ac_header_compiler=yes
21081 else
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 ac_header_compiler=no
21088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21090 echo "${ECHO_T}$ac_header_compiler" >&6; }
21092 # Is the header present?
21093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21095 cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h. */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 #include <$ac_header>
21102 _ACEOF
21103 if { (ac_try="$ac_cpp conftest.$ac_ext"
21104 case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21110 ac_status=$?
21111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } >/dev/null && {
21116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21117 test ! -s conftest.err
21118 }; then
21119 ac_header_preproc=yes
21120 else
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ac_header_preproc=no
21127 rm -f conftest.err conftest.$ac_ext
21128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21129 echo "${ECHO_T}$ac_header_preproc" >&6; }
21131 # So? What about this header?
21132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21133 yes:no: )
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21138 ac_header_preproc=yes
21140 no:yes:* )
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21155 esac
21156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161 eval "$as_ac_Header=\$ac_header_preproc"
21163 ac_res=`eval echo '${'$as_ac_Header'}'`
21164 { echo "$as_me:$LINENO: result: $ac_res" >&5
21165 echo "${ECHO_T}$ac_res" >&6; }
21168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21169 cat >>confdefs.h <<_ACEOF
21170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21171 _ACEOF
21175 done
21179 for ac_header in string.h strings.h
21181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 ac_res=`eval echo '${'$as_ac_Header'}'`
21189 { echo "$as_me:$LINENO: result: $ac_res" >&5
21190 echo "${ECHO_T}$ac_res" >&6; }
21191 else
21192 # Is the header compilable?
21193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21195 cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h. */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 $ac_includes_default
21202 #include <$ac_header>
21203 _ACEOF
21204 rm -f conftest.$ac_objext
21205 if { (ac_try="$ac_compile"
21206 case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209 esac
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_compile") 2>conftest.er1
21212 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err
21214 rm -f conftest.er1
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } && {
21218 test -z "$ac_c_werror_flag" ||
21219 test ! -s conftest.err
21220 } && test -s conftest.$ac_objext; then
21221 ac_header_compiler=yes
21222 else
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 ac_header_compiler=no
21229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21231 echo "${ECHO_T}$ac_header_compiler" >&6; }
21233 # Is the header present?
21234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21236 cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h. */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21242 #include <$ac_header>
21243 _ACEOF
21244 if { (ac_try="$ac_cpp conftest.$ac_ext"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21248 esac
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21251 ac_status=$?
21252 grep -v '^ *+' conftest.er1 >conftest.err
21253 rm -f conftest.er1
21254 cat conftest.err >&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); } >/dev/null && {
21257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21258 test ! -s conftest.err
21259 }; then
21260 ac_header_preproc=yes
21261 else
21262 echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265 ac_header_preproc=no
21268 rm -f conftest.err conftest.$ac_ext
21269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21270 echo "${ECHO_T}$ac_header_preproc" >&6; }
21272 # So? What about this header?
21273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21274 yes:no: )
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21279 ac_header_preproc=yes
21281 no:yes:* )
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21296 esac
21297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302 eval "$as_ac_Header=\$ac_header_preproc"
21304 ac_res=`eval echo '${'$as_ac_Header'}'`
21305 { echo "$as_me:$LINENO: result: $ac_res" >&5
21306 echo "${ECHO_T}$ac_res" >&6; }
21309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21310 cat >>confdefs.h <<_ACEOF
21311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21312 _ACEOF
21313 break
21316 done
21321 for ac_func in strchr index
21323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21329 cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h. */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21337 #define $ac_func innocuous_$ac_func
21339 /* System header to define __stub macros and hopefully few prototypes,
21340 which can conflict with char $ac_func (); below.
21341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21342 <limits.h> exists even on freestanding compilers. */
21344 #ifdef __STDC__
21345 # include <limits.h>
21346 #else
21347 # include <assert.h>
21348 #endif
21350 #undef $ac_func
21352 /* Override any GCC internal prototype to avoid an error.
21353 Use char because int might match the return type of a GCC
21354 builtin and then its argument prototype would still apply. */
21355 #ifdef __cplusplus
21356 extern "C"
21357 #endif
21358 char $ac_func ();
21359 /* The GNU C library defines this for functions which it implements
21360 to always fail with ENOSYS. Some functions are actually named
21361 something starting with __ and the normal name is an alias. */
21362 #if defined __stub_$ac_func || defined __stub___$ac_func
21363 choke me
21364 #endif
21367 main ()
21369 return $ac_func ();
21371 return 0;
21373 _ACEOF
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (ac_try="$ac_link"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_link") 2>conftest.er1
21382 ac_status=$?
21383 grep -v '^ *+' conftest.er1 >conftest.err
21384 rm -f conftest.er1
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest$ac_exeext &&
21391 $as_test_x conftest$ac_exeext; then
21392 eval "$as_ac_var=yes"
21393 else
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21397 eval "$as_ac_var=no"
21400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21401 conftest$ac_exeext conftest.$ac_ext
21403 ac_res=`eval echo '${'$as_ac_var'}'`
21404 { echo "$as_me:$LINENO: result: $ac_res" >&5
21405 echo "${ECHO_T}$ac_res" >&6; }
21406 if test `eval echo '${'$as_ac_var'}'` = yes; then
21407 cat >>confdefs.h <<_ACEOF
21408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21409 _ACEOF
21410 break
21412 done
21416 for ac_func in strrchr rindex
21418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h. */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21432 #define $ac_func innocuous_$ac_func
21434 /* System header to define __stub macros and hopefully few prototypes,
21435 which can conflict with char $ac_func (); below.
21436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21437 <limits.h> exists even on freestanding compilers. */
21439 #ifdef __STDC__
21440 # include <limits.h>
21441 #else
21442 # include <assert.h>
21443 #endif
21445 #undef $ac_func
21447 /* Override any GCC internal prototype to avoid an error.
21448 Use char because int might match the return type of a GCC
21449 builtin and then its argument prototype would still apply. */
21450 #ifdef __cplusplus
21451 extern "C"
21452 #endif
21453 char $ac_func ();
21454 /* The GNU C library defines this for functions which it implements
21455 to always fail with ENOSYS. Some functions are actually named
21456 something starting with __ and the normal name is an alias. */
21457 #if defined __stub_$ac_func || defined __stub___$ac_func
21458 choke me
21459 #endif
21462 main ()
21464 return $ac_func ();
21466 return 0;
21468 _ACEOF
21469 rm -f conftest.$ac_objext conftest$ac_exeext
21470 if { (ac_try="$ac_link"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_link") 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } && {
21483 test -z "$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21485 } && test -s conftest$ac_exeext &&
21486 $as_test_x conftest$ac_exeext; then
21487 eval "$as_ac_var=yes"
21488 else
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 eval "$as_ac_var=no"
21495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21496 conftest$ac_exeext conftest.$ac_ext
21498 ac_res=`eval echo '${'$as_ac_var'}'`
21499 { echo "$as_me:$LINENO: result: $ac_res" >&5
21500 echo "${ECHO_T}$ac_res" >&6; }
21501 if test `eval echo '${'$as_ac_var'}'` = yes; then
21502 cat >>confdefs.h <<_ACEOF
21503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21504 _ACEOF
21505 break
21507 done
21511 for ac_func in memcpy bcopy
21513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21519 cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h. */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21527 #define $ac_func innocuous_$ac_func
21529 /* System header to define __stub macros and hopefully few prototypes,
21530 which can conflict with char $ac_func (); below.
21531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21532 <limits.h> exists even on freestanding compilers. */
21534 #ifdef __STDC__
21535 # include <limits.h>
21536 #else
21537 # include <assert.h>
21538 #endif
21540 #undef $ac_func
21542 /* Override any GCC internal prototype to avoid an error.
21543 Use char because int might match the return type of a GCC
21544 builtin and then its argument prototype would still apply. */
21545 #ifdef __cplusplus
21546 extern "C"
21547 #endif
21548 char $ac_func ();
21549 /* The GNU C library defines this for functions which it implements
21550 to always fail with ENOSYS. Some functions are actually named
21551 something starting with __ and the normal name is an alias. */
21552 #if defined __stub_$ac_func || defined __stub___$ac_func
21553 choke me
21554 #endif
21557 main ()
21559 return $ac_func ();
21561 return 0;
21563 _ACEOF
21564 rm -f conftest.$ac_objext conftest$ac_exeext
21565 if { (ac_try="$ac_link"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_link") 2>conftest.er1
21572 ac_status=$?
21573 grep -v '^ *+' conftest.er1 >conftest.err
21574 rm -f conftest.er1
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest$ac_exeext &&
21581 $as_test_x conftest$ac_exeext; then
21582 eval "$as_ac_var=yes"
21583 else
21584 echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21587 eval "$as_ac_var=no"
21590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21591 conftest$ac_exeext conftest.$ac_ext
21593 ac_res=`eval echo '${'$as_ac_var'}'`
21594 { echo "$as_me:$LINENO: result: $ac_res" >&5
21595 echo "${ECHO_T}$ac_res" >&6; }
21596 if test `eval echo '${'$as_ac_var'}'` = yes; then
21597 cat >>confdefs.h <<_ACEOF
21598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21599 _ACEOF
21600 break
21602 done
21606 for ac_func in memmove strcmp
21608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613 else
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h. */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21622 #define $ac_func innocuous_$ac_func
21624 /* System header to define __stub macros and hopefully few prototypes,
21625 which can conflict with char $ac_func (); below.
21626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21627 <limits.h> exists even on freestanding compilers. */
21629 #ifdef __STDC__
21630 # include <limits.h>
21631 #else
21632 # include <assert.h>
21633 #endif
21635 #undef $ac_func
21637 /* Override any GCC internal prototype to avoid an error.
21638 Use char because int might match the return type of a GCC
21639 builtin and then its argument prototype would still apply. */
21640 #ifdef __cplusplus
21641 extern "C"
21642 #endif
21643 char $ac_func ();
21644 /* The GNU C library defines this for functions which it implements
21645 to always fail with ENOSYS. Some functions are actually named
21646 something starting with __ and the normal name is an alias. */
21647 #if defined __stub_$ac_func || defined __stub___$ac_func
21648 choke me
21649 #endif
21652 main ()
21654 return $ac_func ();
21656 return 0;
21658 _ACEOF
21659 rm -f conftest.$ac_objext conftest$ac_exeext
21660 if { (ac_try="$ac_link"
21661 case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666 (eval "$ac_link") 2>conftest.er1
21667 ac_status=$?
21668 grep -v '^ *+' conftest.er1 >conftest.err
21669 rm -f conftest.er1
21670 cat conftest.err >&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && {
21673 test -z "$ac_c_werror_flag" ||
21674 test ! -s conftest.err
21675 } && test -s conftest$ac_exeext &&
21676 $as_test_x conftest$ac_exeext; then
21677 eval "$as_ac_var=yes"
21678 else
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 eval "$as_ac_var=no"
21685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21686 conftest$ac_exeext conftest.$ac_ext
21688 ac_res=`eval echo '${'$as_ac_var'}'`
21689 { echo "$as_me:$LINENO: result: $ac_res" >&5
21690 echo "${ECHO_T}$ac_res" >&6; }
21691 if test `eval echo '${'$as_ac_var'}'` = yes; then
21692 cat >>confdefs.h <<_ACEOF
21693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21694 _ACEOF
21697 done
21702 for ac_func in closedir opendir readdir
21704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 else
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h. */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21718 #define $ac_func innocuous_$ac_func
21720 /* System header to define __stub macros and hopefully few prototypes,
21721 which can conflict with char $ac_func (); below.
21722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21723 <limits.h> exists even on freestanding compilers. */
21725 #ifdef __STDC__
21726 # include <limits.h>
21727 #else
21728 # include <assert.h>
21729 #endif
21731 #undef $ac_func
21733 /* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21736 #ifdef __cplusplus
21737 extern "C"
21738 #endif
21739 char $ac_func ();
21740 /* The GNU C library defines this for functions which it implements
21741 to always fail with ENOSYS. Some functions are actually named
21742 something starting with __ and the normal name is an alias. */
21743 #if defined __stub_$ac_func || defined __stub___$ac_func
21744 choke me
21745 #endif
21748 main ()
21750 return $ac_func ();
21752 return 0;
21754 _ACEOF
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756 if { (ac_try="$ac_link"
21757 case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760 esac
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_link") 2>conftest.er1
21763 ac_status=$?
21764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } && {
21769 test -z "$ac_c_werror_flag" ||
21770 test ! -s conftest.err
21771 } && test -s conftest$ac_exeext &&
21772 $as_test_x conftest$ac_exeext; then
21773 eval "$as_ac_var=yes"
21774 else
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 eval "$as_ac_var=no"
21781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21782 conftest$ac_exeext conftest.$ac_ext
21784 ac_res=`eval echo '${'$as_ac_var'}'`
21785 { echo "$as_me:$LINENO: result: $ac_res" >&5
21786 echo "${ECHO_T}$ac_res" >&6; }
21787 if test `eval echo '${'$as_ac_var'}'` = yes; then
21788 cat >>confdefs.h <<_ACEOF
21789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21790 _ACEOF
21793 done
21797 { echo "$as_me:$LINENO: checking for X" >&5
21798 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21801 # Check whether --with-x was given.
21802 if test "${with_x+set}" = set; then
21803 withval=$with_x;
21806 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21807 if test "x$with_x" = xno; then
21808 # The user explicitly disabled X.
21809 have_x=disabled
21810 else
21811 case $x_includes,$x_libraries in #(
21812 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21813 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21814 { (exit 1); exit 1; }; };; #(
21815 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818 # One or both of the vars are not set, and there is no cached value.
21819 ac_x_includes=no ac_x_libraries=no
21820 rm -f -r conftest.dir
21821 if mkdir conftest.dir; then
21822 cd conftest.dir
21823 cat >Imakefile <<'_ACEOF'
21824 incroot:
21825 @echo incroot='${INCROOT}'
21826 usrlibdir:
21827 @echo usrlibdir='${USRLIBDIR}'
21828 libdir:
21829 @echo libdir='${LIBDIR}'
21830 _ACEOF
21831 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21833 for ac_var in incroot usrlibdir libdir; do
21834 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21835 done
21836 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21837 for ac_extension in a so sl; do
21838 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21839 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21840 ac_im_usrlibdir=$ac_im_libdir; break
21842 done
21843 # Screen out bogus values from the imake configuration. They are
21844 # bogus both because they are the default anyway, and because
21845 # using them would break gcc on systems where it needs fixed includes.
21846 case $ac_im_incroot in
21847 /usr/include) ac_x_includes= ;;
21848 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21849 esac
21850 case $ac_im_usrlibdir in
21851 /usr/lib | /lib) ;;
21852 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21853 esac
21855 cd ..
21856 rm -f -r conftest.dir
21859 # Standard set of common directories for X headers.
21860 # Check X11 before X11Rn because it is often a symlink to the current release.
21861 ac_x_header_dirs='
21862 /usr/X11/include
21863 /usr/X11R6/include
21864 /usr/X11R5/include
21865 /usr/X11R4/include
21867 /usr/include/X11
21868 /usr/include/X11R6
21869 /usr/include/X11R5
21870 /usr/include/X11R4
21872 /usr/local/X11/include
21873 /usr/local/X11R6/include
21874 /usr/local/X11R5/include
21875 /usr/local/X11R4/include
21877 /usr/local/include/X11
21878 /usr/local/include/X11R6
21879 /usr/local/include/X11R5
21880 /usr/local/include/X11R4
21882 /usr/X386/include
21883 /usr/x386/include
21884 /usr/XFree86/include/X11
21886 /usr/include
21887 /usr/local/include
21888 /usr/unsupported/include
21889 /usr/athena/include
21890 /usr/local/x11r5/include
21891 /usr/lpp/Xamples/include
21893 /usr/openwin/include
21894 /usr/openwin/share/include'
21896 if test "$ac_x_includes" = no; then
21897 # Guess where to find include files, by looking for Xlib.h.
21898 # First, try using that file with no special directory specified.
21899 cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h. */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 #include <X11/Xlib.h>
21906 _ACEOF
21907 if { (ac_try="$ac_cpp conftest.$ac_ext"
21908 case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21914 ac_status=$?
21915 grep -v '^ *+' conftest.er1 >conftest.err
21916 rm -f conftest.er1
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } >/dev/null && {
21920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 }; then
21923 # We can compile using X headers with no special include directory.
21924 ac_x_includes=
21925 else
21926 echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 for ac_dir in $ac_x_header_dirs; do
21930 if test -r "$ac_dir/X11/Xlib.h"; then
21931 ac_x_includes=$ac_dir
21932 break
21934 done
21937 rm -f conftest.err conftest.$ac_ext
21938 fi # $ac_x_includes = no
21940 if test "$ac_x_libraries" = no; then
21941 # Check for the libraries.
21942 # See if we find them without any special options.
21943 # Don't add to $LIBS permanently.
21944 ac_save_LIBS=$LIBS
21945 LIBS="-lX11 $LIBS"
21946 cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h. */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #include <X11/Xlib.h>
21954 main ()
21956 XrmInitialize ()
21958 return 0;
21960 _ACEOF
21961 rm -f conftest.$ac_objext conftest$ac_exeext
21962 if { (ac_try="$ac_link"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_link") 2>conftest.er1
21969 ac_status=$?
21970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } && {
21975 test -z "$ac_c_werror_flag" ||
21976 test ! -s conftest.err
21977 } && test -s conftest$ac_exeext &&
21978 $as_test_x conftest$ac_exeext; then
21979 LIBS=$ac_save_LIBS
21980 # We can link X programs with no special library path.
21981 ac_x_libraries=
21982 else
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 LIBS=$ac_save_LIBS
21987 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21989 # Don't even attempt the hair of trying to link an X program!
21990 for ac_extension in a so sl; do
21991 if test -r "$ac_dir/libX11.$ac_extension"; then
21992 ac_x_libraries=$ac_dir
21993 break 2
21995 done
21996 done
21999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22000 conftest$ac_exeext conftest.$ac_ext
22001 fi # $ac_x_libraries = no
22003 case $ac_x_includes,$ac_x_libraries in #(
22004 no,* | *,no | *\'*)
22005 # Didn't find X, or a directory has "'" in its name.
22006 ac_cv_have_x="have_x=no";; #(
22008 # Record where we found X for the cache.
22009 ac_cv_have_x="have_x=yes\
22010 ac_x_includes='$ac_x_includes'\
22011 ac_x_libraries='$ac_x_libraries'"
22012 esac
22014 ;; #(
22015 *) have_x=yes;;
22016 esac
22017 eval "$ac_cv_have_x"
22018 fi # $with_x != no
22020 if test "$have_x" != yes; then
22021 { echo "$as_me:$LINENO: result: $have_x" >&5
22022 echo "${ECHO_T}$have_x" >&6; }
22023 no_x=yes
22024 else
22025 # If each of the values was on the command line, it overrides each guess.
22026 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22027 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22028 # Update the cache value to reflect the command line values.
22029 ac_cv_have_x="have_x=yes\
22030 ac_x_includes='$x_includes'\
22031 ac_x_libraries='$x_libraries'"
22032 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22033 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22036 if test "$no_x" = yes; then
22037 # Not all programs may use this symbol, but it does not hurt to define it.
22039 cat >>confdefs.h <<\_ACEOF
22040 #define X_DISPLAY_MISSING 1
22041 _ACEOF
22043 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22044 else
22045 if test -n "$x_includes"; then
22046 X_CFLAGS="$X_CFLAGS -I$x_includes"
22049 # It would also be nice to do this for all -L options, not just this one.
22050 if test -n "$x_libraries"; then
22051 X_LIBS="$X_LIBS -L$x_libraries"
22052 # For Solaris; some versions of Sun CC require a space after -R and
22053 # others require no space. Words are not sufficient . . . .
22054 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22055 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22056 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22057 ac_xsave_c_werror_flag=$ac_c_werror_flag
22058 ac_c_werror_flag=yes
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22067 main ()
22071 return 0;
22073 _ACEOF
22074 rm -f conftest.$ac_objext conftest$ac_exeext
22075 if { (ac_try="$ac_link"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_link") 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } && {
22088 test -z "$ac_c_werror_flag" ||
22089 test ! -s conftest.err
22090 } && test -s conftest$ac_exeext &&
22091 $as_test_x conftest$ac_exeext; then
22092 { echo "$as_me:$LINENO: result: no" >&5
22093 echo "${ECHO_T}no" >&6; }
22094 X_LIBS="$X_LIBS -R$x_libraries"
22095 else
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 LIBS="$ac_xsave_LIBS -R $x_libraries"
22100 cat >conftest.$ac_ext <<_ACEOF
22101 /* confdefs.h. */
22102 _ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22108 main ()
22112 return 0;
22114 _ACEOF
22115 rm -f conftest.$ac_objext conftest$ac_exeext
22116 if { (ac_try="$ac_link"
22117 case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22120 esac
22121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122 (eval "$ac_link") 2>conftest.er1
22123 ac_status=$?
22124 grep -v '^ *+' conftest.er1 >conftest.err
22125 rm -f conftest.er1
22126 cat conftest.err >&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } && {
22129 test -z "$ac_c_werror_flag" ||
22130 test ! -s conftest.err
22131 } && test -s conftest$ac_exeext &&
22132 $as_test_x conftest$ac_exeext; then
22133 { echo "$as_me:$LINENO: result: yes" >&5
22134 echo "${ECHO_T}yes" >&6; }
22135 X_LIBS="$X_LIBS -R $x_libraries"
22136 else
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22140 { echo "$as_me:$LINENO: result: neither works" >&5
22141 echo "${ECHO_T}neither works" >&6; }
22144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22145 conftest$ac_exeext conftest.$ac_ext
22148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22149 conftest$ac_exeext conftest.$ac_ext
22150 ac_c_werror_flag=$ac_xsave_c_werror_flag
22151 LIBS=$ac_xsave_LIBS
22154 # Check for system-dependent libraries X programs must link with.
22155 # Do this before checking for the system-independent R6 libraries
22156 # (-lICE), since we may need -lsocket or whatever for X linking.
22158 if test "$ISC" = yes; then
22159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22160 else
22161 # Martyn Johnson says this is needed for Ultrix, if the X
22162 # libraries were built with DECnet support. And Karl Berry says
22163 # the Alpha needs dnet_stub (dnet does not exist).
22164 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22172 /* Override any GCC internal prototype to avoid an error.
22173 Use char because int might match the return type of a GCC
22174 builtin and then its argument prototype would still apply. */
22175 #ifdef __cplusplus
22176 extern "C"
22177 #endif
22178 char XOpenDisplay ();
22180 main ()
22182 return XOpenDisplay ();
22184 return 0;
22186 _ACEOF
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>conftest.er1
22195 ac_status=$?
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext &&
22204 $as_test_x conftest$ac_exeext; then
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22211 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22212 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215 ac_check_lib_save_LIBS=$LIBS
22216 LIBS="-ldnet $LIBS"
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h. */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22224 /* Override any GCC internal prototype to avoid an error.
22225 Use char because int might match the return type of a GCC
22226 builtin and then its argument prototype would still apply. */
22227 #ifdef __cplusplus
22228 extern "C"
22229 #endif
22230 char dnet_ntoa ();
22232 main ()
22234 return dnet_ntoa ();
22236 return 0;
22238 _ACEOF
22239 rm -f conftest.$ac_objext conftest$ac_exeext
22240 if { (ac_try="$ac_link"
22241 case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22244 esac
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_link") 2>conftest.er1
22247 ac_status=$?
22248 grep -v '^ *+' conftest.er1 >conftest.err
22249 rm -f conftest.er1
22250 cat conftest.err >&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest$ac_exeext &&
22256 $as_test_x conftest$ac_exeext; then
22257 ac_cv_lib_dnet_dnet_ntoa=yes
22258 else
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 ac_cv_lib_dnet_dnet_ntoa=no
22265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22266 conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS
22269 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22270 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22271 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22272 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22275 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22276 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22277 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22278 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22279 echo $ECHO_N "(cached) $ECHO_C" >&6
22280 else
22281 ac_check_lib_save_LIBS=$LIBS
22282 LIBS="-ldnet_stub $LIBS"
22283 cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h. */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22290 /* Override any GCC internal prototype to avoid an error.
22291 Use char because int might match the return type of a GCC
22292 builtin and then its argument prototype would still apply. */
22293 #ifdef __cplusplus
22294 extern "C"
22295 #endif
22296 char dnet_ntoa ();
22298 main ()
22300 return dnet_ntoa ();
22302 return 0;
22304 _ACEOF
22305 rm -f conftest.$ac_objext conftest$ac_exeext
22306 if { (ac_try="$ac_link"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22310 esac
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_link") 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest$ac_exeext &&
22322 $as_test_x conftest$ac_exeext; then
22323 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22324 else
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22328 ac_cv_lib_dnet_stub_dnet_ntoa=no
22331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22332 conftest$ac_exeext conftest.$ac_ext
22333 LIBS=$ac_check_lib_save_LIBS
22335 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22336 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22337 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22338 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22345 conftest$ac_exeext conftest.$ac_ext
22346 LIBS="$ac_xsave_LIBS"
22348 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22349 # to get the SysV transport functions.
22350 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22351 # needs -lnsl.
22352 # The nsl library prevents programs from opening the X display
22353 # on Irix 5.2, according to T.E. Dickey.
22354 # The functions gethostbyname, getservbyname, and inet_addr are
22355 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22356 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22357 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22358 if test "${ac_cv_func_gethostbyname+set}" = set; then
22359 echo $ECHO_N "(cached) $ECHO_C" >&6
22360 else
22361 cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h. */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22369 #define gethostbyname innocuous_gethostbyname
22371 /* System header to define __stub macros and hopefully few prototypes,
22372 which can conflict with char gethostbyname (); below.
22373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22374 <limits.h> exists even on freestanding compilers. */
22376 #ifdef __STDC__
22377 # include <limits.h>
22378 #else
22379 # include <assert.h>
22380 #endif
22382 #undef gethostbyname
22384 /* Override any GCC internal prototype to avoid an error.
22385 Use char because int might match the return type of a GCC
22386 builtin and then its argument prototype would still apply. */
22387 #ifdef __cplusplus
22388 extern "C"
22389 #endif
22390 char gethostbyname ();
22391 /* The GNU C library defines this for functions which it implements
22392 to always fail with ENOSYS. Some functions are actually named
22393 something starting with __ and the normal name is an alias. */
22394 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22395 choke me
22396 #endif
22399 main ()
22401 return gethostbyname ();
22403 return 0;
22405 _ACEOF
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (ac_try="$ac_link"
22408 case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22411 esac
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_link") 2>conftest.er1
22414 ac_status=$?
22415 grep -v '^ *+' conftest.er1 >conftest.err
22416 rm -f conftest.er1
22417 cat conftest.err >&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } && {
22420 test -z "$ac_c_werror_flag" ||
22421 test ! -s conftest.err
22422 } && test -s conftest$ac_exeext &&
22423 $as_test_x conftest$ac_exeext; then
22424 ac_cv_func_gethostbyname=yes
22425 else
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22429 ac_cv_func_gethostbyname=no
22432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22433 conftest$ac_exeext conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22436 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22438 if test $ac_cv_func_gethostbyname = no; then
22439 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22440 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22441 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22442 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 else
22444 ac_check_lib_save_LIBS=$LIBS
22445 LIBS="-lnsl $LIBS"
22446 cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h. */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22453 /* Override any GCC internal prototype to avoid an error.
22454 Use char because int might match the return type of a GCC
22455 builtin and then its argument prototype would still apply. */
22456 #ifdef __cplusplus
22457 extern "C"
22458 #endif
22459 char gethostbyname ();
22461 main ()
22463 return gethostbyname ();
22465 return 0;
22467 _ACEOF
22468 rm -f conftest.$ac_objext conftest$ac_exeext
22469 if { (ac_try="$ac_link"
22470 case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_link") 2>conftest.er1
22476 ac_status=$?
22477 grep -v '^ *+' conftest.er1 >conftest.err
22478 rm -f conftest.er1
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest$ac_exeext &&
22485 $as_test_x conftest$ac_exeext; then
22486 ac_cv_lib_nsl_gethostbyname=yes
22487 else
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 ac_cv_lib_nsl_gethostbyname=no
22494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22495 conftest$ac_exeext conftest.$ac_ext
22496 LIBS=$ac_check_lib_save_LIBS
22498 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22499 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22500 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22504 if test $ac_cv_lib_nsl_gethostbyname = no; then
22505 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22506 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22507 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22508 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 else
22510 ac_check_lib_save_LIBS=$LIBS
22511 LIBS="-lbsd $LIBS"
22512 cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h. */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22522 #ifdef __cplusplus
22523 extern "C"
22524 #endif
22525 char gethostbyname ();
22527 main ()
22529 return gethostbyname ();
22531 return 0;
22533 _ACEOF
22534 rm -f conftest.$ac_objext conftest$ac_exeext
22535 if { (ac_try="$ac_link"
22536 case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_link") 2>conftest.er1
22542 ac_status=$?
22543 grep -v '^ *+' conftest.er1 >conftest.err
22544 rm -f conftest.er1
22545 cat conftest.err >&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest$ac_exeext &&
22551 $as_test_x conftest$ac_exeext; then
22552 ac_cv_lib_bsd_gethostbyname=yes
22553 else
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 ac_cv_lib_bsd_gethostbyname=no
22560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22561 conftest$ac_exeext conftest.$ac_ext
22562 LIBS=$ac_check_lib_save_LIBS
22564 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22565 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22566 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22567 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22573 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22574 # socket/setsockopt and other routines are undefined under SCO ODT
22575 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22576 # on later versions), says Simon Leinen: it contains gethostby*
22577 # variants that don't use the name server (or something). -lsocket
22578 # must be given before -lnsl if both are needed. We assume that
22579 # if connect needs -lnsl, so does gethostbyname.
22580 { echo "$as_me:$LINENO: checking for connect" >&5
22581 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22582 if test "${ac_cv_func_connect+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22593 #define connect innocuous_connect
22595 /* System header to define __stub macros and hopefully few prototypes,
22596 which can conflict with char connect (); below.
22597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22598 <limits.h> exists even on freestanding compilers. */
22600 #ifdef __STDC__
22601 # include <limits.h>
22602 #else
22603 # include <assert.h>
22604 #endif
22606 #undef connect
22608 /* Override any GCC internal prototype to avoid an error.
22609 Use char because int might match the return type of a GCC
22610 builtin and then its argument prototype would still apply. */
22611 #ifdef __cplusplus
22612 extern "C"
22613 #endif
22614 char connect ();
22615 /* The GNU C library defines this for functions which it implements
22616 to always fail with ENOSYS. Some functions are actually named
22617 something starting with __ and the normal name is an alias. */
22618 #if defined __stub_connect || defined __stub___connect
22619 choke me
22620 #endif
22623 main ()
22625 return connect ();
22627 return 0;
22629 _ACEOF
22630 rm -f conftest.$ac_objext conftest$ac_exeext
22631 if { (ac_try="$ac_link"
22632 case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22635 esac
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_link") 2>conftest.er1
22638 ac_status=$?
22639 grep -v '^ *+' conftest.er1 >conftest.err
22640 rm -f conftest.er1
22641 cat conftest.err >&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest$ac_exeext &&
22647 $as_test_x conftest$ac_exeext; then
22648 ac_cv_func_connect=yes
22649 else
22650 echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22653 ac_cv_func_connect=no
22656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22657 conftest$ac_exeext conftest.$ac_ext
22659 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22660 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22662 if test $ac_cv_func_connect = no; then
22663 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22664 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22665 if test "${ac_cv_lib_socket_connect+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 else
22668 ac_check_lib_save_LIBS=$LIBS
22669 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22670 cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h. */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22677 /* Override any GCC internal prototype to avoid an error.
22678 Use char because int might match the return type of a GCC
22679 builtin and then its argument prototype would still apply. */
22680 #ifdef __cplusplus
22681 extern "C"
22682 #endif
22683 char connect ();
22685 main ()
22687 return connect ();
22689 return 0;
22691 _ACEOF
22692 rm -f conftest.$ac_objext conftest$ac_exeext
22693 if { (ac_try="$ac_link"
22694 case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22697 esac
22698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22699 (eval "$ac_link") 2>conftest.er1
22700 ac_status=$?
22701 grep -v '^ *+' conftest.er1 >conftest.err
22702 rm -f conftest.er1
22703 cat conftest.err >&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } && {
22706 test -z "$ac_c_werror_flag" ||
22707 test ! -s conftest.err
22708 } && test -s conftest$ac_exeext &&
22709 $as_test_x conftest$ac_exeext; then
22710 ac_cv_lib_socket_connect=yes
22711 else
22712 echo "$as_me: failed program was:" >&5
22713 sed 's/^/| /' conftest.$ac_ext >&5
22715 ac_cv_lib_socket_connect=no
22718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22719 conftest$ac_exeext conftest.$ac_ext
22720 LIBS=$ac_check_lib_save_LIBS
22722 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22723 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22724 if test $ac_cv_lib_socket_connect = yes; then
22725 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22730 # Guillermo Gomez says -lposix is necessary on A/UX.
22731 { echo "$as_me:$LINENO: checking for remove" >&5
22732 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22733 if test "${ac_cv_func_remove+set}" = set; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736 cat >conftest.$ac_ext <<_ACEOF
22737 /* confdefs.h. */
22738 _ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h. */
22742 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22744 #define remove innocuous_remove
22746 /* System header to define __stub macros and hopefully few prototypes,
22747 which can conflict with char remove (); below.
22748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22749 <limits.h> exists even on freestanding compilers. */
22751 #ifdef __STDC__
22752 # include <limits.h>
22753 #else
22754 # include <assert.h>
22755 #endif
22757 #undef remove
22759 /* Override any GCC internal prototype to avoid an error.
22760 Use char because int might match the return type of a GCC
22761 builtin and then its argument prototype would still apply. */
22762 #ifdef __cplusplus
22763 extern "C"
22764 #endif
22765 char remove ();
22766 /* The GNU C library defines this for functions which it implements
22767 to always fail with ENOSYS. Some functions are actually named
22768 something starting with __ and the normal name is an alias. */
22769 #if defined __stub_remove || defined __stub___remove
22770 choke me
22771 #endif
22774 main ()
22776 return remove ();
22778 return 0;
22780 _ACEOF
22781 rm -f conftest.$ac_objext conftest$ac_exeext
22782 if { (ac_try="$ac_link"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_link") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest$ac_exeext &&
22798 $as_test_x conftest$ac_exeext; then
22799 ac_cv_func_remove=yes
22800 else
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 ac_cv_func_remove=no
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808 conftest$ac_exeext conftest.$ac_ext
22810 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22811 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
22813 if test $ac_cv_func_remove = no; then
22814 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22815 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
22816 if test "${ac_cv_lib_posix_remove+set}" = set; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 else
22819 ac_check_lib_save_LIBS=$LIBS
22820 LIBS="-lposix $LIBS"
22821 cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h. */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22828 /* Override any GCC internal prototype to avoid an error.
22829 Use char because int might match the return type of a GCC
22830 builtin and then its argument prototype would still apply. */
22831 #ifdef __cplusplus
22832 extern "C"
22833 #endif
22834 char remove ();
22836 main ()
22838 return remove ();
22840 return 0;
22842 _ACEOF
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (ac_try="$ac_link"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_link") 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest$ac_exeext &&
22860 $as_test_x conftest$ac_exeext; then
22861 ac_cv_lib_posix_remove=yes
22862 else
22863 echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 ac_cv_lib_posix_remove=no
22869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22870 conftest$ac_exeext conftest.$ac_ext
22871 LIBS=$ac_check_lib_save_LIBS
22873 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22874 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
22875 if test $ac_cv_lib_posix_remove = yes; then
22876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22881 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22882 { echo "$as_me:$LINENO: checking for shmat" >&5
22883 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
22884 if test "${ac_cv_func_shmat+set}" = set; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 else
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h. */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22893 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22895 #define shmat innocuous_shmat
22897 /* System header to define __stub macros and hopefully few prototypes,
22898 which can conflict with char shmat (); below.
22899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22900 <limits.h> exists even on freestanding compilers. */
22902 #ifdef __STDC__
22903 # include <limits.h>
22904 #else
22905 # include <assert.h>
22906 #endif
22908 #undef shmat
22910 /* Override any GCC internal prototype to avoid an error.
22911 Use char because int might match the return type of a GCC
22912 builtin and then its argument prototype would still apply. */
22913 #ifdef __cplusplus
22914 extern "C"
22915 #endif
22916 char shmat ();
22917 /* The GNU C library defines this for functions which it implements
22918 to always fail with ENOSYS. Some functions are actually named
22919 something starting with __ and the normal name is an alias. */
22920 #if defined __stub_shmat || defined __stub___shmat
22921 choke me
22922 #endif
22925 main ()
22927 return shmat ();
22929 return 0;
22931 _ACEOF
22932 rm -f conftest.$ac_objext conftest$ac_exeext
22933 if { (ac_try="$ac_link"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_link") 2>conftest.er1
22940 ac_status=$?
22941 grep -v '^ *+' conftest.er1 >conftest.err
22942 rm -f conftest.er1
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } && {
22946 test -z "$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 } && test -s conftest$ac_exeext &&
22949 $as_test_x conftest$ac_exeext; then
22950 ac_cv_func_shmat=yes
22951 else
22952 echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22955 ac_cv_func_shmat=no
22958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22959 conftest$ac_exeext conftest.$ac_ext
22961 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22962 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22964 if test $ac_cv_func_shmat = no; then
22965 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22966 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
22967 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22969 else
22970 ac_check_lib_save_LIBS=$LIBS
22971 LIBS="-lipc $LIBS"
22972 cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h. */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22979 /* Override any GCC internal prototype to avoid an error.
22980 Use char because int might match the return type of a GCC
22981 builtin and then its argument prototype would still apply. */
22982 #ifdef __cplusplus
22983 extern "C"
22984 #endif
22985 char shmat ();
22987 main ()
22989 return shmat ();
22991 return 0;
22993 _ACEOF
22994 rm -f conftest.$ac_objext conftest$ac_exeext
22995 if { (ac_try="$ac_link"
22996 case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
22999 esac
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_link") 2>conftest.er1
23002 ac_status=$?
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } && {
23008 test -z "$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 } && test -s conftest$ac_exeext &&
23011 $as_test_x conftest$ac_exeext; then
23012 ac_cv_lib_ipc_shmat=yes
23013 else
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 ac_cv_lib_ipc_shmat=no
23020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021 conftest$ac_exeext conftest.$ac_ext
23022 LIBS=$ac_check_lib_save_LIBS
23024 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23025 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23026 if test $ac_cv_lib_ipc_shmat = yes; then
23027 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23033 # Check for libraries that X11R6 Xt/Xaw programs need.
23034 ac_save_LDFLAGS=$LDFLAGS
23035 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23036 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23037 # check for ICE first), but we must link in the order -lSM -lICE or
23038 # we get undefined symbols. So assume we have SM if we have ICE.
23039 # These have to be linked with before -lX11, unlike the other
23040 # libraries we check for below, so use a different variable.
23041 # John Interrante, Karl Berry
23042 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23043 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23044 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 else
23047 ac_check_lib_save_LIBS=$LIBS
23048 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23049 cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h. */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h. */
23056 /* Override any GCC internal prototype to avoid an error.
23057 Use char because int might match the return type of a GCC
23058 builtin and then its argument prototype would still apply. */
23059 #ifdef __cplusplus
23060 extern "C"
23061 #endif
23062 char IceConnectionNumber ();
23064 main ()
23066 return IceConnectionNumber ();
23068 return 0;
23070 _ACEOF
23071 rm -f conftest.$ac_objext conftest$ac_exeext
23072 if { (ac_try="$ac_link"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_link") 2>conftest.er1
23079 ac_status=$?
23080 grep -v '^ *+' conftest.er1 >conftest.err
23081 rm -f conftest.er1
23082 cat conftest.err >&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } && {
23085 test -z "$ac_c_werror_flag" ||
23086 test ! -s conftest.err
23087 } && test -s conftest$ac_exeext &&
23088 $as_test_x conftest$ac_exeext; then
23089 ac_cv_lib_ICE_IceConnectionNumber=yes
23090 else
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_cv_lib_ICE_IceConnectionNumber=no
23097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23098 conftest$ac_exeext conftest.$ac_ext
23099 LIBS=$ac_check_lib_save_LIBS
23101 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23102 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23103 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23104 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23107 LDFLAGS=$ac_save_LDFLAGS
23112 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23113 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23114 if test "${ac_cv_c_bigendian+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23116 else
23117 # See if sys/param.h defines the BYTE_ORDER macro.
23118 cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h. */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23124 #include <sys/types.h>
23125 #include <sys/param.h>
23128 main ()
23130 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23131 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23132 bogus endian macros
23133 #endif
23136 return 0;
23138 _ACEOF
23139 rm -f conftest.$ac_objext
23140 if { (ac_try="$ac_compile"
23141 case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_compile") 2>conftest.er1
23147 ac_status=$?
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest.$ac_objext; then
23156 # It does; now see whether it defined to BIG_ENDIAN or not.
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 #include <sys/types.h>
23164 #include <sys/param.h>
23167 main ()
23169 #if BYTE_ORDER != BIG_ENDIAN
23170 not big endian
23171 #endif
23174 return 0;
23176 _ACEOF
23177 rm -f conftest.$ac_objext
23178 if { (ac_try="$ac_compile"
23179 case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23182 esac
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184 (eval "$ac_compile") 2>conftest.er1
23185 ac_status=$?
23186 grep -v '^ *+' conftest.er1 >conftest.err
23187 rm -f conftest.er1
23188 cat conftest.err >&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } && {
23191 test -z "$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23193 } && test -s conftest.$ac_objext; then
23194 ac_cv_c_bigendian=yes
23195 else
23196 echo "$as_me: failed program was:" >&5
23197 sed 's/^/| /' conftest.$ac_ext >&5
23199 ac_cv_c_bigendian=no
23202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23203 else
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23207 # It does not; compile a test program.
23208 if test "$cross_compiling" = yes; then
23209 # try to guess the endianness by grepping values into an object file
23210 ac_cv_c_bigendian=unknown
23211 cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h. */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23218 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23219 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23220 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23221 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23222 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23224 main ()
23226 _ascii (); _ebcdic ();
23228 return 0;
23230 _ACEOF
23231 rm -f conftest.$ac_objext
23232 if { (ac_try="$ac_compile"
23233 case "(($ac_try" in
23234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23236 esac
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238 (eval "$ac_compile") 2>conftest.er1
23239 ac_status=$?
23240 grep -v '^ *+' conftest.er1 >conftest.err
23241 rm -f conftest.er1
23242 cat conftest.err >&5
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); } && {
23245 test -z "$ac_c_werror_flag" ||
23246 test ! -s conftest.err
23247 } && test -s conftest.$ac_objext; then
23248 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23249 ac_cv_c_bigendian=yes
23251 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23252 if test "$ac_cv_c_bigendian" = unknown; then
23253 ac_cv_c_bigendian=no
23254 else
23255 # finding both strings is unlikely to happen, but who knows?
23256 ac_cv_c_bigendian=unknown
23259 else
23260 echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23267 else
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 $ac_includes_default
23276 main ()
23279 /* Are we little or big endian? From Harbison&Steele. */
23280 union
23282 long int l;
23283 char c[sizeof (long int)];
23284 } u;
23285 u.l = 1;
23286 return u.c[sizeof (long int) - 1] == 1;
23289 return 0;
23291 _ACEOF
23292 rm -f conftest$ac_exeext
23293 if { (ac_try="$ac_link"
23294 case "(($ac_try" in
23295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296 *) ac_try_echo=$ac_try;;
23297 esac
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299 (eval "$ac_link") 2>&5
23300 ac_status=$?
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23303 { (case "(($ac_try" in
23304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305 *) ac_try_echo=$ac_try;;
23306 esac
23307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23308 (eval "$ac_try") 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 ac_cv_c_bigendian=no
23313 else
23314 echo "$as_me: program exited with status $ac_status" >&5
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23318 ( exit $ac_status )
23319 ac_cv_c_bigendian=yes
23321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23329 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23330 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23331 case $ac_cv_c_bigendian in
23332 yes)
23334 cat >>confdefs.h <<\_ACEOF
23335 #define WORDS_BIGENDIAN 1
23336 _ACEOF
23341 { { echo "$as_me:$LINENO: error: unknown endianness
23342 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23343 echo "$as_me: error: unknown endianness
23344 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23345 { (exit 1); exit 1; }; } ;;
23346 esac
23348 { echo "$as_me:$LINENO: checking for inline" >&5
23349 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23350 if test "${ac_cv_c_inline+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 else
23353 ac_cv_c_inline=no
23354 for ac_kw in inline __inline__ __inline; do
23355 cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h. */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 #ifndef __cplusplus
23362 typedef int foo_t;
23363 static $ac_kw foo_t static_foo () {return 0; }
23364 $ac_kw foo_t foo () {return 0; }
23365 #endif
23367 _ACEOF
23368 rm -f conftest.$ac_objext
23369 if { (ac_try="$ac_compile"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23373 esac
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_compile") 2>conftest.er1
23376 ac_status=$?
23377 grep -v '^ *+' conftest.er1 >conftest.err
23378 rm -f conftest.er1
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } && {
23382 test -z "$ac_c_werror_flag" ||
23383 test ! -s conftest.err
23384 } && test -s conftest.$ac_objext; then
23385 ac_cv_c_inline=$ac_kw
23386 else
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394 test "$ac_cv_c_inline" != no && break
23395 done
23398 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23399 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23402 case $ac_cv_c_inline in
23403 inline | yes) ;;
23405 case $ac_cv_c_inline in
23406 no) ac_val=;;
23407 *) ac_val=$ac_cv_c_inline;;
23408 esac
23409 cat >>confdefs.h <<_ACEOF
23410 #ifndef __cplusplus
23411 #define inline $ac_val
23412 #endif
23413 _ACEOF
23415 esac
23417 { echo "$as_me:$LINENO: checking for unsigned char" >&5
23418 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
23419 if test "${ac_cv_type_unsigned_char+set}" = set; then
23420 echo $ECHO_N "(cached) $ECHO_C" >&6
23421 else
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h. */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 $ac_includes_default
23429 typedef unsigned char ac__type_new_;
23431 main ()
23433 if ((ac__type_new_ *) 0)
23434 return 0;
23435 if (sizeof (ac__type_new_))
23436 return 0;
23438 return 0;
23440 _ACEOF
23441 rm -f conftest.$ac_objext
23442 if { (ac_try="$ac_compile"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446 esac
23447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23448 (eval "$ac_compile") 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } && {
23455 test -z "$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 } && test -s conftest.$ac_objext; then
23458 ac_cv_type_unsigned_char=yes
23459 else
23460 echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 ac_cv_type_unsigned_char=no
23466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
23469 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
23471 # The cast to long int works around a bug in the HP C Compiler
23472 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23473 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23474 # This bug is HP SR number 8606223364.
23475 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
23476 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
23477 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 else
23480 if test "$cross_compiling" = yes; then
23481 # Depending upon the size, compute the lo and hi bounds.
23482 cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h. */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23488 $ac_includes_default
23489 typedef unsigned char ac__type_sizeof_;
23491 main ()
23493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23494 test_array [0] = 0
23497 return 0;
23499 _ACEOF
23500 rm -f conftest.$ac_objext
23501 if { (ac_try="$ac_compile"
23502 case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23505 esac
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_compile") 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } && {
23514 test -z "$ac_c_werror_flag" ||
23515 test ! -s conftest.err
23516 } && test -s conftest.$ac_objext; then
23517 ac_lo=0 ac_mid=0
23518 while :; do
23519 cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h. */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23525 $ac_includes_default
23526 typedef unsigned char ac__type_sizeof_;
23528 main ()
23530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23531 test_array [0] = 0
23534 return 0;
23536 _ACEOF
23537 rm -f conftest.$ac_objext
23538 if { (ac_try="$ac_compile"
23539 case "(($ac_try" in
23540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541 *) ac_try_echo=$ac_try;;
23542 esac
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544 (eval "$ac_compile") 2>conftest.er1
23545 ac_status=$?
23546 grep -v '^ *+' conftest.er1 >conftest.err
23547 rm -f conftest.er1
23548 cat conftest.err >&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } && {
23551 test -z "$ac_c_werror_flag" ||
23552 test ! -s conftest.err
23553 } && test -s conftest.$ac_objext; then
23554 ac_hi=$ac_mid; break
23555 else
23556 echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559 ac_lo=`expr $ac_mid + 1`
23560 if test $ac_lo -le $ac_mid; then
23561 ac_lo= ac_hi=
23562 break
23564 ac_mid=`expr 2 '*' $ac_mid + 1`
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23568 done
23569 else
23570 echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23573 cat >conftest.$ac_ext <<_ACEOF
23574 /* confdefs.h. */
23575 _ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 $ac_includes_default
23580 typedef unsigned char ac__type_sizeof_;
23582 main ()
23584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23585 test_array [0] = 0
23588 return 0;
23590 _ACEOF
23591 rm -f conftest.$ac_objext
23592 if { (ac_try="$ac_compile"
23593 case "(($ac_try" in
23594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595 *) ac_try_echo=$ac_try;;
23596 esac
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598 (eval "$ac_compile") 2>conftest.er1
23599 ac_status=$?
23600 grep -v '^ *+' conftest.er1 >conftest.err
23601 rm -f conftest.er1
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && {
23605 test -z "$ac_c_werror_flag" ||
23606 test ! -s conftest.err
23607 } && test -s conftest.$ac_objext; then
23608 ac_hi=-1 ac_mid=-1
23609 while :; do
23610 cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h. */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23616 $ac_includes_default
23617 typedef unsigned char ac__type_sizeof_;
23619 main ()
23621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23622 test_array [0] = 0
23625 return 0;
23627 _ACEOF
23628 rm -f conftest.$ac_objext
23629 if { (ac_try="$ac_compile"
23630 case "(($ac_try" in
23631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23632 *) ac_try_echo=$ac_try;;
23633 esac
23634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23635 (eval "$ac_compile") 2>conftest.er1
23636 ac_status=$?
23637 grep -v '^ *+' conftest.er1 >conftest.err
23638 rm -f conftest.er1
23639 cat conftest.err >&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } && {
23642 test -z "$ac_c_werror_flag" ||
23643 test ! -s conftest.err
23644 } && test -s conftest.$ac_objext; then
23645 ac_lo=$ac_mid; break
23646 else
23647 echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23650 ac_hi=`expr '(' $ac_mid ')' - 1`
23651 if test $ac_mid -le $ac_hi; then
23652 ac_lo= ac_hi=
23653 break
23655 ac_mid=`expr 2 '*' $ac_mid`
23658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23659 done
23660 else
23661 echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23664 ac_lo= ac_hi=
23667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23671 # Binary search between lo and hi bounds.
23672 while test "x$ac_lo" != "x$ac_hi"; do
23673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23674 cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h. */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23680 $ac_includes_default
23681 typedef unsigned char ac__type_sizeof_;
23683 main ()
23685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23686 test_array [0] = 0
23689 return 0;
23691 _ACEOF
23692 rm -f conftest.$ac_objext
23693 if { (ac_try="$ac_compile"
23694 case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23697 esac
23698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699 (eval "$ac_compile") 2>conftest.er1
23700 ac_status=$?
23701 grep -v '^ *+' conftest.er1 >conftest.err
23702 rm -f conftest.er1
23703 cat conftest.err >&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } && {
23706 test -z "$ac_c_werror_flag" ||
23707 test ! -s conftest.err
23708 } && test -s conftest.$ac_objext; then
23709 ac_hi=$ac_mid
23710 else
23711 echo "$as_me: failed program was:" >&5
23712 sed 's/^/| /' conftest.$ac_ext >&5
23714 ac_lo=`expr '(' $ac_mid ')' + 1`
23717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 done
23719 case $ac_lo in
23720 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23721 '') if test "$ac_cv_type_unsigned_char" = yes; then
23722 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23723 See \`config.log' for more details." >&5
23724 echo "$as_me: error: cannot compute sizeof (unsigned char)
23725 See \`config.log' for more details." >&2;}
23726 { (exit 77); exit 77; }; }
23727 else
23728 ac_cv_sizeof_unsigned_char=0
23729 fi ;;
23730 esac
23731 else
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h. */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 $ac_includes_default
23739 typedef unsigned char ac__type_sizeof_;
23740 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23741 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23742 #include <stdio.h>
23743 #include <stdlib.h>
23745 main ()
23748 FILE *f = fopen ("conftest.val", "w");
23749 if (! f)
23750 return 1;
23751 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23753 long int i = longval ();
23754 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23755 return 1;
23756 fprintf (f, "%ld\n", i);
23758 else
23760 unsigned long int i = ulongval ();
23761 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23762 return 1;
23763 fprintf (f, "%lu\n", i);
23765 return ferror (f) || fclose (f) != 0;
23768 return 0;
23770 _ACEOF
23771 rm -f conftest$ac_exeext
23772 if { (ac_try="$ac_link"
23773 case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_link") 2>&5
23779 ac_status=$?
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23782 { (case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_try") 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ac_cv_sizeof_unsigned_char=`cat conftest.val`
23792 else
23793 echo "$as_me: program exited with status $ac_status" >&5
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23797 ( exit $ac_status )
23798 if test "$ac_cv_type_unsigned_char" = yes; then
23799 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23800 See \`config.log' for more details." >&5
23801 echo "$as_me: error: cannot compute sizeof (unsigned char)
23802 See \`config.log' for more details." >&2;}
23803 { (exit 77); exit 77; }; }
23804 else
23805 ac_cv_sizeof_unsigned_char=0
23808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23810 rm -f conftest.val
23812 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23813 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23817 cat >>confdefs.h <<_ACEOF
23818 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23819 _ACEOF
23822 { echo "$as_me:$LINENO: checking for unsigned short" >&5
23823 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
23824 if test "${ac_cv_type_unsigned_short+set}" = set; then
23825 echo $ECHO_N "(cached) $ECHO_C" >&6
23826 else
23827 cat >conftest.$ac_ext <<_ACEOF
23828 /* confdefs.h. */
23829 _ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h. */
23833 $ac_includes_default
23834 typedef unsigned short ac__type_new_;
23836 main ()
23838 if ((ac__type_new_ *) 0)
23839 return 0;
23840 if (sizeof (ac__type_new_))
23841 return 0;
23843 return 0;
23845 _ACEOF
23846 rm -f conftest.$ac_objext
23847 if { (ac_try="$ac_compile"
23848 case "(($ac_try" in
23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23851 esac
23852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853 (eval "$ac_compile") 2>conftest.er1
23854 ac_status=$?
23855 grep -v '^ *+' conftest.er1 >conftest.err
23856 rm -f conftest.er1
23857 cat conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } && {
23860 test -z "$ac_c_werror_flag" ||
23861 test ! -s conftest.err
23862 } && test -s conftest.$ac_objext; then
23863 ac_cv_type_unsigned_short=yes
23864 else
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23868 ac_cv_type_unsigned_short=no
23871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23873 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23874 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
23876 # The cast to long int works around a bug in the HP C Compiler
23877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23879 # This bug is HP SR number 8606223364.
23880 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
23881 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
23882 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 else
23885 if test "$cross_compiling" = yes; then
23886 # Depending upon the size, compute the lo and hi bounds.
23887 cat >conftest.$ac_ext <<_ACEOF
23888 /* confdefs.h. */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 $ac_includes_default
23894 typedef unsigned short ac__type_sizeof_;
23896 main ()
23898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23899 test_array [0] = 0
23902 return 0;
23904 _ACEOF
23905 rm -f conftest.$ac_objext
23906 if { (ac_try="$ac_compile"
23907 case "(($ac_try" in
23908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909 *) ac_try_echo=$ac_try;;
23910 esac
23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23912 (eval "$ac_compile") 2>conftest.er1
23913 ac_status=$?
23914 grep -v '^ *+' conftest.er1 >conftest.err
23915 rm -f conftest.er1
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } && {
23919 test -z "$ac_c_werror_flag" ||
23920 test ! -s conftest.err
23921 } && test -s conftest.$ac_objext; then
23922 ac_lo=0 ac_mid=0
23923 while :; do
23924 cat >conftest.$ac_ext <<_ACEOF
23925 /* confdefs.h. */
23926 _ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23930 $ac_includes_default
23931 typedef unsigned short ac__type_sizeof_;
23933 main ()
23935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23936 test_array [0] = 0
23939 return 0;
23941 _ACEOF
23942 rm -f conftest.$ac_objext
23943 if { (ac_try="$ac_compile"
23944 case "(($ac_try" in
23945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23946 *) ac_try_echo=$ac_try;;
23947 esac
23948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23949 (eval "$ac_compile") 2>conftest.er1
23950 ac_status=$?
23951 grep -v '^ *+' conftest.er1 >conftest.err
23952 rm -f conftest.er1
23953 cat conftest.err >&5
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && {
23956 test -z "$ac_c_werror_flag" ||
23957 test ! -s conftest.err
23958 } && test -s conftest.$ac_objext; then
23959 ac_hi=$ac_mid; break
23960 else
23961 echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 ac_lo=`expr $ac_mid + 1`
23965 if test $ac_lo -le $ac_mid; then
23966 ac_lo= ac_hi=
23967 break
23969 ac_mid=`expr 2 '*' $ac_mid + 1`
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23973 done
23974 else
23975 echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23978 cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h. */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 $ac_includes_default
23985 typedef unsigned short ac__type_sizeof_;
23987 main ()
23989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23990 test_array [0] = 0
23993 return 0;
23995 _ACEOF
23996 rm -f conftest.$ac_objext
23997 if { (ac_try="$ac_compile"
23998 case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24001 esac
24002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24003 (eval "$ac_compile") 2>conftest.er1
24004 ac_status=$?
24005 grep -v '^ *+' conftest.er1 >conftest.err
24006 rm -f conftest.er1
24007 cat conftest.err >&5
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } && {
24010 test -z "$ac_c_werror_flag" ||
24011 test ! -s conftest.err
24012 } && test -s conftest.$ac_objext; then
24013 ac_hi=-1 ac_mid=-1
24014 while :; do
24015 cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h. */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24021 $ac_includes_default
24022 typedef unsigned short ac__type_sizeof_;
24024 main ()
24026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24027 test_array [0] = 0
24030 return 0;
24032 _ACEOF
24033 rm -f conftest.$ac_objext
24034 if { (ac_try="$ac_compile"
24035 case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24038 esac
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040 (eval "$ac_compile") 2>conftest.er1
24041 ac_status=$?
24042 grep -v '^ *+' conftest.er1 >conftest.err
24043 rm -f conftest.er1
24044 cat conftest.err >&5
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } && {
24047 test -z "$ac_c_werror_flag" ||
24048 test ! -s conftest.err
24049 } && test -s conftest.$ac_objext; then
24050 ac_lo=$ac_mid; break
24051 else
24052 echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24055 ac_hi=`expr '(' $ac_mid ')' - 1`
24056 if test $ac_mid -le $ac_hi; then
24057 ac_lo= ac_hi=
24058 break
24060 ac_mid=`expr 2 '*' $ac_mid`
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24064 done
24065 else
24066 echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24069 ac_lo= ac_hi=
24072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24076 # Binary search between lo and hi bounds.
24077 while test "x$ac_lo" != "x$ac_hi"; do
24078 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24079 cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h. */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 $ac_includes_default
24086 typedef unsigned short ac__type_sizeof_;
24088 main ()
24090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24091 test_array [0] = 0
24094 return 0;
24096 _ACEOF
24097 rm -f conftest.$ac_objext
24098 if { (ac_try="$ac_compile"
24099 case "(($ac_try" in
24100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101 *) ac_try_echo=$ac_try;;
24102 esac
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104 (eval "$ac_compile") 2>conftest.er1
24105 ac_status=$?
24106 grep -v '^ *+' conftest.er1 >conftest.err
24107 rm -f conftest.er1
24108 cat conftest.err >&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } && {
24111 test -z "$ac_c_werror_flag" ||
24112 test ! -s conftest.err
24113 } && test -s conftest.$ac_objext; then
24114 ac_hi=$ac_mid
24115 else
24116 echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24119 ac_lo=`expr '(' $ac_mid ')' + 1`
24122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123 done
24124 case $ac_lo in
24125 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24126 '') if test "$ac_cv_type_unsigned_short" = yes; then
24127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24128 See \`config.log' for more details." >&5
24129 echo "$as_me: error: cannot compute sizeof (unsigned short)
24130 See \`config.log' for more details." >&2;}
24131 { (exit 77); exit 77; }; }
24132 else
24133 ac_cv_sizeof_unsigned_short=0
24134 fi ;;
24135 esac
24136 else
24137 cat >conftest.$ac_ext <<_ACEOF
24138 /* confdefs.h. */
24139 _ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h. */
24143 $ac_includes_default
24144 typedef unsigned short ac__type_sizeof_;
24145 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24146 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24147 #include <stdio.h>
24148 #include <stdlib.h>
24150 main ()
24153 FILE *f = fopen ("conftest.val", "w");
24154 if (! f)
24155 return 1;
24156 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24158 long int i = longval ();
24159 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24160 return 1;
24161 fprintf (f, "%ld\n", i);
24163 else
24165 unsigned long int i = ulongval ();
24166 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24167 return 1;
24168 fprintf (f, "%lu\n", i);
24170 return ferror (f) || fclose (f) != 0;
24173 return 0;
24175 _ACEOF
24176 rm -f conftest$ac_exeext
24177 if { (ac_try="$ac_link"
24178 case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183 (eval "$ac_link") 2>&5
24184 ac_status=$?
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24187 { (case "(($ac_try" in
24188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189 *) ac_try_echo=$ac_try;;
24190 esac
24191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192 (eval "$ac_try") 2>&5
24193 ac_status=$?
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; }; then
24196 ac_cv_sizeof_unsigned_short=`cat conftest.val`
24197 else
24198 echo "$as_me: program exited with status $ac_status" >&5
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24202 ( exit $ac_status )
24203 if test "$ac_cv_type_unsigned_short" = yes; then
24204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24205 See \`config.log' for more details." >&5
24206 echo "$as_me: error: cannot compute sizeof (unsigned short)
24207 See \`config.log' for more details." >&2;}
24208 { (exit 77); exit 77; }; }
24209 else
24210 ac_cv_sizeof_unsigned_short=0
24213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24215 rm -f conftest.val
24217 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24218 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
24222 cat >>confdefs.h <<_ACEOF
24223 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24224 _ACEOF
24227 { echo "$as_me:$LINENO: checking for unsigned int" >&5
24228 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
24229 if test "${ac_cv_type_unsigned_int+set}" = set; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24231 else
24232 cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h. */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24238 $ac_includes_default
24239 typedef unsigned int ac__type_new_;
24241 main ()
24243 if ((ac__type_new_ *) 0)
24244 return 0;
24245 if (sizeof (ac__type_new_))
24246 return 0;
24248 return 0;
24250 _ACEOF
24251 rm -f conftest.$ac_objext
24252 if { (ac_try="$ac_compile"
24253 case "(($ac_try" in
24254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255 *) ac_try_echo=$ac_try;;
24256 esac
24257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24259 ac_status=$?
24260 grep -v '^ *+' conftest.er1 >conftest.err
24261 rm -f conftest.er1
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24268 ac_cv_type_unsigned_int=yes
24269 else
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 ac_cv_type_unsigned_int=no
24276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24278 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
24279 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
24281 # The cast to long int works around a bug in the HP C Compiler
24282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24284 # This bug is HP SR number 8606223364.
24285 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
24286 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
24287 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24289 else
24290 if test "$cross_compiling" = yes; then
24291 # Depending upon the size, compute the lo and hi bounds.
24292 cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h. */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24298 $ac_includes_default
24299 typedef unsigned int ac__type_sizeof_;
24301 main ()
24303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24304 test_array [0] = 0
24307 return 0;
24309 _ACEOF
24310 rm -f conftest.$ac_objext
24311 if { (ac_try="$ac_compile"
24312 case "(($ac_try" in
24313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24314 *) ac_try_echo=$ac_try;;
24315 esac
24316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24317 (eval "$ac_compile") 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } && {
24324 test -z "$ac_c_werror_flag" ||
24325 test ! -s conftest.err
24326 } && test -s conftest.$ac_objext; then
24327 ac_lo=0 ac_mid=0
24328 while :; do
24329 cat >conftest.$ac_ext <<_ACEOF
24330 /* confdefs.h. */
24331 _ACEOF
24332 cat confdefs.h >>conftest.$ac_ext
24333 cat >>conftest.$ac_ext <<_ACEOF
24334 /* end confdefs.h. */
24335 $ac_includes_default
24336 typedef unsigned int ac__type_sizeof_;
24338 main ()
24340 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24341 test_array [0] = 0
24344 return 0;
24346 _ACEOF
24347 rm -f conftest.$ac_objext
24348 if { (ac_try="$ac_compile"
24349 case "(($ac_try" in
24350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351 *) ac_try_echo=$ac_try;;
24352 esac
24353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24354 (eval "$ac_compile") 2>conftest.er1
24355 ac_status=$?
24356 grep -v '^ *+' conftest.er1 >conftest.err
24357 rm -f conftest.er1
24358 cat conftest.err >&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); } && {
24361 test -z "$ac_c_werror_flag" ||
24362 test ! -s conftest.err
24363 } && test -s conftest.$ac_objext; then
24364 ac_hi=$ac_mid; break
24365 else
24366 echo "$as_me: failed program was:" >&5
24367 sed 's/^/| /' conftest.$ac_ext >&5
24369 ac_lo=`expr $ac_mid + 1`
24370 if test $ac_lo -le $ac_mid; then
24371 ac_lo= ac_hi=
24372 break
24374 ac_mid=`expr 2 '*' $ac_mid + 1`
24377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24378 done
24379 else
24380 echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24383 cat >conftest.$ac_ext <<_ACEOF
24384 /* confdefs.h. */
24385 _ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 $ac_includes_default
24390 typedef unsigned int ac__type_sizeof_;
24392 main ()
24394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24395 test_array [0] = 0
24398 return 0;
24400 _ACEOF
24401 rm -f conftest.$ac_objext
24402 if { (ac_try="$ac_compile"
24403 case "(($ac_try" in
24404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405 *) ac_try_echo=$ac_try;;
24406 esac
24407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408 (eval "$ac_compile") 2>conftest.er1
24409 ac_status=$?
24410 grep -v '^ *+' conftest.er1 >conftest.err
24411 rm -f conftest.er1
24412 cat conftest.err >&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } && {
24415 test -z "$ac_c_werror_flag" ||
24416 test ! -s conftest.err
24417 } && test -s conftest.$ac_objext; then
24418 ac_hi=-1 ac_mid=-1
24419 while :; do
24420 cat >conftest.$ac_ext <<_ACEOF
24421 /* confdefs.h. */
24422 _ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h. */
24426 $ac_includes_default
24427 typedef unsigned int ac__type_sizeof_;
24429 main ()
24431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24432 test_array [0] = 0
24435 return 0;
24437 _ACEOF
24438 rm -f conftest.$ac_objext
24439 if { (ac_try="$ac_compile"
24440 case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24443 esac
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445 (eval "$ac_compile") 2>conftest.er1
24446 ac_status=$?
24447 grep -v '^ *+' conftest.er1 >conftest.err
24448 rm -f conftest.er1
24449 cat conftest.err >&5
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } && {
24452 test -z "$ac_c_werror_flag" ||
24453 test ! -s conftest.err
24454 } && test -s conftest.$ac_objext; then
24455 ac_lo=$ac_mid; break
24456 else
24457 echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24460 ac_hi=`expr '(' $ac_mid ')' - 1`
24461 if test $ac_mid -le $ac_hi; then
24462 ac_lo= ac_hi=
24463 break
24465 ac_mid=`expr 2 '*' $ac_mid`
24468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24469 done
24470 else
24471 echo "$as_me: failed program was:" >&5
24472 sed 's/^/| /' conftest.$ac_ext >&5
24474 ac_lo= ac_hi=
24477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481 # Binary search between lo and hi bounds.
24482 while test "x$ac_lo" != "x$ac_hi"; do
24483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24484 cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h. */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 $ac_includes_default
24491 typedef unsigned int ac__type_sizeof_;
24493 main ()
24495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24496 test_array [0] = 0
24499 return 0;
24501 _ACEOF
24502 rm -f conftest.$ac_objext
24503 if { (ac_try="$ac_compile"
24504 case "(($ac_try" in
24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24507 esac
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509 (eval "$ac_compile") 2>conftest.er1
24510 ac_status=$?
24511 grep -v '^ *+' conftest.er1 >conftest.err
24512 rm -f conftest.er1
24513 cat conftest.err >&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } && {
24516 test -z "$ac_c_werror_flag" ||
24517 test ! -s conftest.err
24518 } && test -s conftest.$ac_objext; then
24519 ac_hi=$ac_mid
24520 else
24521 echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24524 ac_lo=`expr '(' $ac_mid ')' + 1`
24527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24528 done
24529 case $ac_lo in
24530 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24531 '') if test "$ac_cv_type_unsigned_int" = yes; then
24532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24533 See \`config.log' for more details." >&5
24534 echo "$as_me: error: cannot compute sizeof (unsigned int)
24535 See \`config.log' for more details." >&2;}
24536 { (exit 77); exit 77; }; }
24537 else
24538 ac_cv_sizeof_unsigned_int=0
24539 fi ;;
24540 esac
24541 else
24542 cat >conftest.$ac_ext <<_ACEOF
24543 /* confdefs.h. */
24544 _ACEOF
24545 cat confdefs.h >>conftest.$ac_ext
24546 cat >>conftest.$ac_ext <<_ACEOF
24547 /* end confdefs.h. */
24548 $ac_includes_default
24549 typedef unsigned int ac__type_sizeof_;
24550 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24551 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24552 #include <stdio.h>
24553 #include <stdlib.h>
24555 main ()
24558 FILE *f = fopen ("conftest.val", "w");
24559 if (! f)
24560 return 1;
24561 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24563 long int i = longval ();
24564 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24565 return 1;
24566 fprintf (f, "%ld\n", i);
24568 else
24570 unsigned long int i = ulongval ();
24571 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24572 return 1;
24573 fprintf (f, "%lu\n", i);
24575 return ferror (f) || fclose (f) != 0;
24578 return 0;
24580 _ACEOF
24581 rm -f conftest$ac_exeext
24582 if { (ac_try="$ac_link"
24583 case "(($ac_try" in
24584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585 *) ac_try_echo=$ac_try;;
24586 esac
24587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588 (eval "$ac_link") 2>&5
24589 ac_status=$?
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24592 { (case "(($ac_try" in
24593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24594 *) ac_try_echo=$ac_try;;
24595 esac
24596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24597 (eval "$ac_try") 2>&5
24598 ac_status=$?
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601 ac_cv_sizeof_unsigned_int=`cat conftest.val`
24602 else
24603 echo "$as_me: program exited with status $ac_status" >&5
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24607 ( exit $ac_status )
24608 if test "$ac_cv_type_unsigned_int" = yes; then
24609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24610 See \`config.log' for more details." >&5
24611 echo "$as_me: error: cannot compute sizeof (unsigned int)
24612 See \`config.log' for more details." >&2;}
24613 { (exit 77); exit 77; }; }
24614 else
24615 ac_cv_sizeof_unsigned_int=0
24618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24620 rm -f conftest.val
24622 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24623 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24627 cat >>confdefs.h <<_ACEOF
24628 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24629 _ACEOF
24632 { echo "$as_me:$LINENO: checking for unsigned long" >&5
24633 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24634 if test "${ac_cv_type_unsigned_long+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24636 else
24637 cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h. */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 $ac_includes_default
24644 typedef unsigned long ac__type_new_;
24646 main ()
24648 if ((ac__type_new_ *) 0)
24649 return 0;
24650 if (sizeof (ac__type_new_))
24651 return 0;
24653 return 0;
24655 _ACEOF
24656 rm -f conftest.$ac_objext
24657 if { (ac_try="$ac_compile"
24658 case "(($ac_try" in
24659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24661 esac
24662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24663 (eval "$ac_compile") 2>conftest.er1
24664 ac_status=$?
24665 grep -v '^ *+' conftest.er1 >conftest.err
24666 rm -f conftest.er1
24667 cat conftest.err >&5
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } && {
24670 test -z "$ac_c_werror_flag" ||
24671 test ! -s conftest.err
24672 } && test -s conftest.$ac_objext; then
24673 ac_cv_type_unsigned_long=yes
24674 else
24675 echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24678 ac_cv_type_unsigned_long=no
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24683 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24684 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24686 # The cast to long int works around a bug in the HP C Compiler
24687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24689 # This bug is HP SR number 8606223364.
24690 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
24691 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24692 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 else
24695 if test "$cross_compiling" = yes; then
24696 # Depending upon the size, compute the lo and hi bounds.
24697 cat >conftest.$ac_ext <<_ACEOF
24698 /* confdefs.h. */
24699 _ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24703 $ac_includes_default
24704 typedef unsigned long ac__type_sizeof_;
24706 main ()
24708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24709 test_array [0] = 0
24712 return 0;
24714 _ACEOF
24715 rm -f conftest.$ac_objext
24716 if { (ac_try="$ac_compile"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24720 esac
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_compile") 2>conftest.er1
24723 ac_status=$?
24724 grep -v '^ *+' conftest.er1 >conftest.err
24725 rm -f conftest.er1
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } && {
24729 test -z "$ac_c_werror_flag" ||
24730 test ! -s conftest.err
24731 } && test -s conftest.$ac_objext; then
24732 ac_lo=0 ac_mid=0
24733 while :; do
24734 cat >conftest.$ac_ext <<_ACEOF
24735 /* confdefs.h. */
24736 _ACEOF
24737 cat confdefs.h >>conftest.$ac_ext
24738 cat >>conftest.$ac_ext <<_ACEOF
24739 /* end confdefs.h. */
24740 $ac_includes_default
24741 typedef unsigned long ac__type_sizeof_;
24743 main ()
24745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24746 test_array [0] = 0
24749 return 0;
24751 _ACEOF
24752 rm -f conftest.$ac_objext
24753 if { (ac_try="$ac_compile"
24754 case "(($ac_try" in
24755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756 *) ac_try_echo=$ac_try;;
24757 esac
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759 (eval "$ac_compile") 2>conftest.er1
24760 ac_status=$?
24761 grep -v '^ *+' conftest.er1 >conftest.err
24762 rm -f conftest.er1
24763 cat conftest.err >&5
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); } && {
24766 test -z "$ac_c_werror_flag" ||
24767 test ! -s conftest.err
24768 } && test -s conftest.$ac_objext; then
24769 ac_hi=$ac_mid; break
24770 else
24771 echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24774 ac_lo=`expr $ac_mid + 1`
24775 if test $ac_lo -le $ac_mid; then
24776 ac_lo= ac_hi=
24777 break
24779 ac_mid=`expr 2 '*' $ac_mid + 1`
24782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783 done
24784 else
24785 echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24788 cat >conftest.$ac_ext <<_ACEOF
24789 /* confdefs.h. */
24790 _ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 $ac_includes_default
24795 typedef unsigned long ac__type_sizeof_;
24797 main ()
24799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24800 test_array [0] = 0
24803 return 0;
24805 _ACEOF
24806 rm -f conftest.$ac_objext
24807 if { (ac_try="$ac_compile"
24808 case "(($ac_try" in
24809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810 *) ac_try_echo=$ac_try;;
24811 esac
24812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24813 (eval "$ac_compile") 2>conftest.er1
24814 ac_status=$?
24815 grep -v '^ *+' conftest.er1 >conftest.err
24816 rm -f conftest.er1
24817 cat conftest.err >&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); } && {
24820 test -z "$ac_c_werror_flag" ||
24821 test ! -s conftest.err
24822 } && test -s conftest.$ac_objext; then
24823 ac_hi=-1 ac_mid=-1
24824 while :; do
24825 cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h. */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h. */
24831 $ac_includes_default
24832 typedef unsigned long ac__type_sizeof_;
24834 main ()
24836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24837 test_array [0] = 0
24840 return 0;
24842 _ACEOF
24843 rm -f conftest.$ac_objext
24844 if { (ac_try="$ac_compile"
24845 case "(($ac_try" in
24846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24848 esac
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850 (eval "$ac_compile") 2>conftest.er1
24851 ac_status=$?
24852 grep -v '^ *+' conftest.er1 >conftest.err
24853 rm -f conftest.er1
24854 cat conftest.err >&5
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest.$ac_objext; then
24860 ac_lo=$ac_mid; break
24861 else
24862 echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_hi=`expr '(' $ac_mid ')' - 1`
24866 if test $ac_mid -le $ac_hi; then
24867 ac_lo= ac_hi=
24868 break
24870 ac_mid=`expr 2 '*' $ac_mid`
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 done
24875 else
24876 echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24879 ac_lo= ac_hi=
24882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 # Binary search between lo and hi bounds.
24887 while test "x$ac_lo" != "x$ac_hi"; do
24888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24889 cat >conftest.$ac_ext <<_ACEOF
24890 /* confdefs.h. */
24891 _ACEOF
24892 cat confdefs.h >>conftest.$ac_ext
24893 cat >>conftest.$ac_ext <<_ACEOF
24894 /* end confdefs.h. */
24895 $ac_includes_default
24896 typedef unsigned long ac__type_sizeof_;
24898 main ()
24900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24901 test_array [0] = 0
24904 return 0;
24906 _ACEOF
24907 rm -f conftest.$ac_objext
24908 if { (ac_try="$ac_compile"
24909 case "(($ac_try" in
24910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911 *) ac_try_echo=$ac_try;;
24912 esac
24913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24914 (eval "$ac_compile") 2>conftest.er1
24915 ac_status=$?
24916 grep -v '^ *+' conftest.er1 >conftest.err
24917 rm -f conftest.er1
24918 cat conftest.err >&5
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } && {
24921 test -z "$ac_c_werror_flag" ||
24922 test ! -s conftest.err
24923 } && test -s conftest.$ac_objext; then
24924 ac_hi=$ac_mid
24925 else
24926 echo "$as_me: failed program was:" >&5
24927 sed 's/^/| /' conftest.$ac_ext >&5
24929 ac_lo=`expr '(' $ac_mid ')' + 1`
24932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24933 done
24934 case $ac_lo in
24935 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24936 '') if test "$ac_cv_type_unsigned_long" = yes; then
24937 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24938 See \`config.log' for more details." >&5
24939 echo "$as_me: error: cannot compute sizeof (unsigned long)
24940 See \`config.log' for more details." >&2;}
24941 { (exit 77); exit 77; }; }
24942 else
24943 ac_cv_sizeof_unsigned_long=0
24944 fi ;;
24945 esac
24946 else
24947 cat >conftest.$ac_ext <<_ACEOF
24948 /* confdefs.h. */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24953 $ac_includes_default
24954 typedef unsigned long ac__type_sizeof_;
24955 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24956 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24957 #include <stdio.h>
24958 #include <stdlib.h>
24960 main ()
24963 FILE *f = fopen ("conftest.val", "w");
24964 if (! f)
24965 return 1;
24966 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24968 long int i = longval ();
24969 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24970 return 1;
24971 fprintf (f, "%ld\n", i);
24973 else
24975 unsigned long int i = ulongval ();
24976 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24977 return 1;
24978 fprintf (f, "%lu\n", i);
24980 return ferror (f) || fclose (f) != 0;
24983 return 0;
24985 _ACEOF
24986 rm -f conftest$ac_exeext
24987 if { (ac_try="$ac_link"
24988 case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24991 esac
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_link") 2>&5
24994 ac_status=$?
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24997 { (case "(($ac_try" in
24998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24999 *) ac_try_echo=$ac_try;;
25000 esac
25001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25002 (eval "$ac_try") 2>&5
25003 ac_status=$?
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; }; then
25006 ac_cv_sizeof_unsigned_long=`cat conftest.val`
25007 else
25008 echo "$as_me: program exited with status $ac_status" >&5
25009 echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 ( exit $ac_status )
25013 if test "$ac_cv_type_unsigned_long" = yes; then
25014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
25015 See \`config.log' for more details." >&5
25016 echo "$as_me: error: cannot compute sizeof (unsigned long)
25017 See \`config.log' for more details." >&2;}
25018 { (exit 77); exit 77; }; }
25019 else
25020 ac_cv_sizeof_unsigned_long=0
25023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25025 rm -f conftest.val
25027 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
25028 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
25032 cat >>confdefs.h <<_ACEOF
25033 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25034 _ACEOF
25037 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
25038 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
25039 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25040 echo $ECHO_N "(cached) $ECHO_C" >&6
25041 else
25042 cat >conftest.$ac_ext <<_ACEOF
25043 /* confdefs.h. */
25044 _ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h. */
25048 $ac_includes_default
25049 typedef unsigned long long ac__type_new_;
25051 main ()
25053 if ((ac__type_new_ *) 0)
25054 return 0;
25055 if (sizeof (ac__type_new_))
25056 return 0;
25058 return 0;
25060 _ACEOF
25061 rm -f conftest.$ac_objext
25062 if { (ac_try="$ac_compile"
25063 case "(($ac_try" in
25064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065 *) ac_try_echo=$ac_try;;
25066 esac
25067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068 (eval "$ac_compile") 2>conftest.er1
25069 ac_status=$?
25070 grep -v '^ *+' conftest.er1 >conftest.err
25071 rm -f conftest.er1
25072 cat conftest.err >&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } && {
25075 test -z "$ac_c_werror_flag" ||
25076 test ! -s conftest.err
25077 } && test -s conftest.$ac_objext; then
25078 ac_cv_type_unsigned_long_long=yes
25079 else
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25083 ac_cv_type_unsigned_long_long=no
25086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25088 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25089 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
25091 # The cast to long int works around a bug in the HP C Compiler
25092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25094 # This bug is HP SR number 8606223364.
25095 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
25096 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
25097 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 else
25100 if test "$cross_compiling" = yes; then
25101 # Depending upon the size, compute the lo and hi bounds.
25102 cat >conftest.$ac_ext <<_ACEOF
25103 /* confdefs.h. */
25104 _ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h. */
25108 $ac_includes_default
25109 typedef unsigned long long ac__type_sizeof_;
25111 main ()
25113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25114 test_array [0] = 0
25117 return 0;
25119 _ACEOF
25120 rm -f conftest.$ac_objext
25121 if { (ac_try="$ac_compile"
25122 case "(($ac_try" in
25123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124 *) ac_try_echo=$ac_try;;
25125 esac
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127 (eval "$ac_compile") 2>conftest.er1
25128 ac_status=$?
25129 grep -v '^ *+' conftest.er1 >conftest.err
25130 rm -f conftest.er1
25131 cat conftest.err >&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } && {
25134 test -z "$ac_c_werror_flag" ||
25135 test ! -s conftest.err
25136 } && test -s conftest.$ac_objext; then
25137 ac_lo=0 ac_mid=0
25138 while :; do
25139 cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h. */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25145 $ac_includes_default
25146 typedef unsigned long long ac__type_sizeof_;
25148 main ()
25150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25151 test_array [0] = 0
25154 return 0;
25156 _ACEOF
25157 rm -f conftest.$ac_objext
25158 if { (ac_try="$ac_compile"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25162 esac
25163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25164 (eval "$ac_compile") 2>conftest.er1
25165 ac_status=$?
25166 grep -v '^ *+' conftest.er1 >conftest.err
25167 rm -f conftest.er1
25168 cat conftest.err >&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } && {
25171 test -z "$ac_c_werror_flag" ||
25172 test ! -s conftest.err
25173 } && test -s conftest.$ac_objext; then
25174 ac_hi=$ac_mid; break
25175 else
25176 echo "$as_me: failed program was:" >&5
25177 sed 's/^/| /' conftest.$ac_ext >&5
25179 ac_lo=`expr $ac_mid + 1`
25180 if test $ac_lo -le $ac_mid; then
25181 ac_lo= ac_hi=
25182 break
25184 ac_mid=`expr 2 '*' $ac_mid + 1`
25187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25188 done
25189 else
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 cat >conftest.$ac_ext <<_ACEOF
25194 /* confdefs.h. */
25195 _ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h. */
25199 $ac_includes_default
25200 typedef unsigned long long ac__type_sizeof_;
25202 main ()
25204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25205 test_array [0] = 0
25208 return 0;
25210 _ACEOF
25211 rm -f conftest.$ac_objext
25212 if { (ac_try="$ac_compile"
25213 case "(($ac_try" in
25214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215 *) ac_try_echo=$ac_try;;
25216 esac
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218 (eval "$ac_compile") 2>conftest.er1
25219 ac_status=$?
25220 grep -v '^ *+' conftest.er1 >conftest.err
25221 rm -f conftest.er1
25222 cat conftest.err >&5
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } && {
25225 test -z "$ac_c_werror_flag" ||
25226 test ! -s conftest.err
25227 } && test -s conftest.$ac_objext; then
25228 ac_hi=-1 ac_mid=-1
25229 while :; do
25230 cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h. */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h. */
25236 $ac_includes_default
25237 typedef unsigned long long ac__type_sizeof_;
25239 main ()
25241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25242 test_array [0] = 0
25245 return 0;
25247 _ACEOF
25248 rm -f conftest.$ac_objext
25249 if { (ac_try="$ac_compile"
25250 case "(($ac_try" in
25251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252 *) ac_try_echo=$ac_try;;
25253 esac
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255 (eval "$ac_compile") 2>conftest.er1
25256 ac_status=$?
25257 grep -v '^ *+' conftest.er1 >conftest.err
25258 rm -f conftest.er1
25259 cat conftest.err >&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); } && {
25262 test -z "$ac_c_werror_flag" ||
25263 test ! -s conftest.err
25264 } && test -s conftest.$ac_objext; then
25265 ac_lo=$ac_mid; break
25266 else
25267 echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25270 ac_hi=`expr '(' $ac_mid ')' - 1`
25271 if test $ac_mid -le $ac_hi; then
25272 ac_lo= ac_hi=
25273 break
25275 ac_mid=`expr 2 '*' $ac_mid`
25278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25279 done
25280 else
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25284 ac_lo= ac_hi=
25287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25291 # Binary search between lo and hi bounds.
25292 while test "x$ac_lo" != "x$ac_hi"; do
25293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25294 cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h. */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 $ac_includes_default
25301 typedef unsigned long long ac__type_sizeof_;
25303 main ()
25305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25306 test_array [0] = 0
25309 return 0;
25311 _ACEOF
25312 rm -f conftest.$ac_objext
25313 if { (ac_try="$ac_compile"
25314 case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25317 esac
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319 (eval "$ac_compile") 2>conftest.er1
25320 ac_status=$?
25321 grep -v '^ *+' conftest.er1 >conftest.err
25322 rm -f conftest.er1
25323 cat conftest.err >&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } && {
25326 test -z "$ac_c_werror_flag" ||
25327 test ! -s conftest.err
25328 } && test -s conftest.$ac_objext; then
25329 ac_hi=$ac_mid
25330 else
25331 echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25334 ac_lo=`expr '(' $ac_mid ')' + 1`
25337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338 done
25339 case $ac_lo in
25340 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
25341 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
25342 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25343 See \`config.log' for more details." >&5
25344 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25345 See \`config.log' for more details." >&2;}
25346 { (exit 77); exit 77; }; }
25347 else
25348 ac_cv_sizeof_unsigned_long_long=0
25349 fi ;;
25350 esac
25351 else
25352 cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h. */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 $ac_includes_default
25359 typedef unsigned long long ac__type_sizeof_;
25360 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25361 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25362 #include <stdio.h>
25363 #include <stdlib.h>
25365 main ()
25368 FILE *f = fopen ("conftest.val", "w");
25369 if (! f)
25370 return 1;
25371 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25373 long int i = longval ();
25374 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25375 return 1;
25376 fprintf (f, "%ld\n", i);
25378 else
25380 unsigned long int i = ulongval ();
25381 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25382 return 1;
25383 fprintf (f, "%lu\n", i);
25385 return ferror (f) || fclose (f) != 0;
25388 return 0;
25390 _ACEOF
25391 rm -f conftest$ac_exeext
25392 if { (ac_try="$ac_link"
25393 case "(($ac_try" in
25394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25395 *) ac_try_echo=$ac_try;;
25396 esac
25397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25398 (eval "$ac_link") 2>&5
25399 ac_status=$?
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25402 { (case "(($ac_try" in
25403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404 *) ac_try_echo=$ac_try;;
25405 esac
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407 (eval "$ac_try") 2>&5
25408 ac_status=$?
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25412 else
25413 echo "$as_me: program exited with status $ac_status" >&5
25414 echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25417 ( exit $ac_status )
25418 if test "$ac_cv_type_unsigned_long_long" = yes; then
25419 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25420 See \`config.log' for more details." >&5
25421 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25422 See \`config.log' for more details." >&2;}
25423 { (exit 77); exit 77; }; }
25424 else
25425 ac_cv_sizeof_unsigned_long_long=0
25428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25430 rm -f conftest.val
25432 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
25433 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
25437 cat >>confdefs.h <<_ACEOF
25438 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25439 _ACEOF
25442 { echo "$as_me:$LINENO: checking for int *" >&5
25443 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25444 if test "${ac_cv_type_int_p+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447 cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h. */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 $ac_includes_default
25454 typedef int * ac__type_new_;
25456 main ()
25458 if ((ac__type_new_ *) 0)
25459 return 0;
25460 if (sizeof (ac__type_new_))
25461 return 0;
25463 return 0;
25465 _ACEOF
25466 rm -f conftest.$ac_objext
25467 if { (ac_try="$ac_compile"
25468 case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_compile") 2>conftest.er1
25474 ac_status=$?
25475 grep -v '^ *+' conftest.er1 >conftest.err
25476 rm -f conftest.er1
25477 cat conftest.err >&5
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } && {
25480 test -z "$ac_c_werror_flag" ||
25481 test ! -s conftest.err
25482 } && test -s conftest.$ac_objext; then
25483 ac_cv_type_int_p=yes
25484 else
25485 echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25488 ac_cv_type_int_p=no
25491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25494 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25496 # The cast to long int works around a bug in the HP C Compiler
25497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25499 # This bug is HP SR number 8606223364.
25500 { echo "$as_me:$LINENO: checking size of int *" >&5
25501 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25502 if test "${ac_cv_sizeof_int_p+set}" = set; then
25503 echo $ECHO_N "(cached) $ECHO_C" >&6
25504 else
25505 if test "$cross_compiling" = yes; then
25506 # Depending upon the size, compute the lo and hi bounds.
25507 cat >conftest.$ac_ext <<_ACEOF
25508 /* confdefs.h. */
25509 _ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h. */
25513 $ac_includes_default
25514 typedef int * ac__type_sizeof_;
25516 main ()
25518 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25519 test_array [0] = 0
25522 return 0;
25524 _ACEOF
25525 rm -f conftest.$ac_objext
25526 if { (ac_try="$ac_compile"
25527 case "(($ac_try" in
25528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25529 *) ac_try_echo=$ac_try;;
25530 esac
25531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25532 (eval "$ac_compile") 2>conftest.er1
25533 ac_status=$?
25534 grep -v '^ *+' conftest.er1 >conftest.err
25535 rm -f conftest.er1
25536 cat conftest.err >&5
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); } && {
25539 test -z "$ac_c_werror_flag" ||
25540 test ! -s conftest.err
25541 } && test -s conftest.$ac_objext; then
25542 ac_lo=0 ac_mid=0
25543 while :; do
25544 cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h. */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h. */
25550 $ac_includes_default
25551 typedef int * ac__type_sizeof_;
25553 main ()
25555 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25556 test_array [0] = 0
25559 return 0;
25561 _ACEOF
25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566 *) ac_try_echo=$ac_try;;
25567 esac
25568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25569 (eval "$ac_compile") 2>conftest.er1
25570 ac_status=$?
25571 grep -v '^ *+' conftest.er1 >conftest.err
25572 rm -f conftest.er1
25573 cat conftest.err >&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } && {
25576 test -z "$ac_c_werror_flag" ||
25577 test ! -s conftest.err
25578 } && test -s conftest.$ac_objext; then
25579 ac_hi=$ac_mid; break
25580 else
25581 echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25584 ac_lo=`expr $ac_mid + 1`
25585 if test $ac_lo -le $ac_mid; then
25586 ac_lo= ac_hi=
25587 break
25589 ac_mid=`expr 2 '*' $ac_mid + 1`
25592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 done
25594 else
25595 echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25598 cat >conftest.$ac_ext <<_ACEOF
25599 /* confdefs.h. */
25600 _ACEOF
25601 cat confdefs.h >>conftest.$ac_ext
25602 cat >>conftest.$ac_ext <<_ACEOF
25603 /* end confdefs.h. */
25604 $ac_includes_default
25605 typedef int * ac__type_sizeof_;
25607 main ()
25609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25610 test_array [0] = 0
25613 return 0;
25615 _ACEOF
25616 rm -f conftest.$ac_objext
25617 if { (ac_try="$ac_compile"
25618 case "(($ac_try" in
25619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620 *) ac_try_echo=$ac_try;;
25621 esac
25622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25623 (eval "$ac_compile") 2>conftest.er1
25624 ac_status=$?
25625 grep -v '^ *+' conftest.er1 >conftest.err
25626 rm -f conftest.er1
25627 cat conftest.err >&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } && {
25630 test -z "$ac_c_werror_flag" ||
25631 test ! -s conftest.err
25632 } && test -s conftest.$ac_objext; then
25633 ac_hi=-1 ac_mid=-1
25634 while :; do
25635 cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h. */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h. */
25641 $ac_includes_default
25642 typedef int * ac__type_sizeof_;
25644 main ()
25646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25647 test_array [0] = 0
25650 return 0;
25652 _ACEOF
25653 rm -f conftest.$ac_objext
25654 if { (ac_try="$ac_compile"
25655 case "(($ac_try" in
25656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657 *) ac_try_echo=$ac_try;;
25658 esac
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660 (eval "$ac_compile") 2>conftest.er1
25661 ac_status=$?
25662 grep -v '^ *+' conftest.er1 >conftest.err
25663 rm -f conftest.er1
25664 cat conftest.err >&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); } && {
25667 test -z "$ac_c_werror_flag" ||
25668 test ! -s conftest.err
25669 } && test -s conftest.$ac_objext; then
25670 ac_lo=$ac_mid; break
25671 else
25672 echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25675 ac_hi=`expr '(' $ac_mid ')' - 1`
25676 if test $ac_mid -le $ac_hi; then
25677 ac_lo= ac_hi=
25678 break
25680 ac_mid=`expr 2 '*' $ac_mid`
25683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25684 done
25685 else
25686 echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 ac_lo= ac_hi=
25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25696 # Binary search between lo and hi bounds.
25697 while test "x$ac_lo" != "x$ac_hi"; do
25698 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25699 cat >conftest.$ac_ext <<_ACEOF
25700 /* confdefs.h. */
25701 _ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h. */
25705 $ac_includes_default
25706 typedef int * ac__type_sizeof_;
25708 main ()
25710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25711 test_array [0] = 0
25714 return 0;
25716 _ACEOF
25717 rm -f conftest.$ac_objext
25718 if { (ac_try="$ac_compile"
25719 case "(($ac_try" in
25720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25721 *) ac_try_echo=$ac_try;;
25722 esac
25723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25724 (eval "$ac_compile") 2>conftest.er1
25725 ac_status=$?
25726 grep -v '^ *+' conftest.er1 >conftest.err
25727 rm -f conftest.er1
25728 cat conftest.err >&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } && {
25731 test -z "$ac_c_werror_flag" ||
25732 test ! -s conftest.err
25733 } && test -s conftest.$ac_objext; then
25734 ac_hi=$ac_mid
25735 else
25736 echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25739 ac_lo=`expr '(' $ac_mid ')' + 1`
25742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 done
25744 case $ac_lo in
25745 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25746 '') if test "$ac_cv_type_int_p" = yes; then
25747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25748 See \`config.log' for more details." >&5
25749 echo "$as_me: error: cannot compute sizeof (int *)
25750 See \`config.log' for more details." >&2;}
25751 { (exit 77); exit 77; }; }
25752 else
25753 ac_cv_sizeof_int_p=0
25754 fi ;;
25755 esac
25756 else
25757 cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h. */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h. */
25763 $ac_includes_default
25764 typedef int * ac__type_sizeof_;
25765 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25766 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25767 #include <stdio.h>
25768 #include <stdlib.h>
25770 main ()
25773 FILE *f = fopen ("conftest.val", "w");
25774 if (! f)
25775 return 1;
25776 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25778 long int i = longval ();
25779 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25780 return 1;
25781 fprintf (f, "%ld\n", i);
25783 else
25785 unsigned long int i = ulongval ();
25786 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25787 return 1;
25788 fprintf (f, "%lu\n", i);
25790 return ferror (f) || fclose (f) != 0;
25793 return 0;
25795 _ACEOF
25796 rm -f conftest$ac_exeext
25797 if { (ac_try="$ac_link"
25798 case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25801 esac
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803 (eval "$ac_link") 2>&5
25804 ac_status=$?
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25807 { (case "(($ac_try" in
25808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25809 *) ac_try_echo=$ac_try;;
25810 esac
25811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25812 (eval "$ac_try") 2>&5
25813 ac_status=$?
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); }; }; then
25816 ac_cv_sizeof_int_p=`cat conftest.val`
25817 else
25818 echo "$as_me: program exited with status $ac_status" >&5
25819 echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25822 ( exit $ac_status )
25823 if test "$ac_cv_type_int_p" = yes; then
25824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25825 See \`config.log' for more details." >&5
25826 echo "$as_me: error: cannot compute sizeof (int *)
25827 See \`config.log' for more details." >&2;}
25828 { (exit 77); exit 77; }; }
25829 else
25830 ac_cv_sizeof_int_p=0
25833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25835 rm -f conftest.val
25837 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25838 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25842 cat >>confdefs.h <<_ACEOF
25843 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25844 _ACEOF
25848 for ac_func in getenv
25850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25854 echo $ECHO_N "(cached) $ECHO_C" >&6
25855 else
25856 cat >conftest.$ac_ext <<_ACEOF
25857 /* confdefs.h. */
25858 _ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h. */
25862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25864 #define $ac_func innocuous_$ac_func
25866 /* System header to define __stub macros and hopefully few prototypes,
25867 which can conflict with char $ac_func (); below.
25868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25869 <limits.h> exists even on freestanding compilers. */
25871 #ifdef __STDC__
25872 # include <limits.h>
25873 #else
25874 # include <assert.h>
25875 #endif
25877 #undef $ac_func
25879 /* Override any GCC internal prototype to avoid an error.
25880 Use char because int might match the return type of a GCC
25881 builtin and then its argument prototype would still apply. */
25882 #ifdef __cplusplus
25883 extern "C"
25884 #endif
25885 char $ac_func ();
25886 /* The GNU C library defines this for functions which it implements
25887 to always fail with ENOSYS. Some functions are actually named
25888 something starting with __ and the normal name is an alias. */
25889 #if defined __stub_$ac_func || defined __stub___$ac_func
25890 choke me
25891 #endif
25894 main ()
25896 return $ac_func ();
25898 return 0;
25900 _ACEOF
25901 rm -f conftest.$ac_objext conftest$ac_exeext
25902 if { (ac_try="$ac_link"
25903 case "(($ac_try" in
25904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25905 *) ac_try_echo=$ac_try;;
25906 esac
25907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25908 (eval "$ac_link") 2>conftest.er1
25909 ac_status=$?
25910 grep -v '^ *+' conftest.er1 >conftest.err
25911 rm -f conftest.er1
25912 cat conftest.err >&5
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); } && {
25915 test -z "$ac_c_werror_flag" ||
25916 test ! -s conftest.err
25917 } && test -s conftest$ac_exeext &&
25918 $as_test_x conftest$ac_exeext; then
25919 eval "$as_ac_var=yes"
25920 else
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25924 eval "$as_ac_var=no"
25927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25928 conftest$ac_exeext conftest.$ac_ext
25930 ac_res=`eval echo '${'$as_ac_var'}'`
25931 { echo "$as_me:$LINENO: result: $ac_res" >&5
25932 echo "${ECHO_T}$ac_res" >&6; }
25933 if test `eval echo '${'$as_ac_var'}'` = yes; then
25934 cat >>confdefs.h <<_ACEOF
25935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25936 _ACEOF
25937 cat >>confdefs.h <<\_ACEOF
25938 #define BX_HAVE_GETENV 1
25939 _ACEOF
25942 done
25945 for ac_func in setenv
25947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25951 echo $ECHO_N "(cached) $ECHO_C" >&6
25952 else
25953 cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h. */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h. */
25959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25961 #define $ac_func innocuous_$ac_func
25963 /* System header to define __stub macros and hopefully few prototypes,
25964 which can conflict with char $ac_func (); below.
25965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25966 <limits.h> exists even on freestanding compilers. */
25968 #ifdef __STDC__
25969 # include <limits.h>
25970 #else
25971 # include <assert.h>
25972 #endif
25974 #undef $ac_func
25976 /* Override any GCC internal prototype to avoid an error.
25977 Use char because int might match the return type of a GCC
25978 builtin and then its argument prototype would still apply. */
25979 #ifdef __cplusplus
25980 extern "C"
25981 #endif
25982 char $ac_func ();
25983 /* The GNU C library defines this for functions which it implements
25984 to always fail with ENOSYS. Some functions are actually named
25985 something starting with __ and the normal name is an alias. */
25986 #if defined __stub_$ac_func || defined __stub___$ac_func
25987 choke me
25988 #endif
25991 main ()
25993 return $ac_func ();
25995 return 0;
25997 _ACEOF
25998 rm -f conftest.$ac_objext conftest$ac_exeext
25999 if { (ac_try="$ac_link"
26000 case "(($ac_try" in
26001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002 *) ac_try_echo=$ac_try;;
26003 esac
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005 (eval "$ac_link") 2>conftest.er1
26006 ac_status=$?
26007 grep -v '^ *+' conftest.er1 >conftest.err
26008 rm -f conftest.er1
26009 cat conftest.err >&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && {
26012 test -z "$ac_c_werror_flag" ||
26013 test ! -s conftest.err
26014 } && test -s conftest$ac_exeext &&
26015 $as_test_x conftest$ac_exeext; then
26016 eval "$as_ac_var=yes"
26017 else
26018 echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26021 eval "$as_ac_var=no"
26024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26025 conftest$ac_exeext conftest.$ac_ext
26027 ac_res=`eval echo '${'$as_ac_var'}'`
26028 { echo "$as_me:$LINENO: result: $ac_res" >&5
26029 echo "${ECHO_T}$ac_res" >&6; }
26030 if test `eval echo '${'$as_ac_var'}'` = yes; then
26031 cat >>confdefs.h <<_ACEOF
26032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26033 _ACEOF
26034 cat >>confdefs.h <<\_ACEOF
26035 #define BX_HAVE_SETENV 1
26036 _ACEOF
26039 done
26042 for ac_func in select
26044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26048 echo $ECHO_N "(cached) $ECHO_C" >&6
26049 else
26050 cat >conftest.$ac_ext <<_ACEOF
26051 /* confdefs.h. */
26052 _ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26058 #define $ac_func innocuous_$ac_func
26060 /* System header to define __stub macros and hopefully few prototypes,
26061 which can conflict with char $ac_func (); below.
26062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26063 <limits.h> exists even on freestanding compilers. */
26065 #ifdef __STDC__
26066 # include <limits.h>
26067 #else
26068 # include <assert.h>
26069 #endif
26071 #undef $ac_func
26073 /* Override any GCC internal prototype to avoid an error.
26074 Use char because int might match the return type of a GCC
26075 builtin and then its argument prototype would still apply. */
26076 #ifdef __cplusplus
26077 extern "C"
26078 #endif
26079 char $ac_func ();
26080 /* The GNU C library defines this for functions which it implements
26081 to always fail with ENOSYS. Some functions are actually named
26082 something starting with __ and the normal name is an alias. */
26083 #if defined __stub_$ac_func || defined __stub___$ac_func
26084 choke me
26085 #endif
26088 main ()
26090 return $ac_func ();
26092 return 0;
26094 _ACEOF
26095 rm -f conftest.$ac_objext conftest$ac_exeext
26096 if { (ac_try="$ac_link"
26097 case "(($ac_try" in
26098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26099 *) ac_try_echo=$ac_try;;
26100 esac
26101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26102 (eval "$ac_link") 2>conftest.er1
26103 ac_status=$?
26104 grep -v '^ *+' conftest.er1 >conftest.err
26105 rm -f conftest.er1
26106 cat conftest.err >&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && {
26109 test -z "$ac_c_werror_flag" ||
26110 test ! -s conftest.err
26111 } && test -s conftest$ac_exeext &&
26112 $as_test_x conftest$ac_exeext; then
26113 eval "$as_ac_var=yes"
26114 else
26115 echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26118 eval "$as_ac_var=no"
26121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26122 conftest$ac_exeext conftest.$ac_ext
26124 ac_res=`eval echo '${'$as_ac_var'}'`
26125 { echo "$as_me:$LINENO: result: $ac_res" >&5
26126 echo "${ECHO_T}$ac_res" >&6; }
26127 if test `eval echo '${'$as_ac_var'}'` = yes; then
26128 cat >>confdefs.h <<_ACEOF
26129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26130 _ACEOF
26131 cat >>confdefs.h <<\_ACEOF
26132 #define BX_HAVE_SELECT 1
26133 _ACEOF
26136 done
26139 for ac_func in snprintf
26141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26145 echo $ECHO_N "(cached) $ECHO_C" >&6
26146 else
26147 cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h. */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26155 #define $ac_func innocuous_$ac_func
26157 /* System header to define __stub macros and hopefully few prototypes,
26158 which can conflict with char $ac_func (); below.
26159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26160 <limits.h> exists even on freestanding compilers. */
26162 #ifdef __STDC__
26163 # include <limits.h>
26164 #else
26165 # include <assert.h>
26166 #endif
26168 #undef $ac_func
26170 /* Override any GCC internal prototype to avoid an error.
26171 Use char because int might match the return type of a GCC
26172 builtin and then its argument prototype would still apply. */
26173 #ifdef __cplusplus
26174 extern "C"
26175 #endif
26176 char $ac_func ();
26177 /* The GNU C library defines this for functions which it implements
26178 to always fail with ENOSYS. Some functions are actually named
26179 something starting with __ and the normal name is an alias. */
26180 #if defined __stub_$ac_func || defined __stub___$ac_func
26181 choke me
26182 #endif
26185 main ()
26187 return $ac_func ();
26189 return 0;
26191 _ACEOF
26192 rm -f conftest.$ac_objext conftest$ac_exeext
26193 if { (ac_try="$ac_link"
26194 case "(($ac_try" in
26195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196 *) ac_try_echo=$ac_try;;
26197 esac
26198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26199 (eval "$ac_link") 2>conftest.er1
26200 ac_status=$?
26201 grep -v '^ *+' conftest.er1 >conftest.err
26202 rm -f conftest.er1
26203 cat conftest.err >&5
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); } && {
26206 test -z "$ac_c_werror_flag" ||
26207 test ! -s conftest.err
26208 } && test -s conftest$ac_exeext &&
26209 $as_test_x conftest$ac_exeext; then
26210 eval "$as_ac_var=yes"
26211 else
26212 echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26215 eval "$as_ac_var=no"
26218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26219 conftest$ac_exeext conftest.$ac_ext
26221 ac_res=`eval echo '${'$as_ac_var'}'`
26222 { echo "$as_me:$LINENO: result: $ac_res" >&5
26223 echo "${ECHO_T}$ac_res" >&6; }
26224 if test `eval echo '${'$as_ac_var'}'` = yes; then
26225 cat >>confdefs.h <<_ACEOF
26226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26227 _ACEOF
26228 cat >>confdefs.h <<\_ACEOF
26229 #define BX_HAVE_SNPRINTF 1
26230 _ACEOF
26233 done
26236 for ac_func in vsnprintf
26238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
26243 else
26244 cat >conftest.$ac_ext <<_ACEOF
26245 /* confdefs.h. */
26246 _ACEOF
26247 cat confdefs.h >>conftest.$ac_ext
26248 cat >>conftest.$ac_ext <<_ACEOF
26249 /* end confdefs.h. */
26250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26252 #define $ac_func innocuous_$ac_func
26254 /* System header to define __stub macros and hopefully few prototypes,
26255 which can conflict with char $ac_func (); below.
26256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26257 <limits.h> exists even on freestanding compilers. */
26259 #ifdef __STDC__
26260 # include <limits.h>
26261 #else
26262 # include <assert.h>
26263 #endif
26265 #undef $ac_func
26267 /* Override any GCC internal prototype to avoid an error.
26268 Use char because int might match the return type of a GCC
26269 builtin and then its argument prototype would still apply. */
26270 #ifdef __cplusplus
26271 extern "C"
26272 #endif
26273 char $ac_func ();
26274 /* The GNU C library defines this for functions which it implements
26275 to always fail with ENOSYS. Some functions are actually named
26276 something starting with __ and the normal name is an alias. */
26277 #if defined __stub_$ac_func || defined __stub___$ac_func
26278 choke me
26279 #endif
26282 main ()
26284 return $ac_func ();
26286 return 0;
26288 _ACEOF
26289 rm -f conftest.$ac_objext conftest$ac_exeext
26290 if { (ac_try="$ac_link"
26291 case "(($ac_try" in
26292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26293 *) ac_try_echo=$ac_try;;
26294 esac
26295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26296 (eval "$ac_link") 2>conftest.er1
26297 ac_status=$?
26298 grep -v '^ *+' conftest.er1 >conftest.err
26299 rm -f conftest.er1
26300 cat conftest.err >&5
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } && {
26303 test -z "$ac_c_werror_flag" ||
26304 test ! -s conftest.err
26305 } && test -s conftest$ac_exeext &&
26306 $as_test_x conftest$ac_exeext; then
26307 eval "$as_ac_var=yes"
26308 else
26309 echo "$as_me: failed program was:" >&5
26310 sed 's/^/| /' conftest.$ac_ext >&5
26312 eval "$as_ac_var=no"
26315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26316 conftest$ac_exeext conftest.$ac_ext
26318 ac_res=`eval echo '${'$as_ac_var'}'`
26319 { echo "$as_me:$LINENO: result: $ac_res" >&5
26320 echo "${ECHO_T}$ac_res" >&6; }
26321 if test `eval echo '${'$as_ac_var'}'` = yes; then
26322 cat >>confdefs.h <<_ACEOF
26323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26324 _ACEOF
26325 cat >>confdefs.h <<\_ACEOF
26326 #define BX_HAVE_VSNPRINTF 1
26327 _ACEOF
26330 done
26333 for ac_func in strtoull
26335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26340 else
26341 cat >conftest.$ac_ext <<_ACEOF
26342 /* confdefs.h. */
26343 _ACEOF
26344 cat confdefs.h >>conftest.$ac_ext
26345 cat >>conftest.$ac_ext <<_ACEOF
26346 /* end confdefs.h. */
26347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26349 #define $ac_func innocuous_$ac_func
26351 /* System header to define __stub macros and hopefully few prototypes,
26352 which can conflict with char $ac_func (); below.
26353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26354 <limits.h> exists even on freestanding compilers. */
26356 #ifdef __STDC__
26357 # include <limits.h>
26358 #else
26359 # include <assert.h>
26360 #endif
26362 #undef $ac_func
26364 /* Override any GCC internal prototype to avoid an error.
26365 Use char because int might match the return type of a GCC
26366 builtin and then its argument prototype would still apply. */
26367 #ifdef __cplusplus
26368 extern "C"
26369 #endif
26370 char $ac_func ();
26371 /* The GNU C library defines this for functions which it implements
26372 to always fail with ENOSYS. Some functions are actually named
26373 something starting with __ and the normal name is an alias. */
26374 #if defined __stub_$ac_func || defined __stub___$ac_func
26375 choke me
26376 #endif
26379 main ()
26381 return $ac_func ();
26383 return 0;
26385 _ACEOF
26386 rm -f conftest.$ac_objext conftest$ac_exeext
26387 if { (ac_try="$ac_link"
26388 case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26391 esac
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_link") 2>conftest.er1
26394 ac_status=$?
26395 grep -v '^ *+' conftest.er1 >conftest.err
26396 rm -f conftest.er1
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } && {
26400 test -z "$ac_c_werror_flag" ||
26401 test ! -s conftest.err
26402 } && test -s conftest$ac_exeext &&
26403 $as_test_x conftest$ac_exeext; then
26404 eval "$as_ac_var=yes"
26405 else
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26409 eval "$as_ac_var=no"
26412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26413 conftest$ac_exeext conftest.$ac_ext
26415 ac_res=`eval echo '${'$as_ac_var'}'`
26416 { echo "$as_me:$LINENO: result: $ac_res" >&5
26417 echo "${ECHO_T}$ac_res" >&6; }
26418 if test `eval echo '${'$as_ac_var'}'` = yes; then
26419 cat >>confdefs.h <<_ACEOF
26420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26421 _ACEOF
26422 cat >>confdefs.h <<\_ACEOF
26423 #define BX_HAVE_STRTOULL 1
26424 _ACEOF
26427 done
26430 for ac_func in strtouq
26432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 else
26438 cat >conftest.$ac_ext <<_ACEOF
26439 /* confdefs.h. */
26440 _ACEOF
26441 cat confdefs.h >>conftest.$ac_ext
26442 cat >>conftest.$ac_ext <<_ACEOF
26443 /* end confdefs.h. */
26444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26446 #define $ac_func innocuous_$ac_func
26448 /* System header to define __stub macros and hopefully few prototypes,
26449 which can conflict with char $ac_func (); below.
26450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26451 <limits.h> exists even on freestanding compilers. */
26453 #ifdef __STDC__
26454 # include <limits.h>
26455 #else
26456 # include <assert.h>
26457 #endif
26459 #undef $ac_func
26461 /* Override any GCC internal prototype to avoid an error.
26462 Use char because int might match the return type of a GCC
26463 builtin and then its argument prototype would still apply. */
26464 #ifdef __cplusplus
26465 extern "C"
26466 #endif
26467 char $ac_func ();
26468 /* The GNU C library defines this for functions which it implements
26469 to always fail with ENOSYS. Some functions are actually named
26470 something starting with __ and the normal name is an alias. */
26471 #if defined __stub_$ac_func || defined __stub___$ac_func
26472 choke me
26473 #endif
26476 main ()
26478 return $ac_func ();
26480 return 0;
26482 _ACEOF
26483 rm -f conftest.$ac_objext conftest$ac_exeext
26484 if { (ac_try="$ac_link"
26485 case "(($ac_try" in
26486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26487 *) ac_try_echo=$ac_try;;
26488 esac
26489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26490 (eval "$ac_link") 2>conftest.er1
26491 ac_status=$?
26492 grep -v '^ *+' conftest.er1 >conftest.err
26493 rm -f conftest.er1
26494 cat conftest.err >&5
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } && {
26497 test -z "$ac_c_werror_flag" ||
26498 test ! -s conftest.err
26499 } && test -s conftest$ac_exeext &&
26500 $as_test_x conftest$ac_exeext; then
26501 eval "$as_ac_var=yes"
26502 else
26503 echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26506 eval "$as_ac_var=no"
26509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26510 conftest$ac_exeext conftest.$ac_ext
26512 ac_res=`eval echo '${'$as_ac_var'}'`
26513 { echo "$as_me:$LINENO: result: $ac_res" >&5
26514 echo "${ECHO_T}$ac_res" >&6; }
26515 if test `eval echo '${'$as_ac_var'}'` = yes; then
26516 cat >>confdefs.h <<_ACEOF
26517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26518 _ACEOF
26519 cat >>confdefs.h <<\_ACEOF
26520 #define BX_HAVE_STRTOUQ 1
26521 _ACEOF
26524 done
26527 for ac_func in strdup
26529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535 cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h. */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h. */
26541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26543 #define $ac_func innocuous_$ac_func
26545 /* System header to define __stub macros and hopefully few prototypes,
26546 which can conflict with char $ac_func (); below.
26547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26548 <limits.h> exists even on freestanding compilers. */
26550 #ifdef __STDC__
26551 # include <limits.h>
26552 #else
26553 # include <assert.h>
26554 #endif
26556 #undef $ac_func
26558 /* Override any GCC internal prototype to avoid an error.
26559 Use char because int might match the return type of a GCC
26560 builtin and then its argument prototype would still apply. */
26561 #ifdef __cplusplus
26562 extern "C"
26563 #endif
26564 char $ac_func ();
26565 /* The GNU C library defines this for functions which it implements
26566 to always fail with ENOSYS. Some functions are actually named
26567 something starting with __ and the normal name is an alias. */
26568 #if defined __stub_$ac_func || defined __stub___$ac_func
26569 choke me
26570 #endif
26573 main ()
26575 return $ac_func ();
26577 return 0;
26579 _ACEOF
26580 rm -f conftest.$ac_objext conftest$ac_exeext
26581 if { (ac_try="$ac_link"
26582 case "(($ac_try" in
26583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584 *) ac_try_echo=$ac_try;;
26585 esac
26586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26587 (eval "$ac_link") 2>conftest.er1
26588 ac_status=$?
26589 grep -v '^ *+' conftest.er1 >conftest.err
26590 rm -f conftest.er1
26591 cat conftest.err >&5
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); } && {
26594 test -z "$ac_c_werror_flag" ||
26595 test ! -s conftest.err
26596 } && test -s conftest$ac_exeext &&
26597 $as_test_x conftest$ac_exeext; then
26598 eval "$as_ac_var=yes"
26599 else
26600 echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26603 eval "$as_ac_var=no"
26606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26607 conftest$ac_exeext conftest.$ac_ext
26609 ac_res=`eval echo '${'$as_ac_var'}'`
26610 { echo "$as_me:$LINENO: result: $ac_res" >&5
26611 echo "${ECHO_T}$ac_res" >&6; }
26612 if test `eval echo '${'$as_ac_var'}'` = yes; then
26613 cat >>confdefs.h <<_ACEOF
26614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26615 _ACEOF
26616 cat >>confdefs.h <<\_ACEOF
26617 #define BX_HAVE_STRDUP 1
26618 _ACEOF
26621 done
26624 for ac_func in strrev
26626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26630 echo $ECHO_N "(cached) $ECHO_C" >&6
26631 else
26632 cat >conftest.$ac_ext <<_ACEOF
26633 /* confdefs.h. */
26634 _ACEOF
26635 cat confdefs.h >>conftest.$ac_ext
26636 cat >>conftest.$ac_ext <<_ACEOF
26637 /* end confdefs.h. */
26638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26640 #define $ac_func innocuous_$ac_func
26642 /* System header to define __stub macros and hopefully few prototypes,
26643 which can conflict with char $ac_func (); below.
26644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26645 <limits.h> exists even on freestanding compilers. */
26647 #ifdef __STDC__
26648 # include <limits.h>
26649 #else
26650 # include <assert.h>
26651 #endif
26653 #undef $ac_func
26655 /* Override any GCC internal prototype to avoid an error.
26656 Use char because int might match the return type of a GCC
26657 builtin and then its argument prototype would still apply. */
26658 #ifdef __cplusplus
26659 extern "C"
26660 #endif
26661 char $ac_func ();
26662 /* The GNU C library defines this for functions which it implements
26663 to always fail with ENOSYS. Some functions are actually named
26664 something starting with __ and the normal name is an alias. */
26665 #if defined __stub_$ac_func || defined __stub___$ac_func
26666 choke me
26667 #endif
26670 main ()
26672 return $ac_func ();
26674 return 0;
26676 _ACEOF
26677 rm -f conftest.$ac_objext conftest$ac_exeext
26678 if { (ac_try="$ac_link"
26679 case "(($ac_try" in
26680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681 *) ac_try_echo=$ac_try;;
26682 esac
26683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26684 (eval "$ac_link") 2>conftest.er1
26685 ac_status=$?
26686 grep -v '^ *+' conftest.er1 >conftest.err
26687 rm -f conftest.er1
26688 cat conftest.err >&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); } && {
26691 test -z "$ac_c_werror_flag" ||
26692 test ! -s conftest.err
26693 } && test -s conftest$ac_exeext &&
26694 $as_test_x conftest$ac_exeext; then
26695 eval "$as_ac_var=yes"
26696 else
26697 echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26700 eval "$as_ac_var=no"
26703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26704 conftest$ac_exeext conftest.$ac_ext
26706 ac_res=`eval echo '${'$as_ac_var'}'`
26707 { echo "$as_me:$LINENO: result: $ac_res" >&5
26708 echo "${ECHO_T}$ac_res" >&6; }
26709 if test `eval echo '${'$as_ac_var'}'` = yes; then
26710 cat >>confdefs.h <<_ACEOF
26711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26712 _ACEOF
26713 cat >>confdefs.h <<\_ACEOF
26714 #define BX_HAVE_STRREV 1
26715 _ACEOF
26718 done
26721 for ac_func in sleep
26723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26728 else
26729 cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h. */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26737 #define $ac_func innocuous_$ac_func
26739 /* System header to define __stub macros and hopefully few prototypes,
26740 which can conflict with char $ac_func (); below.
26741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26742 <limits.h> exists even on freestanding compilers. */
26744 #ifdef __STDC__
26745 # include <limits.h>
26746 #else
26747 # include <assert.h>
26748 #endif
26750 #undef $ac_func
26752 /* Override any GCC internal prototype to avoid an error.
26753 Use char because int might match the return type of a GCC
26754 builtin and then its argument prototype would still apply. */
26755 #ifdef __cplusplus
26756 extern "C"
26757 #endif
26758 char $ac_func ();
26759 /* The GNU C library defines this for functions which it implements
26760 to always fail with ENOSYS. Some functions are actually named
26761 something starting with __ and the normal name is an alias. */
26762 #if defined __stub_$ac_func || defined __stub___$ac_func
26763 choke me
26764 #endif
26767 main ()
26769 return $ac_func ();
26771 return 0;
26773 _ACEOF
26774 rm -f conftest.$ac_objext conftest$ac_exeext
26775 if { (ac_try="$ac_link"
26776 case "(($ac_try" in
26777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26778 *) ac_try_echo=$ac_try;;
26779 esac
26780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26781 (eval "$ac_link") 2>conftest.er1
26782 ac_status=$?
26783 grep -v '^ *+' conftest.er1 >conftest.err
26784 rm -f conftest.er1
26785 cat conftest.err >&5
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); } && {
26788 test -z "$ac_c_werror_flag" ||
26789 test ! -s conftest.err
26790 } && test -s conftest$ac_exeext &&
26791 $as_test_x conftest$ac_exeext; then
26792 eval "$as_ac_var=yes"
26793 else
26794 echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26797 eval "$as_ac_var=no"
26800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26801 conftest$ac_exeext conftest.$ac_ext
26803 ac_res=`eval echo '${'$as_ac_var'}'`
26804 { echo "$as_me:$LINENO: result: $ac_res" >&5
26805 echo "${ECHO_T}$ac_res" >&6; }
26806 if test `eval echo '${'$as_ac_var'}'` = yes; then
26807 cat >>confdefs.h <<_ACEOF
26808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26809 _ACEOF
26810 cat >>confdefs.h <<\_ACEOF
26811 #define BX_HAVE_SLEEP 1
26812 _ACEOF
26815 done
26818 for ac_func in usleep
26820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26824 echo $ECHO_N "(cached) $ECHO_C" >&6
26825 else
26826 cat >conftest.$ac_ext <<_ACEOF
26827 /* confdefs.h. */
26828 _ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h. */
26832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26834 #define $ac_func innocuous_$ac_func
26836 /* System header to define __stub macros and hopefully few prototypes,
26837 which can conflict with char $ac_func (); below.
26838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26839 <limits.h> exists even on freestanding compilers. */
26841 #ifdef __STDC__
26842 # include <limits.h>
26843 #else
26844 # include <assert.h>
26845 #endif
26847 #undef $ac_func
26849 /* Override any GCC internal prototype to avoid an error.
26850 Use char because int might match the return type of a GCC
26851 builtin and then its argument prototype would still apply. */
26852 #ifdef __cplusplus
26853 extern "C"
26854 #endif
26855 char $ac_func ();
26856 /* The GNU C library defines this for functions which it implements
26857 to always fail with ENOSYS. Some functions are actually named
26858 something starting with __ and the normal name is an alias. */
26859 #if defined __stub_$ac_func || defined __stub___$ac_func
26860 choke me
26861 #endif
26864 main ()
26866 return $ac_func ();
26868 return 0;
26870 _ACEOF
26871 rm -f conftest.$ac_objext conftest$ac_exeext
26872 if { (ac_try="$ac_link"
26873 case "(($ac_try" in
26874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26875 *) ac_try_echo=$ac_try;;
26876 esac
26877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878 (eval "$ac_link") 2>conftest.er1
26879 ac_status=$?
26880 grep -v '^ *+' conftest.er1 >conftest.err
26881 rm -f conftest.er1
26882 cat conftest.err >&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); } && {
26885 test -z "$ac_c_werror_flag" ||
26886 test ! -s conftest.err
26887 } && test -s conftest$ac_exeext &&
26888 $as_test_x conftest$ac_exeext; then
26889 eval "$as_ac_var=yes"
26890 else
26891 echo "$as_me: failed program was:" >&5
26892 sed 's/^/| /' conftest.$ac_ext >&5
26894 eval "$as_ac_var=no"
26897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26898 conftest$ac_exeext conftest.$ac_ext
26900 ac_res=`eval echo '${'$as_ac_var'}'`
26901 { echo "$as_me:$LINENO: result: $ac_res" >&5
26902 echo "${ECHO_T}$ac_res" >&6; }
26903 if test `eval echo '${'$as_ac_var'}'` = yes; then
26904 cat >>confdefs.h <<_ACEOF
26905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26906 _ACEOF
26907 cat >>confdefs.h <<\_ACEOF
26908 #define BX_HAVE_USLEEP 1
26909 _ACEOF
26912 done
26915 for ac_func in nanosleep
26917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26921 echo $ECHO_N "(cached) $ECHO_C" >&6
26922 else
26923 cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h. */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26931 #define $ac_func innocuous_$ac_func
26933 /* System header to define __stub macros and hopefully few prototypes,
26934 which can conflict with char $ac_func (); below.
26935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26936 <limits.h> exists even on freestanding compilers. */
26938 #ifdef __STDC__
26939 # include <limits.h>
26940 #else
26941 # include <assert.h>
26942 #endif
26944 #undef $ac_func
26946 /* Override any GCC internal prototype to avoid an error.
26947 Use char because int might match the return type of a GCC
26948 builtin and then its argument prototype would still apply. */
26949 #ifdef __cplusplus
26950 extern "C"
26951 #endif
26952 char $ac_func ();
26953 /* The GNU C library defines this for functions which it implements
26954 to always fail with ENOSYS. Some functions are actually named
26955 something starting with __ and the normal name is an alias. */
26956 #if defined __stub_$ac_func || defined __stub___$ac_func
26957 choke me
26958 #endif
26961 main ()
26963 return $ac_func ();
26965 return 0;
26967 _ACEOF
26968 rm -f conftest.$ac_objext conftest$ac_exeext
26969 if { (ac_try="$ac_link"
26970 case "(($ac_try" in
26971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26972 *) ac_try_echo=$ac_try;;
26973 esac
26974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26975 (eval "$ac_link") 2>conftest.er1
26976 ac_status=$?
26977 grep -v '^ *+' conftest.er1 >conftest.err
26978 rm -f conftest.er1
26979 cat conftest.err >&5
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); } && {
26982 test -z "$ac_c_werror_flag" ||
26983 test ! -s conftest.err
26984 } && test -s conftest$ac_exeext &&
26985 $as_test_x conftest$ac_exeext; then
26986 eval "$as_ac_var=yes"
26987 else
26988 echo "$as_me: failed program was:" >&5
26989 sed 's/^/| /' conftest.$ac_ext >&5
26991 eval "$as_ac_var=no"
26994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26995 conftest$ac_exeext conftest.$ac_ext
26997 ac_res=`eval echo '${'$as_ac_var'}'`
26998 { echo "$as_me:$LINENO: result: $ac_res" >&5
26999 echo "${ECHO_T}$ac_res" >&6; }
27000 if test `eval echo '${'$as_ac_var'}'` = yes; then
27001 cat >>confdefs.h <<_ACEOF
27002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27003 _ACEOF
27004 cat >>confdefs.h <<\_ACEOF
27005 #define BX_HAVE_NANOSLEEP 1
27006 _ACEOF
27009 done
27012 for ac_func in abort
27014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27018 echo $ECHO_N "(cached) $ECHO_C" >&6
27019 else
27020 cat >conftest.$ac_ext <<_ACEOF
27021 /* confdefs.h. */
27022 _ACEOF
27023 cat confdefs.h >>conftest.$ac_ext
27024 cat >>conftest.$ac_ext <<_ACEOF
27025 /* end confdefs.h. */
27026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27028 #define $ac_func innocuous_$ac_func
27030 /* System header to define __stub macros and hopefully few prototypes,
27031 which can conflict with char $ac_func (); below.
27032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27033 <limits.h> exists even on freestanding compilers. */
27035 #ifdef __STDC__
27036 # include <limits.h>
27037 #else
27038 # include <assert.h>
27039 #endif
27041 #undef $ac_func
27043 /* Override any GCC internal prototype to avoid an error.
27044 Use char because int might match the return type of a GCC
27045 builtin and then its argument prototype would still apply. */
27046 #ifdef __cplusplus
27047 extern "C"
27048 #endif
27049 char $ac_func ();
27050 /* The GNU C library defines this for functions which it implements
27051 to always fail with ENOSYS. Some functions are actually named
27052 something starting with __ and the normal name is an alias. */
27053 #if defined __stub_$ac_func || defined __stub___$ac_func
27054 choke me
27055 #endif
27058 main ()
27060 return $ac_func ();
27062 return 0;
27064 _ACEOF
27065 rm -f conftest.$ac_objext conftest$ac_exeext
27066 if { (ac_try="$ac_link"
27067 case "(($ac_try" in
27068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27069 *) ac_try_echo=$ac_try;;
27070 esac
27071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27072 (eval "$ac_link") 2>conftest.er1
27073 ac_status=$?
27074 grep -v '^ *+' conftest.er1 >conftest.err
27075 rm -f conftest.er1
27076 cat conftest.err >&5
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); } && {
27079 test -z "$ac_c_werror_flag" ||
27080 test ! -s conftest.err
27081 } && test -s conftest$ac_exeext &&
27082 $as_test_x conftest$ac_exeext; then
27083 eval "$as_ac_var=yes"
27084 else
27085 echo "$as_me: failed program was:" >&5
27086 sed 's/^/| /' conftest.$ac_ext >&5
27088 eval "$as_ac_var=no"
27091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27092 conftest$ac_exeext conftest.$ac_ext
27094 ac_res=`eval echo '${'$as_ac_var'}'`
27095 { echo "$as_me:$LINENO: result: $ac_res" >&5
27096 echo "${ECHO_T}$ac_res" >&6; }
27097 if test `eval echo '${'$as_ac_var'}'` = yes; then
27098 cat >>confdefs.h <<_ACEOF
27099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27100 _ACEOF
27101 cat >>confdefs.h <<\_ACEOF
27102 #define BX_HAVE_ABORT 1
27103 _ACEOF
27106 done
27109 for ac_func in gettimeofday
27111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27115 echo $ECHO_N "(cached) $ECHO_C" >&6
27116 else
27117 cat >conftest.$ac_ext <<_ACEOF
27118 /* confdefs.h. */
27119 _ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h. */
27123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27125 #define $ac_func innocuous_$ac_func
27127 /* System header to define __stub macros and hopefully few prototypes,
27128 which can conflict with char $ac_func (); below.
27129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27130 <limits.h> exists even on freestanding compilers. */
27132 #ifdef __STDC__
27133 # include <limits.h>
27134 #else
27135 # include <assert.h>
27136 #endif
27138 #undef $ac_func
27140 /* Override any GCC internal prototype to avoid an error.
27141 Use char because int might match the return type of a GCC
27142 builtin and then its argument prototype would still apply. */
27143 #ifdef __cplusplus
27144 extern "C"
27145 #endif
27146 char $ac_func ();
27147 /* The GNU C library defines this for functions which it implements
27148 to always fail with ENOSYS. Some functions are actually named
27149 something starting with __ and the normal name is an alias. */
27150 #if defined __stub_$ac_func || defined __stub___$ac_func
27151 choke me
27152 #endif
27155 main ()
27157 return $ac_func ();
27159 return 0;
27161 _ACEOF
27162 rm -f conftest.$ac_objext conftest$ac_exeext
27163 if { (ac_try="$ac_link"
27164 case "(($ac_try" in
27165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27166 *) ac_try_echo=$ac_try;;
27167 esac
27168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27169 (eval "$ac_link") 2>conftest.er1
27170 ac_status=$?
27171 grep -v '^ *+' conftest.er1 >conftest.err
27172 rm -f conftest.er1
27173 cat conftest.err >&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); } && {
27176 test -z "$ac_c_werror_flag" ||
27177 test ! -s conftest.err
27178 } && test -s conftest$ac_exeext &&
27179 $as_test_x conftest$ac_exeext; then
27180 eval "$as_ac_var=yes"
27181 else
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 eval "$as_ac_var=no"
27188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27189 conftest$ac_exeext conftest.$ac_ext
27191 ac_res=`eval echo '${'$as_ac_var'}'`
27192 { echo "$as_me:$LINENO: result: $ac_res" >&5
27193 echo "${ECHO_T}$ac_res" >&6; }
27194 if test `eval echo '${'$as_ac_var'}'` = yes; then
27195 cat >>confdefs.h <<_ACEOF
27196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27197 _ACEOF
27198 cat >>confdefs.h <<\_ACEOF
27199 #define BX_HAVE_GETTIMEOFDAY 1
27200 _ACEOF
27203 done
27205 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27206 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27207 if test "${ac_cv_type_socklen_t+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209 else
27210 cat >conftest.$ac_ext <<_ACEOF
27211 /* confdefs.h. */
27212 _ACEOF
27213 cat confdefs.h >>conftest.$ac_ext
27214 cat >>conftest.$ac_ext <<_ACEOF
27215 /* end confdefs.h. */
27216 #include <sys/types.h>
27217 #include <sys/socket.h>
27219 typedef socklen_t ac__type_new_;
27221 main ()
27223 if ((ac__type_new_ *) 0)
27224 return 0;
27225 if (sizeof (ac__type_new_))
27226 return 0;
27228 return 0;
27230 _ACEOF
27231 rm -f conftest.$ac_objext
27232 if { (ac_try="$ac_compile"
27233 case "(($ac_try" in
27234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235 *) ac_try_echo=$ac_try;;
27236 esac
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238 (eval "$ac_compile") 2>conftest.er1
27239 ac_status=$?
27240 grep -v '^ *+' conftest.er1 >conftest.err
27241 rm -f conftest.er1
27242 cat conftest.err >&5
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); } && {
27245 test -z "$ac_c_werror_flag" ||
27246 test ! -s conftest.err
27247 } && test -s conftest.$ac_objext; then
27248 ac_cv_type_socklen_t=yes
27249 else
27250 echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27253 ac_cv_type_socklen_t=no
27256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27259 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27260 if test $ac_cv_type_socklen_t = yes; then
27261 cat >>confdefs.h <<\_ACEOF
27262 #define BX_HAVE_SOCKLEN_T 1
27263 _ACEOF
27267 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
27268 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
27269 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27271 else
27272 cat >conftest.$ac_ext <<_ACEOF
27273 /* confdefs.h. */
27274 _ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h. */
27278 #include <sys/socket.h>
27279 #include <netinet/in.h>
27282 main ()
27284 static struct sockaddr_in ac_aggr;
27285 if (ac_aggr.sin_len)
27286 return 0;
27288 return 0;
27290 _ACEOF
27291 rm -f conftest.$ac_objext
27292 if { (ac_try="$ac_compile"
27293 case "(($ac_try" in
27294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295 *) ac_try_echo=$ac_try;;
27296 esac
27297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298 (eval "$ac_compile") 2>conftest.er1
27299 ac_status=$?
27300 grep -v '^ *+' conftest.er1 >conftest.err
27301 rm -f conftest.er1
27302 cat conftest.err >&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } && {
27305 test -z "$ac_c_werror_flag" ||
27306 test ! -s conftest.err
27307 } && test -s conftest.$ac_objext; then
27308 ac_cv_member_struct_sockaddr_in_sin_len=yes
27309 else
27310 echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27313 cat >conftest.$ac_ext <<_ACEOF
27314 /* confdefs.h. */
27315 _ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h. */
27319 #include <sys/socket.h>
27320 #include <netinet/in.h>
27323 main ()
27325 static struct sockaddr_in ac_aggr;
27326 if (sizeof ac_aggr.sin_len)
27327 return 0;
27329 return 0;
27331 _ACEOF
27332 rm -f conftest.$ac_objext
27333 if { (ac_try="$ac_compile"
27334 case "(($ac_try" in
27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336 *) ac_try_echo=$ac_try;;
27337 esac
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339 (eval "$ac_compile") 2>conftest.er1
27340 ac_status=$?
27341 grep -v '^ *+' conftest.er1 >conftest.err
27342 rm -f conftest.er1
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } && {
27346 test -z "$ac_c_werror_flag" ||
27347 test ! -s conftest.err
27348 } && test -s conftest.$ac_objext; then
27349 ac_cv_member_struct_sockaddr_in_sin_len=yes
27350 else
27351 echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27354 ac_cv_member_struct_sockaddr_in_sin_len=no
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
27363 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
27364 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
27365 cat >>confdefs.h <<\_ACEOF
27366 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
27367 _ACEOF
27372 for ac_func in mkstemp
27374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27379 else
27380 cat >conftest.$ac_ext <<_ACEOF
27381 /* confdefs.h. */
27382 _ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h. */
27386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27388 #define $ac_func innocuous_$ac_func
27390 /* System header to define __stub macros and hopefully few prototypes,
27391 which can conflict with char $ac_func (); below.
27392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27393 <limits.h> exists even on freestanding compilers. */
27395 #ifdef __STDC__
27396 # include <limits.h>
27397 #else
27398 # include <assert.h>
27399 #endif
27401 #undef $ac_func
27403 /* Override any GCC internal prototype to avoid an error.
27404 Use char because int might match the return type of a GCC
27405 builtin and then its argument prototype would still apply. */
27406 #ifdef __cplusplus
27407 extern "C"
27408 #endif
27409 char $ac_func ();
27410 /* The GNU C library defines this for functions which it implements
27411 to always fail with ENOSYS. Some functions are actually named
27412 something starting with __ and the normal name is an alias. */
27413 #if defined __stub_$ac_func || defined __stub___$ac_func
27414 choke me
27415 #endif
27418 main ()
27420 return $ac_func ();
27422 return 0;
27424 _ACEOF
27425 rm -f conftest.$ac_objext conftest$ac_exeext
27426 if { (ac_try="$ac_link"
27427 case "(($ac_try" in
27428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27429 *) ac_try_echo=$ac_try;;
27430 esac
27431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27432 (eval "$ac_link") 2>conftest.er1
27433 ac_status=$?
27434 grep -v '^ *+' conftest.er1 >conftest.err
27435 rm -f conftest.er1
27436 cat conftest.err >&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } && {
27439 test -z "$ac_c_werror_flag" ||
27440 test ! -s conftest.err
27441 } && test -s conftest$ac_exeext &&
27442 $as_test_x conftest$ac_exeext; then
27443 eval "$as_ac_var=yes"
27444 else
27445 echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.$ac_ext >&5
27448 eval "$as_ac_var=no"
27451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27452 conftest$ac_exeext conftest.$ac_ext
27454 ac_res=`eval echo '${'$as_ac_var'}'`
27455 { echo "$as_me:$LINENO: result: $ac_res" >&5
27456 echo "${ECHO_T}$ac_res" >&6; }
27457 if test `eval echo '${'$as_ac_var'}'` = yes; then
27458 cat >>confdefs.h <<_ACEOF
27459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27460 _ACEOF
27461 cat >>confdefs.h <<\_ACEOF
27462 #define BX_HAVE_MKSTEMP 1
27463 _ACEOF
27466 done
27468 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27469 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27470 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27471 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27472 echo $ECHO_N "(cached) $ECHO_C" >&6
27474 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27475 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27476 else
27477 # Is the header compilable?
27478 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
27479 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
27480 cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h. */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27486 $ac_includes_default
27487 #include <sys/mman.h>
27488 _ACEOF
27489 rm -f conftest.$ac_objext
27490 if { (ac_try="$ac_compile"
27491 case "(($ac_try" in
27492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493 *) ac_try_echo=$ac_try;;
27494 esac
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496 (eval "$ac_compile") 2>conftest.er1
27497 ac_status=$?
27498 grep -v '^ *+' conftest.er1 >conftest.err
27499 rm -f conftest.er1
27500 cat conftest.err >&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } && {
27503 test -z "$ac_c_werror_flag" ||
27504 test ! -s conftest.err
27505 } && test -s conftest.$ac_objext; then
27506 ac_header_compiler=yes
27507 else
27508 echo "$as_me: failed program was:" >&5
27509 sed 's/^/| /' conftest.$ac_ext >&5
27511 ac_header_compiler=no
27514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27516 echo "${ECHO_T}$ac_header_compiler" >&6; }
27518 # Is the header present?
27519 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
27520 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
27521 cat >conftest.$ac_ext <<_ACEOF
27522 /* confdefs.h. */
27523 _ACEOF
27524 cat confdefs.h >>conftest.$ac_ext
27525 cat >>conftest.$ac_ext <<_ACEOF
27526 /* end confdefs.h. */
27527 #include <sys/mman.h>
27528 _ACEOF
27529 if { (ac_try="$ac_cpp conftest.$ac_ext"
27530 case "(($ac_try" in
27531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532 *) ac_try_echo=$ac_try;;
27533 esac
27534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } >/dev/null && {
27542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27543 test ! -s conftest.err
27544 }; then
27545 ac_header_preproc=yes
27546 else
27547 echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27550 ac_header_preproc=no
27553 rm -f conftest.err conftest.$ac_ext
27554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27555 echo "${ECHO_T}$ac_header_preproc" >&6; }
27557 # So? What about this header?
27558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27559 yes:no: )
27560 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
27561 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27562 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
27563 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
27564 ac_header_preproc=yes
27566 no:yes:* )
27567 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
27568 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
27570 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
27572 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
27574 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
27575 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
27576 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
27577 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
27578 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
27581 esac
27582 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27583 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27584 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27586 else
27587 ac_cv_header_sys_mman_h=$ac_header_preproc
27589 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27590 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27593 if test $ac_cv_header_sys_mman_h = yes; then
27594 cat >>confdefs.h <<\_ACEOF
27595 #define BX_HAVE_SYS_MMAN_H 1
27596 _ACEOF
27602 for ac_func in timelocal
27604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27608 echo $ECHO_N "(cached) $ECHO_C" >&6
27609 else
27610 cat >conftest.$ac_ext <<_ACEOF
27611 /* confdefs.h. */
27612 _ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27618 #define $ac_func innocuous_$ac_func
27620 /* System header to define __stub macros and hopefully few prototypes,
27621 which can conflict with char $ac_func (); below.
27622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27623 <limits.h> exists even on freestanding compilers. */
27625 #ifdef __STDC__
27626 # include <limits.h>
27627 #else
27628 # include <assert.h>
27629 #endif
27631 #undef $ac_func
27633 /* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
27636 #ifdef __cplusplus
27637 extern "C"
27638 #endif
27639 char $ac_func ();
27640 /* The GNU C library defines this for functions which it implements
27641 to always fail with ENOSYS. Some functions are actually named
27642 something starting with __ and the normal name is an alias. */
27643 #if defined __stub_$ac_func || defined __stub___$ac_func
27644 choke me
27645 #endif
27648 main ()
27650 return $ac_func ();
27652 return 0;
27654 _ACEOF
27655 rm -f conftest.$ac_objext conftest$ac_exeext
27656 if { (ac_try="$ac_link"
27657 case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27660 esac
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_link") 2>conftest.er1
27663 ac_status=$?
27664 grep -v '^ *+' conftest.er1 >conftest.err
27665 rm -f conftest.er1
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } && {
27669 test -z "$ac_c_werror_flag" ||
27670 test ! -s conftest.err
27671 } && test -s conftest$ac_exeext &&
27672 $as_test_x conftest$ac_exeext; then
27673 eval "$as_ac_var=yes"
27674 else
27675 echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27678 eval "$as_ac_var=no"
27681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27682 conftest$ac_exeext conftest.$ac_ext
27684 ac_res=`eval echo '${'$as_ac_var'}'`
27685 { echo "$as_me:$LINENO: result: $ac_res" >&5
27686 echo "${ECHO_T}$ac_res" >&6; }
27687 if test `eval echo '${'$as_ac_var'}'` = yes; then
27688 cat >>confdefs.h <<_ACEOF
27689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27690 _ACEOF
27691 cat >>confdefs.h <<\_ACEOF
27692 #define BX_HAVE_TIMELOCAL 1
27693 _ACEOF
27696 done
27699 for ac_func in gmtime
27701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27705 echo $ECHO_N "(cached) $ECHO_C" >&6
27706 else
27707 cat >conftest.$ac_ext <<_ACEOF
27708 /* confdefs.h. */
27709 _ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h. */
27713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27715 #define $ac_func innocuous_$ac_func
27717 /* System header to define __stub macros and hopefully few prototypes,
27718 which can conflict with char $ac_func (); below.
27719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27720 <limits.h> exists even on freestanding compilers. */
27722 #ifdef __STDC__
27723 # include <limits.h>
27724 #else
27725 # include <assert.h>
27726 #endif
27728 #undef $ac_func
27730 /* Override any GCC internal prototype to avoid an error.
27731 Use char because int might match the return type of a GCC
27732 builtin and then its argument prototype would still apply. */
27733 #ifdef __cplusplus
27734 extern "C"
27735 #endif
27736 char $ac_func ();
27737 /* The GNU C library defines this for functions which it implements
27738 to always fail with ENOSYS. Some functions are actually named
27739 something starting with __ and the normal name is an alias. */
27740 #if defined __stub_$ac_func || defined __stub___$ac_func
27741 choke me
27742 #endif
27745 main ()
27747 return $ac_func ();
27749 return 0;
27751 _ACEOF
27752 rm -f conftest.$ac_objext conftest$ac_exeext
27753 if { (ac_try="$ac_link"
27754 case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27757 esac
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_link") 2>conftest.er1
27760 ac_status=$?
27761 grep -v '^ *+' conftest.er1 >conftest.err
27762 rm -f conftest.er1
27763 cat conftest.err >&5
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); } && {
27766 test -z "$ac_c_werror_flag" ||
27767 test ! -s conftest.err
27768 } && test -s conftest$ac_exeext &&
27769 $as_test_x conftest$ac_exeext; then
27770 eval "$as_ac_var=yes"
27771 else
27772 echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27775 eval "$as_ac_var=no"
27778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27779 conftest$ac_exeext conftest.$ac_ext
27781 ac_res=`eval echo '${'$as_ac_var'}'`
27782 { echo "$as_me:$LINENO: result: $ac_res" >&5
27783 echo "${ECHO_T}$ac_res" >&6; }
27784 if test `eval echo '${'$as_ac_var'}'` = yes; then
27785 cat >>confdefs.h <<_ACEOF
27786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27787 _ACEOF
27788 cat >>confdefs.h <<\_ACEOF
27789 #define BX_HAVE_GMTIME 1
27790 _ACEOF
27793 done
27796 for ac_func in mktime
27798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27802 echo $ECHO_N "(cached) $ECHO_C" >&6
27803 else
27804 cat >conftest.$ac_ext <<_ACEOF
27805 /* confdefs.h. */
27806 _ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27812 #define $ac_func innocuous_$ac_func
27814 /* System header to define __stub macros and hopefully few prototypes,
27815 which can conflict with char $ac_func (); below.
27816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27817 <limits.h> exists even on freestanding compilers. */
27819 #ifdef __STDC__
27820 # include <limits.h>
27821 #else
27822 # include <assert.h>
27823 #endif
27825 #undef $ac_func
27827 /* Override any GCC internal prototype to avoid an error.
27828 Use char because int might match the return type of a GCC
27829 builtin and then its argument prototype would still apply. */
27830 #ifdef __cplusplus
27831 extern "C"
27832 #endif
27833 char $ac_func ();
27834 /* The GNU C library defines this for functions which it implements
27835 to always fail with ENOSYS. Some functions are actually named
27836 something starting with __ and the normal name is an alias. */
27837 #if defined __stub_$ac_func || defined __stub___$ac_func
27838 choke me
27839 #endif
27842 main ()
27844 return $ac_func ();
27846 return 0;
27848 _ACEOF
27849 rm -f conftest.$ac_objext conftest$ac_exeext
27850 if { (ac_try="$ac_link"
27851 case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27854 esac
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856 (eval "$ac_link") 2>conftest.er1
27857 ac_status=$?
27858 grep -v '^ *+' conftest.er1 >conftest.err
27859 rm -f conftest.er1
27860 cat conftest.err >&5
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); } && {
27863 test -z "$ac_c_werror_flag" ||
27864 test ! -s conftest.err
27865 } && test -s conftest$ac_exeext &&
27866 $as_test_x conftest$ac_exeext; then
27867 eval "$as_ac_var=yes"
27868 else
27869 echo "$as_me: failed program was:" >&5
27870 sed 's/^/| /' conftest.$ac_ext >&5
27872 eval "$as_ac_var=no"
27875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27876 conftest$ac_exeext conftest.$ac_ext
27878 ac_res=`eval echo '${'$as_ac_var'}'`
27879 { echo "$as_me:$LINENO: result: $ac_res" >&5
27880 echo "${ECHO_T}$ac_res" >&6; }
27881 if test `eval echo '${'$as_ac_var'}'` = yes; then
27882 cat >>confdefs.h <<_ACEOF
27883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27884 _ACEOF
27885 cat >>confdefs.h <<\_ACEOF
27886 #define BX_HAVE_MKTIME 1
27887 _ACEOF
27890 done
27893 # Check whether --enable-largefile was given.
27894 if test "${enable_largefile+set}" = set; then
27895 enableval=$enable_largefile;
27898 if test "$enable_largefile" != no; then
27899 wx_largefile=no
27901 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
27902 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
27903 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
27904 echo $ECHO_N "(cached) $ECHO_C" >&6
27905 else
27907 cat >conftest.$ac_ext <<_ACEOF
27908 /* confdefs.h. */
27909 _ACEOF
27910 cat confdefs.h >>conftest.$ac_ext
27911 cat >>conftest.$ac_ext <<_ACEOF
27912 /* end confdefs.h. */
27913 #define _FILE_OFFSET_BITS 64
27914 #include <sys/types.h>
27916 main ()
27918 typedef struct {
27919 unsigned int field: sizeof(off_t) == 8;
27920 } wxlf;
27923 return 0;
27925 _ACEOF
27926 rm -f conftest.$ac_objext
27927 if { (ac_try="$ac_compile"
27928 case "(($ac_try" in
27929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930 *) ac_try_echo=$ac_try;;
27931 esac
27932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27933 (eval "$ac_compile") 2>conftest.er1
27934 ac_status=$?
27935 grep -v '^ *+' conftest.er1 >conftest.err
27936 rm -f conftest.er1
27937 cat conftest.err >&5
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); } && {
27940 test -z "$ac_c_werror_flag" ||
27941 test ! -s conftest.err
27942 } && test -s conftest.$ac_objext; then
27943 ac_cv_sys_file_offset_bits=64
27944 else
27945 echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27948 ac_cv_sys_file_offset_bits=no
27951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27955 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
27956 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
27958 if test "$ac_cv_sys_file_offset_bits" != no; then
27959 wx_largefile=yes
27960 cat >>confdefs.h <<_ACEOF
27961 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
27962 _ACEOF
27966 if test "x$wx_largefile" != "xyes"; then
27968 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
27969 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
27970 if test "${ac_cv_sys_large_files+set}" = set; then
27971 echo $ECHO_N "(cached) $ECHO_C" >&6
27972 else
27974 cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h. */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 #define _LARGE_FILES 1
27981 #include <sys/types.h>
27983 main ()
27985 typedef struct {
27986 unsigned int field: sizeof(off_t) == 8;
27987 } wxlf;
27990 return 0;
27992 _ACEOF
27993 rm -f conftest.$ac_objext
27994 if { (ac_try="$ac_compile"
27995 case "(($ac_try" in
27996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997 *) ac_try_echo=$ac_try;;
27998 esac
27999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000 (eval "$ac_compile") 2>conftest.er1
28001 ac_status=$?
28002 grep -v '^ *+' conftest.er1 >conftest.err
28003 rm -f conftest.er1
28004 cat conftest.err >&5
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); } && {
28007 test -z "$ac_c_werror_flag" ||
28008 test ! -s conftest.err
28009 } && test -s conftest.$ac_objext; then
28010 ac_cv_sys_large_files=1
28011 else
28012 echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28015 ac_cv_sys_large_files=no
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28022 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
28023 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
28025 if test "$ac_cv_sys_large_files" != no; then
28026 wx_largefile=yes
28027 cat >>confdefs.h <<_ACEOF
28028 #define _LARGE_FILES $ac_cv_sys_large_files
28029 _ACEOF
28035 { echo "$as_me:$LINENO: checking if large file support is available" >&5
28036 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
28037 if test "x$wx_largefile" = "xyes"; then
28038 cat >>confdefs.h <<\_ACEOF
28039 #define HAVE_LARGEFILE_SUPPORT 1
28040 _ACEOF
28043 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
28044 echo "${ECHO_T}$wx_largefile" >&6; }
28048 if test "x$wx_largefile" = "xyes"; then
28049 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
28050 BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
28051 else
28052 BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
28054 CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
28055 CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
28056 CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
28059 have_cos=0
28060 have_floor=0
28062 for ac_func in cos
28064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28068 echo $ECHO_N "(cached) $ECHO_C" >&6
28069 else
28070 cat >conftest.$ac_ext <<_ACEOF
28071 /* confdefs.h. */
28072 _ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h. */
28076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28078 #define $ac_func innocuous_$ac_func
28080 /* System header to define __stub macros and hopefully few prototypes,
28081 which can conflict with char $ac_func (); below.
28082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28083 <limits.h> exists even on freestanding compilers. */
28085 #ifdef __STDC__
28086 # include <limits.h>
28087 #else
28088 # include <assert.h>
28089 #endif
28091 #undef $ac_func
28093 /* Override any GCC internal prototype to avoid an error.
28094 Use char because int might match the return type of a GCC
28095 builtin and then its argument prototype would still apply. */
28096 #ifdef __cplusplus
28097 extern "C"
28098 #endif
28099 char $ac_func ();
28100 /* The GNU C library defines this for functions which it implements
28101 to always fail with ENOSYS. Some functions are actually named
28102 something starting with __ and the normal name is an alias. */
28103 #if defined __stub_$ac_func || defined __stub___$ac_func
28104 choke me
28105 #endif
28108 main ()
28110 return $ac_func ();
28112 return 0;
28114 _ACEOF
28115 rm -f conftest.$ac_objext conftest$ac_exeext
28116 if { (ac_try="$ac_link"
28117 case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28120 esac
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_link") 2>conftest.er1
28123 ac_status=$?
28124 grep -v '^ *+' conftest.er1 >conftest.err
28125 rm -f conftest.er1
28126 cat conftest.err >&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } && {
28129 test -z "$ac_c_werror_flag" ||
28130 test ! -s conftest.err
28131 } && test -s conftest$ac_exeext &&
28132 $as_test_x conftest$ac_exeext; then
28133 eval "$as_ac_var=yes"
28134 else
28135 echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28138 eval "$as_ac_var=no"
28141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28142 conftest$ac_exeext conftest.$ac_ext
28144 ac_res=`eval echo '${'$as_ac_var'}'`
28145 { echo "$as_me:$LINENO: result: $ac_res" >&5
28146 echo "${ECHO_T}$ac_res" >&6; }
28147 if test `eval echo '${'$as_ac_var'}'` = yes; then
28148 cat >>confdefs.h <<_ACEOF
28149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28150 _ACEOF
28151 have_cos=1
28153 done
28156 for ac_func in floor
28158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28162 echo $ECHO_N "(cached) $ECHO_C" >&6
28163 else
28164 cat >conftest.$ac_ext <<_ACEOF
28165 /* confdefs.h. */
28166 _ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h. */
28170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28172 #define $ac_func innocuous_$ac_func
28174 /* System header to define __stub macros and hopefully few prototypes,
28175 which can conflict with char $ac_func (); below.
28176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28177 <limits.h> exists even on freestanding compilers. */
28179 #ifdef __STDC__
28180 # include <limits.h>
28181 #else
28182 # include <assert.h>
28183 #endif
28185 #undef $ac_func
28187 /* Override any GCC internal prototype to avoid an error.
28188 Use char because int might match the return type of a GCC
28189 builtin and then its argument prototype would still apply. */
28190 #ifdef __cplusplus
28191 extern "C"
28192 #endif
28193 char $ac_func ();
28194 /* The GNU C library defines this for functions which it implements
28195 to always fail with ENOSYS. Some functions are actually named
28196 something starting with __ and the normal name is an alias. */
28197 #if defined __stub_$ac_func || defined __stub___$ac_func
28198 choke me
28199 #endif
28202 main ()
28204 return $ac_func ();
28206 return 0;
28208 _ACEOF
28209 rm -f conftest.$ac_objext conftest$ac_exeext
28210 if { (ac_try="$ac_link"
28211 case "(($ac_try" in
28212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213 *) ac_try_echo=$ac_try;;
28214 esac
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216 (eval "$ac_link") 2>conftest.er1
28217 ac_status=$?
28218 grep -v '^ *+' conftest.er1 >conftest.err
28219 rm -f conftest.er1
28220 cat conftest.err >&5
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); } && {
28223 test -z "$ac_c_werror_flag" ||
28224 test ! -s conftest.err
28225 } && test -s conftest$ac_exeext &&
28226 $as_test_x conftest$ac_exeext; then
28227 eval "$as_ac_var=yes"
28228 else
28229 echo "$as_me: failed program was:" >&5
28230 sed 's/^/| /' conftest.$ac_ext >&5
28232 eval "$as_ac_var=no"
28235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28236 conftest$ac_exeext conftest.$ac_ext
28238 ac_res=`eval echo '${'$as_ac_var'}'`
28239 { echo "$as_me:$LINENO: result: $ac_res" >&5
28240 echo "${ECHO_T}$ac_res" >&6; }
28241 if test `eval echo '${'$as_ac_var'}'` = yes; then
28242 cat >>confdefs.h <<_ACEOF
28243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28244 _ACEOF
28245 have_floor=1
28247 done
28249 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
28250 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
28251 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28252 { echo "$as_me:$LINENO: result: yes" >&5
28253 echo "${ECHO_T}yes" >&6; }
28254 else
28255 { echo "$as_me:$LINENO: result: no" >&5
28256 echo "${ECHO_T}no" >&6; }
28257 LIBS="$LIBS -lm"
28258 # use different functions to bypass configure caching
28259 have_sin=0
28260 have_ceil=0
28262 for ac_func in sin
28264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28268 echo $ECHO_N "(cached) $ECHO_C" >&6
28269 else
28270 cat >conftest.$ac_ext <<_ACEOF
28271 /* confdefs.h. */
28272 _ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h. */
28276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28278 #define $ac_func innocuous_$ac_func
28280 /* System header to define __stub macros and hopefully few prototypes,
28281 which can conflict with char $ac_func (); below.
28282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28283 <limits.h> exists even on freestanding compilers. */
28285 #ifdef __STDC__
28286 # include <limits.h>
28287 #else
28288 # include <assert.h>
28289 #endif
28291 #undef $ac_func
28293 /* Override any GCC internal prototype to avoid an error.
28294 Use char because int might match the return type of a GCC
28295 builtin and then its argument prototype would still apply. */
28296 #ifdef __cplusplus
28297 extern "C"
28298 #endif
28299 char $ac_func ();
28300 /* The GNU C library defines this for functions which it implements
28301 to always fail with ENOSYS. Some functions are actually named
28302 something starting with __ and the normal name is an alias. */
28303 #if defined __stub_$ac_func || defined __stub___$ac_func
28304 choke me
28305 #endif
28308 main ()
28310 return $ac_func ();
28312 return 0;
28314 _ACEOF
28315 rm -f conftest.$ac_objext conftest$ac_exeext
28316 if { (ac_try="$ac_link"
28317 case "(($ac_try" in
28318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319 *) ac_try_echo=$ac_try;;
28320 esac
28321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322 (eval "$ac_link") 2>conftest.er1
28323 ac_status=$?
28324 grep -v '^ *+' conftest.er1 >conftest.err
28325 rm -f conftest.er1
28326 cat conftest.err >&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } && {
28329 test -z "$ac_c_werror_flag" ||
28330 test ! -s conftest.err
28331 } && test -s conftest$ac_exeext &&
28332 $as_test_x conftest$ac_exeext; then
28333 eval "$as_ac_var=yes"
28334 else
28335 echo "$as_me: failed program was:" >&5
28336 sed 's/^/| /' conftest.$ac_ext >&5
28338 eval "$as_ac_var=no"
28341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28342 conftest$ac_exeext conftest.$ac_ext
28344 ac_res=`eval echo '${'$as_ac_var'}'`
28345 { echo "$as_me:$LINENO: result: $ac_res" >&5
28346 echo "${ECHO_T}$ac_res" >&6; }
28347 if test `eval echo '${'$as_ac_var'}'` = yes; then
28348 cat >>confdefs.h <<_ACEOF
28349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28350 _ACEOF
28351 have_sin=1
28353 done
28356 for ac_func in ceil
28358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28362 echo $ECHO_N "(cached) $ECHO_C" >&6
28363 else
28364 cat >conftest.$ac_ext <<_ACEOF
28365 /* confdefs.h. */
28366 _ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h. */
28370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28372 #define $ac_func innocuous_$ac_func
28374 /* System header to define __stub macros and hopefully few prototypes,
28375 which can conflict with char $ac_func (); below.
28376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28377 <limits.h> exists even on freestanding compilers. */
28379 #ifdef __STDC__
28380 # include <limits.h>
28381 #else
28382 # include <assert.h>
28383 #endif
28385 #undef $ac_func
28387 /* Override any GCC internal prototype to avoid an error.
28388 Use char because int might match the return type of a GCC
28389 builtin and then its argument prototype would still apply. */
28390 #ifdef __cplusplus
28391 extern "C"
28392 #endif
28393 char $ac_func ();
28394 /* The GNU C library defines this for functions which it implements
28395 to always fail with ENOSYS. Some functions are actually named
28396 something starting with __ and the normal name is an alias. */
28397 #if defined __stub_$ac_func || defined __stub___$ac_func
28398 choke me
28399 #endif
28402 main ()
28404 return $ac_func ();
28406 return 0;
28408 _ACEOF
28409 rm -f conftest.$ac_objext conftest$ac_exeext
28410 if { (ac_try="$ac_link"
28411 case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28414 esac
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_link") 2>conftest.er1
28417 ac_status=$?
28418 grep -v '^ *+' conftest.er1 >conftest.err
28419 rm -f conftest.er1
28420 cat conftest.err >&5
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); } && {
28423 test -z "$ac_c_werror_flag" ||
28424 test ! -s conftest.err
28425 } && test -s conftest$ac_exeext &&
28426 $as_test_x conftest$ac_exeext; then
28427 eval "$as_ac_var=yes"
28428 else
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28432 eval "$as_ac_var=no"
28435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28436 conftest$ac_exeext conftest.$ac_ext
28438 ac_res=`eval echo '${'$as_ac_var'}'`
28439 { echo "$as_me:$LINENO: result: $ac_res" >&5
28440 echo "${ECHO_T}$ac_res" >&6; }
28441 if test `eval echo '${'$as_ac_var'}'` = yes; then
28442 cat >>confdefs.h <<_ACEOF
28443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28444 _ACEOF
28445 have_ceil=1
28447 done
28449 { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
28450 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
28451 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28452 { echo "$as_me:$LINENO: result: yes" >&5
28453 echo "${ECHO_T}yes" >&6; }
28454 else
28455 { echo "$as_me:$LINENO: result: no" >&5
28456 echo "${ECHO_T}no" >&6; }
28457 # not sure we should warn the user, crash, etc.
28458 # expect link failure
28462 { echo "$as_me:$LINENO: checking for struct timeval" >&5
28463 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28464 cat >conftest.$ac_ext <<_ACEOF
28465 /* confdefs.h. */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h. */
28470 #include <sys/time.h>
28472 main ()
28474 struct timeval x;
28476 return 0;
28478 _ACEOF
28479 rm -f conftest.$ac_objext
28480 if { (ac_try="$ac_compile"
28481 case "(($ac_try" in
28482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483 *) ac_try_echo=$ac_try;;
28484 esac
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486 (eval "$ac_compile") 2>conftest.er1
28487 ac_status=$?
28488 grep -v '^ *+' conftest.er1 >conftest.err
28489 rm -f conftest.er1
28490 cat conftest.err >&5
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); } && {
28493 test -z "$ac_c_werror_flag" ||
28494 test ! -s conftest.err
28495 } && test -s conftest.$ac_objext; then
28497 { echo "$as_me:$LINENO: result: yes" >&5
28498 echo "${ECHO_T}yes" >&6; }
28499 cat >>confdefs.h <<\_ACEOF
28500 #define BX_HAVE_STRUCT_TIMEVAL 1
28501 _ACEOF
28504 else
28505 echo "$as_me: failed program was:" >&5
28506 sed 's/^/| /' conftest.$ac_ext >&5
28508 { echo "$as_me:$LINENO: result: no" >&5
28509 echo "${ECHO_T}no" >&6; }
28512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28514 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
28515 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
28516 cat >conftest.$ac_ext <<_ACEOF
28517 /* confdefs.h. */
28518 _ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h. */
28524 main ()
28526 typedef struct { } junk;
28528 return 0;
28530 _ACEOF
28531 rm -f conftest.$ac_objext
28532 if { (ac_try="$ac_compile"
28533 case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28536 esac
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_compile") 2>conftest.er1
28539 ac_status=$?
28540 grep -v '^ *+' conftest.er1 >conftest.err
28541 rm -f conftest.er1
28542 cat conftest.err >&5
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); } && {
28545 test -z "$ac_c_werror_flag" ||
28546 test ! -s conftest.err
28547 } && test -s conftest.$ac_objext; then
28548 { echo "$as_me:$LINENO: result: yes" >&5
28549 echo "${ECHO_T}yes" >&6; }
28550 else
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28555 cat >>confdefs.h <<\_ACEOF
28556 #define BX_NO_EMPTY_STRUCTS 1
28557 _ACEOF
28559 { echo "$as_me:$LINENO: result: no" >&5
28560 echo "${ECHO_T}no" >&6; }
28564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28566 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
28567 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
28568 cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h. */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28576 main ()
28578 typedef struct { } __attribute__ ((packed)) junk;
28580 return 0;
28582 _ACEOF
28583 rm -f conftest.$ac_objext
28584 if { (ac_try="$ac_compile"
28585 case "(($ac_try" in
28586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587 *) ac_try_echo=$ac_try;;
28588 esac
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590 (eval "$ac_compile") 2>conftest.er1
28591 ac_status=$?
28592 grep -v '^ *+' conftest.er1 >conftest.err
28593 rm -f conftest.er1
28594 cat conftest.err >&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); } && {
28597 test -z "$ac_c_werror_flag" ||
28598 test ! -s conftest.err
28599 } && test -s conftest.$ac_objext; then
28600 { echo "$as_me:$LINENO: result: yes" >&5
28601 echo "${ECHO_T}yes" >&6; }
28602 else
28603 echo "$as_me: failed program was:" >&5
28604 sed 's/^/| /' conftest.$ac_ext >&5
28607 { echo "$as_me:$LINENO: result: no" >&5
28608 echo "${ECHO_T}no" >&6; }
28609 cat >>confdefs.h <<\_ACEOF
28610 #define BX_NO_ATTRIBUTES 1
28611 _ACEOF
28616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619 ac_ext=cpp
28620 ac_cpp='$CXXCPP $CPPFLAGS'
28621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28625 { echo "$as_me:$LINENO: checking for hash_map" >&5
28626 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
28627 cat >conftest.$ac_ext <<_ACEOF
28628 /* confdefs.h. */
28629 _ACEOF
28630 cat confdefs.h >>conftest.$ac_ext
28631 cat >>conftest.$ac_ext <<_ACEOF
28632 /* end confdefs.h. */
28633 #include <hash_map>
28635 main ()
28639 return 0;
28641 _ACEOF
28642 rm -f conftest.$ac_objext
28643 if { (ac_try="$ac_compile"
28644 case "(($ac_try" in
28645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28646 *) ac_try_echo=$ac_try;;
28647 esac
28648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28649 (eval "$ac_compile") 2>conftest.er1
28650 ac_status=$?
28651 grep -v '^ *+' conftest.er1 >conftest.err
28652 rm -f conftest.er1
28653 cat conftest.err >&5
28654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655 (exit $ac_status); } && {
28656 test -z "$ac_cxx_werror_flag" ||
28657 test ! -s conftest.err
28658 } && test -s conftest.$ac_objext; then
28660 { echo "$as_me:$LINENO: result: yes" >&5
28661 echo "${ECHO_T}yes" >&6; }
28662 cat >>confdefs.h <<\_ACEOF
28663 #define BX_HAVE_HASH_MAP 1
28664 _ACEOF
28667 else
28668 echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28671 { echo "$as_me:$LINENO: result: no" >&5
28672 echo "${ECHO_T}no" >&6; }
28675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28676 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
28677 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
28678 cat >conftest.$ac_ext <<_ACEOF
28679 /* confdefs.h. */
28680 _ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h. */
28684 #include <hash_map.h>
28686 main ()
28690 return 0;
28692 _ACEOF
28693 rm -f conftest.$ac_objext
28694 if { (ac_try="$ac_compile"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_compile") 2>conftest.er1
28701 ac_status=$?
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } && {
28707 test -z "$ac_cxx_werror_flag" ||
28708 test ! -s conftest.err
28709 } && test -s conftest.$ac_objext; then
28711 { echo "$as_me:$LINENO: result: yes" >&5
28712 echo "${ECHO_T}yes" >&6; }
28713 cat >>confdefs.h <<\_ACEOF
28714 #define BX_HAVE_HASH_MAP_H 1
28715 _ACEOF
28718 else
28719 echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28722 { echo "$as_me:$LINENO: result: no" >&5
28723 echo "${ECHO_T}no" >&6; }
28726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28727 { echo "$as_me:$LINENO: checking for set" >&5
28728 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
28729 cat >conftest.$ac_ext <<_ACEOF
28730 /* confdefs.h. */
28731 _ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h. */
28735 #include <set>
28737 main ()
28741 return 0;
28743 _ACEOF
28744 rm -f conftest.$ac_objext
28745 if { (ac_try="$ac_compile"
28746 case "(($ac_try" in
28747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748 *) ac_try_echo=$ac_try;;
28749 esac
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751 (eval "$ac_compile") 2>conftest.er1
28752 ac_status=$?
28753 grep -v '^ *+' conftest.er1 >conftest.err
28754 rm -f conftest.er1
28755 cat conftest.err >&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); } && {
28758 test -z "$ac_cxx_werror_flag" ||
28759 test ! -s conftest.err
28760 } && test -s conftest.$ac_objext; then
28762 { echo "$as_me:$LINENO: result: yes" >&5
28763 echo "${ECHO_T}yes" >&6; }
28764 cat >>confdefs.h <<\_ACEOF
28765 #define BX_HAVE_SET 1
28766 _ACEOF
28769 else
28770 echo "$as_me: failed program was:" >&5
28771 sed 's/^/| /' conftest.$ac_ext >&5
28773 { echo "$as_me:$LINENO: result: no" >&5
28774 echo "${ECHO_T}no" >&6; }
28777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28778 { echo "$as_me:$LINENO: checking for set.h" >&5
28779 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
28780 cat >conftest.$ac_ext <<_ACEOF
28781 /* confdefs.h. */
28782 _ACEOF
28783 cat confdefs.h >>conftest.$ac_ext
28784 cat >>conftest.$ac_ext <<_ACEOF
28785 /* end confdefs.h. */
28786 #include <set.h>
28788 main ()
28792 return 0;
28794 _ACEOF
28795 rm -f conftest.$ac_objext
28796 if { (ac_try="$ac_compile"
28797 case "(($ac_try" in
28798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28799 *) ac_try_echo=$ac_try;;
28800 esac
28801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28802 (eval "$ac_compile") 2>conftest.er1
28803 ac_status=$?
28804 grep -v '^ *+' conftest.er1 >conftest.err
28805 rm -f conftest.er1
28806 cat conftest.err >&5
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); } && {
28809 test -z "$ac_cxx_werror_flag" ||
28810 test ! -s conftest.err
28811 } && test -s conftest.$ac_objext; then
28813 { echo "$as_me:$LINENO: result: yes" >&5
28814 echo "${ECHO_T}yes" >&6; }
28815 cat >>confdefs.h <<\_ACEOF
28816 #define BX_HAVE_SET_H 1
28817 _ACEOF
28820 else
28821 echo "$as_me: failed program was:" >&5
28822 sed 's/^/| /' conftest.$ac_ext >&5
28824 { echo "$as_me:$LINENO: result: no" >&5
28825 echo "${ECHO_T}no" >&6; }
28828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28829 ac_ext=c
28830 ac_cpp='$CPP $CPPFLAGS'
28831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28836 if test "$with_all_libs" = yes; then
28837 if test "$cross_configure" = 1; then
28838 { 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
28839 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;}
28841 if test "$with_beos" != yes; then
28842 can_compile_beos=1
28843 if test "${ac_cv_header_app_Application_h+set}" = set; then
28844 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28845 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28846 if test "${ac_cv_header_app_Application_h+set}" = set; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28849 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28850 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28851 else
28852 # Is the header compilable?
28853 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
28854 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
28855 cat >conftest.$ac_ext <<_ACEOF
28856 /* confdefs.h. */
28857 _ACEOF
28858 cat confdefs.h >>conftest.$ac_ext
28859 cat >>conftest.$ac_ext <<_ACEOF
28860 /* end confdefs.h. */
28861 $ac_includes_default
28862 #include <app/Application.h>
28863 _ACEOF
28864 rm -f conftest.$ac_objext
28865 if { (ac_try="$ac_compile"
28866 case "(($ac_try" in
28867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871 (eval "$ac_compile") 2>conftest.er1
28872 ac_status=$?
28873 grep -v '^ *+' conftest.er1 >conftest.err
28874 rm -f conftest.er1
28875 cat conftest.err >&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } && {
28878 test -z "$ac_c_werror_flag" ||
28879 test ! -s conftest.err
28880 } && test -s conftest.$ac_objext; then
28881 ac_header_compiler=yes
28882 else
28883 echo "$as_me: failed program was:" >&5
28884 sed 's/^/| /' conftest.$ac_ext >&5
28886 ac_header_compiler=no
28889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28891 echo "${ECHO_T}$ac_header_compiler" >&6; }
28893 # Is the header present?
28894 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
28895 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
28896 cat >conftest.$ac_ext <<_ACEOF
28897 /* confdefs.h. */
28898 _ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h. */
28902 #include <app/Application.h>
28903 _ACEOF
28904 if { (ac_try="$ac_cpp conftest.$ac_ext"
28905 case "(($ac_try" in
28906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 *) ac_try_echo=$ac_try;;
28908 esac
28909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28911 ac_status=$?
28912 grep -v '^ *+' conftest.er1 >conftest.err
28913 rm -f conftest.er1
28914 cat conftest.err >&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } >/dev/null && {
28917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28918 test ! -s conftest.err
28919 }; then
28920 ac_header_preproc=yes
28921 else
28922 echo "$as_me: failed program was:" >&5
28923 sed 's/^/| /' conftest.$ac_ext >&5
28925 ac_header_preproc=no
28928 rm -f conftest.err conftest.$ac_ext
28929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28930 echo "${ECHO_T}$ac_header_preproc" >&6; }
28932 # So? What about this header?
28933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28934 yes:no: )
28935 { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
28936 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28937 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result" >&5
28938 echo "$as_me: WARNING: app/Application.h: proceeding with the compiler's result" >&2;}
28939 ac_header_preproc=yes
28941 no:yes:* )
28942 { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
28943 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
28944 { echo "$as_me:$LINENO: WARNING: app/Application.h: check for missing prerequisite headers?" >&5
28945 echo "$as_me: WARNING: app/Application.h: check for missing prerequisite headers?" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
28947 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&5
28949 echo "$as_me: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&2;}
28950 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result" >&5
28951 echo "$as_me: WARNING: app/Application.h: proceeding with the preprocessor's result" >&2;}
28952 { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
28953 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
28956 esac
28957 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28958 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28959 if test "${ac_cv_header_app_Application_h+set}" = set; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28961 else
28962 ac_cv_header_app_Application_h=$ac_header_preproc
28964 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28965 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28968 if test $ac_cv_header_app_Application_h = yes; then
28970 else
28971 can_compile_beos=0
28975 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28976 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
28977 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
28978 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28981 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
28982 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
28983 else
28984 # Is the header compilable?
28985 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
28986 echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
28987 cat >conftest.$ac_ext <<_ACEOF
28988 /* confdefs.h. */
28989 _ACEOF
28990 cat confdefs.h >>conftest.$ac_ext
28991 cat >>conftest.$ac_ext <<_ACEOF
28992 /* end confdefs.h. */
28993 $ac_includes_default
28994 #include <interface/Window.h>
28995 _ACEOF
28996 rm -f conftest.$ac_objext
28997 if { (ac_try="$ac_compile"
28998 case "(($ac_try" in
28999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29000 *) ac_try_echo=$ac_try;;
29001 esac
29002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29003 (eval "$ac_compile") 2>conftest.er1
29004 ac_status=$?
29005 grep -v '^ *+' conftest.er1 >conftest.err
29006 rm -f conftest.er1
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } && {
29010 test -z "$ac_c_werror_flag" ||
29011 test ! -s conftest.err
29012 } && test -s conftest.$ac_objext; then
29013 ac_header_compiler=yes
29014 else
29015 echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29018 ac_header_compiler=no
29021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29023 echo "${ECHO_T}$ac_header_compiler" >&6; }
29025 # Is the header present?
29026 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
29027 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
29028 cat >conftest.$ac_ext <<_ACEOF
29029 /* confdefs.h. */
29030 _ACEOF
29031 cat confdefs.h >>conftest.$ac_ext
29032 cat >>conftest.$ac_ext <<_ACEOF
29033 /* end confdefs.h. */
29034 #include <interface/Window.h>
29035 _ACEOF
29036 if { (ac_try="$ac_cpp conftest.$ac_ext"
29037 case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29040 esac
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29043 ac_status=$?
29044 grep -v '^ *+' conftest.er1 >conftest.err
29045 rm -f conftest.er1
29046 cat conftest.err >&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); } >/dev/null && {
29049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29050 test ! -s conftest.err
29051 }; then
29052 ac_header_preproc=yes
29053 else
29054 echo "$as_me: failed program was:" >&5
29055 sed 's/^/| /' conftest.$ac_ext >&5
29057 ac_header_preproc=no
29060 rm -f conftest.err conftest.$ac_ext
29061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29062 echo "${ECHO_T}$ac_header_preproc" >&6; }
29064 # So? What about this header?
29065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29066 yes:no: )
29067 { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
29068 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29069 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result" >&5
29070 echo "$as_me: WARNING: interface/Window.h: proceeding with the compiler's result" >&2;}
29071 ac_header_preproc=yes
29073 no:yes:* )
29074 { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
29075 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
29076 { echo "$as_me:$LINENO: WARNING: interface/Window.h: check for missing prerequisite headers?" >&5
29077 echo "$as_me: WARNING: interface/Window.h: check for missing prerequisite headers?" >&2;}
29078 { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
29079 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
29080 { echo "$as_me:$LINENO: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&5
29081 echo "$as_me: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&2;}
29082 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&5
29083 echo "$as_me: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&2;}
29084 { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
29085 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
29088 esac
29089 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
29090 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
29091 if test "${ac_cv_header_interface_Window_h+set}" = set; then
29092 echo $ECHO_N "(cached) $ECHO_C" >&6
29093 else
29094 ac_cv_header_interface_Window_h=$ac_header_preproc
29096 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
29097 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
29100 if test $ac_cv_header_interface_Window_h = yes; then
29102 else
29103 can_compile_beos=0
29107 if test "${ac_cv_header_interface_View_h+set}" = set; then
29108 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29109 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29110 if test "${ac_cv_header_interface_View_h+set}" = set; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29113 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29114 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29115 else
29116 # Is the header compilable?
29117 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
29118 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
29119 cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h. */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29125 $ac_includes_default
29126 #include <interface/View.h>
29127 _ACEOF
29128 rm -f conftest.$ac_objext
29129 if { (ac_try="$ac_compile"
29130 case "(($ac_try" in
29131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132 *) ac_try_echo=$ac_try;;
29133 esac
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_compile") 2>conftest.er1
29136 ac_status=$?
29137 grep -v '^ *+' conftest.er1 >conftest.err
29138 rm -f conftest.er1
29139 cat conftest.err >&5
29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); } && {
29142 test -z "$ac_c_werror_flag" ||
29143 test ! -s conftest.err
29144 } && test -s conftest.$ac_objext; then
29145 ac_header_compiler=yes
29146 else
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29150 ac_header_compiler=no
29153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29155 echo "${ECHO_T}$ac_header_compiler" >&6; }
29157 # Is the header present?
29158 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
29159 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
29160 cat >conftest.$ac_ext <<_ACEOF
29161 /* confdefs.h. */
29162 _ACEOF
29163 cat confdefs.h >>conftest.$ac_ext
29164 cat >>conftest.$ac_ext <<_ACEOF
29165 /* end confdefs.h. */
29166 #include <interface/View.h>
29167 _ACEOF
29168 if { (ac_try="$ac_cpp conftest.$ac_ext"
29169 case "(($ac_try" in
29170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171 *) ac_try_echo=$ac_try;;
29172 esac
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29175 ac_status=$?
29176 grep -v '^ *+' conftest.er1 >conftest.err
29177 rm -f conftest.er1
29178 cat conftest.err >&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } >/dev/null && {
29181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29182 test ! -s conftest.err
29183 }; then
29184 ac_header_preproc=yes
29185 else
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 ac_header_preproc=no
29192 rm -f conftest.err conftest.$ac_ext
29193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29194 echo "${ECHO_T}$ac_header_preproc" >&6; }
29196 # So? What about this header?
29197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29198 yes:no: )
29199 { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
29200 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29201 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result" >&5
29202 echo "$as_me: WARNING: interface/View.h: proceeding with the compiler's result" >&2;}
29203 ac_header_preproc=yes
29205 no:yes:* )
29206 { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
29207 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
29208 { echo "$as_me:$LINENO: WARNING: interface/View.h: check for missing prerequisite headers?" >&5
29209 echo "$as_me: WARNING: interface/View.h: check for missing prerequisite headers?" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
29211 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&5
29213 echo "$as_me: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result" >&5
29215 echo "$as_me: WARNING: interface/View.h: proceeding with the preprocessor's result" >&2;}
29216 { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
29217 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
29220 esac
29221 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29222 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29223 if test "${ac_cv_header_interface_View_h+set}" = set; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29225 else
29226 ac_cv_header_interface_View_h=$ac_header_preproc
29228 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29229 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29232 if test $ac_cv_header_interface_View_h = yes; then
29234 else
29235 can_compile_beos=0
29239 if test $can_compile_beos = 1; then
29240 with_beos=yes
29244 if test "$with_amigaos" != yes; then
29245 can_compile_amigaos=1
29246 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29247 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29248 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29249 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29250 echo $ECHO_N "(cached) $ECHO_C" >&6
29252 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29253 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29254 else
29255 # Is the header compilable?
29256 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
29257 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
29258 cat >conftest.$ac_ext <<_ACEOF
29259 /* confdefs.h. */
29260 _ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h. */
29264 $ac_includes_default
29265 #include <proto/intuition.h>
29266 _ACEOF
29267 rm -f conftest.$ac_objext
29268 if { (ac_try="$ac_compile"
29269 case "(($ac_try" in
29270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271 *) ac_try_echo=$ac_try;;
29272 esac
29273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274 (eval "$ac_compile") 2>conftest.er1
29275 ac_status=$?
29276 grep -v '^ *+' conftest.er1 >conftest.err
29277 rm -f conftest.er1
29278 cat conftest.err >&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } && {
29281 test -z "$ac_c_werror_flag" ||
29282 test ! -s conftest.err
29283 } && test -s conftest.$ac_objext; then
29284 ac_header_compiler=yes
29285 else
29286 echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29289 ac_header_compiler=no
29292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29294 echo "${ECHO_T}$ac_header_compiler" >&6; }
29296 # Is the header present?
29297 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
29298 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
29299 cat >conftest.$ac_ext <<_ACEOF
29300 /* confdefs.h. */
29301 _ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h. */
29305 #include <proto/intuition.h>
29306 _ACEOF
29307 if { (ac_try="$ac_cpp conftest.$ac_ext"
29308 case "(($ac_try" in
29309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310 *) ac_try_echo=$ac_try;;
29311 esac
29312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29314 ac_status=$?
29315 grep -v '^ *+' conftest.er1 >conftest.err
29316 rm -f conftest.er1
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } >/dev/null && {
29320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29321 test ! -s conftest.err
29322 }; then
29323 ac_header_preproc=yes
29324 else
29325 echo "$as_me: failed program was:" >&5
29326 sed 's/^/| /' conftest.$ac_ext >&5
29328 ac_header_preproc=no
29331 rm -f conftest.err conftest.$ac_ext
29332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29333 echo "${ECHO_T}$ac_header_preproc" >&6; }
29335 # So? What about this header?
29336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29337 yes:no: )
29338 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
29339 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29340 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result" >&5
29341 echo "$as_me: WARNING: proto/intuition.h: proceeding with the compiler's result" >&2;}
29342 ac_header_preproc=yes
29344 no:yes:* )
29345 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
29346 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&5
29348 echo "$as_me: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
29350 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&5
29352 echo "$as_me: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&5
29354 echo "$as_me: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&2;}
29355 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
29356 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
29359 esac
29360 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29361 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29362 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29364 else
29365 ac_cv_header_proto_intuition_h=$ac_header_preproc
29367 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29368 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29371 if test $ac_cv_header_proto_intuition_h = yes; then
29373 else
29374 can_compile_amigaos=0
29378 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29379 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29380 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29381 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29382 echo $ECHO_N "(cached) $ECHO_C" >&6
29384 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29385 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29386 else
29387 # Is the header compilable?
29388 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
29389 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
29390 cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h. */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h. */
29396 $ac_includes_default
29397 #include <intuition/intuitionbase.h>
29398 _ACEOF
29399 rm -f conftest.$ac_objext
29400 if { (ac_try="$ac_compile"
29401 case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29404 esac
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_compile") 2>conftest.er1
29407 ac_status=$?
29408 grep -v '^ *+' conftest.er1 >conftest.err
29409 rm -f conftest.er1
29410 cat conftest.err >&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } && {
29413 test -z "$ac_c_werror_flag" ||
29414 test ! -s conftest.err
29415 } && test -s conftest.$ac_objext; then
29416 ac_header_compiler=yes
29417 else
29418 echo "$as_me: failed program was:" >&5
29419 sed 's/^/| /' conftest.$ac_ext >&5
29421 ac_header_compiler=no
29424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29426 echo "${ECHO_T}$ac_header_compiler" >&6; }
29428 # Is the header present?
29429 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
29430 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
29431 cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h. */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h. */
29437 #include <intuition/intuitionbase.h>
29438 _ACEOF
29439 if { (ac_try="$ac_cpp conftest.$ac_ext"
29440 case "(($ac_try" in
29441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442 *) ac_try_echo=$ac_try;;
29443 esac
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29446 ac_status=$?
29447 grep -v '^ *+' conftest.er1 >conftest.err
29448 rm -f conftest.er1
29449 cat conftest.err >&5
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } >/dev/null && {
29452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29453 test ! -s conftest.err
29454 }; then
29455 ac_header_preproc=yes
29456 else
29457 echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29460 ac_header_preproc=no
29463 rm -f conftest.err conftest.$ac_ext
29464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29465 echo "${ECHO_T}$ac_header_preproc" >&6; }
29467 # So? What about this header?
29468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29469 yes:no: )
29470 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
29471 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29472 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&5
29473 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&2;}
29474 ac_header_preproc=yes
29476 no:yes:* )
29477 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
29478 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
29479 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&5
29480 echo "$as_me: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&2;}
29481 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
29482 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
29483 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&5
29484 echo "$as_me: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&2;}
29485 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&5
29486 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&2;}
29487 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
29488 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
29491 esac
29492 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29493 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29494 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29496 else
29497 ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
29499 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29500 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29503 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
29505 else
29506 can_compile_amigaos=0
29510 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29511 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29512 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29513 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29516 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29517 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29518 else
29519 # Is the header compilable?
29520 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
29521 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
29522 cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h. */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 $ac_includes_default
29529 #include <cybergraphx/cybergraphics.h>
29530 _ACEOF
29531 rm -f conftest.$ac_objext
29532 if { (ac_try="$ac_compile"
29533 case "(($ac_try" in
29534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29535 *) ac_try_echo=$ac_try;;
29536 esac
29537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29538 (eval "$ac_compile") 2>conftest.er1
29539 ac_status=$?
29540 grep -v '^ *+' conftest.er1 >conftest.err
29541 rm -f conftest.er1
29542 cat conftest.err >&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); } && {
29545 test -z "$ac_c_werror_flag" ||
29546 test ! -s conftest.err
29547 } && test -s conftest.$ac_objext; then
29548 ac_header_compiler=yes
29549 else
29550 echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29553 ac_header_compiler=no
29556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29558 echo "${ECHO_T}$ac_header_compiler" >&6; }
29560 # Is the header present?
29561 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
29562 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
29563 cat >conftest.$ac_ext <<_ACEOF
29564 /* confdefs.h. */
29565 _ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h. */
29569 #include <cybergraphx/cybergraphics.h>
29570 _ACEOF
29571 if { (ac_try="$ac_cpp conftest.$ac_ext"
29572 case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29575 esac
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29578 ac_status=$?
29579 grep -v '^ *+' conftest.er1 >conftest.err
29580 rm -f conftest.er1
29581 cat conftest.err >&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } >/dev/null && {
29584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29585 test ! -s conftest.err
29586 }; then
29587 ac_header_preproc=yes
29588 else
29589 echo "$as_me: failed program was:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29592 ac_header_preproc=no
29595 rm -f conftest.err conftest.$ac_ext
29596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29597 echo "${ECHO_T}$ac_header_preproc" >&6; }
29599 # So? What about this header?
29600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29601 yes:no: )
29602 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
29603 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29604 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&5
29605 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&2;}
29606 ac_header_preproc=yes
29608 no:yes:* )
29609 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
29610 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
29611 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&5
29612 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&2;}
29613 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
29614 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&5
29616 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&2;}
29617 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&5
29618 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&2;}
29619 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
29620 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
29623 esac
29624 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29625 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29626 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29627 echo $ECHO_N "(cached) $ECHO_C" >&6
29628 else
29629 ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
29631 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29632 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29635 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
29637 else
29638 can_compile_amigaos=0
29642 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29643 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29644 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29645 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29646 echo $ECHO_N "(cached) $ECHO_C" >&6
29648 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29649 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29650 else
29651 # Is the header compilable?
29652 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
29653 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
29654 cat >conftest.$ac_ext <<_ACEOF
29655 /* confdefs.h. */
29656 _ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h. */
29660 $ac_includes_default
29661 #include <devices/trackdisk.h>
29662 _ACEOF
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_compile") 2>conftest.er1
29671 ac_status=$?
29672 grep -v '^ *+' conftest.er1 >conftest.err
29673 rm -f conftest.er1
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } && {
29677 test -z "$ac_c_werror_flag" ||
29678 test ! -s conftest.err
29679 } && test -s conftest.$ac_objext; then
29680 ac_header_compiler=yes
29681 else
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 ac_header_compiler=no
29688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29690 echo "${ECHO_T}$ac_header_compiler" >&6; }
29692 # Is the header present?
29693 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
29694 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
29695 cat >conftest.$ac_ext <<_ACEOF
29696 /* confdefs.h. */
29697 _ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h. */
29701 #include <devices/trackdisk.h>
29702 _ACEOF
29703 if { (ac_try="$ac_cpp conftest.$ac_ext"
29704 case "(($ac_try" in
29705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706 *) ac_try_echo=$ac_try;;
29707 esac
29708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29710 ac_status=$?
29711 grep -v '^ *+' conftest.er1 >conftest.err
29712 rm -f conftest.er1
29713 cat conftest.err >&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } >/dev/null && {
29716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29717 test ! -s conftest.err
29718 }; then
29719 ac_header_preproc=yes
29720 else
29721 echo "$as_me: failed program was:" >&5
29722 sed 's/^/| /' conftest.$ac_ext >&5
29724 ac_header_preproc=no
29727 rm -f conftest.err conftest.$ac_ext
29728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29729 echo "${ECHO_T}$ac_header_preproc" >&6; }
29731 # So? What about this header?
29732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29733 yes:no: )
29734 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
29735 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29736 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&5
29737 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&2;}
29738 ac_header_preproc=yes
29740 no:yes:* )
29741 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
29742 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
29743 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&5
29744 echo "$as_me: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
29746 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&5
29748 echo "$as_me: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&2;}
29749 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&5
29750 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&2;}
29751 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
29752 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
29755 esac
29756 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29757 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29758 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29759 echo $ECHO_N "(cached) $ECHO_C" >&6
29760 else
29761 ac_cv_header_devices_trackdisk_h=$ac_header_preproc
29763 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29764 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29767 if test $ac_cv_header_devices_trackdisk_h = yes; then
29769 else
29770 can_compile_amigaos=0
29774 if test $can_compile_amigaos = 1; then
29775 with_amigaos=yes
29779 if test "$with_macos" != yes; then
29780 can_compile_macos=1
29781 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29782 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29783 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29784 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29785 echo $ECHO_N "(cached) $ECHO_C" >&6
29787 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29788 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29789 else
29790 # Is the header compilable?
29791 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
29792 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
29793 cat >conftest.$ac_ext <<_ACEOF
29794 /* confdefs.h. */
29795 _ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29799 $ac_includes_default
29800 #include <Quickdraw.h>
29801 _ACEOF
29802 rm -f conftest.$ac_objext
29803 if { (ac_try="$ac_compile"
29804 case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29807 esac
29808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809 (eval "$ac_compile") 2>conftest.er1
29810 ac_status=$?
29811 grep -v '^ *+' conftest.er1 >conftest.err
29812 rm -f conftest.er1
29813 cat conftest.err >&5
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); } && {
29816 test -z "$ac_c_werror_flag" ||
29817 test ! -s conftest.err
29818 } && test -s conftest.$ac_objext; then
29819 ac_header_compiler=yes
29820 else
29821 echo "$as_me: failed program was:" >&5
29822 sed 's/^/| /' conftest.$ac_ext >&5
29824 ac_header_compiler=no
29827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29829 echo "${ECHO_T}$ac_header_compiler" >&6; }
29831 # Is the header present?
29832 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
29833 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
29834 cat >conftest.$ac_ext <<_ACEOF
29835 /* confdefs.h. */
29836 _ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h. */
29840 #include <Quickdraw.h>
29841 _ACEOF
29842 if { (ac_try="$ac_cpp conftest.$ac_ext"
29843 case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29846 esac
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29849 ac_status=$?
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } >/dev/null && {
29855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29856 test ! -s conftest.err
29857 }; then
29858 ac_header_preproc=yes
29859 else
29860 echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29863 ac_header_preproc=no
29866 rm -f conftest.err conftest.$ac_ext
29867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29868 echo "${ECHO_T}$ac_header_preproc" >&6; }
29870 # So? What about this header?
29871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29872 yes:no: )
29873 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
29874 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29875 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result" >&5
29876 echo "$as_me: WARNING: Quickdraw.h: proceeding with the compiler's result" >&2;}
29877 ac_header_preproc=yes
29879 no:yes:* )
29880 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
29881 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&5
29883 echo "$as_me: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
29885 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&5
29887 echo "$as_me: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
29888 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&5
29889 echo "$as_me: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&2;}
29890 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
29891 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
29894 esac
29895 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29896 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29897 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899 else
29900 ac_cv_header_Quickdraw_h=$ac_header_preproc
29902 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29903 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29906 if test $ac_cv_header_Quickdraw_h = yes; then
29908 else
29909 can_compile_macos=0
29913 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29914 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
29915 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
29916 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29917 echo $ECHO_N "(cached) $ECHO_C" >&6
29919 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
29920 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
29921 else
29922 # Is the header compilable?
29923 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
29924 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
29925 cat >conftest.$ac_ext <<_ACEOF
29926 /* confdefs.h. */
29927 _ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h. */
29931 $ac_includes_default
29932 #include <Dialogs.h>
29933 _ACEOF
29934 rm -f conftest.$ac_objext
29935 if { (ac_try="$ac_compile"
29936 case "(($ac_try" in
29937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29938 *) ac_try_echo=$ac_try;;
29939 esac
29940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29941 (eval "$ac_compile") 2>conftest.er1
29942 ac_status=$?
29943 grep -v '^ *+' conftest.er1 >conftest.err
29944 rm -f conftest.er1
29945 cat conftest.err >&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); } && {
29948 test -z "$ac_c_werror_flag" ||
29949 test ! -s conftest.err
29950 } && test -s conftest.$ac_objext; then
29951 ac_header_compiler=yes
29952 else
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ac_header_compiler=no
29959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29961 echo "${ECHO_T}$ac_header_compiler" >&6; }
29963 # Is the header present?
29964 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
29965 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
29966 cat >conftest.$ac_ext <<_ACEOF
29967 /* confdefs.h. */
29968 _ACEOF
29969 cat confdefs.h >>conftest.$ac_ext
29970 cat >>conftest.$ac_ext <<_ACEOF
29971 /* end confdefs.h. */
29972 #include <Dialogs.h>
29973 _ACEOF
29974 if { (ac_try="$ac_cpp conftest.$ac_ext"
29975 case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29978 esac
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29981 ac_status=$?
29982 grep -v '^ *+' conftest.er1 >conftest.err
29983 rm -f conftest.er1
29984 cat conftest.err >&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } >/dev/null && {
29987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29988 test ! -s conftest.err
29989 }; then
29990 ac_header_preproc=yes
29991 else
29992 echo "$as_me: failed program was:" >&5
29993 sed 's/^/| /' conftest.$ac_ext >&5
29995 ac_header_preproc=no
29998 rm -f conftest.err conftest.$ac_ext
29999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30000 echo "${ECHO_T}$ac_header_preproc" >&6; }
30002 # So? What about this header?
30003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30004 yes:no: )
30005 { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
30006 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30007 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result" >&5
30008 echo "$as_me: WARNING: Dialogs.h: proceeding with the compiler's result" >&2;}
30009 ac_header_preproc=yes
30011 no:yes:* )
30012 { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
30013 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
30014 { echo "$as_me:$LINENO: WARNING: Dialogs.h: check for missing prerequisite headers?" >&5
30015 echo "$as_me: WARNING: Dialogs.h: check for missing prerequisite headers?" >&2;}
30016 { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
30017 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&5
30019 echo "$as_me: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&5
30021 echo "$as_me: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
30023 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
30026 esac
30027 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
30028 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
30029 if test "${ac_cv_header_Dialogs_h+set}" = set; then
30030 echo $ECHO_N "(cached) $ECHO_C" >&6
30031 else
30032 ac_cv_header_Dialogs_h=$ac_header_preproc
30034 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
30035 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
30038 if test $ac_cv_header_Dialogs_h = yes; then
30040 else
30041 can_compile_macos=0
30045 if test $can_compile_macos = 1; then
30046 with_macos=yes
30050 if test "$with_carbon" != yes; then
30051 can_compile_carbon=1
30052 if test "${ac_cv_header_Carbon_h+set}" = set; then
30053 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30054 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30055 if test "${ac_cv_header_Carbon_h+set}" = set; then
30056 echo $ECHO_N "(cached) $ECHO_C" >&6
30058 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30059 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30060 else
30061 # Is the header compilable?
30062 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
30063 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
30064 cat >conftest.$ac_ext <<_ACEOF
30065 /* confdefs.h. */
30066 _ACEOF
30067 cat confdefs.h >>conftest.$ac_ext
30068 cat >>conftest.$ac_ext <<_ACEOF
30069 /* end confdefs.h. */
30070 $ac_includes_default
30071 #include <Carbon.h>
30072 _ACEOF
30073 rm -f conftest.$ac_objext
30074 if { (ac_try="$ac_compile"
30075 case "(($ac_try" in
30076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077 *) ac_try_echo=$ac_try;;
30078 esac
30079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080 (eval "$ac_compile") 2>conftest.er1
30081 ac_status=$?
30082 grep -v '^ *+' conftest.er1 >conftest.err
30083 rm -f conftest.er1
30084 cat conftest.err >&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } && {
30087 test -z "$ac_c_werror_flag" ||
30088 test ! -s conftest.err
30089 } && test -s conftest.$ac_objext; then
30090 ac_header_compiler=yes
30091 else
30092 echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30095 ac_header_compiler=no
30098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30100 echo "${ECHO_T}$ac_header_compiler" >&6; }
30102 # Is the header present?
30103 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
30104 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
30105 cat >conftest.$ac_ext <<_ACEOF
30106 /* confdefs.h. */
30107 _ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h. */
30111 #include <Carbon.h>
30112 _ACEOF
30113 if { (ac_try="$ac_cpp conftest.$ac_ext"
30114 case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30117 esac
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30120 ac_status=$?
30121 grep -v '^ *+' conftest.er1 >conftest.err
30122 rm -f conftest.er1
30123 cat conftest.err >&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } >/dev/null && {
30126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30127 test ! -s conftest.err
30128 }; then
30129 ac_header_preproc=yes
30130 else
30131 echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30134 ac_header_preproc=no
30137 rm -f conftest.err conftest.$ac_ext
30138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30139 echo "${ECHO_T}$ac_header_preproc" >&6; }
30141 # So? What about this header?
30142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30143 yes:no: )
30144 { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
30145 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30146 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result" >&5
30147 echo "$as_me: WARNING: Carbon.h: proceeding with the compiler's result" >&2;}
30148 ac_header_preproc=yes
30150 no:yes:* )
30151 { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
30152 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
30153 { echo "$as_me:$LINENO: WARNING: Carbon.h: check for missing prerequisite headers?" >&5
30154 echo "$as_me: WARNING: Carbon.h: check for missing prerequisite headers?" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
30156 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
30157 { echo "$as_me:$LINENO: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
30158 echo "$as_me: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
30159 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result" >&5
30160 echo "$as_me: WARNING: Carbon.h: proceeding with the preprocessor's result" >&2;}
30161 { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
30162 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
30165 esac
30166 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30167 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30168 if test "${ac_cv_header_Carbon_h+set}" = set; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30170 else
30171 ac_cv_header_Carbon_h=$ac_header_preproc
30173 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30174 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30177 if test $ac_cv_header_Carbon_h = yes; then
30179 else
30180 can_compile_carbon=0
30184 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30185 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30186 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30187 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30188 echo $ECHO_N "(cached) $ECHO_C" >&6
30190 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30191 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30192 else
30193 # Is the header compilable?
30194 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
30195 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
30196 cat >conftest.$ac_ext <<_ACEOF
30197 /* confdefs.h. */
30198 _ACEOF
30199 cat confdefs.h >>conftest.$ac_ext
30200 cat >>conftest.$ac_ext <<_ACEOF
30201 /* end confdefs.h. */
30202 $ac_includes_default
30203 #include <ApplicationServices/ApplicationServices.h>
30204 _ACEOF
30205 rm -f conftest.$ac_objext
30206 if { (ac_try="$ac_compile"
30207 case "(($ac_try" in
30208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209 *) ac_try_echo=$ac_try;;
30210 esac
30211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212 (eval "$ac_compile") 2>conftest.er1
30213 ac_status=$?
30214 grep -v '^ *+' conftest.er1 >conftest.err
30215 rm -f conftest.er1
30216 cat conftest.err >&5
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); } && {
30219 test -z "$ac_c_werror_flag" ||
30220 test ! -s conftest.err
30221 } && test -s conftest.$ac_objext; then
30222 ac_header_compiler=yes
30223 else
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30227 ac_header_compiler=no
30230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30232 echo "${ECHO_T}$ac_header_compiler" >&6; }
30234 # Is the header present?
30235 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
30236 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
30237 cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h. */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30243 #include <ApplicationServices/ApplicationServices.h>
30244 _ACEOF
30245 if { (ac_try="$ac_cpp conftest.$ac_ext"
30246 case "(($ac_try" in
30247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248 *) ac_try_echo=$ac_try;;
30249 esac
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30252 ac_status=$?
30253 grep -v '^ *+' conftest.er1 >conftest.err
30254 rm -f conftest.er1
30255 cat conftest.err >&5
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); } >/dev/null && {
30258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30259 test ! -s conftest.err
30260 }; then
30261 ac_header_preproc=yes
30262 else
30263 echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30266 ac_header_preproc=no
30269 rm -f conftest.err conftest.$ac_ext
30270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30271 echo "${ECHO_T}$ac_header_preproc" >&6; }
30273 # So? What about this header?
30274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30275 yes:no: )
30276 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
30277 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30278 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
30279 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
30280 ac_header_preproc=yes
30282 no:yes:* )
30283 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
30284 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
30285 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
30286 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
30288 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
30290 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
30292 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
30294 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
30297 esac
30298 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30299 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30300 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30303 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
30305 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30306 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30309 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
30311 else
30312 can_compile_carbon=0
30316 if test $can_compile_carbon = 1; then
30317 with_carbon=yes
30321 if test "$with_win32" != yes; then
30322 can_compile_win32=1
30323 if test "${ac_cv_header_windows_h+set}" = set; then
30324 { echo "$as_me:$LINENO: checking for windows.h" >&5
30325 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30326 if test "${ac_cv_header_windows_h+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30329 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30330 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30331 else
30332 # Is the header compilable?
30333 { echo "$as_me:$LINENO: checking windows.h usability" >&5
30334 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
30335 cat >conftest.$ac_ext <<_ACEOF
30336 /* confdefs.h. */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h. */
30341 $ac_includes_default
30342 #include <windows.h>
30343 _ACEOF
30344 rm -f conftest.$ac_objext
30345 if { (ac_try="$ac_compile"
30346 case "(($ac_try" in
30347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348 *) ac_try_echo=$ac_try;;
30349 esac
30350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351 (eval "$ac_compile") 2>conftest.er1
30352 ac_status=$?
30353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } && {
30358 test -z "$ac_c_werror_flag" ||
30359 test ! -s conftest.err
30360 } && test -s conftest.$ac_objext; then
30361 ac_header_compiler=yes
30362 else
30363 echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30366 ac_header_compiler=no
30369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30371 echo "${ECHO_T}$ac_header_compiler" >&6; }
30373 # Is the header present?
30374 { echo "$as_me:$LINENO: checking windows.h presence" >&5
30375 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
30376 cat >conftest.$ac_ext <<_ACEOF
30377 /* confdefs.h. */
30378 _ACEOF
30379 cat confdefs.h >>conftest.$ac_ext
30380 cat >>conftest.$ac_ext <<_ACEOF
30381 /* end confdefs.h. */
30382 #include <windows.h>
30383 _ACEOF
30384 if { (ac_try="$ac_cpp conftest.$ac_ext"
30385 case "(($ac_try" in
30386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30387 *) ac_try_echo=$ac_try;;
30388 esac
30389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30391 ac_status=$?
30392 grep -v '^ *+' conftest.er1 >conftest.err
30393 rm -f conftest.er1
30394 cat conftest.err >&5
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); } >/dev/null && {
30397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30398 test ! -s conftest.err
30399 }; then
30400 ac_header_preproc=yes
30401 else
30402 echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30405 ac_header_preproc=no
30408 rm -f conftest.err conftest.$ac_ext
30409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30410 echo "${ECHO_T}$ac_header_preproc" >&6; }
30412 # So? What about this header?
30413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30414 yes:no: )
30415 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
30416 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30417 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
30418 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
30419 ac_header_preproc=yes
30421 no:yes:* )
30422 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
30423 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
30424 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
30425 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
30427 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
30429 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
30431 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
30433 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
30436 esac
30437 { echo "$as_me:$LINENO: checking for windows.h" >&5
30438 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30439 if test "${ac_cv_header_windows_h+set}" = set; then
30440 echo $ECHO_N "(cached) $ECHO_C" >&6
30441 else
30442 ac_cv_header_windows_h=$ac_header_preproc
30444 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30445 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30448 if test $ac_cv_header_windows_h = yes; then
30450 else
30451 can_compile_win32=0
30455 if test "${ac_cv_header_commctrl_h+set}" = set; then
30456 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30457 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30458 if test "${ac_cv_header_commctrl_h+set}" = set; then
30459 echo $ECHO_N "(cached) $ECHO_C" >&6
30461 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30462 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30463 else
30464 # Is the header compilable?
30465 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
30466 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
30467 cat >conftest.$ac_ext <<_ACEOF
30468 /* confdefs.h. */
30469 _ACEOF
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h. */
30473 $ac_includes_default
30474 #include <commctrl.h>
30475 _ACEOF
30476 rm -f conftest.$ac_objext
30477 if { (ac_try="$ac_compile"
30478 case "(($ac_try" in
30479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30480 *) ac_try_echo=$ac_try;;
30481 esac
30482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30483 (eval "$ac_compile") 2>conftest.er1
30484 ac_status=$?
30485 grep -v '^ *+' conftest.er1 >conftest.err
30486 rm -f conftest.er1
30487 cat conftest.err >&5
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } && {
30490 test -z "$ac_c_werror_flag" ||
30491 test ! -s conftest.err
30492 } && test -s conftest.$ac_objext; then
30493 ac_header_compiler=yes
30494 else
30495 echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30498 ac_header_compiler=no
30501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30503 echo "${ECHO_T}$ac_header_compiler" >&6; }
30505 # Is the header present?
30506 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
30507 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
30508 cat >conftest.$ac_ext <<_ACEOF
30509 /* confdefs.h. */
30510 _ACEOF
30511 cat confdefs.h >>conftest.$ac_ext
30512 cat >>conftest.$ac_ext <<_ACEOF
30513 /* end confdefs.h. */
30514 #include <commctrl.h>
30515 _ACEOF
30516 if { (ac_try="$ac_cpp conftest.$ac_ext"
30517 case "(($ac_try" in
30518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30519 *) ac_try_echo=$ac_try;;
30520 esac
30521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30523 ac_status=$?
30524 grep -v '^ *+' conftest.er1 >conftest.err
30525 rm -f conftest.er1
30526 cat conftest.err >&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); } >/dev/null && {
30529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30530 test ! -s conftest.err
30531 }; then
30532 ac_header_preproc=yes
30533 else
30534 echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30537 ac_header_preproc=no
30540 rm -f conftest.err conftest.$ac_ext
30541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30542 echo "${ECHO_T}$ac_header_preproc" >&6; }
30544 # So? What about this header?
30545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30546 yes:no: )
30547 { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30548 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30549 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result" >&5
30550 echo "$as_me: WARNING: commctrl.h: proceeding with the compiler's result" >&2;}
30551 ac_header_preproc=yes
30553 no:yes:* )
30554 { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
30555 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
30556 { echo "$as_me:$LINENO: WARNING: commctrl.h: check for missing prerequisite headers?" >&5
30557 echo "$as_me: WARNING: commctrl.h: check for missing prerequisite headers?" >&2;}
30558 { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
30559 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&5
30561 echo "$as_me: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30562 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result" >&5
30563 echo "$as_me: WARNING: commctrl.h: proceeding with the preprocessor's result" >&2;}
30564 { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
30565 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
30568 esac
30569 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30570 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30571 if test "${ac_cv_header_commctrl_h+set}" = set; then
30572 echo $ECHO_N "(cached) $ECHO_C" >&6
30573 else
30574 ac_cv_header_commctrl_h=$ac_header_preproc
30576 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30577 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30580 if test $ac_cv_header_commctrl_h = yes; then
30582 else
30583 can_compile_win32=0
30587 if test $can_compile_win32 = 1; then
30588 with_win32=yes
30592 if test "$with_sdl" != yes; then
30593 can_compile_sdl=1
30594 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30595 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30596 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30597 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30598 echo $ECHO_N "(cached) $ECHO_C" >&6
30600 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30601 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30602 else
30603 # Is the header compilable?
30604 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
30605 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
30606 cat >conftest.$ac_ext <<_ACEOF
30607 /* confdefs.h. */
30608 _ACEOF
30609 cat confdefs.h >>conftest.$ac_ext
30610 cat >>conftest.$ac_ext <<_ACEOF
30611 /* end confdefs.h. */
30612 $ac_includes_default
30613 #include <SDL/SDL.h>
30614 _ACEOF
30615 rm -f conftest.$ac_objext
30616 if { (ac_try="$ac_compile"
30617 case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30620 esac
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_compile") 2>conftest.er1
30623 ac_status=$?
30624 grep -v '^ *+' conftest.er1 >conftest.err
30625 rm -f conftest.er1
30626 cat conftest.err >&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } && {
30629 test -z "$ac_c_werror_flag" ||
30630 test ! -s conftest.err
30631 } && test -s conftest.$ac_objext; then
30632 ac_header_compiler=yes
30633 else
30634 echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30637 ac_header_compiler=no
30640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30642 echo "${ECHO_T}$ac_header_compiler" >&6; }
30644 # Is the header present?
30645 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
30646 echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
30647 cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h. */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h. */
30653 #include <SDL/SDL.h>
30654 _ACEOF
30655 if { (ac_try="$ac_cpp conftest.$ac_ext"
30656 case "(($ac_try" in
30657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658 *) ac_try_echo=$ac_try;;
30659 esac
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30662 ac_status=$?
30663 grep -v '^ *+' conftest.er1 >conftest.err
30664 rm -f conftest.er1
30665 cat conftest.err >&5
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); } >/dev/null && {
30668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30669 test ! -s conftest.err
30670 }; then
30671 ac_header_preproc=yes
30672 else
30673 echo "$as_me: failed program was:" >&5
30674 sed 's/^/| /' conftest.$ac_ext >&5
30676 ac_header_preproc=no
30679 rm -f conftest.err conftest.$ac_ext
30680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30681 echo "${ECHO_T}$ac_header_preproc" >&6; }
30683 # So? What about this header?
30684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30685 yes:no: )
30686 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
30687 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30688 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&5
30689 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&2;}
30690 ac_header_preproc=yes
30692 no:yes:* )
30693 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
30694 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
30695 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&5
30696 echo "$as_me: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&2;}
30697 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
30698 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
30700 echo "$as_me: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&5
30702 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&2;}
30703 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
30704 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
30707 esac
30708 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30709 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30710 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30712 else
30713 ac_cv_header_SDL_SDL_h=$ac_header_preproc
30715 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30716 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30719 if test $ac_cv_header_SDL_SDL_h = yes; then
30721 else
30722 can_compile_sdl=0
30726 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30727 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30728 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30729 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30730 echo $ECHO_N "(cached) $ECHO_C" >&6
30732 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30733 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30734 else
30735 # Is the header compilable?
30736 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
30737 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
30738 cat >conftest.$ac_ext <<_ACEOF
30739 /* confdefs.h. */
30740 _ACEOF
30741 cat confdefs.h >>conftest.$ac_ext
30742 cat >>conftest.$ac_ext <<_ACEOF
30743 /* end confdefs.h. */
30744 $ac_includes_default
30745 #include <SDL/SDL_main.h>
30746 _ACEOF
30747 rm -f conftest.$ac_objext
30748 if { (ac_try="$ac_compile"
30749 case "(($ac_try" in
30750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751 *) ac_try_echo=$ac_try;;
30752 esac
30753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754 (eval "$ac_compile") 2>conftest.er1
30755 ac_status=$?
30756 grep -v '^ *+' conftest.er1 >conftest.err
30757 rm -f conftest.er1
30758 cat conftest.err >&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); } && {
30761 test -z "$ac_c_werror_flag" ||
30762 test ! -s conftest.err
30763 } && test -s conftest.$ac_objext; then
30764 ac_header_compiler=yes
30765 else
30766 echo "$as_me: failed program was:" >&5
30767 sed 's/^/| /' conftest.$ac_ext >&5
30769 ac_header_compiler=no
30772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30774 echo "${ECHO_T}$ac_header_compiler" >&6; }
30776 # Is the header present?
30777 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
30778 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
30779 cat >conftest.$ac_ext <<_ACEOF
30780 /* confdefs.h. */
30781 _ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h. */
30785 #include <SDL/SDL_main.h>
30786 _ACEOF
30787 if { (ac_try="$ac_cpp conftest.$ac_ext"
30788 case "(($ac_try" in
30789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790 *) ac_try_echo=$ac_try;;
30791 esac
30792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30794 ac_status=$?
30795 grep -v '^ *+' conftest.er1 >conftest.err
30796 rm -f conftest.er1
30797 cat conftest.err >&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); } >/dev/null && {
30800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30801 test ! -s conftest.err
30802 }; then
30803 ac_header_preproc=yes
30804 else
30805 echo "$as_me: failed program was:" >&5
30806 sed 's/^/| /' conftest.$ac_ext >&5
30808 ac_header_preproc=no
30811 rm -f conftest.err conftest.$ac_ext
30812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30813 echo "${ECHO_T}$ac_header_preproc" >&6; }
30815 # So? What about this header?
30816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30817 yes:no: )
30818 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
30819 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30820 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&5
30821 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&2;}
30822 ac_header_preproc=yes
30824 no:yes:* )
30825 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
30826 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
30827 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&5
30828 echo "$as_me: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
30830 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
30831 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&5
30832 echo "$as_me: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&5
30834 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&2;}
30835 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
30836 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
30839 esac
30840 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30841 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30842 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30844 else
30845 ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
30847 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30848 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30851 if test $ac_cv_header_SDL_SDL_main_h = yes; then
30853 else
30854 can_compile_sdl=0
30858 if test $can_compile_sdl = 1; then
30859 with_sdl=yes
30863 if test "$with_svga" != yes; then
30864 can_compile_svga=1
30865 if test "${ac_cv_header_vga_h+set}" = set; then
30866 { echo "$as_me:$LINENO: checking for vga.h" >&5
30867 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30868 if test "${ac_cv_header_vga_h+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30871 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30872 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30873 else
30874 # Is the header compilable?
30875 { echo "$as_me:$LINENO: checking vga.h usability" >&5
30876 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
30877 cat >conftest.$ac_ext <<_ACEOF
30878 /* confdefs.h. */
30879 _ACEOF
30880 cat confdefs.h >>conftest.$ac_ext
30881 cat >>conftest.$ac_ext <<_ACEOF
30882 /* end confdefs.h. */
30883 $ac_includes_default
30884 #include <vga.h>
30885 _ACEOF
30886 rm -f conftest.$ac_objext
30887 if { (ac_try="$ac_compile"
30888 case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30891 esac
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_compile") 2>conftest.er1
30894 ac_status=$?
30895 grep -v '^ *+' conftest.er1 >conftest.err
30896 rm -f conftest.er1
30897 cat conftest.err >&5
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); } && {
30900 test -z "$ac_c_werror_flag" ||
30901 test ! -s conftest.err
30902 } && test -s conftest.$ac_objext; then
30903 ac_header_compiler=yes
30904 else
30905 echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30908 ac_header_compiler=no
30911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30913 echo "${ECHO_T}$ac_header_compiler" >&6; }
30915 # Is the header present?
30916 { echo "$as_me:$LINENO: checking vga.h presence" >&5
30917 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
30918 cat >conftest.$ac_ext <<_ACEOF
30919 /* confdefs.h. */
30920 _ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h. */
30924 #include <vga.h>
30925 _ACEOF
30926 if { (ac_try="$ac_cpp conftest.$ac_ext"
30927 case "(($ac_try" in
30928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30929 *) ac_try_echo=$ac_try;;
30930 esac
30931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30933 ac_status=$?
30934 grep -v '^ *+' conftest.er1 >conftest.err
30935 rm -f conftest.er1
30936 cat conftest.err >&5
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); } >/dev/null && {
30939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30940 test ! -s conftest.err
30941 }; then
30942 ac_header_preproc=yes
30943 else
30944 echo "$as_me: failed program was:" >&5
30945 sed 's/^/| /' conftest.$ac_ext >&5
30947 ac_header_preproc=no
30950 rm -f conftest.err conftest.$ac_ext
30951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30952 echo "${ECHO_T}$ac_header_preproc" >&6; }
30954 # So? What about this header?
30955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30956 yes:no: )
30957 { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
30958 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30959 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result" >&5
30960 echo "$as_me: WARNING: vga.h: proceeding with the compiler's result" >&2;}
30961 ac_header_preproc=yes
30963 no:yes:* )
30964 { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
30965 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
30966 { echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
30967 echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
30969 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&5
30971 echo "$as_me: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
30973 echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
30975 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
30978 esac
30979 { echo "$as_me:$LINENO: checking for vga.h" >&5
30980 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30981 if test "${ac_cv_header_vga_h+set}" = set; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
30983 else
30984 ac_cv_header_vga_h=$ac_header_preproc
30986 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30987 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30990 if test $ac_cv_header_vga_h = yes; then
30992 else
30993 can_compile_svga=0
30997 if test "${ac_cv_header_vgagl_h+set}" = set; then
30998 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
30999 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31000 if test "${ac_cv_header_vgagl_h+set}" = set; then
31001 echo $ECHO_N "(cached) $ECHO_C" >&6
31003 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31004 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31005 else
31006 # Is the header compilable?
31007 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
31008 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
31009 cat >conftest.$ac_ext <<_ACEOF
31010 /* confdefs.h. */
31011 _ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h. */
31015 $ac_includes_default
31016 #include <vgagl.h>
31017 _ACEOF
31018 rm -f conftest.$ac_objext
31019 if { (ac_try="$ac_compile"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31023 esac
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_compile") 2>conftest.er1
31026 ac_status=$?
31027 grep -v '^ *+' conftest.er1 >conftest.err
31028 rm -f conftest.er1
31029 cat conftest.err >&5
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } && {
31032 test -z "$ac_c_werror_flag" ||
31033 test ! -s conftest.err
31034 } && test -s conftest.$ac_objext; then
31035 ac_header_compiler=yes
31036 else
31037 echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31040 ac_header_compiler=no
31043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31045 echo "${ECHO_T}$ac_header_compiler" >&6; }
31047 # Is the header present?
31048 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
31049 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
31050 cat >conftest.$ac_ext <<_ACEOF
31051 /* confdefs.h. */
31052 _ACEOF
31053 cat confdefs.h >>conftest.$ac_ext
31054 cat >>conftest.$ac_ext <<_ACEOF
31055 /* end confdefs.h. */
31056 #include <vgagl.h>
31057 _ACEOF
31058 if { (ac_try="$ac_cpp conftest.$ac_ext"
31059 case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31062 esac
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31065 ac_status=$?
31066 grep -v '^ *+' conftest.er1 >conftest.err
31067 rm -f conftest.er1
31068 cat conftest.err >&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } >/dev/null && {
31071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31072 test ! -s conftest.err
31073 }; then
31074 ac_header_preproc=yes
31075 else
31076 echo "$as_me: failed program was:" >&5
31077 sed 's/^/| /' conftest.$ac_ext >&5
31079 ac_header_preproc=no
31082 rm -f conftest.err conftest.$ac_ext
31083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31084 echo "${ECHO_T}$ac_header_preproc" >&6; }
31086 # So? What about this header?
31087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31088 yes:no: )
31089 { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31090 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31091 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result" >&5
31092 echo "$as_me: WARNING: vgagl.h: proceeding with the compiler's result" >&2;}
31093 ac_header_preproc=yes
31095 no:yes:* )
31096 { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
31097 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
31098 { echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
31099 echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
31100 { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
31101 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
31102 { echo "$as_me:$LINENO: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&5
31103 echo "$as_me: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31104 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
31105 echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;}
31106 { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
31107 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
31110 esac
31111 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31112 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31113 if test "${ac_cv_header_vgagl_h+set}" = set; then
31114 echo $ECHO_N "(cached) $ECHO_C" >&6
31115 else
31116 ac_cv_header_vgagl_h=$ac_header_preproc
31118 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31119 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31122 if test $ac_cv_header_vgagl_h = yes; then
31124 else
31125 can_compile_svga=0
31129 if test $can_compile_svga = 1; then
31130 with_svga=yes
31134 if test "$with_x11" != yes; then
31135 can_compile_x11=1
31136 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31137 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31138 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31139 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31140 echo $ECHO_N "(cached) $ECHO_C" >&6
31142 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31143 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31144 else
31145 # Is the header compilable?
31146 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
31147 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
31148 cat >conftest.$ac_ext <<_ACEOF
31149 /* confdefs.h. */
31150 _ACEOF
31151 cat confdefs.h >>conftest.$ac_ext
31152 cat >>conftest.$ac_ext <<_ACEOF
31153 /* end confdefs.h. */
31154 $ac_includes_default
31155 #include <X11/Xlib.h>
31156 _ACEOF
31157 rm -f conftest.$ac_objext
31158 if { (ac_try="$ac_compile"
31159 case "(($ac_try" in
31160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31161 *) ac_try_echo=$ac_try;;
31162 esac
31163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31164 (eval "$ac_compile") 2>conftest.er1
31165 ac_status=$?
31166 grep -v '^ *+' conftest.er1 >conftest.err
31167 rm -f conftest.er1
31168 cat conftest.err >&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); } && {
31171 test -z "$ac_c_werror_flag" ||
31172 test ! -s conftest.err
31173 } && test -s conftest.$ac_objext; then
31174 ac_header_compiler=yes
31175 else
31176 echo "$as_me: failed program was:" >&5
31177 sed 's/^/| /' conftest.$ac_ext >&5
31179 ac_header_compiler=no
31182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31184 echo "${ECHO_T}$ac_header_compiler" >&6; }
31186 # Is the header present?
31187 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
31188 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
31189 cat >conftest.$ac_ext <<_ACEOF
31190 /* confdefs.h. */
31191 _ACEOF
31192 cat confdefs.h >>conftest.$ac_ext
31193 cat >>conftest.$ac_ext <<_ACEOF
31194 /* end confdefs.h. */
31195 #include <X11/Xlib.h>
31196 _ACEOF
31197 if { (ac_try="$ac_cpp conftest.$ac_ext"
31198 case "(($ac_try" in
31199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200 *) ac_try_echo=$ac_try;;
31201 esac
31202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31204 ac_status=$?
31205 grep -v '^ *+' conftest.er1 >conftest.err
31206 rm -f conftest.er1
31207 cat conftest.err >&5
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); } >/dev/null && {
31210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31211 test ! -s conftest.err
31212 }; then
31213 ac_header_preproc=yes
31214 else
31215 echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31218 ac_header_preproc=no
31221 rm -f conftest.err conftest.$ac_ext
31222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31223 echo "${ECHO_T}$ac_header_preproc" >&6; }
31225 # So? What about this header?
31226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31227 yes:no: )
31228 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31229 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31230 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
31231 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
31232 ac_header_preproc=yes
31234 no:yes:* )
31235 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
31236 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
31237 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
31238 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
31240 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
31241 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
31242 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31243 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
31244 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
31245 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
31246 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
31249 esac
31250 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31251 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31252 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31253 echo $ECHO_N "(cached) $ECHO_C" >&6
31254 else
31255 ac_cv_header_X11_Xlib_h=$ac_header_preproc
31257 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31258 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31261 if test $ac_cv_header_X11_Xlib_h = yes; then
31263 else
31264 can_compile_x11=0
31268 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31269 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31270 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31271 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31272 echo $ECHO_N "(cached) $ECHO_C" >&6
31274 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31275 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31276 else
31277 # Is the header compilable?
31278 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
31279 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
31280 cat >conftest.$ac_ext <<_ACEOF
31281 /* confdefs.h. */
31282 _ACEOF
31283 cat confdefs.h >>conftest.$ac_ext
31284 cat >>conftest.$ac_ext <<_ACEOF
31285 /* end confdefs.h. */
31286 $ac_includes_default
31287 #include <X11/Xutil.h>
31288 _ACEOF
31289 rm -f conftest.$ac_objext
31290 if { (ac_try="$ac_compile"
31291 case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31294 esac
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_compile") 2>conftest.er1
31297 ac_status=$?
31298 grep -v '^ *+' conftest.er1 >conftest.err
31299 rm -f conftest.er1
31300 cat conftest.err >&5
31301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302 (exit $ac_status); } && {
31303 test -z "$ac_c_werror_flag" ||
31304 test ! -s conftest.err
31305 } && test -s conftest.$ac_objext; then
31306 ac_header_compiler=yes
31307 else
31308 echo "$as_me: failed program was:" >&5
31309 sed 's/^/| /' conftest.$ac_ext >&5
31311 ac_header_compiler=no
31314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31316 echo "${ECHO_T}$ac_header_compiler" >&6; }
31318 # Is the header present?
31319 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
31320 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
31321 cat >conftest.$ac_ext <<_ACEOF
31322 /* confdefs.h. */
31323 _ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h. */
31327 #include <X11/Xutil.h>
31328 _ACEOF
31329 if { (ac_try="$ac_cpp conftest.$ac_ext"
31330 case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31333 esac
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31336 ac_status=$?
31337 grep -v '^ *+' conftest.er1 >conftest.err
31338 rm -f conftest.er1
31339 cat conftest.err >&5
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); } >/dev/null && {
31342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31343 test ! -s conftest.err
31344 }; then
31345 ac_header_preproc=yes
31346 else
31347 echo "$as_me: failed program was:" >&5
31348 sed 's/^/| /' conftest.$ac_ext >&5
31350 ac_header_preproc=no
31353 rm -f conftest.err conftest.$ac_ext
31354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31355 echo "${ECHO_T}$ac_header_preproc" >&6; }
31357 # So? What about this header?
31358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31359 yes:no: )
31360 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
31361 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31362 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&5
31363 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&2;}
31364 ac_header_preproc=yes
31366 no:yes:* )
31367 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
31368 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
31369 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&5
31370 echo "$as_me: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&2;}
31371 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
31372 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
31373 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&5
31374 echo "$as_me: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
31375 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&5
31376 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&2;}
31377 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
31378 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
31381 esac
31382 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31383 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31384 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31385 echo $ECHO_N "(cached) $ECHO_C" >&6
31386 else
31387 ac_cv_header_X11_Xutil_h=$ac_header_preproc
31389 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31390 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31393 if test $ac_cv_header_X11_Xutil_h = yes; then
31395 else
31396 can_compile_x11=0
31400 if test $can_compile_x11 = 1; then
31401 with_x11=yes
31405 if test "$with_rfb" != yes; then
31406 can_compile_rfb=1
31407 case $target in
31408 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
31409 if test "${ac_cv_header_winsock_h+set}" = set; then
31410 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31411 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31412 if test "${ac_cv_header_winsock_h+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31415 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31416 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31417 else
31418 # Is the header compilable?
31419 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
31420 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
31421 cat >conftest.$ac_ext <<_ACEOF
31422 /* confdefs.h. */
31423 _ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h. */
31427 $ac_includes_default
31428 #include <winsock.h>
31429 _ACEOF
31430 rm -f conftest.$ac_objext
31431 if { (ac_try="$ac_compile"
31432 case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31435 esac
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_compile") 2>conftest.er1
31438 ac_status=$?
31439 grep -v '^ *+' conftest.er1 >conftest.err
31440 rm -f conftest.er1
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && {
31444 test -z "$ac_c_werror_flag" ||
31445 test ! -s conftest.err
31446 } && test -s conftest.$ac_objext; then
31447 ac_header_compiler=yes
31448 else
31449 echo "$as_me: failed program was:" >&5
31450 sed 's/^/| /' conftest.$ac_ext >&5
31452 ac_header_compiler=no
31455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31457 echo "${ECHO_T}$ac_header_compiler" >&6; }
31459 # Is the header present?
31460 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
31461 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
31462 cat >conftest.$ac_ext <<_ACEOF
31463 /* confdefs.h. */
31464 _ACEOF
31465 cat confdefs.h >>conftest.$ac_ext
31466 cat >>conftest.$ac_ext <<_ACEOF
31467 /* end confdefs.h. */
31468 #include <winsock.h>
31469 _ACEOF
31470 if { (ac_try="$ac_cpp conftest.$ac_ext"
31471 case "(($ac_try" in
31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473 *) ac_try_echo=$ac_try;;
31474 esac
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31477 ac_status=$?
31478 grep -v '^ *+' conftest.er1 >conftest.err
31479 rm -f conftest.er1
31480 cat conftest.err >&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); } >/dev/null && {
31483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31484 test ! -s conftest.err
31485 }; then
31486 ac_header_preproc=yes
31487 else
31488 echo "$as_me: failed program was:" >&5
31489 sed 's/^/| /' conftest.$ac_ext >&5
31491 ac_header_preproc=no
31494 rm -f conftest.err conftest.$ac_ext
31495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31496 echo "${ECHO_T}$ac_header_preproc" >&6; }
31498 # So? What about this header?
31499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31500 yes:no: )
31501 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
31502 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31503 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
31504 echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
31505 ac_header_preproc=yes
31507 no:yes:* )
31508 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
31509 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
31510 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
31511 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
31512 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
31513 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
31514 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
31515 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
31516 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
31517 echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
31518 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
31519 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
31522 esac
31523 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31524 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31525 if test "${ac_cv_header_winsock_h+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31527 else
31528 ac_cv_header_winsock_h=$ac_header_preproc
31530 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31531 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31534 if test $ac_cv_header_winsock_h = yes; then
31536 else
31537 can_compile_rfb=0
31541 if test "${ac_cv_header_process_h+set}" = set; then
31542 { echo "$as_me:$LINENO: checking for process.h" >&5
31543 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31544 if test "${ac_cv_header_process_h+set}" = set; then
31545 echo $ECHO_N "(cached) $ECHO_C" >&6
31547 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31548 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31549 else
31550 # Is the header compilable?
31551 { echo "$as_me:$LINENO: checking process.h usability" >&5
31552 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
31553 cat >conftest.$ac_ext <<_ACEOF
31554 /* confdefs.h. */
31555 _ACEOF
31556 cat confdefs.h >>conftest.$ac_ext
31557 cat >>conftest.$ac_ext <<_ACEOF
31558 /* end confdefs.h. */
31559 $ac_includes_default
31560 #include <process.h>
31561 _ACEOF
31562 rm -f conftest.$ac_objext
31563 if { (ac_try="$ac_compile"
31564 case "(($ac_try" in
31565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31566 *) ac_try_echo=$ac_try;;
31567 esac
31568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31569 (eval "$ac_compile") 2>conftest.er1
31570 ac_status=$?
31571 grep -v '^ *+' conftest.er1 >conftest.err
31572 rm -f conftest.er1
31573 cat conftest.err >&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); } && {
31576 test -z "$ac_c_werror_flag" ||
31577 test ! -s conftest.err
31578 } && test -s conftest.$ac_objext; then
31579 ac_header_compiler=yes
31580 else
31581 echo "$as_me: failed program was:" >&5
31582 sed 's/^/| /' conftest.$ac_ext >&5
31584 ac_header_compiler=no
31587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31589 echo "${ECHO_T}$ac_header_compiler" >&6; }
31591 # Is the header present?
31592 { echo "$as_me:$LINENO: checking process.h presence" >&5
31593 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
31594 cat >conftest.$ac_ext <<_ACEOF
31595 /* confdefs.h. */
31596 _ACEOF
31597 cat confdefs.h >>conftest.$ac_ext
31598 cat >>conftest.$ac_ext <<_ACEOF
31599 /* end confdefs.h. */
31600 #include <process.h>
31601 _ACEOF
31602 if { (ac_try="$ac_cpp conftest.$ac_ext"
31603 case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31606 esac
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31609 ac_status=$?
31610 grep -v '^ *+' conftest.er1 >conftest.err
31611 rm -f conftest.er1
31612 cat conftest.err >&5
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); } >/dev/null && {
31615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31616 test ! -s conftest.err
31617 }; then
31618 ac_header_preproc=yes
31619 else
31620 echo "$as_me: failed program was:" >&5
31621 sed 's/^/| /' conftest.$ac_ext >&5
31623 ac_header_preproc=no
31626 rm -f conftest.err conftest.$ac_ext
31627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31628 echo "${ECHO_T}$ac_header_preproc" >&6; }
31630 # So? What about this header?
31631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31632 yes:no: )
31633 { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
31634 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31635 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result" >&5
31636 echo "$as_me: WARNING: process.h: proceeding with the compiler's result" >&2;}
31637 ac_header_preproc=yes
31639 no:yes:* )
31640 { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
31641 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
31642 { echo "$as_me:$LINENO: WARNING: process.h: check for missing prerequisite headers?" >&5
31643 echo "$as_me: WARNING: process.h: check for missing prerequisite headers?" >&2;}
31644 { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
31645 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
31646 { echo "$as_me:$LINENO: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&5
31647 echo "$as_me: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&2;}
31648 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result" >&5
31649 echo "$as_me: WARNING: process.h: proceeding with the preprocessor's result" >&2;}
31650 { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
31651 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
31654 esac
31655 { echo "$as_me:$LINENO: checking for process.h" >&5
31656 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31657 if test "${ac_cv_header_process_h+set}" = set; then
31658 echo $ECHO_N "(cached) $ECHO_C" >&6
31659 else
31660 ac_cv_header_process_h=$ac_header_preproc
31662 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31663 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31666 if test $ac_cv_header_process_h = yes; then
31668 else
31669 can_compile_rfb=0
31675 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31676 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31677 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31678 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31679 echo $ECHO_N "(cached) $ECHO_C" >&6
31681 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31682 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31683 else
31684 # Is the header compilable?
31685 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
31686 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
31687 cat >conftest.$ac_ext <<_ACEOF
31688 /* confdefs.h. */
31689 _ACEOF
31690 cat confdefs.h >>conftest.$ac_ext
31691 cat >>conftest.$ac_ext <<_ACEOF
31692 /* end confdefs.h. */
31693 $ac_includes_default
31694 #include <sys/socket.h>
31695 _ACEOF
31696 rm -f conftest.$ac_objext
31697 if { (ac_try="$ac_compile"
31698 case "(($ac_try" in
31699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700 *) ac_try_echo=$ac_try;;
31701 esac
31702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_compile") 2>conftest.er1
31704 ac_status=$?
31705 grep -v '^ *+' conftest.er1 >conftest.err
31706 rm -f conftest.er1
31707 cat conftest.err >&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } && {
31710 test -z "$ac_c_werror_flag" ||
31711 test ! -s conftest.err
31712 } && test -s conftest.$ac_objext; then
31713 ac_header_compiler=yes
31714 else
31715 echo "$as_me: failed program was:" >&5
31716 sed 's/^/| /' conftest.$ac_ext >&5
31718 ac_header_compiler=no
31721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31723 echo "${ECHO_T}$ac_header_compiler" >&6; }
31725 # Is the header present?
31726 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
31727 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
31728 cat >conftest.$ac_ext <<_ACEOF
31729 /* confdefs.h. */
31730 _ACEOF
31731 cat confdefs.h >>conftest.$ac_ext
31732 cat >>conftest.$ac_ext <<_ACEOF
31733 /* end confdefs.h. */
31734 #include <sys/socket.h>
31735 _ACEOF
31736 if { (ac_try="$ac_cpp conftest.$ac_ext"
31737 case "(($ac_try" in
31738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31739 *) ac_try_echo=$ac_try;;
31740 esac
31741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31743 ac_status=$?
31744 grep -v '^ *+' conftest.er1 >conftest.err
31745 rm -f conftest.er1
31746 cat conftest.err >&5
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); } >/dev/null && {
31749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31750 test ! -s conftest.err
31751 }; then
31752 ac_header_preproc=yes
31753 else
31754 echo "$as_me: failed program was:" >&5
31755 sed 's/^/| /' conftest.$ac_ext >&5
31757 ac_header_preproc=no
31760 rm -f conftest.err conftest.$ac_ext
31761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31762 echo "${ECHO_T}$ac_header_preproc" >&6; }
31764 # So? What about this header?
31765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31766 yes:no: )
31767 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
31768 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31769 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
31770 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
31771 ac_header_preproc=yes
31773 no:yes:* )
31774 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
31775 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
31776 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
31777 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
31778 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
31779 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
31780 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
31781 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
31782 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
31783 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
31784 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
31785 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
31788 esac
31789 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31790 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31791 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793 else
31794 ac_cv_header_sys_socket_h=$ac_header_preproc
31796 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31797 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31800 if test $ac_cv_header_sys_socket_h = yes; then
31802 else
31803 can_compile_rfb=0
31807 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31808 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31809 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31810 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31811 echo $ECHO_N "(cached) $ECHO_C" >&6
31813 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31814 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31815 else
31816 # Is the header compilable?
31817 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
31818 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
31819 cat >conftest.$ac_ext <<_ACEOF
31820 /* confdefs.h. */
31821 _ACEOF
31822 cat confdefs.h >>conftest.$ac_ext
31823 cat >>conftest.$ac_ext <<_ACEOF
31824 /* end confdefs.h. */
31825 $ac_includes_default
31826 #include <netinet/tcp.h>
31827 _ACEOF
31828 rm -f conftest.$ac_objext
31829 if { (ac_try="$ac_compile"
31830 case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31833 esac
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_compile") 2>conftest.er1
31836 ac_status=$?
31837 grep -v '^ *+' conftest.er1 >conftest.err
31838 rm -f conftest.er1
31839 cat conftest.err >&5
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } && {
31842 test -z "$ac_c_werror_flag" ||
31843 test ! -s conftest.err
31844 } && test -s conftest.$ac_objext; then
31845 ac_header_compiler=yes
31846 else
31847 echo "$as_me: failed program was:" >&5
31848 sed 's/^/| /' conftest.$ac_ext >&5
31850 ac_header_compiler=no
31853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31855 echo "${ECHO_T}$ac_header_compiler" >&6; }
31857 # Is the header present?
31858 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
31859 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
31860 cat >conftest.$ac_ext <<_ACEOF
31861 /* confdefs.h. */
31862 _ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h. */
31866 #include <netinet/tcp.h>
31867 _ACEOF
31868 if { (ac_try="$ac_cpp conftest.$ac_ext"
31869 case "(($ac_try" in
31870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871 *) ac_try_echo=$ac_try;;
31872 esac
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31875 ac_status=$?
31876 grep -v '^ *+' conftest.er1 >conftest.err
31877 rm -f conftest.er1
31878 cat conftest.err >&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } >/dev/null && {
31881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31882 test ! -s conftest.err
31883 }; then
31884 ac_header_preproc=yes
31885 else
31886 echo "$as_me: failed program was:" >&5
31887 sed 's/^/| /' conftest.$ac_ext >&5
31889 ac_header_preproc=no
31892 rm -f conftest.err conftest.$ac_ext
31893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31894 echo "${ECHO_T}$ac_header_preproc" >&6; }
31896 # So? What about this header?
31897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31898 yes:no: )
31899 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31900 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31901 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
31902 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
31903 ac_header_preproc=yes
31905 no:yes:* )
31906 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
31907 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
31908 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
31909 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
31910 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
31911 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
31912 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
31913 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31914 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
31915 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
31916 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
31917 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
31920 esac
31921 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31922 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31923 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31924 echo $ECHO_N "(cached) $ECHO_C" >&6
31925 else
31926 ac_cv_header_netinet_tcp_h=$ac_header_preproc
31928 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31929 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31932 if test $ac_cv_header_netinet_tcp_h = yes; then
31934 else
31935 can_compile_rfb=0
31939 if test "${ac_cv_header_pthread_h+set}" = set; then
31940 { echo "$as_me:$LINENO: checking for pthread.h" >&5
31941 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
31942 if test "${ac_cv_header_pthread_h+set}" = set; then
31943 echo $ECHO_N "(cached) $ECHO_C" >&6
31945 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
31946 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
31947 else
31948 # Is the header compilable?
31949 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
31950 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
31951 cat >conftest.$ac_ext <<_ACEOF
31952 /* confdefs.h. */
31953 _ACEOF
31954 cat confdefs.h >>conftest.$ac_ext
31955 cat >>conftest.$ac_ext <<_ACEOF
31956 /* end confdefs.h. */
31957 $ac_includes_default
31958 #include <pthread.h>
31959 _ACEOF
31960 rm -f conftest.$ac_objext
31961 if { (ac_try="$ac_compile"
31962 case "(($ac_try" in
31963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964 *) ac_try_echo=$ac_try;;
31965 esac
31966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31967 (eval "$ac_compile") 2>conftest.er1
31968 ac_status=$?
31969 grep -v '^ *+' conftest.er1 >conftest.err
31970 rm -f conftest.er1
31971 cat conftest.err >&5
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); } && {
31974 test -z "$ac_c_werror_flag" ||
31975 test ! -s conftest.err
31976 } && test -s conftest.$ac_objext; then
31977 ac_header_compiler=yes
31978 else
31979 echo "$as_me: failed program was:" >&5
31980 sed 's/^/| /' conftest.$ac_ext >&5
31982 ac_header_compiler=no
31985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31987 echo "${ECHO_T}$ac_header_compiler" >&6; }
31989 # Is the header present?
31990 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
31991 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
31992 cat >conftest.$ac_ext <<_ACEOF
31993 /* confdefs.h. */
31994 _ACEOF
31995 cat confdefs.h >>conftest.$ac_ext
31996 cat >>conftest.$ac_ext <<_ACEOF
31997 /* end confdefs.h. */
31998 #include <pthread.h>
31999 _ACEOF
32000 if { (ac_try="$ac_cpp conftest.$ac_ext"
32001 case "(($ac_try" in
32002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003 *) ac_try_echo=$ac_try;;
32004 esac
32005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32007 ac_status=$?
32008 grep -v '^ *+' conftest.er1 >conftest.err
32009 rm -f conftest.er1
32010 cat conftest.err >&5
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); } >/dev/null && {
32013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32014 test ! -s conftest.err
32015 }; then
32016 ac_header_preproc=yes
32017 else
32018 echo "$as_me: failed program was:" >&5
32019 sed 's/^/| /' conftest.$ac_ext >&5
32021 ac_header_preproc=no
32024 rm -f conftest.err conftest.$ac_ext
32025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32026 echo "${ECHO_T}$ac_header_preproc" >&6; }
32028 # So? What about this header?
32029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32030 yes:no: )
32031 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
32032 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32033 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
32034 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
32035 ac_header_preproc=yes
32037 no:yes:* )
32038 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
32039 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
32040 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
32041 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
32042 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
32043 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
32044 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
32045 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
32046 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
32047 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
32048 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
32049 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
32052 esac
32053 { echo "$as_me:$LINENO: checking for pthread.h" >&5
32054 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
32055 if test "${ac_cv_header_pthread_h+set}" = set; then
32056 echo $ECHO_N "(cached) $ECHO_C" >&6
32057 else
32058 ac_cv_header_pthread_h=$ac_header_preproc
32060 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
32061 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
32064 if test $ac_cv_header_pthread_h = yes; then
32066 else
32067 can_compile_rfb=0
32072 esac
32073 if test $can_compile_rfb = 1; then
32074 with_rfb=yes
32078 if test "$with_term" != yes; then
32079 can_compile_term=1
32080 if test "${ac_cv_header_curses_h+set}" = set; then
32081 { echo "$as_me:$LINENO: checking for curses.h" >&5
32082 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32083 if test "${ac_cv_header_curses_h+set}" = set; then
32084 echo $ECHO_N "(cached) $ECHO_C" >&6
32086 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32087 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32088 else
32089 # Is the header compilable?
32090 { echo "$as_me:$LINENO: checking curses.h usability" >&5
32091 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
32092 cat >conftest.$ac_ext <<_ACEOF
32093 /* confdefs.h. */
32094 _ACEOF
32095 cat confdefs.h >>conftest.$ac_ext
32096 cat >>conftest.$ac_ext <<_ACEOF
32097 /* end confdefs.h. */
32098 $ac_includes_default
32099 #include <curses.h>
32100 _ACEOF
32101 rm -f conftest.$ac_objext
32102 if { (ac_try="$ac_compile"
32103 case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32106 esac
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_compile") 2>conftest.er1
32109 ac_status=$?
32110 grep -v '^ *+' conftest.er1 >conftest.err
32111 rm -f conftest.er1
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); } && {
32115 test -z "$ac_c_werror_flag" ||
32116 test ! -s conftest.err
32117 } && test -s conftest.$ac_objext; then
32118 ac_header_compiler=yes
32119 else
32120 echo "$as_me: failed program was:" >&5
32121 sed 's/^/| /' conftest.$ac_ext >&5
32123 ac_header_compiler=no
32126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32128 echo "${ECHO_T}$ac_header_compiler" >&6; }
32130 # Is the header present?
32131 { echo "$as_me:$LINENO: checking curses.h presence" >&5
32132 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
32133 cat >conftest.$ac_ext <<_ACEOF
32134 /* confdefs.h. */
32135 _ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h. */
32139 #include <curses.h>
32140 _ACEOF
32141 if { (ac_try="$ac_cpp conftest.$ac_ext"
32142 case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32145 esac
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32148 ac_status=$?
32149 grep -v '^ *+' conftest.er1 >conftest.err
32150 rm -f conftest.er1
32151 cat conftest.err >&5
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); } >/dev/null && {
32154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32155 test ! -s conftest.err
32156 }; then
32157 ac_header_preproc=yes
32158 else
32159 echo "$as_me: failed program was:" >&5
32160 sed 's/^/| /' conftest.$ac_ext >&5
32162 ac_header_preproc=no
32165 rm -f conftest.err conftest.$ac_ext
32166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32167 echo "${ECHO_T}$ac_header_preproc" >&6; }
32169 # So? What about this header?
32170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32171 yes:no: )
32172 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
32173 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32174 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
32175 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
32176 ac_header_preproc=yes
32178 no:yes:* )
32179 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
32180 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
32181 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
32182 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
32183 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
32184 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
32185 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
32186 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
32187 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
32188 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
32189 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
32190 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
32193 esac
32194 { echo "$as_me:$LINENO: checking for curses.h" >&5
32195 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32196 if test "${ac_cv_header_curses_h+set}" = set; then
32197 echo $ECHO_N "(cached) $ECHO_C" >&6
32198 else
32199 ac_cv_header_curses_h=$ac_header_preproc
32201 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32202 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32205 if test $ac_cv_header_curses_h = yes; then
32207 else
32208 can_compile_term=0
32212 if test "${ac_cv_header_signal_h+set}" = set; then
32213 { echo "$as_me:$LINENO: checking for signal.h" >&5
32214 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32215 if test "${ac_cv_header_signal_h+set}" = set; then
32216 echo $ECHO_N "(cached) $ECHO_C" >&6
32218 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32219 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32220 else
32221 # Is the header compilable?
32222 { echo "$as_me:$LINENO: checking signal.h usability" >&5
32223 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
32224 cat >conftest.$ac_ext <<_ACEOF
32225 /* confdefs.h. */
32226 _ACEOF
32227 cat confdefs.h >>conftest.$ac_ext
32228 cat >>conftest.$ac_ext <<_ACEOF
32229 /* end confdefs.h. */
32230 $ac_includes_default
32231 #include <signal.h>
32232 _ACEOF
32233 rm -f conftest.$ac_objext
32234 if { (ac_try="$ac_compile"
32235 case "(($ac_try" in
32236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32237 *) ac_try_echo=$ac_try;;
32238 esac
32239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32240 (eval "$ac_compile") 2>conftest.er1
32241 ac_status=$?
32242 grep -v '^ *+' conftest.er1 >conftest.err
32243 rm -f conftest.er1
32244 cat conftest.err >&5
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); } && {
32247 test -z "$ac_c_werror_flag" ||
32248 test ! -s conftest.err
32249 } && test -s conftest.$ac_objext; then
32250 ac_header_compiler=yes
32251 else
32252 echo "$as_me: failed program was:" >&5
32253 sed 's/^/| /' conftest.$ac_ext >&5
32255 ac_header_compiler=no
32258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32260 echo "${ECHO_T}$ac_header_compiler" >&6; }
32262 # Is the header present?
32263 { echo "$as_me:$LINENO: checking signal.h presence" >&5
32264 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
32265 cat >conftest.$ac_ext <<_ACEOF
32266 /* confdefs.h. */
32267 _ACEOF
32268 cat confdefs.h >>conftest.$ac_ext
32269 cat >>conftest.$ac_ext <<_ACEOF
32270 /* end confdefs.h. */
32271 #include <signal.h>
32272 _ACEOF
32273 if { (ac_try="$ac_cpp conftest.$ac_ext"
32274 case "(($ac_try" in
32275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276 *) ac_try_echo=$ac_try;;
32277 esac
32278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32280 ac_status=$?
32281 grep -v '^ *+' conftest.er1 >conftest.err
32282 rm -f conftest.er1
32283 cat conftest.err >&5
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); } >/dev/null && {
32286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32287 test ! -s conftest.err
32288 }; then
32289 ac_header_preproc=yes
32290 else
32291 echo "$as_me: failed program was:" >&5
32292 sed 's/^/| /' conftest.$ac_ext >&5
32294 ac_header_preproc=no
32297 rm -f conftest.err conftest.$ac_ext
32298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32299 echo "${ECHO_T}$ac_header_preproc" >&6; }
32301 # So? What about this header?
32302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32303 yes:no: )
32304 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
32305 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32306 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
32307 echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
32308 ac_header_preproc=yes
32310 no:yes:* )
32311 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
32312 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
32313 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
32314 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
32315 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
32316 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
32317 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
32318 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
32319 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
32320 echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
32321 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
32322 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
32325 esac
32326 { echo "$as_me:$LINENO: checking for signal.h" >&5
32327 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32328 if test "${ac_cv_header_signal_h+set}" = set; then
32329 echo $ECHO_N "(cached) $ECHO_C" >&6
32330 else
32331 ac_cv_header_signal_h=$ac_header_preproc
32333 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32334 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32337 if test $ac_cv_header_signal_h = yes; then
32339 else
32340 can_compile_term=0
32344 if test $can_compile_term = 1; then
32345 with_term=yes
32349 if test "$with_nogui" != yes; then
32350 with_nogui=yes
32352 fi # end of if $with_all_libs = yes
32354 { echo "$as_me:$LINENO: checking for idle hack" >&5
32355 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
32356 # Check whether --enable-idle-hack was given.
32357 if test "${enable_idle_hack+set}" = set; then
32358 enableval=$enable_idle_hack; if test "$enableval" = yes; then
32359 { echo "$as_me:$LINENO: result: yes" >&5
32360 echo "${ECHO_T}yes" >&6; }
32361 cat >>confdefs.h <<\_ACEOF
32362 #define BX_USE_IDLE_HACK 1
32363 _ACEOF
32365 else
32366 { echo "$as_me:$LINENO: result: no" >&5
32367 echo "${ECHO_T}no" >&6; }
32368 cat >>confdefs.h <<\_ACEOF
32369 #define BX_USE_IDLE_HACK 0
32370 _ACEOF
32373 else
32375 { echo "$as_me:$LINENO: result: no" >&5
32376 echo "${ECHO_T}no" >&6; }
32377 cat >>confdefs.h <<\_ACEOF
32378 #define BX_USE_IDLE_HACK 0
32379 _ACEOF
32387 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32388 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32389 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32390 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32391 echo $ECHO_N "(cached) $ECHO_C" >&6
32393 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32394 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32395 else
32396 # Is the header compilable?
32397 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
32398 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
32399 cat >conftest.$ac_ext <<_ACEOF
32400 /* confdefs.h. */
32401 _ACEOF
32402 cat confdefs.h >>conftest.$ac_ext
32403 cat >>conftest.$ac_ext <<_ACEOF
32404 /* end confdefs.h. */
32405 $ac_includes_default
32406 #include <dlfcn.h>
32407 _ACEOF
32408 rm -f conftest.$ac_objext
32409 if { (ac_try="$ac_compile"
32410 case "(($ac_try" in
32411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412 *) ac_try_echo=$ac_try;;
32413 esac
32414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415 (eval "$ac_compile") 2>conftest.er1
32416 ac_status=$?
32417 grep -v '^ *+' conftest.er1 >conftest.err
32418 rm -f conftest.er1
32419 cat conftest.err >&5
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); } && {
32422 test -z "$ac_c_werror_flag" ||
32423 test ! -s conftest.err
32424 } && test -s conftest.$ac_objext; then
32425 ac_header_compiler=yes
32426 else
32427 echo "$as_me: failed program was:" >&5
32428 sed 's/^/| /' conftest.$ac_ext >&5
32430 ac_header_compiler=no
32433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32435 echo "${ECHO_T}$ac_header_compiler" >&6; }
32437 # Is the header present?
32438 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
32439 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
32440 cat >conftest.$ac_ext <<_ACEOF
32441 /* confdefs.h. */
32442 _ACEOF
32443 cat confdefs.h >>conftest.$ac_ext
32444 cat >>conftest.$ac_ext <<_ACEOF
32445 /* end confdefs.h. */
32446 #include <dlfcn.h>
32447 _ACEOF
32448 if { (ac_try="$ac_cpp conftest.$ac_ext"
32449 case "(($ac_try" in
32450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32451 *) ac_try_echo=$ac_try;;
32452 esac
32453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32455 ac_status=$?
32456 grep -v '^ *+' conftest.er1 >conftest.err
32457 rm -f conftest.er1
32458 cat conftest.err >&5
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); } >/dev/null && {
32461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32462 test ! -s conftest.err
32463 }; then
32464 ac_header_preproc=yes
32465 else
32466 echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32469 ac_header_preproc=no
32472 rm -f conftest.err conftest.$ac_ext
32473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32474 echo "${ECHO_T}$ac_header_preproc" >&6; }
32476 # So? What about this header?
32477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32478 yes:no: )
32479 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
32480 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32481 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
32482 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
32483 ac_header_preproc=yes
32485 no:yes:* )
32486 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
32487 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
32488 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
32489 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
32490 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
32491 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
32492 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
32493 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
32494 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
32495 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
32496 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
32497 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
32500 esac
32501 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32502 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32503 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32504 echo $ECHO_N "(cached) $ECHO_C" >&6
32505 else
32506 ac_cv_header_dlfcn_h=$ac_header_preproc
32508 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32509 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32512 if test $ac_cv_header_dlfcn_h = yes; then
32513 cat >>confdefs.h <<\_ACEOF
32514 #define BX_HAVE_DLFCN_H 1
32515 _ACEOF
32520 if test "${ac_cv_header_assert_h+set}" = set; then
32521 { echo "$as_me:$LINENO: checking for assert.h" >&5
32522 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32523 if test "${ac_cv_header_assert_h+set}" = set; then
32524 echo $ECHO_N "(cached) $ECHO_C" >&6
32526 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32527 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32528 else
32529 # Is the header compilable?
32530 { echo "$as_me:$LINENO: checking assert.h usability" >&5
32531 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
32532 cat >conftest.$ac_ext <<_ACEOF
32533 /* confdefs.h. */
32534 _ACEOF
32535 cat confdefs.h >>conftest.$ac_ext
32536 cat >>conftest.$ac_ext <<_ACEOF
32537 /* end confdefs.h. */
32538 $ac_includes_default
32539 #include <assert.h>
32540 _ACEOF
32541 rm -f conftest.$ac_objext
32542 if { (ac_try="$ac_compile"
32543 case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32546 esac
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_compile") 2>conftest.er1
32549 ac_status=$?
32550 grep -v '^ *+' conftest.er1 >conftest.err
32551 rm -f conftest.er1
32552 cat conftest.err >&5
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } && {
32555 test -z "$ac_c_werror_flag" ||
32556 test ! -s conftest.err
32557 } && test -s conftest.$ac_objext; then
32558 ac_header_compiler=yes
32559 else
32560 echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.$ac_ext >&5
32563 ac_header_compiler=no
32566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32568 echo "${ECHO_T}$ac_header_compiler" >&6; }
32570 # Is the header present?
32571 { echo "$as_me:$LINENO: checking assert.h presence" >&5
32572 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
32573 cat >conftest.$ac_ext <<_ACEOF
32574 /* confdefs.h. */
32575 _ACEOF
32576 cat confdefs.h >>conftest.$ac_ext
32577 cat >>conftest.$ac_ext <<_ACEOF
32578 /* end confdefs.h. */
32579 #include <assert.h>
32580 _ACEOF
32581 if { (ac_try="$ac_cpp conftest.$ac_ext"
32582 case "(($ac_try" in
32583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584 *) ac_try_echo=$ac_try;;
32585 esac
32586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32588 ac_status=$?
32589 grep -v '^ *+' conftest.er1 >conftest.err
32590 rm -f conftest.er1
32591 cat conftest.err >&5
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } >/dev/null && {
32594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32595 test ! -s conftest.err
32596 }; then
32597 ac_header_preproc=yes
32598 else
32599 echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32602 ac_header_preproc=no
32605 rm -f conftest.err conftest.$ac_ext
32606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32607 echo "${ECHO_T}$ac_header_preproc" >&6; }
32609 # So? What about this header?
32610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32611 yes:no: )
32612 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
32613 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32614 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
32615 echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
32616 ac_header_preproc=yes
32618 no:yes:* )
32619 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
32620 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
32621 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
32622 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
32623 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
32624 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
32625 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
32626 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
32627 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
32628 echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
32629 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
32630 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
32633 esac
32634 { echo "$as_me:$LINENO: checking for assert.h" >&5
32635 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32636 if test "${ac_cv_header_assert_h+set}" = set; then
32637 echo $ECHO_N "(cached) $ECHO_C" >&6
32638 else
32639 ac_cv_header_assert_h=$ac_header_preproc
32641 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32642 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32645 if test $ac_cv_header_assert_h = yes; then
32646 cat >>confdefs.h <<\_ACEOF
32647 #define HAVE_ASSERT_H 1
32648 _ACEOF
32654 { echo "$as_me:$LINENO: checking for plugins support" >&5
32655 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
32656 # Check whether --enable-plugins was given.
32657 if test "${enable_plugins+set}" = set; then
32658 enableval=$enable_plugins; if test "$enableval" = yes; then
32659 bx_plugins=1
32660 else
32661 bx_plugins=0
32663 else
32665 bx_plugins=0
32671 if test "$bx_plugins" = 1; then
32672 { echo "$as_me:$LINENO: result: yes" >&5
32673 echo "${ECHO_T}yes" >&6; }
32674 cat >>confdefs.h <<\_ACEOF
32675 #define BX_PLUGINS 1
32676 _ACEOF
32678 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS)'
32679 GUI_PLUGIN_OBJS='$(OBJS_THAT_CAN_BE_PLUGINS)'
32680 DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
32681 # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
32682 # by special link rules for the plugins that they support.
32683 LIBS="$LIBS $LIBADD_DL"
32684 PLUGIN_VAR='ltdl.o'
32685 PLUGIN_TARGET=bochs_plugins
32686 INSTALL_PLUGINS_VAR=install_libtool_plugins
32687 NONPLUGIN_GUI_LINK_OPTS=''
32688 else
32689 { echo "$as_me:$LINENO: result: no" >&5
32690 echo "${ECHO_T}no" >&6; }
32691 bx_plugins=0
32692 cat >>confdefs.h <<\_ACEOF
32693 #define BX_PLUGINS 0
32694 _ACEOF
32696 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)'
32697 GUI_PLUGIN_OBJS=''
32698 NONPLUGIN_GUI_LINK_OPTS='$(GUI_LINK_OPTS)'
32703 # copy gui variables into iodev variables. Later, we will add to the gui
32704 # objs list, according to which display libraries are enabled.
32705 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
32706 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
32708 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
32709 # It is provided by a library called dlcompat.
32710 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
32711 have_dlopen=0
32712 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
32714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32715 echo $ECHO_N "(cached) $ECHO_C" >&6
32716 else
32717 ac_check_lib_save_LIBS=$LIBS
32718 LIBS="-ldl $LIBS"
32719 cat >conftest.$ac_ext <<_ACEOF
32720 /* confdefs.h. */
32721 _ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h. */
32726 /* Override any GCC internal prototype to avoid an error.
32727 Use char because int might match the return type of a GCC
32728 builtin and then its argument prototype would still apply. */
32729 #ifdef __cplusplus
32730 extern "C"
32731 #endif
32732 char dlopen ();
32734 main ()
32736 return dlopen ();
32738 return 0;
32740 _ACEOF
32741 rm -f conftest.$ac_objext conftest$ac_exeext
32742 if { (ac_try="$ac_link"
32743 case "(($ac_try" in
32744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745 *) ac_try_echo=$ac_try;;
32746 esac
32747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32748 (eval "$ac_link") 2>conftest.er1
32749 ac_status=$?
32750 grep -v '^ *+' conftest.er1 >conftest.err
32751 rm -f conftest.er1
32752 cat conftest.err >&5
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); } && {
32755 test -z "$ac_c_werror_flag" ||
32756 test ! -s conftest.err
32757 } && test -s conftest$ac_exeext &&
32758 $as_test_x conftest$ac_exeext; then
32759 ac_cv_lib_dl_dlopen=yes
32760 else
32761 echo "$as_me: failed program was:" >&5
32762 sed 's/^/| /' conftest.$ac_ext >&5
32764 ac_cv_lib_dl_dlopen=no
32767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32768 conftest$ac_exeext conftest.$ac_ext
32769 LIBS=$ac_check_lib_save_LIBS
32771 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32772 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
32773 if test $ac_cv_lib_dl_dlopen = yes; then
32774 have_dlopen=1
32777 { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
32778 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
32779 if test "$have_dlopen" = 0; then
32780 { echo "$as_me:$LINENO: result: no" >&5
32781 echo "${ECHO_T}no" >&6; }
32782 { { 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
32783 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;}
32784 { (exit 1); exit 1; }; }
32785 else
32786 { echo "$as_me:$LINENO: result: yes" >&5
32787 echo "${ECHO_T}yes" >&6; }
32791 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
32792 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
32793 cat >conftest.$ac_ext <<_ACEOF
32794 /* confdefs.h. */
32795 _ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h. */
32801 main ()
32803 { label1: }
32805 return 0;
32807 _ACEOF
32808 rm -f conftest.$ac_objext
32809 if { (ac_try="$ac_compile"
32810 case "(($ac_try" in
32811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812 *) ac_try_echo=$ac_try;;
32813 esac
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815 (eval "$ac_compile") 2>conftest.er1
32816 ac_status=$?
32817 grep -v '^ *+' conftest.er1 >conftest.err
32818 rm -f conftest.er1
32819 cat conftest.err >&5
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); } && {
32822 test -z "$ac_c_werror_flag" ||
32823 test ! -s conftest.err
32824 } && test -s conftest.$ac_objext; then
32825 { echo "$as_me:$LINENO: result: yes" >&5
32826 echo "${ECHO_T}yes" >&6; }
32827 else
32828 echo "$as_me: failed program was:" >&5
32829 sed 's/^/| /' conftest.$ac_ext >&5
32832 { echo "$as_me:$LINENO: result: no" >&5
32833 echo "${ECHO_T}no" >&6; }
32834 cat >>confdefs.h <<\_ACEOF
32835 #define BX_NO_BLANK_LABELS 1
32836 _ACEOF
32841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32843 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
32844 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
32845 cat >conftest.$ac_ext <<_ACEOF
32846 /* confdefs.h. */
32847 _ACEOF
32848 cat confdefs.h >>conftest.$ac_ext
32849 cat >>conftest.$ac_ext <<_ACEOF
32850 /* end confdefs.h. */
32853 main ()
32855 { 42LL; }
32857 return 0;
32859 _ACEOF
32860 rm -f conftest.$ac_objext
32861 if { (ac_try="$ac_compile"
32862 case "(($ac_try" in
32863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32864 *) ac_try_echo=$ac_try;;
32865 esac
32866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32867 (eval "$ac_compile") 2>conftest.er1
32868 ac_status=$?
32869 grep -v '^ *+' conftest.er1 >conftest.err
32870 rm -f conftest.er1
32871 cat conftest.err >&5
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } && {
32874 test -z "$ac_c_werror_flag" ||
32875 test ! -s conftest.err
32876 } && test -s conftest.$ac_objext; then
32877 { echo "$as_me:$LINENO: result: yes" >&5
32878 echo "${ECHO_T}yes" >&6; }
32879 else
32880 echo "$as_me: failed program was:" >&5
32881 sed 's/^/| /' conftest.$ac_ext >&5
32884 { echo "$as_me:$LINENO: result: no" >&5
32885 echo "${ECHO_T}no" >&6; }
32886 cat >>confdefs.h <<\_ACEOF
32887 #define BX_64BIT_CONSTANTS_USE_LL 0
32888 _ACEOF
32893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32895 use_x86_64=0
32896 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
32897 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
32898 # Check whether --enable-x86-64 was given.
32899 if test "${enable_x86_64+set}" = set; then
32900 enableval=$enable_x86_64; if test "$enableval" = yes; then
32901 { echo "$as_me:$LINENO: result: yes" >&5
32902 echo "${ECHO_T}yes" >&6; }
32903 OBJS64='$(OBJS64)'
32904 cat >>confdefs.h <<\_ACEOF
32905 #define BX_SUPPORT_X86_64 1
32906 _ACEOF
32908 use_x86_64=1
32909 else
32910 { echo "$as_me:$LINENO: result: no" >&5
32911 echo "${ECHO_T}no" >&6; }
32912 OBJS64=''
32913 cat >>confdefs.h <<\_ACEOF
32914 #define BX_SUPPORT_X86_64 0
32915 _ACEOF
32919 else
32921 { echo "$as_me:$LINENO: result: no" >&5
32922 echo "${ECHO_T}no" >&6; }
32923 OBJS64=''
32924 cat >>confdefs.h <<\_ACEOF
32925 #define BX_SUPPORT_X86_64 0
32926 _ACEOF
32934 use_smp=0
32935 { echo "$as_me:$LINENO: checking for SMP support" >&5
32936 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
32937 # Check whether --enable-smp was given.
32938 if test "${enable_smp+set}" = set; then
32939 enableval=$enable_smp; if test "$enableval" = yes; then
32940 { echo "$as_me:$LINENO: result: yes" >&5
32941 echo "${ECHO_T}yes" >&6; }
32942 cat >>confdefs.h <<\_ACEOF
32943 #define BX_SUPPORT_SMP 1
32944 _ACEOF
32946 cat >>confdefs.h <<\_ACEOF
32947 #define BX_USE_CPU_SMF 0
32948 _ACEOF
32950 use_smp=1
32951 else
32952 { echo "$as_me:$LINENO: result: no" >&5
32953 echo "${ECHO_T}no" >&6; }
32954 cat >>confdefs.h <<\_ACEOF
32955 #define BX_SUPPORT_SMP 0
32956 _ACEOF
32960 else
32962 { echo "$as_me:$LINENO: result: no" >&5
32963 echo "${ECHO_T}no" >&6; }
32964 cat >>confdefs.h <<\_ACEOF
32965 #define BX_SUPPORT_SMP 0
32966 _ACEOF
32973 { echo "$as_me:$LINENO: checking for cpu level" >&5
32974 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
32975 # Check whether --enable-cpu-level was given.
32976 if test "${enable_cpu_level+set}" = set; then
32977 enableval=$enable_cpu_level; case "$enableval" in
32979 { echo "$as_me:$LINENO: result: 3" >&5
32980 echo "${ECHO_T}3" >&6; }
32981 cat >>confdefs.h <<\_ACEOF
32982 #define BX_CPU_LEVEL 3
32983 _ACEOF
32985 cat >>confdefs.h <<\_ACEOF
32986 #define BX_CPU_LEVEL_HACKED 3
32987 _ACEOF
32991 { echo "$as_me:$LINENO: result: 4" >&5
32992 echo "${ECHO_T}4" >&6; }
32993 cat >>confdefs.h <<\_ACEOF
32994 #define BX_CPU_LEVEL 4
32995 _ACEOF
32997 cat >>confdefs.h <<\_ACEOF
32998 #define BX_CPU_LEVEL_HACKED 4
32999 _ACEOF
33003 { echo "$as_me:$LINENO: result: 5" >&5
33004 echo "${ECHO_T}5" >&6; }
33005 cat >>confdefs.h <<\_ACEOF
33006 #define BX_CPU_LEVEL 5
33007 _ACEOF
33009 cat >>confdefs.h <<\_ACEOF
33010 #define BX_CPU_LEVEL_HACKED 5
33011 _ACEOF
33015 { echo "$as_me:$LINENO: result: 6" >&5
33016 echo "${ECHO_T}6" >&6; }
33017 cat >>confdefs.h <<\_ACEOF
33018 #define BX_CPU_LEVEL 6
33019 _ACEOF
33021 cat >>confdefs.h <<\_ACEOF
33022 #define BX_CPU_LEVEL_HACKED 6
33023 _ACEOF
33027 echo " "
33028 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
33029 exit 1
33031 esac
33032 bx_cpu_level=$enableval
33033 if test "$use_smp" = 1 -a "$enableval" -lt 6; then
33034 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
33035 exit 1
33038 else
33040 # for multiprocessors or x86-64, cpu level must be 6
33041 if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
33042 { echo "$as_me:$LINENO: result: 6" >&5
33043 echo "${ECHO_T}6" >&6; }
33044 cat >>confdefs.h <<\_ACEOF
33045 #define BX_CPU_LEVEL 6
33046 _ACEOF
33048 cat >>confdefs.h <<\_ACEOF
33049 #define BX_CPU_LEVEL_HACKED 6
33050 _ACEOF
33052 bx_cpu_level=6
33053 else
33054 { echo "$as_me:$LINENO: result: 5" >&5
33055 echo "${ECHO_T}5" >&6; }
33056 cat >>confdefs.h <<\_ACEOF
33057 #define BX_CPU_LEVEL 5
33058 _ACEOF
33060 cat >>confdefs.h <<\_ACEOF
33061 #define BX_CPU_LEVEL_HACKED 5
33062 _ACEOF
33064 bx_cpu_level=5
33072 { echo "$as_me:$LINENO: checking for APIC support" >&5
33073 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
33074 # Check whether --enable-apic was given.
33075 if test "${enable_apic+set}" = set; then
33076 enableval=$enable_apic; if test "$enableval" = yes; then
33077 { echo "$as_me:$LINENO: result: yes" >&5
33078 echo "${ECHO_T}yes" >&6; }
33079 cat >>confdefs.h <<\_ACEOF
33080 #define BX_SUPPORT_APIC 1
33081 _ACEOF
33083 IOAPIC_OBJS='ioapic.o'
33084 else
33085 { echo "$as_me:$LINENO: result: no" >&5
33086 echo "${ECHO_T}no" >&6; }
33087 if test "$use_smp" = 1; then
33088 echo "ERROR: With SMP configuration you must use --enable-apic"
33089 exit 1
33091 cat >>confdefs.h <<\_ACEOF
33092 #define BX_SUPPORT_APIC 0
33093 _ACEOF
33095 IOAPIC_OBJS=''
33098 else
33100 if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
33101 # enable APIC by default, if SMP configuration or if cpulevel>5
33102 { echo "$as_me:$LINENO: result: yes" >&5
33103 echo "${ECHO_T}yes" >&6; }
33104 cat >>confdefs.h <<\_ACEOF
33105 #define BX_SUPPORT_APIC 1
33106 _ACEOF
33108 IOAPIC_OBJS='ioapic.o'
33109 else
33110 { echo "$as_me:$LINENO: result: no" >&5
33111 echo "${ECHO_T}no" >&6; }
33112 cat >>confdefs.h <<\_ACEOF
33113 #define BX_SUPPORT_APIC 0
33114 _ACEOF
33116 IOAPIC_OBJS=''
33124 if test "${ac_cv_header_zlib_h+set}" = set; then
33125 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33126 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33127 if test "${ac_cv_header_zlib_h+set}" = set; then
33128 echo $ECHO_N "(cached) $ECHO_C" >&6
33130 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33131 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33132 else
33133 # Is the header compilable?
33134 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33135 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33136 cat >conftest.$ac_ext <<_ACEOF
33137 /* confdefs.h. */
33138 _ACEOF
33139 cat confdefs.h >>conftest.$ac_ext
33140 cat >>conftest.$ac_ext <<_ACEOF
33141 /* end confdefs.h. */
33142 $ac_includes_default
33143 #include <zlib.h>
33144 _ACEOF
33145 rm -f conftest.$ac_objext
33146 if { (ac_try="$ac_compile"
33147 case "(($ac_try" in
33148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149 *) ac_try_echo=$ac_try;;
33150 esac
33151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152 (eval "$ac_compile") 2>conftest.er1
33153 ac_status=$?
33154 grep -v '^ *+' conftest.er1 >conftest.err
33155 rm -f conftest.er1
33156 cat conftest.err >&5
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); } && {
33159 test -z "$ac_c_werror_flag" ||
33160 test ! -s conftest.err
33161 } && test -s conftest.$ac_objext; then
33162 ac_header_compiler=yes
33163 else
33164 echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33167 ac_header_compiler=no
33170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33172 echo "${ECHO_T}$ac_header_compiler" >&6; }
33174 # Is the header present?
33175 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33176 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33177 cat >conftest.$ac_ext <<_ACEOF
33178 /* confdefs.h. */
33179 _ACEOF
33180 cat confdefs.h >>conftest.$ac_ext
33181 cat >>conftest.$ac_ext <<_ACEOF
33182 /* end confdefs.h. */
33183 #include <zlib.h>
33184 _ACEOF
33185 if { (ac_try="$ac_cpp conftest.$ac_ext"
33186 case "(($ac_try" in
33187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33188 *) ac_try_echo=$ac_try;;
33189 esac
33190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33192 ac_status=$?
33193 grep -v '^ *+' conftest.er1 >conftest.err
33194 rm -f conftest.er1
33195 cat conftest.err >&5
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); } >/dev/null && {
33198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33199 test ! -s conftest.err
33200 }; then
33201 ac_header_preproc=yes
33202 else
33203 echo "$as_me: failed program was:" >&5
33204 sed 's/^/| /' conftest.$ac_ext >&5
33206 ac_header_preproc=no
33209 rm -f conftest.err conftest.$ac_ext
33210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33211 echo "${ECHO_T}$ac_header_preproc" >&6; }
33213 # So? What about this header?
33214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33215 yes:no: )
33216 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33217 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33218 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
33219 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
33220 ac_header_preproc=yes
33222 no:yes:* )
33223 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33224 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33225 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33226 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33227 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33228 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33229 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33230 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33231 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
33232 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
33233 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33234 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33237 esac
33238 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33239 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33240 if test "${ac_cv_header_zlib_h+set}" = set; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33242 else
33243 ac_cv_header_zlib_h=$ac_header_preproc
33245 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33246 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33249 if test $ac_cv_header_zlib_h = yes; then
33250 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
33251 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
33252 if test "${ac_cv_lib_z_gzopen+set}" = set; then
33253 echo $ECHO_N "(cached) $ECHO_C" >&6
33254 else
33255 ac_check_lib_save_LIBS=$LIBS
33256 LIBS="-lz $LIBS"
33257 cat >conftest.$ac_ext <<_ACEOF
33258 /* confdefs.h. */
33259 _ACEOF
33260 cat confdefs.h >>conftest.$ac_ext
33261 cat >>conftest.$ac_ext <<_ACEOF
33262 /* end confdefs.h. */
33264 /* Override any GCC internal prototype to avoid an error.
33265 Use char because int might match the return type of a GCC
33266 builtin and then its argument prototype would still apply. */
33267 #ifdef __cplusplus
33268 extern "C"
33269 #endif
33270 char gzopen ();
33272 main ()
33274 return gzopen ();
33276 return 0;
33278 _ACEOF
33279 rm -f conftest.$ac_objext conftest$ac_exeext
33280 if { (ac_try="$ac_link"
33281 case "(($ac_try" in
33282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33284 esac
33285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286 (eval "$ac_link") 2>conftest.er1
33287 ac_status=$?
33288 grep -v '^ *+' conftest.er1 >conftest.err
33289 rm -f conftest.er1
33290 cat conftest.err >&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); } && {
33293 test -z "$ac_c_werror_flag" ||
33294 test ! -s conftest.err
33295 } && test -s conftest$ac_exeext &&
33296 $as_test_x conftest$ac_exeext; then
33297 ac_cv_lib_z_gzopen=yes
33298 else
33299 echo "$as_me: failed program was:" >&5
33300 sed 's/^/| /' conftest.$ac_ext >&5
33302 ac_cv_lib_z_gzopen=no
33305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33306 conftest$ac_exeext conftest.$ac_ext
33307 LIBS=$ac_check_lib_save_LIBS
33309 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
33310 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
33311 if test $ac_cv_lib_z_gzopen = yes; then
33312 cat >>confdefs.h <<\_ACEOF
33313 #define BX_HAVE_ZLIB 1
33314 _ACEOF
33322 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
33323 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
33324 # Check whether --enable-compressed-hd was given.
33325 if test "${enable_compressed_hd+set}" = set; then
33326 enableval=$enable_compressed_hd; if test "$enableval" = yes; then
33327 { echo "$as_me:$LINENO: result: yes" >&5
33328 echo "${ECHO_T}yes" >&6; }
33329 cat >>confdefs.h <<\_ACEOF
33330 #define BX_COMPRESSED_HD_SUPPORT 1
33331 _ACEOF
33333 LIBS="$LIBS -lz"
33334 else
33335 { echo "$as_me:$LINENO: result: no" >&5
33336 echo "${ECHO_T}no" >&6; }
33337 cat >>confdefs.h <<\_ACEOF
33338 #define BX_COMPRESSED_HD_SUPPORT 0
33339 _ACEOF
33342 else
33344 { echo "$as_me:$LINENO: result: no" >&5
33345 echo "${ECHO_T}no" >&6; }
33346 cat >>confdefs.h <<\_ACEOF
33347 #define BX_COMPRESSED_HD_SUPPORT 0
33348 _ACEOF
33356 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
33357 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
33358 # Check whether --enable-ne2000 was given.
33359 if test "${enable_ne2000+set}" = set; then
33360 enableval=$enable_ne2000; if test "$enableval" = yes; then
33361 { echo "$as_me:$LINENO: result: yes" >&5
33362 echo "${ECHO_T}yes" >&6; }
33363 cat >>confdefs.h <<\_ACEOF
33364 #define BX_SUPPORT_NE2K 1
33365 _ACEOF
33367 NE2K_OBJS='ne2k.o'
33368 networking=yes
33369 else
33370 { echo "$as_me:$LINENO: result: no" >&5
33371 echo "${ECHO_T}no" >&6; }
33372 cat >>confdefs.h <<\_ACEOF
33373 #define BX_SUPPORT_NE2K 0
33374 _ACEOF
33376 NE2K_OBJS=''
33377 networking=no
33379 else
33381 { echo "$as_me:$LINENO: result: no" >&5
33382 echo "${ECHO_T}no" >&6; }
33383 cat >>confdefs.h <<\_ACEOF
33384 #define BX_SUPPORT_NE2K 0
33385 _ACEOF
33387 NE2K_OBJS=''
33388 networking=no
33395 { echo "$as_me:$LINENO: checking for ACPI support" >&5
33396 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
33397 # Check whether --enable-acpi was given.
33398 if test "${enable_acpi+set}" = set; then
33399 enableval=$enable_acpi; if test "$enableval" = yes; then
33400 { echo "$as_me:$LINENO: result: yes" >&5
33401 echo "${ECHO_T}yes" >&6; }
33402 cat >>confdefs.h <<\_ACEOF
33403 #define BX_SUPPORT_ACPI 1
33404 _ACEOF
33406 else
33407 { echo "$as_me:$LINENO: result: no" >&5
33408 echo "${ECHO_T}no" >&6; }
33409 cat >>confdefs.h <<\_ACEOF
33410 #define BX_SUPPORT_ACPI 0
33411 _ACEOF
33414 else
33416 { echo "$as_me:$LINENO: result: no" >&5
33417 echo "${ECHO_T}no" >&6; }
33418 cat >>confdefs.h <<\_ACEOF
33419 #define BX_SUPPORT_ACPI 0
33420 _ACEOF
33428 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
33429 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
33430 # Check whether --enable-pci was given.
33431 if test "${enable_pci+set}" = set; then
33432 enableval=$enable_pci; if test "$enableval" = yes; then
33433 { echo "$as_me:$LINENO: result: yes" >&5
33434 echo "${ECHO_T}yes" >&6; }
33435 cat >>confdefs.h <<\_ACEOF
33436 #define BX_SUPPORT_PCI 1
33437 _ACEOF
33439 pci=1
33440 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o'
33441 else
33442 { echo "$as_me:$LINENO: result: no" >&5
33443 echo "${ECHO_T}no" >&6; }
33444 cat >>confdefs.h <<\_ACEOF
33445 #define BX_SUPPORT_PCI 0
33446 _ACEOF
33448 pci=0
33449 PCI_OBJ=''
33451 else
33453 { echo "$as_me:$LINENO: result: no" >&5
33454 echo "${ECHO_T}no" >&6; }
33455 cat >>confdefs.h <<\_ACEOF
33456 #define BX_SUPPORT_PCI 0
33457 _ACEOF
33459 pci=0
33460 PCI_OBJ=''
33468 # PCI host device support
33470 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
33471 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
33472 # Check whether --enable-pcidev was given.
33473 if test "${enable_pcidev+set}" = set; then
33474 enableval=$enable_pcidev;
33475 if test "$enableval" = "yes"; then
33476 { echo "$as_me:$LINENO: result: yes" >&5
33477 echo "${ECHO_T}yes" >&6; }
33478 if test "$pci" != "1"; then
33479 { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
33480 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
33481 { (exit 1); exit 1; }; }
33483 case "$target" in
33484 *-linux*)
33485 { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
33486 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
33487 linux_version=`uname -r`
33488 case "$linux_version" in
33489 2.4*)
33490 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
33491 KERNEL_MODULE_SUFFIX="o"
33493 2.6*)
33494 PCIDEV_MODULE_MAKE_ALL="all-kernel26"
33495 KERNEL_MODULE_SUFFIX="ko"
33498 { { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
33499 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
33500 { (exit 1); exit 1; }; }
33502 esac
33503 KERNELDIR="/lib/modules/$linux_version/build"
33504 LSMOD="lsmod"
33505 INSMOD="insmod"
33506 RMMOD="rmmod"
33507 DEPMOD="depmod"
33517 { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
33518 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
33519 { (exit 1); exit 1; }; }
33521 esac
33522 cat >>confdefs.h <<\_ACEOF
33523 #define BX_SUPPORT_PCIDEV 1
33524 _ACEOF
33526 PCI_OBJ="$PCI_OBJ pcidev.o"
33527 else
33528 { echo "$as_me:$LINENO: result: no" >&5
33529 echo "${ECHO_T}no" >&6; }
33530 cat >>confdefs.h <<\_ACEOF
33531 #define BX_SUPPORT_PCIDEV 0
33532 _ACEOF
33536 else
33538 { echo "$as_me:$LINENO: result: no" >&5
33539 echo "${ECHO_T}no" >&6; }
33540 cat >>confdefs.h <<\_ACEOF
33541 #define BX_SUPPORT_PCIDEV 0
33542 _ACEOF
33549 USBDEV_OBJS=''
33550 SCSI_OBJS=''
33551 { echo "$as_me:$LINENO: checking for limited USB support" >&5
33552 echo $ECHO_N "checking for limited USB support... $ECHO_C" >&6; }
33553 # Check whether --enable-usb was given.
33554 if test "${enable_usb+set}" = set; then
33555 enableval=$enable_usb; if test "$enableval" = yes; then
33556 { echo "$as_me:$LINENO: result: yes" >&5
33557 echo "${ECHO_T}yes" >&6; }
33558 cat >>confdefs.h <<\_ACEOF
33559 #define BX_SUPPORT_PCIUSB 1
33560 _ACEOF
33562 PCI_OBJ="$PCI_OBJ pciusb.o"
33563 USBDEV_OBJS="usb_hid.o usb_msd.o"
33564 SCSI_OBJS="scsi_device.o"
33565 else
33566 { echo "$as_me:$LINENO: result: no" >&5
33567 echo "${ECHO_T}no" >&6; }
33568 cat >>confdefs.h <<\_ACEOF
33569 #define BX_SUPPORT_PCIUSB 0
33570 _ACEOF
33573 else
33575 { echo "$as_me:$LINENO: result: no" >&5
33576 echo "${ECHO_T}no" >&6; }
33577 cat >>confdefs.h <<\_ACEOF
33578 #define BX_SUPPORT_PCIUSB 0
33579 _ACEOF
33589 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
33590 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
33591 # Check whether --enable-pnic was given.
33592 if test "${enable_pnic+set}" = set; then
33593 enableval=$enable_pnic; if test "$enableval" = yes; then
33594 { echo "$as_me:$LINENO: result: yes" >&5
33595 echo "${ECHO_T}yes" >&6; }
33596 cat >>confdefs.h <<\_ACEOF
33597 #define BX_SUPPORT_PCIPNIC 1
33598 _ACEOF
33600 PCI_OBJ="$PCI_OBJ pcipnic.o"
33601 networking=yes
33602 else
33603 { echo "$as_me:$LINENO: result: no" >&5
33604 echo "${ECHO_T}no" >&6; }
33605 cat >>confdefs.h <<\_ACEOF
33606 #define BX_SUPPORT_PCIPNIC 0
33607 _ACEOF
33610 else
33612 { echo "$as_me:$LINENO: result: no" >&5
33613 echo "${ECHO_T}no" >&6; }
33614 cat >>confdefs.h <<\_ACEOF
33615 #define BX_SUPPORT_PCIPNIC 0
33616 _ACEOF
33623 NETLOW_OBJS=''
33624 if test "$networking" = yes; then
33625 NETLOW_OBJS='eth.o eth_null.o eth_vnet.o'
33626 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33627 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33628 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33629 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33630 echo $ECHO_N "(cached) $ECHO_C" >&6
33632 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33633 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33634 else
33635 # Is the header compilable?
33636 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
33637 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
33638 cat >conftest.$ac_ext <<_ACEOF
33639 /* confdefs.h. */
33640 _ACEOF
33641 cat confdefs.h >>conftest.$ac_ext
33642 cat >>conftest.$ac_ext <<_ACEOF
33643 /* end confdefs.h. */
33644 $ac_includes_default
33645 #include <net/bpf.h>
33646 _ACEOF
33647 rm -f conftest.$ac_objext
33648 if { (ac_try="$ac_compile"
33649 case "(($ac_try" in
33650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33651 *) ac_try_echo=$ac_try;;
33652 esac
33653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33654 (eval "$ac_compile") 2>conftest.er1
33655 ac_status=$?
33656 grep -v '^ *+' conftest.er1 >conftest.err
33657 rm -f conftest.er1
33658 cat conftest.err >&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); } && {
33661 test -z "$ac_c_werror_flag" ||
33662 test ! -s conftest.err
33663 } && test -s conftest.$ac_objext; then
33664 ac_header_compiler=yes
33665 else
33666 echo "$as_me: failed program was:" >&5
33667 sed 's/^/| /' conftest.$ac_ext >&5
33669 ac_header_compiler=no
33672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33674 echo "${ECHO_T}$ac_header_compiler" >&6; }
33676 # Is the header present?
33677 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
33678 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
33679 cat >conftest.$ac_ext <<_ACEOF
33680 /* confdefs.h. */
33681 _ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h. */
33685 #include <net/bpf.h>
33686 _ACEOF
33687 if { (ac_try="$ac_cpp conftest.$ac_ext"
33688 case "(($ac_try" in
33689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690 *) ac_try_echo=$ac_try;;
33691 esac
33692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33694 ac_status=$?
33695 grep -v '^ *+' conftest.er1 >conftest.err
33696 rm -f conftest.er1
33697 cat conftest.err >&5
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); } >/dev/null && {
33700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33701 test ! -s conftest.err
33702 }; then
33703 ac_header_preproc=yes
33704 else
33705 echo "$as_me: failed program was:" >&5
33706 sed 's/^/| /' conftest.$ac_ext >&5
33708 ac_header_preproc=no
33711 rm -f conftest.err conftest.$ac_ext
33712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33713 echo "${ECHO_T}$ac_header_preproc" >&6; }
33715 # So? What about this header?
33716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33717 yes:no: )
33718 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
33719 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33720 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
33721 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
33722 ac_header_preproc=yes
33724 no:yes:* )
33725 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
33726 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
33727 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
33728 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
33729 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
33730 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
33731 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
33732 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
33733 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
33734 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
33735 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
33736 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
33739 esac
33740 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33741 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33742 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33743 echo $ECHO_N "(cached) $ECHO_C" >&6
33744 else
33745 ac_cv_header_net_bpf_h=$ac_header_preproc
33747 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33748 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33751 if test $ac_cv_header_net_bpf_h = yes; then
33752 NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
33756 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33757 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33758 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33759 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33760 echo $ECHO_N "(cached) $ECHO_C" >&6
33762 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33763 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33764 else
33765 # Is the header compilable?
33766 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
33767 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
33768 cat >conftest.$ac_ext <<_ACEOF
33769 /* confdefs.h. */
33770 _ACEOF
33771 cat confdefs.h >>conftest.$ac_ext
33772 cat >>conftest.$ac_ext <<_ACEOF
33773 /* end confdefs.h. */
33774 $ac_includes_default
33775 #include <netpacket/packet.h>
33776 _ACEOF
33777 rm -f conftest.$ac_objext
33778 if { (ac_try="$ac_compile"
33779 case "(($ac_try" in
33780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33781 *) ac_try_echo=$ac_try;;
33782 esac
33783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33784 (eval "$ac_compile") 2>conftest.er1
33785 ac_status=$?
33786 grep -v '^ *+' conftest.er1 >conftest.err
33787 rm -f conftest.er1
33788 cat conftest.err >&5
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); } && {
33791 test -z "$ac_c_werror_flag" ||
33792 test ! -s conftest.err
33793 } && test -s conftest.$ac_objext; then
33794 ac_header_compiler=yes
33795 else
33796 echo "$as_me: failed program was:" >&5
33797 sed 's/^/| /' conftest.$ac_ext >&5
33799 ac_header_compiler=no
33802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33804 echo "${ECHO_T}$ac_header_compiler" >&6; }
33806 # Is the header present?
33807 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
33808 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
33809 cat >conftest.$ac_ext <<_ACEOF
33810 /* confdefs.h. */
33811 _ACEOF
33812 cat confdefs.h >>conftest.$ac_ext
33813 cat >>conftest.$ac_ext <<_ACEOF
33814 /* end confdefs.h. */
33815 #include <netpacket/packet.h>
33816 _ACEOF
33817 if { (ac_try="$ac_cpp conftest.$ac_ext"
33818 case "(($ac_try" in
33819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33820 *) ac_try_echo=$ac_try;;
33821 esac
33822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33824 ac_status=$?
33825 grep -v '^ *+' conftest.er1 >conftest.err
33826 rm -f conftest.er1
33827 cat conftest.err >&5
33828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33829 (exit $ac_status); } >/dev/null && {
33830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33831 test ! -s conftest.err
33832 }; then
33833 ac_header_preproc=yes
33834 else
33835 echo "$as_me: failed program was:" >&5
33836 sed 's/^/| /' conftest.$ac_ext >&5
33838 ac_header_preproc=no
33841 rm -f conftest.err conftest.$ac_ext
33842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33843 echo "${ECHO_T}$ac_header_preproc" >&6; }
33845 # So? What about this header?
33846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33847 yes:no: )
33848 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
33849 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33850 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&5
33851 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&2;}
33852 ac_header_preproc=yes
33854 no:yes:* )
33855 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
33856 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
33857 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&5
33858 echo "$as_me: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&2;}
33859 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
33860 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
33861 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&5
33862 echo "$as_me: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&2;}
33863 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&5
33864 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&2;}
33865 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
33866 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
33869 esac
33870 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33871 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33872 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33873 echo $ECHO_N "(cached) $ECHO_C" >&6
33874 else
33875 ac_cv_header_netpacket_packet_h=$ac_header_preproc
33877 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33878 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33881 if test $ac_cv_header_netpacket_packet_h = yes; then
33882 NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
33886 case "$target" in
33887 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
33888 NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
33890 *-macosx* | *-darwin*)
33891 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
33892 cat >>confdefs.h <<\_ACEOF
33893 #define HAVE_TUNTAP 1
33894 _ACEOF
33898 { echo "$as_me:$LINENO: checking for net/if.h" >&5
33899 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
33900 if test "${ac_cv_header_net_if_h+set}" = set; then
33901 echo $ECHO_N "(cached) $ECHO_C" >&6
33902 else
33903 cat >conftest.$ac_ext <<_ACEOF
33904 /* confdefs.h. */
33905 _ACEOF
33906 cat confdefs.h >>conftest.$ac_ext
33907 cat >>conftest.$ac_ext <<_ACEOF
33908 /* end confdefs.h. */
33910 #include <sys/types.h>
33911 #include <sys/socket.h>
33914 #include <net/if.h>
33915 _ACEOF
33916 rm -f conftest.$ac_objext
33917 if { (ac_try="$ac_compile"
33918 case "(($ac_try" in
33919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920 *) ac_try_echo=$ac_try;;
33921 esac
33922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923 (eval "$ac_compile") 2>conftest.er1
33924 ac_status=$?
33925 grep -v '^ *+' conftest.er1 >conftest.err
33926 rm -f conftest.er1
33927 cat conftest.err >&5
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); } && {
33930 test -z "$ac_c_werror_flag" ||
33931 test ! -s conftest.err
33932 } && test -s conftest.$ac_objext; then
33933 ac_cv_header_net_if_h=yes
33934 else
33935 echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33938 ac_cv_header_net_if_h=no
33941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33943 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
33944 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
33945 if test $ac_cv_header_net_if_h = yes; then
33947 use_ethertap=yes
33948 cat >>confdefs.h <<\_ACEOF
33949 #define BX_HAVE_NET_IF_H 1
33950 _ACEOF
33956 { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
33957 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
33958 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
33959 echo $ECHO_N "(cached) $ECHO_C" >&6
33960 else
33961 cat >conftest.$ac_ext <<_ACEOF
33962 /* confdefs.h. */
33963 _ACEOF
33964 cat confdefs.h >>conftest.$ac_ext
33965 cat >>conftest.$ac_ext <<_ACEOF
33966 /* end confdefs.h. */
33968 #include <asm/types.h>
33969 #include <sys/socket.h>
33972 #include <linux/netlink.h>
33973 _ACEOF
33974 rm -f conftest.$ac_objext
33975 if { (ac_try="$ac_compile"
33976 case "(($ac_try" in
33977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33978 *) ac_try_echo=$ac_try;;
33979 esac
33980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33981 (eval "$ac_compile") 2>conftest.er1
33982 ac_status=$?
33983 grep -v '^ *+' conftest.er1 >conftest.err
33984 rm -f conftest.er1
33985 cat conftest.err >&5
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); } && {
33988 test -z "$ac_c_werror_flag" ||
33989 test ! -s conftest.err
33990 } && test -s conftest.$ac_objext; then
33991 ac_cv_header_linux_netlink_h=yes
33992 else
33993 echo "$as_me: failed program was:" >&5
33994 sed 's/^/| /' conftest.$ac_ext >&5
33996 ac_cv_header_linux_netlink_h=no
33999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34001 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
34002 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
34003 if test $ac_cv_header_linux_netlink_h = yes; then
34005 use_ethertap=yes
34011 if test "$use_ethertap" = yes; then
34012 NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
34013 cat >>confdefs.h <<\_ACEOF
34014 #define HAVE_ETHERTAP 1
34015 _ACEOF
34017 cat >>confdefs.h <<\_ACEOF
34018 #define HAVE_VDE 1
34019 _ACEOF
34023 { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
34024 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
34025 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
34026 echo $ECHO_N "(cached) $ECHO_C" >&6
34027 else
34028 cat >conftest.$ac_ext <<_ACEOF
34029 /* confdefs.h. */
34030 _ACEOF
34031 cat confdefs.h >>conftest.$ac_ext
34032 cat >>conftest.$ac_ext <<_ACEOF
34033 /* end confdefs.h. */
34035 #include <sys/types.h>
34036 #include <sys/socket.h>
34037 #include <net/if.h>
34040 #include <net/if_tun.h>
34041 _ACEOF
34042 rm -f conftest.$ac_objext
34043 if { (ac_try="$ac_compile"
34044 case "(($ac_try" in
34045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34046 *) ac_try_echo=$ac_try;;
34047 esac
34048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34049 (eval "$ac_compile") 2>conftest.er1
34050 ac_status=$?
34051 grep -v '^ *+' conftest.er1 >conftest.err
34052 rm -f conftest.er1
34053 cat conftest.err >&5
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); } && {
34056 test -z "$ac_c_werror_flag" ||
34057 test ! -s conftest.err
34058 } && test -s conftest.$ac_objext; then
34059 ac_cv_header_net_if_tun_h=yes
34060 else
34061 echo "$as_me: failed program was:" >&5
34062 sed 's/^/| /' conftest.$ac_ext >&5
34064 ac_cv_header_net_if_tun_h=no
34067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34069 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
34070 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
34071 if test $ac_cv_header_net_if_tun_h = yes; then
34073 use_tuntap=yes
34078 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
34079 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
34080 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
34081 echo $ECHO_N "(cached) $ECHO_C" >&6
34082 else
34083 cat >conftest.$ac_ext <<_ACEOF
34084 /* confdefs.h. */
34085 _ACEOF
34086 cat confdefs.h >>conftest.$ac_ext
34087 cat >>conftest.$ac_ext <<_ACEOF
34088 /* end confdefs.h. */
34090 #include <asm/types.h>
34091 #include <sys/socket.h>
34094 #include <linux/if_tun.h>
34095 _ACEOF
34096 rm -f conftest.$ac_objext
34097 if { (ac_try="$ac_compile"
34098 case "(($ac_try" in
34099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100 *) ac_try_echo=$ac_try;;
34101 esac
34102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_compile") 2>conftest.er1
34104 ac_status=$?
34105 grep -v '^ *+' conftest.er1 >conftest.err
34106 rm -f conftest.er1
34107 cat conftest.err >&5
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); } && {
34110 test -z "$ac_c_werror_flag" ||
34111 test ! -s conftest.err
34112 } && test -s conftest.$ac_objext; then
34113 ac_cv_header_linux_if_tun_h=yes
34114 else
34115 echo "$as_me: failed program was:" >&5
34116 sed 's/^/| /' conftest.$ac_ext >&5
34118 ac_cv_header_linux_if_tun_h=no
34121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34123 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
34124 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
34125 if test $ac_cv_header_linux_if_tun_h = yes; then
34127 use_tuntap=yes
34132 if test "$use_tuntap" = yes; then
34133 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
34134 cat >>confdefs.h <<\_ACEOF
34135 #define HAVE_TUNTAP 1
34136 _ACEOF
34141 esac
34142 cat >>confdefs.h <<\_ACEOF
34143 #define BX_NETWORKING 1
34144 _ACEOF
34146 else
34147 cat >>confdefs.h <<\_ACEOF
34148 #define BX_NETWORKING 0
34149 _ACEOF
34156 { echo "$as_me:$LINENO: checking for large pages support" >&5
34157 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
34158 # Check whether --enable-large-pages was given.
34159 if test "${enable_large_pages+set}" = set; then
34160 enableval=$enable_large_pages; if test "$enableval" = yes; then
34161 { echo "$as_me:$LINENO: result: yes" >&5
34162 echo "${ECHO_T}yes" >&6; }
34163 cat >>confdefs.h <<\_ACEOF
34164 #define BX_SUPPORT_LARGE_PAGES 1
34165 _ACEOF
34167 support_large_pages=1
34168 else
34169 { echo "$as_me:$LINENO: result: no" >&5
34170 echo "${ECHO_T}no" >&6; }
34171 cat >>confdefs.h <<\_ACEOF
34172 #define BX_SUPPORT_LARGE_PAGES 0
34173 _ACEOF
34175 support_large_pages=0
34177 else
34179 if test "$bx_cpu_level" -gt 4; then
34180 { echo "$as_me:$LINENO: result: yes" >&5
34181 echo "${ECHO_T}yes" >&6; }
34182 cat >>confdefs.h <<\_ACEOF
34183 #define BX_SUPPORT_LARGE_PAGES 1
34184 _ACEOF
34186 support_large_pages=1
34187 else
34188 { echo "$as_me:$LINENO: result: no" >&5
34189 echo "${ECHO_T}no" >&6; }
34190 cat >>confdefs.h <<\_ACEOF
34191 #define BX_SUPPORT_LARGE_PAGES 0
34192 _ACEOF
34194 support_large_pages=0
34202 { echo "$as_me:$LINENO: checking for PAE support" >&5
34203 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
34204 # Check whether --enable-pae was given.
34205 if test "${enable_pae+set}" = set; then
34206 enableval=$enable_pae; if test "$enableval" = yes; then
34207 { echo "$as_me:$LINENO: result: yes" >&5
34208 echo "${ECHO_T}yes" >&6; }
34209 cat >>confdefs.h <<\_ACEOF
34210 #define BX_SUPPORT_PAE 1
34211 _ACEOF
34213 support_pae=1
34214 else
34215 { echo "$as_me:$LINENO: result: no" >&5
34216 echo "${ECHO_T}no" >&6; }
34217 cat >>confdefs.h <<\_ACEOF
34218 #define BX_SUPPORT_PAE 0
34219 _ACEOF
34221 support_pae=0
34223 else
34225 if test "$bx_cpu_level" -gt 5; then
34226 { echo "$as_me:$LINENO: result: yes" >&5
34227 echo "${ECHO_T}yes" >&6; }
34228 cat >>confdefs.h <<\_ACEOF
34229 #define BX_SUPPORT_PAE 1
34230 _ACEOF
34232 support_pae=1
34233 else
34234 { echo "$as_me:$LINENO: result: no" >&5
34235 echo "${ECHO_T}no" >&6; }
34236 cat >>confdefs.h <<\_ACEOF
34237 #define BX_SUPPORT_PAE 0
34238 _ACEOF
34240 support_pae=0
34247 { echo "$as_me:$LINENO: checking for global pages support" >&5
34248 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
34249 # Check whether --enable-global-pages was given.
34250 if test "${enable_global_pages+set}" = set; then
34251 enableval=$enable_global_pages; if test "$enableval" = yes; then
34252 { echo "$as_me:$LINENO: result: yes" >&5
34253 echo "${ECHO_T}yes" >&6; }
34254 cat >>confdefs.h <<\_ACEOF
34255 #define BX_SUPPORT_GLOBAL_PAGES 1
34256 _ACEOF
34258 support_global_pages=1
34259 else
34260 { echo "$as_me:$LINENO: result: no" >&5
34261 echo "${ECHO_T}no" >&6; }
34262 cat >>confdefs.h <<\_ACEOF
34263 #define BX_SUPPORT_GLOBAL_PAGES 0
34264 _ACEOF
34266 support_global_pages=0
34268 else
34270 if test "$bx_cpu_level" -gt 5; then
34271 # enable by default
34272 { echo "$as_me:$LINENO: result: yes" >&5
34273 echo "${ECHO_T}yes" >&6; }
34274 cat >>confdefs.h <<\_ACEOF
34275 #define BX_SUPPORT_GLOBAL_PAGES 1
34276 _ACEOF
34278 support_global_pages=1
34279 else
34280 { echo "$as_me:$LINENO: result: no" >&5
34281 echo "${ECHO_T}no" >&6; }
34282 cat >>confdefs.h <<\_ACEOF
34283 #define BX_SUPPORT_GLOBAL_PAGES 0
34284 _ACEOF
34286 support_global_pages=0
34293 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
34294 { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
34295 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
34296 { (exit 1); exit 1; }; }
34299 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
34300 { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
34301 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
34302 { (exit 1); exit 1; }; }
34305 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
34306 { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
34307 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
34308 { (exit 1); exit 1; }; }
34311 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
34312 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
34313 # Check whether --enable-mtrr was given.
34314 if test "${enable_mtrr+set}" = set; then
34315 enableval=$enable_mtrr; if test "$enableval" = yes; then
34316 { echo "$as_me:$LINENO: result: yes" >&5
34317 echo "${ECHO_T}yes" >&6; }
34318 cat >>confdefs.h <<\_ACEOF
34319 #define BX_SUPPORT_MTRR 1
34320 _ACEOF
34322 else
34323 { echo "$as_me:$LINENO: result: no" >&5
34324 echo "${ECHO_T}no" >&6; }
34325 cat >>confdefs.h <<\_ACEOF
34326 #define BX_SUPPORT_MTRR 0
34327 _ACEOF
34330 else
34332 if test "$bx_cpu_level" -gt 5; then
34333 # enable by default
34334 { echo "$as_me:$LINENO: result: yes" >&5
34335 echo "${ECHO_T}yes" >&6; }
34336 cat >>confdefs.h <<\_ACEOF
34337 #define BX_SUPPORT_MTRR 1
34338 _ACEOF
34340 else
34341 { echo "$as_me:$LINENO: result: no" >&5
34342 echo "${ECHO_T}no" >&6; }
34343 cat >>confdefs.h <<\_ACEOF
34344 #define BX_SUPPORT_MTRR 0
34345 _ACEOF
34353 { echo "$as_me:$LINENO: checking for guest to host TLB support" >&5
34354 echo $ECHO_N "checking for guest to host TLB support... $ECHO_C" >&6; }
34355 # Check whether --enable-guest2host-tlb was given.
34356 if test "${enable_guest2host_tlb+set}" = set; then
34357 enableval=$enable_guest2host_tlb; if test "$enableval" = yes; then
34358 { echo "$as_me:$LINENO: result: yes" >&5
34359 echo "${ECHO_T}yes" >&6; }
34360 speedup_guest2host_tlb=1
34361 else
34362 { echo "$as_me:$LINENO: result: no" >&5
34363 echo "${ECHO_T}no" >&6; }
34364 speedup_guest2host_tlb=0
34366 else
34368 { echo "$as_me:$LINENO: result: no" >&5
34369 echo "${ECHO_T}no" >&6; }
34370 speedup_guest2host_tlb=0
34376 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
34377 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
34378 # Check whether --enable-repeat-speedups was given.
34379 if test "${enable_repeat_speedups+set}" = set; then
34380 enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
34381 { echo "$as_me:$LINENO: result: yes" >&5
34382 echo "${ECHO_T}yes" >&6; }
34383 speedup_repeat=1
34384 else
34385 { echo "$as_me:$LINENO: result: no" >&5
34386 echo "${ECHO_T}no" >&6; }
34387 speedup_repeat=0
34389 else
34391 { echo "$as_me:$LINENO: result: no" >&5
34392 echo "${ECHO_T}no" >&6; }
34393 speedup_repeat=0
34399 { echo "$as_me:$LINENO: checking for instruction trace cache support" >&5
34400 echo $ECHO_N "checking for instruction trace cache support... $ECHO_C" >&6; }
34401 # Check whether --enable-trace-cache was given.
34402 if test "${enable_trace_cache+set}" = set; then
34403 enableval=$enable_trace_cache; if test "$enableval" = yes; then
34404 { echo "$as_me:$LINENO: result: yes" >&5
34405 echo "${ECHO_T}yes" >&6; }
34406 speedup_TraceCache=1
34407 else
34408 { echo "$as_me:$LINENO: result: no" >&5
34409 echo "${ECHO_T}no" >&6; }
34410 speedup_TraceCache=0
34412 else
34414 if test "$speedup_TraceCache " = 1; then
34415 { echo "$as_me:$LINENO: result: yes" >&5
34416 echo "${ECHO_T}yes" >&6; }
34417 speedup_TraceCache=1
34418 else
34419 { echo "$as_me:$LINENO: result: no" >&5
34420 echo "${ECHO_T}no" >&6; }
34421 speedup_TraceCache=0
34428 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
34429 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
34430 # Check whether --enable-icache was given.
34431 if test "${enable_icache+set}" = set; then
34432 enableval=$enable_icache; if test "$enableval" = yes; then
34433 { echo "$as_me:$LINENO: result: yes" >&5
34434 echo "${ECHO_T}yes" >&6; }
34435 speedup_iCache=1
34436 else
34437 { echo "$as_me:$LINENO: result: no" >&5
34438 echo "${ECHO_T}no" >&6; }
34439 speedup_iCache=0
34441 else
34443 { echo "$as_me:$LINENO: result: no" >&5
34444 echo "${ECHO_T}no" >&6; }
34445 speedup_iCache=0
34451 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
34452 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
34453 # Check whether --enable-fast-function-calls was given.
34454 if test "${enable_fast_function_calls+set}" = set; then
34455 enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
34456 { echo "$as_me:$LINENO: result: yes" >&5
34457 echo "${ECHO_T}yes" >&6; }
34458 speedup_fastcall=1
34459 else
34460 { echo "$as_me:$LINENO: result: no" >&5
34461 echo "${ECHO_T}no" >&6; }
34462 speedup_fastcall=0
34464 else
34466 { echo "$as_me:$LINENO: result: no" >&5
34467 echo "${ECHO_T}no" >&6; }
34468 speedup_fastcall=0
34474 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
34475 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
34476 # Check whether --enable-host-specific-asms was given.
34477 if test "${enable_host_specific_asms+set}" = set; then
34478 enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
34479 { echo "$as_me:$LINENO: result: yes" >&5
34480 echo "${ECHO_T}yes" >&6; }
34481 speedup_host_specific_asms=1
34482 else
34483 { echo "$as_me:$LINENO: result: no" >&5
34484 echo "${ECHO_T}no" >&6; }
34485 speedup_host_specific_asms=0
34487 else
34489 { echo "$as_me:$LINENO: result: no" >&5
34490 echo "${ECHO_T}no" >&6; }
34491 speedup_host_specific_asms=0
34497 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
34498 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
34499 # Check whether --enable-ignore-bad-msr was given.
34500 if test "${enable_ignore_bad_msr+set}" = set; then
34501 enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
34502 { echo "$as_me:$LINENO: result: yes" >&5
34503 echo "${ECHO_T}yes" >&6; }
34504 cat >>confdefs.h <<\_ACEOF
34505 #define BX_IGNORE_BAD_MSR 1
34506 _ACEOF
34508 else
34509 { echo "$as_me:$LINENO: result: no" >&5
34510 echo "${ECHO_T}no" >&6; }
34511 cat >>confdefs.h <<\_ACEOF
34512 #define BX_IGNORE_BAD_MSR 0
34513 _ACEOF
34516 else
34518 { echo "$as_me:$LINENO: result: yes" >&5
34519 echo "${ECHO_T}yes" >&6; }
34520 cat >>confdefs.h <<\_ACEOF
34521 #define BX_IGNORE_BAD_MSR 1
34522 _ACEOF
34529 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
34530 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
34531 # Check whether --enable-port-e9-hack was given.
34532 if test "${enable_port_e9_hack+set}" = set; then
34533 enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
34534 { echo "$as_me:$LINENO: result: yes" >&5
34535 echo "${ECHO_T}yes" >&6; }
34536 cat >>confdefs.h <<\_ACEOF
34537 #define BX_PORT_E9_HACK 1
34538 _ACEOF
34540 else
34541 { echo "$as_me:$LINENO: result: no" >&5
34542 echo "${ECHO_T}no" >&6; }
34543 cat >>confdefs.h <<\_ACEOF
34544 #define BX_PORT_E9_HACK 0
34545 _ACEOF
34548 else
34550 { echo "$as_me:$LINENO: result: yes" >&5
34551 echo "${ECHO_T}yes" >&6; }
34552 cat >>confdefs.h <<\_ACEOF
34553 #define BX_PORT_E9_HACK 1
34554 _ACEOF
34561 { echo "$as_me:$LINENO: checking show IPS" >&5
34562 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
34563 # Check whether --enable-show-ips was given.
34564 if test "${enable_show_ips+set}" = set; then
34565 enableval=$enable_show_ips; if test "$enableval" = yes; then
34566 { echo "$as_me:$LINENO: result: yes" >&5
34567 echo "${ECHO_T}yes" >&6; }
34568 cat >>confdefs.h <<\_ACEOF
34569 #define BX_SHOW_IPS 1
34570 _ACEOF
34572 else
34573 { echo "$as_me:$LINENO: result: no" >&5
34574 echo "${ECHO_T}no" >&6; }
34575 cat >>confdefs.h <<\_ACEOF
34576 #define BX_SHOW_IPS 0
34577 _ACEOF
34580 else
34582 { echo "$as_me:$LINENO: result: no" >&5
34583 echo "${ECHO_T}no" >&6; }
34584 cat >>confdefs.h <<\_ACEOF
34585 #define BX_SHOW_IPS 0
34586 _ACEOF
34593 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
34594 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
34595 # Check whether --enable-cpp was given.
34596 if test "${enable_cpp+set}" = set; then
34597 enableval=$enable_cpp; if test "$enableval" = yes; then
34598 { echo "$as_me:$LINENO: result: yes" >&5
34599 echo "${ECHO_T}yes" >&6; }
34600 SUFFIX_LINE='.SUFFIXES: .cpp'
34601 CPP_SUFFIX='cpp'
34602 else
34603 { echo "$as_me:$LINENO: result: no" >&5
34604 echo "${ECHO_T}no" >&6; }
34605 SUFFIX_LINE='.SUFFIXES: .cc'
34606 CPP_SUFFIX='cc'
34608 else
34610 { echo "$as_me:$LINENO: result: no" >&5
34611 echo "${ECHO_T}no" >&6; }
34612 SUFFIX_LINE='.SUFFIXES: .cc'
34613 CPP_SUFFIX='cc'
34621 if test "$enable_cpp" = yes; then
34622 echo "moving .cc source files to .cpp"
34623 sourcefiles=`find . -name "*.cc" -print`
34624 if test "$sourcefiles" != ""; then
34625 for ccname in $sourcefiles
34627 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
34628 echo "mv $ccname $cppname"
34629 mv $ccname $cppname
34630 done
34631 else
34632 echo "no more .cc source files to rename"
34638 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
34639 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
34640 # Check whether --enable-debugger was given.
34641 if test "${enable_debugger+set}" = set; then
34642 enableval=$enable_debugger; if test "$enableval" = yes; then
34643 { echo "$as_me:$LINENO: result: yes" >&5
34644 echo "${ECHO_T}yes" >&6; }
34645 cat >>confdefs.h <<\_ACEOF
34646 #define BX_DEBUGGER 1
34647 _ACEOF
34649 DEBUGGER_VAR='$(DEBUGGER_LIB)'
34650 bx_debugger=1
34651 else
34652 { echo "$as_me:$LINENO: result: no" >&5
34653 echo "${ECHO_T}no" >&6; }
34654 cat >>confdefs.h <<\_ACEOF
34655 #define BX_DEBUGGER 0
34656 _ACEOF
34658 DEBUGGER_VAR=''
34659 bx_debugger=0
34662 else
34664 { echo "$as_me:$LINENO: result: no" >&5
34665 echo "${ECHO_T}no" >&6; }
34666 cat >>confdefs.h <<\_ACEOF
34667 #define BX_DEBUGGER 0
34668 _ACEOF
34670 DEBUGGER_VAR=''
34671 bx_debugger=0
34678 { echo "$as_me:$LINENO: checking for external debugger" >&5
34679 echo $ECHO_N "checking for external debugger... $ECHO_C" >&6; }
34680 EXT_DEBUG_OBJS=''
34681 # Check whether --enable-external-debugger was given.
34682 if test "${enable_external_debugger+set}" = set; then
34683 enableval=$enable_external_debugger; if test "$enableval" = yes; then
34684 case $target in
34685 *-pc-windows* | *-cygwin* | *-mingw32*)
34686 { echo "$as_me:$LINENO: result: yes" >&5
34687 echo "${ECHO_T}yes" >&6; }
34688 cat >>confdefs.h <<\_ACEOF
34689 #define BX_EXTERNAL_DEBUGGER 1
34690 _ACEOF
34692 EXT_DEBUG_OBJS=extdb.o
34695 echo "ERROR: external debugger is currently supported on win32 only"
34696 exit 1
34698 esac
34699 else
34700 { echo "$as_me:$LINENO: result: no" >&5
34701 echo "${ECHO_T}no" >&6; }
34703 else
34705 { echo "$as_me:$LINENO: result: no" >&5
34706 echo "${ECHO_T}no" >&6; }
34712 { echo "$as_me:$LINENO: checking for disassembler support" >&5
34713 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
34714 # Check whether --enable-disasm was given.
34715 if test "${enable_disasm+set}" = set; then
34716 enableval=$enable_disasm; if test "$enableval" = yes; then
34717 { echo "$as_me:$LINENO: result: yes" >&5
34718 echo "${ECHO_T}yes" >&6; }
34719 cat >>confdefs.h <<\_ACEOF
34720 #define BX_DISASM 1
34721 _ACEOF
34723 DISASM_VAR='$(DISASM_LIB)'
34724 else
34725 { echo "$as_me:$LINENO: result: no" >&5
34726 echo "${ECHO_T}no" >&6; }
34727 if test "$bx_debugger" = 1; then
34728 echo "ERROR: debugger is enabled, so --enable-disasm is required"
34729 exit 1
34731 cat >>confdefs.h <<\_ACEOF
34732 #define BX_DISASM 0
34733 _ACEOF
34735 DISASM_VAR=''
34737 else
34739 { echo "$as_me:$LINENO: result: yes" >&5
34740 echo "${ECHO_T}yes" >&6; }
34741 cat >>confdefs.h <<\_ACEOF
34742 #define BX_DISASM 1
34743 _ACEOF
34745 DISASM_VAR='$(DISASM_LIB)'
34751 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
34752 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
34753 # Check whether --enable-all-optimizations was given.
34754 if test "${enable_all_optimizations+set}" = set; then
34755 enableval=$enable_all_optimizations; if test "$enableval" = yes; then
34756 { echo "$as_me:$LINENO: result: yes" >&5
34757 echo "${ECHO_T}yes" >&6; }
34758 speedups_all=1
34759 else
34760 { echo "$as_me:$LINENO: result: no" >&5
34761 echo "${ECHO_T}no" >&6; }
34762 speedups_all=0
34765 else
34767 { echo "$as_me:$LINENO: result: no" >&5
34768 echo "${ECHO_T}no" >&6; }
34769 speedups_all=0
34776 # Optimizations section. Decide what the status of various optimizations
34777 # should be based on configure choices and other factors.
34780 if test "$speedups_all" = 1; then
34781 # Configure requested to force all options enabled.
34782 speedup_guest2host_tlb=1
34783 speedup_repeat=1
34784 speedup_iCache=1
34785 speedup_TraceCache=1
34786 speedup_fastcall=1
34789 if test "$speedup_iCache" = 0 -a "$speedup_TraceCache" = 1; then
34790 { { echo "$as_me:$LINENO: error: iCache is required to compile with trace cache optimization" >&5
34791 echo "$as_me: error: iCache is required to compile with trace cache optimization" >&2;}
34792 { (exit 1); exit 1; }; }
34795 if test "$speedup_guest2host_tlb" = 1; then
34796 cat >>confdefs.h <<\_ACEOF
34797 #define BX_SupportGuest2HostTLB 1
34798 _ACEOF
34800 else
34801 cat >>confdefs.h <<\_ACEOF
34802 #define BX_SupportGuest2HostTLB 0
34803 _ACEOF
34807 if test "$speedup_repeat" = 1; then
34808 cat >>confdefs.h <<\_ACEOF
34809 #define BX_SupportRepeatSpeedups 1
34810 _ACEOF
34812 else
34813 cat >>confdefs.h <<\_ACEOF
34814 #define BX_SupportRepeatSpeedups 0
34815 _ACEOF
34819 if test "$speedup_iCache" = 1; then
34820 cat >>confdefs.h <<\_ACEOF
34821 #define BX_SUPPORT_ICACHE 1
34822 _ACEOF
34824 else
34825 cat >>confdefs.h <<\_ACEOF
34826 #define BX_SUPPORT_ICACHE 0
34827 _ACEOF
34831 if test "$speedup_host_specific_asms" = 1; then
34832 cat >>confdefs.h <<\_ACEOF
34833 #define BX_SupportHostAsms 1
34834 _ACEOF
34836 else
34837 cat >>confdefs.h <<\_ACEOF
34838 #define BX_SupportHostAsms 0
34839 _ACEOF
34843 if test "$speedup_fastcall" = 1; then
34844 cat >>confdefs.h <<\_ACEOF
34845 #define BX_FAST_FUNC_CALL 1
34846 _ACEOF
34848 else
34849 cat >>confdefs.h <<\_ACEOF
34850 #define BX_FAST_FUNC_CALL 0
34851 _ACEOF
34855 if test "$speedup_TraceCache" = 1; then
34856 cat >>confdefs.h <<\_ACEOF
34857 #define BX_SUPPORT_TRACE_CACHE 1
34858 _ACEOF
34860 else
34861 cat >>confdefs.h <<\_ACEOF
34862 #define BX_SUPPORT_TRACE_CACHE 0
34863 _ACEOF
34868 READLINE_LIB=""
34869 rl_without_curses_ok=no
34870 rl_with_curses_ok=no
34872 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
34873 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
34874 # Check whether --enable-readline was given.
34875 if test "${enable_readline+set}" = set; then
34876 enableval=$enable_readline; if test "$enableval" = yes; then
34877 { echo "$as_me:$LINENO: result: yes" >&5
34878 echo "${ECHO_T}yes" >&6; }
34879 want_readline=yes
34880 else
34881 { echo "$as_me:$LINENO: result: no" >&5
34882 echo "${ECHO_T}no" >&6; }
34883 want_readline=no
34885 else
34887 { echo "$as_me:$LINENO: result: yes" >&5
34888 echo "${ECHO_T}yes" >&6; }
34889 want_readline=yes
34895 use_readline=0
34896 { echo "$as_me:$LINENO: checking whether to use readline" >&5
34897 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
34898 if test "$want_readline" = yes; then
34899 if test "$bx_debugger" = 1; then
34901 { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
34902 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
34903 OLD_LIBS=$LIBS
34904 LIBS="$LIBS -lreadline"
34905 if test "$cross_compiling" = yes; then
34906 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34907 See \`config.log' for more details." >&5
34908 echo "$as_me: error: cannot run test program while cross compiling
34909 See \`config.log' for more details." >&2;}
34910 { (exit 1); exit 1; }; }
34911 else
34912 cat >conftest.$ac_ext <<_ACEOF
34913 /* confdefs.h. */
34914 _ACEOF
34915 cat confdefs.h >>conftest.$ac_ext
34916 cat >>conftest.$ac_ext <<_ACEOF
34917 /* end confdefs.h. */
34919 #include <stdio.h>
34920 #include <readline/readline.h>
34921 int main() { rl_initialize(); exit(0); }
34923 _ACEOF
34924 rm -f conftest$ac_exeext
34925 if { (ac_try="$ac_link"
34926 case "(($ac_try" in
34927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34928 *) ac_try_echo=$ac_try;;
34929 esac
34930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34931 (eval "$ac_link") 2>&5
34932 ac_status=$?
34933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34935 { (case "(($ac_try" in
34936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34937 *) ac_try_echo=$ac_try;;
34938 esac
34939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34940 (eval "$ac_try") 2>&5
34941 ac_status=$?
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); }; }; then
34944 { echo "$as_me:$LINENO: result: yes" >&5
34945 echo "${ECHO_T}yes" >&6; }
34946 rl_without_curses_ok=yes
34947 else
34948 echo "$as_me: program exited with status $ac_status" >&5
34949 echo "$as_me: failed program was:" >&5
34950 sed 's/^/| /' conftest.$ac_ext >&5
34952 ( exit $ac_status )
34953 { echo "$as_me:$LINENO: result: no" >&5
34954 echo "${ECHO_T}no" >&6; }
34957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34961 { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
34962 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
34963 LIBS="$LIBS -lcurses"
34964 if test "$cross_compiling" = yes; then
34965 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34966 See \`config.log' for more details." >&5
34967 echo "$as_me: error: cannot run test program while cross compiling
34968 See \`config.log' for more details." >&2;}
34969 { (exit 1); exit 1; }; }
34970 else
34971 cat >conftest.$ac_ext <<_ACEOF
34972 /* confdefs.h. */
34973 _ACEOF
34974 cat confdefs.h >>conftest.$ac_ext
34975 cat >>conftest.$ac_ext <<_ACEOF
34976 /* end confdefs.h. */
34978 #include <stdio.h>
34979 #include <readline/readline.h>
34980 int main() { rl_initialize(); exit(0); }
34982 _ACEOF
34983 rm -f conftest$ac_exeext
34984 if { (ac_try="$ac_link"
34985 case "(($ac_try" in
34986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34987 *) ac_try_echo=$ac_try;;
34988 esac
34989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34990 (eval "$ac_link") 2>&5
34991 ac_status=$?
34992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34994 { (case "(($ac_try" in
34995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34996 *) ac_try_echo=$ac_try;;
34997 esac
34998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34999 (eval "$ac_try") 2>&5
35000 ac_status=$?
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); }; }; then
35003 { echo "$as_me:$LINENO: result: yes" >&5
35004 echo "${ECHO_T}yes" >&6; }
35005 rl_with_curses_ok=yes
35006 else
35007 echo "$as_me: program exited with status $ac_status" >&5
35008 echo "$as_me: failed program was:" >&5
35009 sed 's/^/| /' conftest.$ac_ext >&5
35011 ( exit $ac_status )
35012 { echo "$as_me:$LINENO: result: no" >&5
35013 echo "${ECHO_T}no" >&6; }
35016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35020 LIBS=$OLD_LIBS
35022 if test "$rl_without_curses_ok" = yes; then
35023 { echo "$as_me:$LINENO: result: yes" >&5
35024 echo "${ECHO_T}yes" >&6; }
35025 cat >>confdefs.h <<\_ACEOF
35026 #define HAVE_LIBREADLINE 1
35027 _ACEOF
35029 READLINE_LIB="-lreadline"
35030 use_readline=1
35031 elif test "$rl_with_curses_ok" = yes; then
35032 { echo "$as_me:$LINENO: result: yes" >&5
35033 echo "${ECHO_T}yes" >&6; }
35034 cat >>confdefs.h <<\_ACEOF
35035 #define HAVE_LIBREADLINE 1
35036 _ACEOF
35038 READLINE_LIB="-lreadline -lcurses"
35039 use_readline=1
35040 else
35041 { echo "$as_me:$LINENO: result: no" >&5
35042 echo "${ECHO_T}no" >&6; }
35043 echo WARNING: The readline library was disabled because it was not found.
35045 else
35046 { echo "$as_me:$LINENO: result: no" >&5
35047 echo "${ECHO_T}no" >&6; }
35049 else
35050 { echo "$as_me:$LINENO: result: no" >&5
35051 echo "${ECHO_T}no" >&6; }
35055 if test "${ac_cv_header_readline_history_h+set}" = set; then
35056 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
35057 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
35058 if test "${ac_cv_header_readline_history_h+set}" = set; then
35059 echo $ECHO_N "(cached) $ECHO_C" >&6
35061 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
35062 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35063 else
35064 # Is the header compilable?
35065 { echo "$as_me:$LINENO: checking readline/history.h usability" >&5
35066 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; }
35067 cat >conftest.$ac_ext <<_ACEOF
35068 /* confdefs.h. */
35069 _ACEOF
35070 cat confdefs.h >>conftest.$ac_ext
35071 cat >>conftest.$ac_ext <<_ACEOF
35072 /* end confdefs.h. */
35073 $ac_includes_default
35074 #include <readline/history.h>
35075 _ACEOF
35076 rm -f conftest.$ac_objext
35077 if { (ac_try="$ac_compile"
35078 case "(($ac_try" in
35079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35080 *) ac_try_echo=$ac_try;;
35081 esac
35082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35083 (eval "$ac_compile") 2>conftest.er1
35084 ac_status=$?
35085 grep -v '^ *+' conftest.er1 >conftest.err
35086 rm -f conftest.er1
35087 cat conftest.err >&5
35088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089 (exit $ac_status); } && {
35090 test -z "$ac_c_werror_flag" ||
35091 test ! -s conftest.err
35092 } && test -s conftest.$ac_objext; then
35093 ac_header_compiler=yes
35094 else
35095 echo "$as_me: failed program was:" >&5
35096 sed 's/^/| /' conftest.$ac_ext >&5
35098 ac_header_compiler=no
35101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35103 echo "${ECHO_T}$ac_header_compiler" >&6; }
35105 # Is the header present?
35106 { echo "$as_me:$LINENO: checking readline/history.h presence" >&5
35107 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; }
35108 cat >conftest.$ac_ext <<_ACEOF
35109 /* confdefs.h. */
35110 _ACEOF
35111 cat confdefs.h >>conftest.$ac_ext
35112 cat >>conftest.$ac_ext <<_ACEOF
35113 /* end confdefs.h. */
35114 #include <readline/history.h>
35115 _ACEOF
35116 if { (ac_try="$ac_cpp conftest.$ac_ext"
35117 case "(($ac_try" in
35118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35119 *) ac_try_echo=$ac_try;;
35120 esac
35121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35123 ac_status=$?
35124 grep -v '^ *+' conftest.er1 >conftest.err
35125 rm -f conftest.er1
35126 cat conftest.err >&5
35127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); } >/dev/null && {
35129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35130 test ! -s conftest.err
35131 }; then
35132 ac_header_preproc=yes
35133 else
35134 echo "$as_me: failed program was:" >&5
35135 sed 's/^/| /' conftest.$ac_ext >&5
35137 ac_header_preproc=no
35140 rm -f conftest.err conftest.$ac_ext
35141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35142 echo "${ECHO_T}$ac_header_preproc" >&6; }
35144 # So? What about this header?
35145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35146 yes:no: )
35147 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
35148 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35149 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
35150 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
35151 ac_header_preproc=yes
35153 no:yes:* )
35154 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
35155 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
35156 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
35157 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
35158 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
35159 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
35160 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
35161 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
35162 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
35163 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
35164 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
35165 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
35168 esac
35169 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
35170 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
35171 if test "${ac_cv_header_readline_history_h+set}" = set; then
35172 echo $ECHO_N "(cached) $ECHO_C" >&6
35173 else
35174 ac_cv_header_readline_history_h=$ac_header_preproc
35176 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
35177 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35180 if test $ac_cv_header_readline_history_h = yes; then
35181 cat >>confdefs.h <<\_ACEOF
35182 #define HAVE_READLINE_HISTORY_H 1
35183 _ACEOF
35190 INSTRUMENT_DIR='instrument/stubs'
35192 { echo "$as_me:$LINENO: checking for instrumentation support" >&5
35193 echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6; }
35194 # Check whether --enable-instrumentation was given.
35195 if test "${enable_instrumentation+set}" = set; then
35196 enableval=$enable_instrumentation; if test "$enableval" = yes; then
35197 { echo "$as_me:$LINENO: result: yes" >&5
35198 echo "${ECHO_T}yes" >&6; }
35199 cat >>confdefs.h <<\_ACEOF
35200 #define BX_INSTRUMENTATION 1
35201 _ACEOF
35203 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35204 elif test "$enableval" = no; then
35205 { echo "$as_me:$LINENO: result: no" >&5
35206 echo "${ECHO_T}no" >&6; }
35207 cat >>confdefs.h <<\_ACEOF
35208 #define BX_INSTRUMENTATION 0
35209 _ACEOF
35211 INSTRUMENT_VAR=''
35212 else
35213 { echo "$as_me:$LINENO: result: yes" >&5
35214 echo "${ECHO_T}yes" >&6; }
35215 cat >>confdefs.h <<\_ACEOF
35216 #define BX_INSTRUMENTATION 1
35217 _ACEOF
35219 INSTRUMENT_DIR=$enableval
35220 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35222 else
35224 { echo "$as_me:$LINENO: result: no" >&5
35225 echo "${ECHO_T}no" >&6; }
35226 cat >>confdefs.h <<\_ACEOF
35227 #define BX_INSTRUMENTATION 0
35228 _ACEOF
35230 INSTRUMENT_VAR=''
35238 if test "$bx_plugins" = 0; then
35239 case $target in
35240 *-pc-windows*)
35241 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib"
35243 *-cygwin* | *-mingw32*)
35244 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
35246 esac
35249 { echo "$as_me:$LINENO: checking enable logging" >&5
35250 echo $ECHO_N "checking enable logging... $ECHO_C" >&6; }
35251 # Check whether --enable-logging was given.
35252 if test "${enable_logging+set}" = set; then
35253 enableval=$enable_logging; if test "$enableval" = yes; then
35254 { echo "$as_me:$LINENO: result: yes" >&5
35255 echo "${ECHO_T}yes" >&6; }
35256 cat >>confdefs.h <<\_ACEOF
35257 #define BX_NO_LOGGING 0
35258 _ACEOF
35260 else
35261 { echo "$as_me:$LINENO: result: no" >&5
35262 echo "${ECHO_T}no" >&6; }
35263 cat >>confdefs.h <<\_ACEOF
35264 #define BX_NO_LOGGING 1
35265 _ACEOF
35268 else
35270 { echo "$as_me:$LINENO: result: yes" >&5
35271 echo "${ECHO_T}yes" >&6; }
35272 cat >>confdefs.h <<\_ACEOF
35273 #define BX_NO_LOGGING 0
35274 _ACEOF
35281 { echo "$as_me:$LINENO: checking enable assert checks" >&5
35282 echo $ECHO_N "checking enable assert checks... $ECHO_C" >&6; }
35283 # Check whether --enable-assert-checks was given.
35284 if test "${enable_assert_checks+set}" = set; then
35285 enableval=$enable_assert_checks; if test "$enableval" = yes; then
35286 { echo "$as_me:$LINENO: result: yes" >&5
35287 echo "${ECHO_T}yes" >&6; }
35288 cat >>confdefs.h <<\_ACEOF
35289 #define BX_ASSERT_ENABLE 1
35290 _ACEOF
35292 else
35293 { echo "$as_me:$LINENO: result: no" >&5
35294 echo "${ECHO_T}no" >&6; }
35295 cat >>confdefs.h <<\_ACEOF
35296 #define BX_ASSERT_ENABLE 0
35297 _ACEOF
35300 else
35302 if test "$bx_debugger" = 1; then
35303 { echo "$as_me:$LINENO: result: yes" >&5
35304 echo "${ECHO_T}yes" >&6; }
35305 cat >>confdefs.h <<\_ACEOF
35306 #define BX_ASSERT_ENABLE 1
35307 _ACEOF
35309 else
35310 { echo "$as_me:$LINENO: result: no" >&5
35311 echo "${ECHO_T}no" >&6; }
35312 cat >>confdefs.h <<\_ACEOF
35313 #define BX_ASSERT_ENABLE 0
35314 _ACEOF
35322 { echo "$as_me:$LINENO: checking for raw serial support" >&5
35323 echo $ECHO_N "checking for raw serial support... $ECHO_C" >&6; }
35324 # Check whether --enable-raw-serial was given.
35325 if test "${enable_raw_serial+set}" = set; then
35326 enableval=$enable_raw_serial; if test "$enableval" = yes; then
35327 { echo "$as_me:$LINENO: result: yes" >&5
35328 echo "${ECHO_T}yes" >&6; }
35329 cat >>confdefs.h <<\_ACEOF
35330 #define USE_RAW_SERIAL 1
35331 _ACEOF
35333 else
35334 { echo "$as_me:$LINENO: result: no" >&5
35335 echo "${ECHO_T}no" >&6; }
35336 cat >>confdefs.h <<\_ACEOF
35337 #define USE_RAW_SERIAL 0
35338 _ACEOF
35341 else
35343 { echo "$as_me:$LINENO: result: no" >&5
35344 echo "${ECHO_T}no" >&6; }
35345 cat >>confdefs.h <<\_ACEOF
35346 #define USE_RAW_SERIAL 0
35347 _ACEOF
35354 { echo "$as_me:$LINENO: checking for VESA BIOS extensions" >&5
35355 echo $ECHO_N "checking for VESA BIOS extensions... $ECHO_C" >&6; }
35356 # Check whether --enable-vbe was given.
35357 if test "${enable_vbe+set}" = set; then
35358 enableval=$enable_vbe; if test "$enableval" = yes; then
35359 { echo "$as_me:$LINENO: result: yes" >&5
35360 echo "${ECHO_T}yes" >&6; }
35361 cat >>confdefs.h <<\_ACEOF
35362 #define BX_SUPPORT_VBE 1
35363 _ACEOF
35365 if test "$pci" = 1; then
35366 cat >>confdefs.h <<\_ACEOF
35367 #define BX_SUPPORT_PCIVGA 1
35368 _ACEOF
35371 else
35372 { echo "$as_me:$LINENO: result: no" >&5
35373 echo "${ECHO_T}no" >&6; }
35374 cat >>confdefs.h <<\_ACEOF
35375 #define BX_SUPPORT_VBE 0
35376 _ACEOF
35379 else
35381 { echo "$as_me:$LINENO: result: yes" >&5
35382 echo "${ECHO_T}yes" >&6; }
35383 cat >>confdefs.h <<\_ACEOF
35384 #define BX_SUPPORT_VBE 1
35385 _ACEOF
35387 if test "$pci" = 1; then
35388 cat >>confdefs.h <<\_ACEOF
35389 #define BX_SUPPORT_PCIVGA 1
35390 _ACEOF
35398 { echo "$as_me:$LINENO: checking for CLGD54XX emulation" >&5
35399 echo $ECHO_N "checking for CLGD54XX emulation... $ECHO_C" >&6; }
35400 # Check whether --enable-clgd54xx was given.
35401 if test "${enable_clgd54xx+set}" = set; then
35402 enableval=$enable_clgd54xx; if test "$enableval" = yes; then
35403 { echo "$as_me:$LINENO: result: yes" >&5
35404 echo "${ECHO_T}yes" >&6; }
35405 cat >>confdefs.h <<\_ACEOF
35406 #define BX_SUPPORT_CLGD54XX 1
35407 _ACEOF
35409 else
35410 { echo "$as_me:$LINENO: result: no" >&5
35411 echo "${ECHO_T}no" >&6; }
35412 cat >>confdefs.h <<\_ACEOF
35413 #define BX_SUPPORT_CLGD54XX 0
35414 _ACEOF
35417 else
35419 { echo "$as_me:$LINENO: result: no" >&5
35420 echo "${ECHO_T}no" >&6; }
35421 cat >>confdefs.h <<\_ACEOF
35422 #define BX_SUPPORT_CLGD54XX 0
35423 _ACEOF
35430 support_fpu=1
35431 { echo "$as_me:$LINENO: checking for FPU emulation" >&5
35432 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6; }
35433 FPU_VAR=''
35434 # Check whether --enable-fpu was given.
35435 if test "${enable_fpu+set}" = set; then
35436 enableval=$enable_fpu; if test "$enableval" = yes; then
35437 { echo "$as_me:$LINENO: result: yes" >&5
35438 echo "${ECHO_T}yes" >&6; }
35439 cat >>confdefs.h <<\_ACEOF
35440 #define BX_SUPPORT_FPU 1
35441 _ACEOF
35443 FPU_VAR='$(FPU_LIB)'
35444 elif test "$enableval" = no; then
35445 { echo "$as_me:$LINENO: result: no" >&5
35446 echo "${ECHO_T}no" >&6; }
35447 cat >>confdefs.h <<\_ACEOF
35448 #define BX_SUPPORT_FPU 0
35449 _ACEOF
35451 support_fpu=0
35452 else
35453 echo " "
35454 echo "ERROR: --enable-fpu does not accept a path"
35455 exit 1
35458 else
35460 { echo "$as_me:$LINENO: result: yes" >&5
35461 echo "${ECHO_T}yes" >&6; }
35462 cat >>confdefs.h <<\_ACEOF
35463 #define BX_SUPPORT_FPU 1
35464 _ACEOF
35466 FPU_VAR='$(FPU_LIB)'
35473 { echo "$as_me:$LINENO: checking for VME support" >&5
35474 echo $ECHO_N "checking for VME support... $ECHO_C" >&6; }
35475 # Check whether --enable-vme was given.
35476 if test "${enable_vme+set}" = set; then
35477 enableval=$enable_vme; if test "$enableval" = yes; then
35478 { echo "$as_me:$LINENO: result: yes" >&5
35479 echo "${ECHO_T}yes" >&6; }
35480 cat >>confdefs.h <<\_ACEOF
35481 #define BX_SUPPORT_VME 1
35482 _ACEOF
35484 elif test "$enableval" = no; then
35485 { echo "$as_me:$LINENO: result: no" >&5
35486 echo "${ECHO_T}no" >&6; }
35487 cat >>confdefs.h <<\_ACEOF
35488 #define BX_SUPPORT_VME 0
35489 _ACEOF
35493 else
35495 if test "$bx_cpu_level" -ge 5; then
35496 { echo "$as_me:$LINENO: result: yes" >&5
35497 echo "${ECHO_T}yes" >&6; }
35498 cat >>confdefs.h <<\_ACEOF
35499 #define BX_SUPPORT_VME 1
35500 _ACEOF
35502 else
35503 { echo "$as_me:$LINENO: result: no" >&5
35504 echo "${ECHO_T}no" >&6; }
35505 cat >>confdefs.h <<\_ACEOF
35506 #define BX_SUPPORT_VME 0
35507 _ACEOF
35515 support_mmx=1
35516 { echo "$as_me:$LINENO: checking for MMX support" >&5
35517 echo $ECHO_N "checking for MMX support... $ECHO_C" >&6; }
35518 # Check whether --enable-mmx was given.
35519 if test "${enable_mmx+set}" = set; then
35520 enableval=$enable_mmx; if test "$enableval" = yes; then
35521 { echo "$as_me:$LINENO: result: yes" >&5
35522 echo "${ECHO_T}yes" >&6; }
35523 cat >>confdefs.h <<\_ACEOF
35524 #define BX_SUPPORT_MMX 1
35525 _ACEOF
35527 elif test "$enableval" = no; then
35528 { echo "$as_me:$LINENO: result: no" >&5
35529 echo "${ECHO_T}no" >&6; }
35530 cat >>confdefs.h <<\_ACEOF
35531 #define BX_SUPPORT_MMX 0
35532 _ACEOF
35534 support_mmx=0
35537 else
35539 if test "$bx_cpu_level" -ge 5; then
35540 { echo "$as_me:$LINENO: result: yes" >&5
35541 echo "${ECHO_T}yes" >&6; }
35542 cat >>confdefs.h <<\_ACEOF
35543 #define BX_SUPPORT_MMX 1
35544 _ACEOF
35546 else
35547 { echo "$as_me:$LINENO: result: no" >&5
35548 echo "${ECHO_T}no" >&6; }
35549 cat >>confdefs.h <<\_ACEOF
35550 #define BX_SUPPORT_MMX 0
35551 _ACEOF
35559 { echo "$as_me:$LINENO: checking for 3DNow! support" >&5
35560 echo $ECHO_N "checking for 3DNow! support... $ECHO_C" >&6; }
35561 # Check whether --enable-3dnow was given.
35562 if test "${enable_3dnow+set}" = set; then
35563 enableval=$enable_3dnow; if test "$enableval" = yes; then
35564 { echo "$as_me:$LINENO: result: yes" >&5
35565 echo "${ECHO_T}yes" >&6; }
35566 cat >>confdefs.h <<\_ACEOF
35567 #define BX_SUPPORT_3DNOW 1
35568 _ACEOF
35570 elif test "$enableval" = no; then
35571 { echo "$as_me:$LINENO: result: no" >&5
35572 echo "${ECHO_T}no" >&6; }
35573 cat >>confdefs.h <<\_ACEOF
35574 #define BX_SUPPORT_3DNOW 0
35575 _ACEOF
35579 else
35581 { echo "$as_me:$LINENO: result: no" >&5
35582 echo "${ECHO_T}no" >&6; }
35583 cat >>confdefs.h <<\_ACEOF
35584 #define BX_SUPPORT_3DNOW 0
35585 _ACEOF
35592 support_sse=0
35593 { echo "$as_me:$LINENO: checking for SSE support" >&5
35594 echo $ECHO_N "checking for SSE support... $ECHO_C" >&6; }
35595 # Check whether --enable-sse was given.
35596 if test "${enable_sse+set}" = set; then
35597 enableval=$enable_sse; case "$enableval" in
35598 no | 0)
35599 support_sse=0
35600 { echo "$as_me:$LINENO: result: no" >&5
35601 echo "${ECHO_T}no" >&6; }
35603 yes | 1)
35604 support_sse=1
35605 { echo "$as_me:$LINENO: result: SSE1" >&5
35606 echo "${ECHO_T}SSE1" >&6; }
35609 support_sse=2
35610 { echo "$as_me:$LINENO: result: SSE2" >&5
35611 echo "${ECHO_T}SSE2" >&6; }
35614 support_sse=3
35615 { echo "$as_me:$LINENO: result: SSE3" >&5
35616 echo "${ECHO_T}SSE3" >&6; }
35619 support_sse=4
35620 { echo "$as_me:$LINENO: result: SSE4" >&5
35621 echo "${ECHO_T}SSE4" >&6; }
35624 echo "ERROR: --enable-sse=$enableval not understood. Use --enable-sse=no|1|2|3|4"
35625 exit 1
35627 esac
35629 else
35631 if test "$use_x86_64" = 1; then
35632 support_sse=2
35633 { echo "$as_me:$LINENO: result: SSE2" >&5
35634 echo "${ECHO_T}SSE2" >&6; }
35635 else
35636 { echo "$as_me:$LINENO: result: no" >&5
35637 echo "${ECHO_T}no" >&6; }
35644 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
35645 { { echo "$as_me:$LINENO: error: for SSE support the CPU level must be set to 6" >&5
35646 echo "$as_me: error: for SSE support the CPU level must be set to 6" >&2;}
35647 { (exit 1); exit 1; }; }
35650 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
35651 { { echo "$as_me:$LINENO: error: x86-64 needs SSE2 support" >&5
35652 echo "$as_me: error: x86-64 needs SSE2 support" >&2;}
35653 { (exit 1); exit 1; }; }
35656 if test "$support_sse" = 4; then
35657 cat >>confdefs.h <<\_ACEOF
35658 #define BX_SUPPORT_SSE 4
35659 _ACEOF
35661 elif test "$support_sse" = 3; then
35662 cat >>confdefs.h <<\_ACEOF
35663 #define BX_SUPPORT_SSE 3
35664 _ACEOF
35666 elif test "$support_sse" = 2; then
35667 cat >>confdefs.h <<\_ACEOF
35668 #define BX_SUPPORT_SSE 2
35669 _ACEOF
35671 elif test "$support_sse" = 1; then
35672 cat >>confdefs.h <<\_ACEOF
35673 #define BX_SUPPORT_SSE 1
35674 _ACEOF
35676 else
35677 cat >>confdefs.h <<\_ACEOF
35678 #define BX_SUPPORT_SSE 0
35679 _ACEOF
35683 support_sse_extensions=0
35684 { echo "$as_me:$LINENO: checking for SSE extensions support" >&5
35685 echo $ECHO_N "checking for SSE extensions support... $ECHO_C" >&6; }
35686 # Check whether --enable-sse-extension was given.
35687 if test "${enable_sse_extension+set}" = set; then
35688 enableval=$enable_sse_extension; if test "$enableval" = yes; then
35689 { echo "$as_me:$LINENO: result: yes" >&5
35690 echo "${ECHO_T}yes" >&6; }
35691 cat >>confdefs.h <<\_ACEOF
35692 #define BX_SUPPORT_SSE_EXTENSION 1
35693 _ACEOF
35695 support_sse_extensions=1
35696 elif test "$enableval" = no; then
35697 { echo "$as_me:$LINENO: result: no" >&5
35698 echo "${ECHO_T}no" >&6; }
35699 cat >>confdefs.h <<\_ACEOF
35700 #define BX_SUPPORT_SSE_EXTENSION 0
35701 _ACEOF
35705 else
35707 { echo "$as_me:$LINENO: result: no" >&5
35708 echo "${ECHO_T}no" >&6; }
35709 cat >>confdefs.h <<\_ACEOF
35710 #define BX_SUPPORT_SSE_EXTENSION 0
35711 _ACEOF
35718 { echo "$as_me:$LINENO: checking for DAZ support" >&5
35719 echo $ECHO_N "checking for DAZ support... $ECHO_C" >&6; }
35720 # Check whether --enable-daz was given.
35721 if test "${enable_daz+set}" = set; then
35722 enableval=$enable_daz; if test "$enableval" = yes; then
35723 { echo "$as_me:$LINENO: result: yes" >&5
35724 echo "${ECHO_T}yes" >&6; }
35725 cat >>confdefs.h <<\_ACEOF
35726 #define BX_SUPPORT_DAZ 1
35727 _ACEOF
35729 elif test "$enableval" = no; then
35730 { echo "$as_me:$LINENO: result: no" >&5
35731 echo "${ECHO_T}no" >&6; }
35732 cat >>confdefs.h <<\_ACEOF
35733 #define BX_SUPPORT_DAZ 0
35734 _ACEOF
35738 else
35740 if test "$support_sse" -ge 2; then
35741 { echo "$as_me:$LINENO: result: yes" >&5
35742 echo "${ECHO_T}yes" >&6; }
35743 cat >>confdefs.h <<\_ACEOF
35744 #define BX_SUPPORT_DAZ 1
35745 _ACEOF
35747 else
35748 { echo "$as_me:$LINENO: result: no" >&5
35749 echo "${ECHO_T}no" >&6; }
35750 cat >>confdefs.h <<\_ACEOF
35751 #define BX_SUPPORT_DAZ 0
35752 _ACEOF
35760 use_xsave=0
35761 { echo "$as_me:$LINENO: checking for XSAVE/XRSTOR support" >&5
35762 echo $ECHO_N "checking for XSAVE/XRSTOR support... $ECHO_C" >&6; }
35763 # Check whether --enable-xsave was given.
35764 if test "${enable_xsave+set}" = set; then
35765 enableval=$enable_xsave; if test "$enableval" = yes; then
35766 { echo "$as_me:$LINENO: result: yes" >&5
35767 echo "${ECHO_T}yes" >&6; }
35768 cat >>confdefs.h <<\_ACEOF
35769 #define BX_SUPPORT_XSAVE 1
35770 _ACEOF
35772 use_xsave=1
35773 elif test "$enableval" = no; then
35774 { echo "$as_me:$LINENO: result: no" >&5
35775 echo "${ECHO_T}no" >&6; }
35776 cat >>confdefs.h <<\_ACEOF
35777 #define BX_SUPPORT_XSAVE 0
35778 _ACEOF
35782 else
35784 { echo "$as_me:$LINENO: result: no" >&5
35785 echo "${ECHO_T}no" >&6; }
35786 cat >>confdefs.h <<\_ACEOF
35787 #define BX_SUPPORT_XSAVE 0
35788 _ACEOF
35795 if test "$support_sse" -lt 1 -a "$use_xsave" = 1; then
35796 { { echo "$as_me:$LINENO: error: XSAVE requires SSE support!" >&5
35797 echo "$as_me: error: XSAVE requires SSE support!" >&2;}
35798 { (exit 1); exit 1; }; }
35801 use_aes=0
35802 { echo "$as_me:$LINENO: checking for AES instructions support" >&5
35803 echo $ECHO_N "checking for AES instructions support... $ECHO_C" >&6; }
35804 # Check whether --enable-aes was given.
35805 if test "${enable_aes+set}" = set; then
35806 enableval=$enable_aes; if test "$enableval" = yes; then
35807 { echo "$as_me:$LINENO: result: yes" >&5
35808 echo "${ECHO_T}yes" >&6; }
35809 cat >>confdefs.h <<\_ACEOF
35810 #define BX_SUPPORT_AES 1
35811 _ACEOF
35813 use_aes=1
35814 elif test "$enableval" = no; then
35815 { echo "$as_me:$LINENO: result: no" >&5
35816 echo "${ECHO_T}no" >&6; }
35817 cat >>confdefs.h <<\_ACEOF
35818 #define BX_SUPPORT_AES 0
35819 _ACEOF
35823 else
35825 { echo "$as_me:$LINENO: result: no" >&5
35826 echo "${ECHO_T}no" >&6; }
35827 cat >>confdefs.h <<\_ACEOF
35828 #define BX_SUPPORT_AES 0
35829 _ACEOF
35836 if test "$support_sse" -lt 1 -a "$use_aes" = 1; then
35837 { { echo "$as_me:$LINENO: error: AES requires SSE support!" >&5
35838 echo "$as_me: error: AES requires SSE support!" >&2;}
35839 { (exit 1); exit 1; }; }
35842 { echo "$as_me:$LINENO: checking for alignment check support" >&5
35843 echo $ECHO_N "checking for alignment check support... $ECHO_C" >&6; }
35844 # Check whether --enable-alignment-check was given.
35845 if test "${enable_alignment_check+set}" = set; then
35846 enableval=$enable_alignment_check; if test "$enableval" = yes; then
35847 { echo "$as_me:$LINENO: result: yes" >&5
35848 echo "${ECHO_T}yes" >&6; }
35849 cat >>confdefs.h <<\_ACEOF
35850 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35851 _ACEOF
35853 elif test "$enableval" = no; then
35854 { echo "$as_me:$LINENO: result: no" >&5
35855 echo "${ECHO_T}no" >&6; }
35856 cat >>confdefs.h <<\_ACEOF
35857 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35858 _ACEOF
35862 else
35864 if test "$bx_cpu_level" -gt 3; then
35865 { echo "$as_me:$LINENO: result: yes" >&5
35866 echo "${ECHO_T}yes" >&6; }
35867 cat >>confdefs.h <<\_ACEOF
35868 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35869 _ACEOF
35871 else
35872 { echo "$as_me:$LINENO: result: no" >&5
35873 echo "${ECHO_T}no" >&6; }
35874 cat >>confdefs.h <<\_ACEOF
35875 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35876 _ACEOF
35884 { echo "$as_me:$LINENO: checking for misaligned SSE support" >&5
35885 echo $ECHO_N "checking for misaligned SSE support... $ECHO_C" >&6; }
35886 # Check whether --enable-misaligned-sse was given.
35887 if test "${enable_misaligned_sse+set}" = set; then
35888 enableval=$enable_misaligned_sse; 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_MISALIGNED_SSE 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_MISALIGNED_SSE 0
35900 _ACEOF
35904 else
35906 { echo "$as_me:$LINENO: result: no" >&5
35907 echo "${ECHO_T}no" >&6; }
35908 cat >>confdefs.h <<\_ACEOF
35909 #define BX_SUPPORT_MISALIGNED_SSE 0
35910 _ACEOF
35917 { echo "$as_me:$LINENO: checking for SEP support" >&5
35918 echo $ECHO_N "checking for SEP support... $ECHO_C" >&6; }
35919 # Check whether --enable-sep was given.
35920 if test "${enable_sep+set}" = set; then
35921 enableval=$enable_sep; if test "$enableval" = yes; then
35922 { echo "$as_me:$LINENO: result: yes" >&5
35923 echo "${ECHO_T}yes" >&6; }
35924 cat >>confdefs.h <<\_ACEOF
35925 #define BX_SUPPORT_SEP 1
35926 _ACEOF
35928 elif test "$enableval" = no; then
35929 { echo "$as_me:$LINENO: result: no" >&5
35930 echo "${ECHO_T}no" >&6; }
35931 cat >>confdefs.h <<\_ACEOF
35932 #define BX_SUPPORT_SEP 0
35933 _ACEOF
35937 else
35939 if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
35940 { echo "$as_me:$LINENO: result: yes" >&5
35941 echo "${ECHO_T}yes" >&6; }
35942 cat >>confdefs.h <<\_ACEOF
35943 #define BX_SUPPORT_SEP 1
35944 _ACEOF
35946 else
35947 { echo "$as_me:$LINENO: result: no" >&5
35948 echo "${ECHO_T}no" >&6; }
35949 cat >>confdefs.h <<\_ACEOF
35950 #define BX_SUPPORT_SEP 0
35951 _ACEOF
35959 { echo "$as_me:$LINENO: checking for POPCNT instruction support" >&5
35960 echo $ECHO_N "checking for POPCNT instruction support... $ECHO_C" >&6; }
35961 # Check whether --enable-popcnt was given.
35962 if test "${enable_popcnt+set}" = set; then
35963 enableval=$enable_popcnt; if test "$enableval" = yes; then
35964 { echo "$as_me:$LINENO: result: yes" >&5
35965 echo "${ECHO_T}yes" >&6; }
35966 cat >>confdefs.h <<\_ACEOF
35967 #define BX_SUPPORT_POPCNT 1
35968 _ACEOF
35970 elif test "$enableval" = no; then
35971 { echo "$as_me:$LINENO: result: no" >&5
35972 echo "${ECHO_T}no" >&6; }
35973 cat >>confdefs.h <<\_ACEOF
35974 #define BX_SUPPORT_POPCNT 0
35975 _ACEOF
35979 else
35981 if test "$support_sse" -ge 4 -a "$support_sse_extensions" = 1; then
35982 { echo "$as_me:$LINENO: result: yes" >&5
35983 echo "${ECHO_T}yes" >&6; }
35984 cat >>confdefs.h <<\_ACEOF
35985 #define BX_SUPPORT_POPCNT 1
35986 _ACEOF
35988 else
35989 { echo "$as_me:$LINENO: result: no" >&5
35990 echo "${ECHO_T}no" >&6; }
35991 cat >>confdefs.h <<\_ACEOF
35992 #define BX_SUPPORT_POPCNT 0
35993 _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 { echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
36251 echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6; }
36252 SB16_OBJS=''
36253 SOUNDLOW_OBJS=''
36254 GAME_OBJS=''
36255 gameport_present=0
36256 # Check whether --enable-sb16 was given.
36257 if test "${enable_sb16+set}" = set; then
36258 enableval=$enable_sb16; if test "$enableval" = no; then
36259 { echo "$as_me:$LINENO: result: no" >&5
36260 echo "${ECHO_T}no" >&6; }
36261 cat >>confdefs.h <<\_ACEOF
36262 #define BX_SUPPORT_SB16 0
36263 _ACEOF
36265 else
36266 case "$enableval" in
36267 dummy)
36268 SOUNDLOW_OBJS=''
36269 cat >>confdefs.h <<\_ACEOF
36270 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36271 _ACEOF
36273 { echo "$as_me:$LINENO: result: dummy" >&5
36274 echo "${ECHO_T}dummy" >&6; }
36276 freebsd|linux)
36277 SOUNDLOW_OBJS='soundlnx.o'
36278 cat >>confdefs.h <<\_ACEOF
36279 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36280 _ACEOF
36282 { echo "$as_me:$LINENO: result: linux" >&5
36283 echo "${ECHO_T}linux" >&6; }
36285 win)
36286 SOUNDLOW_OBJS='soundwin.o'
36287 cat >>confdefs.h <<\_ACEOF
36288 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36289 _ACEOF
36291 { echo "$as_me:$LINENO: result: win" >&5
36292 echo "${ECHO_T}win" >&6; }
36293 case $target in
36294 *-pc-windows*)
36295 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36298 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36300 esac
36302 osx)
36303 SOUNDLOW_OBJS='soundosx.o'
36304 cat >>confdefs.h <<\_ACEOF
36305 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36306 _ACEOF
36308 { echo "$as_me:$LINENO: result: osx" >&5
36309 echo "${ECHO_T}osx" >&6; }
36310 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
36312 yes)
36313 case "$target" in
36314 *-linux* | *-freebsd*)
36315 SOUNDLOW_OBJS='soundlnx.o'
36316 cat >>confdefs.h <<\_ACEOF
36317 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36318 _ACEOF
36320 { echo "$as_me:$LINENO: result: linux" >&5
36321 echo "${ECHO_T}linux" >&6; }
36323 *-pc-windows*)
36324 SOUNDLOW_OBJS='soundwin.o'
36325 cat >>confdefs.h <<\_ACEOF
36326 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36327 _ACEOF
36329 { echo "$as_me:$LINENO: result: win" >&5
36330 echo "${ECHO_T}win" >&6; }
36331 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36333 *-cygwin* | *-mingw32*)
36334 SOUNDLOW_OBJS='soundwin.o'
36335 cat >>confdefs.h <<\_ACEOF
36336 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36337 _ACEOF
36339 { echo "$as_me:$LINENO: result: win" >&5
36340 echo "${ECHO_T}win" >&6; }
36341 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36343 *-macosx* | *-macos*)
36344 SOUNDLOW_OBJS='soundosx.o'
36345 cat >>confdefs.h <<\_ACEOF
36346 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36347 _ACEOF
36349 { echo "$as_me:$LINENO: result: osx" >&5
36350 echo "${ECHO_T}osx" >&6; }
36351 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
36354 SOUNDLOW_OBJS=''
36355 cat >>confdefs.h <<\_ACEOF
36356 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36357 _ACEOF
36359 { echo "$as_me:$LINENO: result: dummy" >&5
36360 echo "${ECHO_T}dummy" >&6; }
36362 esac
36365 echo " "
36366 echo \!\!\!Error\!\!\!
36367 echo "You must pass one of dummy, linux, win, freebsd, osx to --enable-sb16"
36368 exit 1 ;;
36369 esac
36370 SB16_OBJS='sb16.o'
36371 cat >>confdefs.h <<\_ACEOF
36372 #define BX_SUPPORT_SB16 1
36373 _ACEOF
36375 GAME_OBJS='gameport.o'
36376 gameport_present=1
36378 else
36380 { echo "$as_me:$LINENO: result: no" >&5
36381 echo "${ECHO_T}no" >&6; }
36382 cat >>confdefs.h <<\_ACEOF
36383 #define BX_SUPPORT_SB16 0
36384 _ACEOF
36394 { echo "$as_me:$LINENO: checking for standard PC gameport support" >&5
36395 echo $ECHO_N "checking for standard PC gameport support... $ECHO_C" >&6; }
36396 # Check whether --enable-gameport was given.
36397 if test "${enable_gameport+set}" = set; then
36398 enableval=$enable_gameport; if test "$enableval" = yes; then
36399 { echo "$as_me:$LINENO: result: yes" >&5
36400 echo "${ECHO_T}yes" >&6; }
36401 cat >>confdefs.h <<\_ACEOF
36402 #define BX_SUPPORT_GAMEPORT 1
36403 _ACEOF
36405 if test "$gameport_present" = 0; then
36406 GAME_OBJS='gameport.o'
36407 case $target in
36408 *-cygwin* | *-mingw32*)
36409 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36411 esac
36413 else
36414 { echo "$as_me:$LINENO: result: no" >&5
36415 echo "${ECHO_T}no" >&6; }
36416 GAME_OBJS=''
36417 cat >>confdefs.h <<\_ACEOF
36418 #define BX_SUPPORT_GAMEPORT 0
36419 _ACEOF
36422 else
36424 if test "$gameport_present" = 1; then
36425 cat >>confdefs.h <<\_ACEOF
36426 #define BX_SUPPORT_GAMEPORT 1
36427 _ACEOF
36429 { echo "$as_me:$LINENO: result: yes" >&5
36430 echo "${ECHO_T}yes" >&6; }
36431 else
36432 cat >>confdefs.h <<\_ACEOF
36433 #define BX_SUPPORT_GAMEPORT 0
36434 _ACEOF
36436 { echo "$as_me:$LINENO: result: no" >&5
36437 echo "${ECHO_T}no" >&6; }
36445 { echo "$as_me:$LINENO: checking for gdb stub enable" >&5
36446 echo $ECHO_N "checking for gdb stub enable... $ECHO_C" >&6; }
36447 # Check whether --enable-gdb-stub was given.
36448 if test "${enable_gdb_stub+set}" = set; then
36449 enableval=$enable_gdb_stub; if test "$enableval" = yes; then
36450 { echo "$as_me:$LINENO: result: yes" >&5
36451 echo "${ECHO_T}yes" >&6; }
36452 cat >>confdefs.h <<\_ACEOF
36453 #define BX_GDBSTUB 1
36454 _ACEOF
36456 GDBSTUB_VAR='$(GDBSTUB_OBJS)'
36457 if test "$bx_debugger" = 1; then
36458 { { echo "$as_me:$LINENO: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&5
36459 echo "$as_me: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&2;}
36460 { (exit 1); exit 1; }; }
36462 else
36463 { echo "$as_me:$LINENO: result: no" >&5
36464 echo "${ECHO_T}no" >&6; }
36465 cat >>confdefs.h <<\_ACEOF
36466 #define BX_GDBSTUB 0
36467 _ACEOF
36469 GDBSTUB_VAR=''
36471 else
36473 { echo "$as_me:$LINENO: result: no" >&5
36474 echo "${ECHO_T}no" >&6; }
36475 cat >>confdefs.h <<\_ACEOF
36476 #define BX_GDBSTUB 0
36477 _ACEOF
36479 GDBSTUB_VAR=''
36487 { echo "$as_me:$LINENO: checking for I/O Interface to the debugger" >&5
36488 echo $ECHO_N "checking for I/O Interface to the debugger... $ECHO_C" >&6; }
36489 IODEBUG_OBJS=''
36490 # Check whether --enable-iodebug was given.
36491 if test "${enable_iodebug+set}" = set; then
36492 enableval=$enable_iodebug; if test "$enableval" = yes; then
36493 { echo "$as_me:$LINENO: result: yes" >&5
36494 echo "${ECHO_T}yes" >&6; }
36495 cat >>confdefs.h <<\_ACEOF
36496 #define BX_SUPPORT_IODEBUG 1
36497 _ACEOF
36499 IODEBUG_OBJS='iodebug.o'
36500 else
36501 { echo "$as_me:$LINENO: result: no" >&5
36502 echo "${ECHO_T}no" >&6; }
36503 cat >>confdefs.h <<\_ACEOF
36504 #define BX_SUPPORT_IODEBUG 0
36505 _ACEOF
36509 else
36511 if test "" = 1; then
36512 # enable by default if debugger is on
36513 { echo "$as_me:$LINENO: result: yes" >&5
36514 echo "${ECHO_T}yes" >&6; }
36515 cat >>confdefs.h <<\_ACEOF
36516 #define BX_SUPPORT_IODEBUG 1
36517 _ACEOF
36519 IODEBUG_OBJS='iodebug.o'
36520 else
36521 { echo "$as_me:$LINENO: result: no" >&5
36522 echo "${ECHO_T}no" >&6; }
36531 # Extract the first word of "docbook2html", so it can be a program name with args.
36532 set dummy docbook2html; ac_word=$2
36533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36535 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
36536 echo $ECHO_N "(cached) $ECHO_C" >&6
36537 else
36538 case $DOCBOOK2HTML in
36539 [\\/]* | ?:[\\/]*)
36540 ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
36543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36544 for as_dir in $PATH
36546 IFS=$as_save_IFS
36547 test -z "$as_dir" && as_dir=.
36548 for ac_exec_ext in '' $ac_executable_extensions; do
36549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36550 ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
36551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36552 break 2
36554 done
36555 done
36556 IFS=$as_save_IFS
36558 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found"
36560 esac
36562 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
36563 if test -n "$DOCBOOK2HTML"; then
36564 { echo "$as_me:$LINENO: result: $DOCBOOK2HTML" >&5
36565 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
36566 else
36567 { echo "$as_me:$LINENO: result: no" >&5
36568 echo "${ECHO_T}no" >&6; }
36572 { echo "$as_me:$LINENO: checking whether to build docbook documentation" >&5
36573 echo $ECHO_N "checking whether to build docbook documentation... $ECHO_C" >&6; }
36574 build_docbook=0
36575 # Check whether --enable-docbook was given.
36576 if test "${enable_docbook+set}" = set; then
36577 enableval=$enable_docbook;
36578 if test "$enableval" = yes; then build_docbook=1; fi
36580 else
36582 if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
36588 if test $build_docbook = 1; then
36589 { echo "$as_me:$LINENO: result: yes" >&5
36590 echo "${ECHO_T}yes" >&6; }
36591 BUILD_DOCBOOK_VAR=build_docbook
36592 INSTALL_DOCBOOK_VAR=install_docbook
36593 if test "$DOCBOOK2HTML" = not_found; then
36594 echo "ERROR: docbook2html must be installed to build the documentation"
36595 exit 1
36597 else
36598 { echo "$as_me:$LINENO: result: no" >&5
36599 echo "${ECHO_T}no" >&6; }
36605 PRIMARY_TARGET='bochs'
36606 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
36608 cat >>confdefs.h <<\_ACEOF
36609 #define BX_PROVIDE_DEVICE_MODELS 1
36610 _ACEOF
36612 IODEV_LIB_VAR='iodev/libiodev.a'
36613 cat >>confdefs.h <<\_ACEOF
36614 #define BX_PROVIDE_CPU_MEMORY 1
36615 _ACEOF
36617 NONINLINE_VAR='$(NONINLINE_OBJS)'
36629 # Check whether --with-x11 was given.
36630 if test "${with_x11+set}" = set; then
36631 withval=$with_x11;
36636 # Check whether --with-beos was given.
36637 if test "${with_beos+set}" = set; then
36638 withval=$with_beos;
36643 # Check whether --with-win32 was given.
36644 if test "${with_win32+set}" = set; then
36645 withval=$with_win32;
36650 # Check whether --with-macos was given.
36651 if test "${with_macos+set}" = set; then
36652 withval=$with_macos;
36657 # Check whether --with-carbon was given.
36658 if test "${with_carbon+set}" = set; then
36659 withval=$with_carbon;
36664 # Check whether --with-nogui was given.
36665 if test "${with_nogui+set}" = set; then
36666 withval=$with_nogui;
36671 # Check whether --with-term was given.
36672 if test "${with_term+set}" = set; then
36673 withval=$with_term;
36678 # Check whether --with-rfb was given.
36679 if test "${with_rfb+set}" = set; then
36680 withval=$with_rfb;
36685 # Check whether --with-amigaos was given.
36686 if test "${with_amigaos+set}" = set; then
36687 withval=$with_amigaos;
36692 # Check whether --with-sdl was given.
36693 if test "${with_sdl+set}" = set; then
36694 withval=$with_sdl;
36699 # Check whether --with-svga was given.
36700 if test "${with_svga+set}" = set; then
36701 withval=$with_svga;
36706 # Check whether --with-wx was given.
36707 if test "${with_wx+set}" = set; then
36708 withval=$with_wx;
36713 # Check whether --with-all-libs was given.
36714 if test "${with_all_libs+set}" = set; then
36715 withval=$with_all_libs;
36719 DASH="-"
36720 SLASH="/"
36721 CXXFP=""
36722 CFP=""
36723 OFP="-o "
36724 MAKELIB="ar rv \$@"
36725 RMCOMMAND="rm -f "
36726 # first define link variables without libtool
36727 LINK="\$(CXX) -o \$@ \$(CXXFLAGS) \$(LDFLAGS)"
36728 LINK_CONSOLE="\$(CXX) -o \$@ \$(CXXFLAGS_CONSOLE) \$(LDFLAGS)"
36729 # unless NO_LT is set, add libtool to the front of the link command
36730 if test "$NO_LT" != 1; then
36731 LINK="\$(LIBTOOL) --mode=link $LINK"
36732 LINK_CONSOLE="\$(LIBTOOL) --mode=link $LINK_CONSOLE"
36734 EXE=""
36735 COMMAND_SEPARATOR="&& \\"
36736 CD_UP_ONE="echo done"
36737 CD_UP_TWO="echo done"
36738 CD_UP_THREE="echo done"
36740 INSTALL_TARGET=install_unix
36741 INSTALL_LIST_FOR_PLATFORM=
36743 # check for existence of and usable version of wxWidgets. This comes
36744 # early so that it could affect which one gets chosen.
36745 if test x$WX_CONFIG = x; then
36746 # Extract the first word of " wx-config --version ", so it can be a program name with args.
36747 set dummy wx-config --version ; ac_word=$2
36748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36750 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
36751 echo $ECHO_N "(cached) $ECHO_C" >&6
36752 else
36753 if test -n "$WX_CONFIG"; then
36754 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
36755 else
36756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36757 for as_dir in $PATH
36759 IFS=$as_save_IFS
36760 test -z "$as_dir" && as_dir=.
36761 for ac_exec_ext in '' $ac_executable_extensions; do
36762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36763 ac_cv_prog_WX_CONFIG="wx-config"
36764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36765 break 2
36767 done
36768 done
36769 IFS=$as_save_IFS
36771 test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found"
36774 WX_CONFIG=$ac_cv_prog_WX_CONFIG
36775 if test -n "$WX_CONFIG"; then
36776 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
36777 echo "${ECHO_T}$WX_CONFIG" >&6; }
36778 else
36779 { echo "$as_me:$LINENO: result: no" >&5
36780 echo "${ECHO_T}no" >&6; }
36785 { echo "$as_me:$LINENO: checking for wxWidgets configuration script" >&5
36786 echo $ECHO_N "checking for wxWidgets configuration script... $ECHO_C" >&6; }
36787 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
36788 echo "${ECHO_T}$WX_CONFIG" >&6; }
36790 ok_wx_version=0
36791 wx_multi_lib=0
36792 wx_needs_gtk2=0
36793 { echo "$as_me:$LINENO: checking for wxWidgets library version" >&5
36794 echo $ECHO_N "checking for wxWidgets library version... $ECHO_C" >&6; }
36795 if test x$WX_CONFIG != xnot_found; then
36796 WX_VERSION=`$WX_CONFIG --version`
36797 WX_BASENAME=`$WX_CONFIG --basename`
36799 # test that version >= 2.3.2. Anybody have a better way to do this? Yuck.
36800 case x$WX_VERSION in
36801 x2.[012]*) ;; # less than version 2.3.x
36802 x2.3.[01]) ;; # less than version 2.3.2
36803 x2.3.[2-4]*) ok_wx_version=1 ;; # 2.3.2 or greater
36804 x2.[4-5]*) ok_wx_version=1 ;; # version 2.4 / 2.5
36805 x2.[6-9]*) # version 2.6 or greater
36806 ok_wx_version=1
36807 wx_multi_lib=1
36808 case x$WX_BASENAME in
36809 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
36810 *) ;;
36811 esac
36813 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
36814 *) ;; # who knows?
36815 esac
36818 { echo "$as_me:$LINENO: result: $WX_VERSION" >&5
36819 echo "${ECHO_T}$WX_VERSION" >&6; }
36820 if test "$cross_configure" = 0; then
36821 if test "$ok_wx_version" = 1; then
36822 # detected a usable version
36823 if test "$with_all_libs" = yes; then
36824 with_wx=yes
36826 else
36827 if test "$with_wx" = yes; then
36828 { echo "$as_me:$LINENO: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&5
36829 echo "$as_me: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&2;}
36831 with_wx=no
36835 { echo "$as_me:$LINENO: checking for default gui on this platform" >&5
36836 echo $ECHO_N "checking for default gui on this platform... $ECHO_C" >&6; }
36837 { echo "$as_me:$LINENO: result: $DEFAULT_GUI" >&5
36838 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
36840 display_libs=""
36842 # the $with_* variable tells the gui library to use, but does NOT necessarily
36843 # indicate the platform. Settings that depend on the platform should be
36844 # handled later.
36846 XPM_LIB=''
36847 if test "$with_x11" = yes; then
36848 display_libs="$display_libs X11"
36849 if test "$no_x" = yes; then
36850 echo ERROR: X windows gui was selected, but X windows libraries were not found.
36851 exit 1
36853 cat >>confdefs.h <<\_ACEOF
36854 #define BX_WITH_X11 1
36855 _ACEOF
36857 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_X11)"
36858 GUI_CFLAGS="$GUI_CFLAGS \$(X_CFLAGS)"
36859 GUI_CXXFLAGS="$GUI_CXXFLAGS \$(X_CFLAGS)"
36860 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_X)"
36861 check_xpm=0
36862 { echo "$as_me:$LINENO: checking whether user wants XPM support" >&5
36863 echo $ECHO_N "checking whether user wants XPM support... $ECHO_C" >&6; }
36864 # Check whether --enable-xpm was given.
36865 if test "${enable_xpm+set}" = set; then
36866 enableval=$enable_xpm; if test "$enableval" = yes; then
36867 check_xpm=0
36868 { echo "$as_me:$LINENO: result: yes" >&5
36869 echo "${ECHO_T}yes" >&6; }
36870 check_xpm=1
36871 else
36872 { echo "$as_me:$LINENO: result: no" >&5
36873 echo "${ECHO_T}no" >&6; }
36874 check_xpm=0
36876 else
36878 { echo "$as_me:$LINENO: result: yes" >&5
36879 echo "${ECHO_T}yes" >&6; }
36880 check_xpm=1
36885 if test $check_xpm = 1; then
36886 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
36887 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
36888 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
36889 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
36890 echo $ECHO_N "(cached) $ECHO_C" >&6
36892 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
36893 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
36894 else
36895 # Is the header compilable?
36896 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
36897 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
36898 cat >conftest.$ac_ext <<_ACEOF
36899 /* confdefs.h. */
36900 _ACEOF
36901 cat confdefs.h >>conftest.$ac_ext
36902 cat >>conftest.$ac_ext <<_ACEOF
36903 /* end confdefs.h. */
36904 $ac_includes_default
36905 #include <X11/xpm.h>
36906 _ACEOF
36907 rm -f conftest.$ac_objext
36908 if { (ac_try="$ac_compile"
36909 case "(($ac_try" in
36910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36911 *) ac_try_echo=$ac_try;;
36912 esac
36913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36914 (eval "$ac_compile") 2>conftest.er1
36915 ac_status=$?
36916 grep -v '^ *+' conftest.er1 >conftest.err
36917 rm -f conftest.er1
36918 cat conftest.err >&5
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); } && {
36921 test -z "$ac_c_werror_flag" ||
36922 test ! -s conftest.err
36923 } && test -s conftest.$ac_objext; then
36924 ac_header_compiler=yes
36925 else
36926 echo "$as_me: failed program was:" >&5
36927 sed 's/^/| /' conftest.$ac_ext >&5
36929 ac_header_compiler=no
36932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36934 echo "${ECHO_T}$ac_header_compiler" >&6; }
36936 # Is the header present?
36937 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
36938 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
36939 cat >conftest.$ac_ext <<_ACEOF
36940 /* confdefs.h. */
36941 _ACEOF
36942 cat confdefs.h >>conftest.$ac_ext
36943 cat >>conftest.$ac_ext <<_ACEOF
36944 /* end confdefs.h. */
36945 #include <X11/xpm.h>
36946 _ACEOF
36947 if { (ac_try="$ac_cpp conftest.$ac_ext"
36948 case "(($ac_try" in
36949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36950 *) ac_try_echo=$ac_try;;
36951 esac
36952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36954 ac_status=$?
36955 grep -v '^ *+' conftest.er1 >conftest.err
36956 rm -f conftest.er1
36957 cat conftest.err >&5
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); } >/dev/null && {
36960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36961 test ! -s conftest.err
36962 }; then
36963 ac_header_preproc=yes
36964 else
36965 echo "$as_me: failed program was:" >&5
36966 sed 's/^/| /' conftest.$ac_ext >&5
36968 ac_header_preproc=no
36971 rm -f conftest.err conftest.$ac_ext
36972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36973 echo "${ECHO_T}$ac_header_preproc" >&6; }
36975 # So? What about this header?
36976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36977 yes:no: )
36978 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
36979 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36980 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
36981 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
36982 ac_header_preproc=yes
36984 no:yes:* )
36985 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
36986 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
36987 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
36988 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
36989 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
36990 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
36991 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
36992 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
36993 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
36994 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
36995 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
36996 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
36999 esac
37000 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37001 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
37002 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37003 echo $ECHO_N "(cached) $ECHO_C" >&6
37004 else
37005 ac_cv_header_X11_xpm_h=$ac_header_preproc
37007 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37008 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37011 if test $ac_cv_header_X11_xpm_h = yes; then
37013 cat >>confdefs.h <<\_ACEOF
37014 #define BX_HAVE_XPM_H 1
37015 _ACEOF
37017 XPM_LIB='-lXpm'
37026 if test "$with_beos" = yes; then
37027 display_libs="$display_libs beos"
37028 cat >>confdefs.h <<\_ACEOF
37029 #define BX_WITH_BEOS 1
37030 _ACEOF
37032 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_BEOS)"
37033 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_BEOS)"
37036 if test "$with_sdl" = yes; then
37037 display_libs="$display_libs sdl"
37038 cat >>confdefs.h <<\_ACEOF
37039 #define BX_WITH_SDL 1
37040 _ACEOF
37042 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL)"
37043 # GUI_*FLAGS are added to the compilation of every bochs file, not just
37044 # the files in gui/*.cc.
37045 SDL_CFLAGS=`sdl-config --cflags`
37046 GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
37047 GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
37048 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
37049 if test "$with_win32" != yes -a "$with_wx" != yes; then
37050 case $target in
37051 *-pc-windows*)
37052 RC_CMD="rc /fo"
37053 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37055 *-cygwin* | *-mingw32*)
37056 RC_CMD="windres -o "
37057 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37059 esac
37063 if test "$with_svga" = yes; then
37064 display_libs="$display_libs svga"
37065 cat >>confdefs.h <<\_ACEOF
37066 #define BX_WITH_SVGA 1
37067 _ACEOF
37069 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
37070 # GUI_*FLAGS are added to the compilation of every bochs file, not just
37071 # the files in gui/*.cc.
37072 GUI_CFLAGS="$GUI_CFLAGS"
37073 GUI_CXXFLAGS="$GUI_CXXFLAGS"
37074 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
37077 if test "$with_rfb" = yes; then
37078 display_libs="$display_libs rfb"
37079 cat >>confdefs.h <<\_ACEOF
37080 #define BX_WITH_RFB 1
37081 _ACEOF
37083 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_RFB)"
37084 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_RFB)"
37087 if test "$with_amigaos" = yes; then
37088 display_libs="$display_libs amigaos"
37089 cat >>confdefs.h <<\_ACEOF
37090 #define BX_WITH_AMIGAOS 1
37091 _ACEOF
37093 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_AMIGAOS)"
37094 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_AMIGAOS)"
37097 if test "$with_win32" = yes; then
37098 display_libs="$display_libs win32"
37099 cat >>confdefs.h <<\_ACEOF
37100 #define BX_WITH_WIN32 1
37101 _ACEOF
37103 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WIN32)"
37104 case $target in
37105 *-pc-windows*)
37106 if test "$with_wx" != yes; then
37107 RC_CMD="rc /fo"
37108 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37110 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32_VCPP)"
37112 *-cygwin* | *-mingw32*)
37113 if test "$with_wx" != yes; then
37114 RC_CMD="windres -o "
37115 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37117 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
37119 *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
37121 esac
37124 if test "$with_macos" = yes; then
37125 display_libs="$display_libs macos"
37126 cat >>confdefs.h <<\_ACEOF
37127 #define BX_WITH_MACOS 1
37128 _ACEOF
37130 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_MACOS)"
37131 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_MACOS)"
37134 if test "$with_carbon" = yes; then
37135 display_libs="$display_libs carbon"
37136 cat >>confdefs.h <<\_ACEOF
37137 #define BX_WITH_CARBON 1
37138 _ACEOF
37140 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_CARBON)"
37141 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_CARBON)"
37142 if test "$bx_plugins" = 1; then
37143 PRIMARY_TARGET=bochs.app/.build_plugins # only for carbon application
37144 else
37145 PRIMARY_TARGET=bochs.app/.build # only for carbon application
37147 INSTALL_TARGET='install_macosx'
37150 if test "$with_term" = yes; then
37151 display_libs="$display_libs term"
37152 cat >>confdefs.h <<\_ACEOF
37153 #define BX_WITH_TERM 1
37154 _ACEOF
37156 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_TERM)"
37157 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_TERM)"
37158 use_curses=yes
37161 if test "$with_wx" = yes; then
37162 display_libs="$display_libs wxWidgets"
37163 if test "$cross_configure" = 1; then
37164 true # do not insist, if configuring for another machine
37165 else
37166 if test x$ok_wx_version != x1; then
37167 echo ERROR: A usable version of wxWidgets was not found.
37168 echo Upgrade the library or choose another gui.
37169 exit 1
37172 cat >>confdefs.h <<\_ACEOF
37173 #define BX_WITH_WX 1
37174 _ACEOF
37176 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WX)"
37177 SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$(GUI_OBJS_WX_SUPPORT)"
37178 WX_CFLAGS="`$WX_CONFIG --cflags`"
37179 WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
37180 if test "$wx_multi_lib" = 1; then
37181 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
37182 else
37183 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
37185 if test "$wx_needs_gtk2" = 1; then
37188 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37189 if test -n "$ac_tool_prefix"; then
37190 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37191 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37194 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37195 echo $ECHO_N "(cached) $ECHO_C" >&6
37196 else
37197 case $PKG_CONFIG in
37198 [\\/]* | ?:[\\/]*)
37199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37203 for as_dir in $PATH
37205 IFS=$as_save_IFS
37206 test -z "$as_dir" && as_dir=.
37207 for ac_exec_ext in '' $ac_executable_extensions; do
37208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37211 break 2
37213 done
37214 done
37215 IFS=$as_save_IFS
37218 esac
37220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37221 if test -n "$PKG_CONFIG"; then
37222 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37223 echo "${ECHO_T}$PKG_CONFIG" >&6; }
37224 else
37225 { echo "$as_me:$LINENO: result: no" >&5
37226 echo "${ECHO_T}no" >&6; }
37231 if test -z "$ac_cv_path_PKG_CONFIG"; then
37232 ac_pt_PKG_CONFIG=$PKG_CONFIG
37233 # Extract the first word of "pkg-config", so it can be a program name with args.
37234 set dummy pkg-config; ac_word=$2
37235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37237 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
37238 echo $ECHO_N "(cached) $ECHO_C" >&6
37239 else
37240 case $ac_pt_PKG_CONFIG in
37241 [\\/]* | ?:[\\/]*)
37242 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37246 for as_dir in $PATH
37248 IFS=$as_save_IFS
37249 test -z "$as_dir" && as_dir=.
37250 for ac_exec_ext in '' $ac_executable_extensions; do
37251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37252 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37254 break 2
37256 done
37257 done
37258 IFS=$as_save_IFS
37261 esac
37263 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37264 if test -n "$ac_pt_PKG_CONFIG"; then
37265 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
37266 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
37267 else
37268 { echo "$as_me:$LINENO: result: no" >&5
37269 echo "${ECHO_T}no" >&6; }
37272 if test "x$ac_pt_PKG_CONFIG" = x; then
37273 PKG_CONFIG=""
37274 else
37275 case $cross_compiling:$ac_tool_warned in
37276 yes:)
37277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37278 whose name does not start with the host triplet. If you think this
37279 configuration is useful to you, please write to autoconf@gnu.org." >&5
37280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37281 whose name does not start with the host triplet. If you think this
37282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37283 ac_tool_warned=yes ;;
37284 esac
37285 PKG_CONFIG=$ac_pt_PKG_CONFIG
37287 else
37288 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37292 if test -n "$PKG_CONFIG"; then
37293 _pkg_min_version=0.9.0
37294 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
37295 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
37296 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37297 { echo "$as_me:$LINENO: result: yes" >&5
37298 echo "${ECHO_T}yes" >&6; }
37299 else
37300 { echo "$as_me:$LINENO: result: no" >&5
37301 echo "${ECHO_T}no" >&6; }
37302 PKG_CONFIG=""
37307 pkg_failed=no
37308 { echo "$as_me:$LINENO: checking for GTK" >&5
37309 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
37311 if test -n "$PKG_CONFIG"; then
37312 if test -n "$GTK_CFLAGS"; then
37313 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
37314 else
37315 if test -n "$PKG_CONFIG" && \
37316 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
37317 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
37318 ac_status=$?
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); }; then
37321 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
37322 else
37323 pkg_failed=yes
37326 else
37327 pkg_failed=untried
37329 if test -n "$PKG_CONFIG"; then
37330 if test -n "$GTK_LIBS"; then
37331 pkg_cv_GTK_LIBS="$GTK_LIBS"
37332 else
37333 if test -n "$PKG_CONFIG" && \
37334 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
37335 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
37336 ac_status=$?
37337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37338 (exit $ac_status); }; then
37339 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
37340 else
37341 pkg_failed=yes
37344 else
37345 pkg_failed=untried
37350 if test $pkg_failed = yes; then
37352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37353 _pkg_short_errors_supported=yes
37354 else
37355 _pkg_short_errors_supported=no
37357 if test $_pkg_short_errors_supported = yes; then
37358 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
37359 else
37360 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
37362 # Put the nasty error message in config.log where it belongs
37363 echo "$GTK_PKG_ERRORS" >&5
37365 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
37367 $GTK_PKG_ERRORS
37369 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37370 installed software in a non-standard prefix.
37372 Alternatively, you may set the environment variables GTK_CFLAGS
37373 and GTK_LIBS to avoid the need to call pkg-config.
37374 See the pkg-config man page for more details.
37375 " >&5
37376 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
37378 $GTK_PKG_ERRORS
37380 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37381 installed software in a non-standard prefix.
37383 Alternatively, you may set the environment variables GTK_CFLAGS
37384 and GTK_LIBS to avoid the need to call pkg-config.
37385 See the pkg-config man page for more details.
37386 " >&2;}
37387 { (exit 1); exit 1; }; }
37388 elif test $pkg_failed = untried; then
37389 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
37390 is in your PATH or set the PKG_CONFIG environment variable to the full
37391 path to pkg-config.
37393 Alternatively, you may set the environment variables GTK_CFLAGS
37394 and GTK_LIBS to avoid the need to call pkg-config.
37395 See the pkg-config man page for more details.
37397 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
37398 See \`config.log' for more details." >&5
37399 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
37400 is in your PATH or set the PKG_CONFIG environment variable to the full
37401 path to pkg-config.
37403 Alternatively, you may set the environment variables GTK_CFLAGS
37404 and GTK_LIBS to avoid the need to call pkg-config.
37405 See the pkg-config man page for more details.
37407 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
37408 See \`config.log' for more details." >&2;}
37409 { (exit 1); exit 1; }; }
37410 else
37411 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
37412 GTK_LIBS=$pkg_cv_GTK_LIBS
37413 { echo "$as_me:$LINENO: result: yes" >&5
37414 echo "${ECHO_T}yes" >&6; }
37416 WX_CFLAGS="$WX_CFLAGS $GTK_CFLAGS"
37417 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
37420 else
37421 # if gtk-config exists, then add it to the cflags.
37422 gtkconf=`gtk-config --cflags`
37423 if test $? = 0; then
37424 # gtk-config was found and returned 0, so it must return valid output
37425 WX_CFLAGS="$WX_CFLAGS $gtkconf"
37426 WX_CXXFLAGS="$WX_CXXFLAGS $gtkconf"
37429 # GUI_C*FLAGS are added to the compilation of every bochs file, not just
37430 # the files in gui/*.cc. They are not used when building other things
37431 # such as bximage.
37432 GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
37433 GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
37434 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
37435 # using debugger with readline is failing due to thread/signal handler
37436 # problems.
37437 case $target in
37438 *-pc-windows* | *-cygwin* | *-mingw32*)
37439 EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
37440 GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
37442 esac
37445 if test "$with_nogui" = yes; then
37446 display_libs="$display_libs nogui"
37447 cat >>confdefs.h <<\_ACEOF
37448 #define BX_WITH_NOGUI 1
37449 _ACEOF
37451 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
37454 { echo "$as_me:$LINENO: checking for display libraries" >&5
37455 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
37456 { echo "$as_me:$LINENO: result: $display_libs" >&5
37457 echo "${ECHO_T}$display_libs" >&6; }
37459 if test "$display_libs" = ""; then
37460 echo "No display libraries were selected. Use --with-* options to enable"
37461 echo "individual display libraries, or --with-all-libs to detect the ones"
37462 echo "that Bochs supports."
37463 exit 1
37466 if test "$display_libs" = " wxWidgets"; then
37467 { echo "$as_me:$LINENO: checking for default configuration interface" >&5
37468 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
37469 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37470 echo "${ECHO_T}wxWidgets" >&6; }
37471 { echo "$as_me:$LINENO: checking for default display library" >&5
37472 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
37473 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37474 echo "${ECHO_T}wxWidgets" >&6; }
37475 cat >>confdefs.h <<\_ACEOF
37476 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
37477 _ACEOF
37479 cat >>confdefs.h <<\_ACEOF
37480 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
37481 _ACEOF
37483 cat >>confdefs.h <<\_ACEOF
37484 #define BX_USE_TEXTCONFIG 0
37485 _ACEOF
37487 else
37488 cat >>confdefs.h <<\_ACEOF
37489 #define BX_USE_TEXTCONFIG 1
37490 _ACEOF
37494 if test "$bx_plugins" = 1; then
37495 # every item in this list will be compiled as a plugin. Do not include
37496 # support objs; they will be mentioned in plugin-specific makefile rules.
37497 GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
37498 else
37499 # include support objs
37500 GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
37509 for ac_prog in wget curl fetch
37511 # Extract the first word of "$ac_prog", so it can be a program name with args.
37512 set dummy $ac_prog; ac_word=$2
37513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37515 if test "${ac_cv_prog_WGET+set}" = set; then
37516 echo $ECHO_N "(cached) $ECHO_C" >&6
37517 else
37518 if test -n "$WGET"; then
37519 ac_cv_prog_WGET="$WGET" # Let the user override the test.
37520 else
37521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37522 for as_dir in $PATH
37524 IFS=$as_save_IFS
37525 test -z "$as_dir" && as_dir=.
37526 for ac_exec_ext in '' $ac_executable_extensions; do
37527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37528 ac_cv_prog_WGET="$ac_prog"
37529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37530 break 2
37532 done
37533 done
37534 IFS=$as_save_IFS
37538 WGET=$ac_cv_prog_WGET
37539 if test -n "$WGET"; then
37540 { echo "$as_me:$LINENO: result: $WGET" >&5
37541 echo "${ECHO_T}$WGET" >&6; }
37542 else
37543 { echo "$as_me:$LINENO: result: no" >&5
37544 echo "${ECHO_T}no" >&6; }
37548 test -n "$WGET" && break
37549 done
37550 test -n "$WGET" || WGET="not_found"
37552 if test "$WGET" = not_found; then
37553 { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
37554 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
37556 # everybody has to re-invent the wheel. differently.
37557 test "${WGET}" = "curl" && WGET="curl -O"
37559 # modify settings based on target platform
37560 case "$target" in
37561 *-macosx*)
37562 cat >>confdefs.h <<\_ACEOF
37563 #define BX_HAVE_STRDUP 0
37564 _ACEOF
37567 *-macos*)
37568 cat >>confdefs.h <<\_ACEOF
37569 #define BX_HAVE_STRDUP 0
37570 _ACEOF
37572 cat >>confdefs.h <<\_ACEOF
37573 #define BX_PLUGINS 0
37574 _ACEOF
37576 cat >>confdefs.h <<\_ACEOF
37577 #define BX_HAVE_DLFCN_H 0
37578 _ACEOF
37580 cat >>confdefs.h <<\_ACEOF
37581 #define BX_HAVE_SOCKLEN_T 0
37582 _ACEOF
37584 cat >>confdefs.h <<\_ACEOF
37585 #define BX_HAVE_SELECT 0
37586 _ACEOF
37588 cat >>confdefs.h <<\_ACEOF
37589 #define BX_HAVE_GETTIMEOFDAY 0
37590 _ACEOF
37592 cat >>confdefs.h <<\_ACEOF
37593 #define BX_NO_ATTRIBUTES 1
37594 _ACEOF
37596 cat >>confdefs.h <<\_ACEOF
37597 #define HAVE_TUNTAP 0
37598 _ACEOF
37600 cat >>confdefs.h <<\_ACEOF
37601 #define HAVE_ETHERTAP 0
37602 _ACEOF
37604 cat >>confdefs.h <<\_ACEOF
37605 #define BX_HAVE_HASH_MAP 0
37606 _ACEOF
37609 *-pc-windows*)
37610 INSTALL_TARGET='install_win32'
37611 CC="cl"
37612 CXX="$CC"
37613 #C_OPT="/Zi" # for debugging
37614 C_OPT="/Ox" # optimize for speed
37615 CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
37616 CXXFLAGS="$CFLAGS"
37617 DASH="/"
37618 SLASH="\\"
37619 CXXFP="/Tp"
37620 CFP="/Tc"
37621 OFP="/Fo"
37622 MAKE=nmake
37623 MAKELIB="lib /nologo /subsystem:console /verbose /out:\$@"
37624 RMCOMMAND="-del"
37625 RANLIB="echo"
37626 #L_OPT="/debug" # for debugging
37627 L_OPT="" # no debug info
37628 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /out:\$@ "
37629 LINK_CONSOLE=$LINK
37630 EXE=".exe"
37631 PRIMARY_TARGET="bochs.exe"
37632 BXIMAGE_LINK_OPTS="user32.lib"
37633 # also compile niclist if networking is on
37634 if test "$networking" = yes; then
37635 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37637 COMMAND_SEPARATOR=""
37638 CD_UP_ONE="cd .."
37639 CD_UP_TWO="cd ..\.."
37640 CD_UP_THREE="cd ..\..\.."
37641 have_gettimeofday=0 # even though it may exist in build environment
37642 cat >>confdefs.h <<\_ACEOF
37643 #define BX_64BIT_CONSTANTS_USE_LL 0
37644 _ACEOF
37646 cat >>confdefs.h <<\_ACEOF
37647 #define inline __inline
37648 _ACEOF
37650 cat >>confdefs.h <<\_ACEOF
37651 #define BX_NO_EMPTY_STRUCTS 1
37652 _ACEOF
37654 cat >>confdefs.h <<\_ACEOF
37655 #define BX_NO_ATTRIBUTES 1
37656 _ACEOF
37658 cat >>confdefs.h <<\_ACEOF
37659 #define BX_HAVE_HASH_MAP 0
37660 _ACEOF
37662 cat >>confdefs.h <<\_ACEOF
37663 #define BX_HAVE_HASH_MAP_H 0
37664 _ACEOF
37666 cat >>confdefs.h <<\_ACEOF
37667 #define BX_HAVE_STRTOULL 0
37668 _ACEOF
37670 cat >>confdefs.h <<\_ACEOF
37671 #define BX_HAVE_STRTOUQ 0
37672 _ACEOF
37674 cat >>confdefs.h <<\_ACEOF
37675 #define HAVE_LIBREADLINE 0
37676 _ACEOF
37678 cat >>confdefs.h <<\_ACEOF
37679 #define BX_HAVE_GETTIMEOFDAY 0
37680 _ACEOF
37682 cat >>confdefs.h <<\_ACEOF
37683 #define BX_HAVE_DLFCN_H 0
37684 _ACEOF
37686 cat >>confdefs.h <<\_ACEOF
37687 #define BX_HAVE_MKSTEMP 0
37688 _ACEOF
37690 cat >>confdefs.h <<\_ACEOF
37691 #define BX_HAVE_SYS_MMAN_H 0
37692 _ACEOF
37694 cat >>confdefs.h <<\_ACEOF
37695 #define BX_HAVE_USLEEP 0
37696 _ACEOF
37698 cat >>confdefs.h <<\_ACEOF
37699 #define HAVE_ETHERTAP 0
37700 _ACEOF
37702 cat >>confdefs.h <<\_ACEOF
37703 #define BX_HAVE_SELECT 1
37704 _ACEOF
37706 cat >>confdefs.h <<\_ACEOF
37707 #define BX_HAVE_SOCKLEN_T 0
37708 _ACEOF
37711 *-pc-cygwin*)
37712 EXE=".exe"
37713 PRIMARY_TARGET="bochs.exe"
37714 BXIMAGE_LINK_OPTS="-luser32"
37715 if test "$networking" = yes; then
37716 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37718 cat >>confdefs.h <<\_ACEOF
37719 #define BX_HAVE_SELECT 1
37720 _ACEOF
37723 *-pc-mingw*)
37724 BXIMAGE_LINK_OPTS="-luser32"
37725 if test "$networking" = yes; then
37726 PRIMARY_TARGET="$PRIMARY_TARGET niclist"
37728 cat >>confdefs.h <<\_ACEOF
37729 #define BX_HAVE_SELECT 1
37730 _ACEOF
37733 *-beos*)
37734 PRIMARY_TARGET=.bochs_beos_target
37736 esac
37738 DIALOG_OBJS=""
37739 EXPORT_DYNAMIC="-export-dynamic"
37740 case $target in
37741 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
37742 if test "$bx_plugins" = 1; then
37743 { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
37744 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
37745 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
37746 echo $ECHO_N "(cached) $ECHO_C" >&6
37747 else
37748 ac_check_lib_save_LIBS=$LIBS
37749 LIBS="-lmingwex $LIBS"
37750 cat >conftest.$ac_ext <<_ACEOF
37751 /* confdefs.h. */
37752 _ACEOF
37753 cat confdefs.h >>conftest.$ac_ext
37754 cat >>conftest.$ac_ext <<_ACEOF
37755 /* end confdefs.h. */
37757 /* Override any GCC internal prototype to avoid an error.
37758 Use char because int might match the return type of a GCC
37759 builtin and then its argument prototype would still apply. */
37760 #ifdef __cplusplus
37761 extern "C"
37762 #endif
37763 char opendir ();
37765 main ()
37767 return opendir ();
37769 return 0;
37771 _ACEOF
37772 rm -f conftest.$ac_objext conftest$ac_exeext
37773 if { (ac_try="$ac_link"
37774 case "(($ac_try" in
37775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37776 *) ac_try_echo=$ac_try;;
37777 esac
37778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37779 (eval "$ac_link") 2>conftest.er1
37780 ac_status=$?
37781 grep -v '^ *+' conftest.er1 >conftest.err
37782 rm -f conftest.er1
37783 cat conftest.err >&5
37784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785 (exit $ac_status); } && {
37786 test -z "$ac_c_werror_flag" ||
37787 test ! -s conftest.err
37788 } && test -s conftest$ac_exeext &&
37789 $as_test_x conftest$ac_exeext; then
37790 ac_cv_lib_mingwex_opendir=yes
37791 else
37792 echo "$as_me: failed program was:" >&5
37793 sed 's/^/| /' conftest.$ac_ext >&5
37795 ac_cv_lib_mingwex_opendir=no
37798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37799 conftest$ac_exeext conftest.$ac_ext
37800 LIBS=$ac_check_lib_save_LIBS
37802 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
37803 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
37804 if test $ac_cv_lib_mingwex_opendir = yes; then
37805 LIBS="$LIBS -lmingwex"
37808 # set variables for building DLL plugins
37809 PRIMARY_TARGET=".win32_dll_plugin_target"
37810 PLUGIN_LIBNAME_TRANSFORMATION='%.o=bx_%.dll'
37811 INSTALL_PLUGINS_VAR=install_dll_plugins
37812 else
37813 if test "$with_win32" != yes; then
37814 LIBS="$LIBS -lcomctl32"
37817 DIALOG_OBJS="win32dialog.o"
37818 EXPORT_DYNAMIC=""
37820 esac
37824 if test "$use_curses" = yes -a "$cross_configure" = 0; then
37825 { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
37826 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
37827 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
37828 echo $ECHO_N "(cached) $ECHO_C" >&6
37829 else
37830 ac_check_lib_save_LIBS=$LIBS
37831 LIBS="-lcurses $LIBS"
37832 cat >conftest.$ac_ext <<_ACEOF
37833 /* confdefs.h. */
37834 _ACEOF
37835 cat confdefs.h >>conftest.$ac_ext
37836 cat >>conftest.$ac_ext <<_ACEOF
37837 /* end confdefs.h. */
37839 /* Override any GCC internal prototype to avoid an error.
37840 Use char because int might match the return type of a GCC
37841 builtin and then its argument prototype would still apply. */
37842 #ifdef __cplusplus
37843 extern "C"
37844 #endif
37845 char mvaddch ();
37847 main ()
37849 return mvaddch ();
37851 return 0;
37853 _ACEOF
37854 rm -f conftest.$ac_objext conftest$ac_exeext
37855 if { (ac_try="$ac_link"
37856 case "(($ac_try" in
37857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37858 *) ac_try_echo=$ac_try;;
37859 esac
37860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37861 (eval "$ac_link") 2>conftest.er1
37862 ac_status=$?
37863 grep -v '^ *+' conftest.er1 >conftest.err
37864 rm -f conftest.er1
37865 cat conftest.err >&5
37866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); } && {
37868 test -z "$ac_c_werror_flag" ||
37869 test ! -s conftest.err
37870 } && test -s conftest$ac_exeext &&
37871 $as_test_x conftest$ac_exeext; then
37872 ac_cv_lib_curses_mvaddch=yes
37873 else
37874 echo "$as_me: failed program was:" >&5
37875 sed 's/^/| /' conftest.$ac_ext >&5
37877 ac_cv_lib_curses_mvaddch=no
37880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37881 conftest$ac_exeext conftest.$ac_ext
37882 LIBS=$ac_check_lib_save_LIBS
37884 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
37885 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
37886 if test $ac_cv_lib_curses_mvaddch = yes; then
37887 GUI_LINK_OPTS_TERM='-lcurses'
37890 { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
37891 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
37892 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
37893 echo $ECHO_N "(cached) $ECHO_C" >&6
37894 else
37895 ac_check_lib_save_LIBS=$LIBS
37896 LIBS="-lncurses $LIBS"
37897 cat >conftest.$ac_ext <<_ACEOF
37898 /* confdefs.h. */
37899 _ACEOF
37900 cat confdefs.h >>conftest.$ac_ext
37901 cat >>conftest.$ac_ext <<_ACEOF
37902 /* end confdefs.h. */
37904 /* Override any GCC internal prototype to avoid an error.
37905 Use char because int might match the return type of a GCC
37906 builtin and then its argument prototype would still apply. */
37907 #ifdef __cplusplus
37908 extern "C"
37909 #endif
37910 char mvaddch ();
37912 main ()
37914 return mvaddch ();
37916 return 0;
37918 _ACEOF
37919 rm -f conftest.$ac_objext conftest$ac_exeext
37920 if { (ac_try="$ac_link"
37921 case "(($ac_try" in
37922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37923 *) ac_try_echo=$ac_try;;
37924 esac
37925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37926 (eval "$ac_link") 2>conftest.er1
37927 ac_status=$?
37928 grep -v '^ *+' conftest.er1 >conftest.err
37929 rm -f conftest.er1
37930 cat conftest.err >&5
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); } && {
37933 test -z "$ac_c_werror_flag" ||
37934 test ! -s conftest.err
37935 } && test -s conftest$ac_exeext &&
37936 $as_test_x conftest$ac_exeext; then
37937 ac_cv_lib_ncurses_mvaddch=yes
37938 else
37939 echo "$as_me: failed program was:" >&5
37940 sed 's/^/| /' conftest.$ac_ext >&5
37942 ac_cv_lib_ncurses_mvaddch=no
37945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37946 conftest$ac_exeext conftest.$ac_ext
37947 LIBS=$ac_check_lib_save_LIBS
37949 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
37950 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
37951 if test $ac_cv_lib_ncurses_mvaddch = yes; then
37952 GUI_LINK_OPTS_TERM='-lncurses'
37955 { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
37956 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
37957 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
37958 echo $ECHO_N "(cached) $ECHO_C" >&6
37959 else
37960 ac_check_lib_save_LIBS=$LIBS
37961 LIBS="-ltermlib $LIBS"
37962 cat >conftest.$ac_ext <<_ACEOF
37963 /* confdefs.h. */
37964 _ACEOF
37965 cat confdefs.h >>conftest.$ac_ext
37966 cat >>conftest.$ac_ext <<_ACEOF
37967 /* end confdefs.h. */
37969 /* Override any GCC internal prototype to avoid an error.
37970 Use char because int might match the return type of a GCC
37971 builtin and then its argument prototype would still apply. */
37972 #ifdef __cplusplus
37973 extern "C"
37974 #endif
37975 char mvaddch ();
37977 main ()
37979 return mvaddch ();
37981 return 0;
37983 _ACEOF
37984 rm -f conftest.$ac_objext conftest$ac_exeext
37985 if { (ac_try="$ac_link"
37986 case "(($ac_try" in
37987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37988 *) ac_try_echo=$ac_try;;
37989 esac
37990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37991 (eval "$ac_link") 2>conftest.er1
37992 ac_status=$?
37993 grep -v '^ *+' conftest.er1 >conftest.err
37994 rm -f conftest.er1
37995 cat conftest.err >&5
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); } && {
37998 test -z "$ac_c_werror_flag" ||
37999 test ! -s conftest.err
38000 } && test -s conftest$ac_exeext &&
38001 $as_test_x conftest$ac_exeext; then
38002 ac_cv_lib_termlib_mvaddch=yes
38003 else
38004 echo "$as_me: failed program was:" >&5
38005 sed 's/^/| /' conftest.$ac_ext >&5
38007 ac_cv_lib_termlib_mvaddch=no
38010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38011 conftest$ac_exeext conftest.$ac_ext
38012 LIBS=$ac_check_lib_save_LIBS
38014 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
38015 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
38016 if test $ac_cv_lib_termlib_mvaddch = yes; then
38017 GUI_LINK_OPTS_TERM='-ltermlib'
38020 { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
38021 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
38022 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
38023 echo $ECHO_N "(cached) $ECHO_C" >&6
38024 else
38025 ac_check_lib_save_LIBS=$LIBS
38026 LIBS="-lpdcurses $LIBS"
38027 cat >conftest.$ac_ext <<_ACEOF
38028 /* confdefs.h. */
38029 _ACEOF
38030 cat confdefs.h >>conftest.$ac_ext
38031 cat >>conftest.$ac_ext <<_ACEOF
38032 /* end confdefs.h. */
38034 /* Override any GCC internal prototype to avoid an error.
38035 Use char because int might match the return type of a GCC
38036 builtin and then its argument prototype would still apply. */
38037 #ifdef __cplusplus
38038 extern "C"
38039 #endif
38040 char mvaddch ();
38042 main ()
38044 return mvaddch ();
38046 return 0;
38048 _ACEOF
38049 rm -f conftest.$ac_objext conftest$ac_exeext
38050 if { (ac_try="$ac_link"
38051 case "(($ac_try" in
38052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38053 *) ac_try_echo=$ac_try;;
38054 esac
38055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38056 (eval "$ac_link") 2>conftest.er1
38057 ac_status=$?
38058 grep -v '^ *+' conftest.er1 >conftest.err
38059 rm -f conftest.er1
38060 cat conftest.err >&5
38061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062 (exit $ac_status); } && {
38063 test -z "$ac_c_werror_flag" ||
38064 test ! -s conftest.err
38065 } && test -s conftest$ac_exeext &&
38066 $as_test_x conftest$ac_exeext; then
38067 ac_cv_lib_pdcurses_mvaddch=yes
38068 else
38069 echo "$as_me: failed program was:" >&5
38070 sed 's/^/| /' conftest.$ac_ext >&5
38072 ac_cv_lib_pdcurses_mvaddch=no
38075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38076 conftest$ac_exeext conftest.$ac_ext
38077 LIBS=$ac_check_lib_save_LIBS
38079 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
38080 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
38081 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
38082 GUI_LINK_OPTS_TERM='-lpdcurses'
38085 if test "$GUI_LINK_OPTS_TERM" = ""; then
38086 echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
38087 exit 1
38091 if test "$with_term" = yes; then
38092 old_LIBS="$LIBS"
38093 LIBS="$LIBS $GUI_LINK_OPTS_TERM"
38095 for ac_func in color_set
38097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38101 echo $ECHO_N "(cached) $ECHO_C" >&6
38102 else
38103 cat >conftest.$ac_ext <<_ACEOF
38104 /* confdefs.h. */
38105 _ACEOF
38106 cat confdefs.h >>conftest.$ac_ext
38107 cat >>conftest.$ac_ext <<_ACEOF
38108 /* end confdefs.h. */
38109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38111 #define $ac_func innocuous_$ac_func
38113 /* System header to define __stub macros and hopefully few prototypes,
38114 which can conflict with char $ac_func (); below.
38115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38116 <limits.h> exists even on freestanding compilers. */
38118 #ifdef __STDC__
38119 # include <limits.h>
38120 #else
38121 # include <assert.h>
38122 #endif
38124 #undef $ac_func
38126 /* Override any GCC internal prototype to avoid an error.
38127 Use char because int might match the return type of a GCC
38128 builtin and then its argument prototype would still apply. */
38129 #ifdef __cplusplus
38130 extern "C"
38131 #endif
38132 char $ac_func ();
38133 /* The GNU C library defines this for functions which it implements
38134 to always fail with ENOSYS. Some functions are actually named
38135 something starting with __ and the normal name is an alias. */
38136 #if defined __stub_$ac_func || defined __stub___$ac_func
38137 choke me
38138 #endif
38141 main ()
38143 return $ac_func ();
38145 return 0;
38147 _ACEOF
38148 rm -f conftest.$ac_objext conftest$ac_exeext
38149 if { (ac_try="$ac_link"
38150 case "(($ac_try" in
38151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38152 *) ac_try_echo=$ac_try;;
38153 esac
38154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38155 (eval "$ac_link") 2>conftest.er1
38156 ac_status=$?
38157 grep -v '^ *+' conftest.er1 >conftest.err
38158 rm -f conftest.er1
38159 cat conftest.err >&5
38160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161 (exit $ac_status); } && {
38162 test -z "$ac_c_werror_flag" ||
38163 test ! -s conftest.err
38164 } && test -s conftest$ac_exeext &&
38165 $as_test_x conftest$ac_exeext; then
38166 eval "$as_ac_var=yes"
38167 else
38168 echo "$as_me: failed program was:" >&5
38169 sed 's/^/| /' conftest.$ac_ext >&5
38171 eval "$as_ac_var=no"
38174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38175 conftest$ac_exeext conftest.$ac_ext
38177 ac_res=`eval echo '${'$as_ac_var'}'`
38178 { echo "$as_me:$LINENO: result: $ac_res" >&5
38179 echo "${ECHO_T}$ac_res" >&6; }
38180 if test `eval echo '${'$as_ac_var'}'` = yes; then
38181 cat >>confdefs.h <<_ACEOF
38182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38183 _ACEOF
38184 cat >>confdefs.h <<\_ACEOF
38185 #define BX_HAVE_COLOR_SET 1
38186 _ACEOF
38189 done
38192 for ac_func in mvhline
38194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38198 echo $ECHO_N "(cached) $ECHO_C" >&6
38199 else
38200 cat >conftest.$ac_ext <<_ACEOF
38201 /* confdefs.h. */
38202 _ACEOF
38203 cat confdefs.h >>conftest.$ac_ext
38204 cat >>conftest.$ac_ext <<_ACEOF
38205 /* end confdefs.h. */
38206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38208 #define $ac_func innocuous_$ac_func
38210 /* System header to define __stub macros and hopefully few prototypes,
38211 which can conflict with char $ac_func (); below.
38212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38213 <limits.h> exists even on freestanding compilers. */
38215 #ifdef __STDC__
38216 # include <limits.h>
38217 #else
38218 # include <assert.h>
38219 #endif
38221 #undef $ac_func
38223 /* Override any GCC internal prototype to avoid an error.
38224 Use char because int might match the return type of a GCC
38225 builtin and then its argument prototype would still apply. */
38226 #ifdef __cplusplus
38227 extern "C"
38228 #endif
38229 char $ac_func ();
38230 /* The GNU C library defines this for functions which it implements
38231 to always fail with ENOSYS. Some functions are actually named
38232 something starting with __ and the normal name is an alias. */
38233 #if defined __stub_$ac_func || defined __stub___$ac_func
38234 choke me
38235 #endif
38238 main ()
38240 return $ac_func ();
38242 return 0;
38244 _ACEOF
38245 rm -f conftest.$ac_objext conftest$ac_exeext
38246 if { (ac_try="$ac_link"
38247 case "(($ac_try" in
38248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38249 *) ac_try_echo=$ac_try;;
38250 esac
38251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38252 (eval "$ac_link") 2>conftest.er1
38253 ac_status=$?
38254 grep -v '^ *+' conftest.er1 >conftest.err
38255 rm -f conftest.er1
38256 cat conftest.err >&5
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); } && {
38259 test -z "$ac_c_werror_flag" ||
38260 test ! -s conftest.err
38261 } && test -s conftest$ac_exeext &&
38262 $as_test_x conftest$ac_exeext; then
38263 eval "$as_ac_var=yes"
38264 else
38265 echo "$as_me: failed program was:" >&5
38266 sed 's/^/| /' conftest.$ac_ext >&5
38268 eval "$as_ac_var=no"
38271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38272 conftest$ac_exeext conftest.$ac_ext
38274 ac_res=`eval echo '${'$as_ac_var'}'`
38275 { echo "$as_me:$LINENO: result: $ac_res" >&5
38276 echo "${ECHO_T}$ac_res" >&6; }
38277 if test `eval echo '${'$as_ac_var'}'` = yes; then
38278 cat >>confdefs.h <<_ACEOF
38279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38280 _ACEOF
38281 cat >>confdefs.h <<\_ACEOF
38282 #define BX_HAVE_MVHLINE 1
38283 _ACEOF
38286 done
38289 for ac_func in mvvline
38291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38295 echo $ECHO_N "(cached) $ECHO_C" >&6
38296 else
38297 cat >conftest.$ac_ext <<_ACEOF
38298 /* confdefs.h. */
38299 _ACEOF
38300 cat confdefs.h >>conftest.$ac_ext
38301 cat >>conftest.$ac_ext <<_ACEOF
38302 /* end confdefs.h. */
38303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38305 #define $ac_func innocuous_$ac_func
38307 /* System header to define __stub macros and hopefully few prototypes,
38308 which can conflict with char $ac_func (); below.
38309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38310 <limits.h> exists even on freestanding compilers. */
38312 #ifdef __STDC__
38313 # include <limits.h>
38314 #else
38315 # include <assert.h>
38316 #endif
38318 #undef $ac_func
38320 /* Override any GCC internal prototype to avoid an error.
38321 Use char because int might match the return type of a GCC
38322 builtin and then its argument prototype would still apply. */
38323 #ifdef __cplusplus
38324 extern "C"
38325 #endif
38326 char $ac_func ();
38327 /* The GNU C library defines this for functions which it implements
38328 to always fail with ENOSYS. Some functions are actually named
38329 something starting with __ and the normal name is an alias. */
38330 #if defined __stub_$ac_func || defined __stub___$ac_func
38331 choke me
38332 #endif
38335 main ()
38337 return $ac_func ();
38339 return 0;
38341 _ACEOF
38342 rm -f conftest.$ac_objext conftest$ac_exeext
38343 if { (ac_try="$ac_link"
38344 case "(($ac_try" in
38345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38346 *) ac_try_echo=$ac_try;;
38347 esac
38348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38349 (eval "$ac_link") 2>conftest.er1
38350 ac_status=$?
38351 grep -v '^ *+' conftest.er1 >conftest.err
38352 rm -f conftest.er1
38353 cat conftest.err >&5
38354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38355 (exit $ac_status); } && {
38356 test -z "$ac_c_werror_flag" ||
38357 test ! -s conftest.err
38358 } && test -s conftest$ac_exeext &&
38359 $as_test_x conftest$ac_exeext; then
38360 eval "$as_ac_var=yes"
38361 else
38362 echo "$as_me: failed program was:" >&5
38363 sed 's/^/| /' conftest.$ac_ext >&5
38365 eval "$as_ac_var=no"
38368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38369 conftest$ac_exeext conftest.$ac_ext
38371 ac_res=`eval echo '${'$as_ac_var'}'`
38372 { echo "$as_me:$LINENO: result: $ac_res" >&5
38373 echo "${ECHO_T}$ac_res" >&6; }
38374 if test `eval echo '${'$as_ac_var'}'` = yes; then
38375 cat >>confdefs.h <<_ACEOF
38376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38377 _ACEOF
38378 cat >>confdefs.h <<\_ACEOF
38379 #define BX_HAVE_MVVLINE 1
38380 _ACEOF
38383 done
38385 LIBS="$old_LIBS"
38388 if test "$with_rfb" = yes; then
38389 # we need the socket function
38390 case $target in
38391 *-pc-windows*)
38392 # is this okay without a check ?
38393 RFB_LIBS="$RFB_LIBS wsock32.lib"
38394 have_socket=yes
38396 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
38397 # is this okay without a check ?
38398 RFB_LIBS="$RFB_LIBS -lwsock32"
38399 have_socket=yes
38403 for ac_func in socket
38405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38409 echo $ECHO_N "(cached) $ECHO_C" >&6
38410 else
38411 cat >conftest.$ac_ext <<_ACEOF
38412 /* confdefs.h. */
38413 _ACEOF
38414 cat confdefs.h >>conftest.$ac_ext
38415 cat >>conftest.$ac_ext <<_ACEOF
38416 /* end confdefs.h. */
38417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38419 #define $ac_func innocuous_$ac_func
38421 /* System header to define __stub macros and hopefully few prototypes,
38422 which can conflict with char $ac_func (); below.
38423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38424 <limits.h> exists even on freestanding compilers. */
38426 #ifdef __STDC__
38427 # include <limits.h>
38428 #else
38429 # include <assert.h>
38430 #endif
38432 #undef $ac_func
38434 /* Override any GCC internal prototype to avoid an error.
38435 Use char because int might match the return type of a GCC
38436 builtin and then its argument prototype would still apply. */
38437 #ifdef __cplusplus
38438 extern "C"
38439 #endif
38440 char $ac_func ();
38441 /* The GNU C library defines this for functions which it implements
38442 to always fail with ENOSYS. Some functions are actually named
38443 something starting with __ and the normal name is an alias. */
38444 #if defined __stub_$ac_func || defined __stub___$ac_func
38445 choke me
38446 #endif
38449 main ()
38451 return $ac_func ();
38453 return 0;
38455 _ACEOF
38456 rm -f conftest.$ac_objext conftest$ac_exeext
38457 if { (ac_try="$ac_link"
38458 case "(($ac_try" in
38459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38460 *) ac_try_echo=$ac_try;;
38461 esac
38462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38463 (eval "$ac_link") 2>conftest.er1
38464 ac_status=$?
38465 grep -v '^ *+' conftest.er1 >conftest.err
38466 rm -f conftest.er1
38467 cat conftest.err >&5
38468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469 (exit $ac_status); } && {
38470 test -z "$ac_c_werror_flag" ||
38471 test ! -s conftest.err
38472 } && test -s conftest$ac_exeext &&
38473 $as_test_x conftest$ac_exeext; then
38474 eval "$as_ac_var=yes"
38475 else
38476 echo "$as_me: failed program was:" >&5
38477 sed 's/^/| /' conftest.$ac_ext >&5
38479 eval "$as_ac_var=no"
38482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38483 conftest$ac_exeext conftest.$ac_ext
38485 ac_res=`eval echo '${'$as_ac_var'}'`
38486 { echo "$as_me:$LINENO: result: $ac_res" >&5
38487 echo "${ECHO_T}$ac_res" >&6; }
38488 if test `eval echo '${'$as_ac_var'}'` = yes; then
38489 cat >>confdefs.h <<_ACEOF
38490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38491 _ACEOF
38492 have_socket=yes
38494 done
38496 if test "$have_socket" != yes; then
38497 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38498 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
38499 if test "${ac_cv_lib_socket_socket+set}" = set; then
38500 echo $ECHO_N "(cached) $ECHO_C" >&6
38501 else
38502 ac_check_lib_save_LIBS=$LIBS
38503 LIBS="-lsocket $LIBS"
38504 cat >conftest.$ac_ext <<_ACEOF
38505 /* confdefs.h. */
38506 _ACEOF
38507 cat confdefs.h >>conftest.$ac_ext
38508 cat >>conftest.$ac_ext <<_ACEOF
38509 /* end confdefs.h. */
38511 /* Override any GCC internal prototype to avoid an error.
38512 Use char because int might match the return type of a GCC
38513 builtin and then its argument prototype would still apply. */
38514 #ifdef __cplusplus
38515 extern "C"
38516 #endif
38517 char socket ();
38519 main ()
38521 return socket ();
38523 return 0;
38525 _ACEOF
38526 rm -f conftest.$ac_objext conftest$ac_exeext
38527 if { (ac_try="$ac_link"
38528 case "(($ac_try" in
38529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38530 *) ac_try_echo=$ac_try;;
38531 esac
38532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38533 (eval "$ac_link") 2>conftest.er1
38534 ac_status=$?
38535 grep -v '^ *+' conftest.er1 >conftest.err
38536 rm -f conftest.er1
38537 cat conftest.err >&5
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); } && {
38540 test -z "$ac_c_werror_flag" ||
38541 test ! -s conftest.err
38542 } && test -s conftest$ac_exeext &&
38543 $as_test_x conftest$ac_exeext; then
38544 ac_cv_lib_socket_socket=yes
38545 else
38546 echo "$as_me: failed program was:" >&5
38547 sed 's/^/| /' conftest.$ac_ext >&5
38549 ac_cv_lib_socket_socket=no
38552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38553 conftest$ac_exeext conftest.$ac_ext
38554 LIBS=$ac_check_lib_save_LIBS
38556 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38557 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
38558 if test $ac_cv_lib_socket_socket = yes; then
38560 RFB_LIBS="$RFB_LIBS -lsocket"
38561 have_socket=yes
38567 esac
38568 if test "$have_socket" != yes; then
38569 echo 'ERROR: socket function required for RFB compile'
38570 exit 1
38574 # The ACX_PTHREAD function was written by
38575 # Steven G. Johnson <stevenj@alum.mit.edu> and
38576 # Alejandro Forero Cuervo <bachue@bachue.com>
38577 # I found it in the ac-archive project on Source Forge.
38580 pthread_ok=no
38583 acx_pthread_ok=no
38585 # First, check if the POSIX threads header, pthread.h, is available.
38586 # If it isn't, don't bother looking for the threads libraries.
38587 if test "${ac_cv_header_pthread_h+set}" = set; then
38588 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38589 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38590 if test "${ac_cv_header_pthread_h+set}" = set; then
38591 echo $ECHO_N "(cached) $ECHO_C" >&6
38593 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38594 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38595 else
38596 # Is the header compilable?
38597 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
38598 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
38599 cat >conftest.$ac_ext <<_ACEOF
38600 /* confdefs.h. */
38601 _ACEOF
38602 cat confdefs.h >>conftest.$ac_ext
38603 cat >>conftest.$ac_ext <<_ACEOF
38604 /* end confdefs.h. */
38605 $ac_includes_default
38606 #include <pthread.h>
38607 _ACEOF
38608 rm -f conftest.$ac_objext
38609 if { (ac_try="$ac_compile"
38610 case "(($ac_try" in
38611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38612 *) ac_try_echo=$ac_try;;
38613 esac
38614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38615 (eval "$ac_compile") 2>conftest.er1
38616 ac_status=$?
38617 grep -v '^ *+' conftest.er1 >conftest.err
38618 rm -f conftest.er1
38619 cat conftest.err >&5
38620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621 (exit $ac_status); } && {
38622 test -z "$ac_c_werror_flag" ||
38623 test ! -s conftest.err
38624 } && test -s conftest.$ac_objext; then
38625 ac_header_compiler=yes
38626 else
38627 echo "$as_me: failed program was:" >&5
38628 sed 's/^/| /' conftest.$ac_ext >&5
38630 ac_header_compiler=no
38633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38635 echo "${ECHO_T}$ac_header_compiler" >&6; }
38637 # Is the header present?
38638 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
38639 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
38640 cat >conftest.$ac_ext <<_ACEOF
38641 /* confdefs.h. */
38642 _ACEOF
38643 cat confdefs.h >>conftest.$ac_ext
38644 cat >>conftest.$ac_ext <<_ACEOF
38645 /* end confdefs.h. */
38646 #include <pthread.h>
38647 _ACEOF
38648 if { (ac_try="$ac_cpp conftest.$ac_ext"
38649 case "(($ac_try" in
38650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38651 *) ac_try_echo=$ac_try;;
38652 esac
38653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38655 ac_status=$?
38656 grep -v '^ *+' conftest.er1 >conftest.err
38657 rm -f conftest.er1
38658 cat conftest.err >&5
38659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38660 (exit $ac_status); } >/dev/null && {
38661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38662 test ! -s conftest.err
38663 }; then
38664 ac_header_preproc=yes
38665 else
38666 echo "$as_me: failed program was:" >&5
38667 sed 's/^/| /' conftest.$ac_ext >&5
38669 ac_header_preproc=no
38672 rm -f conftest.err conftest.$ac_ext
38673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38674 echo "${ECHO_T}$ac_header_preproc" >&6; }
38676 # So? What about this header?
38677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38678 yes:no: )
38679 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
38680 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38681 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
38682 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
38683 ac_header_preproc=yes
38685 no:yes:* )
38686 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
38687 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
38688 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
38689 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
38690 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
38691 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
38692 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
38693 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
38694 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
38695 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
38696 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
38697 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
38700 esac
38701 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38702 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38703 if test "${ac_cv_header_pthread_h+set}" = set; then
38704 echo $ECHO_N "(cached) $ECHO_C" >&6
38705 else
38706 ac_cv_header_pthread_h=$ac_header_preproc
38708 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38709 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38712 if test $ac_cv_header_pthread_h = yes; then
38714 else
38715 acx_pthread_ok=noheader
38720 # We must check for the threads library under a number of different
38721 # names; the ordering is very important because some systems
38722 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
38723 # libraries is broken (non-POSIX).
38725 # First of all, check if the user has set any of the PTHREAD_LIBS,
38726 # etcetera environment variables, and if threads linking works using
38727 # them:
38728 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
38729 save_CFLAGS="$CFLAGS"
38730 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38731 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
38732 save_LIBS="$LIBS"
38733 LIBS="$PTHREAD_LIBS $LIBS"
38734 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
38735 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
38736 cat >conftest.$ac_ext <<_ACEOF
38737 /* confdefs.h. */
38738 _ACEOF
38739 cat confdefs.h >>conftest.$ac_ext
38740 cat >>conftest.$ac_ext <<_ACEOF
38741 /* end confdefs.h. */
38743 /* Override any GCC internal prototype to avoid an error.
38744 Use char because int might match the return type of a GCC
38745 builtin and then its argument prototype would still apply. */
38746 #ifdef __cplusplus
38747 extern "C"
38748 #endif
38749 char pthread_join ();
38751 main ()
38753 return pthread_join ();
38755 return 0;
38757 _ACEOF
38758 rm -f conftest.$ac_objext conftest$ac_exeext
38759 if { (ac_try="$ac_link"
38760 case "(($ac_try" in
38761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38762 *) ac_try_echo=$ac_try;;
38763 esac
38764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38765 (eval "$ac_link") 2>conftest.er1
38766 ac_status=$?
38767 grep -v '^ *+' conftest.er1 >conftest.err
38768 rm -f conftest.er1
38769 cat conftest.err >&5
38770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38771 (exit $ac_status); } && {
38772 test -z "$ac_c_werror_flag" ||
38773 test ! -s conftest.err
38774 } && test -s conftest$ac_exeext &&
38775 $as_test_x conftest$ac_exeext; then
38776 acx_pthread_ok=yes
38777 else
38778 echo "$as_me: failed program was:" >&5
38779 sed 's/^/| /' conftest.$ac_ext >&5
38784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38785 conftest$ac_exeext conftest.$ac_ext
38786 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
38787 echo "${ECHO_T}$acx_pthread_ok" >&6; }
38788 if test x"$acx_pthread_ok" = xno; then
38789 PTHREAD_LIBS=""
38790 PTHREAD_CFLAGS=""
38792 LIBS="$save_LIBS"
38793 CFLAGS="$save_CFLAGS"
38796 # Create a list of thread flags to try. Items starting with a "-" are
38797 # C compiler flags, and other items are library names, except for "none"
38798 # which indicates that we try without any flags at all.
38800 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
38802 # The ordering *is* (sometimes) important. Some notes on the
38803 # individual items follow:
38805 # pthreads: AIX (must check this before -lpthread)
38806 # none: in case threads are in libc; should be tried before -Kthread and
38807 # other compiler flags to prevent continual compiler warnings
38808 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
38809 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
38810 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
38811 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
38812 # -pthreads: Solaris/gcc
38813 # -mthreads: Mingw32/gcc, Lynx/gcc
38814 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
38815 # doesn't hurt to check since this sometimes defines pthreads too;
38816 # also defines -D_REENTRANT)
38817 # pthread: Linux, etcetera
38818 # --thread-safe: KAI C++
38820 case "${host_cpu}-${host_os}" in
38821 *solaris*)
38823 # On Solaris (at least, for some versions), libc contains stubbed
38824 # (non-functional) versions of the pthreads routines, so link-based
38825 # tests will erroneously succeed. (We need to link with -pthread or
38826 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
38827 # a function called by this macro, so we could check for that, but
38828 # who knows whether they'll stub that too in a future libc.) So,
38829 # we'll just look for -pthreads and -lpthread first:
38831 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
38833 esac
38835 if test x"$acx_pthread_ok" = xno; then
38836 for flag in $acx_pthread_flags; do
38838 case $flag in
38839 none)
38840 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38841 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38845 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38846 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38847 PTHREAD_CFLAGS="$flag"
38851 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38852 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38853 PTHREAD_LIBS="-l$flag"
38855 esac
38857 save_LIBS="$LIBS"
38858 save_CFLAGS="$CFLAGS"
38859 LIBS="$PTHREAD_LIBS $LIBS"
38860 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38862 # Check for various functions. We must include pthread.h,
38863 # since some functions may be macros. (On the Sequent, we
38864 # need a special flag -Kthread to make this header compile.)
38865 # We check for pthread_join because it is in -lpthread on IRIX
38866 # while pthread_create is in libc. We check for pthread_attr_init
38867 # due to DEC craziness with -lpthreads. We check for
38868 # pthread_cleanup_push because it is one of the few pthread
38869 # functions on Solaris that doesn't have a non-functional libc stub.
38870 # We try pthread_create on general principles.
38871 cat >conftest.$ac_ext <<_ACEOF
38872 /* confdefs.h. */
38873 _ACEOF
38874 cat confdefs.h >>conftest.$ac_ext
38875 cat >>conftest.$ac_ext <<_ACEOF
38876 /* end confdefs.h. */
38877 #include <pthread.h>
38879 main ()
38881 pthread_t th; pthread_join(th, 0);
38882 pthread_attr_init(0); pthread_cleanup_push(0, 0);
38883 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
38885 return 0;
38887 _ACEOF
38888 rm -f conftest.$ac_objext conftest$ac_exeext
38889 if { (ac_try="$ac_link"
38890 case "(($ac_try" in
38891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38892 *) ac_try_echo=$ac_try;;
38893 esac
38894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38895 (eval "$ac_link") 2>conftest.er1
38896 ac_status=$?
38897 grep -v '^ *+' conftest.er1 >conftest.err
38898 rm -f conftest.er1
38899 cat conftest.err >&5
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); } && {
38902 test -z "$ac_c_werror_flag" ||
38903 test ! -s conftest.err
38904 } && test -s conftest$ac_exeext &&
38905 $as_test_x conftest$ac_exeext; then
38906 acx_pthread_ok=yes
38907 else
38908 echo "$as_me: failed program was:" >&5
38909 sed 's/^/| /' conftest.$ac_ext >&5
38914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38915 conftest$ac_exeext conftest.$ac_ext
38917 LIBS="$save_LIBS"
38918 CFLAGS="$save_CFLAGS"
38920 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
38921 echo "${ECHO_T}$acx_pthread_ok" >&6; }
38922 if test "x$acx_pthread_ok" = xyes; then
38923 break;
38926 PTHREAD_LIBS=""
38927 PTHREAD_CFLAGS=""
38928 done
38931 # Various other checks:
38932 if test "x$acx_pthread_ok" = xyes; then
38933 save_LIBS="$LIBS"
38934 LIBS="$PTHREAD_LIBS $LIBS"
38935 save_CFLAGS="$CFLAGS"
38936 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38938 # Detect AIX lossage: threads are created detached by default
38939 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
38940 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
38941 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
38942 cat >conftest.$ac_ext <<_ACEOF
38943 /* confdefs.h. */
38944 _ACEOF
38945 cat confdefs.h >>conftest.$ac_ext
38946 cat >>conftest.$ac_ext <<_ACEOF
38947 /* end confdefs.h. */
38948 #include <pthread.h>
38950 main ()
38952 int attr=PTHREAD_CREATE_JOINABLE;
38954 return 0;
38956 _ACEOF
38957 rm -f conftest.$ac_objext conftest$ac_exeext
38958 if { (ac_try="$ac_link"
38959 case "(($ac_try" in
38960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38961 *) ac_try_echo=$ac_try;;
38962 esac
38963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38964 (eval "$ac_link") 2>conftest.er1
38965 ac_status=$?
38966 grep -v '^ *+' conftest.er1 >conftest.err
38967 rm -f conftest.er1
38968 cat conftest.err >&5
38969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970 (exit $ac_status); } && {
38971 test -z "$ac_c_werror_flag" ||
38972 test ! -s conftest.err
38973 } && test -s conftest$ac_exeext &&
38974 $as_test_x conftest$ac_exeext; then
38975 ok=PTHREAD_CREATE_JOINABLE
38976 else
38977 echo "$as_me: failed program was:" >&5
38978 sed 's/^/| /' conftest.$ac_ext >&5
38980 ok=unknown
38983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38984 conftest$ac_exeext conftest.$ac_ext
38985 if test x"$ok" = xunknown; then
38986 cat >conftest.$ac_ext <<_ACEOF
38987 /* confdefs.h. */
38988 _ACEOF
38989 cat confdefs.h >>conftest.$ac_ext
38990 cat >>conftest.$ac_ext <<_ACEOF
38991 /* end confdefs.h. */
38992 #include <pthread.h>
38994 main ()
38996 int attr=PTHREAD_CREATE_UNDETACHED;
38998 return 0;
39000 _ACEOF
39001 rm -f conftest.$ac_objext conftest$ac_exeext
39002 if { (ac_try="$ac_link"
39003 case "(($ac_try" in
39004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39005 *) ac_try_echo=$ac_try;;
39006 esac
39007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39008 (eval "$ac_link") 2>conftest.er1
39009 ac_status=$?
39010 grep -v '^ *+' conftest.er1 >conftest.err
39011 rm -f conftest.er1
39012 cat conftest.err >&5
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); } && {
39015 test -z "$ac_c_werror_flag" ||
39016 test ! -s conftest.err
39017 } && test -s conftest$ac_exeext &&
39018 $as_test_x conftest$ac_exeext; then
39019 ok=PTHREAD_CREATE_UNDETACHED
39020 else
39021 echo "$as_me: failed program was:" >&5
39022 sed 's/^/| /' conftest.$ac_ext >&5
39024 ok=unknown
39027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39028 conftest$ac_exeext conftest.$ac_ext
39030 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
39032 cat >>confdefs.h <<\_ACEOF
39033 #define PTHREAD_CREATE_JOINABLE $ok
39034 _ACEOF
39037 { echo "$as_me:$LINENO: result: ${ok}" >&5
39038 echo "${ECHO_T}${ok}" >&6; }
39039 if test x"$ok" = xunknown; then
39040 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
39041 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
39044 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39045 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39046 flag=no
39047 case "${host_cpu}-${host_os}" in
39048 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
39049 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
39050 esac
39051 { echo "$as_me:$LINENO: result: ${flag}" >&5
39052 echo "${ECHO_T}${flag}" >&6; }
39053 if test "x$flag" != xno; then
39054 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
39057 LIBS="$save_LIBS"
39058 CFLAGS="$save_CFLAGS"
39060 # More AIX lossage: must compile with cc_r
39061 # Extract the first word of "cc_r", so it can be a program name with args.
39062 set dummy cc_r; ac_word=$2
39063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39065 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
39066 echo $ECHO_N "(cached) $ECHO_C" >&6
39067 else
39068 if test -n "$PTHREAD_CC"; then
39069 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
39070 else
39071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39072 for as_dir in $PATH
39074 IFS=$as_save_IFS
39075 test -z "$as_dir" && as_dir=.
39076 for ac_exec_ext in '' $ac_executable_extensions; do
39077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39078 ac_cv_prog_PTHREAD_CC="cc_r"
39079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39080 break 2
39082 done
39083 done
39084 IFS=$as_save_IFS
39086 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
39089 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
39090 if test -n "$PTHREAD_CC"; then
39091 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
39092 echo "${ECHO_T}$PTHREAD_CC" >&6; }
39093 else
39094 { echo "$as_me:$LINENO: result: no" >&5
39095 echo "${ECHO_T}no" >&6; }
39099 else
39100 PTHREAD_CC="$CC"
39107 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
39108 if test x"$acx_pthread_ok" = xyes; then
39110 pthread_ok=yes
39111 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
39112 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
39113 #echo Using PTHREAD_CC=$PTHREAD_CC
39116 else
39117 acx_pthread_ok=no
39124 # since RFB (usually) needs pthread library, check that it was found.
39125 # But on win32 platforms, the pthread library is not needed.
39126 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
39127 if test "$pthread_ok" = yes; then
39128 RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
39129 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39130 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
39131 CC="$PTHREAD_CC"
39132 else
39133 case "$target" in
39134 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
39135 # pthread not needed for win32 platform
39138 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
39139 esac
39144 { echo "$as_me:$LINENO: checking for magic breakpoints (deprecated)" >&5
39145 echo $ECHO_N "checking for magic breakpoints (deprecated)... $ECHO_C" >&6; }
39146 # Check whether --enable-magic-breakpoints was given.
39147 if test "${enable_magic_breakpoints+set}" = set; then
39148 enableval=$enable_magic_breakpoints; { echo "$as_me:$LINENO: result: $enableval" >&5
39149 echo "${ECHO_T}$enableval" >&6; }
39150 { { echo "$as_me:$LINENO: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&5
39151 echo "$as_me: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&2;}
39152 { (exit 1); exit 1; }; }
39154 else
39156 { echo "$as_me:$LINENO: result: no" >&5
39157 echo "${ECHO_T}no" >&6; }
39162 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
39163 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
39164 # Check whether --enable-save-restore was given.
39165 if test "${enable_save_restore+set}" = set; then
39166 enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
39167 echo "${ECHO_T}$enableval" >&6; }
39168 { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
39169 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
39170 { (exit 1); exit 1; }; }
39172 else
39174 { echo "$as_me:$LINENO: result: no" >&5
39175 echo "${ECHO_T}no" >&6; }
39180 # Create some subdirectories for when you run configure from some other
39181 # directory.
39182 if test ! -d instrument; then mkdir instrument; fi
39183 if test ! -d build; then mkdir build; fi
39184 if test ! -d build/linux; then mkdir build/linux; fi
39185 if test ! -d build/win32; then mkdir build/win32; fi
39186 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
39226 # Extract the first word of "gzip", so it can be a program name with args.
39227 set dummy gzip; ac_word=$2
39228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39230 if test "${ac_cv_path_GZIP+set}" = set; then
39231 echo $ECHO_N "(cached) $ECHO_C" >&6
39232 else
39233 case $GZIP in
39234 [\\/]* | ?:[\\/]*)
39235 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
39238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39239 for as_dir in $PATH
39241 IFS=$as_save_IFS
39242 test -z "$as_dir" && as_dir=.
39243 for ac_exec_ext in '' $ac_executable_extensions; do
39244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39245 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
39246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39247 break 2
39249 done
39250 done
39251 IFS=$as_save_IFS
39254 esac
39256 GZIP=$ac_cv_path_GZIP
39257 if test -n "$GZIP"; then
39258 { echo "$as_me:$LINENO: result: $GZIP" >&5
39259 echo "${ECHO_T}$GZIP" >&6; }
39260 else
39261 { echo "$as_me:$LINENO: result: no" >&5
39262 echo "${ECHO_T}no" >&6; }
39266 # Extract the first word of "tar", so it can be a program name with args.
39267 set dummy tar; ac_word=$2
39268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39270 if test "${ac_cv_path_TAR+set}" = set; then
39271 echo $ECHO_N "(cached) $ECHO_C" >&6
39272 else
39273 case $TAR in
39274 [\\/]* | ?:[\\/]*)
39275 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
39278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39279 for as_dir in $PATH
39281 IFS=$as_save_IFS
39282 test -z "$as_dir" && as_dir=.
39283 for ac_exec_ext in '' $ac_executable_extensions; do
39284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39285 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
39286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39287 break 2
39289 done
39290 done
39291 IFS=$as_save_IFS
39294 esac
39296 TAR=$ac_cv_path_TAR
39297 if test -n "$TAR"; then
39298 { echo "$as_me:$LINENO: result: $TAR" >&5
39299 echo "${ECHO_T}$TAR" >&6; }
39300 else
39301 { echo "$as_me:$LINENO: result: no" >&5
39302 echo "${ECHO_T}no" >&6; }
39307 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"
39309 cat >confcache <<\_ACEOF
39310 # This file is a shell script that caches the results of configure
39311 # tests run on this system so they can be shared between configure
39312 # scripts and configure runs, see configure's option --config-cache.
39313 # It is not useful on other systems. If it contains results you don't
39314 # want to keep, you may remove or edit it.
39316 # config.status only pays attention to the cache file if you give it
39317 # the --recheck option to rerun configure.
39319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39321 # following values.
39323 _ACEOF
39325 # The following way of writing the cache mishandles newlines in values,
39326 # but we know of no workaround that is simple, portable, and efficient.
39327 # So, we kill variables containing newlines.
39328 # Ultrix sh set writes to stderr and can't be redirected directly,
39329 # and sets the high bit in the cache file unless we assign to the vars.
39331 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39332 eval ac_val=\$$ac_var
39333 case $ac_val in #(
39334 *${as_nl}*)
39335 case $ac_var in #(
39336 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39337 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39338 esac
39339 case $ac_var in #(
39340 _ | IFS | as_nl) ;; #(
39341 *) $as_unset $ac_var ;;
39342 esac ;;
39343 esac
39344 done
39346 (set) 2>&1 |
39347 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39348 *${as_nl}ac_space=\ *)
39349 # `set' does not quote correctly, so add quotes (double-quote
39350 # substitution turns \\\\ into \\, and sed turns \\ into \).
39351 sed -n \
39352 "s/'/'\\\\''/g;
39353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39354 ;; #(
39356 # `set' quotes correctly as required by POSIX, so do not add quotes.
39357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39359 esac |
39360 sort
39362 sed '
39363 /^ac_cv_env_/b end
39364 t clear
39365 :clear
39366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39367 t end
39368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39369 :end' >>confcache
39370 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39371 if test -w "$cache_file"; then
39372 test "x$cache_file" != "x/dev/null" &&
39373 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39374 echo "$as_me: updating cache $cache_file" >&6;}
39375 cat confcache >$cache_file
39376 else
39377 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39378 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39381 rm -f confcache
39383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39384 # Let make expand exec_prefix.
39385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39387 DEFS=-DHAVE_CONFIG_H
39389 ac_libobjs=
39390 ac_ltlibobjs=
39391 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39392 # 1. Remove the extension, and $U if already installed.
39393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39394 ac_i=`echo "$ac_i" | sed "$ac_script"`
39395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39396 # will be set to the directory where LIBOBJS objects are built.
39397 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39398 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39399 done
39400 LIBOBJS=$ac_libobjs
39402 LTLIBOBJS=$ac_ltlibobjs
39406 : ${CONFIG_STATUS=./config.status}
39407 ac_clean_files_save=$ac_clean_files
39408 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39409 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39410 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39411 cat >$CONFIG_STATUS <<_ACEOF
39412 #! $SHELL
39413 # Generated by $as_me.
39414 # Run this file to recreate the current configuration.
39415 # Compiler output produced by configure, useful for debugging
39416 # configure, is in config.log if it exists.
39418 debug=false
39419 ac_cs_recheck=false
39420 ac_cs_silent=false
39421 SHELL=\${CONFIG_SHELL-$SHELL}
39422 _ACEOF
39424 cat >>$CONFIG_STATUS <<\_ACEOF
39425 ## --------------------- ##
39426 ## M4sh Initialization. ##
39427 ## --------------------- ##
39429 # Be more Bourne compatible
39430 DUALCASE=1; export DUALCASE # for MKS sh
39431 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39432 emulate sh
39433 NULLCMD=:
39434 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39435 # is contrary to our usage. Disable this feature.
39436 alias -g '${1+"$@"}'='"$@"'
39437 setopt NO_GLOB_SUBST
39438 else
39439 case `(set -o) 2>/dev/null` in
39440 *posix*) set -o posix ;;
39441 esac
39448 # PATH needs CR
39449 # Avoid depending upon Character Ranges.
39450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39453 as_cr_digits='0123456789'
39454 as_cr_alnum=$as_cr_Letters$as_cr_digits
39456 # The user is always right.
39457 if test "${PATH_SEPARATOR+set}" != set; then
39458 echo "#! /bin/sh" >conf$$.sh
39459 echo "exit 0" >>conf$$.sh
39460 chmod +x conf$$.sh
39461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39462 PATH_SEPARATOR=';'
39463 else
39464 PATH_SEPARATOR=:
39466 rm -f conf$$.sh
39469 # Support unset when possible.
39470 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39471 as_unset=unset
39472 else
39473 as_unset=false
39477 # IFS
39478 # We need space, tab and new line, in precisely that order. Quoting is
39479 # there to prevent editors from complaining about space-tab.
39480 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39481 # splitting by setting IFS to empty value.)
39482 as_nl='
39484 IFS=" "" $as_nl"
39486 # Find who we are. Look in the path if we contain no directory separator.
39487 case $0 in
39488 *[\\/]* ) as_myself=$0 ;;
39489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39490 for as_dir in $PATH
39492 IFS=$as_save_IFS
39493 test -z "$as_dir" && as_dir=.
39494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39495 done
39496 IFS=$as_save_IFS
39499 esac
39500 # We did not find ourselves, most probably we were run as `sh COMMAND'
39501 # in which case we are not to be found in the path.
39502 if test "x$as_myself" = x; then
39503 as_myself=$0
39505 if test ! -f "$as_myself"; then
39506 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39507 { (exit 1); exit 1; }
39510 # Work around bugs in pre-3.0 UWIN ksh.
39511 for as_var in ENV MAIL MAILPATH
39512 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39513 done
39514 PS1='$ '
39515 PS2='> '
39516 PS4='+ '
39518 # NLS nuisances.
39519 for as_var in \
39520 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39521 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39522 LC_TELEPHONE LC_TIME
39524 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39525 eval $as_var=C; export $as_var
39526 else
39527 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39529 done
39531 # Required to use basename.
39532 if expr a : '\(a\)' >/dev/null 2>&1 &&
39533 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39534 as_expr=expr
39535 else
39536 as_expr=false
39539 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39540 as_basename=basename
39541 else
39542 as_basename=false
39546 # Name of the executable.
39547 as_me=`$as_basename -- "$0" ||
39548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39549 X"$0" : 'X\(//\)$' \| \
39550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39551 echo X/"$0" |
39552 sed '/^.*\/\([^/][^/]*\)\/*$/{
39553 s//\1/
39556 /^X\/\(\/\/\)$/{
39557 s//\1/
39560 /^X\/\(\/\).*/{
39561 s//\1/
39564 s/.*/./; q'`
39566 # CDPATH.
39567 $as_unset CDPATH
39571 as_lineno_1=$LINENO
39572 as_lineno_2=$LINENO
39573 test "x$as_lineno_1" != "x$as_lineno_2" &&
39574 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39576 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39577 # uniformly replaced by the line number. The first 'sed' inserts a
39578 # line-number line after each line using $LINENO; the second 'sed'
39579 # does the real work. The second script uses 'N' to pair each
39580 # line-number line with the line containing $LINENO, and appends
39581 # trailing '-' during substitution so that $LINENO is not a special
39582 # case at line end.
39583 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39584 # scripts with optimization help from Paolo Bonzini. Blame Lee
39585 # E. McMahon (1931-1989) for sed's syntax. :-)
39586 sed -n '
39588 /[$]LINENO/=
39589 ' <$as_myself |
39590 sed '
39591 s/[$]LINENO.*/&-/
39592 t lineno
39594 :lineno
39596 :loop
39597 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39598 t loop
39599 s/-\n.*//
39600 ' >$as_me.lineno &&
39601 chmod +x "$as_me.lineno" ||
39602 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39603 { (exit 1); exit 1; }; }
39605 # Don't try to exec as it changes $[0], causing all sort of problems
39606 # (the dirname of $[0] is not the place where we might find the
39607 # original and so on. Autoconf is especially sensitive to this).
39608 . "./$as_me.lineno"
39609 # Exit status is that of the last command.
39610 exit
39614 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39615 as_dirname=dirname
39616 else
39617 as_dirname=false
39620 ECHO_C= ECHO_N= ECHO_T=
39621 case `echo -n x` in
39622 -n*)
39623 case `echo 'x\c'` in
39624 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39625 *) ECHO_C='\c';;
39626 esac;;
39628 ECHO_N='-n';;
39629 esac
39631 if expr a : '\(a\)' >/dev/null 2>&1 &&
39632 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39633 as_expr=expr
39634 else
39635 as_expr=false
39638 rm -f conf$$ conf$$.exe conf$$.file
39639 if test -d conf$$.dir; then
39640 rm -f conf$$.dir/conf$$.file
39641 else
39642 rm -f conf$$.dir
39643 mkdir conf$$.dir
39645 echo >conf$$.file
39646 if ln -s conf$$.file conf$$ 2>/dev/null; then
39647 as_ln_s='ln -s'
39648 # ... but there are two gotchas:
39649 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39650 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39651 # In both cases, we have to default to `cp -p'.
39652 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39653 as_ln_s='cp -p'
39654 elif ln conf$$.file conf$$ 2>/dev/null; then
39655 as_ln_s=ln
39656 else
39657 as_ln_s='cp -p'
39659 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39660 rmdir conf$$.dir 2>/dev/null
39662 if mkdir -p . 2>/dev/null; then
39663 as_mkdir_p=:
39664 else
39665 test -d ./-p && rmdir ./-p
39666 as_mkdir_p=false
39669 if test -x / >/dev/null 2>&1; then
39670 as_test_x='test -x'
39671 else
39672 if ls -dL / >/dev/null 2>&1; then
39673 as_ls_L_option=L
39674 else
39675 as_ls_L_option=
39677 as_test_x='
39678 eval sh -c '\''
39679 if test -d "$1"; then
39680 test -d "$1/.";
39681 else
39682 case $1 in
39683 -*)set "./$1";;
39684 esac;
39685 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39686 ???[sx]*):;;*)false;;esac;fi
39687 '\'' sh
39690 as_executable_p=$as_test_x
39692 # Sed expression to map a string onto a valid CPP name.
39693 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39695 # Sed expression to map a string onto a valid variable name.
39696 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39699 exec 6>&1
39701 # Save the log message, to keep $[0] and so on meaningful, and to
39702 # report actual input values of CONFIG_FILES etc. instead of their
39703 # values after options handling.
39704 ac_log="
39705 This file was extended by $as_me, which was
39706 generated by GNU Autoconf 2.61. Invocation command line was
39708 CONFIG_FILES = $CONFIG_FILES
39709 CONFIG_HEADERS = $CONFIG_HEADERS
39710 CONFIG_LINKS = $CONFIG_LINKS
39711 CONFIG_COMMANDS = $CONFIG_COMMANDS
39712 $ $0 $@
39714 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39717 _ACEOF
39719 cat >>$CONFIG_STATUS <<_ACEOF
39720 # Files that config.status was made for.
39721 config_files="$ac_config_files"
39722 config_headers="$ac_config_headers"
39724 _ACEOF
39726 cat >>$CONFIG_STATUS <<\_ACEOF
39727 ac_cs_usage="\
39728 \`$as_me' instantiates files from templates according to the
39729 current configuration.
39731 Usage: $0 [OPTIONS] [FILE]...
39733 -h, --help print this help, then exit
39734 -V, --version print version number and configuration settings, then exit
39735 -q, --quiet do not print progress messages
39736 -d, --debug don't remove temporary files
39737 --recheck update $as_me by reconfiguring in the same conditions
39738 --file=FILE[:TEMPLATE]
39739 instantiate the configuration file FILE
39740 --header=FILE[:TEMPLATE]
39741 instantiate the configuration header FILE
39743 Configuration files:
39744 $config_files
39746 Configuration headers:
39747 $config_headers
39749 Report bugs to <bug-autoconf@gnu.org>."
39751 _ACEOF
39752 cat >>$CONFIG_STATUS <<_ACEOF
39753 ac_cs_version="\\
39754 config.status
39755 configured by $0, generated by GNU Autoconf 2.61,
39756 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39758 Copyright (C) 2006 Free Software Foundation, Inc.
39759 This config.status script is free software; the Free Software Foundation
39760 gives unlimited permission to copy, distribute and modify it."
39762 ac_pwd='$ac_pwd'
39763 srcdir='$srcdir'
39764 _ACEOF
39766 cat >>$CONFIG_STATUS <<\_ACEOF
39767 # If no file are specified by the user, then we need to provide default
39768 # value. By we need to know if files were specified by the user.
39769 ac_need_defaults=:
39770 while test $# != 0
39772 case $1 in
39773 --*=*)
39774 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39775 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39776 ac_shift=:
39779 ac_option=$1
39780 ac_optarg=$2
39781 ac_shift=shift
39783 esac
39785 case $ac_option in
39786 # Handling of the options.
39787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39788 ac_cs_recheck=: ;;
39789 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39790 echo "$ac_cs_version"; exit ;;
39791 --debug | --debu | --deb | --de | --d | -d )
39792 debug=: ;;
39793 --file | --fil | --fi | --f )
39794 $ac_shift
39795 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39796 ac_need_defaults=false;;
39797 --header | --heade | --head | --hea )
39798 $ac_shift
39799 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39800 ac_need_defaults=false;;
39801 --he | --h)
39802 # Conflict between --help and --header
39803 { echo "$as_me: error: ambiguous option: $1
39804 Try \`$0 --help' for more information." >&2
39805 { (exit 1); exit 1; }; };;
39806 --help | --hel | -h )
39807 echo "$ac_cs_usage"; exit ;;
39808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39809 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39810 ac_cs_silent=: ;;
39812 # This is an error.
39813 -*) { echo "$as_me: error: unrecognized option: $1
39814 Try \`$0 --help' for more information." >&2
39815 { (exit 1); exit 1; }; } ;;
39817 *) ac_config_targets="$ac_config_targets $1"
39818 ac_need_defaults=false ;;
39820 esac
39821 shift
39822 done
39824 ac_configure_extra_args=
39826 if $ac_cs_silent; then
39827 exec 6>/dev/null
39828 ac_configure_extra_args="$ac_configure_extra_args --silent"
39831 _ACEOF
39832 cat >>$CONFIG_STATUS <<_ACEOF
39833 if \$ac_cs_recheck; then
39834 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39835 CONFIG_SHELL=$SHELL
39836 export CONFIG_SHELL
39837 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39840 _ACEOF
39841 cat >>$CONFIG_STATUS <<\_ACEOF
39842 exec 5>>config.log
39844 echo
39845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39846 ## Running $as_me. ##
39847 _ASBOX
39848 echo "$ac_log"
39849 } >&5
39851 _ACEOF
39852 cat >>$CONFIG_STATUS <<_ACEOF
39853 _ACEOF
39855 cat >>$CONFIG_STATUS <<\_ACEOF
39857 # Handling of arguments.
39858 for ac_config_target in $ac_config_targets
39860 case $ac_config_target in
39861 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39862 "ltdlconf.h") CONFIG_HEADERS="$CONFIG_HEADERS ltdlconf.h" ;;
39863 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39864 "iodev/Makefile") CONFIG_FILES="$CONFIG_FILES iodev/Makefile" ;;
39865 "bx_debug/Makefile") CONFIG_FILES="$CONFIG_FILES bx_debug/Makefile" ;;
39866 "bios/Makefile") CONFIG_FILES="$CONFIG_FILES bios/Makefile" ;;
39867 "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
39868 "memory/Makefile") CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
39869 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
39870 "disasm/Makefile") CONFIG_FILES="$CONFIG_FILES disasm/Makefile" ;;
39871 "${INSTRUMENT_DIR}/Makefile") CONFIG_FILES="$CONFIG_FILES ${INSTRUMENT_DIR}/Makefile" ;;
39872 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
39873 "fpu/Makefile") CONFIG_FILES="$CONFIG_FILES fpu/Makefile" ;;
39874 "doc/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/Makefile" ;;
39875 "build/linux/bochs-dlx") CONFIG_FILES="$CONFIG_FILES build/linux/bochs-dlx" ;;
39876 "bxversion.h") CONFIG_FILES="$CONFIG_FILES bxversion.h" ;;
39877 "bxversion.rc") CONFIG_FILES="$CONFIG_FILES bxversion.rc" ;;
39878 "build/macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES build/macosx/Info.plist" ;;
39879 "build/win32/nsis/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/Makefile" ;;
39880 "build/win32/nsis/bochs.nsi") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
39881 "host/linux/pcidev/Makefile") CONFIG_FILES="$CONFIG_FILES host/linux/pcidev/Makefile" ;;
39883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39884 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39885 { (exit 1); exit 1; }; };;
39886 esac
39887 done
39890 # If the user did not use the arguments to specify the items to instantiate,
39891 # then the envvar interface is used. Set only those that are not.
39892 # We use the long form for the default assignment because of an extremely
39893 # bizarre bug on SunOS 4.1.3.
39894 if $ac_need_defaults; then
39895 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39896 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39899 # Have a temporary directory for convenience. Make it in the build tree
39900 # simply because there is no reason against having it here, and in addition,
39901 # creating and moving files from /tmp can sometimes cause problems.
39902 # Hook for its removal unless debugging.
39903 # Note that there is a small window in which the directory will not be cleaned:
39904 # after its creation but before its name has been assigned to `$tmp'.
39905 $debug ||
39907 tmp=
39908 trap 'exit_status=$?
39909 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39911 trap '{ (exit 1); exit 1; }' 1 2 13 15
39913 # Create a (secure) tmp directory for tmp files.
39916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39917 test -n "$tmp" && test -d "$tmp"
39918 } ||
39920 tmp=./conf$$-$RANDOM
39921 (umask 077 && mkdir "$tmp")
39922 } ||
39924 echo "$me: cannot create a temporary directory in ." >&2
39925 { (exit 1); exit 1; }
39929 # Set up the sed scripts for CONFIG_FILES section.
39932 # No need to generate the scripts if there are no CONFIG_FILES.
39933 # This happens for instance when ./config.status config.h
39934 if test -n "$CONFIG_FILES"; then
39936 _ACEOF
39940 ac_delim='%!_!# '
39941 for ac_last_try in false false false false false :; do
39942 cat >conf$$subs.sed <<_ACEOF
39943 SHELL!$SHELL$ac_delim
39944 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39945 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39946 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39947 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39948 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39949 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39950 exec_prefix!$exec_prefix$ac_delim
39951 prefix!$prefix$ac_delim
39952 program_transform_name!$program_transform_name$ac_delim
39953 bindir!$bindir$ac_delim
39954 sbindir!$sbindir$ac_delim
39955 libexecdir!$libexecdir$ac_delim
39956 datarootdir!$datarootdir$ac_delim
39957 datadir!$datadir$ac_delim
39958 sysconfdir!$sysconfdir$ac_delim
39959 sharedstatedir!$sharedstatedir$ac_delim
39960 localstatedir!$localstatedir$ac_delim
39961 includedir!$includedir$ac_delim
39962 oldincludedir!$oldincludedir$ac_delim
39963 docdir!$docdir$ac_delim
39964 infodir!$infodir$ac_delim
39965 htmldir!$htmldir$ac_delim
39966 dvidir!$dvidir$ac_delim
39967 pdfdir!$pdfdir$ac_delim
39968 psdir!$psdir$ac_delim
39969 libdir!$libdir$ac_delim
39970 localedir!$localedir$ac_delim
39971 mandir!$mandir$ac_delim
39972 DEFS!$DEFS$ac_delim
39973 ECHO_C!$ECHO_C$ac_delim
39974 ECHO_N!$ECHO_N$ac_delim
39975 ECHO_T!$ECHO_T$ac_delim
39976 LIBS!$LIBS$ac_delim
39977 build_alias!$build_alias$ac_delim
39978 host_alias!$host_alias$ac_delim
39979 target_alias!$target_alias$ac_delim
39980 build!$build$ac_delim
39981 build_cpu!$build_cpu$ac_delim
39982 build_vendor!$build_vendor$ac_delim
39983 build_os!$build_os$ac_delim
39984 host!$host$ac_delim
39985 host_cpu!$host_cpu$ac_delim
39986 host_vendor!$host_vendor$ac_delim
39987 host_os!$host_os$ac_delim
39988 target!$target$ac_delim
39989 target_cpu!$target_cpu$ac_delim
39990 target_vendor!$target_vendor$ac_delim
39991 target_os!$target_os$ac_delim
39992 CC!$CC$ac_delim
39993 CFLAGS!$CFLAGS$ac_delim
39994 LDFLAGS!$LDFLAGS$ac_delim
39995 CPPFLAGS!$CPPFLAGS$ac_delim
39996 ac_ct_CC!$ac_ct_CC$ac_delim
39997 EXEEXT!$EXEEXT$ac_delim
39998 OBJEXT!$OBJEXT$ac_delim
39999 CXX!$CXX$ac_delim
40000 CXXFLAGS!$CXXFLAGS$ac_delim
40001 ac_ct_CXX!$ac_ct_CXX$ac_delim
40002 SET_MAKE!$SET_MAKE$ac_delim
40003 GREP!$GREP$ac_delim
40004 EGREP!$EGREP$ac_delim
40005 LN_S!$LN_S$ac_delim
40006 ECHO!$ECHO$ac_delim
40007 AR!$AR$ac_delim
40008 RANLIB!$RANLIB$ac_delim
40009 STRIP!$STRIP$ac_delim
40010 CPP!$CPP$ac_delim
40011 CXXCPP!$CXXCPP$ac_delim
40012 F77!$F77$ac_delim
40013 FFLAGS!$FFLAGS$ac_delim
40014 ac_ct_F77!$ac_ct_F77$ac_delim
40015 LIBTOOL!$LIBTOOL$ac_delim
40016 LIBADD_DL!$LIBADD_DL$ac_delim
40017 XMKMF!$XMKMF$ac_delim
40018 X_CFLAGS!$X_CFLAGS$ac_delim
40019 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
40020 X_LIBS!$X_LIBS$ac_delim
40021 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
40022 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
40023 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
40024 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
40025 OBJS64!$OBJS64$ac_delim
40026 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
40027 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
40028 NE2K_OBJS!$NE2K_OBJS$ac_delim
40029 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
40030 PCI_OBJ!$PCI_OBJ$ac_delim
40031 KERNELDIR!$KERNELDIR$ac_delim
40032 LSMOD!$LSMOD$ac_delim
40033 INSMOD!$INSMOD$ac_delim
40034 RMMOD!$RMMOD$ac_delim
40035 DEPMOD!$DEPMOD$ac_delim
40036 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
40037 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
40038 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
40039 SCSI_OBJS!$SCSI_OBJS$ac_delim
40040 _ACEOF
40042 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40043 break
40044 elif $ac_last_try; then
40045 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40046 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40047 { (exit 1); exit 1; }; }
40048 else
40049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40051 done
40053 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40054 if test -n "$ac_eof"; then
40055 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40056 ac_eof=`expr $ac_eof + 1`
40059 cat >>$CONFIG_STATUS <<_ACEOF
40060 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40062 _ACEOF
40063 sed '
40064 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40065 s/^/s,@/; s/!/@,|#_!!_#|/
40068 s/'"$ac_delim"'$/,g/; t
40069 s/$/\\/; p
40070 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40071 ' >>$CONFIG_STATUS <conf$$subs.sed
40072 rm -f conf$$subs.sed
40073 cat >>$CONFIG_STATUS <<_ACEOF
40074 CEOF$ac_eof
40075 _ACEOF
40078 ac_delim='%!_!# '
40079 for ac_last_try in false false false false false :; do
40080 cat >conf$$subs.sed <<_ACEOF
40081 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
40082 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
40083 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
40084 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
40085 BX_EXTERNAL_DEBUGGER!$BX_EXTERNAL_DEBUGGER$ac_delim
40086 DISASM_VAR!$DISASM_VAR$ac_delim
40087 READLINE_LIB!$READLINE_LIB$ac_delim
40088 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
40089 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
40090 FPU_VAR!$FPU_VAR$ac_delim
40091 CDROM_OBJS!$CDROM_OBJS$ac_delim
40092 SB16_OBJS!$SB16_OBJS$ac_delim
40093 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
40094 GAME_OBJS!$GAME_OBJS$ac_delim
40095 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
40096 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
40097 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
40098 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
40099 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
40100 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
40101 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
40102 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
40103 INLINE_VAR!$INLINE_VAR$ac_delim
40104 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
40105 EXT_DEBUG_OBJS!$EXT_DEBUG_OBJS$ac_delim
40106 RC_CMD!$RC_CMD$ac_delim
40107 WX_CONFIG!$WX_CONFIG$ac_delim
40108 XPM_LIB!$XPM_LIB$ac_delim
40109 PKG_CONFIG!$PKG_CONFIG$ac_delim
40110 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
40111 GTK_LIBS!$GTK_LIBS$ac_delim
40112 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
40113 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
40114 WX_CFLAGS!$WX_CFLAGS$ac_delim
40115 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
40116 WGET!$WGET$ac_delim
40117 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
40118 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
40119 PTHREAD_CC!$PTHREAD_CC$ac_delim
40120 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
40121 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
40122 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
40123 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
40124 RFB_LIBS!$RFB_LIBS$ac_delim
40125 GUI_OBJS!$GUI_OBJS$ac_delim
40126 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
40127 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
40128 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
40129 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
40130 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
40131 DASH!$DASH$ac_delim
40132 SLASH!$SLASH$ac_delim
40133 CXXFP!$CXXFP$ac_delim
40134 CFP!$CFP$ac_delim
40135 OFP!$OFP$ac_delim
40136 MAKELIB!$MAKELIB$ac_delim
40137 RMCOMMAND!$RMCOMMAND$ac_delim
40138 LINK!$LINK$ac_delim
40139 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
40140 EXE!$EXE$ac_delim
40141 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
40142 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
40143 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
40144 CD_UP_ONE!$CD_UP_ONE$ac_delim
40145 CD_UP_TWO!$CD_UP_TWO$ac_delim
40146 CD_UP_THREE!$CD_UP_THREE$ac_delim
40147 VERSION!$VERSION$ac_delim
40148 VER_STRING!$VER_STRING$ac_delim
40149 WIN_VER_STRING!$WIN_VER_STRING$ac_delim
40150 REL_STRING!$REL_STRING$ac_delim
40151 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
40152 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
40153 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
40154 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
40155 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
40156 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
40157 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
40158 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
40159 GZIP!$GZIP$ac_delim
40160 TAR!$TAR$ac_delim
40161 LIBOBJS!$LIBOBJS$ac_delim
40162 LTLIBOBJS!$LTLIBOBJS$ac_delim
40163 _ACEOF
40165 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
40166 break
40167 elif $ac_last_try; then
40168 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40169 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40170 { (exit 1); exit 1; }; }
40171 else
40172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40174 done
40176 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40177 if test -n "$ac_eof"; then
40178 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40179 ac_eof=`expr $ac_eof + 1`
40182 cat >>$CONFIG_STATUS <<_ACEOF
40183 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40185 _ACEOF
40186 sed '
40187 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40188 s/^/s,@/; s/!/@,|#_!!_#|/
40191 s/'"$ac_delim"'$/,g/; t
40192 s/$/\\/; p
40193 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40194 ' >>$CONFIG_STATUS <conf$$subs.sed
40195 rm -f conf$$subs.sed
40196 cat >>$CONFIG_STATUS <<_ACEOF
40197 :end
40198 s/|#_!!_#|//g
40199 CEOF$ac_eof
40200 _ACEOF
40203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40205 # trailing colons and then remove the whole line if VPATH becomes empty
40206 # (actually we leave an empty line to preserve line numbers).
40207 if test "x$srcdir" = x.; then
40208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40209 s/:*\$(srcdir):*/:/
40210 s/:*\${srcdir}:*/:/
40211 s/:*@srcdir@:*/:/
40212 s/^\([^=]*=[ ]*\):*/\1/
40213 s/:*$//
40214 s/^[^=]*=[ ]*$//
40218 cat >>$CONFIG_STATUS <<\_ACEOF
40219 fi # test -n "$CONFIG_FILES"
40222 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
40224 case $ac_tag in
40225 :[FHLC]) ac_mode=$ac_tag; continue;;
40226 esac
40227 case $ac_mode$ac_tag in
40228 :[FHL]*:*);;
40229 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40230 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40231 { (exit 1); exit 1; }; };;
40232 :[FH]-) ac_tag=-:-;;
40233 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40234 esac
40235 ac_save_IFS=$IFS
40236 IFS=:
40237 set x $ac_tag
40238 IFS=$ac_save_IFS
40239 shift
40240 ac_file=$1
40241 shift
40243 case $ac_mode in
40244 :L) ac_source=$1;;
40245 :[FH])
40246 ac_file_inputs=
40247 for ac_f
40249 case $ac_f in
40250 -) ac_f="$tmp/stdin";;
40251 *) # Look for the file first in the build tree, then in the source tree
40252 # (if the path is not absolute). The absolute path cannot be DOS-style,
40253 # because $ac_f cannot contain `:'.
40254 test -f "$ac_f" ||
40255 case $ac_f in
40256 [\\/$]*) false;;
40257 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40258 esac ||
40259 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40260 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40261 { (exit 1); exit 1; }; };;
40262 esac
40263 ac_file_inputs="$ac_file_inputs $ac_f"
40264 done
40266 # Let's still pretend it is `configure' which instantiates (i.e., don't
40267 # use $as_me), people would be surprised to read:
40268 # /* config.h. Generated by config.status. */
40269 configure_input="Generated from "`IFS=:
40270 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40271 if test x"$ac_file" != x-; then
40272 configure_input="$ac_file. $configure_input"
40273 { echo "$as_me:$LINENO: creating $ac_file" >&5
40274 echo "$as_me: creating $ac_file" >&6;}
40277 case $ac_tag in
40278 *:-:* | *:-) cat >"$tmp/stdin";;
40279 esac
40281 esac
40283 ac_dir=`$as_dirname -- "$ac_file" ||
40284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40285 X"$ac_file" : 'X\(//\)[^/]' \| \
40286 X"$ac_file" : 'X\(//\)$' \| \
40287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40288 echo X"$ac_file" |
40289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40290 s//\1/
40293 /^X\(\/\/\)[^/].*/{
40294 s//\1/
40297 /^X\(\/\/\)$/{
40298 s//\1/
40301 /^X\(\/\).*/{
40302 s//\1/
40305 s/.*/./; q'`
40306 { as_dir="$ac_dir"
40307 case $as_dir in #(
40308 -*) as_dir=./$as_dir;;
40309 esac
40310 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40311 as_dirs=
40312 while :; do
40313 case $as_dir in #(
40314 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40315 *) as_qdir=$as_dir;;
40316 esac
40317 as_dirs="'$as_qdir' $as_dirs"
40318 as_dir=`$as_dirname -- "$as_dir" ||
40319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40320 X"$as_dir" : 'X\(//\)[^/]' \| \
40321 X"$as_dir" : 'X\(//\)$' \| \
40322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40323 echo X"$as_dir" |
40324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40325 s//\1/
40328 /^X\(\/\/\)[^/].*/{
40329 s//\1/
40332 /^X\(\/\/\)$/{
40333 s//\1/
40336 /^X\(\/\).*/{
40337 s//\1/
40340 s/.*/./; q'`
40341 test -d "$as_dir" && break
40342 done
40343 test -z "$as_dirs" || eval "mkdir $as_dirs"
40344 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40345 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40346 { (exit 1); exit 1; }; }; }
40347 ac_builddir=.
40349 case "$ac_dir" in
40350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40353 # A ".." for each directory in $ac_dir_suffix.
40354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40355 case $ac_top_builddir_sub in
40356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40358 esac ;;
40359 esac
40360 ac_abs_top_builddir=$ac_pwd
40361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40362 # for backward compatibility:
40363 ac_top_builddir=$ac_top_build_prefix
40365 case $srcdir in
40366 .) # We are building in place.
40367 ac_srcdir=.
40368 ac_top_srcdir=$ac_top_builddir_sub
40369 ac_abs_top_srcdir=$ac_pwd ;;
40370 [\\/]* | ?:[\\/]* ) # Absolute name.
40371 ac_srcdir=$srcdir$ac_dir_suffix;
40372 ac_top_srcdir=$srcdir
40373 ac_abs_top_srcdir=$srcdir ;;
40374 *) # Relative name.
40375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40376 ac_top_srcdir=$ac_top_build_prefix$srcdir
40377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40378 esac
40379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40382 case $ac_mode in
40385 # CONFIG_FILE
40388 _ACEOF
40390 cat >>$CONFIG_STATUS <<\_ACEOF
40391 # If the template does not know about datarootdir, expand it.
40392 # FIXME: This hack should be removed a few years after 2.60.
40393 ac_datarootdir_hack=; ac_datarootdir_seen=
40395 case `sed -n '/datarootdir/ {
40399 /@datadir@/p
40400 /@docdir@/p
40401 /@infodir@/p
40402 /@localedir@/p
40403 /@mandir@/p
40404 ' $ac_file_inputs` in
40405 *datarootdir*) ac_datarootdir_seen=yes;;
40406 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40407 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40408 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40409 _ACEOF
40410 cat >>$CONFIG_STATUS <<_ACEOF
40411 ac_datarootdir_hack='
40412 s&@datadir@&$datadir&g
40413 s&@docdir@&$docdir&g
40414 s&@infodir@&$infodir&g
40415 s&@localedir@&$localedir&g
40416 s&@mandir@&$mandir&g
40417 s&\\\${datarootdir}&$datarootdir&g' ;;
40418 esac
40419 _ACEOF
40421 # Neutralize VPATH when `$srcdir' = `.'.
40422 # Shell code in configure.ac might set extrasub.
40423 # FIXME: do we really want to maintain this feature?
40424 cat >>$CONFIG_STATUS <<_ACEOF
40425 sed "$ac_vpsub
40426 $extrasub
40427 _ACEOF
40428 cat >>$CONFIG_STATUS <<\_ACEOF
40430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40431 s&@configure_input@&$configure_input&;t t
40432 s&@top_builddir@&$ac_top_builddir_sub&;t t
40433 s&@srcdir@&$ac_srcdir&;t t
40434 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40435 s&@top_srcdir@&$ac_top_srcdir&;t t
40436 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40437 s&@builddir@&$ac_builddir&;t t
40438 s&@abs_builddir@&$ac_abs_builddir&;t t
40439 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40440 $ac_datarootdir_hack
40441 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40443 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40444 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40446 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40447 which seems to be undefined. Please make sure it is defined." >&5
40448 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40449 which seems to be undefined. Please make sure it is defined." >&2;}
40451 rm -f "$tmp/stdin"
40452 case $ac_file in
40453 -) cat "$tmp/out"; rm -f "$tmp/out";;
40454 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40455 esac
40459 # CONFIG_HEADER
40461 _ACEOF
40463 # Transform confdefs.h into a sed script `conftest.defines', that
40464 # substitutes the proper values into config.h.in to produce config.h.
40465 rm -f conftest.defines conftest.tail
40466 # First, append a space to every undef/define line, to ease matching.
40467 echo 's/$/ /' >conftest.defines
40468 # Then, protect against being on the right side of a sed subst, or in
40469 # an unquoted here document, in config.status. If some macros were
40470 # called several times there might be several #defines for the same
40471 # symbol, which is useless. But do not sort them, since the last
40472 # AC_DEFINE must be honored.
40473 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40474 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40475 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40476 # PARAMS is the parameter list in the macro definition--in most cases, it's
40477 # just an empty string.
40478 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40479 ac_dB='\\)[ (].*,\\1define\\2'
40480 ac_dC=' '
40481 ac_dD=' ,'
40483 uniq confdefs.h |
40484 sed -n '
40485 t rset
40486 :rset
40487 s/^[ ]*#[ ]*define[ ][ ]*//
40488 t ok
40491 s/[\\&,]/\\&/g
40492 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40493 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40494 ' >>conftest.defines
40496 # Remove the space that was appended to ease matching.
40497 # Then replace #undef with comments. This is necessary, for
40498 # example, in the case of _POSIX_SOURCE, which is predefined and required
40499 # on some systems where configure will not decide to define it.
40500 # (The regexp can be short, since the line contains either #define or #undef.)
40501 echo 's/ $//
40502 s,^[ #]*u.*,/* & */,' >>conftest.defines
40504 # Break up conftest.defines:
40505 ac_max_sed_lines=50
40507 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40508 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40509 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40510 # et cetera.
40511 ac_in='$ac_file_inputs'
40512 ac_out='"$tmp/out1"'
40513 ac_nxt='"$tmp/out2"'
40515 while :
40517 # Write a here document:
40518 cat >>$CONFIG_STATUS <<_ACEOF
40519 # First, check the format of the line:
40520 cat >"\$tmp/defines.sed" <<\\CEOF
40521 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40522 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40524 :def
40525 _ACEOF
40526 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40527 echo 'CEOF
40528 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40529 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40530 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40531 grep . conftest.tail >/dev/null || break
40532 rm -f conftest.defines
40533 mv conftest.tail conftest.defines
40534 done
40535 rm -f conftest.defines conftest.tail
40537 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40538 cat >>$CONFIG_STATUS <<\_ACEOF
40539 if test x"$ac_file" != x-; then
40540 echo "/* $configure_input */" >"$tmp/config.h"
40541 cat "$ac_result" >>"$tmp/config.h"
40542 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40543 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40544 echo "$as_me: $ac_file is unchanged" >&6;}
40545 else
40546 rm -f $ac_file
40547 mv "$tmp/config.h" $ac_file
40549 else
40550 echo "/* $configure_input */"
40551 cat "$ac_result"
40553 rm -f "$tmp/out12"
40557 esac
40559 done # for ac_tag
40562 { (exit 0); exit 0; }
40563 _ACEOF
40564 chmod +x $CONFIG_STATUS
40565 ac_clean_files=$ac_clean_files_save
40568 # configure is writing to config.log, and then calls config.status.
40569 # config.status does its own redirection, appending to config.log.
40570 # Unfortunately, on DOS this fails, as config.log is still kept open
40571 # by configure, so config.status won't be able to write to it; its
40572 # output is simply discarded. So we exec the FD to /dev/null,
40573 # effectively closing config.log, so it can be properly (re)opened and
40574 # appended to by config.status. When coming back to configure, we
40575 # need to make the FD available again.
40576 if test "$no_create" != yes; then
40577 ac_cs_success=:
40578 ac_config_status_args=
40579 test "$silent" = yes &&
40580 ac_config_status_args="$ac_config_status_args --quiet"
40581 exec 5>/dev/null
40582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40583 exec 5>>config.log
40584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40585 # would make configure fail if this is the last instruction.
40586 $ac_cs_success || { (exit 1); exit 1; }