2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (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 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="Makefile.in"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
600 sim_multi_igen_configs
705 program_transform_name
718 enable_option_checking
720 enable_maintainer_mode
731 enable_sim_hostendian
732 enable_build_warnings
733 enable_sim_build_warnings
734 enable_sim_reserved_bits
742 ac_precious_vars
='build_alias
754 # Initialize some variables set by options.
756 ac_init_version
=false
757 ac_unrecognized_opts
=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
768 program_transform_name
=s
,x
,x
,
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir
='${exec_prefix}/bin'
783 sbindir
='${exec_prefix}/sbin'
784 libexecdir
='${exec_prefix}/libexec'
785 datarootdir
='${prefix}/share'
786 datadir
='${datarootdir}'
787 sysconfdir
='${prefix}/etc'
788 sharedstatedir
='${prefix}/com'
789 localstatedir
='${prefix}/var'
790 includedir
='${prefix}/include'
791 oldincludedir
='/usr/include'
792 docdir
='${datarootdir}/doc/${PACKAGE}'
793 infodir
='${datarootdir}/info'
798 libdir
='${exec_prefix}/lib'
799 localedir
='${datarootdir}/locale'
800 mandir
='${datarootdir}/man'
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\
$ac_option
814 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 # Accept the important Cygnus configure options, so we can diagnose typos.
820 case $ac_dashdash$ac_option in
824 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
826 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
829 -build |
--build |
--buil |
--bui |
--bu)
830 ac_prev
=build_alias
;;
831 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
832 build_alias
=$ac_optarg ;;
834 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
835 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
836 ac_prev
=cache_file
;;
837 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
838 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
839 cache_file
=$ac_optarg ;;
842 cache_file
=config.cache
;;
844 -datadir |
--datadir |
--datadi |
--datad)
846 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
847 datadir
=$ac_optarg ;;
849 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
850 |
--dataroo |
--dataro |
--datar)
851 ac_prev
=datarootdir
;;
852 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
853 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
854 datarootdir
=$ac_optarg ;;
856 -disable-* |
--disable-*)
857 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
860 as_fn_error
"invalid feature name: $ac_useropt"
861 ac_useropt_orig
=$ac_useropt
862 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep
=', ';;
870 eval enable_
$ac_useropt=no
;;
872 -docdir |
--docdir |
--docdi |
--doc |
--do)
874 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
877 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
879 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
882 -enable-* |
--enable-*)
883 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
886 as_fn_error
"invalid feature name: $ac_useropt"
887 ac_useropt_orig
=$ac_useropt
888 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep
=', ';;
896 eval enable_
$ac_useropt=\
$ac_optarg ;;
898 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
899 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
900 |
--exec |
--exe |
--ex)
901 ac_prev
=exec_prefix
;;
902 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
903 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
904 |
--exec=* |
--exe=* |
--ex=*)
905 exec_prefix
=$ac_optarg ;;
907 -gas |
--gas |
--ga |
--g)
908 # Obsolete; use --with-gas.
911 -help |
--help |
--hel |
--he |
-h)
913 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
914 ac_init_help
=recursive
;;
915 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
916 ac_init_help
=short
;;
918 -host |
--host |
--hos |
--ho)
919 ac_prev
=host_alias
;;
920 -host=* |
--host=* |
--hos=* |
--ho=*)
921 host_alias
=$ac_optarg ;;
923 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
925 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
927 htmldir
=$ac_optarg ;;
929 -includedir |
--includedir |
--includedi |
--included |
--include \
930 |
--includ |
--inclu |
--incl |
--inc)
931 ac_prev
=includedir
;;
932 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
933 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
934 includedir
=$ac_optarg ;;
936 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
938 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
939 infodir
=$ac_optarg ;;
941 -libdir |
--libdir |
--libdi |
--libd)
943 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
946 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
947 |
--libexe |
--libex |
--libe)
948 ac_prev
=libexecdir
;;
949 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
950 |
--libexe=* |
--libex=* |
--libe=*)
951 libexecdir
=$ac_optarg ;;
953 -localedir |
--localedir |
--localedi |
--localed |
--locale)
955 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
956 localedir
=$ac_optarg ;;
958 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
959 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
960 ac_prev
=localstatedir
;;
961 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
962 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
963 localstatedir
=$ac_optarg ;;
965 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
967 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
971 # Obsolete; use --without-fp.
974 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
975 |
--no-cr |
--no-c |
-n)
978 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
979 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
982 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
983 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
984 |
--oldin |
--oldi |
--old |
--ol |
--o)
985 ac_prev
=oldincludedir
;;
986 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
987 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
988 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
989 oldincludedir
=$ac_optarg ;;
991 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
993 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
996 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
997 |
--program-pre |
--program-pr |
--program-p)
998 ac_prev
=program_prefix
;;
999 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1000 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1001 program_prefix
=$ac_optarg ;;
1003 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1004 |
--program-suf |
--program-su |
--program-s)
1005 ac_prev
=program_suffix
;;
1006 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1007 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1008 program_suffix
=$ac_optarg ;;
1010 -program-transform-name |
--program-transform-name \
1011 |
--program-transform-nam |
--program-transform-na \
1012 |
--program-transform-n |
--program-transform- \
1013 |
--program-transform |
--program-transfor \
1014 |
--program-transfo |
--program-transf \
1015 |
--program-trans |
--program-tran \
1016 |
--progr-tra |
--program-tr |
--program-t)
1017 ac_prev
=program_transform_name
;;
1018 -program-transform-name=* |
--program-transform-name=* \
1019 |
--program-transform-nam=* |
--program-transform-na=* \
1020 |
--program-transform-n=* |
--program-transform-=* \
1021 |
--program-transform=* |
--program-transfor=* \
1022 |
--program-transfo=* |
--program-transf=* \
1023 |
--program-trans=* |
--program-tran=* \
1024 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1025 program_transform_name
=$ac_optarg ;;
1027 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1029 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1030 pdfdir
=$ac_optarg ;;
1032 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1034 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1037 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1038 |
-silent |
--silent |
--silen |
--sile |
--sil)
1041 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1043 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1045 sbindir
=$ac_optarg ;;
1047 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1048 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1049 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1051 ac_prev
=sharedstatedir
;;
1052 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1053 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1054 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1056 sharedstatedir
=$ac_optarg ;;
1058 -site |
--site |
--sit)
1060 -site=* |
--site=* |
--sit=*)
1063 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1065 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1066 srcdir
=$ac_optarg ;;
1068 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1069 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1070 ac_prev
=sysconfdir
;;
1071 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1072 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1073 sysconfdir
=$ac_optarg ;;
1075 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1076 ac_prev
=target_alias
;;
1077 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1078 target_alias
=$ac_optarg ;;
1080 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1083 -version |
--version |
--versio |
--versi |
--vers |
-V)
1084 ac_init_version
=: ;;
1087 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1090 as_fn_error
"invalid package name: $ac_useropt"
1091 ac_useropt_orig
=$ac_useropt
1092 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1097 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep
=', ';;
1100 eval with_
$ac_useropt=\
$ac_optarg ;;
1102 -without-* |
--without-*)
1103 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1106 as_fn_error
"invalid package name: $ac_useropt"
1107 ac_useropt_orig
=$ac_useropt
1108 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep
=', ';;
1116 eval with_
$ac_useropt=no
;;
1119 # Obsolete; use --with-x.
1122 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1123 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1124 ac_prev
=x_includes
;;
1125 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1126 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1127 x_includes
=$ac_optarg ;;
1129 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1130 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1131 ac_prev
=x_libraries
;;
1132 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1133 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1134 x_libraries
=$ac_optarg ;;
1136 -*) as_fn_error
"unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information."
1141 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 case $ac_envvar in #(
1144 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1145 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1147 eval $ac_envvar=\
$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1161 if test -n "$ac_prev"; then
1162 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1163 as_fn_error
"missing argument to $ac_option"
1166 if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1169 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 # Check all directory arguments for consistency.
1175 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val
=\$
$ac_var
1181 # Remove trailing slashes.
1184 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\
$ac_val;;
1187 # Be sure to have absolute directory names.
1189 [\\/$
]* | ?
:[\\/]* ) continue;;
1190 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1192 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1200 target
=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x
; then
1204 if test "x$build_alias" = x
; then
1205 cross_compiling
=maybe
1206 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used." >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1214 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1216 test "$silent" = yes && exec 6>/dev
/null
1219 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di
=`ls -di .` &&
1221 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error
"working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error
"pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted
=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir
=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted
=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1263 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1277 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 for ac_var
in $ac_precious_vars; do
1280 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1282 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1293 \`configure' configures this package to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1356 --x-includes=DIR X include files are
in DIR
1357 --x-libraries=DIR X library files are
in DIR
1360 --build=BUILD configure
for building on BUILD
[guessed
]
1361 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1362 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1366 if test -n "$ac_init_help"; then
1371 --disable-option-checking ignore unrecognized
--enable/--with options
1372 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1373 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1374 --enable-maintainer-mode Enable developer functionality.
1375 --enable-sim-bswap Use Host specific BSWAP instruction.
1376 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1377 --enable-sim-debug=opts Enable debugging flags
1378 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1379 --enable-sim-trace=opts Enable tracing flags
1380 --enable-sim-profile=opts Enable profiling flags
1381 --enable-sim-inline=inlines Specify
which functions should be inlined.
1382 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
1383 --enable-sim-hostendian=end Specify
host byte endian orientation.
1384 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
1385 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
1386 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1387 --enable-sim-endian=endian Specify target byte endian orientation.
1388 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
1389 --enable-sim-float Specify that the target processor has floating point hardware.
1390 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
1391 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1394 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1395 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1396 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1397 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1398 --with-bugurl=URL Direct users to URL to report a bug
1399 --with-x use the X Window System
1401 Some influential environment variables
:
1402 CC C compiler
command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1405 nonstandard directory
<lib dir
>
1406 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1407 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1408 you have headers
in a nonstandard directory
<include dir
>
1410 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1412 Use these variables to override the choices made by
`configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to the package provider.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1445 .) # We are building in place.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1479 generated by GNU Autoconf 2.64
1481 Copyright (C) 2009 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1502 *) ac_try_echo
=$ac_try;;
1504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1508 if test -s conftest.err
; then
1509 grep -v '^ *+' conftest.err
>conftest.er1
1510 cat conftest.er1
>&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.
$ac_objext; then :
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.
$ac_ext >&5
1525 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1528 } # ac_fn_c_try_compile
1530 # ac_fn_c_try_cpp LINENO
1531 # ----------------------
1532 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1536 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } >/dev/null && {
1552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1568 # -------------------------------------------------------
1569 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1570 # the include files in INCLUDES and setting the cache variable VAR
1572 ac_fn_c_check_header_mongrel ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577 $as_echo_n "checking for $2... " >&6; }
1578 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1579 $as_echo_n "(cached) " >&6
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583 $as_echo "$ac_res" >&6; }
1585 # Is the header compilable?
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1587 $as_echo_n "checking $2 usability... " >&6; }
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1593 if ac_fn_c_try_compile "$LINENO"; then :
1594 ac_header_compiler=yes
1596 ac_header_compiler=no
1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1600 $as_echo "$ac_header_compiler" >&6; }
1602 # Is the header present?
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1604 $as_echo_n "checking $2 presence... " >&6; }
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1609 if ac_fn_c_try_cpp "$LINENO"; then :
1610 ac_header_preproc=yes
1612 ac_header_preproc=no
1614 rm -f conftest.err conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1616 $as_echo "$ac_header_preproc" >&6; }
1618 # So? What about this header?
1619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1622 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1628 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1630 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1632 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1634 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1642 $as_echo_n "(cached) " >&6
1644 eval "$3=\$ac_header_compiler"
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652 } # ac_fn_c_check_header_mongrel
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_link"
1663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1664 *) ac_try_echo
=$ac_try;;
1666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>&5
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1672 { { case "(($ac_try" in
1673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_try") 2>&5
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; }; }; then :
1684 $as_echo "$as_me: program exited with status $ac_status" >&5
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1688 ac_retval=$ac_status
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists and can be compiled using the include files in
1699 # INCLUDES, setting the cache variable VAR accordingly.
1700 ac_fn_c_check_header_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706 $as_echo_n "(cached) " >&6
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1713 if ac_fn_c_try_compile "$LINENO"; then :
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 } # ac_fn_c_check_header_compile
1727 # ac_fn_c_try_link LINENO
1728 # -----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest$ac_exeext
1734 if { { ac_try="$ac_link"
1736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1737 *) ac_try_echo
=$ac_try;;
1739 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>conftest.err
1743 if test -s conftest.err
; then
1744 grep -v '^ *+' conftest.err
>conftest.er1
1745 cat conftest.er1
>&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest
$ac_exeext && {
1753 test "$cross_compiling" = yes ||
1754 $as_test_x conftest
$ac_exeext
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.
$ac_ext >&5
1763 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765 # interfere with the next link command; also delete a directory that is
1766 # left behind by Apple's compiler. We do this before executing the actions.
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1771 } # ac_fn_c_try_link
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func
()
1778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1796 # include <limits.h>
1798 # include <assert.h>
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1825 if ac_fn_c_try_link
"$LINENO"; then :
1830 rm -f core conftest.err conftest.
$ac_objext \
1831 conftest
$ac_exeext conftest.
$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1838 } # ac_fn_c_check_func
1839 cat >config.log
<<_ACEOF
1840 This file contains any messages produced by compilers while
1841 running configure, to aid debugging if configure makes a mistake.
1843 It was created by $as_me, which was
1844 generated by GNU Autoconf 2.64. Invocation command line was
1856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1866 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1869 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1870 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1871 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir
=.
1880 $as_echo "PATH: $as_dir"
1896 # Keep a trace of the command line.
1897 # Strip out --no-create and --no-recursion so they do not pile up.
1898 # Strip out --silent because we don't want to record it for future runs.
1899 # Also quote any args containing shell meta-characters.
1900 # Make two passes to allow for proper duplicate-argument suppression.
1904 ac_must_keep_next
=false
1910 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1911 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1912 |
-silent |
--silent |
--silen |
--sile |
--sil)
1915 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1920 as_fn_append ac_configure_args1
" '$ac_arg'"
1921 if test $ac_must_keep_next = true
; then
1922 ac_must_keep_next
=false
# Got value, back to normal.
1925 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1926 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1927 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1928 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1929 case "$ac_configure_args0 " in
1930 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1933 -* ) ac_must_keep_next
=true
;;
1936 as_fn_append ac_configure_args
" '$ac_arg'"
1941 { ac_configure_args0
=; unset ac_configure_args0
;}
1942 { ac_configure_args1
=; unset ac_configure_args1
;}
1944 # When interrupted or exit'd, cleanup temporary files, and complete
1945 # config.log. We remove comments because anyway the quotes in there
1946 # would cause problems or look ugly.
1947 # WARNING: Use '\'' to represent an apostrophe within the trap.
1948 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949 trap 'exit_status=$?
1950 # Save into config.log some information that might help in debugging.
1955 ## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##
1960 # The following way of writing the cache mishandles newlines in values,
1962 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963 eval ac_val=\$$ac_var
1967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1971 _ | IFS | as_nl) ;; #(
1972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1973 *) { eval $ac_var=; unset $ac_var;} ;;
1978 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979 *${as_nl}ac_space=\ *)
1981 "s/'\''/'\''\\\\'\'''\''/g;
1982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1993 ## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##
1998 for ac_var in $ac_subst_vars
2000 eval ac_val=\$$ac_var
2002 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 $as_echo "$ac_var='\''$ac_val'\''"
2008 if test -n "$ac_subst_files"; then
2010 ## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##
2015 for ac_var
in $ac_subst_files
2017 eval ac_val
=\$
$ac_var
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 $as_echo "$ac_var='\''$ac_val'\''"
2026 if test -s confdefs.h; then
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2044 for ac_signal
in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest
* confdefs.h
2052 $as_echo "/* confdefs.h */" > confdefs.h
2054 # Predefined preprocessor variables.
2056 cat >>confdefs.h
<<_ACEOF
2057 #define PACKAGE_NAME "$PACKAGE_NAME"
2060 cat >>confdefs.h
<<_ACEOF
2061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 cat >>confdefs.h
<<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2068 cat >>confdefs.h
<<_ACEOF
2069 #define PACKAGE_STRING "$PACKAGE_STRING"
2072 cat >>confdefs.h
<<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2076 cat >>confdefs.h
<<_ACEOF
2077 #define PACKAGE_URL "$PACKAGE_URL"
2081 # Let the site file select an alternate cache file if it wants to.
2082 # Prefer an explicitly selected file to automatically selected ones.
2085 if test -n "$CONFIG_SITE"; then
2086 ac_site_file1
=$CONFIG_SITE
2087 elif test "x$prefix" != xNONE
; then
2088 ac_site_file1
=$prefix/share
/config.site
2089 ac_site_file2
=$prefix/etc
/config.site
2091 ac_site_file1
=$ac_default_prefix/share
/config.site
2092 ac_site_file2
=$ac_default_prefix/etc
/config.site
2094 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2096 test "x$ac_site_file" = xNONE
&& continue
2097 if test -r "$ac_site_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2099 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100 sed 's/^/| /' "$ac_site_file" >&5
2105 if test -r "$cache_file"; then
2106 # Some versions of bash will fail to source /dev/null (special
2107 # files actually), so we avoid doing that.
2108 if test -f "$cache_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110 $as_echo "$as_me: loading cache $cache_file" >&6;}
2112 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2113 *) .
"./$cache_file";;
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118 $as_echo "$as_me: creating cache $cache_file" >&6;}
2122 # Check that the precious variables saved in the cache have kept the same
2124 ac_cache_corrupted
=false
2125 for ac_var
in $ac_precious_vars; do
2126 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2127 eval ac_new_set
=\
$ac_env_${ac_var}_set
2128 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2129 eval ac_new_val
=\
$ac_env_${ac_var}_value
2130 case $ac_old_set,$ac_new_set in
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134 ac_cache_corrupted
=: ;;
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138 ac_cache_corrupted
=: ;;
2141 if test "x$ac_old_val" != "x$ac_new_val"; then
2142 # differences in whitespace do not lead to failure.
2143 ac_old_val_w
=`echo x $ac_old_val`
2144 ac_new_val_w
=`echo x $ac_new_val`
2145 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148 ac_cache_corrupted
=:
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152 eval $ac_var=\
$ac_old_val
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2155 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2157 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2160 # Pass precious variables to config.status.
2161 if test "$ac_new_set" = set; then
2163 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164 *) ac_arg
=$ac_var=$ac_new_val ;;
2166 case " $ac_configure_args " in
2167 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2168 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2172 if $ac_cache_corrupted; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179 ## -------------------- ##
2180 ## Main body of script. ##
2181 ## -------------------- ##
2184 ac_cpp
='$CPP $CPPFLAGS'
2185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2190 # This file contains common code used by all simulators.
2192 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2193 # directory. It is intended to be invoked before any target specific stuff.
2194 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2195 # It is intended to be invoked last.
2197 # The simulator's configure.in should look like:
2199 # dnl Process this file with autoconf to produce a configure script.
2200 # AC_PREREQ(2.64)dnl
2201 # AC_INIT(Makefile.in)
2202 # sinclude(../common/aclocal.m4)
2206 # ... target specific stuff ...
2210 # Include global overrides and fixes for Autoconf.
2237 # _AC_CHECK_DECL_BODY
2238 # -------------------
2239 # Shell function body for AC_CHECK_DECL.
2240 # _AC_CHECK_DECL_BODY
2242 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2244 # -------------------------------------------------------------
2245 # Helper to AC_CHECK_DECLS, which generates the check for a single
2246 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2247 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2306 sim_inline
="-DDEFAULT_INLINE=0"
2343 # intl sister-directory configuration rules.
2346 # The idea behind this macro is that there's no need to repeat all the
2347 # autoconf probes done by the intl directory - it's already done them
2348 # for us. In fact, there's no need even to look at the cache for the
2349 # answers. All we need to do is nab a few pieces of information.
2350 # The intl directory is set up to make this easy, by generating a
2351 # small file which can be sourced as a shell script; then we produce
2352 # the necessary substitutions and definitions for this directory.
2356 # Autoconf M4 include file defining utility macros for complex Canadian
2368 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2370 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2373 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2374 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2378 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2379 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2383 # Backported from Autoconf 2.5x; can go away when and if
2384 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2389 # ACX_HAVE_GCC_FOR_TARGET
2390 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2393 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2394 # Searching for installed target binutils. We need to take extra care,
2395 # else we may find the wrong assembler, linker, etc., and lose.
2397 # First try --with-build-time-tools, if specified.
2399 # For build != host, we ask the installed GCC for the name of the tool it
2400 # uses, and accept it if it is an absolute path. This is because the
2401 # only good choice for a compiler is the same GCC version that is being
2402 # installed (or we couldn't make target libraries), and we assume that
2403 # on the host system we'll have not only the same GCC version, but also
2404 # the same binutils version.
2406 # For build == host, search the same directories that the installed
2407 # compiler will search. We used to do this for the assembler, linker,
2408 # and nm only; for simplicity of configuration, however, we extend this
2409 # criterion to tools (such as ar and ranlib) that are never invoked by
2410 # the compiler, to avoid mismatches.
2412 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2413 # if build == target. This makes the most sense only when bootstrapping,
2414 # but we also do so when build != host. In this case, we hope that the
2415 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2417 # If we do not find a suitable binary, then try the user's path.
2421 # AC_PROG_CPP_WERROR
2422 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2423 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2424 # For now, using this also overrides header checks to use only the
2425 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2426 # bit harder from here).
2427 # Eventually autoconf will default to checking headers with the compiler
2428 # instead, and we'll have to do this differently.
2430 # AC_PROG_CPP_WERROR
2433 # We require the gnatbind program, and a compiler driver that
2434 # understands Ada. We use the user's CC setting, already found,
2435 # and possibly add $1 to the command-line parameters.
2437 # Sets the shell variable have_gnat to yes or no as appropriate, and
2438 # substitutes GNATBIND and GNATMAKE.
2465 ac_cpp
='$CPP $CPPFLAGS'
2466 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2471 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if test "${ac_cv_prog_CC+set}" = set; then :
2475 $as_echo_n "(cached) " >&6
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC
="$CC" # Let the user override the test.
2480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir
=.
2485 for ac_exec_ext
in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 if test -n "$CC"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2500 $as_echo "$CC" >&6; }
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503 $as_echo "no" >&6; }
2508 if test -z "$ac_cv_prog_CC"; then
2510 # Extract the first word of "gcc", so it can be a program name with args.
2511 set dummy gcc
; ac_word
=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2515 $as_echo_n "(cached) " >&6
2517 if test -n "$ac_ct_CC"; then
2518 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir
=.
2525 for ac_exec_ext
in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_ac_ct_CC
="gcc"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2538 if test -n "$ac_ct_CC"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2540 $as_echo "$ac_ct_CC" >&6; }
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2546 if test "x$ac_ct_CC" = x
; then
2549 case $cross_compiling:$ac_tool_warned in
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553 ac_tool_warned
=yes ;;
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2564 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC
="$CC" # Let the user override the test.
2573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir
=.
2578 for ac_exec_ext
in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2602 if test -z "$CC"; then
2603 # Extract the first word of "cc", so it can be a program name with args.
2604 set dummy cc
; ac_word
=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_CC+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC
="$CC" # Let the user override the test.
2614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir
=.
2619 for ac_exec_ext
in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2622 ac_prog_rejected
=yes
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 if test $ac_prog_rejected = yes; then
2634 # We found a bogon in the path, so make sure we never use it.
2635 set dummy
$ac_cv_prog_CC
2637 if test $# != 0; then
2638 # We chose a different compiler from the bogus one.
2639 # However, it has the same basename, so the bogon will be chosen
2640 # first if we set CC to just the basename; use the full file name.
2642 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2648 if test -n "$CC"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650 $as_echo "$CC" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2658 if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
2660 for ac_prog
in cl.exe
2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2663 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_CC+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC
="$CC" # Let the user override the test.
2672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir
=.
2677 for ac_exec_ext
in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 if test -n "$CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2699 test -n "$CC" && break
2702 if test -z "$CC"; then
2704 for ac_prog
in cl.exe
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy
$ac_prog; ac_word
=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2713 if test -n "$ac_ct_CC"; then
2714 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir
=.
2721 for ac_exec_ext
in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_ac_ct_CC
="$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2734 if test -n "$ac_ct_CC"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2736 $as_echo "$ac_ct_CC" >&6; }
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2743 test -n "$ac_ct_CC" && break
2746 if test "x$ac_ct_CC" = x
; then
2749 case $cross_compiling:$ac_tool_warned in
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753 ac_tool_warned
=yes ;;
2762 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error
"no acceptable C compiler found in \$PATH
2765 See \`config.log' for more details." "$LINENO" 5; }
2767 # Provide some information about the compiler.
2768 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2771 for ac_option
in --version -v -V -qversion; do
2772 { { ac_try
="$ac_compiler $ac_option >&5"
2774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778 $as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2781 if test -s conftest.err; then
2783 ... rest of stderr output deleted ...
2784 10q' conftest.err >conftest.er1
2785 cat conftest.er1 >&5
2786 rm -f conftest.er1 conftest.err
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2803 ac_clean_files_save=$ac_clean_files
2804 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2805 # Try to create an executable without -o first, disregard a.out.
2806 # It will help us diagnose broken compilers, and finding out an intuition
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2809 $as_echo_n "checking for C compiler default output file name... " >&6; }
2810 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2812 # The possible output files:
2813 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2816 for ac_file in $ac_files
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2825 if { { ac_try="$ac_link_default"
2827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2828 *) ac_try_echo
=$ac_try;;
2830 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link_default") 2>&5
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; then :
2836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2839 # so that the user can short-circuit this test for compilers unknown to
2841 for ac_file
in $ac_files ''
2843 test -f "$ac_file" ||
continue
2845 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2848 # We found the default executable, but exeext='' is most
2852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2854 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 # We set ac_cv_exeext here because the later test for it is not
2857 # safe: cross compilers may not add the suffix if given an `-o'
2858 # argument, so we may need to know it at that point already.
2859 # Even if this section looks crufty: it has the advantage of
2866 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2872 $as_echo "$ac_file" >&6; }
2873 if test -z "$ac_file"; then :
2874 $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.
$ac_ext >&5
2877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 { as_fn_set_status
77
2880 as_fn_error
"C compiler cannot create executables
2881 See \`config.log' for more details." "$LINENO" 5; }; }
2883 ac_exeext
=$ac_cv_exeext
2885 # Check that the compiler produces executables we can run. If not, either
2886 # the compiler is broken, or we cross compile.
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2888 $as_echo_n "checking whether the C compiler works... " >&6; }
2889 # If not cross compiling, check that we can run a simple program.
2890 if test "$cross_compiling" != yes; then
2891 if { ac_try
='./$ac_file'
2892 { { case "(($ac_try" in
2893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 $as_echo "$ac_try_echo"; } >&5
2898 (eval "$ac_try") 2>&5
2900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 test $ac_status = 0; }; }; then
2904 if test "$cross_compiling" = maybe; then
2907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error "cannot run C compiled programs.
2910 If you meant to cross compile
, use \
`--host'.
2911 See \`config.log
' for more details." "$LINENO" 5; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916 $as_echo "yes" >&6; }
2918 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2919 ac_clean_files=$ac_clean_files_save
2920 # Check that the compiler produces executables we can run. If not, either
2921 # the compiler is broken, or we cross compile.
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2923 $as_echo_n "checking whether we are cross compiling... " >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2925 $as_echo "$cross_compiling" >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2928 $as_echo_n "checking for suffix of executables... " >&6; }
2929 if { { ac_try="$ac_link"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2935 $as_echo "$ac_try_echo"; } >&5
2936 (eval "$ac_link") 2>&5
2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }; then :
2940 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2941 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2942 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2944 for ac_file
in conftest.exe conftest conftest.
*; do
2945 test -f "$ac_file" ||
continue
2947 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2948 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2957 See \`config.log' for more details." "$LINENO" 5; }
2959 rm -f conftest
$ac_cv_exeext
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2961 $as_echo "$ac_cv_exeext" >&6; }
2963 rm -f conftest.
$ac_ext
2964 EXEEXT
=$ac_cv_exeext
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2967 $as_echo_n "checking for suffix of object files... " >&6; }
2968 if test "${ac_cv_objext+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2972 /* end confdefs.h. */
2982 rm -f conftest.o conftest.obj
2983 if { { ac_try
="$ac_compile"
2985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989 $as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_compile") 2>&5
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }; then :
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3003 $as_echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 as_fn_error "cannot compute suffix of object files
: cannot compile
3009 See \
`config.log' for more details." "$LINENO" 5; }
3011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3014 $as_echo "$ac_cv_objext" >&6; }
3015 OBJEXT=$ac_cv_objext
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3018 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3019 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3036 if ac_fn_c_try_compile "$LINENO"; then :
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3046 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3047 if test $ac_compiler_gnu = yes; then
3052 ac_test_CFLAGS=${CFLAGS+set}
3053 ac_save_CFLAGS=$CFLAGS
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3055 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3056 if test "${ac_cv_prog_cc_g+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3059 ac_save_c_werror_flag=$ac_c_werror_flag
3060 ac_c_werror_flag=yes
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3074 if ac_fn_c_try_compile "$LINENO"; then :
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3089 if ac_fn_c_try_compile "$LINENO"; then :
3092 ac_c_werror_flag=$ac_save_c_werror_flag
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3105 if ac_fn_c_try_compile "$LINENO"; then :
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 ac_c_werror_flag=$ac_save_c_werror_flag
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3116 $as_echo "$ac_cv_prog_cc_g" >&6; }
3117 if test "$ac_test_CFLAGS" = set; then
3118 CFLAGS=$ac_save_CFLAGS
3119 elif test $ac_cv_prog_cc_g = yes; then
3120 if test "$GCC" = yes; then
3126 if test "$GCC" = yes; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3133 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3134 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3135 $as_echo_n "(cached) " >&6
3137 ac_cv_prog_cc_c89=no
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3143 #include <sys/types.h>
3144 #include <sys/stat.h>
3145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3146 struct buf { int x; };
3147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3148 static char *e (p, i)
3154 static char *f (char * (*g) (char **, int), char **p, ...)
3159 s = g (p, va_arg (v,int));
3164 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3165 function prototypes and stuff, but not '\xHH' hex character constants.
3166 These don't provoke an error unfortunately, instead are silently treated
3167 as 'x'. The following induces an error, until -std is added to get
3168 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3169 array size at least. It's necessary to write '\x00'==0 to get something
3170 that's true only with -std. */
3171 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3174 inside strings and character constants. */
3176 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3178 int test (int i, double x);
3179 struct s1 {int (*f) (int a);};
3180 struct s2 {int (*f) (double a);};
3181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3192 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3195 CC="$ac_save_CC $ac_arg"
3196 if ac_fn_c_try_compile "$LINENO"; then :
3197 ac_cv_prog_cc_c89=$ac_arg
3199 rm -f core conftest.err conftest.$ac_objext
3200 test "x$ac_cv_prog_cc_c89" != "xno" && break
3202 rm -f conftest.$ac_ext
3207 case "x$ac_cv_prog_cc_c89" in
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3210 $as_echo "none needed" >&6; } ;;
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3213 $as_echo "unsupported" >&6; } ;;
3215 CC="$CC $ac_cv_prog_cc_c89"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3217 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3219 if test "x$ac_cv_prog_cc_c89" != xno; then :
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3231 for ac_t in install-sh install.sh shtool; do
3232 if test -f "$ac_dir/$ac_t"; then
3234 ac_install_sh="$ac_aux_dir/$ac_t -c"
3239 if test -z "$ac_aux_dir"; then
3240 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3243 # These three variables are undocumented and unsupported,
3244 # and are intended to be withdrawn in a future Autoconf release.
3245 # They can cause serious problems if a builder's source tree is in a directory
3246 # whose full name contains unusual characters.
3247 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3248 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3249 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3252 # Make sure we can run config.sub.
3253 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3254 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3257 $as_echo_n "checking build system type... " >&6; }
3258 if test "${ac_cv_build+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3261 ac_build_alias=$build_alias
3262 test "x$ac_build_alias" = x &&
3263 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3264 test "x$ac_build_alias" = x &&
3265 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3266 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3267 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3271 $as_echo "$ac_cv_build" >&6; }
3272 case $ac_cv_build in
3274 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3277 ac_save_IFS=$IFS; IFS='-'
3283 # Remember, the first character of IFS is used to create $*,
3284 # except with old shells:
3287 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3291 $as_echo_n "checking host system type... " >&6; }
3292 if test "${ac_cv_host+set}" = set; then :
3293 $as_echo_n "(cached) " >&6
3295 if test "x$host_alias" = x; then
3296 ac_cv_host=$ac_cv_build
3298 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3299 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3304 $as_echo "$ac_cv_host" >&6; }
3307 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3310 ac_save_IFS=$IFS; IFS='-'
3316 # Remember, the first character of IFS is used to create $*,
3317 # except with old shells:
3320 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3324 $as_echo_n "checking target system type... " >&6; }
3325 if test "${ac_cv_target+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3328 if test "x$target_alias" = x; then
3329 ac_cv_target=$ac_cv_host
3331 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3332 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3337 $as_echo "$ac_cv_target" >&6; }
3338 case $ac_cv_target in
3340 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3342 target=$ac_cv_target
3343 ac_save_IFS=$IFS; IFS='-'
3349 # Remember, the first character of IFS is used to create $*,
3350 # except with old shells:
3353 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3356 # The aliases save the names the user supplied, while $host etc.
3357 # will get canonicalized.
3358 test -n "$target_alias" &&
3359 test "$program_prefix$program_suffix$program_transform_name" = \
3361 program_prefix=${target_alias}-
3362 test "$program_prefix" != NONE &&
3363 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3364 # Use a double $ so make ignores it.
3365 test "$program_suffix" != NONE &&
3366 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3367 # Double any \ or $.
3368 # By default was `s
,x
,x
', remove it if useless.
3369 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3370 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3372 # Find a good install program. We prefer a C program (faster),
3373 # so one script is as good as another. But avoid the broken or
3374 # incompatible versions:
3375 # SysV /etc/install, /usr/sbin/install
3376 # SunOS /usr/etc/install
3377 # IRIX /sbin/install
3379 # AmigaOS /C/install, which installs bootblocks on floppy discs
3380 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
3381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3383 # OS/2's system install, which has a completely different semantic
3384 # ./install, which can be erroneously created by make from ./install.sh.
3385 # Reject install programs that cannot install multiple files.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3387 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3388 if test -z "$INSTALL"; then
3389 if test "${ac_cv_path_install+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir
=.
3397 # Account for people who put trailing slashes in PATH elements.
3398 case $as_dir/ in #((
3399 .
/ | .
// |
/[cC
]/* | \
3400 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3401 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3404 # OSF1 and SCO ODT 3.0 have their own names for install.
3405 # Don't use installbsd from OSF since it installs stuff as root
3407 for ac_prog
in ginstall scoinst
install; do
3408 for ac_exec_ext
in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3410 if test $ac_prog = install &&
3411 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3412 # AIX install. It has an incompatible calling convention.
3414 elif test $ac_prog = install &&
3415 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3416 # program-specific install script used by HP pwplus--don't use.
3419 rm -rf conftest.one conftest.two conftest.dir
3420 echo one
> conftest.one
3421 echo two
> conftest.two
3423 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3424 test -s conftest.one
&& test -s conftest.two
&&
3425 test -s conftest.dir
/conftest.one
&&
3426 test -s conftest.dir
/conftest.two
3428 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3441 rm -rf conftest.one conftest.two conftest.dir
3444 if test "${ac_cv_path_install+set}" = set; then
3445 INSTALL
=$ac_cv_path_install
3447 # As a last resort, use the slow shell script. Don't cache a
3448 # value for INSTALL within a source directory, because that will
3449 # break other packages using the cache if that directory is
3450 # removed, or if the value is a relative name.
3451 INSTALL
=$ac_install_sh
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3455 $as_echo "$INSTALL" >&6; }
3457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3458 # It thinks the first close brace ends the variable substitution.
3459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3463 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3467 ac_cpp
='$CPP $CPPFLAGS'
3468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3473 # On Suns, sometimes $CPP names a directory.
3474 if test -n "$CPP" && test -d "$CPP"; then
3477 if test -z "$CPP"; then
3478 if test "${ac_cv_prog_CPP+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3481 # Double quotes because CPP needs to be expanded
3482 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3485 for ac_c_preproc_warn_flag
in '' yes
3487 # Use a header file that comes with gcc, so configuring glibc
3488 # with a fresh cross-compiler works.
3489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490 # <limits.h> exists even on freestanding compilers.
3491 # On the NeXT, cc -E runs the code through the compiler's parser,
3492 # not just through cpp. "Syntax error" is here to catch this case.
3493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3496 # include <limits.h>
3498 # include <assert.h>
3502 if ac_fn_c_try_cpp
"$LINENO"; then :
3505 # Broken: fails on valid input.
3508 rm -f conftest.err conftest.
$ac_ext
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3516 if ac_fn_c_try_cpp
"$LINENO"; then :
3517 # Broken: success on invalid input.
3520 # Passes both tests.
3524 rm -f conftest.err conftest.
$ac_ext
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.
$ac_ext
3529 if $ac_preproc_ok; then :
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542 $as_echo "$CPP" >&6; }
3544 for ac_c_preproc_warn_flag
in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3555 # include <limits.h>
3557 # include <assert.h>
3561 if ac_fn_c_try_cpp
"$LINENO"; then :
3564 # Broken: fails on valid input.
3567 rm -f conftest.err conftest.
$ac_ext
3569 # OK, works on sane cases. Now check whether nonexistent headers
3570 # can be detected and how.
3571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #include <ac_nonexistent.h>
3575 if ac_fn_c_try_cpp
"$LINENO"; then :
3576 # Broken: success on invalid input.
3579 # Passes both tests.
3583 rm -f conftest.err conftest.
$ac_ext
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.
$ac_ext
3588 if $ac_preproc_ok; then :
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." "$LINENO" 5; }
3598 ac_cpp
='$CPP $CPPFLAGS'
3599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3606 if test "${ac_cv_path_GREP+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -z "$GREP"; then
3610 ac_path_GREP_found
=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3613 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3616 test -z "$as_dir" && as_dir
=.
3617 for ac_prog
in grep ggrep
; do
3618 for ac_exec_ext
in '' $ac_executable_extensions; do
3619 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3620 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3621 # Check for GNU ac_path_GREP and select it if it is found.
3622 # Check for GNU $ac_path_GREP
3623 case `"$ac_path_GREP" --version 2>&1` in
3625 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3628 $as_echo_n 0123456789 >"conftest.in"
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'GREP' >> "conftest.nl"
3635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3636 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3637 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_GREP
="$ac_path_GREP"
3641 ac_path_GREP_max
=$ac_count
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3646 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3649 $ac_path_GREP_found && break 3
3654 if test -z "$ac_cv_path_GREP"; then
3655 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3658 ac_cv_path_GREP
=$GREP
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663 $as_echo "$ac_cv_path_GREP" >&6; }
3664 GREP
="$ac_cv_path_GREP"
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668 $as_echo_n "checking for egrep... " >&6; }
3669 if test "${ac_cv_path_EGREP+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3672 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3673 then ac_cv_path_EGREP
="$GREP -E"
3675 if test -z "$EGREP"; then
3676 ac_path_EGREP_found
=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3682 test -z "$as_dir" && as_dir
=.
3683 for ac_prog
in egrep; do
3684 for ac_exec_ext
in '' $ac_executable_extensions; do
3685 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3686 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3687 # Check for GNU ac_path_EGREP and select it if it is found.
3688 # Check for GNU $ac_path_EGREP
3689 case `"$ac_path_EGREP" --version 2>&1` in
3691 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3694 $as_echo_n 0123456789 >"conftest.in"
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 $as_echo 'EGREP' >> "conftest.nl"
3701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3702 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3703 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_EGREP
="$ac_path_EGREP"
3707 ac_path_EGREP_max
=$ac_count
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3712 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3715 $ac_path_EGREP_found && break 3
3720 if test -z "$ac_cv_path_EGREP"; then
3721 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3724 ac_cv_path_EGREP
=$EGREP
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730 $as_echo "$ac_cv_path_EGREP" >&6; }
3731 EGREP
="$ac_cv_path_EGREP"
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735 $as_echo_n "checking for ANSI C header files... " >&6; }
3736 if test "${ac_cv_header_stdc+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3754 if ac_fn_c_try_compile
"$LINENO"; then :
3755 ac_cv_header_stdc
=yes
3757 ac_cv_header_stdc
=no
3759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3761 if test $ac_cv_header_stdc = yes; then
3762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "memchr" >/dev
/null
2>&1; then :
3772 ac_cv_header_stdc
=no
3778 if test $ac_cv_header_stdc = yes; then
3779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786 $EGREP "free" >/dev
/null
2>&1; then :
3789 ac_cv_header_stdc
=no
3795 if test $ac_cv_header_stdc = yes; then
3796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797 if test "$cross_compiling" = yes; then :
3800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3804 #if ((' ' & 0x0FF) == 0x020)
3805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3808 # define ISLOWER(c) \
3809 (('a' <= (c) && (c) <= 'i') \
3810 || ('j' <= (c) && (c) <= 'r') \
3811 || ('s' <= (c) && (c) <= 'z'))
3812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3820 for (i = 0; i < 256; i++)
3821 if (XOR (islower (i), ISLOWER (i))
3822 || toupper (i) != TOUPPER (i))
3827 if ac_fn_c_try_run
"$LINENO"; then :
3830 ac_cv_header_stdc
=no
3832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839 $as_echo "$ac_cv_header_stdc" >&6; }
3840 if test $ac_cv_header_stdc = yes; then
3842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3848 inttypes.h stdint.h unistd.h
3850 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3853 eval as_val
=\$
$as_ac_Header
3854 if test "x$as_val" = x
""yes; then :
3855 cat >>confdefs.h
<<_ACEOF
3856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3866 # autoconf.info says this should be called right after AC_INIT.
3867 ac_config_headers
="$ac_config_headers config.h:config.in"
3873 # Put a plausible default for CC_FOR_BUILD in Makefile.
3874 if test "x$cross_compiling" = "xno"; then
3875 CC_FOR_BUILD
='$(CC)'
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3887 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3893 if test -n "$RANLIB"; then
3894 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir
=.
3901 for ac_exec_ext
in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 RANLIB
=$ac_cv_prog_RANLIB
3914 if test -n "$RANLIB"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3916 $as_echo "$RANLIB" >&6; }
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3924 if test -z "$ac_cv_prog_RANLIB"; then
3925 ac_ct_RANLIB
=$RANLIB
3926 # Extract the first word of "ranlib", so it can be a program name with args.
3927 set dummy ranlib
; ac_word
=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3933 if test -n "$ac_ct_RANLIB"; then
3934 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir
=.
3941 for ac_exec_ext
in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3956 $as_echo "$ac_ct_RANLIB" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3962 if test "x$ac_ct_RANLIB" = x
; then
3965 case $cross_compiling:$ac_tool_warned in
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969 ac_tool_warned
=yes ;;
3971 RANLIB
=$ac_ct_RANLIB
3974 RANLIB
="$ac_cv_prog_RANLIB"
3979 # If we haven't got the data from the intl directory,
3980 # assume NLS is disabled.
3989 if test -f ..
/..
/intl
/config.intl
; then
3990 . ..
/..
/intl
/config.intl
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3993 $as_echo_n "checking whether NLS is requested... " >&6; }
3994 if test x
"$USE_NLS" != xyes
; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3999 $as_echo "yes" >&6; }
4001 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4005 $as_echo_n "checking for catalogs to be installed... " >&6; }
4006 # Look for .po and .gmo files in the source directory.
4009 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4010 # If there aren't any .gmo files the shell will give us the
4011 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4013 case "$cat" in *\
**)
4016 # The quadruple backslash is collapsed to a double backslash
4017 # by the backticks, then collapsed again by the double quotes,
4018 # leaving us with one backslash in the sed expression (right
4019 # before the dot that mustn't act as a wildcard).
4020 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4021 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4022 # The user is allowed to set LINGUAS to a list of languages to
4023 # install catalogs for. If it's empty that means "all of them."
4024 if test "x$LINGUAS" = x
; then
4025 CATALOGS
="$CATALOGS $cat"
4026 XLINGUAS
="$XLINGUAS $lang"
4028 case "$LINGUAS" in *$lang*)
4029 CATALOGS
="$CATALOGS $cat"
4030 XLINGUAS
="$XLINGUAS $lang"
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4037 $as_echo "$LINGUAS" >&6; }
4050 # Check for common headers.
4051 # FIXME: Seems to me this can cause problems for i386-windows hosts.
4052 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
4053 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4055 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4057 eval as_val
=\$
$as_ac_Header
4058 if test "x$as_val" = x
""yes; then :
4059 cat >>confdefs.h
<<_ACEOF
4060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4067 for ac_header
in sys
/time.h sys
/resource.h
4069 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4070 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4071 eval as_val
=\$
$as_ac_Header
4072 if test "x$as_val" = x
""yes; then :
4073 cat >>confdefs.h
<<_ACEOF
4074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081 for ac_header
in fcntl.h fpu_control.h
4083 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4084 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4085 eval as_val
=\$
$as_ac_Header
4086 if test "x$as_val" = x
""yes; then :
4087 cat >>confdefs.h
<<_ACEOF
4088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095 for ac_header
in dlfcn.h errno.h sys
/stat.h
4097 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4099 eval as_val
=\$
$as_ac_Header
4100 if test "x$as_val" = x
""yes; then :
4101 cat >>confdefs.h
<<_ACEOF
4102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4109 for ac_func
in getrusage
time sigaction __setfpucw
4111 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4112 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4113 eval as_val
=\$
$as_ac_var
4114 if test "x$as_val" = x
""yes; then :
4115 cat >>confdefs.h
<<_ACEOF
4116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4123 # Check for socket libraries
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4125 $as_echo_n "checking for bind in -lsocket... " >&6; }
4126 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4129 ac_check_lib_save_LIBS
=$LIBS
4130 LIBS
="-lsocket $LIBS"
4131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4134 /* Override any GCC internal prototype to avoid an error.
4135 Use char because int might match the return type of a GCC
4136 builtin and then its argument prototype would still apply. */
4149 if ac_fn_c_try_link
"$LINENO"; then :
4150 ac_cv_lib_socket_bind
=yes
4152 ac_cv_lib_socket_bind
=no
4154 rm -f core conftest.err conftest.
$ac_objext \
4155 conftest
$ac_exeext conftest.
$ac_ext
4156 LIBS
=$ac_check_lib_save_LIBS
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4159 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4160 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4161 cat >>confdefs.h
<<_ACEOF
4162 #define HAVE_LIBSOCKET 1
4165 LIBS
="-lsocket $LIBS"
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4170 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4171 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4174 ac_check_lib_save_LIBS
=$LIBS
4176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4179 /* Override any GCC internal prototype to avoid an error.
4180 Use char because int might match the return type of a GCC
4181 builtin and then its argument prototype would still apply. */
4185 char gethostbyname ();
4189 return gethostbyname ();
4194 if ac_fn_c_try_link
"$LINENO"; then :
4195 ac_cv_lib_nsl_gethostbyname
=yes
4197 ac_cv_lib_nsl_gethostbyname
=no
4199 rm -f core conftest.err conftest.
$ac_objext \
4200 conftest
$ac_exeext conftest.
$ac_ext
4201 LIBS
=$ac_check_lib_save_LIBS
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4204 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4205 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4206 cat >>confdefs.h
<<_ACEOF
4207 #define HAVE_LIBNSL 1
4215 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4216 # using the same condition.
4218 # See if the user specified whether he wants zlib support or not.
4220 # Check whether --with-zlib was given.
4221 if test "${with_zlib+set}" = set; then :
4228 if test "$with_zlib" != "no"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4230 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4231 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4234 ac_func_search_save_LIBS
=$LIBS
4235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4238 /* Override any GCC internal prototype to avoid an error.
4239 Use char because int might match the return type of a GCC
4240 builtin and then its argument prototype would still apply. */
4244 char zlibVersion ();
4248 return zlibVersion ();
4253 for ac_lib
in '' z
; do
4254 if test -z "$ac_lib"; then
4255 ac_res
="none required"
4258 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4260 if ac_fn_c_try_link
"$LINENO"; then :
4261 ac_cv_search_zlibVersion
=$ac_res
4263 rm -f core conftest.err conftest.
$ac_objext \
4265 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4269 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4272 ac_cv_search_zlibVersion
=no
4275 LIBS
=$ac_func_search_save_LIBS
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4278 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4279 ac_res
=$ac_cv_search_zlibVersion
4280 if test "$ac_res" != no
; then :
4281 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4282 for ac_header
in zlib.h
4284 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4285 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4286 cat >>confdefs.h
<<_ACEOF
4287 #define HAVE_ZLIB_H 1
4296 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4297 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4302 .
${srcdir}/..
/..
/bfd
/configure.
host
4306 USE_MAINTAINER_MODE
=no
4307 # Check whether --enable-maintainer-mode was given.
4308 if test "${enable_maintainer_mode+set}" = set; then :
4309 enableval
=$enable_maintainer_mode; case "${enableval}" in
4310 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4312 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4314 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4315 echo "Setting maintainer mode" 6>&1
4323 # Check whether --enable-sim-bswap was given.
4324 if test "${enable_sim_bswap+set}" = set; then :
4325 enableval
=$enable_sim_bswap; case "${enableval}" in
4326 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4327 no
) sim_bswap
="-DWITH_BSWAP=0";;
4328 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4330 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4331 echo "Setting bswap flags = $sim_bswap" 6>&1
4339 # Check whether --enable-sim-cflags was given.
4340 if test "${enable_sim_cflags+set}" = set; then :
4341 enableval
=$enable_sim_cflags; case "${enableval}" in
4342 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4343 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4345 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4347 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4348 echo "Setting sim cflags = $sim_cflags" 6>&1
4356 # Check whether --enable-sim-debug was given.
4357 if test "${enable_sim_debug+set}" = set; then :
4358 enableval
=$enable_sim_debug; case "${enableval}" in
4359 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4360 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4361 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4363 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4364 echo "Setting sim debug = $sim_debug" 6>&1
4372 # Check whether --enable-sim-stdio was given.
4373 if test "${enable_sim_stdio+set}" = set; then :
4374 enableval
=$enable_sim_stdio; case "${enableval}" in
4375 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4376 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4377 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4379 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4380 echo "Setting stdio flags = $sim_stdio" 6>&1
4388 # Check whether --enable-sim-trace was given.
4389 if test "${enable_sim_trace+set}" = set; then :
4390 enableval
=$enable_sim_trace; case "${enableval}" in
4391 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4392 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4394 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4397 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4398 if test x
"$sim_trace" = x
; then
4399 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4401 sim_trace
="${sim_trace}|TRACE_$x"
4404 sim_trace
="$sim_trace)'" ;;
4406 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4407 echo "Setting sim trace = $sim_trace" 6>&1
4415 # Check whether --enable-sim-profile was given.
4416 if test "${enable_sim_profile+set}" = set; then :
4417 enableval
=$enable_sim_profile; case "${enableval}" in
4418 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4419 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4421 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4424 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4425 if test x
"$sim_profile" = x
; then
4426 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4428 sim_profile
="${sim_profile}|PROFILE_$x"
4431 sim_profile
="$sim_profile)'" ;;
4433 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4434 echo "Setting sim profile = $sim_profile" 6>&1
4437 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4443 # Check whether --with-pkgversion was given.
4444 if test "${with_pkgversion+set}" = set; then :
4445 withval
=$with_pkgversion; case "$withval" in
4446 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4448 *) PKGVERSION
="($withval) " ;;
4459 # Check whether --with-bugurl was given.
4460 if test "${with_bugurl+set}" = set; then :
4461 withval
=$with_bugurl; case "$withval" in
4462 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4465 *) BUGURL
="$withval"
4469 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4479 REPORT_BUGS_TO
="<$BUGURL>"
4480 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4487 cat >>confdefs.h
<<_ACEOF
4488 #define PKGVERSION "$PKGVERSION"
4492 cat >>confdefs.h
<<_ACEOF
4493 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4498 $as_echo_n "checking return type of signal handlers... " >&6; }
4499 if test "${ac_cv_type_signal+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <sys/types.h>
4510 return *(signal (0, 0)) (0) == 1;
4515 if ac_fn_c_try_compile
"$LINENO"; then :
4516 ac_cv_type_signal
=int
4518 ac_cv_type_signal
=void
4520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4523 $as_echo "$ac_cv_type_signal" >&6; }
4525 cat >>confdefs.h
<<_ACEOF
4526 #define RETSIGTYPE $ac_cv_type_signal
4536 sim_link_links
=tconfig.h
4537 if test -f ${srcdir}/tconfig.
in
4539 sim_link_files
=tconfig.
in
4541 sim_link_files
=..
/common
/tconfig.
in
4544 # targ-vals.def points to the libc macro description file.
4546 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4548 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4549 sim_link_links
="${sim_link_links} targ-vals.def"
4554 default_sim_inline
=""
4555 # Check whether --enable-sim-inline was given.
4556 if test "${enable_sim_inline+set}" = set; then :
4557 enableval
=$enable_sim_inline; sim_inline
=""
4558 case "$enableval" in
4559 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4560 0) sim_inline
="-DDEFAULT_INLINE=0";;
4561 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4562 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4563 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4566 *_INLINE
=*) new_flag
="-D$x";;
4567 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4568 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4569 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4571 if test x
"$sim_inline" = x
""; then
4572 sim_inline
="$new_flag"
4574 sim_inline
="$sim_inline $new_flag"
4578 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4579 echo "Setting inline flags = $sim_inline" 6>&1
4583 if test "x$cross_compiling" = "xno"; then
4584 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4585 sim_inline
="${default_sim_inline}"
4586 if test x
"$silent" != x
"yes"; then
4587 echo "Setting inline flags = $sim_inline" 6>&1
4593 sim_inline
="-DDEFAULT_INLINE=0"
4597 wire_alignment
="NONSTRICT_ALIGNMENT"
4598 default_alignment
=""
4600 # Check whether --enable-sim-alignment was given.
4601 if test "${enable_sim_alignment+set}" = set; then :
4602 enableval
=$enable_sim_alignment; case "${enableval}" in
4603 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4604 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4605 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4606 yes) if test x
"$wire_alignment" != x
; then
4607 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4609 if test x
"$default_alignment" != x
; then
4610 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4612 echo "No hard-wired alignment for target $target" 1>&6
4613 sim_alignment
="-DWITH_ALIGNMENT=0"
4616 no
) if test x
"$default_alignment" != x
; then
4617 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4619 if test x
"$wire_alignment" != x
; then
4620 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4622 echo "No default alignment for target $target" 1>&6
4623 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4626 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4628 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4629 echo "Setting alignment flags = $sim_alignment" 6>&1
4632 if test x
"$default_alignment" != x
; then
4633 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4635 if test x
"$wire_alignment" != x
; then
4636 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4644 # Check whether --enable-sim-hostendian was given.
4645 if test "${enable_sim_hostendian+set}" = set; then :
4646 enableval
=$enable_sim_hostendian; case "${enableval}" in
4647 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4648 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4649 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4650 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4652 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4653 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4657 if test "x$cross_compiling" = "xno"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4659 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4660 if test "${ac_cv_c_bigendian+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4663 ac_cv_c_bigendian
=unknown
4664 # See if we're dealing with a universal compiler.
4665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #ifndef __APPLE_CC__
4668 not a universal capable compiler
4673 if ac_fn_c_try_compile
"$LINENO"; then :
4675 # Check for potential -arch flags. It is not universal unless
4676 # there are at least two -arch flags with different values.
4679 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4680 if test -n "$ac_prev"; then
4682 i?
86 | x86_64 | ppc | ppc64
)
4683 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4686 ac_cv_c_bigendian
=universal
4692 elif test "x$ac_word" = "x-arch"; then
4697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4698 if test $ac_cv_c_bigendian = unknown
; then
4699 # See if sys/param.h defines the BYTE_ORDER macro.
4700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <sys/types.h>
4703 #include <sys/param.h>
4708 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4709 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4718 if ac_fn_c_try_compile
"$LINENO"; then :
4719 # It does; now see whether it defined to BIG_ENDIAN or not.
4720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 #include <sys/types.h>
4723 #include <sys/param.h>
4728 #if BYTE_ORDER != BIG_ENDIAN
4736 if ac_fn_c_try_compile
"$LINENO"; then :
4737 ac_cv_c_bigendian
=yes
4739 ac_cv_c_bigendian
=no
4741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4745 if test $ac_cv_c_bigendian = unknown
; then
4746 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4754 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4762 if ac_fn_c_try_compile
"$LINENO"; then :
4763 # It does; now see whether it defined to _BIG_ENDIAN or not.
4764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4779 if ac_fn_c_try_compile
"$LINENO"; then :
4780 ac_cv_c_bigendian
=yes
4782 ac_cv_c_bigendian
=no
4784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4788 if test $ac_cv_c_bigendian = unknown
; then
4789 # Compile a test program.
4790 if test "$cross_compiling" = yes; then :
4791 # Try to guess by grepping values from an object file.
4792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 short int ascii_mm[] =
4795 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4796 short int ascii_ii[] =
4797 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4798 int use_ascii (int i) {
4799 return ascii_mm[i] + ascii_ii[i];
4801 short int ebcdic_ii[] =
4802 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4803 short int ebcdic_mm[] =
4804 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4805 int use_ebcdic (int i) {
4806 return ebcdic_mm[i] + ebcdic_ii[i];
4813 return use_ascii (foo) == use_ebcdic (foo);
4818 if ac_fn_c_try_compile
"$LINENO"; then :
4819 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4820 ac_cv_c_bigendian
=yes
4822 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4823 if test "$ac_cv_c_bigendian" = unknown
; then
4824 ac_cv_c_bigendian
=no
4826 # finding both strings is unlikely to happen, but who knows?
4827 ac_cv_c_bigendian
=unknown
4831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 $ac_includes_default
4840 /* Are we little or big endian? From Harbison&Steele. */
4844 char c[sizeof (long int)];
4847 return u.c[sizeof (long int) - 1] == 1;
4853 if ac_fn_c_try_run
"$LINENO"; then :
4854 ac_cv_c_bigendian
=no
4856 ac_cv_c_bigendian
=yes
4858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4865 $as_echo "$ac_cv_c_bigendian" >&6; }
4866 case $ac_cv_c_bigendian in #(
4868 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4874 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4878 as_fn_error
"unknown endianness
4879 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4882 if test $ac_cv_c_bigendian = yes; then
4883 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4885 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4888 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4893 # NOTE: Don't add -Wall or -Wunused, they both include
4894 # -Wunused-parameter which reports bogus warnings.
4895 # NOTE: If you add to this list, remember to update
4896 # gdb/doc/gdbint.texinfo.
4897 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4898 -Wformat -Wparentheses -Wpointer-arith"
4899 # GCC supports -Wuninitialized only with -O or -On, n != 0.
4900 if test x
${CFLAGS+set} = xset
; then
4904 build_warnings
="${build_warnings} -Wuninitialized"
4908 build_warnings
="${build_warnings} -Wuninitialized"
4910 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4911 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4912 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4913 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4914 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4915 # -Woverloaded-virtual -Winline -Werror"
4916 # Check whether --enable-build-warnings was given.
4917 if test "${enable_build_warnings+set}" = set; then :
4918 enableval
=$enable_build_warnings; case "${enableval}" in
4920 no
) build_warnings
="-w";;
4921 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4922 build_warnings
="${build_warnings} ${t}";;
4923 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4924 build_warnings
="${t} ${build_warnings}";;
4925 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4927 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4928 echo "Setting compiler warning flags = $build_warnings" 6>&1
4931 # Check whether --enable-sim-build-warnings was given.
4932 if test "${enable_sim_build_warnings+set}" = set; then :
4933 enableval
=$enable_sim_build_warnings; case "${enableval}" in
4935 no
) build_warnings
="-w";;
4936 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4937 build_warnings
="${build_warnings} ${t}";;
4938 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4939 build_warnings
="${t} ${build_warnings}";;
4940 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4942 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4943 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4948 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4951 $as_echo_n "checking compiler warning flags... " >&6; }
4952 # Separate out the -Werror flag as some files just cannot be
4953 # compiled with it enabled.
4954 for w
in ${build_warnings}; do
4956 -Werr*) WERROR_CFLAGS
=-Werror ;;
4957 *) # Check that GCC accepts it
4958 saved_CFLAGS
="$CFLAGS"
4960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4971 if ac_fn_c_try_compile
"$LINENO"; then :
4972 WARN_CFLAGS
="${WARN_CFLAGS} $w"
4974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4975 CFLAGS
="$saved_CFLAGS"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4979 $as_echo "${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
4983 default_sim_reserved_bits="1"
4984 # Check whether --enable-sim-reserved-bits was given.
4985 if test "${enable_sim_reserved_bits+set}" = set; then :
4986 enableval=$enable_sim_reserved_bits; case "${enableval}" in
4987 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
4988 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
4989 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value
\"" "$LINENO" 5; sim_reserved_bits="";;
4991 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
4992 echo "Setting reserved flags
= $sim_reserved_bits" 6>&1
4995 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
5001 # Instead of defining a `subtarget' macro, code should be checking
5002 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
5006 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
5007 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
5008 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5009 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5010 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5011 *) SIM_SUBTARGET="";;
5018 # Select the byte order of the target
5023 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
5024 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
5025 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5026 mips16*-*-*) default_endian=BIG_ENDIAN ;;
5027 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5028 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
5029 mips*-*-*) default_endian=BIG_ENDIAN ;;
5030 *) default_endian=BIG_ENDIAN ;;
5033 wire_endian="$mips_endian"
5034 default_endian="$default_endian"
5035 # Check whether --enable-sim-endian was given.
5036 if test "${enable_sim_endian+set}" = set; then :
5037 enableval=$enable_sim_endian; case "${enableval}" in
5038 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN
";;
5039 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN
";;
5040 yes) if test x"$wire_endian" != x; then
5041 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5043 if test x"$default_endian" != x; then
5044 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5046 echo "No hard-wired endian
for target
$target" 1>&6
5047 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5050 no) if test x"$default_endian" != x; then
5051 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5053 if test x"$wire_endian" != x; then
5054 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5056 echo "No default endian
for target
$target" 1>&6
5057 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5060 *) as_fn_error "\"Unknown value
$enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5062 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5063 echo "Setting endian flags
= $sim_endian" 6>&1
5066 if test x"$default_endian" != x; then
5067 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5069 if test x"$wire_endian" != x; then
5070 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5081 # Select the bitsize of the target
5085 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5086 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5087 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5088 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5089 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5090 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5091 *) mips_bitsize=64 ; mips_msb=63 ;;
5093 wire_word_bitsize="$mips_bitsize"
5094 wire_word_msb="$mips_msb"
5095 wire_address_bitsize="$mips_addr_bitsize"
5096 wire_cell_bitsize=""
5097 # Check whether --enable-sim-bitsize was given.
5098 if test "${enable_sim_bitsize+set}" = set; then :
5099 enableval=$enable_sim_bitsize; sim_bitsize=
5100 case "${enableval}" in
5101 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5102 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5103 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5104 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5105 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5106 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5108 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5110 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5111 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5113 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5115 *) as_fn_error "\"--enable-sim-bitsize was given
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5118 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9]*,*//"`
5121 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5122 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5123 * ) as_fn_error "\"--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5126 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5129 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5130 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5131 * ) as_fn_error "\"--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5133 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5134 echo "Setting bitsize flags
= $sim_bitsize" 6>&1
5138 if test x"$wire_word_bitsize" != x; then
5139 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5141 if test x"$wire_word_msb" != x; then
5142 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5144 if test x"$wire_address_bitsize" != x; then
5145 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5147 if test x"$wire_cell_bitsize" != x; then
5148 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5156 # Select the floating hardware support of the target
5158 mips_fpu=HARDWARE_FLOATING_POINT
5161 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5162 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5163 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5164 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5165 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5166 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5167 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5168 *) mips_fpu=HARD_FLOATING_POINT ;;
5171 default_sim_float="$mips_fpu"
5172 default_sim_float_bitsize="$mips_fpu_bitsize"
5173 # Check whether --enable-sim-float was given.
5174 if test "${enable_sim_float+set}" = set; then :
5175 enableval=$enable_sim_float; case "${enableval}" in
5176 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
";;
5177 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT
";;
5178 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5179 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5180 *) as_fn_error "\"Unknown value
$enableval passed to
--enable-sim-float\"" "$LINENO" 5; sim_float="";;
5182 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5183 echo "Setting float flags
= $sim_float" 6>&1
5188 if test x"${default_sim_float}" != x""; then
5189 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5191 if test x"${default_sim_float_bitsize}" != x""; then
5192 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5201 # Select the level of SMP support
5207 default_sim_smp="$mips_smp"
5208 # Check whether --enable-sim-smp was given.
5209 if test "${enable_sim_smp+set}" = set; then :
5210 enableval=$enable_sim_smp; case "${enableval}" in
5211 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5212 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5213 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5215 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5216 echo "Setting smp flags
= $sim_smp" 6>&1
5219 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5220 if test x"$silent" != x"yes"; then
5221 echo "Setting smp flags
= $sim_smp" 6>&1
5229 # Select the IGEN architecture
5232 sim_igen_machine="-M mipsIV
"
5233 sim_m16_machine="-M mips16
,mipsIII
"
5234 sim_igen_filter="32,64,f
"
5236 sim_mach_default="mips8000
"
5239 mips*tx39*) sim_gen=IGEN
5240 sim_igen_filter="32,f
"
5241 sim_igen_machine="-M r3900
"
5243 mips64vr43*-*-*) sim_gen=IGEN
5244 sim_igen_machine="-M mipsIV
"
5245 sim_mach_default="mips8000
"
5247 mips64vr5*-*-*) sim_gen=IGEN
5248 sim_igen_machine="-M vr5000
"
5249 sim_mach_default="mips5000
"
5251 mips64vr41*) sim_gen=M16
5252 sim_igen_machine="-M vr4100
"
5253 sim_m16_machine="-M vr4100
"
5254 sim_igen_filter="32,64,f
"
5256 sim_mach_default="mips4100
"
5258 mips64vr-*-* | mips64vrel-*-*)
5260 sim_multi_configs="\
5261 vr4100
:mipsIII
,mips16
,vr4100
:32,64:mips4100
,mips4111\
5262 vr4120
:mipsIII
,mips16
,vr4120
:32,64:mips4120\
5263 vr5000
:mipsIV
:32,64,f
:mips4300
,mips5000\
5264 vr5400
:mipsIV
,vr5400
:32,64,f
:mips5400\
5265 vr5500
:mipsIV
,vr5500
:32,64,f
:mips5500
"
5266 sim_multi_default=mips5000
5268 mips*-sde-elf*) sim_gen=M16
5269 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5270 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5271 sim_igen_filter="32,64,f
"
5272 sim_mach_default="mipsisa64r2
"
5274 mips64*-*-*) sim_igen_filter="32,64,f
"
5277 mips16*-*-*) sim_gen=M16
5278 sim_igen_filter="32,64,f
"
5281 mipsisa32r2*-*-*) sim_gen=M16
5282 sim_igen_machine="-M mips32r2
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5283 sim_m16_machine="-M mips16
,mips16e
,mips32r2
"
5284 sim_igen_filter="32,f
"
5285 sim_mach_default="mipsisa32r2
"
5287 mipsisa32*-*-*) sim_gen=M16
5288 sim_igen_machine="-M mips32
,mips16
,mips16e
,smartmips
"
5289 sim_m16_machine="-M mips16
,mips16e
,mips32
"
5290 sim_igen_filter="32,f
"
5291 sim_mach_default="mipsisa32
"
5293 mipsisa64r2*-*-*) sim_gen=M16
5294 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
"
5295 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5296 sim_igen_filter="32,64,f
"
5297 sim_mach_default="mipsisa64r2
"
5299 mipsisa64sb1*-*-*) sim_gen=IGEN
5300 sim_igen_machine="-M mips64
,mips3d
,sb1
"
5301 sim_igen_filter="32,64,f
"
5302 sim_mach_default="mips_sb1
"
5304 mipsisa64*-*-*) sim_gen=M16
5305 sim_igen_machine="-M mips64
,mips3d
,mips16
,mips16e
,mdmx
"
5306 sim_m16_machine="-M mips16
,mips16e
,mips64
"
5307 sim_igen_filter="32,64,f
"
5308 sim_mach_default="mipsisa64
"
5310 mips*lsi*) sim_gen=M16
5311 sim_igen_machine="-M mipsIII
,mips16
"
5312 sim_m16_machine="-M mips16
,mipsIII
"
5313 sim_igen_filter="32,f
"
5315 sim_mach_default="mips4000
"
5317 mips*-*-*) sim_gen=IGEN
5318 sim_igen_filter="32,f
"
5322 # The MULTI generator can combine several simulation engines into one.
5323 # executable. A configuration which uses the MULTI should set two
5324 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5326 # ${sim_multi_configs} is the list of engines to build. Each
5327 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5330 # - NAME is a C-compatible prefix for the engine,
5331 # - MACHINE is a -M argument,
5332 # - FILTER is a -F argument, and
5333 # - BFDMACHS is a comma-separated list of bfd machines that the
5334 # simulator can run.
5336 # Each entry will have a separate simulation engine whose prefix is
5337 # m32<NAME>. If the machine list includes "mips16
", there will also
5338 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5339 # generated using the same machine list as the 32-bit version,
5340 # but the filter will be "16" instead of FILTER.
5342 # The simulator compares the bfd mach against BFDMACHS to decide
5343 # which engine to use. Entries in BFDMACHS should be bfd_mach
5344 # values with "bfd_mach_
" removed. ${sim_multi_default} says
5345 # which entry should be the default.
5346 if test ${sim_gen} = MULTI; then
5348 # Simple sanity check.
5349 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
5350 as_fn_error "Error
in configure.
in: MULTI simulator not
set up correctly
" "$LINENO" 5
5353 # Start in a known state.
5354 rm -f multi-include.h multi-run.c
5357 sim_multi_obj=multi-run.o
5358 sim_multi_igen_configs=
5361 cat << __EOF__ > multi-run.c
5362 /* Main entry point for MULTI simulators.
5363 Copyright (C) 2003, 2007, 2010 Free Software Foundation, Inc.
5365 This program is free software; you can redistribute it and/or modify
5366 it under the terms of the GNU General Public License as published by
5367 the Free Software Foundation; either version 3 of the License, or
5368 (at your option) any later version.
5370 This program is distributed in the hope that it will be useful,
5371 but WITHOUT ANY WARRANTY; without even the implied warranty of
5372 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5373 GNU General Public License for more details.
5375 You should have received a copy of the GNU General Public License
5376 along with this program. If not, see <http://www.gnu.org/licenses/>.
5380 This file was generated by sim/mips/configure. */
5382 #include "sim-main.h
"
5383 #include "multi-include.h
"
5389 sim_engine_run (SIM_DESC sd,
5392 int signal) /* ignore */
5396 if (STATE_ARCHITECTURE (sd) == NULL)
5397 mach = bfd_mach_${sim_multi_default};
5399 mach = STATE_ARCHITECTURE (SD)->mach;
5405 for fc in ${sim_multi_configs}; do
5407 # Split up the entry. ${c} contains the first three elements.
5408 # Note: outer sqaure brackets are m4 quotes.
5409 c=`echo ${fc} | sed 's/:[^:]*$//'`
5410 bfdmachs=`echo ${fc} | sed 's/.*://'`
5411 name=`echo ${c} | sed 's/:.*//'`
5412 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5413 filter=`echo ${c} | sed 's/.*://'`
5415 # Build the following lists:
5417 # sim_multi_flags: all -M and -F flags used by the simulator
5418 # sim_multi_src: all makefile-generated source files
5419 # sim_multi_obj: the objects for ${sim_multi_src}
5420 # sim_multi_igen_configs: igen configuration strings.
5422 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5423 # or m16) followed by the NAME, MACHINE and FILTER part of
5424 # the ${sim_multi_configs} entry.
5425 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5427 # Check whether mips16 handling is needed.
5430 # Run igen twice, once for normal mode and once for mips16.
5433 # The top-level function for the mips16 simulator is
5434 # in a file m16${name}_run.c, generated by the
5435 # tmp-run-multi Makefile rule.
5436 sim_multi_src="${sim_multi_src} m16
${name}_run.c
"
5437 sim_multi_obj="${sim_multi_obj} m16
${name}_run.o
"
5438 sim_multi_flags="${sim_multi_flags} -F 16"
5445 # Now add the list of igen-generated files to ${sim_multi_src}
5446 # and ${sim_multi_obj}.
5448 for base in engine icache idecode model semantics support; do
5449 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c
"
5450 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h
"
5451 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o
"
5453 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5456 # Add an include for the engine.h file. This file declares the
5457 # top-level foo_engine_run() function.
5458 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5460 # Add case statements for this engine to sim_engine_run().
5461 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5462 echo " case bfd_mach_${mach}:" >> multi-run.c
5463 if test ${mach} = ${sim_multi_default}; then
5464 echo " default:" >> multi-run.c
5465 sim_seen_default
=yes
5468 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5470 echo " break;" >> multi-run.c
5473 # Check whether we added a 'default:' label.
5474 if test ${sim_seen_default} = no
; then
5475 as_fn_error
"Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
5478 cat << __EOF__ >> multi-run.c
5483 mips_mach_multi (SIM_DESC sd)
5485 if (STATE_ARCHITECTURE (sd) == NULL)
5486 return bfd_mach_${sim_multi_default};
5488 switch (STATE_ARCHITECTURE (SD)->mach)
5492 # Add case statements for this engine to mips_mach_multi().
5493 for fc in ${sim_multi_configs}; do
5495 # Split up the entry. ${c} contains the first three elements.
5496 # Note: outer sqaure brackets are m4 quotes.
5497 c
=`echo ${fc} | sed 's/:[^:]*$//'`
5498 bfdmachs
=`echo ${fc} | sed 's/.*://'`
5500 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5501 echo " case bfd_mach_${mach}:" >> multi-run.c
5505 cat << __EOF__ >> multi-run.c
5506 return (STATE_ARCHITECTURE (SD)->mach);
5508 return bfd_mach_${sim_multi_default};
5513 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5516 sim_multi_src
=doesnt-exist.c
5518 if test x
"${sim_mach_default}" = x
""; then
5519 as_fn_error
"Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
5521 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5523 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5524 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5535 # Add simulated hardware devices
5541 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
5542 mips_extra_objs
="dv-sockser.o"
5543 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
5550 if test x
"$hw_enabled" = x
"yes"; then
5555 if test "$hw_devices"; then
5556 hardware
="$hw_devices"
5558 hardware
="cfi core pal glue"
5560 hardware
="$hardware $hw_extra_devices"
5561 sim_hw_cflags
="-DWITH_HW=1"
5563 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5564 # Check whether --enable-sim-hardware was given.
5565 if test "${enable_sim_hardware+set}" = set; then :
5566 enableval
=$enable_sim_hardware;
5567 case "${enableval}" in
5570 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5571 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5572 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5574 if test "$sim_hw_p" != yes; then
5576 sim_hw_cflags
="-DWITH_HW=0"
5579 sim_hw_cflags
="-DWITH_HW=1"
5582 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
5583 for i
in $hardware ; do
5586 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
5590 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
5591 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5595 if test "$sim_hw_p" != yes; then
5597 sim_hw_cflags
="-DWITH_HW=0"
5600 if test x
"$silent" != x
"yes"; then
5601 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5608 # Choose simulator engine
5610 *) mips_igen_engine
="engine.o"
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5617 $as_echo_n "checking for X... " >&6; }
5620 # Check whether --with-x was given.
5621 if test "${with_x+set}" = set; then :
5625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5626 if test "x$with_x" = xno
; then
5627 # The user explicitly disabled X.
5630 case $x_includes,$x_libraries in #(
5631 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
5632 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5635 # One or both of the vars are not set, and there is no cached value.
5636 ac_x_includes
=no ac_x_libraries
=no
5637 rm -f -r conftest.dir
5638 if mkdir conftest.dir
; then
5640 cat >Imakefile
<<'_ACEOF'
5642 @echo incroot='${INCROOT}'
5644 @echo usrlibdir='${USRLIBDIR}'
5646 @echo libdir='${LIBDIR}'
5648 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5649 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5650 for ac_var
in incroot usrlibdir libdir
; do
5651 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5653 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5654 for ac_extension
in a so sl dylib la dll
; do
5655 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5656 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5657 ac_im_usrlibdir
=$ac_im_libdir; break
5660 # Screen out bogus values from the imake configuration. They are
5661 # bogus both because they are the default anyway, and because
5662 # using them would break gcc on systems where it needs fixed includes.
5663 case $ac_im_incroot in
5664 /usr
/include
) ac_x_includes
= ;;
5665 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5667 case $ac_im_usrlibdir in
5668 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
5669 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5673 rm -f -r conftest.dir
5676 # Standard set of common directories for X headers.
5677 # Check X11 before X11Rn because it is often a symlink to the current release.
5691 /usr/local/X11/include
5692 /usr/local/X11R7/include
5693 /usr/local/X11R6/include
5694 /usr/local/X11R5/include
5695 /usr/local/X11R4/include
5697 /usr/local/include/X11
5698 /usr/local/include/X11R7
5699 /usr/local/include/X11R6
5700 /usr/local/include/X11R5
5701 /usr/local/include/X11R4
5705 /usr/XFree86/include/X11
5709 /usr/unsupported/include
5711 /usr/local/x11r5/include
5712 /usr/lpp/Xamples/include
5714 /usr/openwin/include
5715 /usr/openwin/share/include'
5717 if test "$ac_x_includes" = no
; then
5718 # Guess where to find include files, by looking for Xlib.h.
5719 # First, try using that file with no special directory specified.
5720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #include <X11/Xlib.h>
5724 if ac_fn_c_try_cpp
"$LINENO"; then :
5725 # We can compile using X headers with no special include directory.
5728 for ac_dir
in $ac_x_header_dirs; do
5729 if test -r "$ac_dir/X11/Xlib.h"; then
5730 ac_x_includes
=$ac_dir
5735 rm -f conftest.err conftest.
$ac_ext
5736 fi # $ac_x_includes = no
5738 if test "$ac_x_libraries" = no
; then
5739 # Check for the libraries.
5740 # See if we find them without any special options.
5741 # Don't add to $LIBS permanently.
5744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #include <X11/Xlib.h>
5755 if ac_fn_c_try_link
"$LINENO"; then :
5757 # We can link X programs with no special library path.
5761 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5763 # Don't even attempt the hair of trying to link an X program!
5764 for ac_extension
in a so sl dylib la dll
; do
5765 if test -r "$ac_dir/libX11.$ac_extension"; then
5766 ac_x_libraries
=$ac_dir
5772 rm -f core conftest.err conftest.
$ac_objext \
5773 conftest
$ac_exeext conftest.
$ac_ext
5774 fi # $ac_x_libraries = no
5776 case $ac_x_includes,$ac_x_libraries in #(
5778 # Didn't find X, or a directory has "'" in its name.
5779 ac_cv_have_x
="have_x=no";; #(
5781 # Record where we found X for the cache.
5782 ac_cv_have_x
="have_x=yes\
5783 ac_x_includes='$ac_x_includes'\
5784 ac_x_libraries='$ac_x_libraries'"
5790 eval "$ac_cv_have_x"
5793 if test "$have_x" != yes; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5795 $as_echo "$have_x" >&6; }
5798 # If each of the values was on the command line, it overrides each guess.
5799 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5800 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5801 # Update the cache value to reflect the command line values.
5802 ac_cv_have_x
="have_x=yes\
5803 ac_x_includes='$x_includes'\
5804 ac_x_libraries='$x_libraries'"
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5806 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5812 for ac_header
in string.h
strings.h stdlib.h stdlib.h
5814 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5815 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5816 eval as_val
=\$
$as_ac_Header
5817 if test "x$as_val" = x
""yes; then :
5818 cat >>confdefs.h
<<_ACEOF
5819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
5827 $as_echo_n "checking for fabs in -lm... " >&6; }
5828 if test "${ac_cv_lib_m_fabs+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5831 ac_check_lib_save_LIBS
=$LIBS
5833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5851 if ac_fn_c_try_link
"$LINENO"; then :
5852 ac_cv_lib_m_fabs
=yes
5856 rm -f core conftest.err conftest.
$ac_objext \
5857 conftest
$ac_exeext conftest.
$ac_ext
5858 LIBS
=$ac_check_lib_save_LIBS
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
5861 $as_echo "$ac_cv_lib_m_fabs" >&6; }
5862 if test "x$ac_cv_lib_m_fabs" = x
""yes; then :
5863 cat >>confdefs.h
<<_ACEOF
5871 for ac_func
in aint anint sqrt
5873 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5874 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5875 eval as_val
=\$
$as_ac_var
5876 if test "x$as_val" = x
""yes; then :
5877 cat >>confdefs.h
<<_ACEOF
5878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5886 ac_sources
="$sim_link_files"
5887 ac_dests
="$sim_link_links"
5888 while test -n "$ac_sources"; do
5889 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
5890 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
5891 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
5893 ac_config_links
="$ac_config_links $ac_config_links_1"
5896 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
5897 cgen_breaks
="break cgen_rtx_error";
5900 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
5902 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
5904 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
5906 ac_config_commands
="$ac_config_commands Makefile"
5908 ac_config_commands
="$ac_config_commands stamp-h"
5910 cat >confcache
<<\_ACEOF
5911 # This file is a shell script that caches the results of configure
5912 # tests run on this system so they can be shared between configure
5913 # scripts and configure runs, see configure's option --config-cache.
5914 # It is not useful on other systems. If it contains results you don't
5915 # want to keep, you may remove or edit it.
5917 # config.status only pays attention to the cache file if you give it
5918 # the --recheck option to rerun configure.
5920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5926 # The following way of writing the cache mishandles newlines in values,
5927 # but we know of no workaround that is simple, portable, and efficient.
5928 # So, we kill variables containing newlines.
5929 # Ultrix sh set writes to stderr and can't be redirected directly,
5930 # and sets the high bit in the cache file unless we assign to the vars.
5932 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5933 eval ac_val
=\$
$ac_var
5937 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5941 _ | IFS | as_nl
) ;; #(
5942 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5943 *) { eval $ac_var=; unset $ac_var;} ;;
5949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5950 *${as_nl}ac_space
=\
*)
5951 # `set' does not quote correctly, so add quotes: double-quote
5952 # substitution turns \\\\ into \\, and sed turns \\ into \.
5955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5958 # `set' quotes correctly as required by POSIX, so do not add quotes.
5959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5972 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5973 if test -w "$cache_file"; then
5974 test "x$cache_file" != "x/dev/null" &&
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5976 $as_echo "$as_me: updating cache $cache_file" >&6;}
5977 cat confcache
>$cache_file
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5985 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5986 # Let make expand exec_prefix.
5987 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5989 DEFS
=-DHAVE_CONFIG_H
5993 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5994 # 1. Remove the extension, and $U if already installed.
5995 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5996 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5998 # will be set to the directory where LIBOBJS objects are built.
5999 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6000 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6004 LTLIBOBJS
=$ac_ltlibobjs
6009 : ${CONFIG_STATUS=./config.status}
6011 ac_clean_files_save
=$ac_clean_files
6012 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6014 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6016 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6018 # Generated by $as_me.
6019 # Run this file to recreate the current configuration.
6020 # Compiler output produced by configure, useful for debugging
6021 # configure, is in config.log if it exists.
6027 SHELL=\${CONFIG_SHELL-$SHELL}
6030 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6031 ## -------------------- ##
6032 ## M4sh Initialization. ##
6033 ## -------------------- ##
6035 # Be more Bourne compatible
6036 DUALCASE
=1; export DUALCASE
# for MKS sh
6037 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6040 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6041 # is contrary to our usage. Disable this feature.
6042 alias -g '${1+"$@"}'='"$@"'
6043 setopt NO_GLOB_SUBST
6045 case `(set -o) 2>/dev/null` in #(
6057 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6058 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6059 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6061 # Prefer a ksh shell builtin over an external printf program on Solaris,
6062 # but without wasting forks for bash or zsh.
6063 if test -z "$BASH_VERSION$ZSH_VERSION" \
6064 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6065 as_echo='print
-r --'
6066 as_echo_n='print
-rn --'
6067 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6068 as_echo='printf %s
\n'
6069 as_echo_n='printf %s
'
6071 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6072 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6073 as_echo_n='/usr
/ucb
/echo -n'
6075 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6076 as_echo_n_body='eval
6080 expr "X$arg" : "X\\(.*\\)$as_nl";
6081 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6083 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6085 export as_echo_n_body
6086 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6089 as_echo='sh
-c $as_echo_body as_echo
'
6092 # The user is always right.
6093 if test "${PATH_SEPARATOR+set}" != set; then
6095 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6096 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6103 # We need space, tab and new line, in precisely that order. Quoting is
6104 # there to prevent editors from complaining about space-tab.
6105 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6106 # splitting by setting IFS to empty value.)
6109 # Find who we are. Look in the path if we contain no directory separator.
6111 *[\\/]* ) as_myself=$0 ;;
6112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 test -z "$as_dir" && as_dir=.
6117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6123 # We did not find ourselves, most probably we were run as `sh COMMAND'
6124 # in which case we are not to be found in the path.
6125 if test "x$as_myself" = x
; then
6128 if test ! -f "$as_myself"; then
6129 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6133 # Unset variables that we do not need and which cause bugs (e.g. in
6134 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6135 # suppresses any "Segmentation fault" message there. '((' could
6136 # trigger a bug in pdksh 5.2.14.
6137 for as_var
in BASH_ENV ENV MAIL MAILPATH
6138 do eval test x\
${$as_var+set} = xset \
6139 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6152 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6155 # as_fn_error ERROR [LINENO LOG_FD]
6156 # ---------------------------------
6157 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6158 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6159 # script with status $?, using 1 if that was 0.
6162 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6164 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6165 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6167 $as_echo "$as_me: error: $1" >&2
6168 as_fn_exit
$as_status
6172 # as_fn_set_status STATUS
6173 # -----------------------
6174 # Set $? to STATUS, without forking.
6178 } # as_fn_set_status
6182 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6192 # Portably unset VAR.
6195 { eval $1=; unset $1;}
6197 as_unset
=as_fn_unset
6198 # as_fn_append VAR VALUE
6199 # ----------------------
6200 # Append the text in VALUE to the end of the definition contained in VAR. Take
6201 # advantage of any shell optimizations that allow amortized linear growth over
6202 # repeated appends, instead of the typical quadratic growth present in naive
6204 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6205 eval 'as_fn_append ()
6216 # as_fn_arith ARG...
6217 # ------------------
6218 # Perform arithmetic evaluation on the ARGs, and store the result in the
6219 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6220 # must be portable across $(()) and expr.
6221 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6222 eval 'as_fn_arith ()
6229 as_val
=`expr "$@" || test $? -eq 1`
6234 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6235 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6241 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6242 as_basename
=basename
6247 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6253 as_me
=`$as_basename -- "$0" ||
6254 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6255 X"$0" : 'X\(//\)$' \| \
6256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6258 sed '/^.*\/\([^/][^/]*\)\/*$/{
6272 # Avoid depending upon Character Ranges.
6273 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6274 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6275 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6276 as_cr_digits
='0123456789'
6277 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6279 ECHO_C
= ECHO_N
= ECHO_T
=
6280 case `echo -n x` in #(((((
6282 case `echo 'xy\c'` in
6283 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6285 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6292 rm -f conf$$ conf$$.exe conf$$.
file
6293 if test -d conf$$.dir
; then
6294 rm -f conf$$.dir
/conf$$.
file
6297 mkdir conf$$.dir
2>/dev
/null
6299 if (echo >conf$$.
file) 2>/dev
/null
; then
6300 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6302 # ... but there are two gotchas:
6303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6305 # In both cases, we have to default to `cp -p'.
6306 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6308 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6316 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6317 rmdir conf$$.dir
2>/dev
/null
6322 # Create "$as_dir" as a directory, including parents if necessary.
6327 -*) as_dir
=.
/$as_dir;;
6329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6334 *) as_qdir
=$as_dir;;
6336 as_dirs
="'$as_qdir' $as_dirs"
6337 as_dir
=`$as_dirname -- "$as_dir" ||
6338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6339 X"$as_dir" : 'X\(//\)[^/]' \| \
6340 X"$as_dir" : 'X\(//\)$' \| \
6341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6342 $as_echo X"$as_dir" |
6343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6360 test -d "$as_dir" && break
6362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6363 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6367 if mkdir
-p .
2>/dev
/null
; then
6368 as_mkdir_p
='mkdir -p "$as_dir"'
6370 test -d .
/-p && rmdir .
/-p
6374 if test -x / >/dev
/null
2>&1; then
6377 if ls -dL / >/dev
/null
2>&1; then
6384 if test -d "$1"; then
6390 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6391 ???[sx]*):;;*)false;;esac;fi
6395 as_executable_p
=$as_test_x
6397 # Sed expression to map a string onto a valid CPP name.
6398 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6400 # Sed expression to map a string onto a valid variable name.
6401 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6405 ## ----------------------------------- ##
6406 ## Main body of $CONFIG_STATUS script. ##
6407 ## ----------------------------------- ##
6409 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6412 # Save the log message, to keep $0 and so on meaningful, and to
6413 # report actual input values of CONFIG_FILES etc. instead of their
6414 # values after options handling.
6416 This file was extended by $as_me, which was
6417 generated by GNU Autoconf 2.64. Invocation command line was
6419 CONFIG_FILES = $CONFIG_FILES
6420 CONFIG_HEADERS = $CONFIG_HEADERS
6421 CONFIG_LINKS = $CONFIG_LINKS
6422 CONFIG_COMMANDS = $CONFIG_COMMANDS
6425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6430 case $ac_config_files in *"
6431 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6434 case $ac_config_headers in *"
6435 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6440 # Files that config.status was made for.
6441 config_files="$ac_config_files"
6442 config_headers="$ac_config_headers"
6443 config_links="$ac_config_links"
6444 config_commands="$ac_config_commands"
6448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6450 \`$as_me' instantiates files and other configuration actions
6451 from templates according to the current configuration. Unless the files
6452 and actions are specified as TAGs, all are instantiated by default.
6454 Usage: $0 [OPTION]... [TAG]...
6456 -h, --help print this help, then exit
6457 -V, --version print version number and configuration settings, then exit
6458 -q, --quiet, --silent
6459 do not print progress messages
6460 -d, --debug don't remove temporary files
6461 --recheck update $as_me by reconfiguring in the same conditions
6462 --file=FILE[:TEMPLATE]
6463 instantiate the configuration file FILE
6464 --header=FILE[:TEMPLATE]
6465 instantiate the configuration header FILE
6467 Configuration files:
6470 Configuration headers:
6473 Configuration links:
6476 Configuration commands:
6479 Report bugs to the package provider."
6482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6485 configured by $0, generated by GNU Autoconf 2.64,
6486 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6488 Copyright (C) 2009 Free Software Foundation, Inc.
6489 This config.status script is free software; the Free Software Foundation
6490 gives unlimited permission to copy, distribute and modify it."
6495 test -n "\$AWK" || AWK=awk
6498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6499 # The default lists apply if the user does not specify any file.
6505 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6506 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6517 # Handling of the options.
6518 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6520 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6521 $as_echo "$ac_cs_version"; exit ;;
6522 --debug |
--debu |
--deb |
--de |
--d |
-d )
6524 --file |
--fil |
--fi |
--f )
6527 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6529 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6530 ac_need_defaults
=false
;;
6531 --header |
--heade |
--head |
--hea )
6534 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6536 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6537 ac_need_defaults
=false
;;
6539 # Conflict between --help and --header
6540 as_fn_error
"ambiguous option: \`$1'
6541 Try \`$0 --help' for more information.";;
6542 --help |
--hel |
-h )
6543 $as_echo "$ac_cs_usage"; exit ;;
6544 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6545 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6549 -*) as_fn_error
"unrecognized option: \`$1'
6550 Try \`$0 --help' for more information." ;;
6552 *) as_fn_append ac_config_targets
" $1"
6553 ac_need_defaults
=false
;;
6559 ac_configure_extra_args
=
6561 if $ac_cs_silent; then
6563 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6568 if \$ac_cs_recheck; then
6569 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6571 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6572 CONFIG_SHELL='$SHELL'
6578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6583 ## Running $as_me. ##
6589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6594 # Handling of arguments.
6595 for ac_config_target
in $ac_config_targets
6597 case $ac_config_target in
6598 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6599 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6600 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6601 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6602 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6603 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6604 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6606 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6611 # If the user did not use the arguments to specify the items to instantiate,
6612 # then the envvar interface is used. Set only those that are not.
6613 # We use the long form for the default assignment because of an extremely
6614 # bizarre bug on SunOS 4.1.3.
6615 if $ac_need_defaults; then
6616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6618 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6622 # Have a temporary directory for convenience. Make it in the build tree
6623 # simply because there is no reason against having it here, and in addition,
6624 # creating and moving files from /tmp can sometimes cause problems.
6625 # Hook for its removal unless debugging.
6626 # Note that there is a small window in which the directory will not be cleaned:
6627 # after its creation but before its name has been assigned to `$tmp'.
6631 trap 'exit_status=$?
6632 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6634 trap 'as_fn_exit 1' 1 2 13 15
6636 # Create a (secure) tmp directory for tmp files.
6639 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6640 test -n "$tmp" && test -d "$tmp"
6643 tmp
=.
/conf$$
-$RANDOM
6644 (umask 077 && mkdir
"$tmp")
6645 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6647 # Set up the scripts for CONFIG_FILES section.
6648 # No need to generate them if there are no CONFIG_FILES.
6649 # This happens for instance with `./config.status config.h'.
6650 if test -n "$CONFIG_FILES"; then
6653 ac_cr
=`echo X | tr X '\015'`
6654 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6655 # But we know of no other shell where ac_cr would be empty at this
6656 # point, so we can use a bashism as a fallback.
6657 if test "x$ac_cr" = x
; then
6658 eval ac_cr
=\$
\'\\r
\'
6660 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6661 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6667 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6672 echo "cat >conf$$subs.awk <<_ACEOF" &&
6673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6676 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6677 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6679 for ac_last_try in false false false false false :; do
6680 . ./conf$$subs.sh ||
6681 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6683 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6684 if test $ac_delim_n = $ac_delim_num; then
6686 elif $ac_last_try; then
6687 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6689 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6695 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6699 s/^/S["/; s
/!.
*/"]=/
6709 s/\(.\{148\}\).*/\1/
6711 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6716 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6723 s/\(.\{148\}\).*/\1/
6725 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6729 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6734 ' <conf$$subs.awk | sed '
6739 ' >>$CONFIG_STATUS || ac_write_fail=1
6740 rm -f conf$$subs.awk
6741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6743 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6744 for (key in S) S_is_set[key] = 1
6750 nfields = split(line, field, "@
")
6752 len = length(field[1])
6753 for (i = 2; i < nfields; i++) {
6755 keylen = length(key)
6756 if (S_is_set[key]) {
6758 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6759 len += length(value) + length(field[++i])
6770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6771 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6772 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6775 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6776 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6779 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6780 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6781 # trailing colons and then remove the whole line if VPATH becomes empty
6782 # (actually we leave an empty line to preserve line numbers).
6783 if test "x
$srcdir" = x.; then
6784 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6788 s/^\([^=]*=[ ]*\):*/\1/
6794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6795 fi # test -n "$CONFIG_FILES"
6797 # Set up the scripts for CONFIG_HEADERS section.
6798 # No need to generate them if there are no CONFIG_HEADERS.
6799 # This happens for instance with `./config.status Makefile'.
6800 if test -n "$CONFIG_HEADERS"; then
6801 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6805 # Transform confdefs.h into an awk script `defines.awk', embedded as
6806 # here-document in config.status, that substitutes the proper values into
6807 # config.h.in to produce config.h.
6809 # Create a delimiter string that does not exist in confdefs.h, to ease
6810 # handling of long lines.
6812 for ac_last_try in false false :; do
6813 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6814 if test -z "$ac_t"; then
6816 elif $ac_last_try; then
6817 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6819 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6823 # For the awk script, D is an array of macro values keyed by name,
6824 # likewise P contains macro parameters if any. Preserve backslash
6825 # newline sequences.
6827 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6829 s/.\{148\}/&'"$ac_delim"'/g
6832 s/^[ ]*#[ ]*define[ ][ ]*/ /
6839 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6841 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6846 D["\
1"]=" \
3\\\\\\n
"\\/p
6848 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6853 s/.\{148\}/&'"$ac_delim"'/g
6858 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6861 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6863 ' <confdefs.h | sed '
6864 s/'"$ac_delim"'/"\\\
6865 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6868 for (key in D) D_is_set[key] = 1
6871 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6873 split(line, arg, " ")
6874 if (arg[1] == "#") {
6878 defundef
= substr
(arg
[1], 2)
6881 split(mac1
, mac2
, "(") #)
6883 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6884 if (D_is_set
[macro
]) {
6885 # Preserve the white space surrounding the "#".
6886 print prefix
"define", macro P
[macro
] D
[macro
]
6889 # Replace #undef with comments. This is necessary, for example,
6890 # in the case of _POSIX_SOURCE, which is predefined and required
6891 # on some systems where configure will not decide to define it.
6892 if (defundef
== "undef") {
6893 print
"/*", prefix defundef
, macro
, "*/"
6901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6902 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6903 fi # test -n "$CONFIG_HEADERS"
6906 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
6911 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6913 case $ac_mode$ac_tag in
6915 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6916 :[FH
]-) ac_tag
=-:-;;
6917 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6934 -) ac_f
="$tmp/stdin";;
6935 *) # Look for the file first in the build tree, then in the source tree
6936 # (if the path is not absolute). The absolute path cannot be DOS-style,
6937 # because $ac_f cannot contain `:'.
6941 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6943 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6945 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6946 as_fn_append ac_file_inputs
" '$ac_f'"
6949 # Let's still pretend it is `configure' which instantiates (i.e., don't
6950 # use $as_me), people would be surprised to read:
6951 # /* config.h. Generated by config.status. */
6952 configure_input
='Generated from '`
6953 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6955 if test x
"$ac_file" != x-
; then
6956 configure_input
="$ac_file. $configure_input"
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6958 $as_echo "$as_me: creating $ac_file" >&6;}
6960 # Neutralize special characters interpreted by sed in replacement strings.
6961 case $configure_input in #(
6962 *\
&* |
*\|
* |
*\\* )
6963 ac_sed_conf_input
=`$as_echo "$configure_input" |
6964 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6965 *) ac_sed_conf_input
=$configure_input;;
6969 *:-:* |
*:-) cat >"$tmp/stdin" \
6970 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
6975 ac_dir
=`$as_dirname -- "$ac_file" ||
6976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6977 X"$ac_file" : 'X\(//\)[^/]' \| \
6978 X"$ac_file" : 'X\(//\)$' \| \
6979 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6980 $as_echo X"$ac_file" |
6981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6998 as_dir
="$ac_dir"; as_fn_mkdir_p
7002 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7004 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7005 # A ".." for each directory in $ac_dir_suffix.
7006 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7007 case $ac_top_builddir_sub in
7008 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7009 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7012 ac_abs_top_builddir
=$ac_pwd
7013 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7014 # for backward compatibility:
7015 ac_top_builddir
=$ac_top_build_prefix
7018 .
) # We are building in place.
7020 ac_top_srcdir
=$ac_top_builddir_sub
7021 ac_abs_top_srcdir
=$ac_pwd ;;
7022 [\\/]* | ?
:[\\/]* ) # Absolute name.
7023 ac_srcdir
=$srcdir$ac_dir_suffix;
7024 ac_top_srcdir
=$srcdir
7025 ac_abs_top_srcdir
=$srcdir ;;
7027 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7028 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7029 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7031 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7041 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7042 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7047 # If the template does not know about datarootdir, expand it.
7048 # FIXME: This hack should be removed a few years after 2.60.
7049 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7060 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7061 *datarootdir
*) ac_datarootdir_seen
=yes;;
7062 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7064 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7067 ac_datarootdir_hack='
7068 s&@datadir@&$datadir&g
7069 s&@docdir@&$docdir&g
7070 s&@infodir@&$infodir&g
7071 s&@localedir@&$localedir&g
7072 s&@mandir@&$mandir&g
7073 s&\\\${datarootdir}&$datarootdir&g' ;;
7077 # Neutralize VPATH when `$srcdir' = `.'.
7078 # Shell code in configure.ac might set extrasub.
7079 # FIXME: do we really want to maintain this feature?
7080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7081 ac_sed_extra="$ac_vpsub
7084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7086 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7087 s|@configure_input@|
$ac_sed_conf_input|
;t t
7088 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7089 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7090 s
&@srcdir@
&$ac_srcdir&;t t
7091 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7092 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7093 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7094 s
&@builddir@
&$ac_builddir&;t t
7095 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7096 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7097 s
&@INSTALL@
&$ac_INSTALL&;t t
7098 $ac_datarootdir_hack
7100 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7101 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7103 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7104 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7105 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7107 which seems to be undefined. Please make sure it is defined." >&5
7108 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7109 which seems to be undefined. Please make sure it is defined." >&2;}
7113 -) cat "$tmp/out" && rm -f "$tmp/out";;
7114 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7116 || as_fn_error "could not create $ac_file" "$LINENO" 5
7122 if test x"$ac_file" != x-; then
7124 $as_echo "/* $configure_input */" \
7125 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7126 } >"$tmp/config.h" \
7127 || as_fn_error "could not create $ac_file" "$LINENO" 5
7128 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7130 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7133 mv "$tmp/config.h" "$ac_file" \
7134 || as_fn_error "could not create $ac_file" "$LINENO" 5
7137 $as_echo "/* $configure_input */" \
7138 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7139 || as_fn_error "could not create -" "$LINENO" 5
7147 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
7150 # Prefer the file from the source tree if names are identical.
7151 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7152 ac_source=$srcdir/$ac_source
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7156 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7158 if test ! -r "$ac_source"; then
7159 as_fn_error "$ac_source: file not found" "$LINENO" 5
7163 # Try a relative symlink, then a hard link, then a copy.
7165 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7166 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7168 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7169 ln "$ac_source" "$ac_file" 2>/dev/null ||
7170 cp -p "$ac_source" "$ac_file" ||
7171 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7174 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7175 $as_echo "$as_me: executing $ac_file commands" >&6;}
7180 case $ac_file$ac_mode in
7181 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7182 rm -f Makesim1.tmp Makesim2.tmp Makefile
7183 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7184 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
7185 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7186 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7187 <Makefile.sim
>Makefile
7188 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7190 "stamp-h":C
) echo > stamp-h
;;
7198 ac_clean_files
=$ac_clean_files_save
7200 test $ac_write_fail = 0 ||
7201 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7204 # configure is writing to config.log, and then calls config.status.
7205 # config.status does its own redirection, appending to config.log.
7206 # Unfortunately, on DOS this fails, as config.log is still kept open
7207 # by configure, so config.status won't be able to write to it; its
7208 # output is simply discarded. So we exec the FD to /dev/null,
7209 # effectively closing config.log, so it can be properly (re)opened and
7210 # appended to by config.status. When coming back to configure, we
7211 # need to make the FD available again.
7212 if test "$no_create" != yes; then
7214 ac_config_status_args
=
7215 test "$silent" = yes &&
7216 ac_config_status_args
="$ac_config_status_args --quiet"
7218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7221 # would make configure fail if this is the last instruction.
7222 $ac_cs_success || as_fn_exit $?
7224 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7226 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}