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
711 program_transform_name
724 enable_option_checking
726 enable_maintainer_mode
737 enable_sim_hostendian
739 enable_build_warnings
740 enable_sim_build_warnings
741 enable_sim_reserved_bits
749 ac_precious_vars
='build_alias
761 # Initialize some variables set by options.
763 ac_init_version
=false
764 ac_unrecognized_opts
=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name
=s
,x
,x
,
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir
='${exec_prefix}/bin'
790 sbindir
='${exec_prefix}/sbin'
791 libexecdir
='${exec_prefix}/libexec'
792 datarootdir
='${prefix}/share'
793 datadir
='${datarootdir}'
794 sysconfdir
='${prefix}/etc'
795 sharedstatedir
='${prefix}/com'
796 localstatedir
='${prefix}/var'
797 includedir
='${prefix}/include'
798 oldincludedir
='/usr/include'
799 docdir
='${datarootdir}/doc/${PACKAGE}'
800 infodir
='${datarootdir}/info'
805 libdir
='${exec_prefix}/lib'
806 localedir
='${datarootdir}/locale'
807 mandir
='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\
$ac_option
821 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
831 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
833 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
836 -build |
--build |
--buil |
--bui |
--bu)
837 ac_prev
=build_alias
;;
838 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
839 build_alias
=$ac_optarg ;;
841 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
842 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
843 ac_prev
=cache_file
;;
844 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
845 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
846 cache_file
=$ac_optarg ;;
849 cache_file
=config.cache
;;
851 -datadir |
--datadir |
--datadi |
--datad)
853 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
854 datadir
=$ac_optarg ;;
856 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
857 |
--dataroo |
--dataro |
--datar)
858 ac_prev
=datarootdir
;;
859 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
860 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
861 datarootdir
=$ac_optarg ;;
863 -disable-* |
--disable-*)
864 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
867 as_fn_error
"invalid feature name: $ac_useropt"
868 ac_useropt_orig
=$ac_useropt
869 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
874 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep
=', ';;
877 eval enable_
$ac_useropt=no
;;
879 -docdir |
--docdir |
--docdi |
--doc |
--do)
881 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
884 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
886 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
889 -enable-* |
--enable-*)
890 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
893 as_fn_error
"invalid feature name: $ac_useropt"
894 ac_useropt_orig
=$ac_useropt
895 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep
=', ';;
903 eval enable_
$ac_useropt=\
$ac_optarg ;;
905 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
906 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
907 |
--exec |
--exe |
--ex)
908 ac_prev
=exec_prefix
;;
909 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
910 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
911 |
--exec=* |
--exe=* |
--ex=*)
912 exec_prefix
=$ac_optarg ;;
914 -gas |
--gas |
--ga |
--g)
915 # Obsolete; use --with-gas.
918 -help |
--help |
--hel |
--he |
-h)
920 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
921 ac_init_help
=recursive
;;
922 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
923 ac_init_help
=short
;;
925 -host |
--host |
--hos |
--ho)
926 ac_prev
=host_alias
;;
927 -host=* |
--host=* |
--hos=* |
--ho=*)
928 host_alias
=$ac_optarg ;;
930 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
932 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
934 htmldir
=$ac_optarg ;;
936 -includedir |
--includedir |
--includedi |
--included |
--include \
937 |
--includ |
--inclu |
--incl |
--inc)
938 ac_prev
=includedir
;;
939 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
940 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
941 includedir
=$ac_optarg ;;
943 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
945 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
946 infodir
=$ac_optarg ;;
948 -libdir |
--libdir |
--libdi |
--libd)
950 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
953 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
954 |
--libexe |
--libex |
--libe)
955 ac_prev
=libexecdir
;;
956 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
957 |
--libexe=* |
--libex=* |
--libe=*)
958 libexecdir
=$ac_optarg ;;
960 -localedir |
--localedir |
--localedi |
--localed |
--locale)
962 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
963 localedir
=$ac_optarg ;;
965 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
966 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
967 ac_prev
=localstatedir
;;
968 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
969 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
970 localstatedir
=$ac_optarg ;;
972 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
974 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
978 # Obsolete; use --without-fp.
981 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
982 |
--no-cr |
--no-c |
-n)
985 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
986 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
989 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
990 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
991 |
--oldin |
--oldi |
--old |
--ol |
--o)
992 ac_prev
=oldincludedir
;;
993 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
994 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
995 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
996 oldincludedir
=$ac_optarg ;;
998 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1000 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1001 prefix
=$ac_optarg ;;
1003 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1004 |
--program-pre |
--program-pr |
--program-p)
1005 ac_prev
=program_prefix
;;
1006 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1007 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1008 program_prefix
=$ac_optarg ;;
1010 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1011 |
--program-suf |
--program-su |
--program-s)
1012 ac_prev
=program_suffix
;;
1013 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1014 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1015 program_suffix
=$ac_optarg ;;
1017 -program-transform-name |
--program-transform-name \
1018 |
--program-transform-nam |
--program-transform-na \
1019 |
--program-transform-n |
--program-transform- \
1020 |
--program-transform |
--program-transfor \
1021 |
--program-transfo |
--program-transf \
1022 |
--program-trans |
--program-tran \
1023 |
--progr-tra |
--program-tr |
--program-t)
1024 ac_prev
=program_transform_name
;;
1025 -program-transform-name=* |
--program-transform-name=* \
1026 |
--program-transform-nam=* |
--program-transform-na=* \
1027 |
--program-transform-n=* |
--program-transform-=* \
1028 |
--program-transform=* |
--program-transfor=* \
1029 |
--program-transfo=* |
--program-transf=* \
1030 |
--program-trans=* |
--program-tran=* \
1031 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1032 program_transform_name
=$ac_optarg ;;
1034 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1036 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1037 pdfdir
=$ac_optarg ;;
1039 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1041 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1044 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1045 |
-silent |
--silent |
--silen |
--sile |
--sil)
1048 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1050 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1052 sbindir
=$ac_optarg ;;
1054 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1055 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1056 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1058 ac_prev
=sharedstatedir
;;
1059 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1060 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1061 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1063 sharedstatedir
=$ac_optarg ;;
1065 -site |
--site |
--sit)
1067 -site=* |
--site=* |
--sit=*)
1070 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1072 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1073 srcdir
=$ac_optarg ;;
1075 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1076 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1077 ac_prev
=sysconfdir
;;
1078 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1079 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1080 sysconfdir
=$ac_optarg ;;
1082 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1083 ac_prev
=target_alias
;;
1084 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1085 target_alias
=$ac_optarg ;;
1087 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1090 -version |
--version |
--versio |
--versi |
--vers |
-V)
1091 ac_init_version
=: ;;
1094 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1097 as_fn_error
"invalid package name: $ac_useropt"
1098 ac_useropt_orig
=$ac_useropt
1099 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1104 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep
=', ';;
1107 eval with_
$ac_useropt=\
$ac_optarg ;;
1109 -without-* |
--without-*)
1110 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1113 as_fn_error
"invalid package name: $ac_useropt"
1114 ac_useropt_orig
=$ac_useropt
1115 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep
=', ';;
1123 eval with_
$ac_useropt=no
;;
1126 # Obsolete; use --with-x.
1129 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1130 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1131 ac_prev
=x_includes
;;
1132 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1133 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1134 x_includes
=$ac_optarg ;;
1136 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1137 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1138 ac_prev
=x_libraries
;;
1139 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1140 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1141 x_libraries
=$ac_optarg ;;
1143 -*) as_fn_error
"unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information."
1148 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1152 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1154 eval $ac_envvar=\
$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 if test -n "$ac_prev"; then
1169 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error
"missing argument to $ac_option"
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1176 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 # Check all directory arguments for consistency.
1182 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val
=\$
$ac_var
1188 # Remove trailing slashes.
1191 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\
$ac_val;;
1194 # Be sure to have absolute directory names.
1196 [\\/$
]* | ?
:[\\/]* ) continue;;
1197 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1199 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target
=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x
; then
1211 if test "x$build_alias" = x
; then
1212 cross_compiling
=maybe
1213 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1223 test "$silent" = yes && exec 6>/dev
/null
1226 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di
=`ls -di .` &&
1228 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1229 as_fn_error
"working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 as_fn_error
"pwd does not report name of working directory"
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236 ac_srcdir_defaulted
=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir
=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$as_myself" : 'X\(//\)[^/]' \| \
1241 X"$as_myself" : 'X\(//\)$' \| \
1242 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1266 ac_srcdir_defaulted
=no
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1270 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1272 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1284 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 for ac_var
in $ac_precious_vars; do
1287 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1289 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1294 # Report the --help message.
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1300 \`configure' configures this package to adapt to many kinds of systems.
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1307 Defaults for the options are specified in brackets.
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1331 For better control, use the options below.
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1363 --x-includes=DIR X include files are
in DIR
1364 --x-libraries=DIR X library files are
in DIR
1367 --build=BUILD configure
for building on BUILD
[guessed
]
1368 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1369 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1373 if test -n "$ac_init_help"; then
1378 --disable-option-checking ignore unrecognized
--enable/--with options
1379 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1380 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1381 --enable-maintainer-mode Enable developer functionality.
1382 --enable-sim-bswap Use Host specific BSWAP instruction.
1383 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1384 --enable-sim-debug=opts Enable debugging flags
1385 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1386 --enable-sim-trace=opts Enable tracing flags
1387 --enable-sim-profile=opts Enable profiling flags
1388 --enable-sim-inline=inlines Specify
which functions should be inlined.
1389 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
1390 --enable-sim-hostendian=end Specify
host byte endian orientation.
1391 --enable-werror treat compile warnings as errors
1392 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1393 --enable-sim-build-warnings
1394 enable SIM specific build-time compiler warnings
if
1396 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1397 --enable-sim-endian=endian Specify target byte endian orientation.
1398 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
1399 --enable-sim-float Specify that the target processor has floating point hardware.
1400 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
1401 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1404 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1405 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1406 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1407 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1408 --with-bugurl=URL Direct users to URL to report a bug
1409 --with-x use the X Window System
1411 Some influential environment variables
:
1412 CC C compiler
command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1415 nonstandard directory
<lib dir
>
1416 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1417 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1418 you have headers
in a nonstandard directory
<include dir
>
1420 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1422 Use these variables to override the choices made by
`configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1425 Report bugs to the package provider.
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1455 .) # We are building in place.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1489 generated by GNU Autoconf 2.64
1491 Copyright (C) 2009 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1512 *) ac_try_echo
=$ac_try;;
1514 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1518 if test -s conftest.err
; then
1519 grep -v '^ *+' conftest.err
>conftest.er1
1520 cat conftest.er1
>&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.
$ac_objext; then :
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.
$ac_ext >&5
1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1538 } # ac_fn_c_try_compile
1540 # ac_fn_c_try_cpp LINENO
1541 # ----------------------
1542 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1545 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1546 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } >/dev/null && {
1562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1578 # -------------------------------------------------------
1579 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1580 # the include files in INCLUDES and setting the cache variable VAR
1582 ac_fn_c_check_header_mongrel ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 $as_echo_n "(cached) " >&6
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 $as_echo "$ac_res" >&6; }
1595 # Is the header compilable?
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1597 $as_echo_n "checking $2 usability... " >&6; }
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1603 if ac_fn_c_try_compile "$LINENO"; then :
1604 ac_header_compiler=yes
1606 ac_header_compiler=no
1608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1610 $as_echo "$ac_header_compiler" >&6; }
1612 # Is the header present?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1614 $as_echo_n "checking $2 presence... " >&6; }
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1619 if ac_fn_c_try_cpp "$LINENO"; then :
1620 ac_header_preproc=yes
1622 ac_header_preproc=no
1624 rm -f conftest.err conftest.$ac_ext
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1626 $as_echo "$ac_header_preproc" >&6; }
1628 # So? What about this header?
1629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1632 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1638 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1640 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1642 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1644 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652 $as_echo_n "(cached) " >&6
1654 eval "$3=\$ac_header_compiler"
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 } # ac_fn_c_check_header_mongrel
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1674 *) ac_try_echo
=$ac_try;;
1676 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=$ac_status
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1723 if ac_fn_c_try_compile "$LINENO"; then :
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 } # ac_fn_c_check_header_compile
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1747 *) ac_try_echo
=$ac_try;;
1749 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1753 if test -s conftest.err
; then
1754 grep -v '^ *+' conftest.err
>conftest.er1
1755 cat conftest.er1
>&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest
$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 $as_test_x conftest
$ac_exeext
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.
$ac_ext >&5
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1781 } # ac_fn_c_try_link
1783 # ac_fn_c_check_func LINENO FUNC VAR
1784 # ----------------------------------
1785 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1786 ac_fn_c_check_func
()
1788 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 $as_echo_n "(cached) " >&6
1794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798 #define $2 innocuous_$2
1800 /* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below.
1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1803 <limits.h> exists even on freestanding compilers. */
1806 # include <limits.h>
1808 # include <assert.h>
1813 /* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined __stub_$2 || defined __stub___$2
1835 if ac_fn_c_try_link
"$LINENO"; then :
1840 rm -f core conftest.err conftest.
$ac_objext \
1841 conftest
$ac_exeext conftest.
$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1848 } # ac_fn_c_check_func
1849 cat >config.log
<<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1853 It was created by $as_me, which was
1854 generated by GNU Autoconf 2.64. Invocation command line was
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir
=.
1890 $as_echo "PATH: $as_dir"
1906 # Keep a trace of the command line.
1907 # Strip out --no-create and --no-recursion so they do not pile up.
1908 # Strip out --silent because we don't want to record it for future runs.
1909 # Also quote any args containing shell meta-characters.
1910 # Make two passes to allow for proper duplicate-argument suppression.
1914 ac_must_keep_next
=false
1920 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1921 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1922 |
-silent |
--silent |
--silen |
--sile |
--sil)
1925 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1930 as_fn_append ac_configure_args1
" '$ac_arg'"
1931 if test $ac_must_keep_next = true
; then
1932 ac_must_keep_next
=false
# Got value, back to normal.
1935 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1936 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1937 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1938 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1939 case "$ac_configure_args0 " in
1940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 -* ) ac_must_keep_next
=true
;;
1946 as_fn_append ac_configure_args
" '$ac_arg'"
1951 { ac_configure_args0
=; unset ac_configure_args0
;}
1952 { ac_configure_args1
=; unset ac_configure_args1
;}
1954 # When interrupted or exit'd, cleanup temporary files, and complete
1955 # config.log. We remove comments because anyway the quotes in there
1956 # would cause problems or look ugly.
1957 # WARNING: Use '\'' to represent an apostrophe within the trap.
1958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959 trap 'exit_status=$?
1960 # Save into config.log some information that might help in debugging.
1965 ## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##
1970 # The following way of writing the cache mishandles newlines in values,
1972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973 eval ac_val=\$$ac_var
1977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981 _ | IFS | as_nl) ;; #(
1982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1983 *) { eval $ac_var=; unset $ac_var;} ;;
1988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989 *${as_nl}ac_space=\ *)
1991 "s/'\''/'\''\\\\'\'''\''/g;
1992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003 ## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##
2008 for ac_var in $ac_subst_vars
2010 eval ac_val=\$$ac_var
2012 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 $as_echo "$ac_var='\''$ac_val'\''"
2018 if test -n "$ac_subst_files"; then
2020 ## ------------------- ##
2021 ## File substitutions. ##
2022 ## ------------------- ##
2025 for ac_var
in $ac_subst_files
2027 eval ac_val
=\$
$ac_var
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 $as_echo "$ac_var='\''$ac_val'\''"
2036 if test -s confdefs.h; then
2046 test "$ac_signal" != 0 &&
2047 $as_echo "$as_me: caught signal $ac_signal"
2048 $as_echo "$as_me: exit $exit_status"
2050 rm -f core *.core core.conftest.* &&
2051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054 for ac_signal
in 1 2 13 15; do
2055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest
* confdefs.h
2062 $as_echo "/* confdefs.h */" > confdefs.h
2064 # Predefined preprocessor variables.
2066 cat >>confdefs.h
<<_ACEOF
2067 #define PACKAGE_NAME "$PACKAGE_NAME"
2070 cat >>confdefs.h
<<_ACEOF
2071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2074 cat >>confdefs.h
<<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2078 cat >>confdefs.h
<<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2082 cat >>confdefs.h
<<_ACEOF
2083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 cat >>confdefs.h
<<_ACEOF
2087 #define PACKAGE_URL "$PACKAGE_URL"
2091 # Let the site file select an alternate cache file if it wants to.
2092 # Prefer an explicitly selected file to automatically selected ones.
2095 if test -n "$CONFIG_SITE"; then
2096 ac_site_file1
=$CONFIG_SITE
2097 elif test "x$prefix" != xNONE
; then
2098 ac_site_file1
=$prefix/share
/config.site
2099 ac_site_file2
=$prefix/etc
/config.site
2101 ac_site_file1
=$ac_default_prefix/share
/config.site
2102 ac_site_file2
=$ac_default_prefix/etc
/config.site
2104 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2106 test "x$ac_site_file" = xNONE
&& continue
2107 if test -r "$ac_site_file"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2110 sed 's/^/| /' "$ac_site_file" >&5
2115 if test -r "$cache_file"; then
2116 # Some versions of bash will fail to source /dev/null (special
2117 # files actually), so we avoid doing that.
2118 if test -f "$cache_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2120 $as_echo "$as_me: loading cache $cache_file" >&6;}
2122 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2123 *) .
"./$cache_file";;
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2128 $as_echo "$as_me: creating cache $cache_file" >&6;}
2132 # Check that the precious variables saved in the cache have kept the same
2134 ac_cache_corrupted
=false
2135 for ac_var
in $ac_precious_vars; do
2136 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2137 eval ac_new_set
=\
$ac_env_${ac_var}_set
2138 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2139 eval ac_new_val
=\
$ac_env_${ac_var}_value
2140 case $ac_old_set,$ac_new_set in
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2143 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2144 ac_cache_corrupted
=: ;;
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2147 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2148 ac_cache_corrupted
=: ;;
2151 if test "x$ac_old_val" != "x$ac_new_val"; then
2152 # differences in whitespace do not lead to failure.
2153 ac_old_val_w
=`echo x $ac_old_val`
2154 ac_new_val_w
=`echo x $ac_new_val`
2155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2157 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2158 ac_cache_corrupted
=:
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2161 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2162 eval $ac_var=\
$ac_old_val
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2165 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2167 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2170 # Pass precious variables to config.status.
2171 if test "$ac_new_set" = set; then
2173 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 *) ac_arg
=$ac_var=$ac_new_val ;;
2176 case " $ac_configure_args " in
2177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2178 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2182 if $ac_cache_corrupted; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2186 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2187 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2189 ## -------------------- ##
2190 ## Main body of script. ##
2191 ## -------------------- ##
2194 ac_cpp
='$CPP $CPPFLAGS'
2195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2200 # This file contains common code used by all simulators.
2202 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2203 # directory. It is intended to be invoked before any target specific stuff.
2204 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2205 # It is intended to be invoked last.
2207 # The simulator's configure.in should look like:
2209 # dnl Process this file with autoconf to produce a configure script.
2210 # AC_PREREQ(2.64)dnl
2211 # AC_INIT(Makefile.in)
2212 # sinclude(../common/aclocal.m4)
2216 # ... target specific stuff ...
2220 # Include global overrides and fixes for Autoconf.
2247 # _AC_CHECK_DECL_BODY
2248 # -------------------
2249 # Shell function body for AC_CHECK_DECL.
2250 # _AC_CHECK_DECL_BODY
2252 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2254 # -------------------------------------------------------------
2255 # Helper to AC_CHECK_DECLS, which generates the check for a single
2256 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2257 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2270 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
2271 # Free Software Foundation, Inc.
2273 # This file is free software; the Free Software Foundation
2274 # gives unlimited permission to copy and/or distribute it,
2275 # with or without modifications, as long as this notice is preserved.
2279 # Based on depend.m4 from automake 1.9, modified for standalone use in
2280 # an environment where GNU make is required.
2282 # ZW_PROG_COMPILER_DEPENDENCIES
2283 # -----------------------------
2284 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
2285 # sets fooDEPMODE accordingly. Cache-variable compatible with
2286 # original; not side-effect compatible. As the users of this macro
2287 # may require accurate dependencies for correct builds, it does *not*
2288 # honor --disable-dependency-checking, and failure to detect a usable
2289 # method is an error. depcomp is assumed to be located in
2292 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
2298 # Choose a directory name for dependency files.
2303 # As AM_SET_DEPDIR, but also create the directory at config.status time.
2354 sim_inline
="-DDEFAULT_INLINE=0"
2391 # intl sister-directory configuration rules.
2394 # The idea behind this macro is that there's no need to repeat all the
2395 # autoconf probes done by the intl directory - it's already done them
2396 # for us. In fact, there's no need even to look at the cache for the
2397 # answers. All we need to do is nab a few pieces of information.
2398 # The intl directory is set up to make this easy, by generating a
2399 # small file which can be sourced as a shell script; then we produce
2400 # the necessary substitutions and definitions for this directory.
2404 # Autoconf M4 include file defining utility macros for complex Canadian
2416 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2418 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2421 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2422 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2426 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2427 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2431 # Backported from Autoconf 2.5x; can go away when and if
2432 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2437 # ACX_HAVE_GCC_FOR_TARGET
2438 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2441 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2442 # Searching for installed target binutils. We need to take extra care,
2443 # else we may find the wrong assembler, linker, etc., and lose.
2445 # First try --with-build-time-tools, if specified.
2447 # For build != host, we ask the installed GCC for the name of the tool it
2448 # uses, and accept it if it is an absolute path. This is because the
2449 # only good choice for a compiler is the same GCC version that is being
2450 # installed (or we couldn't make target libraries), and we assume that
2451 # on the host system we'll have not only the same GCC version, but also
2452 # the same binutils version.
2454 # For build == host, search the same directories that the installed
2455 # compiler will search. We used to do this for the assembler, linker,
2456 # and nm only; for simplicity of configuration, however, we extend this
2457 # criterion to tools (such as ar and ranlib) that are never invoked by
2458 # the compiler, to avoid mismatches.
2460 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2461 # if build == target. This makes the most sense only when bootstrapping,
2462 # but we also do so when build != host. In this case, we hope that the
2463 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2465 # If we do not find a suitable binary, then try the user's path.
2469 # AC_PROG_CPP_WERROR
2470 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2471 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2472 # For now, using this also overrides header checks to use only the
2473 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2474 # bit harder from here).
2475 # Eventually autoconf will default to checking headers with the compiler
2476 # instead, and we'll have to do this differently.
2478 # AC_PROG_CPP_WERROR
2481 # We require the gnatbind & gnatmake programs, as well as a compiler driver
2482 # that understands Ada. We use the user's CC setting, already found, and
2483 # possibly add $1 to the command-line parameters.
2485 # Sets the shell variable have_gnat to yes or no as appropriate, and
2486 # substitutes GNATBIND and GNATMAKE.
2513 ac_cpp
='$CPP $CPPFLAGS'
2514 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2517 if test -n "$ac_tool_prefix"; then
2518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2519 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then :
2523 $as_echo_n "(cached) " >&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC
="$CC" # Let the user override the test.
2528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir
=.
2533 for ac_exec_ext
in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 if test -n "$CC"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2548 $as_echo "$CC" >&6; }
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2556 if test -z "$ac_cv_prog_CC"; then
2558 # Extract the first word of "gcc", so it can be a program name with args.
2559 set dummy gcc
; ac_word
=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$ac_ct_CC"; then
2566 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir
=.
2573 for ac_exec_ext
in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_ac_ct_CC
="gcc"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2586 if test -n "$ac_ct_CC"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2588 $as_echo "$ac_ct_CC" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2594 if test "x$ac_ct_CC" = x
; then
2597 case $cross_compiling:$ac_tool_warned in
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2601 ac_tool_warned
=yes ;;
2609 if test -z "$CC"; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2612 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if test "${ac_cv_prog_CC+set}" = set; then :
2616 $as_echo_n "(cached) " >&6
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC
="$CC" # Let the user override the test.
2621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir
=.
2626 for ac_exec_ext
in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 if test -n "$CC"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641 $as_echo "$CC" >&6; }
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2650 if test -z "$CC"; then
2651 # Extract the first word of "cc", so it can be a program name with args.
2652 set dummy cc
; ac_word
=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_CC+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC
="$CC" # Let the user override the test.
2662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir
=.
2667 for ac_exec_ext
in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2670 ac_prog_rejected
=yes
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 if test $ac_prog_rejected = yes; then
2682 # We found a bogon in the path, so make sure we never use it.
2683 set dummy
$ac_cv_prog_CC
2685 if test $# != 0; then
2686 # We chose a different compiler from the bogus one.
2687 # However, it has the same basename, so the bogon will be chosen
2688 # first if we set CC to just the basename; use the full file name.
2690 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2696 if test -n "$CC"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2698 $as_echo "$CC" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2706 if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2708 for ac_prog
in cl.exe
2710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2711 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if test "${ac_cv_prog_CC+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC
="$CC" # Let the user override the test.
2720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2724 test -z "$as_dir" && as_dir
=.
2725 for ac_exec_ext
in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 if test -n "$CC"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740 $as_echo "$CC" >&6; }
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2747 test -n "$CC" && break
2750 if test -z "$CC"; then
2752 for ac_prog
in cl.exe
2754 # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 set dummy
$ac_prog; ac_word
=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$ac_ct_CC"; then
2762 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir
=.
2769 for ac_exec_ext
in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_ac_ct_CC
="$ac_prog"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2784 $as_echo "$ac_ct_CC" >&6; }
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2791 test -n "$ac_ct_CC" && break
2794 if test "x$ac_ct_CC" = x
; then
2797 case $cross_compiling:$ac_tool_warned in
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801 ac_tool_warned
=yes ;;
2810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 as_fn_error
"no acceptable C compiler found in \$PATH
2813 See \`config.log' for more details." "$LINENO" 5; }
2815 # Provide some information about the compiler.
2816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2819 for ac_option
in --version -v -V -qversion; do
2820 { { ac_try
="$ac_compiler $ac_option >&5"
2822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826 $as_echo "$ac_try_echo"; } >&5
2827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2829 if test -s conftest.err; then
2831 ... rest of stderr output deleted ...
2832 10q' conftest.err >conftest.er1
2833 cat conftest.er1 >&5
2834 rm -f conftest.er1 conftest.err
2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837 test $ac_status = 0; }
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h. */
2851 ac_clean_files_save=$ac_clean_files
2852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2853 # Try to create an executable without -o first, disregard a.out.
2854 # It will help us diagnose broken compilers, and finding out an intuition
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2857 $as_echo_n "checking for C compiler default output file name... " >&6; }
2858 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2860 # The possible output files:
2861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2864 for ac_file in $ac_files
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873 if { { ac_try="$ac_link_default"
2875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2876 *) ac_try_echo
=$ac_try;;
2878 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879 $as_echo "$ac_try_echo"; } >&5
2880 (eval "$ac_link_default") 2>&5
2882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883 test $ac_status = 0; }; then :
2884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2887 # so that the user can short-circuit this test for compilers unknown to
2889 for ac_file
in $ac_files ''
2891 test -f "$ac_file" ||
continue
2893 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2896 # We found the default executable, but exeext='' is most
2900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2902 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 # We set ac_cv_exeext here because the later test for it is not
2905 # safe: cross compilers may not add the suffix if given an `-o'
2906 # argument, so we may need to know it at that point already.
2907 # Even if this section looks crufty: it has the advantage of
2914 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2920 $as_echo "$ac_file" >&6; }
2921 if test -z "$ac_file"; then :
2922 $as_echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.
$ac_ext >&5
2925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927 { as_fn_set_status
77
2928 as_fn_error
"C compiler cannot create executables
2929 See \`config.log' for more details." "$LINENO" 5; }; }
2931 ac_exeext
=$ac_cv_exeext
2933 # Check that the compiler produces executables we can run. If not, either
2934 # the compiler is broken, or we cross compile.
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2936 $as_echo_n "checking whether the C compiler works... " >&6; }
2937 # If not cross compiling, check that we can run a simple program.
2938 if test "$cross_compiling" != yes; then
2939 if { ac_try
='./$ac_file'
2940 { { case "(($ac_try" in
2941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2945 $as_echo "$ac_try_echo"; } >&5
2946 (eval "$ac_try") 2>&5
2948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2949 test $ac_status = 0; }; }; then
2952 if test "$cross_compiling" = maybe; then
2955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957 as_fn_error "cannot run C compiled programs.
2958 If you meant to cross compile
, use \
`--host'.
2959 See \`config.log
' for more details." "$LINENO" 5; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2964 $as_echo "yes" >&6; }
2966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2967 ac_clean_files=$ac_clean_files_save
2968 # Check that the compiler produces executables we can run. If not, either
2969 # the compiler is broken, or we cross compile.
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2971 $as_echo_n "checking whether we are cross compiling... " >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2973 $as_echo "$cross_compiling" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2976 $as_echo_n "checking for suffix of executables... " >&6; }
2977 if { { ac_try="$ac_link"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_link") 2>&5
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2989 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2990 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2992 for ac_file
in conftest.exe conftest conftest.
*; do
2993 test -f "$ac_file" ||
continue
2995 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2996 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details." "$LINENO" 5; }
3007 rm -f conftest
$ac_cv_exeext
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3009 $as_echo "$ac_cv_exeext" >&6; }
3011 rm -f conftest.
$ac_ext
3012 EXEEXT
=$ac_cv_exeext
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3015 $as_echo_n "checking for suffix of object files... " >&6; }
3016 if test "${ac_cv_objext+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3030 rm -f conftest.o conftest.obj
3031 if { { ac_try
="$ac_compile"
3033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_compile") 2>&5
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; then :
3042 for ac_file in conftest.o conftest.obj conftest.*; do
3043 test -f "$ac_file" || continue;
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3051 $as_echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error "cannot compute suffix of object files
: cannot compile
3057 See \
`config.log' for more details." "$LINENO" 5; }
3059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3062 $as_echo "$ac_cv_objext" >&6; }
3063 OBJEXT=$ac_cv_objext
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3067 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3084 if ac_fn_c_try_compile "$LINENO"; then :
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3095 if test $ac_compiler_gnu = yes; then
3100 ac_test_CFLAGS=${CFLAGS+set}
3101 ac_save_CFLAGS=$CFLAGS
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3104 if test "${ac_cv_prog_cc_g+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3107 ac_save_c_werror_flag=$ac_c_werror_flag
3108 ac_c_werror_flag=yes
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3122 if ac_fn_c_try_compile "$LINENO"; then :
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3137 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_c_werror_flag=$ac_save_c_werror_flag
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3153 if ac_fn_c_try_compile "$LINENO"; then :
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3164 $as_echo "$ac_cv_prog_cc_g" >&6; }
3165 if test "$ac_test_CFLAGS" = set; then
3166 CFLAGS=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168 if test "$GCC" = yes; then
3174 if test "$GCC" = yes; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3182 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3185 ac_cv_prog_cc_c89=no
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3191 #include <sys/types.h>
3192 #include <sys/stat.h>
3193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3194 struct buf { int x; };
3195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3196 static char *e (p, i)
3202 static char *f (char * (*g) (char **, int), char **p, ...)
3207 s = g (p, va_arg (v,int));
3212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3213 function prototypes and stuff, but not '\xHH' hex character constants.
3214 These don't provoke an error unfortunately, instead are silently treated
3215 as 'x'. The following induces an error, until -std is added to get
3216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3217 array size at least. It's necessary to write '\x00'==0 to get something
3218 that's true only with -std. */
3219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3222 inside strings and character constants. */
3224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3226 int test (int i, double x);
3227 struct s1 {int (*f) (int a);};
3228 struct s2 {int (*f) (double a);};
3229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243 CC="$ac_save_CC $ac_arg"
3244 if ac_fn_c_try_compile "$LINENO"; then :
3245 ac_cv_prog_cc_c89=$ac_arg
3247 rm -f core conftest.err conftest.$ac_objext
3248 test "x$ac_cv_prog_cc_c89" != "xno" && break
3250 rm -f conftest.$ac_ext
3255 case "x$ac_cv_prog_cc_c89" in
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3258 $as_echo "none needed" >&6; } ;;
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3261 $as_echo "unsupported" >&6; } ;;
3263 CC="$CC $ac_cv_prog_cc_c89"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3267 if test "x$ac_cv_prog_cc_c89" != xno; then :
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3279 for ac_t in install-sh install.sh shtool; do
3280 if test -f "$ac_dir/$ac_t"; then
3282 ac_install_sh="$ac_aux_dir/$ac_t -c"
3287 if test -z "$ac_aux_dir"; then
3288 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3291 # These three variables are undocumented and unsupported,
3292 # and are intended to be withdrawn in a future Autoconf release.
3293 # They can cause serious problems if a builder's source tree is in a directory
3294 # whose full name contains unusual characters.
3295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3300 # Make sure we can run config.sub.
3301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3302 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3305 $as_echo_n "checking build system type... " >&6; }
3306 if test "${ac_cv_build+set}" = set; then :
3307 $as_echo_n "(cached) " >&6
3309 ac_build_alias=$build_alias
3310 test "x$ac_build_alias" = x &&
3311 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3312 test "x$ac_build_alias" = x &&
3313 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3314 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3315 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3319 $as_echo "$ac_cv_build" >&6; }
3320 case $ac_cv_build in
3322 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3325 ac_save_IFS=$IFS; IFS='-'
3331 # Remember, the first character of IFS is used to create $*,
3332 # except with old shells:
3335 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3339 $as_echo_n "checking host system type... " >&6; }
3340 if test "${ac_cv_host+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3343 if test "x$host_alias" = x; then
3344 ac_cv_host=$ac_cv_build
3346 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3347 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3352 $as_echo "$ac_cv_host" >&6; }
3355 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3358 ac_save_IFS=$IFS; IFS='-'
3364 # Remember, the first character of IFS is used to create $*,
3365 # except with old shells:
3368 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3372 $as_echo_n "checking target system type... " >&6; }
3373 if test "${ac_cv_target+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3376 if test "x$target_alias" = x; then
3377 ac_cv_target=$ac_cv_host
3379 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3380 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3385 $as_echo "$ac_cv_target" >&6; }
3386 case $ac_cv_target in
3388 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3390 target=$ac_cv_target
3391 ac_save_IFS=$IFS; IFS='-'
3397 # Remember, the first character of IFS is used to create $*,
3398 # except with old shells:
3401 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3404 # The aliases save the names the user supplied, while $host etc.
3405 # will get canonicalized.
3406 test -n "$target_alias" &&
3407 test "$program_prefix$program_suffix$program_transform_name" = \
3409 program_prefix=${target_alias}-
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3417 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3418 # On Suns, sometimes $CPP names a directory.
3419 if test -n "$CPP" && test -d "$CPP"; then
3422 if test -z "$CPP"; then
3423 if test "${ac_cv_prog_CPP+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3426 # Double quotes because CPP needs to be expanded
3427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3430 for ac_c_preproc_warn_flag in '' yes
3432 # Use a header file that comes with gcc, so configuring glibc
3433 # with a fresh cross-compiler works.
3434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435 # <limits.h> exists even on freestanding compilers.
3436 # On the NeXT, cc -E runs the code through the compiler's parser,
3437 # not just through cpp. "Syntax error" is here to catch this case.
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3441 # include <limits.h>
3443 # include <assert.h>
3447 if ac_fn_c_try_cpp "$LINENO"; then :
3450 # Broken: fails on valid input.
3453 rm -f conftest.err conftest.$ac_ext
3455 # OK, works on sane cases. Now check whether nonexistent headers
3456 # can be detected and how.
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 #include <ac_nonexistent.h>
3461 if ac_fn_c_try_cpp "$LINENO"; then :
3462 # Broken: success on invalid input.
3465 # Passes both tests.
3469 rm -f conftest.err conftest.$ac_ext
3472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3473 rm -f conftest.err conftest.
$ac_ext
3474 if $ac_preproc_ok; then :
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3487 $as_echo "$CPP" >&6; }
3489 for ac_c_preproc_warn_flag
in '' yes
3491 # Use a header file that comes with gcc, so configuring glibc
3492 # with a fresh cross-compiler works.
3493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3494 # <limits.h> exists even on freestanding compilers.
3495 # On the NeXT, cc -E runs the code through the compiler's parser,
3496 # not just through cpp. "Syntax error" is here to catch this case.
3497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3500 # include <limits.h>
3502 # include <assert.h>
3506 if ac_fn_c_try_cpp
"$LINENO"; then :
3509 # Broken: fails on valid input.
3512 rm -f conftest.err conftest.
$ac_ext
3514 # OK, works on sane cases. Now check whether nonexistent headers
3515 # can be detected and how.
3516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518 #include <ac_nonexistent.h>
3520 if ac_fn_c_try_cpp
"$LINENO"; then :
3521 # Broken: success on invalid input.
3524 # Passes both tests.
3528 rm -f conftest.err conftest.
$ac_ext
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.
$ac_ext
3533 if $ac_preproc_ok; then :
3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3539 See \`config.log' for more details." "$LINENO" 5; }
3543 ac_cpp
='$CPP $CPPFLAGS'
3544 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3550 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3551 if test "${ac_cv_path_GREP+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -z "$GREP"; then
3555 ac_path_GREP_found
=false
3556 # Loop through the user's path and test for each of PROGNAME-LIST
3557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3561 test -z "$as_dir" && as_dir
=.
3562 for ac_prog
in grep ggrep
; do
3563 for ac_exec_ext
in '' $ac_executable_extensions; do
3564 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3566 # Check for GNU ac_path_GREP and select it if it is found.
3567 # Check for GNU $ac_path_GREP
3568 case `"$ac_path_GREP" --version 2>&1` in
3570 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3573 $as_echo_n 0123456789 >"conftest.in"
3576 cat "conftest.in" "conftest.in" >"conftest.tmp"
3577 mv "conftest.tmp" "conftest.in"
3578 cp "conftest.in" "conftest.nl"
3579 $as_echo 'GREP' >> "conftest.nl"
3580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3582 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3584 # Best one so far, save it but keep looking for a better one
3585 ac_cv_path_GREP
="$ac_path_GREP"
3586 ac_path_GREP_max
=$ac_count
3588 # 10*(2^10) chars as input seems more than enough
3589 test $ac_count -gt 10 && break
3591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3594 $ac_path_GREP_found && break 3
3599 if test -z "$ac_cv_path_GREP"; then
3600 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603 ac_cv_path_GREP
=$GREP
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3608 $as_echo "$ac_cv_path_GREP" >&6; }
3609 GREP
="$ac_cv_path_GREP"
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3613 $as_echo_n "checking for egrep... " >&6; }
3614 if test "${ac_cv_path_EGREP+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3617 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3618 then ac_cv_path_EGREP
="$GREP -E"
3620 if test -z "$EGREP"; then
3621 ac_path_EGREP_found
=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3624 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3627 test -z "$as_dir" && as_dir
=.
3628 for ac_prog
in egrep; do
3629 for ac_exec_ext
in '' $ac_executable_extensions; do
3630 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3632 # Check for GNU ac_path_EGREP and select it if it is found.
3633 # Check for GNU $ac_path_EGREP
3634 case `"$ac_path_EGREP" --version 2>&1` in
3636 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3639 $as_echo_n 0123456789 >"conftest.in"
3642 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl"
3645 $as_echo 'EGREP' >> "conftest.nl"
3646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3647 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3648 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_EGREP
="$ac_path_EGREP"
3652 ac_path_EGREP_max
=$ac_count
3654 # 10*(2^10) chars as input seems more than enough
3655 test $ac_count -gt 10 && break
3657 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3660 $ac_path_EGREP_found && break 3
3665 if test -z "$ac_cv_path_EGREP"; then
3666 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3669 ac_cv_path_EGREP
=$EGREP
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3675 $as_echo "$ac_cv_path_EGREP" >&6; }
3676 EGREP
="$ac_cv_path_EGREP"
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3680 $as_echo_n "checking for ANSI C header files... " >&6; }
3681 if test "${ac_cv_header_stdc+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
3684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3699 if ac_fn_c_try_compile
"$LINENO"; then :
3700 ac_cv_header_stdc
=yes
3702 ac_cv_header_stdc
=no
3704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3706 if test $ac_cv_header_stdc = yes; then
3707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 $EGREP "memchr" >/dev
/null
2>&1; then :
3717 ac_cv_header_stdc
=no
3723 if test $ac_cv_header_stdc = yes; then
3724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3731 $EGREP "free" >/dev
/null
2>&1; then :
3734 ac_cv_header_stdc
=no
3740 if test $ac_cv_header_stdc = yes; then
3741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3742 if test "$cross_compiling" = yes; then :
3745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3749 #if ((' ' & 0x0FF) == 0x020)
3750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3753 # define ISLOWER(c) \
3754 (('a' <= (c) && (c) <= 'i') \
3755 || ('j' <= (c) && (c) <= 'r') \
3756 || ('s' <= (c) && (c) <= 'z'))
3757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3765 for (i = 0; i < 256; i++)
3766 if (XOR (islower (i), ISLOWER (i))
3767 || toupper (i) != TOUPPER (i))
3772 if ac_fn_c_try_run
"$LINENO"; then :
3775 ac_cv_header_stdc
=no
3777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3784 $as_echo "$ac_cv_header_stdc" >&6; }
3785 if test $ac_cv_header_stdc = yes; then
3787 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3792 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3793 inttypes.h stdint.h unistd.h
3795 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3796 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3798 eval as_val
=\$
$as_ac_Header
3799 if test "x$as_val" = x
""yes; then :
3800 cat >>confdefs.h
<<_ACEOF
3801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3810 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3811 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3818 if test "$MINIX" = yes; then
3820 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3823 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3826 $as_echo "#define _MINIX 1" >>confdefs.h
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3832 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3833 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3839 # define __EXTENSIONS__ 1
3840 $ac_includes_default
3849 if ac_fn_c_try_compile
"$LINENO"; then :
3850 ac_cv_safe_to_define___extensions__
=yes
3852 ac_cv_safe_to_define___extensions__
=no
3854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3857 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3858 test $ac_cv_safe_to_define___extensions__ = yes &&
3859 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3861 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3863 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3865 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3867 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3870 test "$program_prefix" != NONE
&&
3871 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3872 # Use a double $ so make ignores it.
3873 test "$program_suffix" != NONE
&&
3874 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3875 # Double any \ or $.
3876 # By default was `s,x,x', remove it if useless.
3877 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3878 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3880 # Find a good install program. We prefer a C program (faster),
3881 # so one script is as good as another. But avoid the broken or
3882 # incompatible versions:
3883 # SysV /etc/install, /usr/sbin/install
3884 # SunOS /usr/etc/install
3885 # IRIX /sbin/install
3887 # AmigaOS /C/install, which installs bootblocks on floppy discs
3888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3891 # OS/2's system install, which has a completely different semantic
3892 # ./install, which can be erroneously created by make from ./install.sh.
3893 # Reject install programs that cannot install multiple files.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3895 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3896 if test -z "$INSTALL"; then
3897 if test "${ac_cv_path_install+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3904 test -z "$as_dir" && as_dir
=.
3905 # Account for people who put trailing slashes in PATH elements.
3906 case $as_dir/ in #((
3907 .
/ | .
// |
/[cC
]/* | \
3908 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3909 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3912 # OSF1 and SCO ODT 3.0 have their own names for install.
3913 # Don't use installbsd from OSF since it installs stuff as root
3915 for ac_prog
in ginstall scoinst
install; do
3916 for ac_exec_ext
in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3918 if test $ac_prog = install &&
3919 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3920 # AIX install. It has an incompatible calling convention.
3922 elif test $ac_prog = install &&
3923 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3924 # program-specific install script used by HP pwplus--don't use.
3927 rm -rf conftest.one conftest.two conftest.dir
3928 echo one
> conftest.one
3929 echo two
> conftest.two
3931 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3932 test -s conftest.one
&& test -s conftest.two
&&
3933 test -s conftest.dir
/conftest.one
&&
3934 test -s conftest.dir
/conftest.two
3936 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3949 rm -rf conftest.one conftest.two conftest.dir
3952 if test "${ac_cv_path_install+set}" = set; then
3953 INSTALL
=$ac_cv_path_install
3955 # As a last resort, use the slow shell script. Don't cache a
3956 # value for INSTALL within a source directory, because that will
3957 # break other packages using the cache if that directory is
3958 # removed, or if the value is a relative name.
3959 INSTALL
=$ac_install_sh
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3963 $as_echo "$INSTALL" >&6; }
3965 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3966 # It thinks the first close brace ends the variable substitution.
3967 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3969 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3971 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3973 rm -rf .tst
2>/dev
/null
3974 mkdir .tst
2>/dev
/null
3975 if test -d .tst
; then
3980 rmdir .tst
2>/dev
/null
3982 DEPDIR
="${am__leading_dot}deps"
3986 # autoconf.info says this should be called right after AC_INIT.
3987 ac_config_headers
="$ac_config_headers config.h:config.in"
3994 # Put a plausible default for CC_FOR_BUILD in Makefile.
3995 if test "x$cross_compiling" = "xno"; then
3996 CC_FOR_BUILD
='$(CC)'
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4008 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4014 if test -n "$RANLIB"; then
4015 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir
=.
4022 for ac_exec_ext
in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 RANLIB
=$ac_cv_prog_RANLIB
4035 if test -n "$RANLIB"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4037 $as_echo "$RANLIB" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4045 if test -z "$ac_cv_prog_RANLIB"; then
4046 ac_ct_RANLIB
=$RANLIB
4047 # Extract the first word of "ranlib", so it can be a program name with args.
4048 set dummy ranlib
; ac_word
=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4054 if test -n "$ac_ct_RANLIB"; then
4055 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir
=.
4062 for ac_exec_ext
in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4075 if test -n "$ac_ct_RANLIB"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4077 $as_echo "$ac_ct_RANLIB" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4083 if test "x$ac_ct_RANLIB" = x
; then
4086 case $cross_compiling:$ac_tool_warned in
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned
=yes ;;
4092 RANLIB
=$ac_ct_RANLIB
4095 RANLIB
="$ac_cv_prog_RANLIB"
4099 # Dependency checking.
4100 ac_config_commands
="$ac_config_commands depdir"
4103 depcc
="$CC" am_compiler_list
=
4105 am_depcomp
=$ac_aux_dir/depcomp
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107 $as_echo_n "checking dependency style of $depcc... " >&6; }
4108 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4111 if test -f "$am_depcomp"; then
4112 # We make a subdir and do the tests there. Otherwise we can end up
4113 # making bogus files that we don't know about and never remove. For
4114 # instance it was reported that on HP-UX the gcc test will end up
4115 # making a dummy file named `D' -- because `-MD' means `put the output
4118 # Copy depcomp to subdir because otherwise we won't find it if we're
4119 # using a relative directory.
4120 cp "$am_depcomp" conftest.dir
4122 # We will build objects and dependencies in a subdirectory because
4123 # it helps to detect inapplicable dependency modes. For instance
4124 # both Tru64's cc and ICC support -MD to output dependencies as a
4125 # side effect of compilation, but ICC will put the dependencies in
4126 # the current directory while Tru64 will put them in the object
4130 am_cv_CC_dependencies_compiler_type
=none
4131 if test "$am_compiler_list" = ""; then
4132 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4134 for depmode
in $am_compiler_list; do
4135 if test $depmode = none
; then break; fi
4137 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4138 # Setup a source with many dependencies, because some compilers
4139 # like to wrap large dependency lists on column 80 (with \), and
4140 # we should not choose a depcomp mode which is confused by this.
4142 # We need to recreate these files for each test, as the compiler may
4143 # overwrite some of them when testing with obscure command lines.
4144 # This happens at least with the AIX C compiler.
4146 for i
in 1 2 3 4 5 6; do
4147 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4148 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4149 # Solaris 8's {/usr,}/bin/sh.
4150 touch sub
/conftst
$i.h
4152 echo "include sub/conftest.Po" > confmf
4154 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4155 # mode. It turns out that the SunPro C++ compiler does not properly
4156 # handle `-M -o', and we need to detect this.
4157 depcmd
="depmode=$depmode \
4158 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4160 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4161 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4162 if env
$depcmd > conftest.err
2>&1 &&
4163 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4164 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4165 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4166 # icc doesn't choke on unknown options, it will just issue warnings
4167 # or remarks (even with -Werror). So we grep stderr for any message
4168 # that says an option was ignored or not supported.
4169 # When given -MP, icc 7.0 and 7.1 complain thusly:
4170 # icc: Command line warning: ignoring option '-M'; no argument required
4171 # The diagnosis changed in icc 8.0:
4172 # icc: Command line remark: option '-MP' not supported
4173 if (grep 'ignoring option' conftest.err ||
4174 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4175 am_cv_CC_dependencies_compiler_type
=$depmode
4176 $as_echo "$as_me:$LINENO: success" >&5
4180 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4181 sed -e 's/^/| /' < conftest.err
>&5
4187 am_cv_CC_dependencies_compiler_type
=none
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4194 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4195 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4200 # Check for the 'make' the user wants to use.
4203 # Extract the first word of "$ac_prog", so it can be a program name with args.
4204 set dummy
$ac_prog; ac_word
=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if test "${ac_cv_prog_MAKE+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4210 if test -n "$MAKE"; then
4211 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir
=.
4218 for ac_exec_ext
in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_MAKE
="$ac_prog"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 MAKE
=$ac_cv_prog_MAKE
4231 if test -n "$MAKE"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4233 $as_echo "$MAKE" >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4240 test -n "$MAKE" && break
4244 case "`$MAKE --version 2>&1 | sed 1q`" in
4249 if test "$MAKE_IS_GNU" = yes; then
4259 # If we haven't got the data from the intl directory,
4260 # assume NLS is disabled.
4269 if test -f ..
/..
/intl
/config.intl
; then
4270 . ..
/..
/intl
/config.intl
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4273 $as_echo_n "checking whether NLS is requested... " >&6; }
4274 if test x
"$USE_NLS" != xyes
; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4279 $as_echo "yes" >&6; }
4281 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4285 $as_echo_n "checking for catalogs to be installed... " >&6; }
4286 # Look for .po and .gmo files in the source directory.
4289 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4290 # If there aren't any .gmo files the shell will give us the
4291 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4293 case "$cat" in *\
**)
4296 # The quadruple backslash is collapsed to a double backslash
4297 # by the backticks, then collapsed again by the double quotes,
4298 # leaving us with one backslash in the sed expression (right
4299 # before the dot that mustn't act as a wildcard).
4300 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4301 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4302 # The user is allowed to set LINGUAS to a list of languages to
4303 # install catalogs for. If it's empty that means "all of them."
4304 if test "x$LINGUAS" = x
; then
4305 CATALOGS
="$CATALOGS $cat"
4306 XLINGUAS
="$XLINGUAS $lang"
4308 case "$LINGUAS" in *$lang*)
4309 CATALOGS
="$CATALOGS $cat"
4310 XLINGUAS
="$XLINGUAS $lang"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4317 $as_echo "$LINGUAS" >&6; }
4330 # Check for common headers.
4331 # FIXME: Seems to me this can cause problems for i386-windows hosts.
4332 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
4333 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4335 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4336 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4337 eval as_val
=\$
$as_ac_Header
4338 if test "x$as_val" = x
""yes; then :
4339 cat >>confdefs.h
<<_ACEOF
4340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 for ac_header
in sys
/time.h sys
/resource.h
4349 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4351 eval as_val
=\$
$as_ac_Header
4352 if test "x$as_val" = x
""yes; then :
4353 cat >>confdefs.h
<<_ACEOF
4354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361 for ac_header
in fcntl.h fpu_control.h
4363 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4364 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4365 eval as_val
=\$
$as_ac_Header
4366 if test "x$as_val" = x
""yes; then :
4367 cat >>confdefs.h
<<_ACEOF
4368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375 for ac_header
in dlfcn.h errno.h sys
/stat.h
4377 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4379 eval as_val
=\$
$as_ac_Header
4380 if test "x$as_val" = x
""yes; then :
4381 cat >>confdefs.h
<<_ACEOF
4382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 for ac_func
in getrusage
time sigaction __setfpucw
4391 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4392 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4393 eval as_val
=\$
$as_ac_var
4394 if test "x$as_val" = x
""yes; then :
4395 cat >>confdefs.h
<<_ACEOF
4396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4403 # Check for socket libraries
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4405 $as_echo_n "checking for bind in -lsocket... " >&6; }
4406 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 ac_check_lib_save_LIBS
=$LIBS
4410 LIBS
="-lsocket $LIBS"
4411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4414 /* Override any GCC internal prototype to avoid an error.
4415 Use char because int might match the return type of a GCC
4416 builtin and then its argument prototype would still apply. */
4429 if ac_fn_c_try_link
"$LINENO"; then :
4430 ac_cv_lib_socket_bind
=yes
4432 ac_cv_lib_socket_bind
=no
4434 rm -f core conftest.err conftest.
$ac_objext \
4435 conftest
$ac_exeext conftest.
$ac_ext
4436 LIBS
=$ac_check_lib_save_LIBS
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4439 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4440 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4441 cat >>confdefs.h
<<_ACEOF
4442 #define HAVE_LIBSOCKET 1
4445 LIBS
="-lsocket $LIBS"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4450 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4451 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 ac_check_lib_save_LIBS
=$LIBS
4456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4459 /* Override any GCC internal prototype to avoid an error.
4460 Use char because int might match the return type of a GCC
4461 builtin and then its argument prototype would still apply. */
4465 char gethostbyname ();
4469 return gethostbyname ();
4474 if ac_fn_c_try_link
"$LINENO"; then :
4475 ac_cv_lib_nsl_gethostbyname
=yes
4477 ac_cv_lib_nsl_gethostbyname
=no
4479 rm -f core conftest.err conftest.
$ac_objext \
4480 conftest
$ac_exeext conftest.
$ac_ext
4481 LIBS
=$ac_check_lib_save_LIBS
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4484 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4485 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4486 cat >>confdefs.h
<<_ACEOF
4487 #define HAVE_LIBNSL 1
4495 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4496 # using the same condition.
4498 # See if the user specified whether he wants zlib support or not.
4500 # Check whether --with-zlib was given.
4501 if test "${with_zlib+set}" = set; then :
4508 if test "$with_zlib" != "no"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4510 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4511 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4514 ac_func_search_save_LIBS
=$LIBS
4515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4518 /* Override any GCC internal prototype to avoid an error.
4519 Use char because int might match the return type of a GCC
4520 builtin and then its argument prototype would still apply. */
4524 char zlibVersion ();
4528 return zlibVersion ();
4533 for ac_lib
in '' z
; do
4534 if test -z "$ac_lib"; then
4535 ac_res
="none required"
4538 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4540 if ac_fn_c_try_link
"$LINENO"; then :
4541 ac_cv_search_zlibVersion
=$ac_res
4543 rm -f core conftest.err conftest.
$ac_objext \
4545 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4549 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4552 ac_cv_search_zlibVersion
=no
4555 LIBS
=$ac_func_search_save_LIBS
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4558 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4559 ac_res
=$ac_cv_search_zlibVersion
4560 if test "$ac_res" != no
; then :
4561 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4562 for ac_header
in zlib.h
4564 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4565 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4566 cat >>confdefs.h
<<_ACEOF
4567 #define HAVE_ZLIB_H 1
4576 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4577 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4582 .
${srcdir}/..
/..
/bfd
/configure.
host
4586 USE_MAINTAINER_MODE
=no
4587 # Check whether --enable-maintainer-mode was given.
4588 if test "${enable_maintainer_mode+set}" = set; then :
4589 enableval
=$enable_maintainer_mode; case "${enableval}" in
4590 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4592 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4594 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4595 echo "Setting maintainer mode" 6>&1
4603 # Check whether --enable-sim-bswap was given.
4604 if test "${enable_sim_bswap+set}" = set; then :
4605 enableval
=$enable_sim_bswap; case "${enableval}" in
4606 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4607 no
) sim_bswap
="-DWITH_BSWAP=0";;
4608 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4610 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4611 echo "Setting bswap flags = $sim_bswap" 6>&1
4619 # Check whether --enable-sim-cflags was given.
4620 if test "${enable_sim_cflags+set}" = set; then :
4621 enableval
=$enable_sim_cflags; case "${enableval}" in
4622 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4623 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4625 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4627 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4628 echo "Setting sim cflags = $sim_cflags" 6>&1
4636 # Check whether --enable-sim-debug was given.
4637 if test "${enable_sim_debug+set}" = set; then :
4638 enableval
=$enable_sim_debug; case "${enableval}" in
4639 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4640 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4641 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4643 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4644 echo "Setting sim debug = $sim_debug" 6>&1
4652 # Check whether --enable-sim-stdio was given.
4653 if test "${enable_sim_stdio+set}" = set; then :
4654 enableval
=$enable_sim_stdio; case "${enableval}" in
4655 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4656 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4657 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4659 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4660 echo "Setting stdio flags = $sim_stdio" 6>&1
4668 # Check whether --enable-sim-trace was given.
4669 if test "${enable_sim_trace+set}" = set; then :
4670 enableval
=$enable_sim_trace; case "${enableval}" in
4671 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4672 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4674 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4677 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4678 if test x
"$sim_trace" = x
; then
4679 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4681 sim_trace
="${sim_trace}|TRACE_$x"
4684 sim_trace
="$sim_trace)'" ;;
4686 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4687 echo "Setting sim trace = $sim_trace" 6>&1
4695 # Check whether --enable-sim-profile was given.
4696 if test "${enable_sim_profile+set}" = set; then :
4697 enableval
=$enable_sim_profile; case "${enableval}" in
4698 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4699 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4701 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4704 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4705 if test x
"$sim_profile" = x
; then
4706 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4708 sim_profile
="${sim_profile}|PROFILE_$x"
4711 sim_profile
="$sim_profile)'" ;;
4713 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4714 echo "Setting sim profile = $sim_profile" 6>&1
4717 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4723 # Check whether --with-pkgversion was given.
4724 if test "${with_pkgversion+set}" = set; then :
4725 withval
=$with_pkgversion; case "$withval" in
4726 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4728 *) PKGVERSION
="($withval) " ;;
4739 # Check whether --with-bugurl was given.
4740 if test "${with_bugurl+set}" = set; then :
4741 withval
=$with_bugurl; case "$withval" in
4742 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4745 *) BUGURL
="$withval"
4749 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4759 REPORT_BUGS_TO
="<$BUGURL>"
4760 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4767 cat >>confdefs.h
<<_ACEOF
4768 #define PKGVERSION "$PKGVERSION"
4772 cat >>confdefs.h
<<_ACEOF
4773 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4778 $as_echo_n "checking return type of signal handlers... " >&6; }
4779 if test "${ac_cv_type_signal+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <sys/types.h>
4790 return *(signal (0, 0)) (0) == 1;
4795 if ac_fn_c_try_compile
"$LINENO"; then :
4796 ac_cv_type_signal
=int
4798 ac_cv_type_signal
=void
4800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4803 $as_echo "$ac_cv_type_signal" >&6; }
4805 cat >>confdefs.h
<<_ACEOF
4806 #define RETSIGTYPE $ac_cv_type_signal
4816 sim_link_links
=tconfig.h
4817 if test -f ${srcdir}/tconfig.
in
4819 sim_link_files
=tconfig.
in
4821 sim_link_files
=..
/common
/tconfig.
in
4824 # targ-vals.def points to the libc macro description file.
4826 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4828 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4829 sim_link_links
="${sim_link_links} targ-vals.def"
4834 default_sim_inline
=""
4835 # Check whether --enable-sim-inline was given.
4836 if test "${enable_sim_inline+set}" = set; then :
4837 enableval
=$enable_sim_inline; sim_inline
=""
4838 case "$enableval" in
4839 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4840 0) sim_inline
="-DDEFAULT_INLINE=0";;
4841 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4842 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4843 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4846 *_INLINE
=*) new_flag
="-D$x";;
4847 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4848 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4849 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4851 if test x
"$sim_inline" = x
""; then
4852 sim_inline
="$new_flag"
4854 sim_inline
="$sim_inline $new_flag"
4858 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4859 echo "Setting inline flags = $sim_inline" 6>&1
4863 if test "x$cross_compiling" = "xno"; then
4864 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4865 sim_inline
="${default_sim_inline}"
4866 if test x
"$silent" != x
"yes"; then
4867 echo "Setting inline flags = $sim_inline" 6>&1
4873 sim_inline
="-DDEFAULT_INLINE=0"
4877 wire_alignment
="NONSTRICT_ALIGNMENT"
4878 default_alignment
=""
4880 # Check whether --enable-sim-alignment was given.
4881 if test "${enable_sim_alignment+set}" = set; then :
4882 enableval
=$enable_sim_alignment; case "${enableval}" in
4883 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4884 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4885 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4886 yes) if test x
"$wire_alignment" != x
; then
4887 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4889 if test x
"$default_alignment" != x
; then
4890 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4892 echo "No hard-wired alignment for target $target" 1>&6
4893 sim_alignment
="-DWITH_ALIGNMENT=0"
4896 no
) if test x
"$default_alignment" != x
; then
4897 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4899 if test x
"$wire_alignment" != x
; then
4900 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4902 echo "No default alignment for target $target" 1>&6
4903 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4906 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4908 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4909 echo "Setting alignment flags = $sim_alignment" 6>&1
4912 if test x
"$default_alignment" != x
; then
4913 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4915 if test x
"$wire_alignment" != x
; then
4916 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4924 # Check whether --enable-sim-hostendian was given.
4925 if test "${enable_sim_hostendian+set}" = set; then :
4926 enableval
=$enable_sim_hostendian; case "${enableval}" in
4927 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4928 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4929 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4930 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4932 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4933 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4937 if test "x$cross_compiling" = "xno"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4939 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4940 if test "${ac_cv_c_bigendian+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4943 ac_cv_c_bigendian
=unknown
4944 # See if we're dealing with a universal compiler.
4945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 #ifndef __APPLE_CC__
4948 not a universal capable compiler
4953 if ac_fn_c_try_compile
"$LINENO"; then :
4955 # Check for potential -arch flags. It is not universal unless
4956 # there are at least two -arch flags with different values.
4959 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4960 if test -n "$ac_prev"; then
4962 i?
86 | x86_64 | ppc | ppc64
)
4963 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4966 ac_cv_c_bigendian
=universal
4972 elif test "x$ac_word" = "x-arch"; then
4977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4978 if test $ac_cv_c_bigendian = unknown
; then
4979 # See if sys/param.h defines the BYTE_ORDER macro.
4980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 #include <sys/types.h>
4983 #include <sys/param.h>
4988 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4989 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4998 if ac_fn_c_try_compile
"$LINENO"; then :
4999 # It does; now see whether it defined to BIG_ENDIAN or not.
5000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <sys/types.h>
5003 #include <sys/param.h>
5008 #if BYTE_ORDER != BIG_ENDIAN
5016 if ac_fn_c_try_compile
"$LINENO"; then :
5017 ac_cv_c_bigendian
=yes
5019 ac_cv_c_bigendian
=no
5021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5025 if test $ac_cv_c_bigendian = unknown
; then
5026 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5034 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5042 if ac_fn_c_try_compile
"$LINENO"; then :
5043 # It does; now see whether it defined to _BIG_ENDIAN or not.
5044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5059 if ac_fn_c_try_compile
"$LINENO"; then :
5060 ac_cv_c_bigendian
=yes
5062 ac_cv_c_bigendian
=no
5064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5068 if test $ac_cv_c_bigendian = unknown
; then
5069 # Compile a test program.
5070 if test "$cross_compiling" = yes; then :
5071 # Try to guess by grepping values from an object file.
5072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074 short int ascii_mm[] =
5075 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5076 short int ascii_ii[] =
5077 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5078 int use_ascii (int i) {
5079 return ascii_mm[i] + ascii_ii[i];
5081 short int ebcdic_ii[] =
5082 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5083 short int ebcdic_mm[] =
5084 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5085 int use_ebcdic (int i) {
5086 return ebcdic_mm[i] + ebcdic_ii[i];
5093 return use_ascii (foo) == use_ebcdic (foo);
5098 if ac_fn_c_try_compile
"$LINENO"; then :
5099 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5100 ac_cv_c_bigendian
=yes
5102 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5103 if test "$ac_cv_c_bigendian" = unknown
; then
5104 ac_cv_c_bigendian
=no
5106 # finding both strings is unlikely to happen, but who knows?
5107 ac_cv_c_bigendian
=unknown
5111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 $ac_includes_default
5120 /* Are we little or big endian? From Harbison&Steele. */
5124 char c[sizeof (long int)];
5127 return u.c[sizeof (long int) - 1] == 1;
5133 if ac_fn_c_try_run
"$LINENO"; then :
5134 ac_cv_c_bigendian
=no
5136 ac_cv_c_bigendian
=yes
5138 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5139 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5145 $as_echo "$ac_cv_c_bigendian" >&6; }
5146 case $ac_cv_c_bigendian in #(
5148 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5154 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5158 as_fn_error
"unknown endianness
5159 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5162 if test $ac_cv_c_bigendian = yes; then
5163 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5165 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5168 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
5173 # Check whether --enable-werror was given.
5174 if test "${enable_werror+set}" = set; then :
5175 enableval
=$enable_werror; case "${enableval}" in
5176 yes | y
) ERROR_ON_WARNING
="yes" ;;
5177 no | n
) ERROR_ON_WARNING
="no" ;;
5178 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5183 # Enable -Werror by default when using gcc
5184 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5185 ERROR_ON_WARNING
=yes
5189 if test "${ERROR_ON_WARNING}" = yes ; then
5190 # NOTE: Disabled in the sim dir due to most sims generating warnings.
5191 # WERROR_CFLAGS="-Werror"
5195 # The entries after -Wno-pointer-sign are disabled warnings which may
5196 # be enabled in the future, which can not currently be used to build
5198 # NOTE: If you change this list, remember to update
5199 # gdb/doc/gdbint.texinfo.
5200 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
5201 -Wformat-nonliteral -Wno-pointer-sign \
5202 -Wno-unused -Wunused-value -Wunused-function \
5203 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
5205 # Enable -Wno-format by default when using gcc on mingw since many
5206 # GCC versions complain about %I64.
5208 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
5211 # Check whether --enable-build-warnings was given.
5212 if test "${enable_build_warnings+set}" = set; then :
5213 enableval
=$enable_build_warnings; case "${enableval}" in
5215 no
) build_warnings
="-w";;
5216 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5217 build_warnings
="${build_warnings} ${t}";;
5218 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5219 build_warnings
="${t} ${build_warnings}";;
5220 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5222 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5223 echo "Setting compiler warning flags = $build_warnings" 6>&1
5226 # Check whether --enable-sim-build-warnings was given.
5227 if test "${enable_sim_build_warnings+set}" = set; then :
5228 enableval
=$enable_sim_build_warnings; case "${enableval}" in
5230 no
) build_warnings
="-w";;
5231 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5232 build_warnings
="${build_warnings} ${t}";;
5233 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5234 build_warnings
="${t} ${build_warnings}";;
5235 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5237 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5238 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5242 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5245 $as_echo_n "checking compiler warning flags... " >&6; }
5246 # Separate out the -Werror flag as some files just cannot be
5247 # compiled with it enabled.
5248 for w
in ${build_warnings}; do
5250 -Werr*) WERROR_CFLAGS
=-Werror ;;
5251 *) # Check that GCC accepts it
5252 saved_CFLAGS
="$CFLAGS"
5254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5265 if ac_fn_c_try_compile
"$LINENO"; then :
5266 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5269 CFLAGS
="$saved_CFLAGS"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5273 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5277 default_sim_reserved_bits="1"
5278 # Check whether --enable-sim-reserved-bits was given.
5279 if test "${enable_sim_reserved_bits+set}" = set; then :
5280 enableval=$enable_sim_reserved_bits; case "${enableval}" in
5281 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
5282 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
5283 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value
\"" "$LINENO" 5; sim_reserved_bits="";;
5285 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
5286 echo "Setting reserved flags
= $sim_reserved_bits" 6>&1
5289 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
5295 # Instead of defining a `subtarget' macro, code should be checking
5296 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
5300 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
5301 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
5302 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5303 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5304 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5305 *) SIM_SUBTARGET="";;
5312 # Select the byte order of the target
5317 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
5318 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
5319 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5320 mips16*-*-*) default_endian=BIG_ENDIAN ;;
5321 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5322 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
5323 mips*-*-*) default_endian=BIG_ENDIAN ;;
5324 *) default_endian=BIG_ENDIAN ;;
5327 wire_endian="$mips_endian"
5328 default_endian="$default_endian"
5329 # Check whether --enable-sim-endian was given.
5330 if test "${enable_sim_endian+set}" = set; then :
5331 enableval=$enable_sim_endian; case "${enableval}" in
5332 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN
";;
5333 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN
";;
5334 yes) if test x"$wire_endian" != x; then
5335 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5337 if test x"$default_endian" != x; then
5338 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5340 echo "No hard-wired endian
for target
$target" 1>&6
5341 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5344 no) if test x"$default_endian" != x; then
5345 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5347 if test x"$wire_endian" != x; then
5348 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5350 echo "No default endian
for target
$target" 1>&6
5351 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5354 *) as_fn_error "\"Unknown value
$enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5356 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5357 echo "Setting endian flags
= $sim_endian" 6>&1
5360 if test x"$default_endian" != x; then
5361 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5363 if test x"$wire_endian" != x; then
5364 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5375 # Select the bitsize of the target
5379 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5380 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5381 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5382 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5383 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5384 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5385 *) mips_bitsize=64 ; mips_msb=63 ;;
5387 wire_word_bitsize="$mips_bitsize"
5388 wire_word_msb="$mips_msb"
5389 wire_address_bitsize="$mips_addr_bitsize"
5390 wire_cell_bitsize=""
5391 # Check whether --enable-sim-bitsize was given.
5392 if test "${enable_sim_bitsize+set}" = set; then :
5393 enableval=$enable_sim_bitsize; sim_bitsize=
5394 case "${enableval}" in
5395 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5396 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5397 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5398 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5399 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5400 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5402 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5404 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5405 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5407 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5409 *) as_fn_error "\"--enable-sim-bitsize was given
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5412 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9]*,*//"`
5415 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5416 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5417 * ) as_fn_error "\"--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5420 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5423 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5424 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5425 * ) as_fn_error "\"--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5427 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5428 echo "Setting bitsize flags
= $sim_bitsize" 6>&1
5432 if test x"$wire_word_bitsize" != x; then
5433 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5435 if test x"$wire_word_msb" != x; then
5436 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5438 if test x"$wire_address_bitsize" != x; then
5439 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5441 if test x"$wire_cell_bitsize" != x; then
5442 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5450 # Select the floating hardware support of the target
5452 mips_fpu=HARDWARE_FLOATING_POINT
5455 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5456 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5457 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5458 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5459 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5460 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5461 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5462 *) mips_fpu=HARD_FLOATING_POINT ;;
5465 default_sim_float="$mips_fpu"
5466 default_sim_float_bitsize="$mips_fpu_bitsize"
5467 # Check whether --enable-sim-float was given.
5468 if test "${enable_sim_float+set}" = set; then :
5469 enableval=$enable_sim_float; case "${enableval}" in
5470 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
";;
5471 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT
";;
5472 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5473 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5474 *) as_fn_error "\"Unknown value
$enableval passed to
--enable-sim-float\"" "$LINENO" 5; sim_float="";;
5476 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5477 echo "Setting float flags
= $sim_float" 6>&1
5482 if test x"${default_sim_float}" != x""; then
5483 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5485 if test x"${default_sim_float_bitsize}" != x""; then
5486 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5495 # Select the level of SMP support
5501 default_sim_smp="$mips_smp"
5502 # Check whether --enable-sim-smp was given.
5503 if test "${enable_sim_smp+set}" = set; then :
5504 enableval=$enable_sim_smp; case "${enableval}" in
5505 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5506 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5507 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5509 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5510 echo "Setting smp flags
= $sim_smp" 6>&1
5513 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5514 if test x"$silent" != x"yes"; then
5515 echo "Setting smp flags
= $sim_smp" 6>&1
5523 # Select the IGEN architecture
5526 sim_igen_machine="-M mipsIV
"
5527 sim_m16_machine="-M mips16
,mipsIII
"
5528 sim_igen_filter="32,64,f
"
5530 sim_mach_default="mips8000
"
5533 mips*tx39*) sim_gen=IGEN
5534 sim_igen_filter="32,f
"
5535 sim_igen_machine="-M r3900
"
5537 mips64vr43*-*-*) sim_gen=IGEN
5538 sim_igen_machine="-M mipsIV
"
5539 sim_mach_default="mips8000
"
5541 mips64vr5*-*-*) sim_gen=IGEN
5542 sim_igen_machine="-M vr5000
"
5543 sim_mach_default="mips5000
"
5545 mips64vr41*) sim_gen=M16
5546 sim_igen_machine="-M vr4100
"
5547 sim_m16_machine="-M vr4100
"
5548 sim_igen_filter="32,64,f
"
5550 sim_mach_default="mips4100
"
5552 mips64vr-*-* | mips64vrel-*-*)
5554 sim_multi_configs="\
5555 vr4100
:mipsIII
,mips16
,vr4100
:32,64:mips4100
,mips4111\
5556 vr4120
:mipsIII
,mips16
,vr4120
:32,64:mips4120\
5557 vr5000
:mipsIV
:32,64,f
:mips4300
,mips5000\
5558 vr5400
:mipsIV
,vr5400
:32,64,f
:mips5400\
5559 vr5500
:mipsIV
,vr5500
:32,64,f
:mips5500
"
5560 sim_multi_default=mips5000
5562 mips*-sde-elf*) sim_gen=M16
5563 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5564 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5565 sim_igen_filter="32,64,f
"
5566 sim_mach_default="mipsisa64r2
"
5568 mips64*-*-*) sim_igen_filter="32,64,f
"
5571 mips16*-*-*) sim_gen=M16
5572 sim_igen_filter="32,64,f
"
5575 mipsisa32r2*-*-*) sim_gen=M16
5576 sim_igen_machine="-M mips32r2
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5577 sim_m16_machine="-M mips16
,mips16e
,mips32r2
"
5578 sim_igen_filter="32,f
"
5579 sim_mach_default="mipsisa32r2
"
5581 mipsisa32*-*-*) sim_gen=M16
5582 sim_igen_machine="-M mips32
,mips16
,mips16e
,smartmips
"
5583 sim_m16_machine="-M mips16
,mips16e
,mips32
"
5584 sim_igen_filter="32,f
"
5585 sim_mach_default="mipsisa32
"
5587 mipsisa64r2*-*-*) sim_gen=M16
5588 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
"
5589 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5590 sim_igen_filter="32,64,f
"
5591 sim_mach_default="mipsisa64r2
"
5593 mipsisa64sb1*-*-*) sim_gen=IGEN
5594 sim_igen_machine="-M mips64
,mips3d
,sb1
"
5595 sim_igen_filter="32,64,f
"
5596 sim_mach_default="mips_sb1
"
5598 mipsisa64*-*-*) sim_gen=M16
5599 sim_igen_machine="-M mips64
,mips3d
,mips16
,mips16e
,mdmx
"
5600 sim_m16_machine="-M mips16
,mips16e
,mips64
"
5601 sim_igen_filter="32,64,f
"
5602 sim_mach_default="mipsisa64
"
5604 mips*lsi*) sim_gen=M16
5605 sim_igen_machine="-M mipsIII
,mips16
"
5606 sim_m16_machine="-M mips16
,mipsIII
"
5607 sim_igen_filter="32,f
"
5609 sim_mach_default="mips4000
"
5611 mips*-*-*) sim_gen=IGEN
5612 sim_igen_filter="32,f
"
5616 # The MULTI generator can combine several simulation engines into one.
5617 # executable. A configuration which uses the MULTI should set two
5618 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5620 # ${sim_multi_configs} is the list of engines to build. Each
5621 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5624 # - NAME is a C-compatible prefix for the engine,
5625 # - MACHINE is a -M argument,
5626 # - FILTER is a -F argument, and
5627 # - BFDMACHS is a comma-separated list of bfd machines that the
5628 # simulator can run.
5630 # Each entry will have a separate simulation engine whose prefix is
5631 # m32<NAME>. If the machine list includes "mips16
", there will also
5632 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5633 # generated using the same machine list as the 32-bit version,
5634 # but the filter will be "16" instead of FILTER.
5636 # The simulator compares the bfd mach against BFDMACHS to decide
5637 # which engine to use. Entries in BFDMACHS should be bfd_mach
5638 # values with "bfd_mach_
" removed. ${sim_multi_default} says
5639 # which entry should be the default.
5640 if test ${sim_gen} = MULTI; then
5642 # Simple sanity check.
5643 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
5644 as_fn_error "Error
in configure.
in: MULTI simulator not
set up correctly
" "$LINENO" 5
5647 # Start in a known state.
5648 rm -f multi-include.h multi-run.c
5651 sim_multi_obj=multi-run.o
5652 sim_multi_igen_configs=
5655 cat << __EOF__ > multi-run.c
5656 /* Main entry point for MULTI simulators.
5657 Copyright (C) 2003, 2007, 2010, 2012 Free Software Foundation, Inc.
5659 This program is free software; you can redistribute it and/or modify
5660 it under the terms of the GNU General Public License as published by
5661 the Free Software Foundation; either version 3 of the License, or
5662 (at your option) any later version.
5664 This program is distributed in the hope that it will be useful,
5665 but WITHOUT ANY WARRANTY; without even the implied warranty of
5666 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5667 GNU General Public License for more details.
5669 You should have received a copy of the GNU General Public License
5670 along with this program. If not, see <http://www.gnu.org/licenses/>.
5674 This file was generated by sim/mips/configure. */
5676 #include "sim-main.h
"
5677 #include "multi-include.h
"
5683 sim_engine_run (SIM_DESC sd,
5686 int signal) /* ignore */
5690 if (STATE_ARCHITECTURE (sd) == NULL)
5691 mach = bfd_mach_${sim_multi_default};
5693 mach = STATE_ARCHITECTURE (SD)->mach;
5699 for fc in ${sim_multi_configs}; do
5701 # Split up the entry. ${c} contains the first three elements.
5702 # Note: outer sqaure brackets are m4 quotes.
5703 c=`echo ${fc} | sed 's/:[^:]*$//'`
5704 bfdmachs=`echo ${fc} | sed 's/.*://'`
5705 name=`echo ${c} | sed 's/:.*//'`
5706 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5707 filter=`echo ${c} | sed 's/.*://'`
5709 # Build the following lists:
5711 # sim_multi_flags: all -M and -F flags used by the simulator
5712 # sim_multi_src: all makefile-generated source files
5713 # sim_multi_obj: the objects for ${sim_multi_src}
5714 # sim_multi_igen_configs: igen configuration strings.
5716 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5717 # or m16) followed by the NAME, MACHINE and FILTER part of
5718 # the ${sim_multi_configs} entry.
5719 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5721 # Check whether mips16 handling is needed.
5724 # Run igen twice, once for normal mode and once for mips16.
5727 # The top-level function for the mips16 simulator is
5728 # in a file m16${name}_run.c, generated by the
5729 # tmp-run-multi Makefile rule.
5730 sim_multi_src="${sim_multi_src} m16
${name}_run.c
"
5731 sim_multi_obj="${sim_multi_obj} m16
${name}_run.o
"
5732 sim_multi_flags="${sim_multi_flags} -F 16"
5739 # Now add the list of igen-generated files to ${sim_multi_src}
5740 # and ${sim_multi_obj}.
5742 for base in engine icache idecode model semantics support; do
5743 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c
"
5744 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h
"
5745 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o
"
5747 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5750 # Add an include for the engine.h file. This file declares the
5751 # top-level foo_engine_run() function.
5752 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5754 # Add case statements for this engine to sim_engine_run().
5755 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5756 echo " case bfd_mach_${mach}:" >> multi-run.c
5757 if test ${mach} = ${sim_multi_default}; then
5758 echo " default:" >> multi-run.c
5759 sim_seen_default
=yes
5762 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5764 echo " break;" >> multi-run.c
5767 # Check whether we added a 'default:' label.
5768 if test ${sim_seen_default} = no
; then
5769 as_fn_error
"Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
5772 cat << __EOF__ >> multi-run.c
5777 mips_mach_multi (SIM_DESC sd)
5779 if (STATE_ARCHITECTURE (sd) == NULL)
5780 return bfd_mach_${sim_multi_default};
5782 switch (STATE_ARCHITECTURE (SD)->mach)
5786 # Add case statements for this engine to mips_mach_multi().
5787 for fc in ${sim_multi_configs}; do
5789 # Split up the entry. ${c} contains the first three elements.
5790 # Note: outer sqaure brackets are m4 quotes.
5791 c
=`echo ${fc} | sed 's/:[^:]*$//'`
5792 bfdmachs
=`echo ${fc} | sed 's/.*://'`
5794 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5795 echo " case bfd_mach_${mach}:" >> multi-run.c
5799 cat << __EOF__ >> multi-run.c
5800 return (STATE_ARCHITECTURE (SD)->mach);
5802 return bfd_mach_${sim_multi_default};
5807 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5810 sim_multi_src
=doesnt-exist.c
5812 if test x
"${sim_mach_default}" = x
""; then
5813 as_fn_error
"Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
5815 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5817 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5818 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5829 # Add simulated hardware devices
5835 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
5836 mips_extra_objs
="dv-sockser.o"
5837 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
5844 if test x
"$hw_enabled" = x
"yes"; then
5849 if test "$hw_devices"; then
5850 hardware
="$hw_devices"
5852 hardware
="cfi core pal glue"
5854 hardware
="$hardware $hw_extra_devices"
5855 sim_hw_cflags
="-DWITH_HW=1"
5857 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5858 # Check whether --enable-sim-hardware was given.
5859 if test "${enable_sim_hardware+set}" = set; then :
5860 enableval
=$enable_sim_hardware;
5861 case "${enableval}" in
5864 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5865 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5866 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5868 if test "$sim_hw_p" != yes; then
5870 sim_hw_cflags
="-DWITH_HW=0"
5873 sim_hw_cflags
="-DWITH_HW=1"
5876 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
5877 for i
in $hardware ; do
5880 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
5884 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
5885 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5889 if test "$sim_hw_p" != yes; then
5891 sim_hw_cflags
="-DWITH_HW=0"
5894 if test x
"$silent" != x
"yes"; then
5895 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5899 case " $hardware " in
5900 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
5901 $as_echo_n "checking for log2 in -lm... " >&6; }
5902 if test "${ac_cv_lib_m_log2+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5905 ac_check_lib_save_LIBS
=$LIBS
5907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5910 /* Override any GCC internal prototype to avoid an error.
5911 Use char because int might match the return type of a GCC
5912 builtin and then its argument prototype would still apply. */
5925 if ac_fn_c_try_link
"$LINENO"; then :
5926 ac_cv_lib_m_log2
=yes
5930 rm -f core conftest.err conftest.
$ac_objext \
5931 conftest
$ac_exeext conftest.
$ac_ext
5932 LIBS
=$ac_check_lib_save_LIBS
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
5935 $as_echo "$ac_cv_lib_m_log2" >&6; }
5936 if test "x$ac_cv_lib_m_log2" = x
""yes; then :
5937 cat >>confdefs.h
<<_ACEOF
5950 # Choose simulator engine
5952 *) mips_igen_engine
="engine.o"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5959 $as_echo_n "checking for X... " >&6; }
5962 # Check whether --with-x was given.
5963 if test "${with_x+set}" = set; then :
5967 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5968 if test "x$with_x" = xno
; then
5969 # The user explicitly disabled X.
5972 case $x_includes,$x_libraries in #(
5973 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
5974 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5977 # One or both of the vars are not set, and there is no cached value.
5978 ac_x_includes
=no ac_x_libraries
=no
5979 rm -f -r conftest.dir
5980 if mkdir conftest.dir
; then
5982 cat >Imakefile
<<'_ACEOF'
5984 @echo incroot='${INCROOT}'
5986 @echo usrlibdir='${USRLIBDIR}'
5988 @echo libdir='${LIBDIR}'
5990 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5991 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5992 for ac_var
in incroot usrlibdir libdir
; do
5993 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5995 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5996 for ac_extension
in a so sl dylib la dll
; do
5997 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5998 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5999 ac_im_usrlibdir
=$ac_im_libdir; break
6002 # Screen out bogus values from the imake configuration. They are
6003 # bogus both because they are the default anyway, and because
6004 # using them would break gcc on systems where it needs fixed includes.
6005 case $ac_im_incroot in
6006 /usr
/include
) ac_x_includes
= ;;
6007 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6009 case $ac_im_usrlibdir in
6010 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6011 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6015 rm -f -r conftest.dir
6018 # Standard set of common directories for X headers.
6019 # Check X11 before X11Rn because it is often a symlink to the current release.
6033 /usr/local/X11/include
6034 /usr/local/X11R7/include
6035 /usr/local/X11R6/include
6036 /usr/local/X11R5/include
6037 /usr/local/X11R4/include
6039 /usr/local/include/X11
6040 /usr/local/include/X11R7
6041 /usr/local/include/X11R6
6042 /usr/local/include/X11R5
6043 /usr/local/include/X11R4
6047 /usr/XFree86/include/X11
6051 /usr/unsupported/include
6053 /usr/local/x11r5/include
6054 /usr/lpp/Xamples/include
6056 /usr/openwin/include
6057 /usr/openwin/share/include'
6059 if test "$ac_x_includes" = no
; then
6060 # Guess where to find include files, by looking for Xlib.h.
6061 # First, try using that file with no special directory specified.
6062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 #include <X11/Xlib.h>
6066 if ac_fn_c_try_cpp
"$LINENO"; then :
6067 # We can compile using X headers with no special include directory.
6070 for ac_dir
in $ac_x_header_dirs; do
6071 if test -r "$ac_dir/X11/Xlib.h"; then
6072 ac_x_includes
=$ac_dir
6077 rm -f conftest.err conftest.
$ac_ext
6078 fi # $ac_x_includes = no
6080 if test "$ac_x_libraries" = no
; then
6081 # Check for the libraries.
6082 # See if we find them without any special options.
6083 # Don't add to $LIBS permanently.
6086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #include <X11/Xlib.h>
6097 if ac_fn_c_try_link
"$LINENO"; then :
6099 # We can link X programs with no special library path.
6103 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6105 # Don't even attempt the hair of trying to link an X program!
6106 for ac_extension
in a so sl dylib la dll
; do
6107 if test -r "$ac_dir/libX11.$ac_extension"; then
6108 ac_x_libraries
=$ac_dir
6114 rm -f core conftest.err conftest.
$ac_objext \
6115 conftest
$ac_exeext conftest.
$ac_ext
6116 fi # $ac_x_libraries = no
6118 case $ac_x_includes,$ac_x_libraries in #(
6120 # Didn't find X, or a directory has "'" in its name.
6121 ac_cv_have_x
="have_x=no";; #(
6123 # Record where we found X for the cache.
6124 ac_cv_have_x
="have_x=yes\
6125 ac_x_includes='$ac_x_includes'\
6126 ac_x_libraries='$ac_x_libraries'"
6132 eval "$ac_cv_have_x"
6135 if test "$have_x" != yes; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6137 $as_echo "$have_x" >&6; }
6140 # If each of the values was on the command line, it overrides each guess.
6141 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6142 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6143 # Update the cache value to reflect the command line values.
6144 ac_cv_have_x
="have_x=yes\
6145 ac_x_includes='$x_includes'\
6146 ac_x_libraries='$x_libraries'"
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6148 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6154 for ac_header
in string.h
strings.h stdlib.h stdlib.h
6156 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6157 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6158 eval as_val
=\$
$as_ac_Header
6159 if test "x$as_val" = x
""yes; then :
6160 cat >>confdefs.h
<<_ACEOF
6161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
6169 $as_echo_n "checking for fabs in -lm... " >&6; }
6170 if test "${ac_cv_lib_m_fabs+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6173 ac_check_lib_save_LIBS
=$LIBS
6175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6178 /* Override any GCC internal prototype to avoid an error.
6179 Use char because int might match the return type of a GCC
6180 builtin and then its argument prototype would still apply. */
6193 if ac_fn_c_try_link
"$LINENO"; then :
6194 ac_cv_lib_m_fabs
=yes
6198 rm -f core conftest.err conftest.
$ac_objext \
6199 conftest
$ac_exeext conftest.
$ac_ext
6200 LIBS
=$ac_check_lib_save_LIBS
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
6203 $as_echo "$ac_cv_lib_m_fabs" >&6; }
6204 if test "x$ac_cv_lib_m_fabs" = x
""yes; then :
6205 cat >>confdefs.h
<<_ACEOF
6213 for ac_func
in aint anint sqrt
6215 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6216 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6217 eval as_val
=\$
$as_ac_var
6218 if test "x$as_val" = x
""yes; then :
6219 cat >>confdefs.h
<<_ACEOF
6220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6228 ac_sources
="$sim_link_files"
6229 ac_dests
="$sim_link_links"
6230 while test -n "$ac_sources"; do
6231 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
6232 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
6233 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
6235 ac_config_links
="$ac_config_links $ac_config_links_1"
6238 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
6239 cgen_breaks
="break cgen_rtx_error";
6242 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
6244 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
6246 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
6248 ac_config_commands
="$ac_config_commands Makefile"
6250 ac_config_commands
="$ac_config_commands stamp-h"
6252 cat >confcache
<<\_ACEOF
6253 # This file is a shell script that caches the results of configure
6254 # tests run on this system so they can be shared between configure
6255 # scripts and configure runs, see configure's option --config-cache.
6256 # It is not useful on other systems. If it contains results you don't
6257 # want to keep, you may remove or edit it.
6259 # config.status only pays attention to the cache file if you give it
6260 # the --recheck option to rerun configure.
6262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6268 # The following way of writing the cache mishandles newlines in values,
6269 # but we know of no workaround that is simple, portable, and efficient.
6270 # So, we kill variables containing newlines.
6271 # Ultrix sh set writes to stderr and can't be redirected directly,
6272 # and sets the high bit in the cache file unless we assign to the vars.
6274 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6275 eval ac_val
=\$
$ac_var
6279 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6283 _ | IFS | as_nl
) ;; #(
6284 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6285 *) { eval $ac_var=; unset $ac_var;} ;;
6291 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6292 *${as_nl}ac_space
=\
*)
6293 # `set' does not quote correctly, so add quotes: double-quote
6294 # substitution turns \\\\ into \\, and sed turns \\ into \.
6297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6300 # `set' quotes correctly as required by POSIX, so do not add quotes.
6301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6312 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6314 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6315 if test -w "$cache_file"; then
6316 test "x$cache_file" != "x/dev/null" &&
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6318 $as_echo "$as_me: updating cache $cache_file" >&6;}
6319 cat confcache
>$cache_file
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6322 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6327 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6328 # Let make expand exec_prefix.
6329 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6331 DEFS
=-DHAVE_CONFIG_H
6335 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6336 # 1. Remove the extension, and $U if already installed.
6337 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6338 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6339 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6340 # will be set to the directory where LIBOBJS objects are built.
6341 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6342 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6346 LTLIBOBJS
=$ac_ltlibobjs
6349 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6350 as_fn_error
"conditional \"GMAKE\" was never defined.
6351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6355 : ${CONFIG_STATUS=./config.status}
6357 ac_clean_files_save
=$ac_clean_files
6358 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6360 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6362 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6364 # Generated by $as_me.
6365 # Run this file to recreate the current configuration.
6366 # Compiler output produced by configure, useful for debugging
6367 # configure, is in config.log if it exists.
6373 SHELL=\${CONFIG_SHELL-$SHELL}
6376 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6377 ## -------------------- ##
6378 ## M4sh Initialization. ##
6379 ## -------------------- ##
6381 # Be more Bourne compatible
6382 DUALCASE
=1; export DUALCASE
# for MKS sh
6383 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6386 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6387 # is contrary to our usage. Disable this feature.
6388 alias -g '${1+"$@"}'='"$@"'
6389 setopt NO_GLOB_SUBST
6391 case `(set -o) 2>/dev/null` in #(
6403 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6404 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6405 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6407 # Prefer a ksh shell builtin over an external printf program on Solaris,
6408 # but without wasting forks for bash or zsh.
6409 if test -z "$BASH_VERSION$ZSH_VERSION" \
6410 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6411 as_echo='print
-r --'
6412 as_echo_n='print
-rn --'
6413 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6414 as_echo='printf %s
\n'
6415 as_echo_n='printf %s
'
6417 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6418 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6419 as_echo_n='/usr
/ucb
/echo -n'
6421 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6422 as_echo_n_body='eval
6426 expr "X$arg" : "X\\(.*\\)$as_nl";
6427 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6429 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6431 export as_echo_n_body
6432 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6435 as_echo='sh
-c $as_echo_body as_echo
'
6438 # The user is always right.
6439 if test "${PATH_SEPARATOR+set}" != set; then
6441 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6442 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6449 # We need space, tab and new line, in precisely that order. Quoting is
6450 # there to prevent editors from complaining about space-tab.
6451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6452 # splitting by setting IFS to empty value.)
6455 # Find who we are. Look in the path if we contain no directory separator.
6457 *[\\/]* ) as_myself=$0 ;;
6458 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6469 # We did not find ourselves, most probably we were run as `sh COMMAND'
6470 # in which case we are not to be found in the path.
6471 if test "x$as_myself" = x
; then
6474 if test ! -f "$as_myself"; then
6475 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6479 # Unset variables that we do not need and which cause bugs (e.g. in
6480 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6481 # suppresses any "Segmentation fault" message there. '((' could
6482 # trigger a bug in pdksh 5.2.14.
6483 for as_var
in BASH_ENV ENV MAIL MAILPATH
6484 do eval test x\
${$as_var+set} = xset \
6485 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6498 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6501 # as_fn_error ERROR [LINENO LOG_FD]
6502 # ---------------------------------
6503 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6504 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6505 # script with status $?, using 1 if that was 0.
6508 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6510 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6511 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6513 $as_echo "$as_me: error: $1" >&2
6514 as_fn_exit
$as_status
6518 # as_fn_set_status STATUS
6519 # -----------------------
6520 # Set $? to STATUS, without forking.
6524 } # as_fn_set_status
6528 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6538 # Portably unset VAR.
6541 { eval $1=; unset $1;}
6543 as_unset
=as_fn_unset
6544 # as_fn_append VAR VALUE
6545 # ----------------------
6546 # Append the text in VALUE to the end of the definition contained in VAR. Take
6547 # advantage of any shell optimizations that allow amortized linear growth over
6548 # repeated appends, instead of the typical quadratic growth present in naive
6550 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6551 eval 'as_fn_append ()
6562 # as_fn_arith ARG...
6563 # ------------------
6564 # Perform arithmetic evaluation on the ARGs, and store the result in the
6565 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6566 # must be portable across $(()) and expr.
6567 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6568 eval 'as_fn_arith ()
6575 as_val
=`expr "$@" || test $? -eq 1`
6580 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6581 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6587 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6588 as_basename
=basename
6593 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6599 as_me
=`$as_basename -- "$0" ||
6600 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6601 X"$0" : 'X\(//\)$' \| \
6602 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6604 sed '/^.*\/\([^/][^/]*\)\/*$/{
6618 # Avoid depending upon Character Ranges.
6619 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6620 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6621 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6622 as_cr_digits
='0123456789'
6623 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6625 ECHO_C
= ECHO_N
= ECHO_T
=
6626 case `echo -n x` in #(((((
6628 case `echo 'xy\c'` in
6629 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6631 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6638 rm -f conf$$ conf$$.exe conf$$.
file
6639 if test -d conf$$.dir
; then
6640 rm -f conf$$.dir
/conf$$.
file
6643 mkdir conf$$.dir
2>/dev
/null
6645 if (echo >conf$$.
file) 2>/dev
/null
; then
6646 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6648 # ... but there are two gotchas:
6649 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6650 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6651 # In both cases, we have to default to `cp -p'.
6652 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6654 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6662 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6663 rmdir conf$$.dir
2>/dev
/null
6668 # Create "$as_dir" as a directory, including parents if necessary.
6673 -*) as_dir
=.
/$as_dir;;
6675 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6679 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6680 *) as_qdir
=$as_dir;;
6682 as_dirs
="'$as_qdir' $as_dirs"
6683 as_dir
=`$as_dirname -- "$as_dir" ||
6684 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6685 X"$as_dir" : 'X\(//\)[^/]' \| \
6686 X"$as_dir" : 'X\(//\)$' \| \
6687 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6688 $as_echo X"$as_dir" |
6689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6706 test -d "$as_dir" && break
6708 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6709 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6713 if mkdir
-p .
2>/dev
/null
; then
6714 as_mkdir_p
='mkdir -p "$as_dir"'
6716 test -d .
/-p && rmdir .
/-p
6720 if test -x / >/dev
/null
2>&1; then
6723 if ls -dL / >/dev
/null
2>&1; then
6730 if test -d "$1"; then
6736 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6737 ???[sx]*):;;*)false;;esac;fi
6741 as_executable_p
=$as_test_x
6743 # Sed expression to map a string onto a valid CPP name.
6744 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6746 # Sed expression to map a string onto a valid variable name.
6747 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6751 ## ----------------------------------- ##
6752 ## Main body of $CONFIG_STATUS script. ##
6753 ## ----------------------------------- ##
6755 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6758 # Save the log message, to keep $0 and so on meaningful, and to
6759 # report actual input values of CONFIG_FILES etc. instead of their
6760 # values after options handling.
6762 This file was extended by $as_me, which was
6763 generated by GNU Autoconf 2.64. Invocation command line was
6765 CONFIG_FILES = $CONFIG_FILES
6766 CONFIG_HEADERS = $CONFIG_HEADERS
6767 CONFIG_LINKS = $CONFIG_LINKS
6768 CONFIG_COMMANDS = $CONFIG_COMMANDS
6771 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6776 case $ac_config_files in *"
6777 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6780 case $ac_config_headers in *"
6781 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6786 # Files that config.status was made for.
6787 config_files="$ac_config_files"
6788 config_headers="$ac_config_headers"
6789 config_links="$ac_config_links"
6790 config_commands="$ac_config_commands"
6794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6796 \`$as_me' instantiates files and other configuration actions
6797 from templates according to the current configuration. Unless the files
6798 and actions are specified as TAGs, all are instantiated by default.
6800 Usage: $0 [OPTION]... [TAG]...
6802 -h, --help print this help, then exit
6803 -V, --version print version number and configuration settings, then exit
6804 -q, --quiet, --silent
6805 do not print progress messages
6806 -d, --debug don't remove temporary files
6807 --recheck update $as_me by reconfiguring in the same conditions
6808 --file=FILE[:TEMPLATE]
6809 instantiate the configuration file FILE
6810 --header=FILE[:TEMPLATE]
6811 instantiate the configuration header FILE
6813 Configuration files:
6816 Configuration headers:
6819 Configuration links:
6822 Configuration commands:
6825 Report bugs to the package provider."
6828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6831 configured by $0, generated by GNU Autoconf 2.64,
6832 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6834 Copyright (C) 2009 Free Software Foundation, Inc.
6835 This config.status script is free software; the Free Software Foundation
6836 gives unlimited permission to copy, distribute and modify it."
6841 test -n "\$AWK" || AWK=awk
6844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6845 # The default lists apply if the user does not specify any file.
6851 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6852 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6863 # Handling of the options.
6864 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6866 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6867 $as_echo "$ac_cs_version"; exit ;;
6868 --debug |
--debu |
--deb |
--de |
--d |
-d )
6870 --file |
--fil |
--fi |
--f )
6873 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6875 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6876 ac_need_defaults
=false
;;
6877 --header |
--heade |
--head |
--hea )
6880 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6882 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6883 ac_need_defaults
=false
;;
6885 # Conflict between --help and --header
6886 as_fn_error
"ambiguous option: \`$1'
6887 Try \`$0 --help' for more information.";;
6888 --help |
--hel |
-h )
6889 $as_echo "$ac_cs_usage"; exit ;;
6890 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6891 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6895 -*) as_fn_error
"unrecognized option: \`$1'
6896 Try \`$0 --help' for more information." ;;
6898 *) as_fn_append ac_config_targets
" $1"
6899 ac_need_defaults
=false
;;
6905 ac_configure_extra_args
=
6907 if $ac_cs_silent; then
6909 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6914 if \$ac_cs_recheck; then
6915 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6917 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6918 CONFIG_SHELL='$SHELL'
6924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6929 ## Running $as_me. ##
6935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6939 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6945 # Handling of arguments.
6946 for ac_config_target
in $ac_config_targets
6948 case $ac_config_target in
6949 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6950 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
6951 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6952 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6953 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6954 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6955 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6956 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6958 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6963 # If the user did not use the arguments to specify the items to instantiate,
6964 # then the envvar interface is used. Set only those that are not.
6965 # We use the long form for the default assignment because of an extremely
6966 # bizarre bug on SunOS 4.1.3.
6967 if $ac_need_defaults; then
6968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6970 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6974 # Have a temporary directory for convenience. Make it in the build tree
6975 # simply because there is no reason against having it here, and in addition,
6976 # creating and moving files from /tmp can sometimes cause problems.
6977 # Hook for its removal unless debugging.
6978 # Note that there is a small window in which the directory will not be cleaned:
6979 # after its creation but before its name has been assigned to `$tmp'.
6983 trap 'exit_status=$?
6984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6986 trap 'as_fn_exit 1' 1 2 13 15
6988 # Create a (secure) tmp directory for tmp files.
6991 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6992 test -n "$tmp" && test -d "$tmp"
6995 tmp
=.
/conf$$
-$RANDOM
6996 (umask 077 && mkdir
"$tmp")
6997 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6999 # Set up the scripts for CONFIG_FILES section.
7000 # No need to generate them if there are no CONFIG_FILES.
7001 # This happens for instance with `./config.status config.h'.
7002 if test -n "$CONFIG_FILES"; then
7005 ac_cr
=`echo X | tr X '\015'`
7006 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7007 # But we know of no other shell where ac_cr would be empty at this
7008 # point, so we can use a bashism as a fallback.
7009 if test "x$ac_cr" = x
; then
7010 eval ac_cr
=\$
\'\\r
\'
7012 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7013 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7019 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7024 echo "cat >conf$$subs.awk <<_ACEOF" &&
7025 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7028 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7031 for ac_last_try in false false false false false :; do
7032 . ./conf$$subs.sh ||
7033 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7035 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7036 if test $ac_delim_n = $ac_delim_num; then
7038 elif $ac_last_try; then
7039 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7041 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7047 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
7051 s/^/S["/; s
/!.
*/"]=/
7061 s/\(.\{148\}\).*/\1/
7063 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7068 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7075 s/\(.\{148\}\).*/\1/
7077 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7081 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7086 ' <conf$$subs.awk | sed '
7091 ' >>$CONFIG_STATUS || ac_write_fail=1
7092 rm -f conf$$subs.awk
7093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7095 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
7096 for (key in S) S_is_set[key] = 1
7102 nfields = split(line, field, "@
")
7104 len = length(field[1])
7105 for (i = 2; i < nfields; i++) {
7107 keylen = length(key)
7108 if (S_is_set[key]) {
7110 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7111 len += length(value) + length(field[++i])
7122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7123 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7124 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7127 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
7128 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
7131 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7132 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
7133 # trailing colons and then remove the whole line if VPATH becomes empty
7134 # (actually we leave an empty line to preserve line numbers).
7135 if test "x
$srcdir" = x.; then
7136 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7140 s/^\([^=]*=[ ]*\):*/\1/
7146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7147 fi # test -n "$CONFIG_FILES"
7149 # Set up the scripts for CONFIG_HEADERS section.
7150 # No need to generate them if there are no CONFIG_HEADERS.
7151 # This happens for instance with `./config.status Makefile'.
7152 if test -n "$CONFIG_HEADERS"; then
7153 cat >"$tmp/defines.
awk" <<\_ACAWK ||
7157 # Transform confdefs.h into an awk script `defines.awk', embedded as
7158 # here-document in config.status, that substitutes the proper values into
7159 # config.h.in to produce config.h.
7161 # Create a delimiter string that does not exist in confdefs.h, to ease
7162 # handling of long lines.
7164 for ac_last_try in false false :; do
7165 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
7166 if test -z "$ac_t"; then
7168 elif $ac_last_try; then
7169 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
7171 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7175 # For the awk script, D is an array of macro values keyed by name,
7176 # likewise P contains macro parameters if any. Preserve backslash
7177 # newline sequences.
7179 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7181 s/.\{148\}/&'"$ac_delim"'/g
7184 s/^[ ]*#[ ]*define[ ][ ]*/ /
7191 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7193 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7197 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7198 D["\
1"]=" \
3\\\\\\n
"\\/p
7200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7205 s/.\{148\}/&'"$ac_delim"'/g
7210 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7213 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7215 ' <confdefs.h | sed '
7216 s/'"$ac_delim"'/"\\\
7217 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7220 for (key in D) D_is_set[key] = 1
7223 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7225 split(line, arg, " ")
7226 if (arg[1] == "#") {
7230 defundef
= substr
(arg
[1], 2)
7233 split(mac1
, mac2
, "(") #)
7235 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7236 if (D_is_set
[macro
]) {
7237 # Preserve the white space surrounding the "#".
7238 print prefix
"define", macro P
[macro
] D
[macro
]
7241 # Replace #undef with comments. This is necessary, for example,
7242 # in the case of _POSIX_SOURCE, which is predefined and required
7243 # on some systems where configure will not decide to define it.
7244 if (defundef
== "undef") {
7245 print
"/*", prefix defundef
, macro
, "*/"
7253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7254 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7255 fi # test -n "$CONFIG_HEADERS"
7258 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
7263 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7265 case $ac_mode$ac_tag in
7267 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7268 :[FH
]-) ac_tag
=-:-;;
7269 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7286 -) ac_f
="$tmp/stdin";;
7287 *) # Look for the file first in the build tree, then in the source tree
7288 # (if the path is not absolute). The absolute path cannot be DOS-style,
7289 # because $ac_f cannot contain `:'.
7293 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7295 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7297 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7298 as_fn_append ac_file_inputs
" '$ac_f'"
7301 # Let's still pretend it is `configure' which instantiates (i.e., don't
7302 # use $as_me), people would be surprised to read:
7303 # /* config.h. Generated by config.status. */
7304 configure_input
='Generated from '`
7305 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7307 if test x
"$ac_file" != x-
; then
7308 configure_input
="$ac_file. $configure_input"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7310 $as_echo "$as_me: creating $ac_file" >&6;}
7312 # Neutralize special characters interpreted by sed in replacement strings.
7313 case $configure_input in #(
7314 *\
&* |
*\|
* |
*\\* )
7315 ac_sed_conf_input
=`$as_echo "$configure_input" |
7316 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7317 *) ac_sed_conf_input
=$configure_input;;
7321 *:-:* |
*:-) cat >"$tmp/stdin" \
7322 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7327 ac_dir
=`$as_dirname -- "$ac_file" ||
7328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7329 X"$ac_file" : 'X\(//\)[^/]' \| \
7330 X"$ac_file" : 'X\(//\)$' \| \
7331 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7332 $as_echo X"$ac_file" |
7333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7350 as_dir
="$ac_dir"; as_fn_mkdir_p
7354 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7356 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7357 # A ".." for each directory in $ac_dir_suffix.
7358 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7359 case $ac_top_builddir_sub in
7360 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7361 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7364 ac_abs_top_builddir
=$ac_pwd
7365 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7366 # for backward compatibility:
7367 ac_top_builddir
=$ac_top_build_prefix
7370 .
) # We are building in place.
7372 ac_top_srcdir
=$ac_top_builddir_sub
7373 ac_abs_top_srcdir
=$ac_pwd ;;
7374 [\\/]* | ?
:[\\/]* ) # Absolute name.
7375 ac_srcdir
=$srcdir$ac_dir_suffix;
7376 ac_top_srcdir
=$srcdir
7377 ac_abs_top_srcdir
=$srcdir ;;
7379 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7380 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7381 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7383 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7393 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7394 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7399 # If the template does not know about datarootdir, expand it.
7400 # FIXME: This hack should be removed a few years after 2.60.
7401 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7413 *datarootdir
*) ac_datarootdir_seen
=yes;;
7414 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7419 ac_datarootdir_hack='
7420 s&@datadir@&$datadir&g
7421 s&@docdir@&$docdir&g
7422 s&@infodir@&$infodir&g
7423 s&@localedir@&$localedir&g
7424 s&@mandir@&$mandir&g
7425 s&\\\${datarootdir}&$datarootdir&g' ;;
7429 # Neutralize VPATH when `$srcdir' = `.'.
7430 # Shell code in configure.ac might set extrasub.
7431 # FIXME: do we really want to maintain this feature?
7432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7433 ac_sed_extra="$ac_vpsub
7436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7438 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7439 s|@configure_input@|
$ac_sed_conf_input|
;t t
7440 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7441 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7442 s
&@srcdir@
&$ac_srcdir&;t t
7443 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7444 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7445 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7446 s
&@builddir@
&$ac_builddir&;t t
7447 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7448 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7449 s
&@INSTALL@
&$ac_INSTALL&;t t
7450 $ac_datarootdir_hack
7452 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7453 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7455 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7456 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7457 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7459 which seems to be undefined. Please make sure it is defined." >&5
7460 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7461 which seems to be undefined. Please make sure it is defined." >&2;}
7465 -) cat "$tmp/out" && rm -f "$tmp/out";;
7466 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7468 || as_fn_error "could not create $ac_file" "$LINENO" 5
7474 if test x"$ac_file" != x-; then
7476 $as_echo "/* $configure_input */" \
7477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7478 } >"$tmp/config.h" \
7479 || as_fn_error "could not create $ac_file" "$LINENO" 5
7480 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7482 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7485 mv "$tmp/config.h" "$ac_file" \
7486 || as_fn_error "could not create $ac_file" "$LINENO" 5
7489 $as_echo "/* $configure_input */" \
7490 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7491 || as_fn_error "could not create -" "$LINENO" 5
7499 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
7502 # Prefer the file from the source tree if names are identical.
7503 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7504 ac_source=$srcdir/$ac_source
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7508 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7510 if test ! -r "$ac_source"; then
7511 as_fn_error "$ac_source: file not found" "$LINENO" 5
7515 # Try a relative symlink, then a hard link, then a copy.
7517 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7518 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7520 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7521 ln "$ac_source" "$ac_file" 2>/dev/null ||
7522 cp -p "$ac_source" "$ac_file" ||
7523 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7526 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7527 $as_echo "$as_me: executing $ac_file commands" >&6;}
7532 case $ac_file$ac_mode in
7533 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7534 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7535 rm -f Makesim1.tmp Makesim2.tmp Makefile
7536 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7537 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
7538 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7539 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7540 <Makefile.sim
>Makefile
7541 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7543 "stamp-h":C
) echo > stamp-h
;;
7551 ac_clean_files
=$ac_clean_files_save
7553 test $ac_write_fail = 0 ||
7554 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7557 # configure is writing to config.log, and then calls config.status.
7558 # config.status does its own redirection, appending to config.log.
7559 # Unfortunately, on DOS this fails, as config.log is still kept open
7560 # by configure, so config.status won't be able to write to it; its
7561 # output is simply discarded. So we exec the FD to /dev/null,
7562 # effectively closing config.log, so it can be properly (re)opened and
7563 # appended to by config.status. When coming back to configure, we
7564 # need to make the FD available again.
7565 if test "$no_create" != yes; then
7567 ac_config_status_args
=
7568 test "$silent" = yes &&
7569 ac_config_status_args
="$ac_config_status_args --quiet"
7571 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7573 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7574 # would make configure fail if this is the last instruction.
7575 $ac_cs_success || as_fn_exit $?
7577 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7579 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}