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
719 enable_maintainer_mode
730 enable_sim_hostendian
731 enable_build_warnings
732 enable_sim_build_warnings
733 enable_sim_reserved_bits
741 ac_precious_vars
='build_alias
753 # Initialize some variables set by options.
755 ac_init_version
=false
756 ac_unrecognized_opts
=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name
=s
,x
,x
,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir
='${exec_prefix}/bin'
782 sbindir
='${exec_prefix}/sbin'
783 libexecdir
='${exec_prefix}/libexec'
784 datarootdir
='${prefix}/share'
785 datadir
='${datarootdir}'
786 sysconfdir
='${prefix}/etc'
787 sharedstatedir
='${prefix}/com'
788 localstatedir
='${prefix}/var'
789 includedir
='${prefix}/include'
790 oldincludedir
='/usr/include'
791 docdir
='${datarootdir}/doc/${PACKAGE}'
792 infodir
='${datarootdir}/info'
797 libdir
='${exec_prefix}/lib'
798 localedir
='${datarootdir}/locale'
799 mandir
='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\
$ac_option
813 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
823 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
825 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
828 -build |
--build |
--buil |
--bui |
--bu)
829 ac_prev
=build_alias
;;
830 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
831 build_alias
=$ac_optarg ;;
833 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
834 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
835 ac_prev
=cache_file
;;
836 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
837 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
838 cache_file
=$ac_optarg ;;
841 cache_file
=config.cache
;;
843 -datadir |
--datadir |
--datadi |
--datad)
845 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
846 datadir
=$ac_optarg ;;
848 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
849 |
--dataroo |
--dataro |
--datar)
850 ac_prev
=datarootdir
;;
851 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
852 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
853 datarootdir
=$ac_optarg ;;
855 -disable-* |
--disable-*)
856 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
859 as_fn_error
"invalid feature name: $ac_useropt"
860 ac_useropt_orig
=$ac_useropt
861 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
866 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep
=', ';;
869 eval enable_
$ac_useropt=no
;;
871 -docdir |
--docdir |
--docdi |
--doc |
--do)
873 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
876 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
878 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
881 -enable-* |
--enable-*)
882 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
885 as_fn_error
"invalid feature name: $ac_useropt"
886 ac_useropt_orig
=$ac_useropt
887 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
892 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep
=', ';;
895 eval enable_
$ac_useropt=\
$ac_optarg ;;
897 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
898 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
899 |
--exec |
--exe |
--ex)
900 ac_prev
=exec_prefix
;;
901 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
902 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
903 |
--exec=* |
--exe=* |
--ex=*)
904 exec_prefix
=$ac_optarg ;;
906 -gas |
--gas |
--ga |
--g)
907 # Obsolete; use --with-gas.
910 -help |
--help |
--hel |
--he |
-h)
912 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
913 ac_init_help
=recursive
;;
914 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
915 ac_init_help
=short
;;
917 -host |
--host |
--hos |
--ho)
918 ac_prev
=host_alias
;;
919 -host=* |
--host=* |
--hos=* |
--ho=*)
920 host_alias
=$ac_optarg ;;
922 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
924 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
926 htmldir
=$ac_optarg ;;
928 -includedir |
--includedir |
--includedi |
--included |
--include \
929 |
--includ |
--inclu |
--incl |
--inc)
930 ac_prev
=includedir
;;
931 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
932 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
933 includedir
=$ac_optarg ;;
935 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
937 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
938 infodir
=$ac_optarg ;;
940 -libdir |
--libdir |
--libdi |
--libd)
942 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
945 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
946 |
--libexe |
--libex |
--libe)
947 ac_prev
=libexecdir
;;
948 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
949 |
--libexe=* |
--libex=* |
--libe=*)
950 libexecdir
=$ac_optarg ;;
952 -localedir |
--localedir |
--localedi |
--localed |
--locale)
954 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
955 localedir
=$ac_optarg ;;
957 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
958 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
959 ac_prev
=localstatedir
;;
960 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
961 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
962 localstatedir
=$ac_optarg ;;
964 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
966 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
970 # Obsolete; use --without-fp.
973 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
974 |
--no-cr |
--no-c |
-n)
977 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
978 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
981 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
982 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
983 |
--oldin |
--oldi |
--old |
--ol |
--o)
984 ac_prev
=oldincludedir
;;
985 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
986 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
987 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
988 oldincludedir
=$ac_optarg ;;
990 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
992 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
995 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
996 |
--program-pre |
--program-pr |
--program-p)
997 ac_prev
=program_prefix
;;
998 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
999 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1000 program_prefix
=$ac_optarg ;;
1002 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1003 |
--program-suf |
--program-su |
--program-s)
1004 ac_prev
=program_suffix
;;
1005 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1006 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1007 program_suffix
=$ac_optarg ;;
1009 -program-transform-name |
--program-transform-name \
1010 |
--program-transform-nam |
--program-transform-na \
1011 |
--program-transform-n |
--program-transform- \
1012 |
--program-transform |
--program-transfor \
1013 |
--program-transfo |
--program-transf \
1014 |
--program-trans |
--program-tran \
1015 |
--progr-tra |
--program-tr |
--program-t)
1016 ac_prev
=program_transform_name
;;
1017 -program-transform-name=* |
--program-transform-name=* \
1018 |
--program-transform-nam=* |
--program-transform-na=* \
1019 |
--program-transform-n=* |
--program-transform-=* \
1020 |
--program-transform=* |
--program-transfor=* \
1021 |
--program-transfo=* |
--program-transf=* \
1022 |
--program-trans=* |
--program-tran=* \
1023 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1024 program_transform_name
=$ac_optarg ;;
1026 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1028 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1029 pdfdir
=$ac_optarg ;;
1031 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1033 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1036 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1037 |
-silent |
--silent |
--silen |
--sile |
--sil)
1040 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1042 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1044 sbindir
=$ac_optarg ;;
1046 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1047 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1048 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1050 ac_prev
=sharedstatedir
;;
1051 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1052 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1053 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1055 sharedstatedir
=$ac_optarg ;;
1057 -site |
--site |
--sit)
1059 -site=* |
--site=* |
--sit=*)
1062 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1064 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1065 srcdir
=$ac_optarg ;;
1067 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1068 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1069 ac_prev
=sysconfdir
;;
1070 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1071 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1072 sysconfdir
=$ac_optarg ;;
1074 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1075 ac_prev
=target_alias
;;
1076 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1077 target_alias
=$ac_optarg ;;
1079 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1082 -version |
--version |
--versio |
--versi |
--vers |
-V)
1083 ac_init_version
=: ;;
1086 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1089 as_fn_error
"invalid package name: $ac_useropt"
1090 ac_useropt_orig
=$ac_useropt
1091 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1096 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep
=', ';;
1099 eval with_
$ac_useropt=\
$ac_optarg ;;
1101 -without-* |
--without-*)
1102 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1105 as_fn_error
"invalid package name: $ac_useropt"
1106 ac_useropt_orig
=$ac_useropt
1107 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1112 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep
=', ';;
1115 eval with_
$ac_useropt=no
;;
1118 # Obsolete; use --with-x.
1121 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1122 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1123 ac_prev
=x_includes
;;
1124 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1125 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1126 x_includes
=$ac_optarg ;;
1128 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1129 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1130 ac_prev
=x_libraries
;;
1131 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1132 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1133 x_libraries
=$ac_optarg ;;
1135 -*) as_fn_error
"unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information."
1140 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1144 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1146 eval $ac_envvar=\
$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1160 if test -n "$ac_prev"; then
1161 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error
"missing argument to $ac_option"
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1168 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173 # Check all directory arguments for consistency.
1174 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val
=\$
$ac_var
1180 # Remove trailing slashes.
1183 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\
$ac_val;;
1186 # Be sure to have absolute directory names.
1188 [\\/$
]* | ?
:[\\/]* ) continue;;
1189 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1191 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1199 target
=$target_alias
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x
; then
1203 if test "x$build_alias" = x
; then
1204 cross_compiling
=maybe
1205 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used." >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1213 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1215 test "$silent" = yes && exec 6>/dev
/null
1218 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di
=`ls -di .` &&
1220 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error
"working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error
"pwd does not report name of working directory"
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted
=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir
=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1258 ac_srcdir_defaulted
=no
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1262 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1264 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1276 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 for ac_var
in $ac_precious_vars; do
1279 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1281 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1292 \`configure' configures this package to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1355 --x-includes=DIR X include files are
in DIR
1356 --x-libraries=DIR X library files are
in DIR
1359 --build=BUILD configure
for building on BUILD
[guessed
]
1360 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1361 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1365 if test -n "$ac_init_help"; then
1370 --disable-option-checking ignore unrecognized
--enable/--with options
1371 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1372 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1373 --enable-maintainer-mode Enable developer functionality.
1374 --enable-sim-bswap Use Host specific BSWAP instruction.
1375 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1376 --enable-sim-debug=opts Enable debugging flags
1377 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1378 --enable-sim-trace=opts Enable tracing flags
1379 --enable-sim-profile=opts Enable profiling flags
1380 --enable-sim-inline=inlines Specify
which functions should be inlined.
1381 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
1382 --enable-sim-hostendian=end Specify
host byte endian orientation.
1383 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
1384 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
1385 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1386 --enable-sim-endian=endian Specify target byte endian orientation.
1387 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
1388 --enable-sim-float Specify that the target processor has floating point hardware.
1389 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
1390 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1393 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1394 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1395 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1396 --with-bugurl=URL Direct users to URL to report a bug
1397 --with-x use the X Window System
1399 Some influential environment variables
:
1400 CC C compiler
command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1403 nonstandard directory
<lib dir
>
1404 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1405 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1406 you have headers
in a nonstandard directory
<include dir
>
1408 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1410 Use these variables to override the choices made by
`configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1413 Report bugs to the package provider.
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1443 .) # We are building in place.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1477 generated by GNU Autoconf 2.64
1479 Copyright (C) 2009 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1486 ## ------------------------ ##
1487 ## Autoconf initialization. ##
1488 ## ------------------------ ##
1490 # ac_fn_c_try_compile LINENO
1491 # --------------------------
1492 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_c_try_compile ()
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext
1497 if { { ac_try="$ac_compile"
1499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1500 *) ac_try_echo
=$ac_try;;
1502 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1506 if test -s conftest.err
; then
1507 grep -v '^ *+' conftest.err
>conftest.er1
1508 cat conftest.er1
>&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.
$ac_objext; then :
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.
$ac_ext >&5
1523 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1526 } # ac_fn_c_try_compile
1528 # ac_fn_c_try_cpp LINENO
1529 # ----------------------
1530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1534 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } >/dev/null && {
1550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1566 # -------------------------------------------------------
1567 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1568 # the include files in INCLUDES and setting the cache variable VAR
1570 ac_fn_c_check_header_mongrel ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1575 $as_echo_n "checking for $2... " >&6; }
1576 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1577 $as_echo_n "(cached) " >&6
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581 $as_echo "$ac_res" >&6; }
1583 # Is the header compilable?
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1585 $as_echo_n "checking $2 usability... " >&6; }
1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587 /* end confdefs.h. */
1591 if ac_fn_c_try_compile "$LINENO"; then :
1592 ac_header_compiler=yes
1594 ac_header_compiler=no
1596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1598 $as_echo "$ac_header_compiler" >&6; }
1600 # Is the header present?
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1602 $as_echo_n "checking $2 presence... " >&6; }
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1607 if ac_fn_c_try_cpp "$LINENO"; then :
1608 ac_header_preproc=yes
1610 ac_header_preproc=no
1612 rm -f conftest.err conftest.$ac_ext
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1614 $as_echo "$ac_header_preproc" >&6; }
1616 # So? What about this header?
1617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1620 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1622 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1626 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1628 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1630 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1632 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1640 $as_echo_n "(cached) " >&6
1642 eval "$3=\$ac_header_compiler"
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 } # ac_fn_c_check_header_mongrel
1652 # ac_fn_c_try_run LINENO
1653 # ----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655 # that executables *can* be run.
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1662 *) ac_try_echo
=$ac_try;;
1664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1686 ac_retval=$ac_status
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1711 if ac_fn_c_try_compile "$LINENO"; then :
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 } # ac_fn_c_check_header_compile
1725 # ac_fn_c_try_link LINENO
1726 # -----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded.
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext conftest$ac_exeext
1732 if { { ac_try="$ac_link"
1734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1735 *) ac_try_echo
=$ac_try;;
1737 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1741 if test -s conftest.err
; then
1742 grep -v '^ *+' conftest.err
>conftest.er1
1743 cat conftest.er1
>&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest
$ac_exeext && {
1751 test "$cross_compiling" = yes ||
1752 $as_test_x conftest
$ac_exeext
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.
$ac_ext >&5
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1769 } # ac_fn_c_try_link
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func
()
1776 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1794 # include <limits.h>
1796 # include <assert.h>
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1823 if ac_fn_c_try_link
"$LINENO"; then :
1828 rm -f core conftest.err conftest.
$ac_objext \
1829 conftest
$ac_exeext conftest.
$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1836 } # ac_fn_c_check_func
1837 cat >config.log
<<_ACEOF
1838 This file contains any messages produced by compilers while
1839 running configure, to aid debugging if configure makes a mistake.
1841 It was created by $as_me, which was
1842 generated by GNU Autoconf 2.64. Invocation command line was
1854 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1855 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1856 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1857 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1858 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1860 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1861 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1863 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1864 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1865 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1866 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1867 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1868 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1869 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir
=.
1878 $as_echo "PATH: $as_dir"
1894 # Keep a trace of the command line.
1895 # Strip out --no-create and --no-recursion so they do not pile up.
1896 # Strip out --silent because we don't want to record it for future runs.
1897 # Also quote any args containing shell meta-characters.
1898 # Make two passes to allow for proper duplicate-argument suppression.
1902 ac_must_keep_next
=false
1908 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1909 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1910 |
-silent |
--silent |
--silen |
--sile |
--sil)
1913 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1918 as_fn_append ac_configure_args1
" '$ac_arg'"
1919 if test $ac_must_keep_next = true
; then
1920 ac_must_keep_next
=false
# Got value, back to normal.
1923 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1924 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1925 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1926 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1927 case "$ac_configure_args0 " in
1928 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931 -* ) ac_must_keep_next
=true
;;
1934 as_fn_append ac_configure_args
" '$ac_arg'"
1939 { ac_configure_args0
=; unset ac_configure_args0
;}
1940 { ac_configure_args1
=; unset ac_configure_args1
;}
1942 # When interrupted or exit'd, cleanup temporary files, and complete
1943 # config.log. We remove comments because anyway the quotes in there
1944 # would cause problems or look ugly.
1945 # WARNING: Use '\'' to represent an apostrophe within the trap.
1946 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1947 trap 'exit_status=$?
1948 # Save into config.log some information that might help in debugging.
1953 ## ---------------- ##
1954 ## Cache variables. ##
1955 ## ---------------- ##
1958 # The following way of writing the cache mishandles newlines in values,
1960 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1961 eval ac_val=\$$ac_var
1965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1969 _ | IFS | as_nl) ;; #(
1970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1971 *) { eval $ac_var=; unset $ac_var;} ;;
1976 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1977 *${as_nl}ac_space=\ *)
1979 "s/'\''/'\''\\\\'\'''\''/g;
1980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1991 ## ----------------- ##
1992 ## Output variables. ##
1993 ## ----------------- ##
1996 for ac_var in $ac_subst_vars
1998 eval ac_val=\$$ac_var
2000 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002 $as_echo "$ac_var='\''$ac_val'\''"
2006 if test -n "$ac_subst_files"; then
2008 ## ------------------- ##
2009 ## File substitutions. ##
2010 ## ------------------- ##
2013 for ac_var
in $ac_subst_files
2015 eval ac_val
=\$
$ac_var
2017 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 $as_echo "$ac_var='\''$ac_val'\''"
2024 if test -s confdefs.h; then
2034 test "$ac_signal" != 0 &&
2035 $as_echo "$as_me: caught signal $ac_signal"
2036 $as_echo "$as_me: exit $exit_status"
2038 rm -f core *.core core.conftest.* &&
2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 for ac_signal
in 1 2 13 15; do
2043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest
* confdefs.h
2050 $as_echo "/* confdefs.h */" > confdefs.h
2052 # Predefined preprocessor variables.
2054 cat >>confdefs.h
<<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2058 cat >>confdefs.h
<<_ACEOF
2059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062 cat >>confdefs.h
<<_ACEOF
2063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2066 cat >>confdefs.h
<<_ACEOF
2067 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 cat >>confdefs.h
<<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 cat >>confdefs.h
<<_ACEOF
2075 #define PACKAGE_URL "$PACKAGE_URL"
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer an explicitly selected file to automatically selected ones.
2083 if test -n "$CONFIG_SITE"; then
2084 ac_site_file1
=$CONFIG_SITE
2085 elif test "x$prefix" != xNONE
; then
2086 ac_site_file1
=$prefix/share
/config.site
2087 ac_site_file2
=$prefix/etc
/config.site
2089 ac_site_file1
=$ac_default_prefix/share
/config.site
2090 ac_site_file2
=$ac_default_prefix/etc
/config.site
2092 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2094 test "x$ac_site_file" = xNONE
&& continue
2095 if test -r "$ac_site_file"; then
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2097 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2103 if test -r "$cache_file"; then
2104 # Some versions of bash will fail to source /dev/null (special
2105 # files actually), so we avoid doing that.
2106 if test -f "$cache_file"; then
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2108 $as_echo "$as_me: loading cache $cache_file" >&6;}
2110 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2111 *) .
"./$cache_file";;
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2116 $as_echo "$as_me: creating cache $cache_file" >&6;}
2120 # Check that the precious variables saved in the cache have kept the same
2122 ac_cache_corrupted
=false
2123 for ac_var
in $ac_precious_vars; do
2124 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2125 eval ac_new_set
=\
$ac_env_${ac_var}_set
2126 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2127 eval ac_new_val
=\
$ac_env_${ac_var}_value
2128 case $ac_old_set,$ac_new_set in
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132 ac_cache_corrupted
=: ;;
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136 ac_cache_corrupted
=: ;;
2139 if test "x$ac_old_val" != "x$ac_new_val"; then
2140 # differences in whitespace do not lead to failure.
2141 ac_old_val_w
=`echo x $ac_old_val`
2142 ac_new_val_w
=`echo x $ac_new_val`
2143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146 ac_cache_corrupted
=:
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2150 eval $ac_var=\
$ac_old_val
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2153 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2155 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2158 # Pass precious variables to config.status.
2159 if test "$ac_new_set" = set; then
2161 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 *) ac_arg
=$ac_var=$ac_new_val ;;
2164 case " $ac_configure_args " in
2165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2166 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2170 if $ac_cache_corrupted; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2175 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2177 ## -------------------- ##
2178 ## Main body of script. ##
2179 ## -------------------- ##
2182 ac_cpp
='$CPP $CPPFLAGS'
2183 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2188 ac_config_headers
="$ac_config_headers config.h:config.in"
2191 # This file contains common code used by all simulators.
2193 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2194 # directory. It is intended to be invoked before any target specific stuff.
2195 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2196 # It is intended to be invoked last.
2198 # The simulator's configure.in should look like:
2200 # dnl Process this file with autoconf to produce a configure script.
2201 # sinclude(../common/aclocal.m4)
2203 # AC_INIT(Makefile.in)
2207 # ... target specific stuff ...
2211 # Include global overrides and fixes for Autoconf.
2296 sim_inline
="-DDEFAULT_INLINE=0"
2333 # intl sister-directory configuration rules.
2336 # The idea behind this macro is that there's no need to repeat all the
2337 # autoconf probes done by the intl directory - it's already done them
2338 # for us. In fact, there's no need even to look at the cache for the
2339 # answers. All we need to do is nab a few pieces of information.
2340 # The intl directory is set up to make this easy, by generating a
2341 # small file which can be sourced as a shell script; then we produce
2342 # the necessary substitutions and definitions for this directory.
2346 # Autoconf M4 include file defining utility macros for complex Canadian
2358 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2360 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2363 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2364 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2368 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2369 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2373 # Backported from Autoconf 2.5x; can go away when and if
2374 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2379 # ACX_HAVE_GCC_FOR_TARGET
2380 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2383 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2384 # Searching for installed target binutils. We need to take extra care,
2385 # else we may find the wrong assembler, linker, etc., and lose.
2387 # First try --with-build-time-tools, if specified.
2389 # For build != host, we ask the installed GCC for the name of the tool it
2390 # uses, and accept it if it is an absolute path. This is because the
2391 # only good choice for a compiler is the same GCC version that is being
2392 # installed (or we couldn't make target libraries), and we assume that
2393 # on the host system we'll have not only the same GCC version, but also
2394 # the same binutils version.
2396 # For build == host, search the same directories that the installed
2397 # compiler will search. We used to do this for the assembler, linker,
2398 # and nm only; for simplicity of configuration, however, we extend this
2399 # criterion to tools (such as ar and ranlib) that are never invoked by
2400 # the compiler, to avoid mismatches.
2402 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2403 # if build == target. This makes the most sense only when bootstrapping,
2404 # but we also do so when build != host. In this case, we hope that the
2405 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2407 # If we do not find a suitable binary, then try the user's path.
2411 # AC_PROG_CPP_WERROR
2412 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2413 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2414 # For now, using this also overrides header checks to use only the
2415 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2416 # bit harder from here).
2417 # Eventually autoconf will default to checking headers with the compiler
2418 # instead, and we'll have to do this differently.
2420 # AC_PROG_CPP_WERROR
2423 # We require the gnatbind program, and a compiler driver that
2424 # understands Ada. We use the user's CC setting, already found,
2425 # and possibly add $1 to the command-line parameters.
2427 # Sets the shell variable have_gnat to yes or no as appropriate, and
2428 # substitutes GNATBIND and GNATMAKE.
2455 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
2456 # it by inlining the macro's contents.
2457 # This file contains common code used by all simulators.
2459 # common.m4 invokes AC macros used by all simulators and by the common
2460 # directory. It is intended to be included before any target specific
2461 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
2462 # the Makefile. It is intended to be invoked last.
2464 # The simulator's configure.in should look like:
2466 # dnl Process this file with autoconf to produce a configure script.
2468 # AC_INIT(Makefile.in)
2469 # AC_CONFIG_HEADER(config.h:config.in)
2471 # sinclude(../common/aclocal.m4)
2472 # sinclude(../common/common.m4)
2474 # ... target specific stuff ...
2477 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2478 for ac_t
in install-sh
install.sh shtool
; do
2479 if test -f "$ac_dir/$ac_t"; then
2481 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2486 if test -z "$ac_aux_dir"; then
2487 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2495 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2496 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2499 # Make sure we can run config.sub.
2500 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2501 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2504 $as_echo_n "checking build system type... " >&6; }
2505 if test "${ac_cv_build+set}" = set; then :
2506 $as_echo_n "(cached) " >&6
2508 ac_build_alias
=$build_alias
2509 test "x$ac_build_alias" = x
&&
2510 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2511 test "x$ac_build_alias" = x
&&
2512 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2513 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2514 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2518 $as_echo "$ac_cv_build" >&6; }
2519 case $ac_cv_build in
2521 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2524 ac_save_IFS
=$IFS; IFS
='-'
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2534 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2538 $as_echo_n "checking host system type... " >&6; }
2539 if test "${ac_cv_host+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2542 if test "x$host_alias" = x
; then
2543 ac_cv_host
=$ac_cv_build
2545 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2546 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2551 $as_echo "$ac_cv_host" >&6; }
2554 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2557 ac_save_IFS
=$IFS; IFS
='-'
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2567 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2571 $as_echo_n "checking target system type... " >&6; }
2572 if test "${ac_cv_target+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2575 if test "x$target_alias" = x
; then
2576 ac_cv_target
=$ac_cv_host
2578 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2579 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2584 $as_echo "$ac_cv_target" >&6; }
2585 case $ac_cv_target in
2587 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2589 target
=$ac_cv_target
2590 ac_save_IFS
=$IFS; IFS
='-'
2596 # Remember, the first character of IFS is used to create $*,
2597 # except with old shells:
2600 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2603 # The aliases save the names the user supplied, while $host etc.
2604 # will get canonicalized.
2605 test -n "$target_alias" &&
2606 test "$program_prefix$program_suffix$program_transform_name" = \
2608 program_prefix
=${target_alias}-
2610 test "$program_prefix" != NONE
&&
2611 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2612 # Use a double $ so make ignores it.
2613 test "$program_suffix" != NONE
&&
2614 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2615 # Double any \ or $.
2616 # By default was `s,x,x', remove it if useless.
2617 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2618 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2621 ac_cpp
='$CPP $CPPFLAGS'
2622 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2625 if test -n "$ac_tool_prefix"; then
2626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2627 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC
="$CC" # Let the user override the test.
2636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir
=.
2641 for ac_exec_ext
in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 if test -n "$CC"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2656 $as_echo "$CC" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2664 if test -z "$ac_cv_prog_CC"; then
2666 # Extract the first word of "gcc", so it can be a program name with args.
2667 set dummy gcc
; ac_word
=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2673 if test -n "$ac_ct_CC"; then
2674 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir
=.
2681 for ac_exec_ext
in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 ac_cv_prog_ac_ct_CC
="gcc"
2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2694 if test -n "$ac_ct_CC"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2696 $as_echo "$ac_ct_CC" >&6; }
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 $as_echo "no" >&6; }
2702 if test "x$ac_ct_CC" = x
; then
2705 case $cross_compiling:$ac_tool_warned in
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2709 ac_tool_warned
=yes ;;
2717 if test -z "$CC"; then
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2720 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC
="$CC" # Let the user override the test.
2729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2733 test -z "$as_dir" && as_dir
=.
2734 for ac_exec_ext
in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test -n "$CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2758 if test -z "$CC"; then
2759 # Extract the first word of "cc", so it can be a program name with args.
2760 set dummy cc
; ac_word
=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_CC+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC
="$CC" # Let the user override the test.
2770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir
=.
2775 for ac_exec_ext
in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2778 ac_prog_rejected
=yes
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 if test $ac_prog_rejected = yes; then
2790 # We found a bogon in the path, so make sure we never use it.
2791 set dummy
$ac_cv_prog_CC
2793 if test $# != 0; then
2794 # We chose a different compiler from the bogus one.
2795 # However, it has the same basename, so the bogon will be chosen
2796 # first if we set CC to just the basename; use the full file name.
2798 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2804 if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2814 if test -z "$CC"; then
2815 if test -n "$ac_tool_prefix"; then
2816 for ac_prog
in cl.exe
2818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_CC+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC
="$CC" # Let the user override the test.
2828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir
=.
2833 for ac_exec_ext
in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test -n "$CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2848 $as_echo "$CC" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$CC" && break
2858 if test -z "$CC"; then
2860 for ac_prog
in cl.exe
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy
$ac_prog; ac_word
=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir
=.
2877 for ac_exec_ext
in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_CC
="$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2890 if test -n "$ac_ct_CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2892 $as_echo "$ac_ct_CC" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2899 test -n "$ac_ct_CC" && break
2902 if test "x$ac_ct_CC" = x
; then
2905 case $cross_compiling:$ac_tool_warned in
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909 ac_tool_warned
=yes ;;
2918 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920 as_fn_error
"no acceptable C compiler found in \$PATH
2921 See \`config.log' for more details." "$LINENO" 5; }
2923 # Provide some information about the compiler.
2924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2927 for ac_option
in --version -v -V -qversion; do
2928 { { ac_try
="$ac_compiler $ac_option >&5"
2930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934 $as_echo "$ac_try_echo"; } >&5
2935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2937 if test -s conftest.err; then
2939 ... rest of stderr output deleted ...
2940 10q' conftest.err >conftest.er1
2941 cat conftest.er1 >&5
2942 rm -f conftest.er1 conftest.err
2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945 test $ac_status = 0; }
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2959 ac_clean_files_save=$ac_clean_files
2960 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2961 # Try to create an executable without -o first, disregard a.out.
2962 # It will help us diagnose broken compilers, and finding out an intuition
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2965 $as_echo_n "checking for C compiler default output file name... " >&6; }
2966 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2968 # The possible output files:
2969 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2972 for ac_file in $ac_files
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2976 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2981 if { { ac_try="$ac_link_default"
2983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2984 *) ac_try_echo
=$ac_try;;
2986 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987 $as_echo "$ac_try_echo"; } >&5
2988 (eval "$ac_link_default") 2>&5
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }; then :
2992 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2993 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2994 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2995 # so that the user can short-circuit this test for compilers unknown to
2997 for ac_file
in $ac_files ''
2999 test -f "$ac_file" ||
continue
3001 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3004 # We found the default executable, but exeext='' is most
3008 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3010 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 # We set ac_cv_exeext here because the later test for it is not
3013 # safe: cross compilers may not add the suffix if given an `-o'
3014 # argument, so we may need to know it at that point already.
3015 # Even if this section looks crufty: it has the advantage of
3022 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3028 $as_echo "$ac_file" >&6; }
3029 if test -z "$ac_file"; then :
3030 $as_echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.
$ac_ext >&5
3033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 { as_fn_set_status
77
3036 as_fn_error
"C compiler cannot create executables
3037 See \`config.log' for more details." "$LINENO" 5; }; }
3039 ac_exeext
=$ac_cv_exeext
3041 # Check that the compiler produces executables we can run. If not, either
3042 # the compiler is broken, or we cross compile.
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3044 $as_echo_n "checking whether the C compiler works... " >&6; }
3045 # If not cross compiling, check that we can run a simple program.
3046 if test "$cross_compiling" != yes; then
3047 if { ac_try
='./$ac_file'
3048 { { case "(($ac_try" in
3049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_try") 2>&5
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; }; then
3060 if test "$cross_compiling" = maybe; then
3063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065 as_fn_error "cannot run C compiled programs.
3066 If you meant to cross compile
, use \
`--host'.
3067 See \`config.log
' for more details." "$LINENO" 5; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072 $as_echo "yes" >&6; }
3074 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3075 ac_clean_files=$ac_clean_files_save
3076 # Check that the compiler produces executables we can run. If not, either
3077 # the compiler is broken, or we cross compile.
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3079 $as_echo_n "checking whether we are cross compiling... " >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3081 $as_echo "$cross_compiling" >&6; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3084 $as_echo_n "checking for suffix of executables... " >&6; }
3085 if { { ac_try="$ac_link"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_link") 2>&5
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }; then :
3096 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3097 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3098 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3100 for ac_file
in conftest.exe conftest conftest.
*; do
3101 test -f "$ac_file" ||
continue
3103 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3104 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3113 See \`config.log' for more details." "$LINENO" 5; }
3115 rm -f conftest
$ac_cv_exeext
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3117 $as_echo "$ac_cv_exeext" >&6; }
3119 rm -f conftest.
$ac_ext
3120 EXEEXT
=$ac_cv_exeext
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3123 $as_echo_n "checking for suffix of object files... " >&6; }
3124 if test "${ac_cv_objext+set}" = set; then :
3125 $as_echo_n "(cached) " >&6
3127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3138 rm -f conftest.o conftest.obj
3139 if { { ac_try
="$ac_compile"
3141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_compile") 2>&5
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 for ac_file in conftest.o conftest.obj conftest.*; do
3151 test -f "$ac_file" || continue;
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3159 $as_echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error "cannot compute suffix of object files
: cannot compile
3165 See \
`config.log' for more details." "$LINENO" 5; }
3167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3170 $as_echo "$ac_cv_objext" >&6; }
3171 OBJEXT=$ac_cv_objext
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3174 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3175 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3192 if ac_fn_c_try_compile "$LINENO"; then :
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3202 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3203 if test $ac_compiler_gnu = yes; then
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3211 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3212 if test "${ac_cv_prog_cc_g+set}" = set; then :
3213 $as_echo_n "(cached) " >&6
3215 ac_save_c_werror_flag=$ac_c_werror_flag
3216 ac_c_werror_flag=yes
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3230 if ac_fn_c_try_compile "$LINENO"; then :
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3245 if ac_fn_c_try_compile "$LINENO"; then :
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3261 if ac_fn_c_try_compile "$LINENO"; then :
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_c_werror_flag=$ac_save_c_werror_flag
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3272 $as_echo "$ac_cv_prog_cc_g" >&6; }
3273 if test "$ac_test_CFLAGS" = set; then
3274 CFLAGS=$ac_save_CFLAGS
3275 elif test $ac_cv_prog_cc_g = yes; then
3276 if test "$GCC" = yes; then
3282 if test "$GCC" = yes; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3289 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3290 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3293 ac_cv_prog_cc_c89=no
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3299 #include <sys/types.h>
3300 #include <sys/stat.h>
3301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3302 struct buf { int x; };
3303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304 static char *e (p, i)
3310 static char *f (char * (*g) (char **, int), char **p, ...)
3315 s = g (p, va_arg (v,int));
3320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3321 function prototypes and stuff, but not '\xHH' hex character constants.
3322 These don't provoke an error unfortunately, instead are silently treated
3323 as 'x'. The following induces an error, until -std is added to get
3324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3325 array size at least. It's necessary to write '\x00'==0 to get something
3326 that's true only with -std. */
3327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3330 inside strings and character constants. */
3332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334 int test (int i, double x);
3335 struct s1 {int (*f) (int a);};
3336 struct s2 {int (*f) (double a);};
3337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351 CC="$ac_save_CC $ac_arg"
3352 if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_cv_prog_cc_c89=$ac_arg
3355 rm -f core conftest.err conftest.$ac_objext
3356 test "x$ac_cv_prog_cc_c89" != "xno" && break
3358 rm -f conftest.$ac_ext
3363 case "x$ac_cv_prog_cc_c89" in
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3366 $as_echo "none needed" >&6; } ;;
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3369 $as_echo "unsupported" >&6; } ;;
3371 CC="$CC $ac_cv_prog_cc_c89"
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3373 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3375 if test "x$ac_cv_prog_cc_c89" != xno; then :
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 # Find a good install program. We prefer a C program (faster),
3386 # so one script is as good as another. But avoid the broken or
3387 # incompatible versions:
3388 # SysV /etc/install, /usr/sbin/install
3389 # SunOS /usr/etc/install
3390 # IRIX /sbin/install
3392 # AmigaOS /C/install, which installs bootblocks on floppy discs
3393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3396 # OS/2's system install, which has a completely different semantic
3397 # ./install, which can be erroneously created by make from ./install.sh.
3398 # Reject install programs that cannot install multiple files.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3400 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3401 if test -z "$INSTALL"; then
3402 if test "${ac_cv_path_install+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 # Account for people who put trailing slashes in PATH elements.
3411 case $as_dir/ in #((
3412 ./ | .// | /[cC]/* | \
3413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3414 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3417 # OSF1 and SCO ODT 3.0 have their own names for install.
3418 # Don't use installbsd from OSF since it installs stuff as root
3420 for ac_prog in ginstall scoinst install; do
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3423 if test $ac_prog = install &&
3424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3425 # AIX install. It has an incompatible calling convention.
3427 elif test $ac_prog = install &&
3428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3429 # program-specific install script used by HP pwplus--don't use.
3432 rm -rf conftest.one conftest.two conftest.dir
3433 echo one > conftest.one
3434 echo two > conftest.two
3436 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3437 test -s conftest.one && test -s conftest.two &&
3438 test -s conftest.dir/conftest.one &&
3439 test -s conftest.dir/conftest.two
3441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3454 rm -rf conftest.one conftest.two conftest.dir
3457 if test "${ac_cv_path_install+set}" = set; then
3458 INSTALL=$ac_cv_path_install
3460 # As a last resort, use the slow shell script. Don't cache a
3461 # value for INSTALL within a source directory, because that will
3462 # break other packages using the cache if that directory is
3463 # removed, or if the value is a relative name.
3464 INSTALL=$ac_install_sh
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3468 $as_echo "$INSTALL" >&6; }
3470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3471 # It thinks the first close brace ends the variable substitution.
3472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3476 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3479 # Put a plausible default for CC_FOR_BUILD in Makefile.
3480 if test "x$cross_compiling" = "xno"; then
3481 CC_FOR_BUILD='$(CC)'
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3499 if test -n "$RANLIB"; then
3500 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 RANLIB=$ac_cv_prog_RANLIB
3520 if test -n "$RANLIB"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3522 $as_echo "$RANLIB" >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3530 if test -z "$ac_cv_prog_RANLIB"; then
3531 ac_ct_RANLIB=$RANLIB
3532 # Extract the first word of "ranlib", so it can be a program name with args.
3533 set dummy ranlib; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3539 if test -n "$ac_ct_RANLIB"; then
3540 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_RANLIB="ranlib"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3560 if test -n "$ac_ct_RANLIB"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3562 $as_echo "$ac_ct_RANLIB" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3568 if test "x$ac_ct_RANLIB" = x; then
3571 case $cross_compiling:$ac_tool_warned in
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3577 RANLIB=$ac_ct_RANLIB
3580 RANLIB="$ac_cv_prog_RANLIB"
3585 # If we haven't got the data from the intl directory,
3586 # assume NLS is disabled.
3595 if test -f ../../intl/config.intl; then
3596 . ../../intl/config.intl
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3599 $as_echo_n "checking whether NLS is requested... " >&6; }
3600 if test x"$USE_NLS" != xyes; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605 $as_echo "yes" >&6; }
3607 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3611 $as_echo_n "checking for catalogs to be installed... " >&6; }
3612 # Look for .po and .gmo files in the source directory.
3615 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3616 # If there aren't any .gmo files the shell will give us the
3617 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3619 case "$cat" in *\**)
3622 # The quadruple backslash is collapsed to a double backslash
3623 # by the backticks, then collapsed again by the double quotes,
3624 # leaving us with one backslash in the sed expression (right
3625 # before the dot that mustn't act as a wildcard).
3626 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3627 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3628 # The user is allowed to set LINGUAS to a list of languages to
3629 # install catalogs for. If it's empty that means "all of them."
3630 if test "x$LINGUAS" = x; then
3631 CATALOGS="$CATALOGS $cat"
3632 XLINGUAS="$XLINGUAS $lang"
3634 case "$LINGUAS" in *$lang*)
3635 CATALOGS="$CATALOGS $cat"
3636 XLINGUAS="$XLINGUAS $lang"
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3643 $as_echo "$LINGUAS" >&6; }
3656 # Check for common headers.
3657 # FIXME: Seems to me this can cause problems for i386-windows hosts.
3658 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3666 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3667 # On Suns, sometimes $CPP names a directory.
3668 if test -n "$CPP" && test -d "$CPP"; then
3671 if test -z "$CPP"; then
3672 if test "${ac_cv_prog_CPP+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 # Double quotes because CPP needs to be expanded
3676 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3679 for ac_c_preproc_warn_flag in '' yes
3681 # Use a header file that comes with gcc, so configuring glibc
3682 # with a fresh cross-compiler works.
3683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684 # <limits.h> exists even on freestanding compilers.
3685 # On the NeXT, cc -E runs the code through the compiler's parser,
3686 # not just through cpp. "Syntax error" is here to catch this case.
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3690 # include <limits.h>
3692 # include <assert.h>
3696 if ac_fn_c_try_cpp "$LINENO"; then :
3699 # Broken: fails on valid input.
3702 rm -f conftest.err conftest.$ac_ext
3704 # OK, works on sane cases. Now check whether nonexistent headers
3705 # can be detected and how.
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708 #include <ac_nonexistent.h>
3710 if ac_fn_c_try_cpp "$LINENO"; then :
3711 # Broken: success on invalid input.
3714 # Passes both tests.
3718 rm -f conftest.err conftest.$ac_ext
3721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3722 rm -f conftest.err conftest.
$ac_ext
3723 if $ac_preproc_ok; then :
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3736 $as_echo "$CPP" >&6; }
3738 for ac_c_preproc_warn_flag
in '' yes
3740 # Use a header file that comes with gcc, so configuring glibc
3741 # with a fresh cross-compiler works.
3742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3743 # <limits.h> exists even on freestanding compilers.
3744 # On the NeXT, cc -E runs the code through the compiler's parser,
3745 # not just through cpp. "Syntax error" is here to catch this case.
3746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3749 # include <limits.h>
3751 # include <assert.h>
3755 if ac_fn_c_try_cpp
"$LINENO"; then :
3758 # Broken: fails on valid input.
3761 rm -f conftest.err conftest.
$ac_ext
3763 # OK, works on sane cases. Now check whether nonexistent headers
3764 # can be detected and how.
3765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767 #include <ac_nonexistent.h>
3769 if ac_fn_c_try_cpp
"$LINENO"; then :
3770 # Broken: success on invalid input.
3773 # Passes both tests.
3777 rm -f conftest.err conftest.
$ac_ext
3780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3781 rm -f conftest.err conftest.
$ac_ext
3782 if $ac_preproc_ok; then :
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3788 See \`config.log' for more details." "$LINENO" 5; }
3792 ac_cpp
='$CPP $CPPFLAGS'
3793 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3799 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3800 if test "${ac_cv_path_GREP+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3803 if test -z "$GREP"; then
3804 ac_path_GREP_found
=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3807 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3810 test -z "$as_dir" && as_dir
=.
3811 for ac_prog
in grep ggrep
; do
3812 for ac_exec_ext
in '' $ac_executable_extensions; do
3813 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3814 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3815 # Check for GNU ac_path_GREP and select it if it is found.
3816 # Check for GNU $ac_path_GREP
3817 case `"$ac_path_GREP" --version 2>&1` in
3819 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3822 $as_echo_n 0123456789 >"conftest.in"
3825 cat "conftest.in" "conftest.in" >"conftest.tmp"
3826 mv "conftest.tmp" "conftest.in"
3827 cp "conftest.in" "conftest.nl"
3828 $as_echo 'GREP' >> "conftest.nl"
3829 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3830 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3831 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3832 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3833 # Best one so far, save it but keep looking for a better one
3834 ac_cv_path_GREP
="$ac_path_GREP"
3835 ac_path_GREP_max
=$ac_count
3837 # 10*(2^10) chars as input seems more than enough
3838 test $ac_count -gt 10 && break
3840 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3843 $ac_path_GREP_found && break 3
3848 if test -z "$ac_cv_path_GREP"; then
3849 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3852 ac_cv_path_GREP
=$GREP
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3857 $as_echo "$ac_cv_path_GREP" >&6; }
3858 GREP
="$ac_cv_path_GREP"
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3862 $as_echo_n "checking for egrep... " >&6; }
3863 if test "${ac_cv_path_EGREP+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3866 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3867 then ac_cv_path_EGREP
="$GREP -E"
3869 if test -z "$EGREP"; then
3870 ac_path_EGREP_found
=false
3871 # Loop through the user's path and test for each of PROGNAME-LIST
3872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3873 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3876 test -z "$as_dir" && as_dir
=.
3877 for ac_prog
in egrep; do
3878 for ac_exec_ext
in '' $ac_executable_extensions; do
3879 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3880 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3881 # Check for GNU ac_path_EGREP and select it if it is found.
3882 # Check for GNU $ac_path_EGREP
3883 case `"$ac_path_EGREP" --version 2>&1` in
3885 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3888 $as_echo_n 0123456789 >"conftest.in"
3891 cat "conftest.in" "conftest.in" >"conftest.tmp"
3892 mv "conftest.tmp" "conftest.in"
3893 cp "conftest.in" "conftest.nl"
3894 $as_echo 'EGREP' >> "conftest.nl"
3895 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3896 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3897 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3898 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3899 # Best one so far, save it but keep looking for a better one
3900 ac_cv_path_EGREP
="$ac_path_EGREP"
3901 ac_path_EGREP_max
=$ac_count
3903 # 10*(2^10) chars as input seems more than enough
3904 test $ac_count -gt 10 && break
3906 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3909 $ac_path_EGREP_found && break 3
3914 if test -z "$ac_cv_path_EGREP"; then
3915 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3918 ac_cv_path_EGREP
=$EGREP
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3924 $as_echo "$ac_cv_path_EGREP" >&6; }
3925 EGREP
="$ac_cv_path_EGREP"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3929 $as_echo_n "checking for ANSI C header files... " >&6; }
3930 if test "${ac_cv_header_stdc+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3948 if ac_fn_c_try_compile
"$LINENO"; then :
3949 ac_cv_header_stdc
=yes
3951 ac_cv_header_stdc
=no
3953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3955 if test $ac_cv_header_stdc = yes; then
3956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3963 $EGREP "memchr" >/dev
/null
2>&1; then :
3966 ac_cv_header_stdc
=no
3972 if test $ac_cv_header_stdc = yes; then
3973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3980 $EGREP "free" >/dev
/null
2>&1; then :
3983 ac_cv_header_stdc
=no
3989 if test $ac_cv_header_stdc = yes; then
3990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3991 if test "$cross_compiling" = yes; then :
3994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3998 #if ((' ' & 0x0FF) == 0x020)
3999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4002 # define ISLOWER(c) \
4003 (('a' <= (c) && (c) <= 'i') \
4004 || ('j' <= (c) && (c) <= 'r') \
4005 || ('s' <= (c) && (c) <= 'z'))
4006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4014 for (i = 0; i < 256; i++)
4015 if (XOR (islower (i), ISLOWER (i))
4016 || toupper (i) != TOUPPER (i))
4021 if ac_fn_c_try_run
"$LINENO"; then :
4024 ac_cv_header_stdc
=no
4026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4033 $as_echo "$ac_cv_header_stdc" >&6; }
4034 if test $ac_cv_header_stdc = yes; then
4036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4041 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4042 inttypes.h stdint.h unistd.h
4044 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4047 eval as_val
=\$
$as_ac_Header
4048 if test "x$as_val" = x
""yes; then :
4049 cat >>confdefs.h
<<_ACEOF
4050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4058 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4060 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4062 eval as_val
=\$
$as_ac_Header
4063 if test "x$as_val" = x
""yes; then :
4064 cat >>confdefs.h
<<_ACEOF
4065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072 for ac_header
in sys
/time.h sys
/resource.h
4074 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4075 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4076 eval as_val
=\$
$as_ac_Header
4077 if test "x$as_val" = x
""yes; then :
4078 cat >>confdefs.h
<<_ACEOF
4079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4086 for ac_header
in fcntl.h fpu_control.h
4088 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4089 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4090 eval as_val
=\$
$as_ac_Header
4091 if test "x$as_val" = x
""yes; then :
4092 cat >>confdefs.h
<<_ACEOF
4093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4100 for ac_header
in dlfcn.h errno.h sys
/stat.h
4102 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4103 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4104 eval as_val
=\$
$as_ac_Header
4105 if test "x$as_val" = x
""yes; then :
4106 cat >>confdefs.h
<<_ACEOF
4107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4114 for ac_func
in getrusage
time sigaction __setfpucw
4116 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4117 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4118 eval as_val
=\$
$as_ac_var
4119 if test "x$as_val" = x
""yes; then :
4120 cat >>confdefs.h
<<_ACEOF
4121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4128 # Check for socket libraries
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4130 $as_echo_n "checking for bind in -lsocket... " >&6; }
4131 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4134 ac_check_lib_save_LIBS
=$LIBS
4135 LIBS
="-lsocket $LIBS"
4136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4139 /* Override any GCC internal prototype to avoid an error.
4140 Use char because int might match the return type of a GCC
4141 builtin and then its argument prototype would still apply. */
4154 if ac_fn_c_try_link
"$LINENO"; then :
4155 ac_cv_lib_socket_bind
=yes
4157 ac_cv_lib_socket_bind
=no
4159 rm -f core conftest.err conftest.
$ac_objext \
4160 conftest
$ac_exeext conftest.
$ac_ext
4161 LIBS
=$ac_check_lib_save_LIBS
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4164 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4165 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4166 cat >>confdefs.h
<<_ACEOF
4167 #define HAVE_LIBSOCKET 1
4170 LIBS
="-lsocket $LIBS"
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4175 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4176 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4179 ac_check_lib_save_LIBS
=$LIBS
4181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4184 /* Override any GCC internal prototype to avoid an error.
4185 Use char because int might match the return type of a GCC
4186 builtin and then its argument prototype would still apply. */
4190 char gethostbyname ();
4194 return gethostbyname ();
4199 if ac_fn_c_try_link
"$LINENO"; then :
4200 ac_cv_lib_nsl_gethostbyname
=yes
4202 ac_cv_lib_nsl_gethostbyname
=no
4204 rm -f core conftest.err conftest.
$ac_objext \
4205 conftest
$ac_exeext conftest.
$ac_ext
4206 LIBS
=$ac_check_lib_save_LIBS
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4209 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4210 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4211 cat >>confdefs.h
<<_ACEOF
4212 #define HAVE_LIBNSL 1
4220 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4221 # using the same condition.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4223 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4224 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4227 ac_func_search_save_LIBS
=$LIBS
4228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4231 /* Override any GCC internal prototype to avoid an error.
4232 Use char because int might match the return type of a GCC
4233 builtin and then its argument prototype would still apply. */
4237 char zlibVersion ();
4241 return zlibVersion ();
4246 for ac_lib
in '' z
; do
4247 if test -z "$ac_lib"; then
4248 ac_res
="none required"
4251 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4253 if ac_fn_c_try_link
"$LINENO"; then :
4254 ac_cv_search_zlibVersion
=$ac_res
4256 rm -f core conftest.err conftest.
$ac_objext \
4258 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4262 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4265 ac_cv_search_zlibVersion
=no
4268 LIBS
=$ac_func_search_save_LIBS
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4271 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4272 ac_res
=$ac_cv_search_zlibVersion
4273 if test "$ac_res" != no
; then :
4274 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4275 for ac_header
in zlib.h
4277 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4278 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4279 cat >>confdefs.h
<<_ACEOF
4280 #define HAVE_ZLIB_H 1
4290 .
${srcdir}/..
/..
/bfd
/configure.
host
4294 USE_MAINTAINER_MODE
=no
4295 # Check whether --enable-maintainer-mode was given.
4296 if test "${enable_maintainer_mode+set}" = set; then :
4297 enableval
=$enable_maintainer_mode; case "${enableval}" in
4298 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4300 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4302 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4303 echo "Setting maintainer mode" 6>&1
4311 # Check whether --enable-sim-bswap was given.
4312 if test "${enable_sim_bswap+set}" = set; then :
4313 enableval
=$enable_sim_bswap; case "${enableval}" in
4314 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4315 no
) sim_bswap
="-DWITH_BSWAP=0";;
4316 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4318 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4319 echo "Setting bswap flags = $sim_bswap" 6>&1
4327 # Check whether --enable-sim-cflags was given.
4328 if test "${enable_sim_cflags+set}" = set; then :
4329 enableval
=$enable_sim_cflags; case "${enableval}" in
4330 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4331 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4333 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4335 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4336 echo "Setting sim cflags = $sim_cflags" 6>&1
4344 # Check whether --enable-sim-debug was given.
4345 if test "${enable_sim_debug+set}" = set; then :
4346 enableval
=$enable_sim_debug; case "${enableval}" in
4347 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4348 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4349 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4351 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4352 echo "Setting sim debug = $sim_debug" 6>&1
4360 # Check whether --enable-sim-stdio was given.
4361 if test "${enable_sim_stdio+set}" = set; then :
4362 enableval
=$enable_sim_stdio; case "${enableval}" in
4363 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4364 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4365 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4367 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4368 echo "Setting stdio flags = $sim_stdio" 6>&1
4376 # Check whether --enable-sim-trace was given.
4377 if test "${enable_sim_trace+set}" = set; then :
4378 enableval
=$enable_sim_trace; case "${enableval}" in
4379 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4380 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4382 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4385 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4386 if test x
"$sim_trace" = x
; then
4387 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4389 sim_trace
="${sim_trace}|TRACE_$x"
4392 sim_trace
="$sim_trace)'" ;;
4394 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4395 echo "Setting sim trace = $sim_trace" 6>&1
4403 # Check whether --enable-sim-profile was given.
4404 if test "${enable_sim_profile+set}" = set; then :
4405 enableval
=$enable_sim_profile; case "${enableval}" in
4406 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4407 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4409 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4412 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4413 if test x
"$sim_profile" = x
; then
4414 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4416 sim_profile
="${sim_profile}|PROFILE_$x"
4419 sim_profile
="$sim_profile)'" ;;
4421 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4422 echo "Setting sim profile = $sim_profile" 6>&1
4425 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4431 # Check whether --with-pkgversion was given.
4432 if test "${with_pkgversion+set}" = set; then :
4433 withval
=$with_pkgversion; case "$withval" in
4434 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4436 *) PKGVERSION
="($withval) " ;;
4447 # Check whether --with-bugurl was given.
4448 if test "${with_bugurl+set}" = set; then :
4449 withval
=$with_bugurl; case "$withval" in
4450 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4453 *) BUGURL
="$withval"
4457 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4467 REPORT_BUGS_TO
="<$BUGURL>"
4468 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4475 cat >>confdefs.h
<<_ACEOF
4476 #define PKGVERSION "$PKGVERSION"
4480 cat >>confdefs.h
<<_ACEOF
4481 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4486 $as_echo_n "checking return type of signal handlers... " >&6; }
4487 if test "${ac_cv_type_signal+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #include <sys/types.h>
4498 return *(signal (0, 0)) (0) == 1;
4503 if ac_fn_c_try_compile
"$LINENO"; then :
4504 ac_cv_type_signal
=int
4506 ac_cv_type_signal
=void
4508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4511 $as_echo "$ac_cv_type_signal" >&6; }
4513 cat >>confdefs.h
<<_ACEOF
4514 #define RETSIGTYPE $ac_cv_type_signal
4524 sim_link_links
=tconfig.h
4525 if test -f ${srcdir}/tconfig.
in
4527 sim_link_files
=tconfig.
in
4529 sim_link_files
=..
/common
/tconfig.
in
4532 # targ-vals.def points to the libc macro description file.
4534 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4536 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4537 sim_link_links
="${sim_link_links} targ-vals.def"
4541 default_sim_inline
=""
4542 # Check whether --enable-sim-inline was given.
4543 if test "${enable_sim_inline+set}" = set; then :
4544 enableval
=$enable_sim_inline; sim_inline
=""
4545 case "$enableval" in
4546 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4547 0) sim_inline
="-DDEFAULT_INLINE=0";;
4548 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4549 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4550 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4553 *_INLINE
=*) new_flag
="-D$x";;
4554 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4555 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4556 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4558 if test x
"$sim_inline" = x
""; then
4559 sim_inline
="$new_flag"
4561 sim_inline
="$sim_inline $new_flag"
4565 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4566 echo "Setting inline flags = $sim_inline" 6>&1
4570 if test "x$cross_compiling" = "xno"; then
4571 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4572 sim_inline
="${default_sim_inline}"
4573 if test x
"$silent" != x
"yes"; then
4574 echo "Setting inline flags = $sim_inline" 6>&1
4580 sim_inline
="-DDEFAULT_INLINE=0"
4584 wire_alignment
="NONSTRICT_ALIGNMENT"
4585 default_alignment
=""
4587 # Check whether --enable-sim-alignment was given.
4588 if test "${enable_sim_alignment+set}" = set; then :
4589 enableval
=$enable_sim_alignment; case "${enableval}" in
4590 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4591 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4592 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4593 yes) if test x
"$wire_alignment" != x
; then
4594 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4596 if test x
"$default_alignment" != x
; then
4597 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4599 echo "No hard-wired alignment for target $target" 1>&6
4600 sim_alignment
="-DWITH_ALIGNMENT=0"
4603 no
) if test x
"$default_alignment" != x
; then
4604 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4606 if test x
"$wire_alignment" != x
; then
4607 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4609 echo "No default alignment for target $target" 1>&6
4610 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4613 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4615 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4616 echo "Setting alignment flags = $sim_alignment" 6>&1
4619 if test x
"$default_alignment" != x
; then
4620 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4622 if test x
"$wire_alignment" != x
; then
4623 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4631 # Check whether --enable-sim-hostendian was given.
4632 if test "${enable_sim_hostendian+set}" = set; then :
4633 enableval
=$enable_sim_hostendian; case "${enableval}" in
4634 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4635 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4636 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4637 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4639 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4640 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4644 if test "x$cross_compiling" = "xno"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4646 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4647 if test "${ac_cv_c_bigendian+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 ac_cv_c_bigendian
=unknown
4651 # See if we're dealing with a universal compiler.
4652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #ifndef __APPLE_CC__
4655 not a universal capable compiler
4660 if ac_fn_c_try_compile
"$LINENO"; then :
4662 # Check for potential -arch flags. It is not universal unless
4663 # there are at least two -arch flags with different values.
4666 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4667 if test -n "$ac_prev"; then
4669 i?
86 | x86_64 | ppc | ppc64
)
4670 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4673 ac_cv_c_bigendian
=universal
4679 elif test "x$ac_word" = "x-arch"; then
4684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4685 if test $ac_cv_c_bigendian = unknown
; then
4686 # See if sys/param.h defines the BYTE_ORDER macro.
4687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <sys/types.h>
4690 #include <sys/param.h>
4695 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4696 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4705 if ac_fn_c_try_compile
"$LINENO"; then :
4706 # It does; now see whether it defined to BIG_ENDIAN or not.
4707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <sys/types.h>
4710 #include <sys/param.h>
4715 #if BYTE_ORDER != BIG_ENDIAN
4723 if ac_fn_c_try_compile
"$LINENO"; then :
4724 ac_cv_c_bigendian
=yes
4726 ac_cv_c_bigendian
=no
4728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4732 if test $ac_cv_c_bigendian = unknown
; then
4733 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4741 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4749 if ac_fn_c_try_compile
"$LINENO"; then :
4750 # It does; now see whether it defined to _BIG_ENDIAN or not.
4751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4766 if ac_fn_c_try_compile
"$LINENO"; then :
4767 ac_cv_c_bigendian
=yes
4769 ac_cv_c_bigendian
=no
4771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4775 if test $ac_cv_c_bigendian = unknown
; then
4776 # Compile a test program.
4777 if test "$cross_compiling" = yes; then :
4778 # Try to guess by grepping values from an object file.
4779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 short int ascii_mm[] =
4782 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4783 short int ascii_ii[] =
4784 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4785 int use_ascii (int i) {
4786 return ascii_mm[i] + ascii_ii[i];
4788 short int ebcdic_ii[] =
4789 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4790 short int ebcdic_mm[] =
4791 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4792 int use_ebcdic (int i) {
4793 return ebcdic_mm[i] + ebcdic_ii[i];
4800 return use_ascii (foo) == use_ebcdic (foo);
4805 if ac_fn_c_try_compile
"$LINENO"; then :
4806 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4807 ac_cv_c_bigendian
=yes
4809 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4810 if test "$ac_cv_c_bigendian" = unknown
; then
4811 ac_cv_c_bigendian
=no
4813 # finding both strings is unlikely to happen, but who knows?
4814 ac_cv_c_bigendian
=unknown
4818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 $ac_includes_default
4827 /* Are we little or big endian? From Harbison&Steele. */
4831 char c[sizeof (long int)];
4834 return u.c[sizeof (long int) - 1] == 1;
4840 if ac_fn_c_try_run
"$LINENO"; then :
4841 ac_cv_c_bigendian
=no
4843 ac_cv_c_bigendian
=yes
4845 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4846 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4852 $as_echo "$ac_cv_c_bigendian" >&6; }
4853 case $ac_cv_c_bigendian in #(
4855 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4861 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4865 as_fn_error
"unknown endianness
4866 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4869 if test $ac_cv_c_bigendian = yes; then
4870 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4872 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4875 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4880 # NOTE: Don't add -Wall or -Wunused, they both include
4881 # -Wunused-parameter which reports bogus warnings.
4882 # NOTE: If you add to this list, remember to update
4883 # gdb/doc/gdbint.texinfo.
4884 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4885 -Wformat -Wparentheses -Wpointer-arith"
4886 # GCC supports -Wuninitialized only with -O or -On, n != 0.
4887 if test x
${CFLAGS+set} = xset
; then
4891 build_warnings
="${build_warnings} -Wuninitialized"
4895 build_warnings
="${build_warnings} -Wuninitialized"
4897 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4898 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4899 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4900 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4901 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4902 # -Woverloaded-virtual -Winline -Werror"
4903 # Check whether --enable-build-warnings was given.
4904 if test "${enable_build_warnings+set}" = set; then :
4905 enableval
=$enable_build_warnings; case "${enableval}" in
4907 no
) build_warnings
="-w";;
4908 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4909 build_warnings
="${build_warnings} ${t}";;
4910 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4911 build_warnings
="${t} ${build_warnings}";;
4912 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4914 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4915 echo "Setting compiler warning flags = $build_warnings" 6>&1
4918 # Check whether --enable-sim-build-warnings was given.
4919 if test "${enable_sim_build_warnings+set}" = set; then :
4920 enableval
=$enable_sim_build_warnings; case "${enableval}" in
4922 no
) build_warnings
="-w";;
4923 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4924 build_warnings
="${build_warnings} ${t}";;
4925 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4926 build_warnings
="${t} ${build_warnings}";;
4927 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4929 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4930 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4935 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4938 $as_echo_n "checking compiler warning flags... " >&6; }
4939 # Separate out the -Werror flag as some files just cannot be
4940 # compiled with it enabled.
4941 for w
in ${build_warnings}; do
4943 -Werr*) WERROR_CFLAGS
=-Werror ;;
4944 *) # Check that GCC accepts it
4945 saved_CFLAGS
="$CFLAGS"
4947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4958 if ac_fn_c_try_compile
"$LINENO"; then :
4959 WARN_CFLAGS
="${WARN_CFLAGS} $w"
4961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4962 CFLAGS
="$saved_CFLAGS"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4966 $as_echo "${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
4970 default_sim_reserved_bits="1"
4971 # Check whether --enable-sim-reserved-bits was given.
4972 if test "${enable_sim_reserved_bits+set}" = set; then :
4973 enableval=$enable_sim_reserved_bits; case "${enableval}" in
4974 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
4975 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
4976 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value
\"" "$LINENO" 5; sim_reserved_bits="";;
4978 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
4979 echo "Setting reserved flags
= $sim_reserved_bits" 6>&1
4982 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
4988 # Instead of defining a `subtarget' macro, code should be checking
4989 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
4993 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
4994 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
4995 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
4996 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
4997 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
4998 *) SIM_SUBTARGET="";;
5005 # Select the byte order of the target
5010 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
5011 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
5012 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5013 mips16*-*-*) default_endian=BIG_ENDIAN ;;
5014 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5015 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
5016 mips*-*-*) default_endian=BIG_ENDIAN ;;
5017 *) default_endian=BIG_ENDIAN ;;
5020 wire_endian="$mips_endian"
5021 default_endian="$default_endian"
5022 # Check whether --enable-sim-endian was given.
5023 if test "${enable_sim_endian+set}" = set; then :
5024 enableval=$enable_sim_endian; case "${enableval}" in
5025 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN
";;
5026 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN
";;
5027 yes) if test x"$wire_endian" != x; then
5028 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5030 if test x"$default_endian" != x; then
5031 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5033 echo "No hard-wired endian
for target
$target" 1>&6
5034 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5037 no) if test x"$default_endian" != x; then
5038 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5040 if test x"$wire_endian" != x; then
5041 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5043 echo "No default endian
for target
$target" 1>&6
5044 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5047 *) as_fn_error "\"Unknown value
$enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5049 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5050 echo "Setting endian flags
= $sim_endian" 6>&1
5053 if test x"$default_endian" != x; then
5054 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5056 if test x"$wire_endian" != x; then
5057 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5068 # Select the bitsize of the target
5072 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5073 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5074 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5075 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5076 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5077 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5078 *) mips_bitsize=64 ; mips_msb=63 ;;
5080 wire_word_bitsize="$mips_bitsize"
5081 wire_word_msb="$mips_msb"
5082 wire_address_bitsize="$mips_addr_bitsize"
5083 wire_cell_bitsize=""
5084 # Check whether --enable-sim-bitsize was given.
5085 if test "${enable_sim_bitsize+set}" = set; then :
5086 enableval=$enable_sim_bitsize; sim_bitsize=
5087 case "${enableval}" in
5088 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5089 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5090 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5091 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5092 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5093 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5095 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5097 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5098 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5100 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5102 *) as_fn_error "\"--enable-sim-bitsize was given
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5105 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9]*,*//"`
5108 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5109 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5110 * ) as_fn_error "\"--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5113 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5116 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5117 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5118 * ) as_fn_error "\"--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5120 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5121 echo "Setting bitsize flags
= $sim_bitsize" 6>&1
5125 if test x"$wire_word_bitsize" != x; then
5126 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5128 if test x"$wire_word_msb" != x; then
5129 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5131 if test x"$wire_address_bitsize" != x; then
5132 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5134 if test x"$wire_cell_bitsize" != x; then
5135 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5143 # Select the floating hardware support of the target
5145 mips_fpu=HARDWARE_FLOATING_POINT
5148 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5149 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5150 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5151 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5152 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5153 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5154 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5155 *) mips_fpu=HARD_FLOATING_POINT ;;
5158 default_sim_float="$mips_fpu"
5159 default_sim_float_bitsize="$mips_fpu_bitsize"
5160 # Check whether --enable-sim-float was given.
5161 if test "${enable_sim_float+set}" = set; then :
5162 enableval=$enable_sim_float; case "${enableval}" in
5163 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
";;
5164 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT
";;
5165 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5166 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5167 *) as_fn_error "\"Unknown value
$enableval passed to
--enable-sim-float\"" "$LINENO" 5; sim_float="";;
5169 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5170 echo "Setting float flags
= $sim_float" 6>&1
5175 if test x"${default_sim_float}" != x""; then
5176 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5178 if test x"${default_sim_float_bitsize}" != x""; then
5179 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5188 # Select the level of SMP support
5194 default_sim_smp="$mips_smp"
5195 # Check whether --enable-sim-smp was given.
5196 if test "${enable_sim_smp+set}" = set; then :
5197 enableval=$enable_sim_smp; case "${enableval}" in
5198 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5199 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5200 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5202 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5203 echo "Setting smp flags
= $sim_smp" 6>&1
5206 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5207 if test x"$silent" != x"yes"; then
5208 echo "Setting smp flags
= $sim_smp" 6>&1
5216 # Select the IGEN architecture
5219 sim_igen_machine="-M mipsIV
"
5220 sim_m16_machine="-M mips16
,mipsIII
"
5221 sim_igen_filter="32,64,f
"
5223 sim_mach_default="mips8000
"
5226 mips*tx39*) sim_gen=IGEN
5227 sim_igen_filter="32,f
"
5228 sim_igen_machine="-M r3900
"
5230 mips64vr43*-*-*) sim_gen=IGEN
5231 sim_igen_machine="-M mipsIV
"
5232 sim_mach_default="mips8000
"
5234 mips64vr5*-*-*) sim_gen=IGEN
5235 sim_igen_machine="-M vr5000
"
5236 sim_mach_default="mips5000
"
5238 mips64vr41*) sim_gen=M16
5239 sim_igen_machine="-M vr4100
"
5240 sim_m16_machine="-M vr4100
"
5241 sim_igen_filter="32,64,f
"
5243 sim_mach_default="mips4100
"
5245 mips64vr-*-* | mips64vrel-*-*)
5247 sim_multi_configs="\
5248 vr4100
:mipsIII
,mips16
,vr4100
:32,64:mips4100
,mips4111\
5249 vr4120
:mipsIII
,mips16
,vr4120
:32,64:mips4120\
5250 vr5000
:mipsIV
:32,64,f
:mips4300
,mips5000\
5251 vr5400
:mipsIV
,vr5400
:32,64,f
:mips5400\
5252 vr5500
:mipsIV
,vr5500
:32,64,f
:mips5500
"
5253 sim_multi_default=mips5000
5255 mips*-sde-elf*) sim_gen=M16
5256 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5257 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5258 sim_igen_filter="32,64,f
"
5259 sim_mach_default="mipsisa64r2
"
5261 mips64*-*-*) sim_igen_filter="32,64,f
"
5264 mips16*-*-*) sim_gen=M16
5265 sim_igen_filter="32,64,f
"
5268 mipsisa32r2*-*-*) sim_gen=M16
5269 sim_igen_machine="-M mips32r2
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5270 sim_m16_machine="-M mips16
,mips16e
,mips32r2
"
5271 sim_igen_filter="32,f
"
5272 sim_mach_default="mipsisa32r2
"
5274 mipsisa32*-*-*) sim_gen=M16
5275 sim_igen_machine="-M mips32
,mips16
,mips16e
,smartmips
"
5276 sim_m16_machine="-M mips16
,mips16e
,mips32
"
5277 sim_igen_filter="32,f
"
5278 sim_mach_default="mipsisa32
"
5280 mipsisa64r2*-*-*) sim_gen=M16
5281 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
"
5282 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5283 sim_igen_filter="32,64,f
"
5284 sim_mach_default="mipsisa64r2
"
5286 mipsisa64sb1*-*-*) sim_gen=IGEN
5287 sim_igen_machine="-M mips64
,mips3d
,sb1
"
5288 sim_igen_filter="32,64,f
"
5289 sim_mach_default="mips_sb1
"
5291 mipsisa64*-*-*) sim_gen=M16
5292 sim_igen_machine="-M mips64
,mips3d
,mips16
,mips16e
,mdmx
"
5293 sim_m16_machine="-M mips16
,mips16e
,mips64
"
5294 sim_igen_filter="32,64,f
"
5295 sim_mach_default="mipsisa64
"
5297 mips*lsi*) sim_gen=M16
5298 sim_igen_machine="-M mipsIII
,mips16
"
5299 sim_m16_machine="-M mips16
,mipsIII
"
5300 sim_igen_filter="32,f
"
5302 sim_mach_default="mips4000
"
5304 mips*-*-*) sim_gen=IGEN
5305 sim_igen_filter="32,f
"
5309 # The MULTI generator can combine several simulation engines into one.
5310 # executable. A configuration which uses the MULTI should set two
5311 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5313 # ${sim_multi_configs} is the list of engines to build. Each
5314 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5317 # - NAME is a C-compatible prefix for the engine,
5318 # - MACHINE is a -M argument,
5319 # - FILTER is a -F argument, and
5320 # - BFDMACHS is a comma-separated list of bfd machines that the
5321 # simulator can run.
5323 # Each entry will have a separate simulation engine whose prefix is
5324 # m32<NAME>. If the machine list includes "mips16
", there will also
5325 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5326 # generated using the same machine list as the 32-bit version,
5327 # but the filter will be "16" instead of FILTER.
5329 # The simulator compares the bfd mach against BFDMACHS to decide
5330 # which engine to use. Entries in BFDMACHS should be bfd_mach
5331 # values with "bfd_mach_
" removed. ${sim_multi_default} says
5332 # which entry should be the default.
5333 if test ${sim_gen} = MULTI; then
5335 # Simple sanity check.
5336 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
5337 as_fn_error "Error
in configure.
in: MULTI simulator not
set up correctly
" "$LINENO" 5
5340 # Start in a known state.
5341 rm -f multi-include.h multi-run.c
5344 sim_multi_obj=multi-run.o
5345 sim_multi_igen_configs=
5348 cat << __EOF__ > multi-run.c
5349 /* Main entry point for MULTI simulators.
5350 Copyright (C) 2003, 2007 Free Software Foundation, Inc.
5352 This program is free software; you can redistribute it and/or modify
5353 it under the terms of the GNU General Public License as published by
5354 the Free Software Foundation; either version 3 of the License, or
5355 (at your option) any later version.
5357 This program is distributed in the hope that it will be useful,
5358 but WITHOUT ANY WARRANTY; without even the implied warranty of
5359 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5360 GNU General Public License for more details.
5362 You should have received a copy of the GNU General Public License
5363 along with this program. If not, see <http://www.gnu.org/licenses/>.
5367 This file was generated by sim/mips/configure. */
5369 #include "sim-main.h
"
5370 #include "multi-include.h
"
5376 sim_engine_run (SIM_DESC sd,
5379 int signal) /* ignore */
5383 if (STATE_ARCHITECTURE (sd) == NULL)
5384 mach = bfd_mach_${sim_multi_default};
5386 mach = STATE_ARCHITECTURE (SD)->mach;
5392 for fc in ${sim_multi_configs}; do
5394 # Split up the entry. ${c} contains the first three elements.
5395 # Note: outer sqaure brackets are m4 quotes.
5396 c=`echo ${fc} | sed 's/:[^:]*$//'`
5397 bfdmachs=`echo ${fc} | sed 's/.*://'`
5398 name=`echo ${c} | sed 's/:.*//'`
5399 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5400 filter=`echo ${c} | sed 's/.*://'`
5402 # Build the following lists:
5404 # sim_multi_flags: all -M and -F flags used by the simulator
5405 # sim_multi_src: all makefile-generated source files
5406 # sim_multi_obj: the objects for ${sim_multi_src}
5407 # sim_multi_igen_configs: igen configuration strings.
5409 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5410 # or m16) followed by the NAME, MACHINE and FILTER part of
5411 # the ${sim_multi_configs} entry.
5412 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5414 # Check whether mips16 handling is needed.
5417 # Run igen twice, once for normal mode and once for mips16.
5420 # The top-level function for the mips16 simulator is
5421 # in a file m16${name}_run.c, generated by the
5422 # tmp-run-multi Makefile rule.
5423 sim_multi_src="${sim_multi_src} m16
${name}_run.c
"
5424 sim_multi_obj="${sim_multi_obj} m16
${name}_run.o
"
5425 sim_multi_flags="${sim_multi_flags} -F 16"
5432 # Now add the list of igen-generated files to ${sim_multi_src}
5433 # and ${sim_multi_obj}.
5435 for base in engine icache idecode model semantics support; do
5436 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c
"
5437 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h
"
5438 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o
"
5440 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5443 # Add an include for the engine.h file. This file declares the
5444 # top-level foo_engine_run() function.
5445 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5447 # Add case statements for this engine to sim_engine_run().
5448 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5449 echo " case bfd_mach_${mach}:" >> multi-run.c
5450 if test ${mach} = ${sim_multi_default}; then
5451 echo " default:" >> multi-run.c
5452 sim_seen_default
=yes
5455 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5457 echo " break;" >> multi-run.c
5460 # Check whether we added a 'default:' label.
5461 if test ${sim_seen_default} = no
; then
5462 as_fn_error
"Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
5465 cat << __EOF__ >> multi-run.c
5470 mips_mach_multi (SIM_DESC sd)
5472 if (STATE_ARCHITECTURE (sd) == NULL)
5473 return bfd_mach_${sim_multi_default};
5475 switch (STATE_ARCHITECTURE (SD)->mach)
5479 # Add case statements for this engine to mips_mach_multi().
5480 for fc in ${sim_multi_configs}; do
5482 # Split up the entry. ${c} contains the first three elements.
5483 # Note: outer sqaure brackets are m4 quotes.
5484 c
=`echo ${fc} | sed 's/:[^:]*$//'`
5485 bfdmachs
=`echo ${fc} | sed 's/.*://'`
5487 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5488 echo " case bfd_mach_${mach}:" >> multi-run.c
5492 cat << __EOF__ >> multi-run.c
5493 return (STATE_ARCHITECTURE (SD)->mach);
5495 return bfd_mach_${sim_multi_default};
5500 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5503 sim_multi_src
=doesnt-exist.c
5505 if test x
"${sim_mach_default}" = x
""; then
5506 as_fn_error
"Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
5508 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5510 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5511 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5522 # Add simulated hardware devices
5528 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
5529 mips_extra_objs
="dv-sockser.o"
5530 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
5537 if test x
"$hw_enabled" = x
"yes"; then
5542 if test "$hw_devices"; then
5543 hardware
="core pal glue"
5545 hardware
="core pal glue $hw_extra_devices"
5547 sim_hw_cflags
="-DWITH_HW=1"
5549 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5550 # Check whether --enable-sim-hardware was given.
5551 if test "${enable_sim_hardware+set}" = set; then :
5552 enableval
=$enable_sim_hardware;
5553 case "${enableval}" in
5556 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5557 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5558 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5560 if test "$sim_hw_p" != yes; then
5562 sim_hw_cflags
="-DWITH_HW=0"
5565 sim_hw_cflags
="-DWITH_HW=1"
5568 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
5569 for i
in $hardware ; do
5572 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
5576 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
5577 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5581 if test "$sim_hw_p" != yes; then
5583 sim_hw_cflags
="-DWITH_HW=0"
5586 if test x
"$silent" != x
"yes"; then
5587 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5594 # Choose simulator engine
5596 *) mips_igen_engine
="engine.o"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5603 $as_echo_n "checking for X... " >&6; }
5606 # Check whether --with-x was given.
5607 if test "${with_x+set}" = set; then :
5611 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5612 if test "x$with_x" = xno
; then
5613 # The user explicitly disabled X.
5616 case $x_includes,$x_libraries in #(
5617 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
5618 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 # One or both of the vars are not set, and there is no cached value.
5622 ac_x_includes
=no ac_x_libraries
=no
5623 rm -f -r conftest.dir
5624 if mkdir conftest.dir
; then
5626 cat >Imakefile
<<'_ACEOF'
5628 @echo incroot='${INCROOT}'
5630 @echo usrlibdir='${USRLIBDIR}'
5632 @echo libdir='${LIBDIR}'
5634 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5636 for ac_var
in incroot usrlibdir libdir
; do
5637 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5639 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5640 for ac_extension
in a so sl dylib la dll
; do
5641 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5642 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5643 ac_im_usrlibdir
=$ac_im_libdir; break
5646 # Screen out bogus values from the imake configuration. They are
5647 # bogus both because they are the default anyway, and because
5648 # using them would break gcc on systems where it needs fixed includes.
5649 case $ac_im_incroot in
5650 /usr
/include
) ac_x_includes
= ;;
5651 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5653 case $ac_im_usrlibdir in
5654 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
5655 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5659 rm -f -r conftest.dir
5662 # Standard set of common directories for X headers.
5663 # Check X11 before X11Rn because it is often a symlink to the current release.
5677 /usr/local/X11/include
5678 /usr/local/X11R7/include
5679 /usr/local/X11R6/include
5680 /usr/local/X11R5/include
5681 /usr/local/X11R4/include
5683 /usr/local/include/X11
5684 /usr/local/include/X11R7
5685 /usr/local/include/X11R6
5686 /usr/local/include/X11R5
5687 /usr/local/include/X11R4
5691 /usr/XFree86/include/X11
5695 /usr/unsupported/include
5697 /usr/local/x11r5/include
5698 /usr/lpp/Xamples/include
5700 /usr/openwin/include
5701 /usr/openwin/share/include'
5703 if test "$ac_x_includes" = no
; then
5704 # Guess where to find include files, by looking for Xlib.h.
5705 # First, try using that file with no special directory specified.
5706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <X11/Xlib.h>
5710 if ac_fn_c_try_cpp
"$LINENO"; then :
5711 # We can compile using X headers with no special include directory.
5714 for ac_dir
in $ac_x_header_dirs; do
5715 if test -r "$ac_dir/X11/Xlib.h"; then
5716 ac_x_includes
=$ac_dir
5721 rm -f conftest.err conftest.
$ac_ext
5722 fi # $ac_x_includes = no
5724 if test "$ac_x_libraries" = no
; then
5725 # Check for the libraries.
5726 # See if we find them without any special options.
5727 # Don't add to $LIBS permanently.
5730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #include <X11/Xlib.h>
5741 if ac_fn_c_try_link
"$LINENO"; then :
5743 # We can link X programs with no special library path.
5747 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5749 # Don't even attempt the hair of trying to link an X program!
5750 for ac_extension
in a so sl dylib la dll
; do
5751 if test -r "$ac_dir/libX11.$ac_extension"; then
5752 ac_x_libraries
=$ac_dir
5758 rm -f core conftest.err conftest.
$ac_objext \
5759 conftest
$ac_exeext conftest.
$ac_ext
5760 fi # $ac_x_libraries = no
5762 case $ac_x_includes,$ac_x_libraries in #(
5764 # Didn't find X, or a directory has "'" in its name.
5765 ac_cv_have_x
="have_x=no";; #(
5767 # Record where we found X for the cache.
5768 ac_cv_have_x
="have_x=yes\
5769 ac_x_includes='$ac_x_includes'\
5770 ac_x_libraries='$ac_x_libraries'"
5776 eval "$ac_cv_have_x"
5779 if test "$have_x" != yes; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5781 $as_echo "$have_x" >&6; }
5784 # If each of the values was on the command line, it overrides each guess.
5785 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5786 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5787 # Update the cache value to reflect the command line values.
5788 ac_cv_have_x
="have_x=yes\
5789 ac_x_includes='$x_includes'\
5790 ac_x_libraries='$x_libraries'"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5792 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5798 for ac_header
in string.h
strings.h stdlib.h stdlib.h
5800 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5801 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5802 eval as_val
=\$
$as_ac_Header
5803 if test "x$as_val" = x
""yes; then :
5804 cat >>confdefs.h
<<_ACEOF
5805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
5813 $as_echo_n "checking for fabs in -lm... " >&6; }
5814 if test "${ac_cv_lib_m_fabs+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5817 ac_check_lib_save_LIBS
=$LIBS
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5822 /* Override any GCC internal prototype to avoid an error.
5823 Use char because int might match the return type of a GCC
5824 builtin and then its argument prototype would still apply. */
5837 if ac_fn_c_try_link
"$LINENO"; then :
5838 ac_cv_lib_m_fabs
=yes
5842 rm -f core conftest.err conftest.
$ac_objext \
5843 conftest
$ac_exeext conftest.
$ac_ext
5844 LIBS
=$ac_check_lib_save_LIBS
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
5847 $as_echo "$ac_cv_lib_m_fabs" >&6; }
5848 if test "x$ac_cv_lib_m_fabs" = x
""yes; then :
5849 cat >>confdefs.h
<<_ACEOF
5857 for ac_func
in aint anint sqrt
5859 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5860 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5861 eval as_val
=\$
$as_ac_var
5862 if test "x$as_val" = x
""yes; then :
5863 cat >>confdefs.h
<<_ACEOF
5864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5872 ac_sources
="$sim_link_files"
5873 ac_dests
="$sim_link_links"
5874 while test -n "$ac_sources"; do
5875 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
5876 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
5877 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
5879 ac_config_links
="$ac_config_links $ac_config_links_1"
5882 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
5883 cgen_breaks
="break cgen_rtx_error";
5886 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
5888 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
5890 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
5892 ac_config_commands
="$ac_config_commands Makefile"
5894 ac_config_commands
="$ac_config_commands stamp-h"
5896 cat >confcache
<<\_ACEOF
5897 # This file is a shell script that caches the results of configure
5898 # tests run on this system so they can be shared between configure
5899 # scripts and configure runs, see configure's option --config-cache.
5900 # It is not useful on other systems. If it contains results you don't
5901 # want to keep, you may remove or edit it.
5903 # config.status only pays attention to the cache file if you give it
5904 # the --recheck option to rerun configure.
5906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5912 # The following way of writing the cache mishandles newlines in values,
5913 # but we know of no workaround that is simple, portable, and efficient.
5914 # So, we kill variables containing newlines.
5915 # Ultrix sh set writes to stderr and can't be redirected directly,
5916 # and sets the high bit in the cache file unless we assign to the vars.
5918 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5919 eval ac_val
=\$
$ac_var
5923 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5927 _ | IFS | as_nl
) ;; #(
5928 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5929 *) { eval $ac_var=; unset $ac_var;} ;;
5935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5936 *${as_nl}ac_space
=\
*)
5937 # `set' does not quote correctly, so add quotes: double-quote
5938 # substitution turns \\\\ into \\, and sed turns \\ into \.
5941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5944 # `set' quotes correctly as required by POSIX, so do not add quotes.
5945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5958 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5959 if test -w "$cache_file"; then
5960 test "x$cache_file" != "x/dev/null" &&
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5962 $as_echo "$as_me: updating cache $cache_file" >&6;}
5963 cat confcache
>$cache_file
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5966 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5971 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5972 # Let make expand exec_prefix.
5973 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5975 DEFS
=-DHAVE_CONFIG_H
5979 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5980 # 1. Remove the extension, and $U if already installed.
5981 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5982 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5984 # will be set to the directory where LIBOBJS objects are built.
5985 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5986 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5990 LTLIBOBJS
=$ac_ltlibobjs
5995 : ${CONFIG_STATUS=./config.status}
5997 ac_clean_files_save
=$ac_clean_files
5998 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6002 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6004 # Generated by $as_me.
6005 # Run this file to recreate the current configuration.
6006 # Compiler output produced by configure, useful for debugging
6007 # configure, is in config.log if it exists.
6013 SHELL=\${CONFIG_SHELL-$SHELL}
6016 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6017 ## -------------------- ##
6018 ## M4sh Initialization. ##
6019 ## -------------------- ##
6021 # Be more Bourne compatible
6022 DUALCASE
=1; export DUALCASE
# for MKS sh
6023 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6027 # is contrary to our usage. Disable this feature.
6028 alias -g '${1+"$@"}'='"$@"'
6029 setopt NO_GLOB_SUBST
6031 case `(set -o) 2>/dev/null` in #(
6043 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6044 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6047 # Prefer a ksh shell builtin over an external printf program on Solaris,
6048 # but without wasting forks for bash or zsh.
6049 if test -z "$BASH_VERSION$ZSH_VERSION" \
6050 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6051 as_echo='print
-r --'
6052 as_echo_n='print
-rn --'
6053 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6054 as_echo='printf %s
\n'
6055 as_echo_n='printf %s
'
6057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6058 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6059 as_echo_n='/usr
/ucb
/echo -n'
6061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6062 as_echo_n_body='eval
6066 expr "X$arg" : "X\\(.*\\)$as_nl";
6067 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6069 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6071 export as_echo_n_body
6072 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6075 as_echo='sh
-c $as_echo_body as_echo
'
6078 # The user is always right.
6079 if test "${PATH_SEPARATOR+set}" != set; then
6081 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6082 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6089 # We need space, tab and new line, in precisely that order. Quoting is
6090 # there to prevent editors from complaining about space-tab.
6091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6092 # splitting by setting IFS to empty value.)
6095 # Find who we are. Look in the path if we contain no directory separator.
6097 *[\\/]* ) as_myself=$0 ;;
6098 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6109 # We did not find ourselves, most probably we were run as `sh COMMAND'
6110 # in which case we are not to be found in the path.
6111 if test "x$as_myself" = x
; then
6114 if test ! -f "$as_myself"; then
6115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6119 # Unset variables that we do not need and which cause bugs (e.g. in
6120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6121 # suppresses any "Segmentation fault" message there. '((' could
6122 # trigger a bug in pdksh 5.2.14.
6123 for as_var
in BASH_ENV ENV MAIL MAILPATH
6124 do eval test x\
${$as_var+set} = xset \
6125 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6138 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6141 # as_fn_error ERROR [LINENO LOG_FD]
6142 # ---------------------------------
6143 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6144 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6145 # script with status $?, using 1 if that was 0.
6148 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6150 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6151 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6153 $as_echo "$as_me: error: $1" >&2
6154 as_fn_exit
$as_status
6158 # as_fn_set_status STATUS
6159 # -----------------------
6160 # Set $? to STATUS, without forking.
6164 } # as_fn_set_status
6168 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6178 # Portably unset VAR.
6181 { eval $1=; unset $1;}
6183 as_unset
=as_fn_unset
6184 # as_fn_append VAR VALUE
6185 # ----------------------
6186 # Append the text in VALUE to the end of the definition contained in VAR. Take
6187 # advantage of any shell optimizations that allow amortized linear growth over
6188 # repeated appends, instead of the typical quadratic growth present in naive
6190 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6191 eval 'as_fn_append ()
6202 # as_fn_arith ARG...
6203 # ------------------
6204 # Perform arithmetic evaluation on the ARGs, and store the result in the
6205 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6206 # must be portable across $(()) and expr.
6207 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6208 eval 'as_fn_arith ()
6215 as_val
=`expr "$@" || test $? -eq 1`
6220 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6221 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6227 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6228 as_basename
=basename
6233 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6239 as_me
=`$as_basename -- "$0" ||
6240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6241 X"$0" : 'X\(//\)$' \| \
6242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6244 sed '/^.*\/\([^/][^/]*\)\/*$/{
6258 # Avoid depending upon Character Ranges.
6259 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6260 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6261 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6262 as_cr_digits
='0123456789'
6263 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6265 ECHO_C
= ECHO_N
= ECHO_T
=
6266 case `echo -n x` in #(((((
6268 case `echo 'xy\c'` in
6269 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6271 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6278 rm -f conf$$ conf$$.exe conf$$.
file
6279 if test -d conf$$.dir
; then
6280 rm -f conf$$.dir
/conf$$.
file
6283 mkdir conf$$.dir
2>/dev
/null
6285 if (echo >conf$$.
file) 2>/dev
/null
; then
6286 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6288 # ... but there are two gotchas:
6289 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6290 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6291 # In both cases, we have to default to `cp -p'.
6292 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6294 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6302 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6303 rmdir conf$$.dir
2>/dev
/null
6308 # Create "$as_dir" as a directory, including parents if necessary.
6313 -*) as_dir
=.
/$as_dir;;
6315 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6319 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6320 *) as_qdir
=$as_dir;;
6322 as_dirs
="'$as_qdir' $as_dirs"
6323 as_dir
=`$as_dirname -- "$as_dir" ||
6324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6325 X"$as_dir" : 'X\(//\)[^/]' \| \
6326 X"$as_dir" : 'X\(//\)$' \| \
6327 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6328 $as_echo X"$as_dir" |
6329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6346 test -d "$as_dir" && break
6348 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6349 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6353 if mkdir
-p .
2>/dev
/null
; then
6354 as_mkdir_p
='mkdir -p "$as_dir"'
6356 test -d .
/-p && rmdir .
/-p
6360 if test -x / >/dev
/null
2>&1; then
6363 if ls -dL / >/dev
/null
2>&1; then
6370 if test -d "$1"; then
6376 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6377 ???[sx]*):;;*)false;;esac;fi
6381 as_executable_p
=$as_test_x
6383 # Sed expression to map a string onto a valid CPP name.
6384 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6386 # Sed expression to map a string onto a valid variable name.
6387 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6391 ## ----------------------------------- ##
6392 ## Main body of $CONFIG_STATUS script. ##
6393 ## ----------------------------------- ##
6395 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6398 # Save the log message, to keep $0 and so on meaningful, and to
6399 # report actual input values of CONFIG_FILES etc. instead of their
6400 # values after options handling.
6402 This file was extended by $as_me, which was
6403 generated by GNU Autoconf 2.64. Invocation command line was
6405 CONFIG_FILES = $CONFIG_FILES
6406 CONFIG_HEADERS = $CONFIG_HEADERS
6407 CONFIG_LINKS = $CONFIG_LINKS
6408 CONFIG_COMMANDS = $CONFIG_COMMANDS
6411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6416 case $ac_config_files in *"
6417 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6420 case $ac_config_headers in *"
6421 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6426 # Files that config.status was made for.
6427 config_files="$ac_config_files"
6428 config_headers="$ac_config_headers"
6429 config_links="$ac_config_links"
6430 config_commands="$ac_config_commands"
6434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6436 \`$as_me' instantiates files and other configuration actions
6437 from templates according to the current configuration. Unless the files
6438 and actions are specified as TAGs, all are instantiated by default.
6440 Usage: $0 [OPTION]... [TAG]...
6442 -h, --help print this help, then exit
6443 -V, --version print version number and configuration settings, then exit
6444 -q, --quiet, --silent
6445 do not print progress messages
6446 -d, --debug don't remove temporary files
6447 --recheck update $as_me by reconfiguring in the same conditions
6448 --file=FILE[:TEMPLATE]
6449 instantiate the configuration file FILE
6450 --header=FILE[:TEMPLATE]
6451 instantiate the configuration header FILE
6453 Configuration files:
6456 Configuration headers:
6459 Configuration links:
6462 Configuration commands:
6465 Report bugs to the package provider."
6468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6471 configured by $0, generated by GNU Autoconf 2.64,
6472 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6474 Copyright (C) 2009 Free Software Foundation, Inc.
6475 This config.status script is free software; the Free Software Foundation
6476 gives unlimited permission to copy, distribute and modify it."
6481 test -n "\$AWK" || AWK=awk
6484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6485 # The default lists apply if the user does not specify any file.
6491 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6492 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6503 # Handling of the options.
6504 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6506 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6507 $as_echo "$ac_cs_version"; exit ;;
6508 --debug |
--debu |
--deb |
--de |
--d |
-d )
6510 --file |
--fil |
--fi |
--f )
6513 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6515 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6516 ac_need_defaults
=false
;;
6517 --header |
--heade |
--head |
--hea )
6520 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6522 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6523 ac_need_defaults
=false
;;
6525 # Conflict between --help and --header
6526 as_fn_error
"ambiguous option: \`$1'
6527 Try \`$0 --help' for more information.";;
6528 --help |
--hel |
-h )
6529 $as_echo "$ac_cs_usage"; exit ;;
6530 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6531 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6535 -*) as_fn_error
"unrecognized option: \`$1'
6536 Try \`$0 --help' for more information." ;;
6538 *) as_fn_append ac_config_targets
" $1"
6539 ac_need_defaults
=false
;;
6545 ac_configure_extra_args
=
6547 if $ac_cs_silent; then
6549 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6554 if \$ac_cs_recheck; then
6555 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6557 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6558 CONFIG_SHELL='$SHELL'
6564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6568 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6569 ## Running $as_me. ##
6575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6580 # Handling of arguments.
6581 for ac_config_target
in $ac_config_targets
6583 case $ac_config_target in
6584 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6585 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6586 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6587 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6588 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6589 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6590 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6592 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6597 # If the user did not use the arguments to specify the items to instantiate,
6598 # then the envvar interface is used. Set only those that are not.
6599 # We use the long form for the default assignment because of an extremely
6600 # bizarre bug on SunOS 4.1.3.
6601 if $ac_need_defaults; then
6602 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6603 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6604 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6608 # Have a temporary directory for convenience. Make it in the build tree
6609 # simply because there is no reason against having it here, and in addition,
6610 # creating and moving files from /tmp can sometimes cause problems.
6611 # Hook for its removal unless debugging.
6612 # Note that there is a small window in which the directory will not be cleaned:
6613 # after its creation but before its name has been assigned to `$tmp'.
6617 trap 'exit_status=$?
6618 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6620 trap 'as_fn_exit 1' 1 2 13 15
6622 # Create a (secure) tmp directory for tmp files.
6625 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6626 test -n "$tmp" && test -d "$tmp"
6629 tmp
=.
/conf$$
-$RANDOM
6630 (umask 077 && mkdir
"$tmp")
6631 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6633 # Set up the scripts for CONFIG_FILES section.
6634 # No need to generate them if there are no CONFIG_FILES.
6635 # This happens for instance with `./config.status config.h'.
6636 if test -n "$CONFIG_FILES"; then
6639 ac_cr
=`echo X | tr X '\015'`
6640 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6641 # But we know of no other shell where ac_cr would be empty at this
6642 # point, so we can use a bashism as a fallback.
6643 if test "x$ac_cr" = x
; then
6644 eval ac_cr
=\$
\'\\r
\'
6646 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6647 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6653 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6658 echo "cat >conf$$subs.awk <<_ACEOF" &&
6659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6662 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6663 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6665 for ac_last_try in false false false false false :; do
6666 . ./conf$$subs.sh ||
6667 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6669 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6670 if test $ac_delim_n = $ac_delim_num; then
6672 elif $ac_last_try; then
6673 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6675 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6681 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6685 s/^/S["/; s
/!.
*/"]=/
6695 s/\(.\{148\}\).*/\1/
6697 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6702 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6709 s/\(.\{148\}\).*/\1/
6711 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6715 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6720 ' <conf$$subs.awk | sed '
6725 ' >>$CONFIG_STATUS || ac_write_fail=1
6726 rm -f conf$$subs.awk
6727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6729 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6730 for (key in S) S_is_set[key] = 1
6736 nfields = split(line, field, "@
")
6738 len = length(field[1])
6739 for (i = 2; i < nfields; i++) {
6741 keylen = length(key)
6742 if (S_is_set[key]) {
6744 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6745 len += length(value) + length(field[++i])
6756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6757 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6758 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6761 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6762 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6765 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6766 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6767 # trailing colons and then remove the whole line if VPATH becomes empty
6768 # (actually we leave an empty line to preserve line numbers).
6769 if test "x
$srcdir" = x.; then
6770 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6774 s/^\([^=]*=[ ]*\):*/\1/
6780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6781 fi # test -n "$CONFIG_FILES"
6783 # Set up the scripts for CONFIG_HEADERS section.
6784 # No need to generate them if there are no CONFIG_HEADERS.
6785 # This happens for instance with `./config.status Makefile'.
6786 if test -n "$CONFIG_HEADERS"; then
6787 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6791 # Transform confdefs.h into an awk script `defines.awk', embedded as
6792 # here-document in config.status, that substitutes the proper values into
6793 # config.h.in to produce config.h.
6795 # Create a delimiter string that does not exist in confdefs.h, to ease
6796 # handling of long lines.
6798 for ac_last_try in false false :; do
6799 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6800 if test -z "$ac_t"; then
6802 elif $ac_last_try; then
6803 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6805 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6809 # For the awk script, D is an array of macro values keyed by name,
6810 # likewise P contains macro parameters if any. Preserve backslash
6811 # newline sequences.
6813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6815 s/.\{148\}/&'"$ac_delim"'/g
6818 s/^[ ]*#[ ]*define[ ][ ]*/ /
6825 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6827 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6832 D["\
1"]=" \
3\\\\\\n
"\\/p
6834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6839 s/.\{148\}/&'"$ac_delim"'/g
6844 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6847 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6849 ' <confdefs.h | sed '
6850 s/'"$ac_delim"'/"\\\
6851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6854 for (key in D) D_is_set[key] = 1
6857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6859 split(line, arg, " ")
6860 if (arg[1] == "#") {
6864 defundef
= substr
(arg
[1], 2)
6867 split(mac1
, mac2
, "(") #)
6869 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6870 if (D_is_set
[macro
]) {
6871 # Preserve the white space surrounding the "#".
6872 print prefix
"define", macro P
[macro
] D
[macro
]
6875 # Replace #undef with comments. This is necessary, for example,
6876 # in the case of _POSIX_SOURCE, which is predefined and required
6877 # on some systems where configure will not decide to define it.
6878 if (defundef
== "undef") {
6879 print
"/*", prefix defundef
, macro
, "*/"
6887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6888 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6889 fi # test -n "$CONFIG_HEADERS"
6892 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
6897 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6899 case $ac_mode$ac_tag in
6901 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6902 :[FH
]-) ac_tag
=-:-;;
6903 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6920 -) ac_f
="$tmp/stdin";;
6921 *) # Look for the file first in the build tree, then in the source tree
6922 # (if the path is not absolute). The absolute path cannot be DOS-style,
6923 # because $ac_f cannot contain `:'.
6927 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6929 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6931 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6932 as_fn_append ac_file_inputs
" '$ac_f'"
6935 # Let's still pretend it is `configure' which instantiates (i.e., don't
6936 # use $as_me), people would be surprised to read:
6937 # /* config.h. Generated by config.status. */
6938 configure_input
='Generated from '`
6939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6941 if test x
"$ac_file" != x-
; then
6942 configure_input
="$ac_file. $configure_input"
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6944 $as_echo "$as_me: creating $ac_file" >&6;}
6946 # Neutralize special characters interpreted by sed in replacement strings.
6947 case $configure_input in #(
6948 *\
&* |
*\|
* |
*\\* )
6949 ac_sed_conf_input
=`$as_echo "$configure_input" |
6950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6951 *) ac_sed_conf_input
=$configure_input;;
6955 *:-:* |
*:-) cat >"$tmp/stdin" \
6956 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
6961 ac_dir
=`$as_dirname -- "$ac_file" ||
6962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6963 X"$ac_file" : 'X\(//\)[^/]' \| \
6964 X"$ac_file" : 'X\(//\)$' \| \
6965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6966 $as_echo X"$ac_file" |
6967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6984 as_dir
="$ac_dir"; as_fn_mkdir_p
6988 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6990 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6991 # A ".." for each directory in $ac_dir_suffix.
6992 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6993 case $ac_top_builddir_sub in
6994 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6995 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6998 ac_abs_top_builddir
=$ac_pwd
6999 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7000 # for backward compatibility:
7001 ac_top_builddir
=$ac_top_build_prefix
7004 .
) # We are building in place.
7006 ac_top_srcdir
=$ac_top_builddir_sub
7007 ac_abs_top_srcdir
=$ac_pwd ;;
7008 [\\/]* | ?
:[\\/]* ) # Absolute name.
7009 ac_srcdir
=$srcdir$ac_dir_suffix;
7010 ac_top_srcdir
=$srcdir
7011 ac_abs_top_srcdir
=$srcdir ;;
7013 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7014 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7015 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7017 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7027 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7028 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7033 # If the template does not know about datarootdir, expand it.
7034 # FIXME: This hack should be removed a few years after 2.60.
7035 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7046 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7047 *datarootdir
*) ac_datarootdir_seen
=yes;;
7048 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7050 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7053 ac_datarootdir_hack='
7054 s&@datadir@&$datadir&g
7055 s&@docdir@&$docdir&g
7056 s&@infodir@&$infodir&g
7057 s&@localedir@&$localedir&g
7058 s&@mandir@&$mandir&g
7059 s&\\\${datarootdir}&$datarootdir&g' ;;
7063 # Neutralize VPATH when `$srcdir' = `.'.
7064 # Shell code in configure.ac might set extrasub.
7065 # FIXME: do we really want to maintain this feature?
7066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7067 ac_sed_extra="$ac_vpsub
7070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7072 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7073 s|@configure_input@|
$ac_sed_conf_input|
;t t
7074 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7075 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7076 s
&@srcdir@
&$ac_srcdir&;t t
7077 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7078 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7079 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7080 s
&@builddir@
&$ac_builddir&;t t
7081 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7082 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7083 s
&@INSTALL@
&$ac_INSTALL&;t t
7084 $ac_datarootdir_hack
7086 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7087 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7089 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7090 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7093 which seems to be undefined. Please make sure it is defined." >&5
7094 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7095 which seems to be undefined. Please make sure it is defined." >&2;}
7099 -) cat "$tmp/out" && rm -f "$tmp/out";;
7100 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7102 || as_fn_error "could not create $ac_file" "$LINENO" 5
7108 if test x"$ac_file" != x-; then
7110 $as_echo "/* $configure_input */" \
7111 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7112 } >"$tmp/config.h" \
7113 || as_fn_error "could not create $ac_file" "$LINENO" 5
7114 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7116 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7119 mv "$tmp/config.h" "$ac_file" \
7120 || as_fn_error "could not create $ac_file" "$LINENO" 5
7123 $as_echo "/* $configure_input */" \
7124 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7125 || as_fn_error "could not create -" "$LINENO" 5
7133 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
7136 # Prefer the file from the source tree if names are identical.
7137 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7138 ac_source=$srcdir/$ac_source
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7142 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7144 if test ! -r "$ac_source"; then
7145 as_fn_error "$ac_source: file not found" "$LINENO" 5
7149 # Try a relative symlink, then a hard link, then a copy.
7151 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7152 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7154 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7155 ln "$ac_source" "$ac_file" 2>/dev/null ||
7156 cp -p "$ac_source" "$ac_file" ||
7157 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7160 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7161 $as_echo "$as_me: executing $ac_file commands" >&6;}
7166 case $ac_file$ac_mode in
7167 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7168 rm -f Makesim1.tmp Makesim2.tmp Makefile
7169 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7170 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
7171 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7172 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7173 <Makefile.sim
>Makefile
7174 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7176 "stamp-h":C
) echo > stamp-h
;;
7184 ac_clean_files
=$ac_clean_files_save
7186 test $ac_write_fail = 0 ||
7187 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7190 # configure is writing to config.log, and then calls config.status.
7191 # config.status does its own redirection, appending to config.log.
7192 # Unfortunately, on DOS this fails, as config.log is still kept open
7193 # by configure, so config.status won't be able to write to it; its
7194 # output is simply discarded. So we exec the FD to /dev/null,
7195 # effectively closing config.log, so it can be properly (re)opened and
7196 # appended to by config.status. When coming back to configure, we
7197 # need to make the FD available again.
7198 if test "$no_create" != yes; then
7200 ac_config_status_args
=
7201 test "$silent" = yes &&
7202 ac_config_status_args
="$ac_config_status_args --quiet"
7204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7207 # would make configure fail if this is the last instruction.
7208 $ac_cs_success || as_fn_exit $?
7210 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7212 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}