2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="Makefile.in"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars
='LTLIBOBJS
743 program_transform_name
755 enable_option_checking
756 enable_maintainer_mode
767 enable_sim_hostendian
769 enable_sim_default_model
770 enable_sim_environment
774 ac_precious_vars
='build_alias
785 # Initialize some variables set by options.
787 ac_init_version
=false
788 ac_unrecognized_opts
=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name
=s
,x
,x
,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir
='${exec_prefix}/bin'
814 sbindir
='${exec_prefix}/sbin'
815 libexecdir
='${exec_prefix}/libexec'
816 datarootdir
='${prefix}/share'
817 datadir
='${datarootdir}'
818 sysconfdir
='${prefix}/etc'
819 sharedstatedir
='${prefix}/com'
820 localstatedir
='${prefix}/var'
821 includedir
='${prefix}/include'
822 oldincludedir
='/usr/include'
823 docdir
='${datarootdir}/doc/${PACKAGE}'
824 infodir
='${datarootdir}/info'
829 libdir
='${exec_prefix}/lib'
830 localedir
='${datarootdir}/locale'
831 mandir
='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\
$ac_option
845 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 # Accept the important Cygnus configure options, so we can diagnose typos.
851 case $ac_dashdash$ac_option in
855 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
857 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
860 -build |
--build |
--buil |
--bui |
--bu)
861 ac_prev
=build_alias
;;
862 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
863 build_alias
=$ac_optarg ;;
865 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
866 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
867 ac_prev
=cache_file
;;
868 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
869 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
870 cache_file
=$ac_optarg ;;
873 cache_file
=config.cache
;;
875 -datadir |
--datadir |
--datadi |
--datad)
877 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
878 datadir
=$ac_optarg ;;
880 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
881 |
--dataroo |
--dataro |
--datar)
882 ac_prev
=datarootdir
;;
883 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
884 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
885 datarootdir
=$ac_optarg ;;
887 -disable-* |
--disable-*)
888 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
891 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
892 { (exit 1); exit 1; }; }
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=no
;;
904 -docdir |
--docdir |
--docdi |
--doc |
--do)
906 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
909 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
911 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
914 -enable-* |
--enable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
919 { (exit 1); exit 1; }; }
920 ac_useropt_orig
=$ac_useropt
921 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep
=', ';;
929 eval enable_
$ac_useropt=\
$ac_optarg ;;
931 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
932 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
933 |
--exec |
--exe |
--ex)
934 ac_prev
=exec_prefix
;;
935 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
936 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
937 |
--exec=* |
--exe=* |
--ex=*)
938 exec_prefix
=$ac_optarg ;;
940 -gas |
--gas |
--ga |
--g)
941 # Obsolete; use --with-gas.
944 -help |
--help |
--hel |
--he |
-h)
946 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
947 ac_init_help
=recursive
;;
948 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
949 ac_init_help
=short
;;
951 -host |
--host |
--hos |
--ho)
952 ac_prev
=host_alias
;;
953 -host=* |
--host=* |
--hos=* |
--ho=*)
954 host_alias
=$ac_optarg ;;
956 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
958 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
960 htmldir
=$ac_optarg ;;
962 -includedir |
--includedir |
--includedi |
--included |
--include \
963 |
--includ |
--inclu |
--incl |
--inc)
964 ac_prev
=includedir
;;
965 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
966 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
967 includedir
=$ac_optarg ;;
969 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
971 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
972 infodir
=$ac_optarg ;;
974 -libdir |
--libdir |
--libdi |
--libd)
976 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
979 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
980 |
--libexe |
--libex |
--libe)
981 ac_prev
=libexecdir
;;
982 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
983 |
--libexe=* |
--libex=* |
--libe=*)
984 libexecdir
=$ac_optarg ;;
986 -localedir |
--localedir |
--localedi |
--localed |
--locale)
988 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
989 localedir
=$ac_optarg ;;
991 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
992 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
993 ac_prev
=localstatedir
;;
994 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
995 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
996 localstatedir
=$ac_optarg ;;
998 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1000 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1001 mandir
=$ac_optarg ;;
1003 -nfp |
--nfp |
--nf)
1004 # Obsolete; use --without-fp.
1007 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1008 |
--no-cr |
--no-c |
-n)
1011 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1012 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1015 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1016 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1017 |
--oldin |
--oldi |
--old |
--ol |
--o)
1018 ac_prev
=oldincludedir
;;
1019 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1020 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1021 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1022 oldincludedir
=$ac_optarg ;;
1024 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1026 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1027 prefix
=$ac_optarg ;;
1029 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1030 |
--program-pre |
--program-pr |
--program-p)
1031 ac_prev
=program_prefix
;;
1032 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1033 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1034 program_prefix
=$ac_optarg ;;
1036 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1037 |
--program-suf |
--program-su |
--program-s)
1038 ac_prev
=program_suffix
;;
1039 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1040 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1041 program_suffix
=$ac_optarg ;;
1043 -program-transform-name |
--program-transform-name \
1044 |
--program-transform-nam |
--program-transform-na \
1045 |
--program-transform-n |
--program-transform- \
1046 |
--program-transform |
--program-transfor \
1047 |
--program-transfo |
--program-transf \
1048 |
--program-trans |
--program-tran \
1049 |
--progr-tra |
--program-tr |
--program-t)
1050 ac_prev
=program_transform_name
;;
1051 -program-transform-name=* |
--program-transform-name=* \
1052 |
--program-transform-nam=* |
--program-transform-na=* \
1053 |
--program-transform-n=* |
--program-transform-=* \
1054 |
--program-transform=* |
--program-transfor=* \
1055 |
--program-transfo=* |
--program-transf=* \
1056 |
--program-trans=* |
--program-tran=* \
1057 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1058 program_transform_name
=$ac_optarg ;;
1060 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1062 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1063 pdfdir
=$ac_optarg ;;
1065 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1067 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1070 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1071 |
-silent |
--silent |
--silen |
--sile |
--sil)
1074 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1076 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1078 sbindir
=$ac_optarg ;;
1080 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1081 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1082 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1084 ac_prev
=sharedstatedir
;;
1085 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1086 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1087 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1089 sharedstatedir
=$ac_optarg ;;
1091 -site |
--site |
--sit)
1093 -site=* |
--site=* |
--sit=*)
1096 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1098 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1099 srcdir
=$ac_optarg ;;
1101 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1102 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1103 ac_prev
=sysconfdir
;;
1104 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1105 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1106 sysconfdir
=$ac_optarg ;;
1108 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1109 ac_prev
=target_alias
;;
1110 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1111 target_alias
=$ac_optarg ;;
1113 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1116 -version |
--version |
--versio |
--versi |
--vers |
-V)
1117 ac_init_version
=: ;;
1120 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1123 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_useropt_orig
=$ac_useropt
1126 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep
=', ';;
1134 eval with_
$ac_useropt=\
$ac_optarg ;;
1136 -without-* |
--without-*)
1137 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1140 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_useropt_orig
=$ac_useropt
1143 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep
=', ';;
1151 eval with_
$ac_useropt=no
;;
1154 # Obsolete; use --with-x.
1157 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1158 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1159 ac_prev
=x_includes
;;
1160 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1161 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1162 x_includes
=$ac_optarg ;;
1164 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1165 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1166 ac_prev
=x_libraries
;;
1167 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1168 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1169 x_libraries
=$ac_optarg ;;
1171 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1180 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\
$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1198 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1205 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1206 { (exit 1); exit 1; }; } ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 # Check all directory arguments for consistency.
1212 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val
=\$
$ac_var
1218 # Remove trailing slashes.
1221 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\
$ac_val;;
1224 # Be sure to have absolute directory names.
1226 [\\/$
]* | ?
:[\\/]* ) continue;;
1227 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1229 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1230 { (exit 1); exit 1; }; }
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1238 target
=$target_alias
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x
; then
1242 if test "x$build_alias" = x
; then
1243 cross_compiling
=maybe
1244 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1252 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1254 test "$silent" = yes && exec 6>/dev
/null
1257 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di
=`ls -di .` &&
1259 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1260 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1261 { (exit 1); exit 1; }; }
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1264 { (exit 1); exit 1; }; }
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted
=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir
=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1299 ac_srcdir_defaulted
=no
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1303 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1304 { (exit 1); exit 1; }; }
1306 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1309 { (exit 1); exit 1; }; }
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var
in $ac_precious_vars; do
1322 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1324 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures this package to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1398 --build=BUILD configure
for building on BUILD
[guessed
]
1399 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1400 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1404 if test -n "$ac_init_help"; then
1409 --disable-option-checking ignore unrecognized
--enable/--with options
1410 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1411 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1412 --enable-maintainer-mode Enable developer functionality.
1413 --enable-sim-bswap Use Host specific BSWAP instruction.
1414 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1415 --enable-sim-debug=opts Enable debugging flags
1416 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1417 --enable-sim-trace=opts Enable tracing flags
1418 --enable-sim-profile=opts Enable profiling flags
1419 --enable-sim-endian=endian Specify target byte endian orientation.
1420 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
1421 --enable-sim-hostendian=end Specify
host byte endian orientation.
1422 --enable-sim-scache=size Specify simulator execution cache size.
1423 --enable-sim-default-model=model Specify default model to simulate.
1424 --enable-sim-environment=environment Specify mixed
, user
, virtual or operating environment.
1425 --enable-cgen-maint=DIR build cgen generated files
1426 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1429 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1430 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1431 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1432 --with-bugurl=URL Direct users to URL to report a bug
1434 Some influential environment variables
:
1435 CC C compiler
command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1438 nonstandard directory
<lib dir
>
1439 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1440 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1441 you have headers
in a nonstandard directory
<include dir
>
1444 Use these variables to override the choices made by
`configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1476 .) # We are building in place.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1510 generated by GNU Autoconf 2.63
1512 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1513 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1519 cat >config.log <<_ACEOF
1520 This file contains any messages produced by compilers while
1521 running configure, to aid debugging if configure makes a mistake.
1523 It was created by $as_me, which was
1524 generated by GNU Autoconf 2.63. Invocation command line was
1536 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1537 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1538 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1539 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1540 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1542 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1543 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1545 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1546 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1547 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1548 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1549 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1550 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1551 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 $as_echo "PATH: $as_dir"
1576 # Keep a trace of the command line.
1577 # Strip out --no-create and --no-recursion so they do not pile up.
1578 # Strip out --silent because we don't want to record it for future runs.
1579 # Also quote any args containing shell meta-characters.
1580 # Make two passes to allow for proper duplicate-argument suppression.
1584 ac_must_keep_next=false
1590 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1592 | -silent | --silent | --silen | --sile | --sil)
1595 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1598 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1600 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1601 if test $ac_must_keep_next = true; then
1602 ac_must_keep_next=false # Got value, back to normal.
1605 *=* | --config-cache | -C | -disable-* | --disable-* \
1606 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1607 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1608 | -with-* | --with-* | -without-* | --without-* | --x)
1609 case "$ac_configure_args0 " in
1610 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1613 -* ) ac_must_keep_next=true ;;
1616 ac_configure_args="$ac_configure_args '$ac_arg'"
1621 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1622 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1624 # When interrupted or exit'd, cleanup temporary files, and complete
1625 # config.log. We remove comments because anyway the quotes in there
1626 # would cause problems or look ugly.
1627 # WARNING: Use '\'' to represent an apostrophe within the trap.
1628 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1629 trap 'exit_status=$?
1630 # Save into config.log some information that might help in debugging.
1635 ## ---------------- ##
1636 ## Cache variables. ##
1637 ## ---------------- ##
1640 # The following way of writing the cache mishandles newlines in values,
1642 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1643 eval ac_val=\$$ac_var
1647 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1648 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1651 _ | IFS | as_nl) ;; #(
1652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1653 *) $as_unset $ac_var ;;
1658 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1659 *${as_nl}ac_space=\ *)
1661 "s/'\''/'\''\\\\'\'''\''/g;
1662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1673 ## ----------------- ##
1674 ## Output variables. ##
1675 ## ----------------- ##
1678 for ac_var in $ac_subst_vars
1680 eval ac_val=\$$ac_var
1682 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1684 $as_echo "$ac_var='\''$ac_val'\''"
1688 if test -n "$ac_subst_files"; then
1690 ## ------------------- ##
1691 ## File substitutions. ##
1692 ## ------------------- ##
1695 for ac_var in $ac_subst_files
1697 eval ac_val=\$$ac_var
1699 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1701 $as_echo "$ac_var='\''$ac_val'\''"
1706 if test -s confdefs.h; then
1716 test "$ac_signal" != 0 &&
1717 $as_echo "$as_me: caught signal $ac_signal"
1718 $as_echo "$as_me: exit $exit_status"
1720 rm -f core *.core core.conftest.* &&
1721 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1724 for ac_signal in 1 2 13 15; do
1725 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1729 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1730 rm -f -r conftest* confdefs.h
1732 # Predefined preprocessor variables.
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_NAME "$PACKAGE_NAME"
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_STRING "$PACKAGE_STRING"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1759 # Let the site file select an alternate cache file if it wants to.
1760 # Prefer an explicitly selected file to automatically selected ones.
1763 if test -n "$CONFIG_SITE"; then
1764 ac_site_file1=$CONFIG_SITE
1765 elif test "x$prefix" != xNONE; then
1766 ac_site_file1=$prefix/share/config.site
1767 ac_site_file2=$prefix/etc/config.site
1769 ac_site_file1=$ac_default_prefix/share/config.site
1770 ac_site_file2=$ac_default_prefix/etc/config.site
1772 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1774 test "x$ac_site_file" = xNONE && continue
1775 if test -r "$ac_site_file"; then
1776 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1777 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1778 sed 's/^/| /' "$ac_site_file" >&5
1783 if test -r "$cache_file"; then
1784 # Some versions of bash will fail to source /dev/null (special
1785 # files actually), so we avoid doing that.
1786 if test -f "$cache_file"; then
1787 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1788 $as_echo "$as_me: loading cache $cache_file" >&6;}
1790 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1791 *) . "./$cache_file";;
1795 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1796 $as_echo "$as_me: creating cache $cache_file" >&6;}
1800 # Check that the precious variables saved in the cache have kept the same
1802 ac_cache_corrupted=false
1803 for ac_var in $ac_precious_vars; do
1804 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1805 eval ac_new_set=\$ac_env_${ac_var}_set
1806 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1807 eval ac_new_val=\$ac_env_${ac_var}_value
1808 case $ac_old_set,$ac_new_set in
1810 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1811 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1812 ac_cache_corrupted=: ;;
1814 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1815 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1816 ac_cache_corrupted=: ;;
1819 if test "x$ac_old_val" != "x$ac_new_val"; then
1820 # differences in whitespace do not lead to failure.
1821 ac_old_val_w=`echo x
$ac_old_val`
1822 ac_new_val_w=`echo x
$ac_new_val`
1823 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1824 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1825 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1826 ac_cache_corrupted=:
1828 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1829 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1830 eval $ac_var=\$ac_old_val
1832 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1833 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1834 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1835 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1838 # Pass precious variables to config.status.
1839 if test "$ac_new_set" = set; then
1841 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1842 *) ac_arg=$ac_var=$ac_new_val ;;
1844 case " $ac_configure_args " in
1845 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1846 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1850 if $ac_cache_corrupted; then
1851 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1853 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1854 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1855 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1856 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1857 { (exit 1); exit 1; }; }
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883 ac_config_headers="$ac_config_headers config.h
:config.
in"
1886 # This file contains common code used by all simulators.
1888 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1889 # directory. It is intended to be invoked before any target specific stuff.
1890 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1891 # It is intended to be invoked last.
1893 # The simulator's configure.in should look like:
1895 # dnl Process this file with autoconf to produce a configure script.
1896 # sinclude(../common/aclocal.m4)
1898 # AC_INIT(Makefile.in)
1902 # ... target specific stuff ...
1953 sim_inline="-DDEFAULT_INLINE=0"
1990 # intl sister-directory configuration rules.
1993 # The idea behind this macro is that there's no need to repeat all the
1994 # autoconf probes done by the intl directory - it's already done them
1995 # for us. In fact, there's no need even to look at the cache for the
1996 # answers. All we need to do is nab a few pieces of information.
1997 # The intl directory is set up to make this easy, by generating a
1998 # small file which can be sourced as a shell script; then we produce
1999 # the necessary substitutions and definitions for this directory.
2003 # Autoconf M4 include file defining utility macros for complex Canadian
2015 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2017 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2020 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2021 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2025 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2026 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2030 # Backported from Autoconf 2.5x; can go away when and if
2031 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2036 # ACX_HAVE_GCC_FOR_TARGET
2037 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2040 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2041 # Searching for installed target binutils. We need to take extra care,
2042 # else we may find the wrong assembler, linker, etc., and lose.
2044 # First try --with-build-time-tools, if specified.
2046 # For build != host, we ask the installed GCC for the name of the tool it
2047 # uses, and accept it if it is an absolute path. This is because the
2048 # only good choice for a compiler is the same GCC version that is being
2049 # installed (or we couldn't make target libraries), and we assume that
2050 # on the host system we'll have not only the same GCC version, but also
2051 # the same binutils version.
2053 # For build == host, search the same directories that the installed
2054 # compiler will search. We used to do this for the assembler, linker,
2055 # and nm only; for simplicity of configuration, however, we extend this
2056 # criterion to tools (such as ar and ranlib) that are never invoked by
2057 # the compiler, to avoid mismatches.
2059 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2060 # if build == target. This makes the most sense only when bootstrapping,
2061 # but we also do so when build != host. In this case, we hope that the
2062 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2064 # If we do not find a suitable binary, then try the user's path.
2068 # AC_PROG_CPP_WERROR
2069 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2070 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2071 # For now, using this also overrides header checks to use only the
2072 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2073 # bit harder from here).
2074 # Eventually autoconf will default to checking headers with the compiler
2075 # instead, and we'll have to do this differently.
2077 # AC_PROG_CPP_WERROR
2080 # We require the gnatbind program, and a compiler driver that
2081 # understands Ada. We use the user's CC setting, already found,
2082 # and possibly add $1 to the command-line parameters.
2084 # Sets the shell variable have_gnat to yes or no as appropriate, and
2085 # substitutes GNATBIND and GNATMAKE.
2111 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
2112 # it by inlining the macro's contents.
2113 # This file contains common code used by all simulators.
2115 # common.m4 invokes AC macros used by all simulators and by the common
2116 # directory. It is intended to be included before any target specific
2117 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
2118 # the Makefile. It is intended to be invoked last.
2120 # The simulator's configure.in should look like:
2122 # dnl Process this file with autoconf to produce a configure script.
2124 # AC_INIT(Makefile.in)
2125 # AC_CONFIG_HEADER(config.h:config.in)
2127 # sinclude(../common/aclocal.m4)
2128 # sinclude(../common/common.m4)
2130 # ... target specific stuff ...
2133 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
2134 if test -f "$ac_dir/install-sh
"; then
2136 ac_install_sh="$ac_aux_dir/install-sh
-c"
2138 elif test -f "$ac_dir/install.sh
"; then
2140 ac_install_sh="$ac_aux_dir/install.sh
-c"
2142 elif test -f "$ac_dir/shtool
"; then
2144 ac_install_sh="$ac_aux_dir/shtool
install -c"
2148 if test -z "$ac_aux_dir"; then
2149 { { $as_echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&5
2150 $as_echo "$as_me: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&2;}
2151 { (exit 1); exit 1; }; }
2154 # These three variables are undocumented and unsupported,
2155 # and are intended to be withdrawn in a future Autoconf release.
2156 # They can cause serious problems if a builder's source tree is in a directory
2157 # whose full name contains unusual characters.
2158 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
2159 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
2160 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2163 # Make sure we can run config.sub.
2164 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
2165 { { $as_echo "$as_me:$LINENO: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&5
2166 $as_echo "$as_me: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&2;}
2167 { (exit 1); exit 1; }; }
2169 { $as_echo "$as_me:$LINENO: checking build system
type" >&5
2170 $as_echo_n "checking build system
type...
" >&6; }
2171 if test "${ac_cv_build+set}" = set; then
2172 $as_echo_n "(cached
) " >&6
2174 ac_build_alias=$build_alias
2175 test "x
$ac_build_alias" = x &&
2176 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
2177 test "x
$ac_build_alias" = x &&
2178 { { $as_echo "$as_me:$LINENO: error
: cannot guess build
type; you must specify one
" >&5
2179 $as_echo "$as_me: error
: cannot guess build
type; you must specify one
" >&2;}
2180 { (exit 1); exit 1; }; }
2181 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
2182 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&5
2183 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&2;}
2184 { (exit 1); exit 1; }; }
2187 { $as_echo "$as_me:$LINENO: result
: $ac_cv_build" >&5
2188 $as_echo "$ac_cv_build" >&6; }
2189 case $ac_cv_build in
2191 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical build
" >&5
2192 $as_echo "$as_me: error
: invalid value of canonical build
" >&2;}
2193 { (exit 1); exit 1; }; };;
2196 ac_save_IFS=$IFS; IFS='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2209 { $as_echo "$as_me:$LINENO: checking
host system
type" >&5
2210 $as_echo_n "checking
host system
type...
" >&6; }
2211 if test "${ac_cv_host+set}" = set; then
2212 $as_echo_n "(cached
) " >&6
2214 if test "x
$host_alias" = x; then
2215 ac_cv_host=$ac_cv_build
2217 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
2218 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&5
2219 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&2;}
2220 { (exit 1); exit 1; }; }
2224 { $as_echo "$as_me:$LINENO: result
: $ac_cv_host" >&5
2225 $as_echo "$ac_cv_host" >&6; }
2228 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical
host" >&5
2229 $as_echo "$as_me: error
: invalid value of canonical
host" >&2;}
2230 { (exit 1); exit 1; }; };;
2233 ac_save_IFS=$IFS; IFS='-'
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2243 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2246 { $as_echo "$as_me:$LINENO: checking target system
type" >&5
2247 $as_echo_n "checking target system
type...
" >&6; }
2248 if test "${ac_cv_target+set}" = set; then
2249 $as_echo_n "(cached
) " >&6
2251 if test "x
$target_alias" = x; then
2252 ac_cv_target=$ac_cv_host
2254 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub
" $target_alias` ||
2255 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$target_alias failed
" >&5
2256 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$target_alias failed
" >&2;}
2257 { (exit 1); exit 1; }; }
2261 { $as_echo "$as_me:$LINENO: result
: $ac_cv_target" >&5
2262 $as_echo "$ac_cv_target" >&6; }
2263 case $ac_cv_target in
2265 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical target
" >&5
2266 $as_echo "$as_me: error
: invalid value of canonical target
" >&2;}
2267 { (exit 1); exit 1; }; };;
2269 target=$ac_cv_target
2270 ac_save_IFS=$IFS; IFS='-'
2276 # Remember, the first character of IFS is used to create $*,
2277 # except with old shells:
2280 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2283 # The aliases save the names the user supplied, while $host etc.
2284 # will get canonicalized.
2285 test -n "$target_alias" &&
2286 test "$program_prefix$program_suffix$program_transform_name" = \
2288 program_prefix=${target_alias}-
2289 test "$program_prefix" != NONE &&
2290 program_transform_name="s
&^
&$program_prefix&;$program_transform_name"
2291 # Use a double $ so make ignores it.
2292 test "$program_suffix" != NONE &&
2293 program_transform_name="s
&\$
&$program_suffix&;$program_transform_name"
2294 # Double any \ or $.
2295 # By default was `s,x,x', remove it if useless.
2296 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2297 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2307 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2308 $as_echo_n "checking
for $ac_word...
" >&6; }
2309 if test "${ac_cv_prog_CC+set}" = set; then
2310 $as_echo_n "(cached
) " >&6
2312 if test -n "$CC"; then
2313 ac_cv_prog_CC="$CC" # Let the user override the test.
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2323 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2333 if test -n "$CC"; then
2334 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2335 $as_echo "$CC" >&6; }
2337 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2338 $as_echo "no
" >&6; }
2343 if test -z "$ac_cv_prog_CC"; then
2345 # Extract the first word of "gcc
", so it can be a program name with args.
2346 set dummy gcc; ac_word=$2
2347 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2348 $as_echo_n "checking
for $ac_word...
" >&6; }
2349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2350 $as_echo_n "(cached
) " >&6
2352 if test -n "$ac_ct_CC"; then
2353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_CC="gcc
"
2363 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2373 if test -n "$ac_ct_CC"; then
2374 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2375 $as_echo "$ac_ct_CC" >&6; }
2377 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2378 $as_echo "no
" >&6; }
2381 if test "x
$ac_ct_CC" = x; then
2384 case $cross_compiling:$ac_tool_warned in
2386 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2387 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2388 ac_tool_warned=yes ;;
2396 if test -z "$CC"; then
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}cc; ac_word=$2
2400 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2401 $as_echo_n "checking
for $ac_word...
" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 $as_echo_n "(cached
) " >&6
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2416 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2426 if test -n "$CC"; then
2427 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2428 $as_echo "$CC" >&6; }
2430 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2431 $as_echo "no
" >&6; }
2437 if test -z "$CC"; then
2438 # Extract the first word of "cc
", so it can be a program name with args.
2439 set dummy cc; ac_word=$2
2440 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2441 $as_echo_n "checking
for $ac_word...
" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 $as_echo_n "(cached
) " >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2457 ac_prog_rejected=yes
2461 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2468 if test $ac_prog_rejected = yes; then
2469 # We found a bogon in the path, so make sure we never use it.
2470 set dummy $ac_cv_prog_CC
2472 if test $# != 0; then
2473 # We chose a different compiler from the bogus one.
2474 # However, it has the same basename, so the bogon will be chosen
2475 # first if we set CC to just the basename; use the full file name.
2477 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2483 if test -n "$CC"; then
2484 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2485 $as_echo "$CC" >&6; }
2487 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2488 $as_echo "no
" >&6; }
2493 if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 for ac_prog in cl.exe
2497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2499 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2500 $as_echo_n "checking
for $ac_word...
" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502 $as_echo_n "(cached
) " >&6
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2515 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2525 if test -n "$CC"; then
2526 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2527 $as_echo "$CC" >&6; }
2529 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2530 $as_echo "no
" >&6; }
2534 test -n "$CC" && break
2537 if test -z "$CC"; then
2539 for ac_prog in cl.exe
2541 # Extract the first word of "$ac_prog", so it can be a program name with args.
2542 set dummy $ac_prog; ac_word=$2
2543 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2544 $as_echo_n "checking
for $ac_word...
" >&6; }
2545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2546 $as_echo_n "(cached
) " >&6
2548 if test -n "$ac_ct_CC"; then
2549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_ac_ct_CC="$ac_prog"
2559 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2569 if test -n "$ac_ct_CC"; then
2570 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2571 $as_echo "$ac_ct_CC" >&6; }
2573 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2574 $as_echo "no
" >&6; }
2578 test -n "$ac_ct_CC" && break
2581 if test "x
$ac_ct_CC" = x; then
2584 case $cross_compiling:$ac_tool_warned in
2586 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2587 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2588 ac_tool_warned=yes ;;
2597 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2600 See \`config.log' for more details.
" >&5
2601 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2602 See \
`config.log' for more details." >&2;}
2603 { (exit 1); exit 1; }; }; }
2605 # Provide some information about the compiler.
2606 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2609 { (ac_try="$ac_compiler --version >&5"
2611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2612 *) ac_try_echo
=$ac_try;;
2614 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2615 $as_echo "$ac_try_echo") >&5
2616 (eval "$ac_compiler --version >&5") 2>&5
2618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }
2620 { (ac_try
="$ac_compiler -v >&5"
2622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2626 $as_echo "$ac_try_echo") >&5
2627 (eval "$ac_compiler -v >&5") 2>&5
2629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }
2631 { (ac_try="$ac_compiler -V >&5"
2633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2634 *) ac_try_echo
=$ac_try;;
2636 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2637 $as_echo "$ac_try_echo") >&5
2638 (eval "$ac_compiler -V >&5") 2>&5
2640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }
2643 cat >conftest.
$ac_ext <<_ACEOF
2646 cat confdefs.h
>>conftest.
$ac_ext
2647 cat >>conftest.
$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 ac_clean_files_save
=$ac_clean_files
2659 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2660 # Try to create an executable without -o first, disregard a.out.
2661 # It will help us diagnose broken compilers, and finding out an intuition
2663 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2664 $as_echo_n "checking for C compiler default output file name... " >&6; }
2665 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2667 # The possible output files:
2668 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2671 for ac_file
in $ac_files
2674 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2675 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2680 if { (ac_try
="$ac_link_default"
2682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2686 $as_echo "$ac_try_echo") >&5
2687 (eval "$ac_link_default") 2>&5
2689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; then
2691 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2692 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2693 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2694 # so that the user can short-circuit this test for compilers unknown to
2696 for ac_file in $ac_files ''
2698 test -f "$ac_file" || continue
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2703 # We found the default executable, but exeext='' is most
2707 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2709 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2711 # We set ac_cv_exeext here because the later test for it is not
2712 # safe: cross compilers may not add the suffix if given an `-o'
2713 # argument, so we may need to know it at that point already.
2714 # Even if this section looks crufty: it has the advantage of
2721 test "$ac_cv_exeext" = no && ac_cv_exeext=
2727 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2728 $as_echo "$ac_file" >&6; }
2729 if test -z "$ac_file"; then
2730 $as_echo "$as_me: failed program was:" >&5
2731 sed 's
/^
/|
/' conftest.$ac_ext >&5
2733 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2735 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2736 See \`config.log
' for more details." >&5
2737 $as_echo "$as_me: error: C compiler cannot create executables
2738 See \`config.log' for more details.
" >&2;}
2739 { (exit 77); exit 77; }; }; }
2742 ac_exeext=$ac_cv_exeext
2744 # Check that the compiler produces executables we can run. If not, either
2745 # the compiler is broken, or we cross compile.
2746 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2747 $as_echo_n "checking whether the C compiler works...
" >&6; }
2748 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2749 # If not cross compiling, check that we can run a simple program.
2750 if test "$cross_compiling" != yes; then
2751 if { ac_try='./$ac_file'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2757 $as_echo "$ac_try_echo") >&5
2758 (eval "$ac_try") 2>&5
2760 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2761 (exit $ac_status); }; }; then
2764 if test "$cross_compiling" = maybe; then
2767 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2769 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2770 If you meant to cross compile, use \`--host'.
2771 See \
`config.log' for more details." >&5
2772 $as_echo "$as_me: error: cannot run C compiled programs.
2773 If you meant to cross compile, use \`--host'.
2774 See \`config.log' for more details.
" >&2;}
2775 { (exit 1); exit 1; }; }; }
2779 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2780 $as_echo "yes" >&6; }
2782 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2783 ac_clean_files=$ac_clean_files_save
2784 # Check that the compiler produces executables we can run. If not, either
2785 # the compiler is broken, or we cross compile.
2786 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2787 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2788 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2789 $as_echo "$cross_compiling" >&6; }
2791 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2792 $as_echo_n "checking
for suffix of executables...
" >&6; }
2793 if { (ac_try="$ac_link"
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2799 $as_echo "$ac_try_echo") >&5
2800 (eval "$ac_link") 2>&5
2802 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2803 (exit $ac_status); }; then
2804 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2805 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2806 # work properly (i.e., refer to `conftest.exe'), while it won't with
2808 for ac_file in conftest.exe conftest conftest.*; do
2809 test -f "$ac_file" || continue
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2818 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2821 See \`config.log' for more details.
" >&5
2822 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2823 See \
`config.log' for more details." >&2;}
2824 { (exit 1); exit 1; }; }; }
2827 rm -f conftest$ac_cv_exeext
2828 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2829 $as_echo "$ac_cv_exeext" >&6; }
2831 rm -f conftest.$ac_ext
2832 EXEEXT=$ac_cv_exeext
2834 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2835 $as_echo_n "checking for suffix of object files... " >&6; }
2836 if test "${ac_cv_objext+set}" = set; then
2837 $as_echo_n "(cached) " >&6
2839 cat >conftest.$ac_ext <<_ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2854 rm -f conftest.o conftest.obj
2855 if { (ac_try="$ac_compile"
2857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2858 *) ac_try_echo
=$ac_try;;
2860 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862 (eval "$ac_compile") 2>&5
2864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; then
2866 for ac_file
in conftest.o conftest.obj conftest.
*; do
2867 test -f "$ac_file" ||
continue;
2869 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2870 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2875 $as_echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.
$ac_ext >&5
2878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2880 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2881 See \`config.log' for more details." >&5
2882 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2883 See \`config.log' for more details." >&2;}
2884 { (exit 1); exit 1; }; }; }
2887 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2889 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2890 $as_echo "$ac_cv_objext" >&6; }
2891 OBJEXT
=$ac_cv_objext
2893 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2894 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2896 $as_echo_n "(cached) " >&6
2898 cat >conftest.
$ac_ext <<_ACEOF
2901 cat confdefs.h
>>conftest.
$ac_ext
2902 cat >>conftest.
$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2916 rm -f conftest.
$ac_objext
2917 if { (ac_try
="$ac_compile"
2919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2923 $as_echo "$ac_try_echo") >&5
2924 (eval "$ac_compile") 2>conftest.er1
2926 grep -v '^ *+' conftest.er1 >conftest.err
2928 cat conftest.err >&5
2929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } && {
2931 test -z "$ac_c_werror_flag" ||
2932 test ! -s conftest.err
2933 } && test -s conftest.$ac_objext; then
2936 $as_echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2946 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2947 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2948 if test $ac_compiler_gnu = yes; then
2953 ac_test_CFLAGS=${CFLAGS+set}
2954 ac_save_CFLAGS=$CFLAGS
2955 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2957 if test "${ac_cv_prog_cc_g+set}" = set; then
2958 $as_echo_n "(cached) " >&6
2960 ac_save_c_werror_flag=$ac_c_werror_flag
2961 ac_c_werror_flag=yes
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2983 *) ac_try_echo
=$ac_try;;
2985 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2986 $as_echo "$ac_try_echo") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2989 grep -v '^ *+' conftest.er1
>conftest.err
2991 cat conftest.err
>&5
2992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.
$ac_objext; then
2999 $as_echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.
$ac_ext >&5
3003 cat >conftest.
$ac_ext <<_ACEOF
3006 cat confdefs.h
>>conftest.
$ac_ext
3007 cat >>conftest.
$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3018 rm -f conftest.
$ac_objext
3019 if { (ac_try
="$ac_compile"
3021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025 $as_echo "$ac_try_echo") >&5
3026 (eval "$ac_compile") 2>conftest.er1
3028 grep -v '^ *+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } && {
3033 test -z "$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3035 } && test -s conftest.$ac_objext; then
3038 $as_echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 ac_c_werror_flag=$ac_save_c_werror_flag
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3062 *) ac_try_echo
=$ac_try;;
3064 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3065 $as_echo "$ac_try_echo") >&5
3066 (eval "$ac_compile") 2>conftest.er1
3068 grep -v '^ *+' conftest.er1
>conftest.err
3070 cat conftest.err
>&5
3071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && {
3073 test -z "$ac_c_werror_flag" ||
3074 test ! -s conftest.err
3075 } && test -s conftest.
$ac_objext; then
3078 $as_echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.
$ac_ext >&5
3084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3091 ac_c_werror_flag
=$ac_save_c_werror_flag
3093 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3094 $as_echo "$ac_cv_prog_cc_g" >&6; }
3095 if test "$ac_test_CFLAGS" = set; then
3096 CFLAGS
=$ac_save_CFLAGS
3097 elif test $ac_cv_prog_cc_g = yes; then
3098 if test "$GCC" = yes; then
3104 if test "$GCC" = yes; then
3110 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3111 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3112 if test "${ac_cv_prog_cc_c89+set}" = set; then
3113 $as_echo_n "(cached) " >&6
3115 ac_cv_prog_cc_c89
=no
3117 cat >conftest.
$ac_ext <<_ACEOF
3120 cat confdefs.h
>>conftest.
$ac_ext
3121 cat >>conftest.
$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3125 #include <sys/types.h>
3126 #include <sys/stat.h>
3127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3128 struct buf { int x; };
3129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3130 static char *e (p, i)
3136 static char *f (char * (*g) (char **, int), char **p, ...)
3141 s = g (p, va_arg (v,int));
3146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3147 function prototypes and stuff, but not '\xHH' hex character constants.
3148 These don't provoke an error unfortunately, instead are silently treated
3149 as 'x'. The following induces an error, until -std is added to get
3150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3151 array size at least. It's necessary to write '\x00'==0 to get something
3152 that's true only with -std. */
3153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3156 inside strings and character constants. */
3158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3160 int test (int i, double x);
3161 struct s1 {int (*f) (int a);};
3162 struct s2 {int (*f) (double a);};
3163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3174 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3177 CC
="$ac_save_CC $ac_arg"
3178 rm -f conftest.
$ac_objext
3179 if { (ac_try
="$ac_compile"
3181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3185 $as_echo "$ac_try_echo") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3188 grep -v '^ *+' conftest.er1 >conftest.err
3190 cat conftest.err >&5
3191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } && {
3193 test -z "$ac_c_werror_flag" ||
3194 test ! -s conftest.err
3195 } && test -s conftest.$ac_objext; then
3196 ac_cv_prog_cc_c89=$ac_arg
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3204 rm -f core conftest.err conftest.$ac_objext
3205 test "x$ac_cv_prog_cc_c89" != "xno" && break
3207 rm -f conftest.$ac_ext
3212 case "x$ac_cv_prog_cc_c89" in
3214 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3215 $as_echo "none needed" >&6; } ;;
3217 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3218 $as_echo "unsupported" >&6; } ;;
3220 CC="$CC $ac_cv_prog_cc_c89"
3221 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 # Find a good install program. We prefer a C program (faster),
3233 # so one script is as good as another. But avoid the broken or
3234 # incompatible versions:
3235 # SysV /etc/install, /usr/sbin/install
3236 # SunOS /usr/etc/install
3237 # IRIX /sbin/install
3239 # AmigaOS /C/install, which installs bootblocks on floppy discs
3240 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3243 # OS/2's system install, which has a completely different semantic
3244 # ./install, which can be erroneously created by make from ./install.sh.
3245 # Reject install programs that cannot install multiple files.
3246 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3247 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3248 if test -z "$INSTALL"; then
3249 if test "${ac_cv_path_install+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir=.
3257 # Account for people who put trailing slashes in PATH elements.
3259 ./ | .// | /cC/* | \
3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3261 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3279 rm -rf conftest.one conftest.two conftest.dir
3280 echo one > conftest.one
3281 echo two > conftest.two
3283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3284 test -s conftest.one && test -s conftest.two &&
3285 test -s conftest.dir/conftest.one &&
3286 test -s conftest.dir/conftest.two
3288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3301 rm -rf conftest.one conftest.two conftest.dir
3304 if test "${ac_cv_path_install+set}" = set; then
3305 INSTALL=$ac_cv_path_install
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for INSTALL within a source directory, because that will
3309 # break other packages using the cache if that directory is
3310 # removed, or if the value is a relative name.
3311 INSTALL=$ac_install_sh
3314 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3315 $as_echo "$INSTALL" >&6; }
3317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3318 # It thinks the first close brace ends the variable substitution.
3319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3326 # Put a plausible default for CC_FOR_BUILD in Makefile.
3327 if test "x$cross_compiling" = "xno"; then
3328 CC_FOR_BUILD='$(CC)'
3338 if test -n "$ac_tool_prefix"; then
3339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if test "${ac_cv_prog_RANLIB+set}" = set; then
3344 $as_echo_n "(cached) " >&6
3346 if test -n "$RANLIB"; then
3347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 RANLIB=$ac_cv_prog_RANLIB
3367 if test -n "$RANLIB"; then
3368 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3369 $as_echo "$RANLIB" >&6; }
3371 { $as_echo "$as_me:$LINENO: result: no" >&5
3372 $as_echo "no" >&6; }
3377 if test -z "$ac_cv_prog_RANLIB"; then
3378 ac_ct_RANLIB=$RANLIB
3379 # Extract the first word of "ranlib", so it can be a program name with args.
3380 set dummy ranlib; ac_word=$2
3381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3384 $as_echo_n "(cached) " >&6
3386 if test -n "$ac_ct_RANLIB"; then
3387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_ac_ct_RANLIB="ranlib"
3397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3407 if test -n "$ac_ct_RANLIB"; then
3408 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3409 $as_echo "$ac_ct_RANLIB" >&6; }
3411 { $as_echo "$as_me:$LINENO: result: no" >&5
3412 $as_echo "no" >&6; }
3415 if test "x$ac_ct_RANLIB" = x; then
3418 case $cross_compiling:$ac_tool_warned in
3420 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422 ac_tool_warned=yes ;;
3424 RANLIB=$ac_ct_RANLIB
3427 RANLIB="$ac_cv_prog_RANLIB"
3432 # If we haven't got the data from the intl directory,
3433 # assume NLS is disabled.
3442 if test -f ../../intl/config.intl; then
3443 . ../../intl/config.intl
3445 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3446 $as_echo_n "checking whether NLS is requested... " >&6; }
3447 if test x"$USE_NLS" != xyes; then
3448 { $as_echo "$as_me:$LINENO: result: no" >&5
3449 $as_echo "no" >&6; }
3451 { $as_echo "$as_me:$LINENO: result: yes" >&5
3452 $as_echo "yes" >&6; }
3454 cat >>confdefs.h <<\_ACEOF
3455 #define ENABLE_NLS 1
3459 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3460 $as_echo_n "checking for catalogs to be installed... " >&6; }
3461 # Look for .po and .gmo files in the source directory.
3464 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3465 # If there aren't any .gmo files the shell will give us the
3466 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3468 case "$cat" in *\**)
3471 # The quadruple backslash is collapsed to a double backslash
3472 # by the backticks, then collapsed again by the double quotes,
3473 # leaving us with one backslash in the sed expression (right
3474 # before the dot that mustn't act as a wildcard).
3475 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3476 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3477 # The user is allowed to set LINGUAS to a list of languages to
3478 # install catalogs for. If it's empty that means "all of them."
3479 if test "x$LINGUAS" = x; then
3480 CATALOGS="$CATALOGS $cat"
3481 XLINGUAS="$XLINGUAS $lang"
3483 case "$LINGUAS" in *$lang*)
3484 CATALOGS="$CATALOGS $cat"
3485 XLINGUAS="$XLINGUAS $lang"
3491 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
3492 $as_echo "$LINGUAS" >&6; }
3505 # Check for common headers.
3506 # FIXME: Seems to me this can cause problems for i386-windows hosts.
3507 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3515 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3516 # On Suns, sometimes $CPP names a directory.
3517 if test -n "$CPP" && test -d "$CPP"; then
3520 if test -z "$CPP"; then
3521 if test "${ac_cv_prog_CPP+set}" = set; then
3522 $as_echo_n "(cached) " >&6
3524 # Double quotes because CPP needs to be expanded
3525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3528 for ac_c_preproc_warn_flag in '' yes
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error" is here to catch this case.
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3543 # include <limits.h>
3545 # include <assert.h>
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3552 *) ac_try_echo
=$ac_try;;
3554 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3555 $as_echo "$ac_try_echo") >&5
3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558 grep -v '^ *+' conftest.er1
>conftest.err
3560 cat conftest.err
>&5
3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev
/null
&& {
3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.
$ac_ext >&5
3571 # Broken: fails on valid input.
3575 rm -f conftest.err conftest.
$ac_ext
3577 # OK, works on sane cases. Now check whether nonexistent headers
3578 # can be detected and how.
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3587 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3593 $as_echo "$ac_try_echo") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null && {
3601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3604 # Broken: success on invalid input.
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 # Passes both tests.
3615 rm -f conftest.err conftest.$ac_ext
3618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619 rm -f conftest.err conftest.
$ac_ext
3620 if $ac_preproc_ok; then
3632 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3633 $as_echo "$CPP" >&6; }
3635 for ac_c_preproc_warn_flag
in '' yes
3637 # Use a header file that comes with gcc, so configuring glibc
3638 # with a fresh cross-compiler works.
3639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640 # <limits.h> exists even on freestanding compilers.
3641 # On the NeXT, cc -E runs the code through the compiler's parser,
3642 # not just through cpp. "Syntax error" is here to catch this case.
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3650 # include <limits.h>
3652 # include <assert.h>
3656 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3662 $as_echo "$ac_try_echo") >&5
3663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } >/dev/null && {
3670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3675 $as_echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3694 if { (ac_try="$ac_cpp conftest.$ac_ext"
3696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3697 *) ac_try_echo
=$ac_try;;
3699 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3700 $as_echo "$ac_try_echo") >&5
3701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3703 grep -v '^ *+' conftest.er1
>conftest.err
3705 cat conftest.err
>&5
3706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } >/dev
/null
&& {
3708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3711 # Broken: success on invalid input.
3714 $as_echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.
$ac_ext >&5
3717 # Passes both tests.
3722 rm -f conftest.err conftest.
$ac_ext
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.
$ac_ext
3727 if $ac_preproc_ok; then
3730 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&5
3734 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&2;}
3736 { (exit 1); exit 1; }; }; }
3740 ac_cpp
='$CPP $CPPFLAGS'
3741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3746 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3747 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3748 if test "${ac_cv_path_GREP+set}" = set; then
3749 $as_echo_n "(cached) " >&6
3751 if test -z "$GREP"; then
3752 ac_path_GREP_found
=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3755 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3758 test -z "$as_dir" && as_dir
=.
3759 for ac_prog
in grep ggrep
; do
3760 for ac_exec_ext
in '' $ac_executable_extensions; do
3761 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3763 # Check for GNU ac_path_GREP and select it if it is found.
3764 # Check for GNU $ac_path_GREP
3765 case `"$ac_path_GREP" --version 2>&1` in
3767 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3770 $as_echo_n 0123456789 >"conftest.in"
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 $as_echo 'GREP' >> "conftest.nl"
3777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3778 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3779 ac_count
=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_GREP
="$ac_path_GREP"
3783 ac_path_GREP_max
=$ac_count
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3788 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3791 $ac_path_GREP_found && break 3
3796 if test -z "$ac_cv_path_GREP"; then
3797 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3802 ac_cv_path_GREP
=$GREP
3806 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3807 $as_echo "$ac_cv_path_GREP" >&6; }
3808 GREP
="$ac_cv_path_GREP"
3811 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3812 $as_echo_n "checking for egrep... " >&6; }
3813 if test "${ac_cv_path_EGREP+set}" = set; then
3814 $as_echo_n "(cached) " >&6
3816 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3817 then ac_cv_path_EGREP
="$GREP -E"
3819 if test -z "$EGREP"; then
3820 ac_path_EGREP_found
=false
3821 # Loop through the user's path and test for each of PROGNAME-LIST
3822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3823 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3826 test -z "$as_dir" && as_dir
=.
3827 for ac_prog
in egrep; do
3828 for ac_exec_ext
in '' $ac_executable_extensions; do
3829 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3830 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3831 # Check for GNU ac_path_EGREP and select it if it is found.
3832 # Check for GNU $ac_path_EGREP
3833 case `"$ac_path_EGREP" --version 2>&1` in
3835 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3838 $as_echo_n 0123456789 >"conftest.in"
3841 cat "conftest.in" "conftest.in" >"conftest.tmp"
3842 mv "conftest.tmp" "conftest.in"
3843 cp "conftest.in" "conftest.nl"
3844 $as_echo 'EGREP' >> "conftest.nl"
3845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3846 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3847 ac_count
=`expr $ac_count + 1`
3848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3849 # Best one so far, save it but keep looking for a better one
3850 ac_cv_path_EGREP
="$ac_path_EGREP"
3851 ac_path_EGREP_max
=$ac_count
3853 # 10*(2^10) chars as input seems more than enough
3854 test $ac_count -gt 10 && break
3856 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3859 $ac_path_EGREP_found && break 3
3864 if test -z "$ac_cv_path_EGREP"; then
3865 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3866 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3867 { (exit 1); exit 1; }; }
3870 ac_cv_path_EGREP
=$EGREP
3875 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3876 $as_echo "$ac_cv_path_EGREP" >&6; }
3877 EGREP
="$ac_cv_path_EGREP"
3880 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3881 $as_echo_n "checking for ANSI C header files... " >&6; }
3882 if test "${ac_cv_header_stdc+set}" = set; then
3883 $as_echo_n "(cached) " >&6
3885 cat >conftest.
$ac_ext <<_ACEOF
3888 cat confdefs.h
>>conftest.
$ac_ext
3889 cat >>conftest.
$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3904 rm -f conftest.
$ac_objext
3905 if { (ac_try
="$ac_compile"
3907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911 $as_echo "$ac_try_echo") >&5
3912 (eval "$ac_compile") 2>conftest.er1
3914 grep -v '^ *+' conftest.er1 >conftest.err
3916 cat conftest.err >&5
3917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest.$ac_objext; then
3922 ac_cv_header_stdc=yes
3924 $as_echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 ac_cv_header_stdc=no
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 if test $ac_cv_header_stdc = yes; then
3933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3944 $EGREP "memchr" >/dev/null 2>&1; then
3947 ac_cv_header_stdc=no
3953 if test $ac_cv_header_stdc = yes; then
3954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3955 cat >conftest.$ac_ext <<_ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965 $EGREP "free" >/dev/null 2>&1; then
3968 ac_cv_header_stdc=no
3974 if test $ac_cv_header_stdc = yes; then
3975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3976 if test "$cross_compiling" = yes; then
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3987 #if ((' ' & 0x0FF) == 0x020)
3988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3991 # define ISLOWER(c) \
3992 (('a' <= (c) && (c) <= 'i') \
3993 || ('j' <= (c) && (c) <= 'r') \
3994 || ('s' <= (c) && (c) <= 'z'))
3995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4003 for (i = 0; i < 256; i++)
4004 if (XOR (islower (i), ISLOWER (i))
4005 || toupper (i) != TOUPPER (i))
4010 rm -f conftest$ac_exeext
4011 if { (ac_try="$ac_link"
4013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4014 *) ac_try_echo
=$ac_try;;
4016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4017 $as_echo "$ac_try_echo") >&5
4018 (eval "$ac_link") 2>&5
4020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4022 { (case "(($ac_try" in
4023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4027 $as_echo "$ac_try_echo") >&5
4028 (eval "$ac_try") 2>&5
4030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4034 $as_echo "$as_me: program exited with status $ac_status" >&5
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4039 ac_cv_header_stdc=no
4041 rm -rf conftest.dSYM
4042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4048 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4049 $as_echo "$ac_cv_header_stdc" >&6; }
4050 if test $ac_cv_header_stdc = yes; then
4052 cat >>confdefs.h <<\_ACEOF
4053 #define STDC_HEADERS 1
4058 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4068 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4069 inttypes.h stdint.h unistd.h
4071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4073 $as_echo_n "checking for $ac_header... " >&6; }
4074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4075 $as_echo_n "(cached) " >&6
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4085 #include <$ac_header>
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4091 *) ac_try_echo
=$ac_try;;
4093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4094 $as_echo "$ac_try_echo") >&5
4095 (eval "$ac_compile") 2>conftest.er1
4097 grep -v '^ *+' conftest.er1
>conftest.err
4099 cat conftest.err
>&5
4100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && {
4102 test -z "$ac_c_werror_flag" ||
4103 test ! -s conftest.err
4104 } && test -s conftest.
$ac_objext; then
4105 eval "$as_ac_Header=yes"
4107 $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.
$ac_ext >&5
4110 eval "$as_ac_Header=no"
4113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4115 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4116 $as_echo "$as_val"'`
4117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4118 $as_echo "$ac_res" >&6; }
4119 as_val
=`eval 'as_val=${'$as_ac_Header'}
4120 $as_echo "$as_val"'`
4121 if test "x$as_val" = x
""yes; then
4122 cat >>confdefs.h
<<_ACEOF
4123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4138 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4139 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4141 $as_echo_n "checking for $ac_header... " >&6; }
4142 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4143 $as_echo_n "(cached) " >&6
4145 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4146 $as_echo "$as_val"'`
4147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4148 $as_echo "$ac_res" >&6; }
4150 # Is the header compilable?
4151 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4152 $as_echo_n "checking $ac_header usability... " >&6; }
4153 cat >conftest.
$ac_ext <<_ACEOF
4156 cat confdefs.h
>>conftest.
$ac_ext
4157 cat >>conftest.
$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 $ac_includes_default
4160 #include <$ac_header>
4162 rm -f conftest.
$ac_objext
4163 if { (ac_try
="$ac_compile"
4165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4169 $as_echo "$ac_try_echo") >&5
4170 (eval "$ac_compile") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest.$ac_objext; then
4180 ac_header_compiler=yes
4182 $as_echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 ac_header_compiler=no
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4190 $as_echo "$ac_header_compiler" >&6; }
4192 # Is the header present?
4193 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4194 $as_echo_n "checking $ac_header presence... " >&6; }
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201 #include <$ac_header>
4203 if { (ac_try="$ac_cpp conftest.$ac_ext"
4205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4206 *) ac_try_echo
=$ac_try;;
4208 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4209 $as_echo "$ac_try_echo") >&5
4210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4212 grep -v '^ *+' conftest.er1
>conftest.err
4214 cat conftest.err
>&5
4215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } >/dev
/null
&& {
4217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4220 ac_header_preproc
=yes
4222 $as_echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.
$ac_ext >&5
4225 ac_header_preproc
=no
4228 rm -f conftest.err conftest.
$ac_ext
4229 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4230 $as_echo "$ac_header_preproc" >&6; }
4232 # So? What about this header?
4233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4236 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4239 ac_header_preproc
=yes
4242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4243 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4245 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4247 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4249 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4251 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4253 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4258 $as_echo_n "checking for $ac_header... " >&6; }
4259 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4260 $as_echo_n "(cached) " >&6
4262 eval "$as_ac_Header=\$ac_header_preproc"
4264 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4265 $as_echo "$as_val"'`
4266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4267 $as_echo "$ac_res" >&6; }
4270 as_val
=`eval 'as_val=${'$as_ac_Header'}
4271 $as_echo "$as_val"'`
4272 if test "x$as_val" = x
""yes; then
4273 cat >>confdefs.h
<<_ACEOF
4274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4283 for ac_header
in sys
/time.h sys
/resource.h
4285 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4286 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4288 $as_echo_n "checking for $ac_header... " >&6; }
4289 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4290 $as_echo_n "(cached) " >&6
4292 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4293 $as_echo "$as_val"'`
4294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4295 $as_echo "$ac_res" >&6; }
4297 # Is the header compilable?
4298 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4299 $as_echo_n "checking $ac_header usability... " >&6; }
4300 cat >conftest.
$ac_ext <<_ACEOF
4303 cat confdefs.h
>>conftest.
$ac_ext
4304 cat >>conftest.
$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4307 #include <$ac_header>
4309 rm -f conftest.
$ac_objext
4310 if { (ac_try
="$ac_compile"
4312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4316 $as_echo "$ac_try_echo") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
4321 cat conftest.err >&5
4322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } && {
4324 test -z "$ac_c_werror_flag" ||
4325 test ! -s conftest.err
4326 } && test -s conftest.$ac_objext; then
4327 ac_header_compiler=yes
4329 $as_echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 ac_header_compiler=no
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4337 $as_echo "$ac_header_compiler" >&6; }
4339 # Is the header present?
4340 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4341 $as_echo_n "checking $ac_header presence... " >&6; }
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 #include <$ac_header>
4350 if { (ac_try="$ac_cpp conftest.$ac_ext"
4352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4353 *) ac_try_echo
=$ac_try;;
4355 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4356 $as_echo "$ac_try_echo") >&5
4357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4359 grep -v '^ *+' conftest.er1
>conftest.err
4361 cat conftest.err
>&5
4362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } >/dev
/null
&& {
4364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4367 ac_header_preproc
=yes
4369 $as_echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.
$ac_ext >&5
4372 ac_header_preproc
=no
4375 rm -f conftest.err conftest.
$ac_ext
4376 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4377 $as_echo "$ac_header_preproc" >&6; }
4379 # So? What about this header?
4380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4383 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4386 ac_header_preproc
=yes
4389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4390 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4392 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4394 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4396 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4400 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4404 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4405 $as_echo_n "checking for $ac_header... " >&6; }
4406 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4407 $as_echo_n "(cached) " >&6
4409 eval "$as_ac_Header=\$ac_header_preproc"
4411 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4412 $as_echo "$as_val"'`
4413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4414 $as_echo "$ac_res" >&6; }
4417 as_val
=`eval 'as_val=${'$as_ac_Header'}
4418 $as_echo "$as_val"'`
4419 if test "x$as_val" = x
""yes; then
4420 cat >>confdefs.h
<<_ACEOF
4421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4430 for ac_header
in fcntl.h fpu_control.h
4432 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4434 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4435 $as_echo_n "checking for $ac_header... " >&6; }
4436 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4437 $as_echo_n "(cached) " >&6
4439 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4440 $as_echo "$as_val"'`
4441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4442 $as_echo "$ac_res" >&6; }
4444 # Is the header compilable?
4445 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4446 $as_echo_n "checking $ac_header usability... " >&6; }
4447 cat >conftest.
$ac_ext <<_ACEOF
4450 cat confdefs.h
>>conftest.
$ac_ext
4451 cat >>conftest.
$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 $ac_includes_default
4454 #include <$ac_header>
4456 rm -f conftest.
$ac_objext
4457 if { (ac_try
="$ac_compile"
4459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4463 $as_echo "$ac_try_echo") >&5
4464 (eval "$ac_compile") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && {
4471 test -z "$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4473 } && test -s conftest.$ac_objext; then
4474 ac_header_compiler=yes
4476 $as_echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 ac_header_compiler=no
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4484 $as_echo "$ac_header_compiler" >&6; }
4486 # Is the header present?
4487 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4488 $as_echo_n "checking $ac_header presence... " >&6; }
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 #include <$ac_header>
4497 if { (ac_try="$ac_cpp conftest.$ac_ext"
4499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4500 *) ac_try_echo
=$ac_try;;
4502 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4503 $as_echo "$ac_try_echo") >&5
4504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4506 grep -v '^ *+' conftest.er1
>conftest.err
4508 cat conftest.err
>&5
4509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev
/null
&& {
4511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4514 ac_header_preproc
=yes
4516 $as_echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.
$ac_ext >&5
4519 ac_header_preproc
=no
4522 rm -f conftest.err conftest.
$ac_ext
4523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4524 $as_echo "$ac_header_preproc" >&6; }
4526 # So? What about this header?
4527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4530 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4532 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4533 ac_header_preproc
=yes
4536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4537 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4539 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4541 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4543 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4547 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4551 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4552 $as_echo_n "checking for $ac_header... " >&6; }
4553 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4554 $as_echo_n "(cached) " >&6
4556 eval "$as_ac_Header=\$ac_header_preproc"
4558 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4559 $as_echo "$as_val"'`
4560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4561 $as_echo "$ac_res" >&6; }
4564 as_val
=`eval 'as_val=${'$as_ac_Header'}
4565 $as_echo "$as_val"'`
4566 if test "x$as_val" = x
""yes; then
4567 cat >>confdefs.h
<<_ACEOF
4568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 for ac_header
in dlfcn.h errno.h sys
/stat.h
4580 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4581 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4583 $as_echo_n "checking for $ac_header... " >&6; }
4584 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4585 $as_echo_n "(cached) " >&6
4587 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4588 $as_echo "$as_val"'`
4589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4590 $as_echo "$ac_res" >&6; }
4592 # Is the header compilable?
4593 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4594 $as_echo_n "checking $ac_header usability... " >&6; }
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 #include <$ac_header>
4604 rm -f conftest.
$ac_objext
4605 if { (ac_try
="$ac_compile"
4607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611 $as_echo "$ac_try_echo") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 ac_header_compiler=yes
4624 $as_echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_header_compiler=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4632 $as_echo "$ac_header_compiler" >&6; }
4634 # Is the header present?
4635 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4636 $as_echo_n "checking $ac_header presence... " >&6; }
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <$ac_header>
4645 if { (ac_try="$ac_cpp conftest.$ac_ext"
4647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4648 *) ac_try_echo
=$ac_try;;
4650 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4651 $as_echo "$ac_try_echo") >&5
4652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4654 grep -v '^ *+' conftest.er1
>conftest.err
4656 cat conftest.err
>&5
4657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } >/dev
/null
&& {
4659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4662 ac_header_preproc
=yes
4664 $as_echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.
$ac_ext >&5
4667 ac_header_preproc
=no
4670 rm -f conftest.err conftest.
$ac_ext
4671 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4672 $as_echo "$ac_header_preproc" >&6; }
4674 # So? What about this header?
4675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4678 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4680 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4681 ac_header_preproc
=yes
4684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4685 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4687 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4689 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4691 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4695 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4699 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4700 $as_echo_n "checking for $ac_header... " >&6; }
4701 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4702 $as_echo_n "(cached) " >&6
4704 eval "$as_ac_Header=\$ac_header_preproc"
4706 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4707 $as_echo "$as_val"'`
4708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4709 $as_echo "$ac_res" >&6; }
4712 as_val
=`eval 'as_val=${'$as_ac_Header'}
4713 $as_echo "$as_val"'`
4714 if test "x$as_val" = x
""yes; then
4715 cat >>confdefs.h
<<_ACEOF
4716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4727 for ac_func
in getrusage
time sigaction __setfpucw
4729 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4730 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4731 $as_echo_n "checking for $ac_func... " >&6; }
4732 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4733 $as_echo_n "(cached) " >&6
4735 cat >conftest.
$ac_ext <<_ACEOF
4738 cat confdefs.h
>>conftest.
$ac_ext
4739 cat >>conftest.
$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4743 #define $ac_func innocuous_$ac_func
4745 /* System header to define __stub macros and hopefully few prototypes,
4746 which can conflict with char $ac_func (); below.
4747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4748 <limits.h> exists even on freestanding compilers. */
4751 # include <limits.h>
4753 # include <assert.h>
4758 /* Override any GCC internal prototype to avoid an error.
4759 Use char because int might match the return type of a GCC
4760 builtin and then its argument prototype would still apply. */
4765 /* The GNU C library defines this for functions which it implements
4766 to always fail with ENOSYS. Some functions are actually named
4767 something starting with __ and the normal name is an alias. */
4768 #if defined __stub_$ac_func || defined __stub___$ac_func
4780 rm -f conftest.
$ac_objext conftest
$ac_exeext
4781 if { (ac_try
="$ac_link"
4783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787 $as_echo "$ac_try_echo") >&5
4788 (eval "$ac_link") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && {
4795 test -z "$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4797 } && test -s conftest$ac_exeext && {
4798 test "$cross_compiling" = yes ||
4799 $as_test_x conftest$ac_exeext
4801 eval "$as_ac_var=yes"
4803 $as_echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 eval "$as_ac_var=no"
4809 rm -rf conftest.dSYM
4810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4811 conftest$ac_exeext conftest.$ac_ext
4813 ac_res=`eval 'as_val=${'$as_ac_var'}
4814 $as_echo "$as_val"'`
4815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4816 $as_echo "$ac_res" >&6; }
4817 as_val=`eval 'as_val=${'$as_ac_var'}
4818 $as_echo "$as_val"'`
4819 if test "x$as_val" = x""yes; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
4828 # Check for socket libraries
4830 { $as_echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4831 $as_echo_n "checking for bind in -lsocket... " >&6; }
4832 if test "${ac_cv_lib_socket_bind+set}" = set; then
4833 $as_echo_n "(cached) " >&6
4835 ac_check_lib_save_LIBS=$LIBS
4836 LIBS="-lsocket $LIBS"
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 /* Override any GCC internal prototype to avoid an error.
4845 Use char because int might match the return type of a GCC
4846 builtin and then its argument prototype would still apply. */
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (ac_try="$ac_link"
4862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4863 *) ac_try_echo
=$ac_try;;
4865 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4866 $as_echo "$ac_try_echo") >&5
4867 (eval "$ac_link") 2>conftest.er1
4869 grep -v '^ *+' conftest.er1
>conftest.err
4871 cat conftest.err
>&5
4872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest
$ac_exeext && {
4877 test "$cross_compiling" = yes ||
4878 $as_test_x conftest
$ac_exeext
4880 ac_cv_lib_socket_bind
=yes
4882 $as_echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.
$ac_ext >&5
4885 ac_cv_lib_socket_bind
=no
4888 rm -rf conftest.dSYM
4889 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4890 conftest
$ac_exeext conftest.
$ac_ext
4891 LIBS
=$ac_check_lib_save_LIBS
4893 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4894 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4895 if test "x$ac_cv_lib_socket_bind" = x
""yes; then
4896 cat >>confdefs.h
<<_ACEOF
4897 #define HAVE_LIBSOCKET 1
4900 LIBS
="-lsocket $LIBS"
4905 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4906 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4907 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4908 $as_echo_n "(cached) " >&6
4910 ac_check_lib_save_LIBS
=$LIBS
4912 cat >conftest.
$ac_ext <<_ACEOF
4915 cat confdefs.h
>>conftest.
$ac_ext
4916 cat >>conftest.
$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4919 /* Override any GCC internal prototype to avoid an error.
4920 Use char because int might match the return type of a GCC
4921 builtin and then its argument prototype would still apply. */
4925 char gethostbyname ();
4929 return gethostbyname ();
4934 rm -f conftest.
$ac_objext conftest
$ac_exeext
4935 if { (ac_try
="$ac_link"
4937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_link") 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest$ac_exeext && {
4952 test "$cross_compiling" = yes ||
4953 $as_test_x conftest$ac_exeext
4955 ac_cv_lib_nsl_gethostbyname=yes
4957 $as_echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 ac_cv_lib_nsl_gethostbyname=no
4963 rm -rf conftest.dSYM
4964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4965 conftest$ac_exeext conftest.$ac_ext
4966 LIBS=$ac_check_lib_save_LIBS
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4969 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4970 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
4971 cat >>confdefs.h <<_ACEOF
4972 #define HAVE_LIBNSL 1
4980 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4981 # using the same condition.
4982 { $as_echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4983 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4984 if test "${ac_cv_search_zlibVersion+set}" = set; then
4985 $as_echo_n "(cached) " >&6
4987 ac_func_search_save_LIBS=$LIBS
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4995 /* Override any GCC internal prototype to avoid an error.
4996 Use char because int might match the return type of a GCC
4997 builtin and then its argument prototype would still apply. */
5001 char zlibVersion ();
5005 return zlibVersion ();
5010 for ac_lib in '' z; do
5011 if test -z "$ac_lib"; then
5012 ac_res="none required"
5015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5017 rm -f conftest.$ac_objext conftest$ac_exeext
5018 if { (ac_try="$ac_link"
5020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5021 *) ac_try_echo
=$ac_try;;
5023 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5024 $as_echo "$ac_try_echo") >&5
5025 (eval "$ac_link") 2>conftest.er1
5027 grep -v '^ *+' conftest.er1
>conftest.err
5029 cat conftest.err
>&5
5030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } && {
5032 test -z "$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5034 } && test -s conftest
$ac_exeext && {
5035 test "$cross_compiling" = yes ||
5036 $as_test_x conftest
$ac_exeext
5038 ac_cv_search_zlibVersion
=$ac_res
5040 $as_echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.
$ac_ext >&5
5046 rm -rf conftest.dSYM
5047 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5049 if test "${ac_cv_search_zlibVersion+set}" = set; then
5053 if test "${ac_cv_search_zlibVersion+set}" = set; then
5056 ac_cv_search_zlibVersion
=no
5059 LIBS
=$ac_func_search_save_LIBS
5061 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
5062 $as_echo "$ac_cv_search_zlibVersion" >&6; }
5063 ac_res
=$ac_cv_search_zlibVersion
5064 if test "$ac_res" != no
; then
5065 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5067 for ac_header
in zlib.h
5069 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5071 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5072 $as_echo_n "checking for $ac_header... " >&6; }
5073 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5074 $as_echo_n "(cached) " >&6
5076 ac_res
=`eval 'as_val=${'$as_ac_Header'}
5077 $as_echo "$as_val"'`
5078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5079 $as_echo "$ac_res" >&6; }
5081 # Is the header compilable?
5082 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5083 $as_echo_n "checking $ac_header usability... " >&6; }
5084 cat >conftest.
$ac_ext <<_ACEOF
5087 cat confdefs.h
>>conftest.
$ac_ext
5088 cat >>conftest.
$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5091 #include <$ac_header>
5093 rm -f conftest.
$ac_objext
5094 if { (ac_try
="$ac_compile"
5096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101 (eval "$ac_compile") 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && {
5108 test -z "$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 } && test -s conftest.$ac_objext; then
5111 ac_header_compiler=yes
5113 $as_echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_header_compiler=no
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5121 $as_echo "$ac_header_compiler" >&6; }
5123 # Is the header present?
5124 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5125 $as_echo_n "checking $ac_header presence... " >&6; }
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #include <$ac_header>
5134 if { (ac_try="$ac_cpp conftest.$ac_ext"
5136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5137 *) ac_try_echo
=$ac_try;;
5139 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5140 $as_echo "$ac_try_echo") >&5
5141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5143 grep -v '^ *+' conftest.er1
>conftest.err
5145 cat conftest.err
>&5
5146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev
/null
&& {
5148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5151 ac_header_preproc
=yes
5153 $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.
$ac_ext >&5
5156 ac_header_preproc
=no
5159 rm -f conftest.err conftest.
$ac_ext
5160 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5161 $as_echo "$ac_header_preproc" >&6; }
5163 # So? What about this header?
5164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5167 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5169 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5170 ac_header_preproc
=yes
5173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5174 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5176 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5178 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5180 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5182 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5184 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5189 $as_echo_n "checking for $ac_header... " >&6; }
5190 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5191 $as_echo_n "(cached) " >&6
5193 eval "$as_ac_Header=\$ac_header_preproc"
5195 ac_res
=`eval 'as_val=${'$as_ac_Header'}
5196 $as_echo "$as_val"'`
5197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5198 $as_echo "$ac_res" >&6; }
5201 as_val
=`eval 'as_val=${'$as_ac_Header'}
5202 $as_echo "$as_val"'`
5203 if test "x$as_val" = x
""yes; then
5204 cat >>confdefs.h
<<_ACEOF
5205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 .
${srcdir}/..
/..
/bfd
/configure.
host
5219 USE_MAINTAINER_MODE
=no
5220 # Check whether --enable-maintainer-mode was given.
5221 if test "${enable_maintainer_mode+set}" = set; then
5222 enableval
=$enable_maintainer_mode; case "${enableval}" in
5223 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
5225 *) { { $as_echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
5226 $as_echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
5227 { (exit 1); exit 1; }; }; MAINT
="#" ;;
5229 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
5230 echo "Setting maintainer mode" 6>&1
5238 # Check whether --enable-sim-bswap was given.
5239 if test "${enable_sim_bswap+set}" = set; then
5240 enableval
=$enable_sim_bswap; case "${enableval}" in
5241 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
5242 no
) sim_bswap
="-DWITH_BSWAP=0";;
5243 *) { { $as_echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
5244 $as_echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
5245 { (exit 1); exit 1; }; }; sim_bswap
="";;
5247 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
5248 echo "Setting bswap flags = $sim_bswap" 6>&1
5256 # Check whether --enable-sim-cflags was given.
5257 if test "${enable_sim_cflags+set}" = set; then
5258 enableval
=$enable_sim_cflags; case "${enableval}" in
5259 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
5260 trace
) { { $as_echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
5261 $as_echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
5262 { (exit 1); exit 1; }; }; sim_cflags
="";;
5264 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5266 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
5267 echo "Setting sim cflags = $sim_cflags" 6>&1
5275 # Check whether --enable-sim-debug was given.
5276 if test "${enable_sim_debug+set}" = set; then
5277 enableval
=$enable_sim_debug; case "${enableval}" in
5278 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
5279 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
5280 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
5282 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
5283 echo "Setting sim debug = $sim_debug" 6>&1
5291 # Check whether --enable-sim-stdio was given.
5292 if test "${enable_sim_stdio+set}" = set; then
5293 enableval
=$enable_sim_stdio; case "${enableval}" in
5294 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
5295 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
5296 *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
5297 $as_echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
5298 { (exit 1); exit 1; }; }; sim_stdio
="";;
5300 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
5301 echo "Setting stdio flags = $sim_stdio" 6>&1
5309 # Check whether --enable-sim-trace was given.
5310 if test "${enable_sim_trace+set}" = set; then
5311 enableval
=$enable_sim_trace; case "${enableval}" in
5312 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
5313 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
5315 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
5318 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
5319 if test x
"$sim_trace" = x
; then
5320 sim_trace
="-DWITH_TRACE='(TRACE_$x"
5322 sim_trace
="${sim_trace}|TRACE_$x"
5325 sim_trace
="$sim_trace)'" ;;
5327 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
5328 echo "Setting sim trace = $sim_trace" 6>&1
5336 # Check whether --enable-sim-profile was given.
5337 if test "${enable_sim_profile+set}" = set; then
5338 enableval
=$enable_sim_profile; case "${enableval}" in
5339 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
5340 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
5342 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
5345 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
5346 if test x
"$sim_profile" = x
; then
5347 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
5349 sim_profile
="${sim_profile}|PROFILE_$x"
5352 sim_profile
="$sim_profile)'" ;;
5354 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
5355 echo "Setting sim profile = $sim_profile" 6>&1
5358 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
5364 # Check whether --with-pkgversion was given.
5365 if test "${with_pkgversion+set}" = set; then
5366 withval
=$with_pkgversion; case "$withval" in
5367 yes) { { $as_echo "$as_me:$LINENO: error: package version not specified" >&5
5368 $as_echo "$as_me: error: package version not specified" >&2;}
5369 { (exit 1); exit 1; }; } ;;
5371 *) PKGVERSION
="($withval) " ;;
5382 # Check whether --with-bugurl was given.
5383 if test "${with_bugurl+set}" = set; then
5384 withval
=$with_bugurl; case "$withval" in
5385 yes) { { $as_echo "$as_me:$LINENO: error: bug URL not specified" >&5
5386 $as_echo "$as_me: error: bug URL not specified" >&2;}
5387 { (exit 1); exit 1; }; } ;;
5390 *) BUGURL
="$withval"
5394 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5404 REPORT_BUGS_TO
="<$BUGURL>"
5405 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5412 cat >>confdefs.h
<<_ACEOF
5413 #define PKGVERSION "$PKGVERSION"
5417 cat >>confdefs.h
<<_ACEOF
5418 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5422 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5423 $as_echo_n "checking return type of signal handlers... " >&6; }
5424 if test "${ac_cv_type_signal+set}" = set; then
5425 $as_echo_n "(cached) " >&6
5427 cat >conftest.
$ac_ext <<_ACEOF
5430 cat confdefs.h
>>conftest.
$ac_ext
5431 cat >>conftest.
$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <sys/types.h>
5439 return *(signal (0, 0)) (0) == 1;
5444 rm -f conftest.
$ac_objext
5445 if { (ac_try
="$ac_compile"
5447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5451 $as_echo "$ac_try_echo") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5454 grep -v '^ *+' conftest.er1 >conftest.err
5456 cat conftest.err >&5
5457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_type_signal=int
5464 $as_echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_cv_type_signal=void
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5473 $as_echo "$ac_cv_type_signal" >&6; }
5475 cat >>confdefs.h <<_ACEOF
5476 #define RETSIGTYPE $ac_cv_type_signal
5486 sim_link_links=tconfig.h
5487 if test -f ${srcdir}/tconfig.in
5489 sim_link_files=tconfig.in
5491 sim_link_files=../common/tconfig.in
5494 # targ-vals.def points to the libc macro description file.
5496 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
5498 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
5499 sim_link_links="${sim_link_links} targ-vals.def"
5503 wire_endian="BIG_ENDIAN"
5505 # Check whether --enable-sim-endian was given.
5506 if test "${enable_sim_endian+set}" = set; then
5507 enableval=$enable_sim_endian; case "${enableval}" in
5508 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5509 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5510 yes) if test x"$wire_endian" != x; then
5511 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5513 if test x"$default_endian" != x; then
5514 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5516 echo "No hard-wired endian for target $target" 1>&6
5517 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5520 no) if test x"$default_endian" != x; then
5521 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5523 if test x"$wire_endian" != x; then
5524 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5526 echo "No default endian for target $target" 1>&6
5527 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5530 *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
5531 $as_echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
5532 { (exit 1); exit 1; }; }; sim_endian="";;
5534 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5535 echo "Setting endian flags = $sim_endian" 6>&1
5538 if test x"$default_endian" != x; then
5539 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5541 if test x"$wire_endian" != x; then
5542 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5549 wire_alignment="STRICT_ALIGNMENT"
5550 default_alignment="STRICT_ALIGNMENT"
5552 # Check whether --enable-sim-alignment was given.
5553 if test "${enable_sim_alignment+set}" = set; then
5554 enableval=$enable_sim_alignment; case "${enableval}" in
5555 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5556 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5557 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
5558 yes) if test x"$wire_alignment" != x; then
5559 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
5561 if test x"$default_alignment" != x; then
5562 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
5564 echo "No hard-wired alignment for target $target" 1>&6
5565 sim_alignment="-DWITH_ALIGNMENT=0"
5568 no) if test x"$default_alignment" != x; then
5569 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
5571 if test x"$wire_alignment" != x; then
5572 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
5574 echo "No default alignment for target $target" 1>&6
5575 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
5578 *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
5579 $as_echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
5580 { (exit 1); exit 1; }; }; sim_alignment="";;
5582 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5583 echo "Setting alignment flags = $sim_alignment" 6>&1
5586 if test x"$default_alignment" != x; then
5587 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
5589 if test x"$wire_alignment" != x; then
5590 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
5598 # Check whether --enable-sim-hostendian was given.
5599 if test "${enable_sim_hostendian+set}" = set; then
5600 enableval=$enable_sim_hostendian; case "${enableval}" in
5601 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
5602 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
5603 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
5604 *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
5605 $as_echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
5606 { (exit 1); exit 1; }; }; sim_hostendian="";;
5608 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
5609 echo "Setting hostendian flags = $sim_hostendian" 6>&1
5613 if test "x$cross_compiling" = "xno"; then
5615 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5616 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5617 if test "${ac_cv_c_bigendian+set}" = set; then
5618 $as_echo_n "(cached) " >&6
5620 ac_cv_c_bigendian=unknown
5621 # See if we're dealing with a universal compiler.
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #ifndef __APPLE_CC__
5629 not a universal capable compiler
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5638 *) ac_try_echo
=$ac_try;;
5640 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5641 $as_echo "$ac_try_echo") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5644 grep -v '^ *+' conftest.er1
>conftest.err
5646 cat conftest.err
>&5
5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_c_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest.
$ac_objext; then
5653 # Check for potential -arch flags. It is not universal unless
5654 # there are some -arch flags. Note that *ppc* also matches
5655 # ppc64. This check is also rather less than ideal.
5656 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
5657 *-arch*ppc
*|
*-arch*i386
*|
*-arch*x86_64
*) ac_cv_c_bigendian
=universal
;;
5660 $as_echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.
$ac_ext >&5
5666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5667 if test $ac_cv_c_bigendian = unknown
; then
5668 # See if sys/param.h defines the BYTE_ORDER macro.
5669 cat >conftest.
$ac_ext <<_ACEOF
5672 cat confdefs.h
>>conftest.
$ac_ext
5673 cat >>conftest.
$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <sys/types.h>
5676 #include <sys/param.h>
5681 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5682 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5691 rm -f conftest.
$ac_objext
5692 if { (ac_try
="$ac_compile"
5694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5698 $as_echo "$ac_try_echo") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5701 grep -v '^ *+' conftest.er1 >conftest.err
5703 cat conftest.err >&5
5704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 # It does; now see whether it defined to BIG_ENDIAN or not.
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <sys/types.h>
5717 #include <sys/param.h>
5722 #if BYTE_ORDER != BIG_ENDIAN
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5734 *) ac_try_echo
=$ac_try;;
5736 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5737 $as_echo "$ac_try_echo") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5740 grep -v '^ *+' conftest.er1
>conftest.err
5742 cat conftest.err
>&5
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest.
$ac_objext; then
5748 ac_cv_c_bigendian
=yes
5750 $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.
$ac_ext >&5
5753 ac_cv_c_bigendian
=no
5756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5758 $as_echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.
$ac_ext >&5
5764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5766 if test $ac_cv_c_bigendian = unknown
; then
5767 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5768 cat >conftest.
$ac_ext <<_ACEOF
5771 cat confdefs.h
>>conftest.
$ac_ext
5772 cat >>conftest.
$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5779 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5787 rm -f conftest.
$ac_objext
5788 if { (ac_try
="$ac_compile"
5790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5794 $as_echo "$ac_try_echo") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest.$ac_objext; then
5805 # It does; now see whether it defined to _BIG_ENDIAN or not.
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5825 rm -f conftest.$ac_objext
5826 if { (ac_try="$ac_compile"
5828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5829 *) ac_try_echo
=$ac_try;;
5831 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1
>conftest.err
5837 cat conftest.err
>&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.
$ac_objext; then
5843 ac_cv_c_bigendian
=yes
5845 $as_echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 ac_cv_c_bigendian
=no
5851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 $as_echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.
$ac_ext >&5
5859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5861 if test $ac_cv_c_bigendian = unknown
; then
5862 # Compile a test program.
5863 if test "$cross_compiling" = yes; then
5864 # Try to guess by grepping values from an object file.
5865 cat >conftest.
$ac_ext <<_ACEOF
5868 cat confdefs.h
>>conftest.
$ac_ext
5869 cat >>conftest.
$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 short int ascii_mm[] =
5872 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5873 short int ascii_ii[] =
5874 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5875 int use_ascii (int i) {
5876 return ascii_mm[i] + ascii_ii[i];
5878 short int ebcdic_ii[] =
5879 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5880 short int ebcdic_mm[] =
5881 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5882 int use_ebcdic (int i) {
5883 return ebcdic_mm[i] + ebcdic_ii[i];
5890 return use_ascii (foo) == use_ebcdic (foo);
5895 rm -f conftest.
$ac_objext
5896 if { (ac_try
="$ac_compile"
5898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5902 $as_echo "$ac_try_echo") >&5
5903 (eval "$ac_compile") 2>conftest.er1
5905 grep -v '^ *+' conftest.er1 >conftest.err
5907 cat conftest.err >&5
5908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } && {
5910 test -z "$ac_c_werror_flag" ||
5911 test ! -s conftest.err
5912 } && test -s conftest.$ac_objext; then
5913 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5914 ac_cv_c_bigendian=yes
5916 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5917 if test "$ac_cv_c_bigendian" = unknown; then
5918 ac_cv_c_bigendian=no
5920 # finding both strings is unlikely to happen, but who knows?
5921 ac_cv_c_bigendian=unknown
5925 $as_echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 $ac_includes_default
5944 /* Are we little or big endian? From Harbison&Steele. */
5948 char c[sizeof (long int)];
5951 return u.c[sizeof (long int) - 1] == 1;
5957 rm -f conftest$ac_exeext
5958 if { (ac_try="$ac_link"
5960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5961 *) ac_try_echo
=$ac_try;;
5963 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5964 $as_echo "$ac_try_echo") >&5
5965 (eval "$ac_link") 2>&5
5967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5969 { (case "(($ac_try" in
5970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5974 $as_echo "$ac_try_echo") >&5
5975 (eval "$ac_try") 2>&5
5977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 ac_cv_c_bigendian=no
5981 $as_echo "$as_me: program exited with status $ac_status" >&5
5982 $as_echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5986 ac_cv_c_bigendian=yes
5988 rm -rf conftest.dSYM
5989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5995 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5996 $as_echo "$ac_cv_c_bigendian" >&6; }
5997 case $ac_cv_c_bigendian in #(
5999 cat >>confdefs.h <<\_ACEOF
6000 #define WORDS_BIGENDIAN 1
6007 cat >>confdefs.h <<\_ACEOF
6008 #define AC_APPLE_UNIVERSAL_BUILD 1
6013 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6014 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6015 $as_echo "$as_me: error: unknown endianness
6016 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6017 { (exit 1); exit 1; }; } ;;
6020 if test $ac_cv_c_bigendian = yes; then
6021 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6023 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6026 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
6031 default_sim_scache="16384"
6032 # Check whether --enable-sim-scache was given.
6033 if test "${enable_sim_scache+set}" = set; then
6034 enableval=$enable_sim_scache; case "${enableval}" in
6035 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
6036 no) sim_scache="-DWITH_SCACHE=0" ;;
6037 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
6038 *) { { $as_echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
6039 $as_echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
6040 { (exit 1); exit 1; }; };
6043 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
6044 echo "Setting scache size = $sim_scache" 6>&1
6047 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
6052 default_sim_default_model="lm32"
6053 # Check whether --enable-sim-default-model was given.
6054 if test "${enable_sim_default_model+set}" = set; then
6055 enableval=$enable_sim_default_model; case "${enableval}" in
6056 yes|no) { { $as_echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
6057 $as_echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
6058 { (exit 1); exit 1; }; };;
6059 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
6061 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
6062 echo "Setting default model = $sim_default_model" 6>&1
6065 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
6070 # Check whether --enable-sim-environment was given.
6071 if test "${enable_sim_environment+set}" = set; then
6072 enableval=$enable_sim_environment; case "${enableval}" in
6073 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
6074 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
6075 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
6076 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
6077 *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
6078 $as_echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
6079 { (exit 1); exit 1; }; };
6080 sim_environment="";;
6082 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
6083 echo "Setting sim environment = $sim_environment" 6>&1
6086 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
6092 cgendir='$(srcdir)/../../cgen'
6093 # Check whether --enable-cgen-maint was given.
6094 if test "${enable_cgen_maint+set}" = set; then
6095 enableval=$enable_cgen_maint; case "${enableval}" in
6096 yes) cgen_maint=yes ;;
6097 no) cgen_maint=no ;;
6099 # argument is cgen install directory (not implemented yet).
6100 # Having a `share
' directory might be more appropriate for the .scm,
6102 cgendir=${cgen_maint}/lib/cgen
6107 if test x${cgen_maint} != xno ; then
6117 if test x
"yes" = x
"yes"; then
6123 hardware
="core pal glue"
6125 hardware
="core pal glue lm32cpu lm32timer lm32uart"
6127 sim_hw_cflags
="-DWITH_HW=1"
6129 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
6130 # Check whether --enable-sim-hardware was given.
6131 if test "${enable_sim_hardware+set}" = set; then
6132 enableval
=$enable_sim_hardware;
6133 case "${enableval}" in
6136 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
6137 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
6138 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
6140 if test "$sim_hw_p" != yes; then
6142 sim_hw_cflags
="-DWITH_HW=0"
6145 sim_hw_cflags
="-DWITH_HW=1"
6148 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
6149 for i
in $hardware ; do
6152 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
6156 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
6157 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
6161 if test "$sim_hw_p" != yes; then
6163 sim_hw_cflags
="-DWITH_HW=0"
6166 if test x
"$silent" != x
"yes"; then
6167 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
6173 ac_sources
="$sim_link_files"
6174 ac_dests
="$sim_link_links"
6175 while test -n "$ac_sources"; do
6176 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
6177 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
6178 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
6180 ac_config_links
="$ac_config_links $ac_config_links_1"
6183 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
6184 cgen_breaks
="break cgen_rtx_error";
6187 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
6189 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
6191 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
6193 ac_config_commands
="$ac_config_commands Makefile"
6195 ac_config_commands
="$ac_config_commands stamp-h"
6197 cat >confcache
<<\_ACEOF
6198 # This file is a shell script that caches the results of configure
6199 # tests run on this system so they can be shared between configure
6200 # scripts and configure runs, see configure's option --config-cache.
6201 # It is not useful on other systems. If it contains results you don't
6202 # want to keep, you may remove or edit it.
6204 # config.status only pays attention to the cache file if you give it
6205 # the --recheck option to rerun configure.
6207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6213 # The following way of writing the cache mishandles newlines in values,
6214 # but we know of no workaround that is simple, portable, and efficient.
6215 # So, we kill variables containing newlines.
6216 # Ultrix sh set writes to stderr and can't be redirected directly,
6217 # and sets the high bit in the cache file unless we assign to the vars.
6219 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6220 eval ac_val
=\$
$ac_var
6224 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
6225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6228 _ | IFS | as_nl
) ;; #(
6229 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6230 *) $as_unset $ac_var ;;
6236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6237 *${as_nl}ac_space
=\
*)
6238 # `set' does not quote correctly, so add quotes (double-quote
6239 # substitution turns \\\\ into \\, and sed turns \\ into \).
6242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6245 # `set' quotes correctly as required by POSIX, so do not add quotes.
6246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6259 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6260 if test -w "$cache_file"; then
6261 test "x$cache_file" != "x/dev/null" &&
6262 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
6263 $as_echo "$as_me: updating cache $cache_file" >&6;}
6264 cat confcache
>$cache_file
6266 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6267 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6272 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6273 # Let make expand exec_prefix.
6274 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6276 DEFS
=-DHAVE_CONFIG_H
6280 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6281 # 1. Remove the extension, and $U if already installed.
6282 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6283 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6285 # will be set to the directory where LIBOBJS objects are built.
6286 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6287 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6291 LTLIBOBJS
=$ac_ltlibobjs
6296 : ${CONFIG_STATUS=./config.status}
6298 ac_clean_files_save
=$ac_clean_files
6299 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6300 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6301 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6302 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6304 # Generated by $as_me.
6305 # Run this file to recreate the current configuration.
6306 # Compiler output produced by configure, useful for debugging
6307 # configure, is in config.log if it exists.
6312 SHELL=\${CONFIG_SHELL-$SHELL}
6315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6316 ## --------------------- ##
6317 ## M4sh Initialization. ##
6318 ## --------------------- ##
6320 # Be more Bourne compatible
6321 DUALCASE
=1; export DUALCASE
# for MKS sh
6322 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6325 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6326 # is contrary to our usage. Disable this feature.
6327 alias -g '${1+"$@"}'='"$@"'
6328 setopt NO_GLOB_SUBST
6330 case `(set -o) 2>/dev/null` in
6331 *posix
*) set -o posix
;;
6340 # Avoid depending upon Character Ranges.
6341 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6342 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6343 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6344 as_cr_digits
='0123456789'
6345 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6350 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6351 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6352 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6354 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6355 as_echo='printf %s
\n'
6356 as_echo_n='printf %s
'
6358 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6359 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6360 as_echo_n='/usr
/ucb
/echo -n'
6362 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6363 as_echo_n_body='eval
6367 expr "X$arg" : "X\\(.*\\)$as_nl";
6368 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6370 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6372 export as_echo_n_body
6373 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6376 as_echo='sh
-c $as_echo_body as_echo
'
6379 # The user is always right.
6380 if test "${PATH_SEPARATOR+set}" != set; then
6382 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6383 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6388 # Support unset when possible.
6389 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6397 # We need space, tab and new line, in precisely that order. Quoting is
6398 # there to prevent editors from complaining about space-tab.
6399 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6400 # splitting by setting IFS to empty value.)
6403 # Find who we are. Look in the path if we contain no directory separator.
6405 *[\\/]* ) as_myself=$0 ;;
6406 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6417 # We did not find ourselves, most probably we were run as `sh COMMAND'
6418 # in which case we are not to be found in the path.
6419 if test "x$as_myself" = x
; then
6422 if test ! -f "$as_myself"; then
6423 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6424 { (exit 1); exit 1; }
6427 # Work around bugs in pre-3.0 UWIN ksh.
6428 for as_var
in ENV MAIL MAILPATH
6429 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
6441 # Required to use basename.
6442 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6443 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6449 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6450 as_basename
=basename
6456 # Name of the executable.
6457 as_me
=`$as_basename -- "$0" ||
6458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6459 X"$0" : 'X\(//\)$' \| \
6460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6462 sed '/^.*\/\([^/][^/]*\)\/*$/{
6483 test "x$as_lineno_1" != "x$as_lineno_2" &&
6484 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
6486 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6487 # uniformly replaced by the line number. The first 'sed' inserts a
6488 # line-number line after each line using $LINENO; the second 'sed'
6489 # does the real work. The second script uses 'N' to pair each
6490 # line-number line with the line containing $LINENO, and appends
6491 # trailing '-' during substitution so that $LINENO is not a special
6493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6494 # scripts with optimization help from Paolo Bonzini. Blame Lee
6495 # E. McMahon (1931-1989) for sed's syntax. :-)
6507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6511 chmod +x
"$as_me.lineno" ||
6512 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6513 { (exit 1); exit 1; }; }
6515 # Don't try to exec as it changes $[0], causing all sort of problems
6516 # (the dirname of $[0] is not the place where we might find the
6517 # original and so on. Autoconf is especially sensitive to this).
6519 # Exit status is that of the last command.
6524 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6530 ECHO_C
= ECHO_N
= ECHO_T
=
6533 case `echo 'x\c'` in
6534 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6540 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6541 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6547 rm -f conf$$ conf$$.exe conf$$.
file
6548 if test -d conf$$.dir
; then
6549 rm -f conf$$.dir
/conf$$.
file
6552 mkdir conf$$.dir
2>/dev
/null
6554 if (echo >conf$$.
file) 2>/dev
/null
; then
6555 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6557 # ... but there are two gotchas:
6558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6560 # In both cases, we have to default to `cp -p'.
6561 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6563 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6571 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6572 rmdir conf$$.dir
2>/dev
/null
6574 if mkdir
-p .
2>/dev
/null
; then
6577 test -d .
/-p && rmdir .
/-p
6581 if test -x / >/dev
/null
2>&1; then
6584 if ls -dL / >/dev
/null
2>&1; then
6591 if test -d "$1"; then
6597 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6598 ???[sx]*):;;*)false;;esac;fi
6602 as_executable_p
=$as_test_x
6604 # Sed expression to map a string onto a valid CPP name.
6605 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6607 # Sed expression to map a string onto a valid variable name.
6608 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6613 # Save the log message, to keep $[0] and so on meaningful, and to
6614 # report actual input values of CONFIG_FILES etc. instead of their
6615 # values after options handling.
6617 This file was extended by $as_me, which was
6618 generated by GNU Autoconf 2.63. Invocation command line was
6620 CONFIG_FILES = $CONFIG_FILES
6621 CONFIG_HEADERS = $CONFIG_HEADERS
6622 CONFIG_LINKS = $CONFIG_LINKS
6623 CONFIG_COMMANDS = $CONFIG_COMMANDS
6626 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6631 case $ac_config_files in *"
6632 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6635 case $ac_config_headers in *"
6636 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6641 # Files that config.status was made for.
6642 config_files="$ac_config_files"
6643 config_headers="$ac_config_headers"
6644 config_links="$ac_config_links"
6645 config_commands="$ac_config_commands"
6649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6651 \`$as_me' instantiates files from templates according to the
6652 current configuration.
6654 Usage: $0 [OPTION]... [FILE]...
6656 -h, --help print this help, then exit
6657 -V, --version print version number and configuration settings, then exit
6658 -q, --quiet, --silent
6659 do not print progress messages
6660 -d, --debug don't remove temporary files
6661 --recheck update $as_me by reconfiguring in the same conditions
6662 --file=FILE[:TEMPLATE]
6663 instantiate the configuration file FILE
6664 --header=FILE[:TEMPLATE]
6665 instantiate the configuration header FILE
6667 Configuration files:
6670 Configuration headers:
6673 Configuration links:
6676 Configuration commands:
6679 Report bugs to <bug-autoconf@gnu.org>."
6682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6685 configured by $0, generated by GNU Autoconf 2.63,
6686 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6688 Copyright (C) 2008 Free Software Foundation, Inc.
6689 This config.status script is free software; the Free Software Foundation
6690 gives unlimited permission to copy, distribute and modify it."
6695 test -n "\$AWK" || AWK=awk
6698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6699 # The default lists apply if the user does not specify any file.
6705 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6706 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6717 # Handling of the options.
6718 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6720 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6721 $as_echo "$ac_cs_version"; exit ;;
6722 --debug |
--debu |
--deb |
--de |
--d |
-d )
6724 --file |
--fil |
--fi |
--f )
6727 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6729 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
6730 ac_need_defaults
=false
;;
6731 --header |
--heade |
--head |
--hea )
6734 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6736 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
6737 ac_need_defaults
=false
;;
6739 # Conflict between --help and --header
6740 { $as_echo "$as_me: error: ambiguous option: $1
6741 Try \`$0 --help' for more information." >&2
6742 { (exit 1); exit 1; }; };;
6743 --help |
--hel |
-h )
6744 $as_echo "$ac_cs_usage"; exit ;;
6745 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6746 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6750 -*) { $as_echo "$as_me: error: unrecognized option: $1
6751 Try \`$0 --help' for more information." >&2
6752 { (exit 1); exit 1; }; } ;;
6754 *) ac_config_targets
="$ac_config_targets $1"
6755 ac_need_defaults
=false
;;
6761 ac_configure_extra_args
=
6763 if $ac_cs_silent; then
6765 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6770 if \$ac_cs_recheck; then
6771 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6773 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6774 CONFIG_SHELL='$SHELL'
6780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6785 ## Running $as_me. ##
6791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6796 # Handling of arguments.
6797 for ac_config_target
in $ac_config_targets
6799 case $ac_config_target in
6800 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6801 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6802 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6803 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6804 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6805 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6806 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6808 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6809 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6810 { (exit 1); exit 1; }; };;
6815 # If the user did not use the arguments to specify the items to instantiate,
6816 # then the envvar interface is used. Set only those that are not.
6817 # We use the long form for the default assignment because of an extremely
6818 # bizarre bug on SunOS 4.1.3.
6819 if $ac_need_defaults; then
6820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6821 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6822 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6826 # Have a temporary directory for convenience. Make it in the build tree
6827 # simply because there is no reason against having it here, and in addition,
6828 # creating and moving files from /tmp can sometimes cause problems.
6829 # Hook for its removal unless debugging.
6830 # Note that there is a small window in which the directory will not be cleaned:
6831 # after its creation but before its name has been assigned to `$tmp'.
6835 trap 'exit_status=$?
6836 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6838 trap '{ (exit 1); exit 1; }' 1 2 13 15
6840 # Create a (secure) tmp directory for tmp files.
6843 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6844 test -n "$tmp" && test -d "$tmp"
6847 tmp
=.
/conf$$
-$RANDOM
6848 (umask 077 && mkdir
"$tmp")
6851 $as_echo "$as_me: cannot create a temporary directory in ." >&2
6852 { (exit 1); exit 1; }
6855 # Set up the scripts for CONFIG_FILES section.
6856 # No need to generate them if there are no CONFIG_FILES.
6857 # This happens for instance with `./config.status config.h'.
6858 if test -n "$CONFIG_FILES"; then
6862 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6863 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6869 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6874 echo "cat >conf$$subs.awk <<_ACEOF" &&
6875 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6878 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
6879 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
6880 { (exit 1); exit 1; }; }
6881 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6883 for ac_last_try in false false false false false :; do
6884 . ./conf$$subs.sh ||
6885 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
6886 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
6887 { (exit 1); exit 1; }; }
6889 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6890 if test $ac_delim_n = $ac_delim_num; then
6892 elif $ac_last_try; then
6893 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
6894 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
6895 { (exit 1); exit 1; }; }
6897 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6903 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6907 s/^/S["/; s
/!.
*/"]=/
6917 s/\(.\{148\}\).*/\1/
6919 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6924 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6931 s/\(.\{148\}\).*/\1/
6933 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6937 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6942 ' <conf$$subs.awk | sed '
6947 ' >>$CONFIG_STATUS || ac_write_fail=1
6948 rm -f conf$$subs.awk
6949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6951 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6952 for (key in S) S_is_set[key] = 1
6958 nfields = split(line, field, "@
")
6960 len = length(field[1])
6961 for (i = 2; i < nfields; i++) {
6963 keylen = length(key)
6964 if (S_is_set[key]) {
6966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6967 len += length(value) + length(field[++i])
6978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6979 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6980 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6983 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6984 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
6985 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
6986 { (exit 1); exit 1; }; }
6989 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6990 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6991 # trailing colons and then remove the whole line if VPATH becomes empty
6992 # (actually we leave an empty line to preserve line numbers).
6993 if test "x
$srcdir" = x.; then
6994 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6998 s/^\([^=]*=[ ]*\):*/\1/
7004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7005 fi # test -n "$CONFIG_FILES"
7007 # Set up the scripts for CONFIG_HEADERS section.
7008 # No need to generate them if there are no CONFIG_HEADERS.
7009 # This happens for instance with `./config.status Makefile'.
7010 if test -n "$CONFIG_HEADERS"; then
7011 cat >"$tmp/defines.
awk" <<\_ACAWK ||
7015 # Transform confdefs.h into an awk script `defines.awk', embedded as
7016 # here-document in config.status, that substitutes the proper values into
7017 # config.h.in to produce config.h.
7019 # Create a delimiter string that does not exist in confdefs.h, to ease
7020 # handling of long lines.
7022 for ac_last_try in false false :; do
7023 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
7024 if test -z "$ac_t"; then
7026 elif $ac_last_try; then
7027 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
7028 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
7029 { (exit 1); exit 1; }; }
7031 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7035 # For the awk script, D is an array of macro values keyed by name,
7036 # likewise P contains macro parameters if any. Preserve backslash
7037 # newline sequences.
7039 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7041 s/.\{148\}/&'"$ac_delim"'/g
7044 s/^[ ]*#[ ]*define[ ][ ]*/ /
7051 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7053 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7058 D["\
1"]=" \
3\\\\\\n
"\\/p
7060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7065 s/.\{148\}/&'"$ac_delim"'/g
7070 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7073 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7075 ' <confdefs.h | sed '
7076 s/'"$ac_delim"'/"\\\
7077 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7080 for (key in D) D_is_set[key] = 1
7083 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7085 split(line, arg, " ")
7086 if (arg[1] == "#") {
7090 defundef
= substr
(arg
[1], 2)
7093 split(mac1
, mac2
, "(") #)
7095 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7096 if (D_is_set
[macro
]) {
7097 # Preserve the white space surrounding the "#".
7098 print prefix
"define", macro P
[macro
] D
[macro
]
7101 # Replace #undef with comments. This is necessary, for example,
7102 # in the case of _POSIX_SOURCE, which is predefined and required
7103 # on some systems where configure will not decide to define it.
7104 if (defundef
== "undef") {
7105 print
"/*", prefix defundef
, macro
, "*/"
7113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7114 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
7115 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
7116 { (exit 1); exit 1; }; }
7117 fi # test -n "$CONFIG_HEADERS"
7120 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
7125 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7127 case $ac_mode$ac_tag in
7129 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
7130 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7131 { (exit 1); exit 1; }; };;
7132 :[FH
]-) ac_tag
=-:-;;
7133 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7150 -) ac_f
="$tmp/stdin";;
7151 *) # Look for the file first in the build tree, then in the source tree
7152 # (if the path is not absolute). The absolute path cannot be DOS-style,
7153 # because $ac_f cannot contain `:'.
7157 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7159 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7160 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7161 { (exit 1); exit 1; }; };;
7163 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7164 ac_file_inputs
="$ac_file_inputs '$ac_f'"
7167 # Let's still pretend it is `configure' which instantiates (i.e., don't
7168 # use $as_me), people would be surprised to read:
7169 # /* config.h. Generated by config.status. */
7170 configure_input
='Generated from '`
7171 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7173 if test x
"$ac_file" != x-
; then
7174 configure_input
="$ac_file. $configure_input"
7175 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
7176 $as_echo "$as_me: creating $ac_file" >&6;}
7178 # Neutralize special characters interpreted by sed in replacement strings.
7179 case $configure_input in #(
7180 *\
&* |
*\|
* |
*\\* )
7181 ac_sed_conf_input
=`$as_echo "$configure_input" |
7182 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7183 *) ac_sed_conf_input
=$configure_input;;
7187 *:-:* |
*:-) cat >"$tmp/stdin" \
7188 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7189 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7190 { (exit 1); exit 1; }; } ;;
7195 ac_dir
=`$as_dirname -- "$ac_file" ||
7196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7197 X"$ac_file" : 'X\(//\)[^/]' \| \
7198 X"$ac_file" : 'X\(//\)$' \| \
7199 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7200 $as_echo X"$ac_file" |
7201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7220 -*) as_dir
=.
/$as_dir;;
7222 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
7226 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7227 *) as_qdir
=$as_dir;;
7229 as_dirs
="'$as_qdir' $as_dirs"
7230 as_dir
=`$as_dirname -- "$as_dir" ||
7231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7232 X"$as_dir" : 'X\(//\)[^/]' \| \
7233 X"$as_dir" : 'X\(//\)$' \| \
7234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7235 $as_echo X"$as_dir" |
7236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7253 test -d "$as_dir" && break
7255 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7256 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7257 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7258 { (exit 1); exit 1; }; }; }
7262 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7264 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7265 # A ".." for each directory in $ac_dir_suffix.
7266 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7267 case $ac_top_builddir_sub in
7268 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7269 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7272 ac_abs_top_builddir
=$ac_pwd
7273 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7274 # for backward compatibility:
7275 ac_top_builddir
=$ac_top_build_prefix
7278 .
) # We are building in place.
7280 ac_top_srcdir
=$ac_top_builddir_sub
7281 ac_abs_top_srcdir
=$ac_pwd ;;
7282 [\\/]* | ?
:[\\/]* ) # Absolute name.
7283 ac_srcdir
=$srcdir$ac_dir_suffix;
7284 ac_top_srcdir
=$srcdir
7285 ac_abs_top_srcdir
=$srcdir ;;
7287 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7288 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7289 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7291 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7301 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7302 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7307 # If the template does not know about datarootdir, expand it.
7308 # FIXME: This hack should be removed a few years after 2.60.
7309 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7323 *datarootdir
*) ac_datarootdir_seen
=yes;;
7324 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7325 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7329 ac_datarootdir_hack='
7330 s&@datadir@&$datadir&g
7331 s&@docdir@&$docdir&g
7332 s&@infodir@&$infodir&g
7333 s&@localedir@&$localedir&g
7334 s&@mandir@&$mandir&g
7335 s&\\\${datarootdir}&$datarootdir&g' ;;
7339 # Neutralize VPATH when `$srcdir' = `.'.
7340 # Shell code in configure.ac might set extrasub.
7341 # FIXME: do we really want to maintain this feature?
7342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7343 ac_sed_extra="$ac_vpsub
7346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7348 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7349 s|@configure_input@|
$ac_sed_conf_input|
;t t
7350 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7351 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7352 s
&@srcdir@
&$ac_srcdir&;t t
7353 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7354 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7355 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7356 s
&@builddir@
&$ac_builddir&;t t
7357 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7358 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7359 s
&@INSTALL@
&$ac_INSTALL&;t t
7360 $ac_datarootdir_hack
7362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7363 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
7364 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
7365 { (exit 1); exit 1; }; }
7367 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7368 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7369 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7370 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7371 which seems to be undefined. Please make sure it is defined." >&5
7372 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7373 which seems to be undefined. Please make sure it is defined." >&2;}
7377 -) cat "$tmp/out" && rm -f "$tmp/out";;
7378 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7380 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7381 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7382 { (exit 1); exit 1; }; }
7388 if test x"$ac_file" != x-; then
7390 $as_echo "/* $configure_input */" \
7391 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7392 } >"$tmp/config.h" \
7393 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7394 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7395 { (exit 1); exit 1; }; }
7396 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7397 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7398 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7401 mv "$tmp/config.h" "$ac_file" \
7402 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7403 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7404 { (exit 1); exit 1; }; }
7407 $as_echo "/* $configure_input */" \
7408 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7409 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7410 $as_echo "$as_me: error: could not create -" >&2;}
7411 { (exit 1); exit 1; }; }
7419 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
7422 # Prefer the file from the source tree if names are identical.
7423 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7424 ac_source=$srcdir/$ac_source
7427 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
7428 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7430 if test ! -r "$ac_source"; then
7431 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
7432 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
7433 { (exit 1); exit 1; }; }
7437 # Try a relative symlink, then a hard link, then a copy.
7439 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7440 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7442 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7443 ln "$ac_source" "$ac_file" 2>/dev/null ||
7444 cp -p "$ac_source" "$ac_file" ||
7445 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
7446 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
7447 { (exit 1); exit 1; }; }
7450 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
7451 $as_echo "$as_me: executing $ac_file commands" >&6;}
7456 case $ac_file$ac_mode in
7457 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7458 rm -f Makesim1.tmp Makesim2.tmp Makefile
7459 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7460 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
7461 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7462 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7463 <Makefile.sim
>Makefile
7464 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7466 "stamp-h":C
) echo > stamp-h
;;
7472 { (exit 0); exit 0; }
7474 chmod +x
$CONFIG_STATUS
7475 ac_clean_files
=$ac_clean_files_save
7477 test $ac_write_fail = 0 ||
7478 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7479 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7480 { (exit 1); exit 1; }; }
7483 # configure is writing to config.log, and then calls config.status.
7484 # config.status does its own redirection, appending to config.log.
7485 # Unfortunately, on DOS this fails, as config.log is still kept open
7486 # by configure, so config.status won't be able to write to it; its
7487 # output is simply discarded. So we exec the FD to /dev/null,
7488 # effectively closing config.log, so it can be properly (re)opened and
7489 # appended to by config.status. When coming back to configure, we
7490 # need to make the FD available again.
7491 if test "$no_create" != yes; then
7493 ac_config_status_args
=
7494 test "$silent" = yes &&
7495 ac_config_status_args
="$ac_config_status_args --quiet"
7497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7500 # would make configure fail if this is the last instruction.
7501 $ac_cs_success ||
{ (exit 1); exit 1; }
7503 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7504 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7505 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}