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
712 program_transform_name
725 enable_option_checking
727 enable_maintainer_mode
738 enable_sim_hostendian
740 enable_build_warnings
741 enable_sim_build_warnings
742 enable_sim_reserved_bits
750 ac_precious_vars
='build_alias
762 # Initialize some variables set by options.
764 ac_init_version
=false
765 ac_unrecognized_opts
=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name
=s
,x
,x
,
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir
='${exec_prefix}/bin'
791 sbindir
='${exec_prefix}/sbin'
792 libexecdir
='${exec_prefix}/libexec'
793 datarootdir
='${prefix}/share'
794 datadir
='${datarootdir}'
795 sysconfdir
='${prefix}/etc'
796 sharedstatedir
='${prefix}/com'
797 localstatedir
='${prefix}/var'
798 includedir
='${prefix}/include'
799 oldincludedir
='/usr/include'
800 docdir
='${datarootdir}/doc/${PACKAGE}'
801 infodir
='${datarootdir}/info'
806 libdir
='${exec_prefix}/lib'
807 localedir
='${datarootdir}/locale'
808 mandir
='${datarootdir}/man'
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\
$ac_option
822 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
832 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
834 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
837 -build |
--build |
--buil |
--bui |
--bu)
838 ac_prev
=build_alias
;;
839 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
840 build_alias
=$ac_optarg ;;
842 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
843 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
844 ac_prev
=cache_file
;;
845 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
846 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
847 cache_file
=$ac_optarg ;;
850 cache_file
=config.cache
;;
852 -datadir |
--datadir |
--datadi |
--datad)
854 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
855 datadir
=$ac_optarg ;;
857 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
858 |
--dataroo |
--dataro |
--datar)
859 ac_prev
=datarootdir
;;
860 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
861 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
862 datarootdir
=$ac_optarg ;;
864 -disable-* |
--disable-*)
865 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
868 as_fn_error
"invalid feature name: $ac_useropt"
869 ac_useropt_orig
=$ac_useropt
870 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
875 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep
=', ';;
878 eval enable_
$ac_useropt=no
;;
880 -docdir |
--docdir |
--docdi |
--doc |
--do)
882 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
885 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
887 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
890 -enable-* |
--enable-*)
891 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
894 as_fn_error
"invalid feature name: $ac_useropt"
895 ac_useropt_orig
=$ac_useropt
896 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
901 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep
=', ';;
904 eval enable_
$ac_useropt=\
$ac_optarg ;;
906 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
907 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
908 |
--exec |
--exe |
--ex)
909 ac_prev
=exec_prefix
;;
910 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
911 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
912 |
--exec=* |
--exe=* |
--ex=*)
913 exec_prefix
=$ac_optarg ;;
915 -gas |
--gas |
--ga |
--g)
916 # Obsolete; use --with-gas.
919 -help |
--help |
--hel |
--he |
-h)
921 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
922 ac_init_help
=recursive
;;
923 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
924 ac_init_help
=short
;;
926 -host |
--host |
--hos |
--ho)
927 ac_prev
=host_alias
;;
928 -host=* |
--host=* |
--hos=* |
--ho=*)
929 host_alias
=$ac_optarg ;;
931 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
933 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
935 htmldir
=$ac_optarg ;;
937 -includedir |
--includedir |
--includedi |
--included |
--include \
938 |
--includ |
--inclu |
--incl |
--inc)
939 ac_prev
=includedir
;;
940 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
941 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
942 includedir
=$ac_optarg ;;
944 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
946 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
947 infodir
=$ac_optarg ;;
949 -libdir |
--libdir |
--libdi |
--libd)
951 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
954 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
955 |
--libexe |
--libex |
--libe)
956 ac_prev
=libexecdir
;;
957 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
958 |
--libexe=* |
--libex=* |
--libe=*)
959 libexecdir
=$ac_optarg ;;
961 -localedir |
--localedir |
--localedi |
--localed |
--locale)
963 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
964 localedir
=$ac_optarg ;;
966 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
967 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
968 ac_prev
=localstatedir
;;
969 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
970 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
971 localstatedir
=$ac_optarg ;;
973 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
975 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
979 # Obsolete; use --without-fp.
982 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
983 |
--no-cr |
--no-c |
-n)
986 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
987 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
990 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
991 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
992 |
--oldin |
--oldi |
--old |
--ol |
--o)
993 ac_prev
=oldincludedir
;;
994 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
995 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
996 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
997 oldincludedir
=$ac_optarg ;;
999 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1001 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1002 prefix
=$ac_optarg ;;
1004 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1005 |
--program-pre |
--program-pr |
--program-p)
1006 ac_prev
=program_prefix
;;
1007 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1008 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1009 program_prefix
=$ac_optarg ;;
1011 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1012 |
--program-suf |
--program-su |
--program-s)
1013 ac_prev
=program_suffix
;;
1014 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1015 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1016 program_suffix
=$ac_optarg ;;
1018 -program-transform-name |
--program-transform-name \
1019 |
--program-transform-nam |
--program-transform-na \
1020 |
--program-transform-n |
--program-transform- \
1021 |
--program-transform |
--program-transfor \
1022 |
--program-transfo |
--program-transf \
1023 |
--program-trans |
--program-tran \
1024 |
--progr-tra |
--program-tr |
--program-t)
1025 ac_prev
=program_transform_name
;;
1026 -program-transform-name=* |
--program-transform-name=* \
1027 |
--program-transform-nam=* |
--program-transform-na=* \
1028 |
--program-transform-n=* |
--program-transform-=* \
1029 |
--program-transform=* |
--program-transfor=* \
1030 |
--program-transfo=* |
--program-transf=* \
1031 |
--program-trans=* |
--program-tran=* \
1032 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1033 program_transform_name
=$ac_optarg ;;
1035 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1037 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1038 pdfdir
=$ac_optarg ;;
1040 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1042 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1045 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1046 |
-silent |
--silent |
--silen |
--sile |
--sil)
1049 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1051 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1053 sbindir
=$ac_optarg ;;
1055 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1056 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1057 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1059 ac_prev
=sharedstatedir
;;
1060 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1061 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1062 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1064 sharedstatedir
=$ac_optarg ;;
1066 -site |
--site |
--sit)
1068 -site=* |
--site=* |
--sit=*)
1071 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1073 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1074 srcdir
=$ac_optarg ;;
1076 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1077 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1078 ac_prev
=sysconfdir
;;
1079 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1080 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1081 sysconfdir
=$ac_optarg ;;
1083 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1084 ac_prev
=target_alias
;;
1085 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1086 target_alias
=$ac_optarg ;;
1088 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1091 -version |
--version |
--versio |
--versi |
--vers |
-V)
1092 ac_init_version
=: ;;
1095 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1098 as_fn_error
"invalid package name: $ac_useropt"
1099 ac_useropt_orig
=$ac_useropt
1100 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1105 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106 ac_unrecognized_sep
=', ';;
1108 eval with_
$ac_useropt=\
$ac_optarg ;;
1110 -without-* |
--without-*)
1111 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1114 as_fn_error
"invalid package name: $ac_useropt"
1115 ac_useropt_orig
=$ac_useropt
1116 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122 ac_unrecognized_sep
=', ';;
1124 eval with_
$ac_useropt=no
;;
1127 # Obsolete; use --with-x.
1130 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1131 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1132 ac_prev
=x_includes
;;
1133 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1134 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1135 x_includes
=$ac_optarg ;;
1137 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1138 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1139 ac_prev
=x_libraries
;;
1140 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1141 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1142 x_libraries
=$ac_optarg ;;
1144 -*) as_fn_error
"unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information."
1149 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 case $ac_envvar in #(
1152 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1153 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1155 eval $ac_envvar=\
$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 if test -n "$ac_prev"; then
1170 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1171 as_fn_error
"missing argument to $ac_option"
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1177 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 # Check all directory arguments for consistency.
1183 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir
1188 eval ac_val
=\$
$ac_var
1189 # Remove trailing slashes.
1192 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\
$ac_val;;
1195 # Be sure to have absolute directory names.
1197 [\\/$
]* | ?
:[\\/]* ) continue;;
1198 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1200 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1208 target
=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x
; then
1212 if test "x$build_alias" = x
; then
1213 cross_compiling
=maybe
1214 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1222 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1224 test "$silent" = yes && exec 6>/dev
/null
1227 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di
=`ls -di .` &&
1229 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1230 as_fn_error
"working directory cannot be determined"
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 as_fn_error
"pwd does not report name of working directory"
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted
=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir
=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1267 ac_srcdir_defaulted
=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1271 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1273 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1285 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 for ac_var
in $ac_precious_vars; do
1288 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1290 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1301 \`configure' configures this package to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1364 --x-includes=DIR X include files are
in DIR
1365 --x-libraries=DIR X library files are
in DIR
1368 --build=BUILD configure
for building on BUILD
[guessed
]
1369 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1370 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1374 if test -n "$ac_init_help"; then
1379 --disable-option-checking ignore unrecognized
--enable/--with options
1380 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1381 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1382 --enable-maintainer-mode Enable developer functionality.
1383 --enable-sim-bswap Use Host specific BSWAP instruction.
1384 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1385 --enable-sim-debug=opts Enable debugging flags
1386 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1387 --enable-sim-trace=opts Enable tracing flags
1388 --enable-sim-profile=opts Enable profiling flags
1389 --enable-sim-inline=inlines Specify
which functions should be inlined.
1390 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
1391 --enable-sim-hostendian=end Specify
host byte endian orientation.
1392 --enable-werror treat compile warnings as errors
1393 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1394 --enable-sim-build-warnings
1395 enable SIM specific build-time compiler warnings
if
1397 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1398 --enable-sim-endian=endian Specify target byte endian orientation.
1399 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
1400 --enable-sim-float Specify that the target processor has floating point hardware.
1401 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
1402 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1405 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1406 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1407 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1408 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1409 --with-bugurl=URL Direct users to URL to report a bug
1410 --with-x use the X Window System
1412 Some influential environment variables
:
1413 CC C compiler
command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1416 nonstandard directory
<lib dir
>
1417 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1418 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1419 you have headers
in a nonstandard directory
<include dir
>
1421 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1423 Use these variables to override the choices made by
`configure' or to help
1424 it to find libraries and programs with nonstandard names/locations.
1426 Report bugs to the package provider.
1431 if test "$ac_init_help" = "recursive"; then
1432 # If there are subdirs, report their specific --help.
1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434 test -d "$ac_dir" ||
1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 ac_abs_top_builddir=$ac_pwd
1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452 # for backward compatibility:
1453 ac_top_builddir=$ac_top_build_prefix
1456 .) # We are building in place.
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
1461 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
1473 if test -f "$ac_srcdir/configure.gnu"; then
1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476 elif test -f "$ac_srcdir/configure"; then
1478 $SHELL "$ac_srcdir/configure" --help=recursive
1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1490 generated by GNU Autoconf 2.64
1492 Copyright (C) 2009 Free Software Foundation, Inc.
1493 This configure script is free software; the Free Software Foundation
1494 gives unlimited permission to copy, distribute and modify it.
1499 ## ------------------------ ##
1500 ## Autoconf initialization. ##
1501 ## ------------------------ ##
1503 # ac_fn_c_try_compile LINENO
1504 # --------------------------
1505 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_compile ()
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext
1510 if { { ac_try="$ac_compile"
1512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1513 *) ac_try_echo
=$ac_try;;
1515 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_compile") 2>conftest.err
1519 if test -s conftest.err
; then
1520 grep -v '^ *+' conftest.err
>conftest.er1
1521 cat conftest.er1
>&5
1522 mv -f conftest.er1 conftest.err
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest.
$ac_objext; then :
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.
$ac_ext >&5
1536 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1539 } # ac_fn_c_try_compile
1541 # ac_fn_c_try_cpp LINENO
1542 # ----------------------
1543 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1546 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1547 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } >/dev/null && {
1563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1579 # -------------------------------------------------------
1580 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1581 # the include files in INCLUDES and setting the cache variable VAR
1583 ac_fn_c_check_header_mongrel ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588 $as_echo_n "checking for $2... " >&6; }
1589 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1590 $as_echo_n "(cached) " >&6
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594 $as_echo "$ac_res" >&6; }
1596 # Is the header compilable?
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1598 $as_echo_n "checking $2 usability... " >&6; }
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1604 if ac_fn_c_try_compile "$LINENO"; then :
1605 ac_header_compiler=yes
1607 ac_header_compiler=no
1609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1611 $as_echo "$ac_header_compiler" >&6; }
1613 # Is the header present?
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1615 $as_echo_n "checking $2 presence... " >&6; }
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1620 if ac_fn_c_try_cpp "$LINENO"; then :
1621 ac_header_preproc=yes
1623 ac_header_preproc=no
1625 rm -f conftest.err conftest.$ac_ext
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1627 $as_echo "$ac_header_preproc" >&6; }
1629 # So? What about this header?
1630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1633 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1635 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1639 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1641 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1643 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1645 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653 $as_echo_n "(cached) " >&6
1655 eval "$3=\$ac_header_compiler"
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 } # ac_fn_c_check_header_mongrel
1665 # ac_fn_c_try_run LINENO
1666 # ----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668 # that executables *can* be run.
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_link"
1674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1675 *) ac_try_echo
=$ac_try;;
1677 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>&5
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1683 { { case "(($ac_try" in
1684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_try") 2>&5
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; }; }; then :
1695 $as_echo "$as_me: program exited with status $ac_status" >&5
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=$ac_status
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1717 $as_echo_n "(cached) " >&6
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1724 if ac_fn_c_try_compile "$LINENO"; then :
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736 } # ac_fn_c_check_header_compile
1738 # ac_fn_c_try_link LINENO
1739 # -----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1748 *) ac_try_echo
=$ac_try;;
1750 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1754 if test -s conftest.err
; then
1755 grep -v '^ *+' conftest.err
>conftest.er1
1756 cat conftest.er1
>&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest
$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 $as_test_x conftest
$ac_exeext
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.
$ac_ext >&5
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1782 } # ac_fn_c_try_link
1784 # ac_fn_c_check_func LINENO FUNC VAR
1785 # ----------------------------------
1786 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1787 ac_fn_c_check_func
()
1789 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1799 #define $2 innocuous_$2
1801 /* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $2 (); below.
1803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804 <limits.h> exists even on freestanding compilers. */
1807 # include <limits.h>
1809 # include <assert.h>
1814 /* Override any GCC internal prototype to avoid an error.
1815 Use char because int might match the return type of a GCC
1816 builtin and then its argument prototype would still apply. */
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined __stub_$2 || defined __stub___$2
1836 if ac_fn_c_try_link
"$LINENO"; then :
1841 rm -f core conftest.err conftest.
$ac_objext \
1842 conftest
$ac_exeext conftest.
$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1849 } # ac_fn_c_check_func
1850 cat >config.log
<<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1854 It was created by $as_me, which was
1855 generated by GNU Autoconf 2.64. Invocation command line was
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir
=.
1891 $as_echo "PATH: $as_dir"
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_must_keep_next
=false
1921 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1922 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1923 |
-silent |
--silent |
--silen |
--sile |
--sil)
1926 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1931 as_fn_append ac_configure_args1
" '$ac_arg'"
1932 if test $ac_must_keep_next = true
; then
1933 ac_must_keep_next
=false
# Got value, back to normal.
1936 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1937 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1938 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1939 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1944 -* ) ac_must_keep_next
=true
;;
1947 as_fn_append ac_configure_args
" '$ac_arg'"
1952 { ac_configure_args0
=; unset ac_configure_args0
;}
1953 { ac_configure_args1
=; unset ac_configure_args1
;}
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Save into config.log some information that might help in debugging.
1966 ## ---------------- ##
1967 ## Cache variables. ##
1968 ## ---------------- ##
1971 # The following way of writing the cache mishandles newlines in values,
1973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val=\$$ac_var
1978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1982 _ | IFS | as_nl) ;; #(
1983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1984 *) { eval $ac_var=; unset $ac_var;} ;;
1989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990 *${as_nl}ac_space=\ *)
1992 "s/'\''/'\''\\\\'\'''\''/g;
1993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004 ## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##
2009 for ac_var in $ac_subst_vars
2011 eval ac_val=\$$ac_var
2013 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 $as_echo "$ac_var='\''$ac_val'\''"
2019 if test -n "$ac_subst_files"; then
2021 ## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##
2026 for ac_var
in $ac_subst_files
2028 eval ac_val
=\$
$ac_var
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032 $as_echo "$ac_var='\''$ac_val'\''"
2037 if test -s confdefs.h; then
2047 test "$ac_signal" != 0 &&
2048 $as_echo "$as_me: caught signal $ac_signal"
2049 $as_echo "$as_me: exit $exit_status"
2051 rm -f core *.core core.conftest.* &&
2052 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055 for ac_signal
in 1 2 13 15; do
2056 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest
* confdefs.h
2063 $as_echo "/* confdefs.h */" > confdefs.h
2065 # Predefined preprocessor variables.
2067 cat >>confdefs.h
<<_ACEOF
2068 #define PACKAGE_NAME "$PACKAGE_NAME"
2071 cat >>confdefs.h
<<_ACEOF
2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075 cat >>confdefs.h
<<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2079 cat >>confdefs.h
<<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 cat >>confdefs.h
<<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087 cat >>confdefs.h
<<_ACEOF
2088 #define PACKAGE_URL "$PACKAGE_URL"
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2096 if test -n "$CONFIG_SITE"; then
2097 ac_site_file1
=$CONFIG_SITE
2098 elif test "x$prefix" != xNONE
; then
2099 ac_site_file1
=$prefix/share
/config.site
2100 ac_site_file2
=$prefix/etc
/config.site
2102 ac_site_file1
=$ac_default_prefix/share
/config.site
2103 ac_site_file2
=$ac_default_prefix/etc
/config.site
2105 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2107 test "x$ac_site_file" = xNONE
&& continue
2108 if test -r "$ac_site_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2116 if test -r "$cache_file"; then
2117 # Some versions of bash will fail to source /dev/null (special
2118 # files actually), so we avoid doing that.
2119 if test -f "$cache_file"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2121 $as_echo "$as_me: loading cache $cache_file" >&6;}
2123 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2124 *) .
"./$cache_file";;
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2129 $as_echo "$as_me: creating cache $cache_file" >&6;}
2133 # Check that the precious variables saved in the cache have kept the same
2135 ac_cache_corrupted
=false
2136 for ac_var
in $ac_precious_vars; do
2137 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2138 eval ac_new_set
=\
$ac_env_${ac_var}_set
2139 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2140 eval ac_new_val
=\
$ac_env_${ac_var}_value
2141 case $ac_old_set,$ac_new_set in
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2144 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2145 ac_cache_corrupted
=: ;;
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2149 ac_cache_corrupted
=: ;;
2152 if test "x$ac_old_val" != "x$ac_new_val"; then
2153 # differences in whitespace do not lead to failure.
2154 ac_old_val_w
=`echo x $ac_old_val`
2155 ac_new_val_w
=`echo x $ac_new_val`
2156 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2158 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159 ac_cache_corrupted
=:
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2162 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2163 eval $ac_var=\
$ac_old_val
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2166 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2168 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2171 # Pass precious variables to config.status.
2172 if test "$ac_new_set" = set; then
2174 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 *) ac_arg
=$ac_var=$ac_new_val ;;
2177 case " $ac_configure_args " in
2178 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2179 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2183 if $ac_cache_corrupted; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2187 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2188 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190 ## -------------------- ##
2191 ## Main body of script. ##
2192 ## -------------------- ##
2195 ac_cpp
='$CPP $CPPFLAGS'
2196 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2201 # This file contains common code used by all simulators.
2203 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2204 # directory. It is intended to be invoked before any target specific stuff.
2205 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2206 # It is intended to be invoked last.
2208 # The simulator's configure.in should look like:
2210 # dnl Process this file with autoconf to produce a configure script.
2211 # AC_PREREQ(2.64)dnl
2212 # AC_INIT(Makefile.in)
2213 # sinclude(../common/aclocal.m4)
2217 # ... target specific stuff ...
2221 # Include global overrides and fixes for Autoconf.
2248 # _AC_CHECK_DECL_BODY
2249 # -------------------
2250 # Shell function body for AC_CHECK_DECL.
2251 # _AC_CHECK_DECL_BODY
2253 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2255 # -------------------------------------------------------------
2256 # Helper to AC_CHECK_DECLS, which generates the check for a single
2257 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2258 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2271 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
2272 # Free Software Foundation, Inc.
2274 # This file is free software; the Free Software Foundation
2275 # gives unlimited permission to copy and/or distribute it,
2276 # with or without modifications, as long as this notice is preserved.
2280 # Based on depend.m4 from automake 1.9, modified for standalone use in
2281 # an environment where GNU make is required.
2283 # ZW_PROG_COMPILER_DEPENDENCIES
2284 # -----------------------------
2285 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
2286 # sets fooDEPMODE accordingly. Cache-variable compatible with
2287 # original; not side-effect compatible. As the users of this macro
2288 # may require accurate dependencies for correct builds, it does *not*
2289 # honor --disable-dependency-checking, and failure to detect a usable
2290 # method is an error. depcomp is assumed to be located in
2293 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
2299 # Choose a directory name for dependency files.
2304 # As AM_SET_DEPDIR, but also create the directory at config.status time.
2355 sim_inline
="-DDEFAULT_INLINE=0"
2392 # intl sister-directory configuration rules.
2395 # The idea behind this macro is that there's no need to repeat all the
2396 # autoconf probes done by the intl directory - it's already done them
2397 # for us. In fact, there's no need even to look at the cache for the
2398 # answers. All we need to do is nab a few pieces of information.
2399 # The intl directory is set up to make this easy, by generating a
2400 # small file which can be sourced as a shell script; then we produce
2401 # the necessary substitutions and definitions for this directory.
2405 # Autoconf M4 include file defining utility macros for complex Canadian
2417 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2419 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2422 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2423 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2427 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2428 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2432 # Backported from Autoconf 2.5x; can go away when and if
2433 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2438 # ACX_HAVE_GCC_FOR_TARGET
2439 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2442 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2443 # Searching for installed target binutils. We need to take extra care,
2444 # else we may find the wrong assembler, linker, etc., and lose.
2446 # First try --with-build-time-tools, if specified.
2448 # For build != host, we ask the installed GCC for the name of the tool it
2449 # uses, and accept it if it is an absolute path. This is because the
2450 # only good choice for a compiler is the same GCC version that is being
2451 # installed (or we couldn't make target libraries), and we assume that
2452 # on the host system we'll have not only the same GCC version, but also
2453 # the same binutils version.
2455 # For build == host, search the same directories that the installed
2456 # compiler will search. We used to do this for the assembler, linker,
2457 # and nm only; for simplicity of configuration, however, we extend this
2458 # criterion to tools (such as ar and ranlib) that are never invoked by
2459 # the compiler, to avoid mismatches.
2461 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2462 # if build == target. This makes the most sense only when bootstrapping,
2463 # but we also do so when build != host. In this case, we hope that the
2464 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2466 # If we do not find a suitable binary, then try the user's path.
2470 # AC_PROG_CPP_WERROR
2471 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2472 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2473 # For now, using this also overrides header checks to use only the
2474 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2475 # bit harder from here).
2476 # Eventually autoconf will default to checking headers with the compiler
2477 # instead, and we'll have to do this differently.
2479 # AC_PROG_CPP_WERROR
2482 # We require the gnatbind & gnatmake programs, as well as a compiler driver
2483 # that understands Ada. We use the user's CC setting, already found, and
2484 # possibly add $1 to the command-line parameters.
2486 # Sets the shell variable have_gnat to yes or no as appropriate, and
2487 # substitutes GNATBIND and GNATMAKE.
2514 ac_cpp
='$CPP $CPPFLAGS'
2515 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2520 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then :
2524 $as_echo_n "(cached) " >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC
="$CC" # Let the user override the test.
2529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir
=.
2534 for ac_exec_ext
in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2549 $as_echo "$CC" >&6; }
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2557 if test -z "$ac_cv_prog_CC"; then
2559 # Extract the first word of "gcc", so it can be a program name with args.
2560 set dummy gcc
; ac_word
=$2
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir
=.
2574 for ac_exec_ext
in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_ac_ct_CC
="gcc"
2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2587 if test -n "$ac_ct_CC"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2589 $as_echo "$ac_ct_CC" >&6; }
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2595 if test "x$ac_ct_CC" = x
; then
2598 case $cross_compiling:$ac_tool_warned in
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2602 ac_tool_warned
=yes ;;
2610 if test -z "$CC"; then
2611 if test -n "$ac_tool_prefix"; then
2612 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2613 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if test "${ac_cv_prog_CC+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC
="$CC" # Let the user override the test.
2622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2626 test -z "$as_dir" && as_dir
=.
2627 for ac_exec_ext
in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 if test -n "$CC"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 $as_echo "$CC" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2651 if test -z "$CC"; then
2652 # Extract the first word of "cc", so it can be a program name with args.
2653 set dummy cc
; ac_word
=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if test "${ac_cv_prog_CC+set}" = set; then :
2657 $as_echo_n "(cached) " >&6
2659 if test -n "$CC"; then
2660 ac_cv_prog_CC
="$CC" # Let the user override the test.
2663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir
=.
2668 for ac_exec_ext
in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2671 ac_prog_rejected
=yes
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 if test $ac_prog_rejected = yes; then
2683 # We found a bogon in the path, so make sure we never use it.
2684 set dummy
$ac_cv_prog_CC
2686 if test $# != 0; then
2687 # We chose a different compiler from the bogus one.
2688 # However, it has the same basename, so the bogon will be chosen
2689 # first if we set CC to just the basename; use the full file name.
2691 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2697 if test -n "$CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2699 $as_echo "$CC" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2707 if test -z "$CC"; then
2708 if test -n "$ac_tool_prefix"; then
2709 for ac_prog
in cl.exe
2711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2712 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC
="$CC" # Let the user override the test.
2721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir
=.
2726 for ac_exec_ext
in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 if test -n "$CC"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741 $as_echo "$CC" >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2748 test -n "$CC" && break
2751 if test -z "$CC"; then
2753 for ac_prog
in cl.exe
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy
$ac_prog; ac_word
=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir
=.
2770 for ac_exec_ext
in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_ac_ct_CC
="$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2783 if test -n "$ac_ct_CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2785 $as_echo "$ac_ct_CC" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2792 test -n "$ac_ct_CC" && break
2795 if test "x$ac_ct_CC" = x
; then
2798 case $cross_compiling:$ac_tool_warned in
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802 ac_tool_warned
=yes ;;
2811 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813 as_fn_error
"no acceptable C compiler found in \$PATH
2814 See \`config.log' for more details." "$LINENO" 5; }
2816 # Provide some information about the compiler.
2817 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2820 for ac_option
in --version -v -V -qversion; do
2821 { { ac_try
="$ac_compiler $ac_option >&5"
2823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827 $as_echo "$ac_try_echo"; } >&5
2828 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2830 if test -s conftest.err; then
2832 ... rest of stderr output deleted ...
2833 10q' conftest.err >conftest.er1
2834 cat conftest.er1 >&5
2835 rm -f conftest.er1 conftest.err
2837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838 test $ac_status = 0; }
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2852 ac_clean_files_save=$ac_clean_files
2853 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2854 # Try to create an executable without -o first, disregard a.out.
2855 # It will help us diagnose broken compilers, and finding out an intuition
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2858 $as_echo_n "checking for C compiler default output file name... " >&6; }
2859 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2861 # The possible output files:
2862 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2865 for ac_file in $ac_files
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2869 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2874 if { { ac_try="$ac_link_default"
2876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2877 *) ac_try_echo
=$ac_try;;
2879 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880 $as_echo "$ac_try_echo"; } >&5
2881 (eval "$ac_link_default") 2>&5
2883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2884 test $ac_status = 0; }; then :
2885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2886 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2887 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2888 # so that the user can short-circuit this test for compilers unknown to
2890 for ac_file
in $ac_files ''
2892 test -f "$ac_file" ||
continue
2894 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2897 # We found the default executable, but exeext='' is most
2901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2903 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2905 # We set ac_cv_exeext here because the later test for it is not
2906 # safe: cross compilers may not add the suffix if given an `-o'
2907 # argument, so we may need to know it at that point already.
2908 # Even if this section looks crufty: it has the advantage of
2915 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2921 $as_echo "$ac_file" >&6; }
2922 if test -z "$ac_file"; then :
2923 $as_echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.
$ac_ext >&5
2926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2928 { as_fn_set_status
77
2929 as_fn_error
"C compiler cannot create executables
2930 See \`config.log' for more details." "$LINENO" 5; }; }
2932 ac_exeext
=$ac_cv_exeext
2934 # Check that the compiler produces executables we can run. If not, either
2935 # the compiler is broken, or we cross compile.
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2937 $as_echo_n "checking whether the C compiler works... " >&6; }
2938 # If not cross compiling, check that we can run a simple program.
2939 if test "$cross_compiling" != yes; then
2940 if { ac_try
='./$ac_file'
2941 { { case "(($ac_try" in
2942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_try") 2>&5
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }; }; then
2953 if test "$cross_compiling" = maybe; then
2956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 as_fn_error "cannot run C compiled programs.
2959 If you meant to cross compile
, use \
`--host'.
2960 See \`config.log
' for more details." "$LINENO" 5; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2967 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2968 ac_clean_files=$ac_clean_files_save
2969 # Check that the compiler produces executables we can run. If not, either
2970 # the compiler is broken, or we cross compile.
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2972 $as_echo_n "checking whether we are cross compiling... " >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2974 $as_echo "$cross_compiling" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2977 $as_echo_n "checking for suffix of executables... " >&6; }
2978 if { { ac_try="$ac_link"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_link") 2>&5
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2990 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2991 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2993 for ac_file
in conftest.exe conftest conftest.
*; do
2994 test -f "$ac_file" ||
continue
2996 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2997 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3006 See \`config.log' for more details." "$LINENO" 5; }
3008 rm -f conftest
$ac_cv_exeext
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3010 $as_echo "$ac_cv_exeext" >&6; }
3012 rm -f conftest.
$ac_ext
3013 EXEEXT
=$ac_cv_exeext
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3016 $as_echo_n "checking for suffix of object files... " >&6; }
3017 if test "${ac_cv_objext+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3031 rm -f conftest.o conftest.obj
3032 if { { ac_try
="$ac_compile"
3034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_compile") 2>&5
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; then :
3043 for ac_file in conftest.o conftest.obj conftest.*; do
3044 test -f "$ac_file" || continue;
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3047 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3052 $as_echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 as_fn_error "cannot compute suffix of object files
: cannot compile
3058 See \
`config.log' for more details." "$LINENO" 5; }
3060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3063 $as_echo "$ac_cv_objext" >&6; }
3064 OBJEXT=$ac_cv_objext
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3067 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3068 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3069 $as_echo_n "(cached) " >&6
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3085 if ac_fn_c_try_compile "$LINENO"; then :
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3095 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3096 if test $ac_compiler_gnu = yes; then
3101 ac_test_CFLAGS=${CFLAGS+set}
3102 ac_save_CFLAGS=$CFLAGS
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3104 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3105 if test "${ac_cv_prog_cc_g+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
3108 ac_save_c_werror_flag=$ac_c_werror_flag
3109 ac_c_werror_flag=yes
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3123 if ac_fn_c_try_compile "$LINENO"; then :
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3138 if ac_fn_c_try_compile "$LINENO"; then :
3141 ac_c_werror_flag=$ac_save_c_werror_flag
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3154 if ac_fn_c_try_compile "$LINENO"; then :
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_c_werror_flag=$ac_save_c_werror_flag
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3165 $as_echo "$ac_cv_prog_cc_g" >&6; }
3166 if test "$ac_test_CFLAGS" = set; then
3167 CFLAGS=$ac_save_CFLAGS
3168 elif test $ac_cv_prog_cc_g = yes; then
3169 if test "$GCC" = yes; then
3175 if test "$GCC" = yes; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3182 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3183 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3184 $as_echo_n "(cached) " >&6
3186 ac_cv_prog_cc_c89=no
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3192 #include <sys/types.h>
3193 #include <sys/stat.h>
3194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3195 struct buf { int x; };
3196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3197 static char *e (p, i)
3203 static char *f (char * (*g) (char **, int), char **p, ...)
3208 s = g (p, va_arg (v,int));
3213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3214 function prototypes and stuff, but not '\xHH' hex character constants.
3215 These don't provoke an error unfortunately, instead are silently treated
3216 as 'x'. The following induces an error, until -std is added to get
3217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3218 array size at least. It's necessary to write '\x00'==0 to get something
3219 that's true only with -std. */
3220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3223 inside strings and character constants. */
3225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3227 int test (int i, double x);
3228 struct s1 {int (*f) (int a);};
3229 struct s2 {int (*f) (double a);};
3230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3244 CC="$ac_save_CC $ac_arg"
3245 if ac_fn_c_try_compile "$LINENO"; then :
3246 ac_cv_prog_cc_c89=$ac_arg
3248 rm -f core conftest.err conftest.$ac_objext
3249 test "x$ac_cv_prog_cc_c89" != "xno" && break
3251 rm -f conftest.$ac_ext
3256 case "x$ac_cv_prog_cc_c89" in
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3259 $as_echo "none needed" >&6; } ;;
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3262 $as_echo "unsupported" >&6; } ;;
3264 CC="$CC $ac_cv_prog_cc_c89"
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3266 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3268 if test "x$ac_cv_prog_cc_c89" != xno; then :
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3280 for ac_t in install-sh install.sh shtool; do
3281 if test -f "$ac_dir/$ac_t"; then
3283 ac_install_sh="$ac_aux_dir/$ac_t -c"
3288 if test -z "$ac_aux_dir"; then
3289 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3292 # These three variables are undocumented and unsupported,
3293 # and are intended to be withdrawn in a future Autoconf release.
3294 # They can cause serious problems if a builder's source tree is in a directory
3295 # whose full name contains unusual characters.
3296 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3297 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3298 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3301 # Make sure we can run config.sub.
3302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3303 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3306 $as_echo_n "checking build system type... " >&6; }
3307 if test "${ac_cv_build+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3310 ac_build_alias=$build_alias
3311 test "x$ac_build_alias" = x &&
3312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3313 test "x$ac_build_alias" = x &&
3314 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3316 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3320 $as_echo "$ac_cv_build" >&6; }
3321 case $ac_cv_build in
3323 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3326 ac_save_IFS=$IFS; IFS='-'
3332 # Remember, the first character of IFS is used to create $*,
3333 # except with old shells:
3336 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3340 $as_echo_n "checking host system type... " >&6; }
3341 if test "${ac_cv_host+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3344 if test "x$host_alias" = x; then
3345 ac_cv_host=$ac_cv_build
3347 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3348 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3353 $as_echo "$ac_cv_host" >&6; }
3356 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3359 ac_save_IFS=$IFS; IFS='-'
3365 # Remember, the first character of IFS is used to create $*,
3366 # except with old shells:
3369 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3373 $as_echo_n "checking target system type... " >&6; }
3374 if test "${ac_cv_target+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3377 if test "x$target_alias" = x; then
3378 ac_cv_target=$ac_cv_host
3380 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3381 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3386 $as_echo "$ac_cv_target" >&6; }
3387 case $ac_cv_target in
3389 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3391 target=$ac_cv_target
3392 ac_save_IFS=$IFS; IFS='-'
3398 # Remember, the first character of IFS is used to create $*,
3399 # except with old shells:
3402 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3405 # The aliases save the names the user supplied, while $host etc.
3406 # will get canonicalized.
3407 test -n "$target_alias" &&
3408 test "$program_prefix$program_suffix$program_transform_name" = \
3410 program_prefix=${target_alias}-
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3418 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3419 # On Suns, sometimes $CPP names a directory.
3420 if test -n "$CPP" && test -d "$CPP"; then
3423 if test -z "$CPP"; then
3424 if test "${ac_cv_prog_CPP+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 # Double quotes because CPP needs to be expanded
3428 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3431 for ac_c_preproc_warn_flag in '' yes
3433 # Use a header file that comes with gcc, so configuring glibc
3434 # with a fresh cross-compiler works.
3435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436 # <limits.h> exists even on freestanding compilers.
3437 # On the NeXT, cc -E runs the code through the compiler's parser,
3438 # not just through cpp. "Syntax error" is here to catch this case.
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3442 # include <limits.h>
3444 # include <assert.h>
3448 if ac_fn_c_try_cpp "$LINENO"; then :
3451 # Broken: fails on valid input.
3454 rm -f conftest.err conftest.$ac_ext
3456 # OK, works on sane cases. Now check whether nonexistent headers
3457 # can be detected and how.
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460 #include <ac_nonexistent.h>
3462 if ac_fn_c_try_cpp "$LINENO"; then :
3463 # Broken: success on invalid input.
3466 # Passes both tests.
3470 rm -f conftest.err conftest.$ac_ext
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.
$ac_ext
3475 if $ac_preproc_ok; then :
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3488 $as_echo "$CPP" >&6; }
3490 for ac_c_preproc_warn_flag
in '' yes
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3501 # include <limits.h>
3503 # include <assert.h>
3507 if ac_fn_c_try_cpp
"$LINENO"; then :
3510 # Broken: fails on valid input.
3513 rm -f conftest.err conftest.
$ac_ext
3515 # OK, works on sane cases. Now check whether nonexistent headers
3516 # can be detected and how.
3517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3521 if ac_fn_c_try_cpp
"$LINENO"; then :
3522 # Broken: success on invalid input.
3525 # Passes both tests.
3529 rm -f conftest.err conftest.
$ac_ext
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.err conftest.
$ac_ext
3534 if $ac_preproc_ok; then :
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." "$LINENO" 5; }
3544 ac_cpp
='$CPP $CPPFLAGS'
3545 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3551 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3552 if test "${ac_cv_path_GREP+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -z "$GREP"; then
3556 ac_path_GREP_found
=false
3557 # Loop through the user's path and test for each of PROGNAME-LIST
3558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3562 test -z "$as_dir" && as_dir
=.
3563 for ac_prog
in grep ggrep
; do
3564 for ac_exec_ext
in '' $ac_executable_extensions; do
3565 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3566 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3567 # Check for GNU ac_path_GREP and select it if it is found.
3568 # Check for GNU $ac_path_GREP
3569 case `"$ac_path_GREP" --version 2>&1` in
3571 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3574 $as_echo_n 0123456789 >"conftest.in"
3577 cat "conftest.in" "conftest.in" >"conftest.tmp"
3578 mv "conftest.tmp" "conftest.in"
3579 cp "conftest.in" "conftest.nl"
3580 $as_echo 'GREP' >> "conftest.nl"
3581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3582 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3583 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3585 # Best one so far, save it but keep looking for a better one
3586 ac_cv_path_GREP
="$ac_path_GREP"
3587 ac_path_GREP_max
=$ac_count
3589 # 10*(2^10) chars as input seems more than enough
3590 test $ac_count -gt 10 && break
3592 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3595 $ac_path_GREP_found && break 3
3600 if test -z "$ac_cv_path_GREP"; then
3601 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3604 ac_cv_path_GREP
=$GREP
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3609 $as_echo "$ac_cv_path_GREP" >&6; }
3610 GREP
="$ac_cv_path_GREP"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3614 $as_echo_n "checking for egrep... " >&6; }
3615 if test "${ac_cv_path_EGREP+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3619 then ac_cv_path_EGREP
="$GREP -E"
3621 if test -z "$EGREP"; then
3622 ac_path_EGREP_found
=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3628 test -z "$as_dir" && as_dir
=.
3629 for ac_prog
in egrep; do
3630 for ac_exec_ext
in '' $ac_executable_extensions; do
3631 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3632 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3633 # Check for GNU ac_path_EGREP and select it if it is found.
3634 # Check for GNU $ac_path_EGREP
3635 case `"$ac_path_EGREP" --version 2>&1` in
3637 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3640 $as_echo_n 0123456789 >"conftest.in"
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 $as_echo 'EGREP' >> "conftest.nl"
3647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3648 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3649 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_EGREP
="$ac_path_EGREP"
3653 ac_path_EGREP_max
=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3658 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3661 $ac_path_EGREP_found && break 3
3666 if test -z "$ac_cv_path_EGREP"; then
3667 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3670 ac_cv_path_EGREP
=$EGREP
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3676 $as_echo "$ac_cv_path_EGREP" >&6; }
3677 EGREP
="$ac_cv_path_EGREP"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3681 $as_echo_n "checking for ANSI C header files... " >&6; }
3682 if test "${ac_cv_header_stdc+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3700 if ac_fn_c_try_compile
"$LINENO"; then :
3701 ac_cv_header_stdc
=yes
3703 ac_cv_header_stdc
=no
3705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3707 if test $ac_cv_header_stdc = yes; then
3708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 $EGREP "memchr" >/dev
/null
2>&1; then :
3718 ac_cv_header_stdc
=no
3724 if test $ac_cv_header_stdc = yes; then
3725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 $EGREP "free" >/dev
/null
2>&1; then :
3735 ac_cv_header_stdc
=no
3741 if test $ac_cv_header_stdc = yes; then
3742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3743 if test "$cross_compiling" = yes; then :
3746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3750 #if ((' ' & 0x0FF) == 0x020)
3751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3754 # define ISLOWER(c) \
3755 (('a' <= (c) && (c) <= 'i') \
3756 || ('j' <= (c) && (c) <= 'r') \
3757 || ('s' <= (c) && (c) <= 'z'))
3758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3766 for (i = 0; i < 256; i++)
3767 if (XOR (islower (i), ISLOWER (i))
3768 || toupper (i) != TOUPPER (i))
3773 if ac_fn_c_try_run
"$LINENO"; then :
3776 ac_cv_header_stdc
=no
3778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3785 $as_echo "$ac_cv_header_stdc" >&6; }
3786 if test $ac_cv_header_stdc = yes; then
3788 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3792 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3793 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3794 inttypes.h stdint.h unistd.h
3796 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3797 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3799 eval as_val
=\$
$as_ac_Header
3800 if test "x$as_val" = x
""yes; then :
3801 cat >>confdefs.h
<<_ACEOF
3802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3811 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3812 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3819 if test "$MINIX" = yes; then
3821 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3824 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3827 $as_echo "#define _MINIX 1" >>confdefs.h
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
3837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3840 # define __EXTENSIONS__ 1
3841 $ac_includes_default
3850 if ac_fn_c_try_compile
"$LINENO"; then :
3851 ac_cv_safe_to_define___extensions__
=yes
3853 ac_cv_safe_to_define___extensions__
=no
3855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3858 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3859 test $ac_cv_safe_to_define___extensions__ = yes &&
3860 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3862 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3864 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3866 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3868 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3871 test "$program_prefix" != NONE
&&
3872 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3873 # Use a double $ so make ignores it.
3874 test "$program_suffix" != NONE
&&
3875 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3876 # Double any \ or $.
3877 # By default was `s,x,x', remove it if useless.
3878 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3879 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3881 # Find a good install program. We prefer a C program (faster),
3882 # so one script is as good as another. But avoid the broken or
3883 # incompatible versions:
3884 # SysV /etc/install, /usr/sbin/install
3885 # SunOS /usr/etc/install
3886 # IRIX /sbin/install
3888 # AmigaOS /C/install, which installs bootblocks on floppy discs
3889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3892 # OS/2's system install, which has a completely different semantic
3893 # ./install, which can be erroneously created by make from ./install.sh.
3894 # Reject install programs that cannot install multiple files.
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3896 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3897 if test -z "$INSTALL"; then
3898 if test "${ac_cv_path_install+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir
=.
3906 # Account for people who put trailing slashes in PATH elements.
3907 case $as_dir/ in #((
3908 .
/ | .
// |
/[cC
]/* | \
3909 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3910 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3913 # OSF1 and SCO ODT 3.0 have their own names for install.
3914 # Don't use installbsd from OSF since it installs stuff as root
3916 for ac_prog
in ginstall scoinst
install; do
3917 for ac_exec_ext
in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3919 if test $ac_prog = install &&
3920 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3921 # AIX install. It has an incompatible calling convention.
3923 elif test $ac_prog = install &&
3924 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3925 # program-specific install script used by HP pwplus--don't use.
3928 rm -rf conftest.one conftest.two conftest.dir
3929 echo one
> conftest.one
3930 echo two
> conftest.two
3932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3933 test -s conftest.one
&& test -s conftest.two
&&
3934 test -s conftest.dir
/conftest.one
&&
3935 test -s conftest.dir
/conftest.two
3937 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3950 rm -rf conftest.one conftest.two conftest.dir
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL
=$ac_cv_path_install
3956 # As a last resort, use the slow shell script. Don't cache a
3957 # value for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the value is a relative name.
3960 INSTALL
=$ac_install_sh
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3964 $as_echo "$INSTALL" >&6; }
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3972 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3974 rm -rf .tst
2>/dev
/null
3975 mkdir .tst
2>/dev
/null
3976 if test -d .tst
; then
3981 rmdir .tst
2>/dev
/null
3983 DEPDIR
="${am__leading_dot}deps"
3987 # autoconf.info says this should be called right after AC_INIT.
3988 ac_config_headers
="$ac_config_headers config.h:config.in"
3995 # Put a plausible default for CC_FOR_BUILD in Makefile.
3996 if test "x$cross_compiling" = "xno"; then
3997 CC_FOR_BUILD
='$(CC)'
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4009 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4015 if test -n "$RANLIB"; then
4016 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir
=.
4023 for ac_exec_ext
in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 RANLIB
=$ac_cv_prog_RANLIB
4036 if test -n "$RANLIB"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4038 $as_echo "$RANLIB" >&6; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4046 if test -z "$ac_cv_prog_RANLIB"; then
4047 ac_ct_RANLIB
=$RANLIB
4048 # Extract the first word of "ranlib", so it can be a program name with args.
4049 set dummy ranlib
; ac_word
=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4055 if test -n "$ac_ct_RANLIB"; then
4056 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4062 test -z "$as_dir" && as_dir
=.
4063 for ac_exec_ext
in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4076 if test -n "$ac_ct_RANLIB"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4078 $as_echo "$ac_ct_RANLIB" >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4084 if test "x$ac_ct_RANLIB" = x
; then
4087 case $cross_compiling:$ac_tool_warned in
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4091 ac_tool_warned
=yes ;;
4093 RANLIB
=$ac_ct_RANLIB
4096 RANLIB
="$ac_cv_prog_RANLIB"
4100 # Some of the common include files depend on bfd.h, and bfd.h checks
4101 # that config.h is included first by testing that the PACKAGE macro
4105 cat >>confdefs.h
<<_ACEOF
4106 #define PACKAGE "$PACKAGE"
4111 # Dependency checking.
4112 ac_config_commands
="$ac_config_commands depdir"
4115 depcc
="$CC" am_compiler_list
=
4117 am_depcomp
=$ac_aux_dir/depcomp
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4119 $as_echo_n "checking dependency style of $depcc... " >&6; }
4120 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4123 if test -f "$am_depcomp"; then
4124 # We make a subdir and do the tests there. Otherwise we can end up
4125 # making bogus files that we don't know about and never remove. For
4126 # instance it was reported that on HP-UX the gcc test will end up
4127 # making a dummy file named `D' -- because `-MD' means `put the output
4130 # Copy depcomp to subdir because otherwise we won't find it if we're
4131 # using a relative directory.
4132 cp "$am_depcomp" conftest.dir
4134 # We will build objects and dependencies in a subdirectory because
4135 # it helps to detect inapplicable dependency modes. For instance
4136 # both Tru64's cc and ICC support -MD to output dependencies as a
4137 # side effect of compilation, but ICC will put the dependencies in
4138 # the current directory while Tru64 will put them in the object
4142 am_cv_CC_dependencies_compiler_type
=none
4143 if test "$am_compiler_list" = ""; then
4144 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4146 for depmode
in $am_compiler_list; do
4147 if test $depmode = none
; then break; fi
4149 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4150 # Setup a source with many dependencies, because some compilers
4151 # like to wrap large dependency lists on column 80 (with \), and
4152 # we should not choose a depcomp mode which is confused by this.
4154 # We need to recreate these files for each test, as the compiler may
4155 # overwrite some of them when testing with obscure command lines.
4156 # This happens at least with the AIX C compiler.
4158 for i
in 1 2 3 4 5 6; do
4159 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4160 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4161 # Solaris 8's {/usr,}/bin/sh.
4162 touch sub
/conftst
$i.h
4164 echo "include sub/conftest.Po" > confmf
4166 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4167 # mode. It turns out that the SunPro C++ compiler does not properly
4168 # handle `-M -o', and we need to detect this.
4169 depcmd
="depmode=$depmode \
4170 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4171 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4172 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4173 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4174 if env
$depcmd > conftest.err
2>&1 &&
4175 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4176 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4177 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4178 # icc doesn't choke on unknown options, it will just issue warnings
4179 # or remarks (even with -Werror). So we grep stderr for any message
4180 # that says an option was ignored or not supported.
4181 # When given -MP, icc 7.0 and 7.1 complain thusly:
4182 # icc: Command line warning: ignoring option '-M'; no argument required
4183 # The diagnosis changed in icc 8.0:
4184 # icc: Command line remark: option '-MP' not supported
4185 if (grep 'ignoring option' conftest.err ||
4186 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4187 am_cv_CC_dependencies_compiler_type
=$depmode
4188 $as_echo "$as_me:$LINENO: success" >&5
4192 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4193 sed -e 's/^/| /' < conftest.err
>&5
4199 am_cv_CC_dependencies_compiler_type
=none
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4204 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4205 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4206 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4207 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4212 # Check for the 'make' the user wants to use.
4215 # Extract the first word of "$ac_prog", so it can be a program name with args.
4216 set dummy
$ac_prog; ac_word
=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if test "${ac_cv_prog_MAKE+set}" = set; then :
4220 $as_echo_n "(cached) " >&6
4222 if test -n "$MAKE"; then
4223 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir
=.
4230 for ac_exec_ext
in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_prog_MAKE
="$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 MAKE
=$ac_cv_prog_MAKE
4243 if test -n "$MAKE"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4245 $as_echo "$MAKE" >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4252 test -n "$MAKE" && break
4256 case "`$MAKE --version 2>&1 | sed 1q`" in
4261 if test "$MAKE_IS_GNU" = yes; then
4271 # If we haven't got the data from the intl directory,
4272 # assume NLS is disabled.
4281 if test -f ..
/..
/intl
/config.intl
; then
4282 . ..
/..
/intl
/config.intl
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4285 $as_echo_n "checking whether NLS is requested... " >&6; }
4286 if test x
"$USE_NLS" != xyes
; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291 $as_echo "yes" >&6; }
4293 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4297 $as_echo_n "checking for catalogs to be installed... " >&6; }
4298 # Look for .po and .gmo files in the source directory.
4301 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4302 # If there aren't any .gmo files the shell will give us the
4303 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4305 case "$cat" in *\
**)
4308 # The quadruple backslash is collapsed to a double backslash
4309 # by the backticks, then collapsed again by the double quotes,
4310 # leaving us with one backslash in the sed expression (right
4311 # before the dot that mustn't act as a wildcard).
4312 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4313 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4314 # The user is allowed to set LINGUAS to a list of languages to
4315 # install catalogs for. If it's empty that means "all of them."
4316 if test "x$LINGUAS" = x
; then
4317 CATALOGS
="$CATALOGS $cat"
4318 XLINGUAS
="$XLINGUAS $lang"
4320 case "$LINGUAS" in *$lang*)
4321 CATALOGS
="$CATALOGS $cat"
4322 XLINGUAS
="$XLINGUAS $lang"
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4329 $as_echo "$LINGUAS" >&6; }
4342 # Check for common headers.
4343 # FIXME: Seems to me this can cause problems for i386-windows hosts.
4344 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
4345 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4347 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4348 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4349 eval as_val
=\$
$as_ac_Header
4350 if test "x$as_val" = x
""yes; then :
4351 cat >>confdefs.h
<<_ACEOF
4352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4359 for ac_header
in sys
/time.h sys
/resource.h
4361 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4363 eval as_val
=\$
$as_ac_Header
4364 if test "x$as_val" = x
""yes; then :
4365 cat >>confdefs.h
<<_ACEOF
4366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4373 for ac_header
in fcntl.h fpu_control.h
4375 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4376 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4377 eval as_val
=\$
$as_ac_Header
4378 if test "x$as_val" = x
""yes; then :
4379 cat >>confdefs.h
<<_ACEOF
4380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387 for ac_header
in dlfcn.h errno.h sys
/stat.h
4389 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4390 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4391 eval as_val
=\$
$as_ac_Header
4392 if test "x$as_val" = x
""yes; then :
4393 cat >>confdefs.h
<<_ACEOF
4394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4401 for ac_func
in getrusage
time sigaction __setfpucw
4403 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4404 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4405 eval as_val
=\$
$as_ac_var
4406 if test "x$as_val" = x
""yes; then :
4407 cat >>confdefs.h
<<_ACEOF
4408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4415 # Check for socket libraries
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4417 $as_echo_n "checking for bind in -lsocket... " >&6; }
4418 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 ac_check_lib_save_LIBS
=$LIBS
4422 LIBS
="-lsocket $LIBS"
4423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4426 /* Override any GCC internal prototype to avoid an error.
4427 Use char because int might match the return type of a GCC
4428 builtin and then its argument prototype would still apply. */
4441 if ac_fn_c_try_link
"$LINENO"; then :
4442 ac_cv_lib_socket_bind
=yes
4444 ac_cv_lib_socket_bind
=no
4446 rm -f core conftest.err conftest.
$ac_objext \
4447 conftest
$ac_exeext conftest.
$ac_ext
4448 LIBS
=$ac_check_lib_save_LIBS
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4451 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4452 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4453 cat >>confdefs.h
<<_ACEOF
4454 #define HAVE_LIBSOCKET 1
4457 LIBS
="-lsocket $LIBS"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4462 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4463 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 ac_check_lib_save_LIBS
=$LIBS
4468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4471 /* Override any GCC internal prototype to avoid an error.
4472 Use char because int might match the return type of a GCC
4473 builtin and then its argument prototype would still apply. */
4477 char gethostbyname ();
4481 return gethostbyname ();
4486 if ac_fn_c_try_link
"$LINENO"; then :
4487 ac_cv_lib_nsl_gethostbyname
=yes
4489 ac_cv_lib_nsl_gethostbyname
=no
4491 rm -f core conftest.err conftest.
$ac_objext \
4492 conftest
$ac_exeext conftest.
$ac_ext
4493 LIBS
=$ac_check_lib_save_LIBS
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4496 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4497 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4498 cat >>confdefs.h
<<_ACEOF
4499 #define HAVE_LIBNSL 1
4507 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4508 # using the same condition.
4510 # See if the user specified whether he wants zlib support or not.
4512 # Check whether --with-zlib was given.
4513 if test "${with_zlib+set}" = set; then :
4520 if test "$with_zlib" != "no"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4522 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4523 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4526 ac_func_search_save_LIBS
=$LIBS
4527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4530 /* Override any GCC internal prototype to avoid an error.
4531 Use char because int might match the return type of a GCC
4532 builtin and then its argument prototype would still apply. */
4536 char zlibVersion ();
4540 return zlibVersion ();
4545 for ac_lib
in '' z
; do
4546 if test -z "$ac_lib"; then
4547 ac_res
="none required"
4550 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4552 if ac_fn_c_try_link
"$LINENO"; then :
4553 ac_cv_search_zlibVersion
=$ac_res
4555 rm -f core conftest.err conftest.
$ac_objext \
4557 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4561 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4564 ac_cv_search_zlibVersion
=no
4567 LIBS
=$ac_func_search_save_LIBS
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4570 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4571 ac_res
=$ac_cv_search_zlibVersion
4572 if test "$ac_res" != no
; then :
4573 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4574 for ac_header
in zlib.h
4576 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4577 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4578 cat >>confdefs.h
<<_ACEOF
4579 #define HAVE_ZLIB_H 1
4588 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4589 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4594 .
${srcdir}/..
/..
/bfd
/configure.
host
4598 USE_MAINTAINER_MODE
=no
4599 # Check whether --enable-maintainer-mode was given.
4600 if test "${enable_maintainer_mode+set}" = set; then :
4601 enableval
=$enable_maintainer_mode; case "${enableval}" in
4602 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4604 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4606 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4607 echo "Setting maintainer mode" 6>&1
4615 # Check whether --enable-sim-bswap was given.
4616 if test "${enable_sim_bswap+set}" = set; then :
4617 enableval
=$enable_sim_bswap; case "${enableval}" in
4618 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4619 no
) sim_bswap
="-DWITH_BSWAP=0";;
4620 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4622 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4623 echo "Setting bswap flags = $sim_bswap" 6>&1
4631 # Check whether --enable-sim-cflags was given.
4632 if test "${enable_sim_cflags+set}" = set; then :
4633 enableval
=$enable_sim_cflags; case "${enableval}" in
4634 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4635 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4637 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4639 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4640 echo "Setting sim cflags = $sim_cflags" 6>&1
4648 # Check whether --enable-sim-debug was given.
4649 if test "${enable_sim_debug+set}" = set; then :
4650 enableval
=$enable_sim_debug; case "${enableval}" in
4651 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4652 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4653 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4655 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4656 echo "Setting sim debug = $sim_debug" 6>&1
4664 # Check whether --enable-sim-stdio was given.
4665 if test "${enable_sim_stdio+set}" = set; then :
4666 enableval
=$enable_sim_stdio; case "${enableval}" in
4667 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4668 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4669 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4671 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4672 echo "Setting stdio flags = $sim_stdio" 6>&1
4680 # Check whether --enable-sim-trace was given.
4681 if test "${enable_sim_trace+set}" = set; then :
4682 enableval
=$enable_sim_trace; case "${enableval}" in
4683 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4684 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4686 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4689 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4690 if test x
"$sim_trace" = x
; then
4691 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4693 sim_trace
="${sim_trace}|TRACE_$x"
4696 sim_trace
="$sim_trace)'" ;;
4698 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4699 echo "Setting sim trace = $sim_trace" 6>&1
4707 # Check whether --enable-sim-profile was given.
4708 if test "${enable_sim_profile+set}" = set; then :
4709 enableval
=$enable_sim_profile; case "${enableval}" in
4710 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4711 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4713 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4716 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4717 if test x
"$sim_profile" = x
; then
4718 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4720 sim_profile
="${sim_profile}|PROFILE_$x"
4723 sim_profile
="$sim_profile)'" ;;
4725 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4726 echo "Setting sim profile = $sim_profile" 6>&1
4729 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4735 # Check whether --with-pkgversion was given.
4736 if test "${with_pkgversion+set}" = set; then :
4737 withval
=$with_pkgversion; case "$withval" in
4738 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4740 *) PKGVERSION
="($withval) " ;;
4751 # Check whether --with-bugurl was given.
4752 if test "${with_bugurl+set}" = set; then :
4753 withval
=$with_bugurl; case "$withval" in
4754 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4757 *) BUGURL
="$withval"
4761 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4771 REPORT_BUGS_TO
="<$BUGURL>"
4772 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4779 cat >>confdefs.h
<<_ACEOF
4780 #define PKGVERSION "$PKGVERSION"
4784 cat >>confdefs.h
<<_ACEOF
4785 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4790 $as_echo_n "checking return type of signal handlers... " >&6; }
4791 if test "${ac_cv_type_signal+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <sys/types.h>
4802 return *(signal (0, 0)) (0) == 1;
4807 if ac_fn_c_try_compile
"$LINENO"; then :
4808 ac_cv_type_signal
=int
4810 ac_cv_type_signal
=void
4812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4815 $as_echo "$ac_cv_type_signal" >&6; }
4817 cat >>confdefs.h
<<_ACEOF
4818 #define RETSIGTYPE $ac_cv_type_signal
4828 sim_link_links
=tconfig.h
4829 if test -f ${srcdir}/tconfig.
in
4831 sim_link_files
=tconfig.
in
4833 sim_link_files
=..
/common
/tconfig.
in
4836 # targ-vals.def points to the libc macro description file.
4838 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4840 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4841 sim_link_links
="${sim_link_links} targ-vals.def"
4846 default_sim_inline
=""
4847 # Check whether --enable-sim-inline was given.
4848 if test "${enable_sim_inline+set}" = set; then :
4849 enableval
=$enable_sim_inline; sim_inline
=""
4850 case "$enableval" in
4851 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4852 0) sim_inline
="-DDEFAULT_INLINE=0";;
4853 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4854 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4855 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4858 *_INLINE
=*) new_flag
="-D$x";;
4859 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4860 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4861 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4863 if test x
"$sim_inline" = x
""; then
4864 sim_inline
="$new_flag"
4866 sim_inline
="$sim_inline $new_flag"
4870 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4871 echo "Setting inline flags = $sim_inline" 6>&1
4875 if test "x$cross_compiling" = "xno"; then
4876 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4877 sim_inline
="${default_sim_inline}"
4878 if test x
"$silent" != x
"yes"; then
4879 echo "Setting inline flags = $sim_inline" 6>&1
4885 sim_inline
="-DDEFAULT_INLINE=0"
4889 wire_alignment
="NONSTRICT_ALIGNMENT"
4890 default_alignment
=""
4892 # Check whether --enable-sim-alignment was given.
4893 if test "${enable_sim_alignment+set}" = set; then :
4894 enableval
=$enable_sim_alignment; case "${enableval}" in
4895 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4896 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4897 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4898 yes) if test x
"$wire_alignment" != x
; then
4899 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4901 if test x
"$default_alignment" != x
; then
4902 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4904 echo "No hard-wired alignment for target $target" 1>&6
4905 sim_alignment
="-DWITH_ALIGNMENT=0"
4908 no
) if test x
"$default_alignment" != x
; then
4909 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4911 if test x
"$wire_alignment" != x
; then
4912 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4914 echo "No default alignment for target $target" 1>&6
4915 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4918 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4920 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4921 echo "Setting alignment flags = $sim_alignment" 6>&1
4924 if test x
"$default_alignment" != x
; then
4925 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4927 if test x
"$wire_alignment" != x
; then
4928 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4936 # Check whether --enable-sim-hostendian was given.
4937 if test "${enable_sim_hostendian+set}" = set; then :
4938 enableval
=$enable_sim_hostendian; case "${enableval}" in
4939 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4940 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4941 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4942 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4944 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4945 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4949 if test "x$cross_compiling" = "xno"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4951 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4952 if test "${ac_cv_c_bigendian+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4955 ac_cv_c_bigendian
=unknown
4956 # See if we're dealing with a universal compiler.
4957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959 #ifndef __APPLE_CC__
4960 not a universal capable compiler
4965 if ac_fn_c_try_compile
"$LINENO"; then :
4967 # Check for potential -arch flags. It is not universal unless
4968 # there are at least two -arch flags with different values.
4971 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4972 if test -n "$ac_prev"; then
4974 i?
86 | x86_64 | ppc | ppc64
)
4975 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4978 ac_cv_c_bigendian
=universal
4984 elif test "x$ac_word" = "x-arch"; then
4989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4990 if test $ac_cv_c_bigendian = unknown
; then
4991 # See if sys/param.h defines the BYTE_ORDER macro.
4992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #include <sys/types.h>
4995 #include <sys/param.h>
5000 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5001 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5010 if ac_fn_c_try_compile
"$LINENO"; then :
5011 # It does; now see whether it defined to BIG_ENDIAN or not.
5012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 #include <sys/types.h>
5015 #include <sys/param.h>
5020 #if BYTE_ORDER != BIG_ENDIAN
5028 if ac_fn_c_try_compile
"$LINENO"; then :
5029 ac_cv_c_bigendian
=yes
5031 ac_cv_c_bigendian
=no
5033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5037 if test $ac_cv_c_bigendian = unknown
; then
5038 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5046 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5054 if ac_fn_c_try_compile
"$LINENO"; then :
5055 # It does; now see whether it defined to _BIG_ENDIAN or not.
5056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5071 if ac_fn_c_try_compile
"$LINENO"; then :
5072 ac_cv_c_bigendian
=yes
5074 ac_cv_c_bigendian
=no
5076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5080 if test $ac_cv_c_bigendian = unknown
; then
5081 # Compile a test program.
5082 if test "$cross_compiling" = yes; then :
5083 # Try to guess by grepping values from an object file.
5084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086 short int ascii_mm[] =
5087 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5088 short int ascii_ii[] =
5089 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5090 int use_ascii (int i) {
5091 return ascii_mm[i] + ascii_ii[i];
5093 short int ebcdic_ii[] =
5094 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5095 short int ebcdic_mm[] =
5096 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5097 int use_ebcdic (int i) {
5098 return ebcdic_mm[i] + ebcdic_ii[i];
5105 return use_ascii (foo) == use_ebcdic (foo);
5110 if ac_fn_c_try_compile
"$LINENO"; then :
5111 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5112 ac_cv_c_bigendian
=yes
5114 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5115 if test "$ac_cv_c_bigendian" = unknown
; then
5116 ac_cv_c_bigendian
=no
5118 # finding both strings is unlikely to happen, but who knows?
5119 ac_cv_c_bigendian
=unknown
5123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 $ac_includes_default
5132 /* Are we little or big endian? From Harbison&Steele. */
5136 char c[sizeof (long int)];
5139 return u.c[sizeof (long int) - 1] == 1;
5145 if ac_fn_c_try_run
"$LINENO"; then :
5146 ac_cv_c_bigendian
=no
5148 ac_cv_c_bigendian
=yes
5150 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5151 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5157 $as_echo "$ac_cv_c_bigendian" >&6; }
5158 case $ac_cv_c_bigendian in #(
5160 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5166 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5170 as_fn_error
"unknown endianness
5171 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5174 if test $ac_cv_c_bigendian = yes; then
5175 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5177 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5180 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
5185 # Check whether --enable-werror was given.
5186 if test "${enable_werror+set}" = set; then :
5187 enableval
=$enable_werror; case "${enableval}" in
5188 yes | y
) ERROR_ON_WARNING
="yes" ;;
5189 no | n
) ERROR_ON_WARNING
="no" ;;
5190 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5195 # Enable -Werror by default when using gcc
5196 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5197 ERROR_ON_WARNING
=yes
5201 if test "${ERROR_ON_WARNING}" = yes ; then
5202 # NOTE: Disabled in the sim dir due to most sims generating warnings.
5203 # WERROR_CFLAGS="-Werror"
5207 # The entries after -Wno-pointer-sign are disabled warnings which may
5208 # be enabled in the future, which can not currently be used to build
5210 # NOTE: If you change this list, remember to update
5211 # gdb/doc/gdbint.texinfo.
5212 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
5213 -Wformat-nonliteral -Wno-pointer-sign \
5214 -Wno-unused -Wunused-value -Wunused-function \
5215 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
5217 # Enable -Wno-format by default when using gcc on mingw since many
5218 # GCC versions complain about %I64.
5220 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
5223 # Check whether --enable-build-warnings was given.
5224 if test "${enable_build_warnings+set}" = set; then :
5225 enableval
=$enable_build_warnings; case "${enableval}" in
5227 no
) build_warnings
="-w";;
5228 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5229 build_warnings
="${build_warnings} ${t}";;
5230 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5231 build_warnings
="${t} ${build_warnings}";;
5232 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5234 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5235 echo "Setting compiler warning flags = $build_warnings" 6>&1
5238 # Check whether --enable-sim-build-warnings was given.
5239 if test "${enable_sim_build_warnings+set}" = set; then :
5240 enableval
=$enable_sim_build_warnings; case "${enableval}" in
5242 no
) build_warnings
="-w";;
5243 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5244 build_warnings
="${build_warnings} ${t}";;
5245 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5246 build_warnings
="${t} ${build_warnings}";;
5247 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5249 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5250 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5254 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5257 $as_echo_n "checking compiler warning flags... " >&6; }
5258 # Separate out the -Werror flag as some files just cannot be
5259 # compiled with it enabled.
5260 for w
in ${build_warnings}; do
5262 -Werr*) WERROR_CFLAGS
=-Werror ;;
5263 *) # Check that GCC accepts it
5264 saved_CFLAGS
="$CFLAGS"
5266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5277 if ac_fn_c_try_compile
"$LINENO"; then :
5278 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5281 CFLAGS
="$saved_CFLAGS"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5285 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5289 default_sim_reserved_bits="1"
5290 # Check whether --enable-sim-reserved-bits was given.
5291 if test "${enable_sim_reserved_bits+set}" = set; then :
5292 enableval=$enable_sim_reserved_bits; case "${enableval}" in
5293 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
5294 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
5295 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value
\"" "$LINENO" 5; sim_reserved_bits="";;
5297 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
5298 echo "Setting reserved flags
= $sim_reserved_bits" 6>&1
5301 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
5307 # Instead of defining a `subtarget' macro, code should be checking
5308 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
5312 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
5313 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
5314 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5315 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5316 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5317 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5318 *) SIM_SUBTARGET="";;
5325 # Select the byte order of the target
5330 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
5331 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
5332 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5333 mips16*-*-*) default_endian=BIG_ENDIAN ;;
5334 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5335 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
5336 mips*-*-*) default_endian=BIG_ENDIAN ;;
5337 *) default_endian=BIG_ENDIAN ;;
5340 wire_endian="$mips_endian"
5341 default_endian="$default_endian"
5342 # Check whether --enable-sim-endian was given.
5343 if test "${enable_sim_endian+set}" = set; then :
5344 enableval=$enable_sim_endian; case "${enableval}" in
5345 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN
";;
5346 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN
";;
5347 yes) if test x"$wire_endian" != x; then
5348 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5350 if test x"$default_endian" != x; then
5351 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5353 echo "No hard-wired endian
for target
$target" 1>&6
5354 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5357 no) if test x"$default_endian" != x; then
5358 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5360 if test x"$wire_endian" != x; then
5361 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5363 echo "No default endian
for target
$target" 1>&6
5364 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5367 *) as_fn_error "\"Unknown value
$enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5369 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5370 echo "Setting endian flags
= $sim_endian" 6>&1
5373 if test x"$default_endian" != x; then
5374 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5376 if test x"$wire_endian" != x; then
5377 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5388 # Select the bitsize of the target
5392 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5393 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5394 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5395 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5396 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5397 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5398 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5399 *) mips_bitsize=64 ; mips_msb=63 ;;
5401 wire_word_bitsize="$mips_bitsize"
5402 wire_word_msb="$mips_msb"
5403 wire_address_bitsize="$mips_addr_bitsize"
5404 wire_cell_bitsize=""
5405 # Check whether --enable-sim-bitsize was given.
5406 if test "${enable_sim_bitsize+set}" = set; then :
5407 enableval=$enable_sim_bitsize; sim_bitsize=
5408 case "${enableval}" in
5409 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5410 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5411 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5412 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5413 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5414 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5416 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5418 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5419 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5421 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5423 *) as_fn_error "\"--enable-sim-bitsize was given
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5426 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9]*,*//"`
5429 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5430 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5431 * ) as_fn_error "\"--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5434 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5437 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5438 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5439 * ) as_fn_error "\"--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5441 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5442 echo "Setting bitsize flags
= $sim_bitsize" 6>&1
5446 if test x"$wire_word_bitsize" != x; then
5447 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5449 if test x"$wire_word_msb" != x; then
5450 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5452 if test x"$wire_address_bitsize" != x; then
5453 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5455 if test x"$wire_cell_bitsize" != x; then
5456 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5464 # Select the floating hardware support of the target
5466 mips_fpu=HARDWARE_FLOATING_POINT
5469 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5470 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5471 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5472 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5473 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5474 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5475 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5476 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5477 *) mips_fpu=HARD_FLOATING_POINT ;;
5480 default_sim_float="$mips_fpu"
5481 default_sim_float_bitsize="$mips_fpu_bitsize"
5482 # Check whether --enable-sim-float was given.
5483 if test "${enable_sim_float+set}" = set; then :
5484 enableval=$enable_sim_float; case "${enableval}" in
5485 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
";;
5486 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT
";;
5487 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5488 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5489 *) as_fn_error "\"Unknown value
$enableval passed to
--enable-sim-float\"" "$LINENO" 5; sim_float="";;
5491 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5492 echo "Setting float flags
= $sim_float" 6>&1
5497 if test x"${default_sim_float}" != x""; then
5498 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5500 if test x"${default_sim_float_bitsize}" != x""; then
5501 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5510 # Select the level of SMP support
5516 default_sim_smp="$mips_smp"
5517 # Check whether --enable-sim-smp was given.
5518 if test "${enable_sim_smp+set}" = set; then :
5519 enableval=$enable_sim_smp; case "${enableval}" in
5520 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5521 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5522 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5524 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5525 echo "Setting smp flags
= $sim_smp" 6>&1
5528 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5529 if test x"$silent" != x"yes"; then
5530 echo "Setting smp flags
= $sim_smp" 6>&1
5538 # Select the IGEN architecture
5541 sim_igen_machine="-M mipsIV
"
5542 sim_m16_machine="-M mips16
,mipsIII
"
5543 sim_igen_filter="32,64,f
"
5545 sim_mach_default="mips8000
"
5548 mips*tx39*) sim_gen=IGEN
5549 sim_igen_filter="32,f
"
5550 sim_igen_machine="-M r3900
"
5552 mips64vr43*-*-*) sim_gen=IGEN
5553 sim_igen_machine="-M mipsIV
"
5554 sim_mach_default="mips8000
"
5556 mips64vr5*-*-*) sim_gen=IGEN
5557 sim_igen_machine="-M vr5000
"
5558 sim_mach_default="mips5000
"
5560 mips64vr41*) sim_gen=M16
5561 sim_igen_machine="-M vr4100
"
5562 sim_m16_machine="-M vr4100
"
5563 sim_igen_filter="32,64,f
"
5565 sim_mach_default="mips4100
"
5567 mips64vr-*-* | mips64vrel-*-*)
5569 sim_multi_configs="\
5570 vr4100
:mipsIII
,mips16
,vr4100
:32,64:mips4100
,mips4111\
5571 vr4120
:mipsIII
,mips16
,vr4120
:32,64:mips4120\
5572 vr5000
:mipsIV
:32,64,f
:mips4300
,mips5000\
5573 vr5400
:mipsIV
,vr5400
:32,64,f
:mips5400\
5574 vr5500
:mipsIV
,vr5500
:32,64,f
:mips5500
"
5575 sim_multi_default=mips5000
5577 mips*-sde-elf* | mips*-mti-elf*)
5579 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5580 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5581 sim_igen_filter="32,64,f
"
5582 sim_mach_default="mipsisa64r2
"
5584 mips64*-*-*) sim_igen_filter="32,64,f
"
5587 mips16*-*-*) sim_gen=M16
5588 sim_igen_filter="32,64,f
"
5591 mipsisa32r2*-*-*) sim_gen=M16
5592 sim_igen_machine="-M mips32r2
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5593 sim_m16_machine="-M mips16
,mips16e
,mips32r2
"
5594 sim_igen_filter="32,f
"
5595 sim_mach_default="mipsisa32r2
"
5597 mipsisa32*-*-*) sim_gen=M16
5598 sim_igen_machine="-M mips32
,mips16
,mips16e
,smartmips
"
5599 sim_m16_machine="-M mips16
,mips16e
,mips32
"
5600 sim_igen_filter="32,f
"
5601 sim_mach_default="mipsisa32
"
5603 mipsisa64r2*-*-*) sim_gen=M16
5604 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
"
5605 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5606 sim_igen_filter="32,64,f
"
5607 sim_mach_default="mipsisa64r2
"
5609 mipsisa64sb1*-*-*) sim_gen=IGEN
5610 sim_igen_machine="-M mips64
,mips3d
,sb1
"
5611 sim_igen_filter="32,64,f
"
5612 sim_mach_default="mips_sb1
"
5614 mipsisa64*-*-*) sim_gen=M16
5615 sim_igen_machine="-M mips64
,mips3d
,mips16
,mips16e
,mdmx
"
5616 sim_m16_machine="-M mips16
,mips16e
,mips64
"
5617 sim_igen_filter="32,64,f
"
5618 sim_mach_default="mipsisa64
"
5620 mips*lsi*) sim_gen=M16
5621 sim_igen_machine="-M mipsIII
,mips16
"
5622 sim_m16_machine="-M mips16
,mipsIII
"
5623 sim_igen_filter="32,f
"
5625 sim_mach_default="mips4000
"
5627 mips*-*-*) sim_gen=IGEN
5628 sim_igen_filter="32,f
"
5632 # The MULTI generator can combine several simulation engines into one.
5633 # executable. A configuration which uses the MULTI should set two
5634 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5636 # ${sim_multi_configs} is the list of engines to build. Each
5637 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5640 # - NAME is a C-compatible prefix for the engine,
5641 # - MACHINE is a -M argument,
5642 # - FILTER is a -F argument, and
5643 # - BFDMACHS is a comma-separated list of bfd machines that the
5644 # simulator can run.
5646 # Each entry will have a separate simulation engine whose prefix is
5647 # m32<NAME>. If the machine list includes "mips16
", there will also
5648 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5649 # generated using the same machine list as the 32-bit version,
5650 # but the filter will be "16" instead of FILTER.
5652 # The simulator compares the bfd mach against BFDMACHS to decide
5653 # which engine to use. Entries in BFDMACHS should be bfd_mach
5654 # values with "bfd_mach_
" removed. ${sim_multi_default} says
5655 # which entry should be the default.
5656 if test ${sim_gen} = MULTI; then
5658 # Simple sanity check.
5659 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
5660 as_fn_error "Error
in configure.
in: MULTI simulator not
set up correctly
" "$LINENO" 5
5663 # Start in a known state.
5664 rm -f multi-include.h multi-run.c
5667 sim_multi_obj=multi-run.o
5668 sim_multi_igen_configs=
5671 cat << __EOF__ > multi-run.c
5672 /* Main entry point for MULTI simulators.
5673 Copyright (C) 2003, 2007, 2010, 2012 Free Software Foundation, Inc.
5675 This program is free software; you can redistribute it and/or modify
5676 it under the terms of the GNU General Public License as published by
5677 the Free Software Foundation; either version 3 of the License, or
5678 (at your option) any later version.
5680 This program is distributed in the hope that it will be useful,
5681 but WITHOUT ANY WARRANTY; without even the implied warranty of
5682 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5683 GNU General Public License for more details.
5685 You should have received a copy of the GNU General Public License
5686 along with this program. If not, see <http://www.gnu.org/licenses/>.
5690 This file was generated by sim/mips/configure. */
5692 #include "sim-main.h
"
5693 #include "multi-include.h
"
5699 sim_engine_run (SIM_DESC sd,
5702 int signal) /* ignore */
5706 if (STATE_ARCHITECTURE (sd) == NULL)
5707 mach = bfd_mach_${sim_multi_default};
5709 mach = STATE_ARCHITECTURE (SD)->mach;
5715 for fc in ${sim_multi_configs}; do
5717 # Split up the entry. ${c} contains the first three elements.
5718 # Note: outer sqaure brackets are m4 quotes.
5719 c=`echo ${fc} | sed 's/:[^:]*$//'`
5720 bfdmachs=`echo ${fc} | sed 's/.*://'`
5721 name=`echo ${c} | sed 's/:.*//'`
5722 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5723 filter=`echo ${c} | sed 's/.*://'`
5725 # Build the following lists:
5727 # sim_multi_flags: all -M and -F flags used by the simulator
5728 # sim_multi_src: all makefile-generated source files
5729 # sim_multi_obj: the objects for ${sim_multi_src}
5730 # sim_multi_igen_configs: igen configuration strings.
5732 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5733 # or m16) followed by the NAME, MACHINE and FILTER part of
5734 # the ${sim_multi_configs} entry.
5735 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5737 # Check whether mips16 handling is needed.
5740 # Run igen twice, once for normal mode and once for mips16.
5743 # The top-level function for the mips16 simulator is
5744 # in a file m16${name}_run.c, generated by the
5745 # tmp-run-multi Makefile rule.
5746 sim_multi_src="${sim_multi_src} m16
${name}_run.c
"
5747 sim_multi_obj="${sim_multi_obj} m16
${name}_run.o
"
5748 sim_multi_flags="${sim_multi_flags} -F 16"
5755 # Now add the list of igen-generated files to ${sim_multi_src}
5756 # and ${sim_multi_obj}.
5758 for base in engine icache idecode model semantics support; do
5759 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c
"
5760 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h
"
5761 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o
"
5763 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5766 # Add an include for the engine.h file. This file declares the
5767 # top-level foo_engine_run() function.
5768 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5770 # Add case statements for this engine to sim_engine_run().
5771 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5772 echo " case bfd_mach_${mach}:" >> multi-run.c
5773 if test ${mach} = ${sim_multi_default}; then
5774 echo " default:" >> multi-run.c
5775 sim_seen_default
=yes
5778 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5780 echo " break;" >> multi-run.c
5783 # Check whether we added a 'default:' label.
5784 if test ${sim_seen_default} = no
; then
5785 as_fn_error
"Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
5788 cat << __EOF__ >> multi-run.c
5793 mips_mach_multi (SIM_DESC sd)
5795 if (STATE_ARCHITECTURE (sd) == NULL)
5796 return bfd_mach_${sim_multi_default};
5798 switch (STATE_ARCHITECTURE (SD)->mach)
5802 # Add case statements for this engine to mips_mach_multi().
5803 for fc in ${sim_multi_configs}; do
5805 # Split up the entry. ${c} contains the first three elements.
5806 # Note: outer sqaure brackets are m4 quotes.
5807 c
=`echo ${fc} | sed 's/:[^:]*$//'`
5808 bfdmachs
=`echo ${fc} | sed 's/.*://'`
5810 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5811 echo " case bfd_mach_${mach}:" >> multi-run.c
5815 cat << __EOF__ >> multi-run.c
5816 return (STATE_ARCHITECTURE (SD)->mach);
5818 return bfd_mach_${sim_multi_default};
5823 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5826 sim_multi_src
=doesnt-exist.c
5828 if test x
"${sim_mach_default}" = x
""; then
5829 as_fn_error
"Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
5831 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5833 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5834 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5845 # Add simulated hardware devices
5851 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
5852 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
5858 if test x
"$hw_enabled" = x
"yes"; then
5863 if test "$hw_devices"; then
5864 hardware
="$hw_devices"
5866 hardware
="cfi core pal glue"
5868 hardware
="$hardware $hw_extra_devices"
5869 sim_hw_cflags
="-DWITH_HW=1"
5871 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5872 # Check whether --enable-sim-hardware was given.
5873 if test "${enable_sim_hardware+set}" = set; then :
5874 enableval
=$enable_sim_hardware;
5875 case "${enableval}" in
5878 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5879 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5880 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5882 if test "$sim_hw_p" != yes; then
5884 sim_hw_cflags
="-DWITH_HW=0"
5887 sim_hw_cflags
="-DWITH_HW=1"
5890 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
5891 for i
in $hardware ; do
5894 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
5898 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
5899 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5903 if test "$sim_hw_p" != yes; then
5905 sim_hw_cflags
="-DWITH_HW=0"
5908 if test x
"$silent" != x
"yes"; then
5909 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5913 case " $hardware " in
5914 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
5915 $as_echo_n "checking for log2 in -lm... " >&6; }
5916 if test "${ac_cv_lib_m_log2+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5919 ac_check_lib_save_LIBS
=$LIBS
5921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5924 /* Override any GCC internal prototype to avoid an error.
5925 Use char because int might match the return type of a GCC
5926 builtin and then its argument prototype would still apply. */
5939 if ac_fn_c_try_link
"$LINENO"; then :
5940 ac_cv_lib_m_log2
=yes
5944 rm -f core conftest.err conftest.
$ac_objext \
5945 conftest
$ac_exeext conftest.
$ac_ext
5946 LIBS
=$ac_check_lib_save_LIBS
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
5949 $as_echo "$ac_cv_lib_m_log2" >&6; }
5950 if test "x$ac_cv_lib_m_log2" = x
""yes; then :
5951 cat >>confdefs.h
<<_ACEOF
5961 mips_extra_objs
="dv-sockser.o"
5965 # Choose simulator engine
5967 *) mips_igen_engine
="engine.o"
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5974 $as_echo_n "checking for X... " >&6; }
5977 # Check whether --with-x was given.
5978 if test "${with_x+set}" = set; then :
5982 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5983 if test "x$with_x" = xno
; then
5984 # The user explicitly disabled X.
5987 case $x_includes,$x_libraries in #(
5988 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
5989 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5992 # One or both of the vars are not set, and there is no cached value.
5993 ac_x_includes
=no ac_x_libraries
=no
5994 rm -f -r conftest.dir
5995 if mkdir conftest.dir
; then
5997 cat >Imakefile
<<'_ACEOF'
5999 @echo incroot='${INCROOT}'
6001 @echo usrlibdir='${USRLIBDIR}'
6003 @echo libdir='${LIBDIR}'
6005 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6007 for ac_var
in incroot usrlibdir libdir
; do
6008 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6010 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6011 for ac_extension
in a so sl dylib la dll
; do
6012 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6013 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6014 ac_im_usrlibdir
=$ac_im_libdir; break
6017 # Screen out bogus values from the imake configuration. They are
6018 # bogus both because they are the default anyway, and because
6019 # using them would break gcc on systems where it needs fixed includes.
6020 case $ac_im_incroot in
6021 /usr
/include
) ac_x_includes
= ;;
6022 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6024 case $ac_im_usrlibdir in
6025 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6026 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6030 rm -f -r conftest.dir
6033 # Standard set of common directories for X headers.
6034 # Check X11 before X11Rn because it is often a symlink to the current release.
6048 /usr/local/X11/include
6049 /usr/local/X11R7/include
6050 /usr/local/X11R6/include
6051 /usr/local/X11R5/include
6052 /usr/local/X11R4/include
6054 /usr/local/include/X11
6055 /usr/local/include/X11R7
6056 /usr/local/include/X11R6
6057 /usr/local/include/X11R5
6058 /usr/local/include/X11R4
6062 /usr/XFree86/include/X11
6066 /usr/unsupported/include
6068 /usr/local/x11r5/include
6069 /usr/lpp/Xamples/include
6071 /usr/openwin/include
6072 /usr/openwin/share/include'
6074 if test "$ac_x_includes" = no
; then
6075 # Guess where to find include files, by looking for Xlib.h.
6076 # First, try using that file with no special directory specified.
6077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #include <X11/Xlib.h>
6081 if ac_fn_c_try_cpp
"$LINENO"; then :
6082 # We can compile using X headers with no special include directory.
6085 for ac_dir
in $ac_x_header_dirs; do
6086 if test -r "$ac_dir/X11/Xlib.h"; then
6087 ac_x_includes
=$ac_dir
6092 rm -f conftest.err conftest.
$ac_ext
6093 fi # $ac_x_includes = no
6095 if test "$ac_x_libraries" = no
; then
6096 # Check for the libraries.
6097 # See if we find them without any special options.
6098 # Don't add to $LIBS permanently.
6101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 #include <X11/Xlib.h>
6112 if ac_fn_c_try_link
"$LINENO"; then :
6114 # We can link X programs with no special library path.
6118 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6120 # Don't even attempt the hair of trying to link an X program!
6121 for ac_extension
in a so sl dylib la dll
; do
6122 if test -r "$ac_dir/libX11.$ac_extension"; then
6123 ac_x_libraries
=$ac_dir
6129 rm -f core conftest.err conftest.
$ac_objext \
6130 conftest
$ac_exeext conftest.
$ac_ext
6131 fi # $ac_x_libraries = no
6133 case $ac_x_includes,$ac_x_libraries in #(
6135 # Didn't find X, or a directory has "'" in its name.
6136 ac_cv_have_x
="have_x=no";; #(
6138 # Record where we found X for the cache.
6139 ac_cv_have_x
="have_x=yes\
6140 ac_x_includes='$ac_x_includes'\
6141 ac_x_libraries='$ac_x_libraries'"
6147 eval "$ac_cv_have_x"
6150 if test "$have_x" != yes; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6152 $as_echo "$have_x" >&6; }
6155 # If each of the values was on the command line, it overrides each guess.
6156 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6157 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6158 # Update the cache value to reflect the command line values.
6159 ac_cv_have_x
="have_x=yes\
6160 ac_x_includes='$x_includes'\
6161 ac_x_libraries='$x_libraries'"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6163 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6169 for ac_header
in string.h
strings.h stdlib.h stdlib.h
6171 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6172 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6173 eval as_val
=\$
$as_ac_Header
6174 if test "x$as_val" = x
""yes; then :
6175 cat >>confdefs.h
<<_ACEOF
6176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
6184 $as_echo_n "checking for fabs in -lm... " >&6; }
6185 if test "${ac_cv_lib_m_fabs+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6188 ac_check_lib_save_LIBS
=$LIBS
6190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6208 if ac_fn_c_try_link
"$LINENO"; then :
6209 ac_cv_lib_m_fabs
=yes
6213 rm -f core conftest.err conftest.
$ac_objext \
6214 conftest
$ac_exeext conftest.
$ac_ext
6215 LIBS
=$ac_check_lib_save_LIBS
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
6218 $as_echo "$ac_cv_lib_m_fabs" >&6; }
6219 if test "x$ac_cv_lib_m_fabs" = x
""yes; then :
6220 cat >>confdefs.h
<<_ACEOF
6228 for ac_func
in aint anint sqrt
6230 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6231 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6232 eval as_val
=\$
$as_ac_var
6233 if test "x$as_val" = x
""yes; then :
6234 cat >>confdefs.h
<<_ACEOF
6235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6243 ac_sources
="$sim_link_files"
6244 ac_dests
="$sim_link_links"
6245 while test -n "$ac_sources"; do
6246 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
6247 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
6248 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
6250 ac_config_links
="$ac_config_links $ac_config_links_1"
6253 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
6254 cgen_breaks
="break cgen_rtx_error";
6257 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
6259 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
6261 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
6263 ac_config_commands
="$ac_config_commands Makefile"
6265 ac_config_commands
="$ac_config_commands stamp-h"
6267 cat >confcache
<<\_ACEOF
6268 # This file is a shell script that caches the results of configure
6269 # tests run on this system so they can be shared between configure
6270 # scripts and configure runs, see configure's option --config-cache.
6271 # It is not useful on other systems. If it contains results you don't
6272 # want to keep, you may remove or edit it.
6274 # config.status only pays attention to the cache file if you give it
6275 # the --recheck option to rerun configure.
6277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6283 # The following way of writing the cache mishandles newlines in values,
6284 # but we know of no workaround that is simple, portable, and efficient.
6285 # So, we kill variables containing newlines.
6286 # Ultrix sh set writes to stderr and can't be redirected directly,
6287 # and sets the high bit in the cache file unless we assign to the vars.
6289 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6290 eval ac_val
=\$
$ac_var
6294 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6298 _ | IFS | as_nl
) ;; #(
6299 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6300 *) { eval $ac_var=; unset $ac_var;} ;;
6306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6307 *${as_nl}ac_space
=\
*)
6308 # `set' does not quote correctly, so add quotes: double-quote
6309 # substitution turns \\\\ into \\, and sed turns \\ into \.
6312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6315 # `set' quotes correctly as required by POSIX, so do not add quotes.
6316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6329 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6330 if test -w "$cache_file"; then
6331 test "x$cache_file" != "x/dev/null" &&
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6333 $as_echo "$as_me: updating cache $cache_file" >&6;}
6334 cat confcache
>$cache_file
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6342 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6343 # Let make expand exec_prefix.
6344 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6346 DEFS
=-DHAVE_CONFIG_H
6350 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6351 # 1. Remove the extension, and $U if already installed.
6352 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6353 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6355 # will be set to the directory where LIBOBJS objects are built.
6356 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6357 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6361 LTLIBOBJS
=$ac_ltlibobjs
6364 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6365 as_fn_error
"conditional \"GMAKE\" was never defined.
6366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6370 : ${CONFIG_STATUS=./config.status}
6372 ac_clean_files_save
=$ac_clean_files
6373 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6375 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6377 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6379 # Generated by $as_me.
6380 # Run this file to recreate the current configuration.
6381 # Compiler output produced by configure, useful for debugging
6382 # configure, is in config.log if it exists.
6388 SHELL=\${CONFIG_SHELL-$SHELL}
6391 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6392 ## -------------------- ##
6393 ## M4sh Initialization. ##
6394 ## -------------------- ##
6396 # Be more Bourne compatible
6397 DUALCASE
=1; export DUALCASE
# for MKS sh
6398 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6402 # is contrary to our usage. Disable this feature.
6403 alias -g '${1+"$@"}'='"$@"'
6404 setopt NO_GLOB_SUBST
6406 case `(set -o) 2>/dev/null` in #(
6418 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6419 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6422 # Prefer a ksh shell builtin over an external printf program on Solaris,
6423 # but without wasting forks for bash or zsh.
6424 if test -z "$BASH_VERSION$ZSH_VERSION" \
6425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6426 as_echo='print
-r --'
6427 as_echo_n='print
-rn --'
6428 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6429 as_echo='printf %s
\n'
6430 as_echo_n='printf %s
'
6432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6433 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6434 as_echo_n='/usr
/ucb
/echo -n'
6436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6437 as_echo_n_body='eval
6441 expr "X$arg" : "X\\(.*\\)$as_nl";
6442 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6444 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6446 export as_echo_n_body
6447 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6450 as_echo='sh
-c $as_echo_body as_echo
'
6453 # The user is always right.
6454 if test "${PATH_SEPARATOR+set}" != set; then
6456 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6457 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6464 # We need space, tab and new line, in precisely that order. Quoting is
6465 # there to prevent editors from complaining about space-tab.
6466 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6467 # splitting by setting IFS to empty value.)
6470 # Find who we are. Look in the path if we contain no directory separator.
6472 *[\\/]* ) as_myself=$0 ;;
6473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6484 # We did not find ourselves, most probably we were run as `sh COMMAND'
6485 # in which case we are not to be found in the path.
6486 if test "x$as_myself" = x
; then
6489 if test ! -f "$as_myself"; then
6490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6494 # Unset variables that we do not need and which cause bugs (e.g. in
6495 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6496 # suppresses any "Segmentation fault" message there. '((' could
6497 # trigger a bug in pdksh 5.2.14.
6498 for as_var
in BASH_ENV ENV MAIL MAILPATH
6499 do eval test x\
${$as_var+set} = xset \
6500 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6513 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6516 # as_fn_error ERROR [LINENO LOG_FD]
6517 # ---------------------------------
6518 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6519 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6520 # script with status $?, using 1 if that was 0.
6523 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6525 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6528 $as_echo "$as_me: error: $1" >&2
6529 as_fn_exit
$as_status
6533 # as_fn_set_status STATUS
6534 # -----------------------
6535 # Set $? to STATUS, without forking.
6539 } # as_fn_set_status
6543 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6553 # Portably unset VAR.
6556 { eval $1=; unset $1;}
6558 as_unset
=as_fn_unset
6559 # as_fn_append VAR VALUE
6560 # ----------------------
6561 # Append the text in VALUE to the end of the definition contained in VAR. Take
6562 # advantage of any shell optimizations that allow amortized linear growth over
6563 # repeated appends, instead of the typical quadratic growth present in naive
6565 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6566 eval 'as_fn_append ()
6577 # as_fn_arith ARG...
6578 # ------------------
6579 # Perform arithmetic evaluation on the ARGs, and store the result in the
6580 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6581 # must be portable across $(()) and expr.
6582 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6583 eval 'as_fn_arith ()
6590 as_val
=`expr "$@" || test $? -eq 1`
6595 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6596 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6602 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6603 as_basename
=basename
6608 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6614 as_me
=`$as_basename -- "$0" ||
6615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6616 X"$0" : 'X\(//\)$' \| \
6617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6619 sed '/^.*\/\([^/][^/]*\)\/*$/{
6633 # Avoid depending upon Character Ranges.
6634 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6635 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6636 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6637 as_cr_digits
='0123456789'
6638 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6640 ECHO_C
= ECHO_N
= ECHO_T
=
6641 case `echo -n x` in #(((((
6643 case `echo 'xy\c'` in
6644 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6646 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6653 rm -f conf$$ conf$$.exe conf$$.
file
6654 if test -d conf$$.dir
; then
6655 rm -f conf$$.dir
/conf$$.
file
6658 mkdir conf$$.dir
2>/dev
/null
6660 if (echo >conf$$.
file) 2>/dev
/null
; then
6661 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6663 # ... but there are two gotchas:
6664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6666 # In both cases, we have to default to `cp -p'.
6667 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6669 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6677 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6678 rmdir conf$$.dir
2>/dev
/null
6683 # Create "$as_dir" as a directory, including parents if necessary.
6688 -*) as_dir
=.
/$as_dir;;
6690 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6694 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6695 *) as_qdir
=$as_dir;;
6697 as_dirs
="'$as_qdir' $as_dirs"
6698 as_dir
=`$as_dirname -- "$as_dir" ||
6699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6700 X"$as_dir" : 'X\(//\)[^/]' \| \
6701 X"$as_dir" : 'X\(//\)$' \| \
6702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6703 $as_echo X"$as_dir" |
6704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6721 test -d "$as_dir" && break
6723 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6724 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6728 if mkdir
-p .
2>/dev
/null
; then
6729 as_mkdir_p
='mkdir -p "$as_dir"'
6731 test -d .
/-p && rmdir .
/-p
6735 if test -x / >/dev
/null
2>&1; then
6738 if ls -dL / >/dev
/null
2>&1; then
6745 if test -d "$1"; then
6751 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6752 ???[sx]*):;;*)false;;esac;fi
6756 as_executable_p
=$as_test_x
6758 # Sed expression to map a string onto a valid CPP name.
6759 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6761 # Sed expression to map a string onto a valid variable name.
6762 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6766 ## ----------------------------------- ##
6767 ## Main body of $CONFIG_STATUS script. ##
6768 ## ----------------------------------- ##
6770 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6773 # Save the log message, to keep $0 and so on meaningful, and to
6774 # report actual input values of CONFIG_FILES etc. instead of their
6775 # values after options handling.
6777 This file was extended by $as_me, which was
6778 generated by GNU Autoconf 2.64. Invocation command line was
6780 CONFIG_FILES = $CONFIG_FILES
6781 CONFIG_HEADERS = $CONFIG_HEADERS
6782 CONFIG_LINKS = $CONFIG_LINKS
6783 CONFIG_COMMANDS = $CONFIG_COMMANDS
6786 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6791 case $ac_config_files in *"
6792 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6795 case $ac_config_headers in *"
6796 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6801 # Files that config.status was made for.
6802 config_files="$ac_config_files"
6803 config_headers="$ac_config_headers"
6804 config_links="$ac_config_links"
6805 config_commands="$ac_config_commands"
6809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6811 \`$as_me' instantiates files and other configuration actions
6812 from templates according to the current configuration. Unless the files
6813 and actions are specified as TAGs, all are instantiated by default.
6815 Usage: $0 [OPTION]... [TAG]...
6817 -h, --help print this help, then exit
6818 -V, --version print version number and configuration settings, then exit
6819 -q, --quiet, --silent
6820 do not print progress messages
6821 -d, --debug don't remove temporary files
6822 --recheck update $as_me by reconfiguring in the same conditions
6823 --file=FILE[:TEMPLATE]
6824 instantiate the configuration file FILE
6825 --header=FILE[:TEMPLATE]
6826 instantiate the configuration header FILE
6828 Configuration files:
6831 Configuration headers:
6834 Configuration links:
6837 Configuration commands:
6840 Report bugs to the package provider."
6843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6846 configured by $0, generated by GNU Autoconf 2.64,
6847 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6849 Copyright (C) 2009 Free Software Foundation, Inc.
6850 This config.status script is free software; the Free Software Foundation
6851 gives unlimited permission to copy, distribute and modify it."
6856 test -n "\$AWK" || AWK=awk
6859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6860 # The default lists apply if the user does not specify any file.
6866 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6867 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6878 # Handling of the options.
6879 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6881 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6882 $as_echo "$ac_cs_version"; exit ;;
6883 --debug |
--debu |
--deb |
--de |
--d |
-d )
6885 --file |
--fil |
--fi |
--f )
6888 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6890 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6891 ac_need_defaults
=false
;;
6892 --header |
--heade |
--head |
--hea )
6895 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6897 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6898 ac_need_defaults
=false
;;
6900 # Conflict between --help and --header
6901 as_fn_error
"ambiguous option: \`$1'
6902 Try \`$0 --help' for more information.";;
6903 --help |
--hel |
-h )
6904 $as_echo "$ac_cs_usage"; exit ;;
6905 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6906 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6910 -*) as_fn_error
"unrecognized option: \`$1'
6911 Try \`$0 --help' for more information." ;;
6913 *) as_fn_append ac_config_targets
" $1"
6914 ac_need_defaults
=false
;;
6920 ac_configure_extra_args
=
6922 if $ac_cs_silent; then
6924 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6929 if \$ac_cs_recheck; then
6930 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6933 CONFIG_SHELL='$SHELL'
6939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6944 ## Running $as_me. ##
6950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6954 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6960 # Handling of arguments.
6961 for ac_config_target
in $ac_config_targets
6963 case $ac_config_target in
6964 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6965 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
6966 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6967 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6968 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6969 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6970 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6971 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6973 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6978 # If the user did not use the arguments to specify the items to instantiate,
6979 # then the envvar interface is used. Set only those that are not.
6980 # We use the long form for the default assignment because of an extremely
6981 # bizarre bug on SunOS 4.1.3.
6982 if $ac_need_defaults; then
6983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6985 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6986 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6989 # Have a temporary directory for convenience. Make it in the build tree
6990 # simply because there is no reason against having it here, and in addition,
6991 # creating and moving files from /tmp can sometimes cause problems.
6992 # Hook for its removal unless debugging.
6993 # Note that there is a small window in which the directory will not be cleaned:
6994 # after its creation but before its name has been assigned to `$tmp'.
6998 trap 'exit_status=$?
6999 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7001 trap 'as_fn_exit 1' 1 2 13 15
7003 # Create a (secure) tmp directory for tmp files.
7006 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7007 test -n "$tmp" && test -d "$tmp"
7010 tmp
=.
/conf$$
-$RANDOM
7011 (umask 077 && mkdir
"$tmp")
7012 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
7014 # Set up the scripts for CONFIG_FILES section.
7015 # No need to generate them if there are no CONFIG_FILES.
7016 # This happens for instance with `./config.status config.h'.
7017 if test -n "$CONFIG_FILES"; then
7020 ac_cr
=`echo X | tr X '\015'`
7021 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7022 # But we know of no other shell where ac_cr would be empty at this
7023 # point, so we can use a bashism as a fallback.
7024 if test "x$ac_cr" = x
; then
7025 eval ac_cr
=\$
\'\\r
\'
7027 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7028 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7034 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7039 echo "cat >conf$$subs.awk <<_ACEOF" &&
7040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7043 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7046 for ac_last_try in false false false false false :; do
7047 . ./conf$$subs.sh ||
7048 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7050 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7051 if test $ac_delim_n = $ac_delim_num; then
7053 elif $ac_last_try; then
7054 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7056 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7062 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
7066 s/^/S["/; s
/!.
*/"]=/
7076 s/\(.\{148\}\).*/\1/
7078 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7083 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7090 s/\(.\{148\}\).*/\1/
7092 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7096 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7101 ' <conf$$subs.awk | sed '
7106 ' >>$CONFIG_STATUS || ac_write_fail=1
7107 rm -f conf$$subs.awk
7108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7110 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
7111 for (key in S) S_is_set[key] = 1
7117 nfields = split(line, field, "@
")
7119 len = length(field[1])
7120 for (i = 2; i < nfields; i++) {
7122 keylen = length(key)
7123 if (S_is_set[key]) {
7125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7126 len += length(value) + length(field[++i])
7137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7138 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7139 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7142 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
7143 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
7146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
7148 # trailing colons and then remove the whole line if VPATH becomes empty
7149 # (actually we leave an empty line to preserve line numbers).
7150 if test "x
$srcdir" = x.; then
7151 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7155 s/^\([^=]*=[ ]*\):*/\1/
7161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7162 fi # test -n "$CONFIG_FILES"
7164 # Set up the scripts for CONFIG_HEADERS section.
7165 # No need to generate them if there are no CONFIG_HEADERS.
7166 # This happens for instance with `./config.status Makefile'.
7167 if test -n "$CONFIG_HEADERS"; then
7168 cat >"$tmp/defines.
awk" <<\_ACAWK ||
7172 # Transform confdefs.h into an awk script `defines.awk', embedded as
7173 # here-document in config.status, that substitutes the proper values into
7174 # config.h.in to produce config.h.
7176 # Create a delimiter string that does not exist in confdefs.h, to ease
7177 # handling of long lines.
7179 for ac_last_try in false false :; do
7180 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
7181 if test -z "$ac_t"; then
7183 elif $ac_last_try; then
7184 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
7186 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7190 # For the awk script, D is an array of macro values keyed by name,
7191 # likewise P contains macro parameters if any. Preserve backslash
7192 # newline sequences.
7194 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7196 s/.\{148\}/&'"$ac_delim"'/g
7199 s/^[ ]*#[ ]*define[ ][ ]*/ /
7206 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7208 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7213 D["\
1"]=" \
3\\\\\\n
"\\/p
7215 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7220 s/.\{148\}/&'"$ac_delim"'/g
7225 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7228 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7230 ' <confdefs.h | sed '
7231 s/'"$ac_delim"'/"\\\
7232 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7235 for (key in D) D_is_set[key] = 1
7238 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7240 split(line, arg, " ")
7241 if (arg[1] == "#") {
7245 defundef
= substr
(arg
[1], 2)
7248 split(mac1
, mac2
, "(") #)
7250 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7251 if (D_is_set
[macro
]) {
7252 # Preserve the white space surrounding the "#".
7253 print prefix
"define", macro P
[macro
] D
[macro
]
7256 # Replace #undef with comments. This is necessary, for example,
7257 # in the case of _POSIX_SOURCE, which is predefined and required
7258 # on some systems where configure will not decide to define it.
7259 if (defundef
== "undef") {
7260 print
"/*", prefix defundef
, macro
, "*/"
7268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7269 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7270 fi # test -n "$CONFIG_HEADERS"
7273 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
7278 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7280 case $ac_mode$ac_tag in
7282 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7283 :[FH
]-) ac_tag
=-:-;;
7284 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7301 -) ac_f
="$tmp/stdin";;
7302 *) # Look for the file first in the build tree, then in the source tree
7303 # (if the path is not absolute). The absolute path cannot be DOS-style,
7304 # because $ac_f cannot contain `:'.
7308 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7310 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7312 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7313 as_fn_append ac_file_inputs
" '$ac_f'"
7316 # Let's still pretend it is `configure' which instantiates (i.e., don't
7317 # use $as_me), people would be surprised to read:
7318 # /* config.h. Generated by config.status. */
7319 configure_input
='Generated from '`
7320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7322 if test x
"$ac_file" != x-
; then
7323 configure_input
="$ac_file. $configure_input"
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7325 $as_echo "$as_me: creating $ac_file" >&6;}
7327 # Neutralize special characters interpreted by sed in replacement strings.
7328 case $configure_input in #(
7329 *\
&* |
*\|
* |
*\\* )
7330 ac_sed_conf_input
=`$as_echo "$configure_input" |
7331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7332 *) ac_sed_conf_input
=$configure_input;;
7336 *:-:* |
*:-) cat >"$tmp/stdin" \
7337 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7342 ac_dir
=`$as_dirname -- "$ac_file" ||
7343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7344 X"$ac_file" : 'X\(//\)[^/]' \| \
7345 X"$ac_file" : 'X\(//\)$' \| \
7346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7347 $as_echo X"$ac_file" |
7348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7365 as_dir
="$ac_dir"; as_fn_mkdir_p
7369 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7371 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7372 # A ".." for each directory in $ac_dir_suffix.
7373 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7374 case $ac_top_builddir_sub in
7375 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7376 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7379 ac_abs_top_builddir
=$ac_pwd
7380 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7381 # for backward compatibility:
7382 ac_top_builddir
=$ac_top_build_prefix
7385 .
) # We are building in place.
7387 ac_top_srcdir
=$ac_top_builddir_sub
7388 ac_abs_top_srcdir
=$ac_pwd ;;
7389 [\\/]* | ?
:[\\/]* ) # Absolute name.
7390 ac_srcdir
=$srcdir$ac_dir_suffix;
7391 ac_top_srcdir
=$srcdir
7392 ac_abs_top_srcdir
=$srcdir ;;
7394 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7395 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7396 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7398 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7408 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7409 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7414 # If the template does not know about datarootdir, expand it.
7415 # FIXME: This hack should be removed a few years after 2.60.
7416 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7427 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7428 *datarootdir
*) ac_datarootdir_seen
=yes;;
7429 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7431 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7434 ac_datarootdir_hack='
7435 s&@datadir@&$datadir&g
7436 s&@docdir@&$docdir&g
7437 s&@infodir@&$infodir&g
7438 s&@localedir@&$localedir&g
7439 s&@mandir@&$mandir&g
7440 s&\\\${datarootdir}&$datarootdir&g' ;;
7444 # Neutralize VPATH when `$srcdir' = `.'.
7445 # Shell code in configure.ac might set extrasub.
7446 # FIXME: do we really want to maintain this feature?
7447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7448 ac_sed_extra="$ac_vpsub
7451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7453 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7454 s|@configure_input@|
$ac_sed_conf_input|
;t t
7455 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7456 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7457 s
&@srcdir@
&$ac_srcdir&;t t
7458 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7459 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7460 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7461 s
&@builddir@
&$ac_builddir&;t t
7462 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7463 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7464 s
&@INSTALL@
&$ac_INSTALL&;t t
7465 $ac_datarootdir_hack
7467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7468 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7471 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7474 which seems to be undefined. Please make sure it is defined." >&5
7475 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7476 which seems to be undefined. Please make sure it is defined." >&2;}
7480 -) cat "$tmp/out" && rm -f "$tmp/out";;
7481 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7483 || as_fn_error "could not create $ac_file" "$LINENO" 5
7489 if test x"$ac_file" != x-; then
7491 $as_echo "/* $configure_input */" \
7492 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7493 } >"$tmp/config.h" \
7494 || as_fn_error "could not create $ac_file" "$LINENO" 5
7495 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7497 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7500 mv "$tmp/config.h" "$ac_file" \
7501 || as_fn_error "could not create $ac_file" "$LINENO" 5
7504 $as_echo "/* $configure_input */" \
7505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7506 || as_fn_error "could not create -" "$LINENO" 5
7514 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
7517 # Prefer the file from the source tree if names are identical.
7518 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7519 ac_source=$srcdir/$ac_source
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7523 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7525 if test ! -r "$ac_source"; then
7526 as_fn_error "$ac_source: file not found" "$LINENO" 5
7530 # Try a relative symlink, then a hard link, then a copy.
7532 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7533 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7535 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7536 ln "$ac_source" "$ac_file" 2>/dev/null ||
7537 cp -p "$ac_source" "$ac_file" ||
7538 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7541 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7542 $as_echo "$as_me: executing $ac_file commands" >&6;}
7547 case $ac_file$ac_mode in
7548 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7549 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7550 rm -f Makesim1.tmp Makesim2.tmp Makefile
7551 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7552 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
7553 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7554 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7555 <Makefile.sim
>Makefile
7556 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7558 "stamp-h":C
) echo > stamp-h
;;
7566 ac_clean_files
=$ac_clean_files_save
7568 test $ac_write_fail = 0 ||
7569 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7572 # configure is writing to config.log, and then calls config.status.
7573 # config.status does its own redirection, appending to config.log.
7574 # Unfortunately, on DOS this fails, as config.log is still kept open
7575 # by configure, so config.status won't be able to write to it; its
7576 # output is simply discarded. So we exec the FD to /dev/null,
7577 # effectively closing config.log, so it can be properly (re)opened and
7578 # appended to by config.status. When coming back to configure, we
7579 # need to make the FD available again.
7580 if test "$no_create" != yes; then
7582 ac_config_status_args
=
7583 test "$silent" = yes &&
7584 ac_config_status_args
="$ac_config_status_args --quiet"
7586 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7588 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7589 # would make configure fail if this is the last instruction.
7590 $ac_cs_success || as_fn_exit $?
7592 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7594 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}