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
697 program_transform_name
731 enable_option_checking
738 enable_sim_decode_mechanism
739 enable_sim_default_model
746 enable_sim_hostbitsize
747 enable_sim_hostendian
753 enable_sim_model_issue
758 enable_sim_reserved_bits
766 enable_sim_xor_endian
770 ac_precious_vars
='build_alias
781 # Initialize some variables set by options.
783 ac_init_version
=false
784 ac_unrecognized_opts
=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name
=s
,x
,x
,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir
='${exec_prefix}/bin'
810 sbindir
='${exec_prefix}/sbin'
811 libexecdir
='${exec_prefix}/libexec'
812 datarootdir
='${prefix}/share'
813 datadir
='${datarootdir}'
814 sysconfdir
='${prefix}/etc'
815 sharedstatedir
='${prefix}/com'
816 localstatedir
='${prefix}/var'
817 includedir
='${prefix}/include'
818 oldincludedir
='/usr/include'
819 docdir
='${datarootdir}/doc/${PACKAGE}'
820 infodir
='${datarootdir}/info'
825 libdir
='${exec_prefix}/lib'
826 localedir
='${datarootdir}/locale'
827 mandir
='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\
$ac_option
841 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
853 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
856 -build |
--build |
--buil |
--bui |
--bu)
857 ac_prev
=build_alias
;;
858 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
859 build_alias
=$ac_optarg ;;
861 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
862 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
863 ac_prev
=cache_file
;;
864 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
865 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
866 cache_file
=$ac_optarg ;;
869 cache_file
=config.cache
;;
871 -datadir |
--datadir |
--datadi |
--datad)
873 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
874 datadir
=$ac_optarg ;;
876 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
877 |
--dataroo |
--dataro |
--datar)
878 ac_prev
=datarootdir
;;
879 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
880 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
881 datarootdir
=$ac_optarg ;;
883 -disable-* |
--disable-*)
884 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
887 as_fn_error
"invalid feature name: $ac_useropt"
888 ac_useropt_orig
=$ac_useropt
889 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep
=', ';;
897 eval enable_
$ac_useropt=no
;;
899 -docdir |
--docdir |
--docdi |
--doc |
--do)
901 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
904 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
906 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
909 -enable-* |
--enable-*)
910 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
913 as_fn_error
"invalid feature name: $ac_useropt"
914 ac_useropt_orig
=$ac_useropt
915 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep
=', ';;
923 eval enable_
$ac_useropt=\
$ac_optarg ;;
925 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
926 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
927 |
--exec |
--exe |
--ex)
928 ac_prev
=exec_prefix
;;
929 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
930 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
931 |
--exec=* |
--exe=* |
--ex=*)
932 exec_prefix
=$ac_optarg ;;
934 -gas |
--gas |
--ga |
--g)
935 # Obsolete; use --with-gas.
938 -help |
--help |
--hel |
--he |
-h)
940 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
941 ac_init_help
=recursive
;;
942 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
943 ac_init_help
=short
;;
945 -host |
--host |
--hos |
--ho)
946 ac_prev
=host_alias
;;
947 -host=* |
--host=* |
--hos=* |
--ho=*)
948 host_alias
=$ac_optarg ;;
950 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
952 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
954 htmldir
=$ac_optarg ;;
956 -includedir |
--includedir |
--includedi |
--included |
--include \
957 |
--includ |
--inclu |
--incl |
--inc)
958 ac_prev
=includedir
;;
959 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
960 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
961 includedir
=$ac_optarg ;;
963 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
965 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
966 infodir
=$ac_optarg ;;
968 -libdir |
--libdir |
--libdi |
--libd)
970 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
973 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
974 |
--libexe |
--libex |
--libe)
975 ac_prev
=libexecdir
;;
976 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
977 |
--libexe=* |
--libex=* |
--libe=*)
978 libexecdir
=$ac_optarg ;;
980 -localedir |
--localedir |
--localedi |
--localed |
--locale)
982 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
983 localedir
=$ac_optarg ;;
985 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
986 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
987 ac_prev
=localstatedir
;;
988 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
989 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
990 localstatedir
=$ac_optarg ;;
992 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
994 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
998 # Obsolete; use --without-fp.
1001 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1002 |
--no-cr |
--no-c |
-n)
1005 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1006 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1009 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1010 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1011 |
--oldin |
--oldi |
--old |
--ol |
--o)
1012 ac_prev
=oldincludedir
;;
1013 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1014 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1015 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1016 oldincludedir
=$ac_optarg ;;
1018 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1020 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1021 prefix
=$ac_optarg ;;
1023 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1024 |
--program-pre |
--program-pr |
--program-p)
1025 ac_prev
=program_prefix
;;
1026 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1027 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1028 program_prefix
=$ac_optarg ;;
1030 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1031 |
--program-suf |
--program-su |
--program-s)
1032 ac_prev
=program_suffix
;;
1033 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1034 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1035 program_suffix
=$ac_optarg ;;
1037 -program-transform-name |
--program-transform-name \
1038 |
--program-transform-nam |
--program-transform-na \
1039 |
--program-transform-n |
--program-transform- \
1040 |
--program-transform |
--program-transfor \
1041 |
--program-transfo |
--program-transf \
1042 |
--program-trans |
--program-tran \
1043 |
--progr-tra |
--program-tr |
--program-t)
1044 ac_prev
=program_transform_name
;;
1045 -program-transform-name=* |
--program-transform-name=* \
1046 |
--program-transform-nam=* |
--program-transform-na=* \
1047 |
--program-transform-n=* |
--program-transform-=* \
1048 |
--program-transform=* |
--program-transfor=* \
1049 |
--program-transfo=* |
--program-transf=* \
1050 |
--program-trans=* |
--program-tran=* \
1051 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1052 program_transform_name
=$ac_optarg ;;
1054 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1056 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1057 pdfdir
=$ac_optarg ;;
1059 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1061 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1064 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1065 |
-silent |
--silent |
--silen |
--sile |
--sil)
1068 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1070 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1072 sbindir
=$ac_optarg ;;
1074 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1075 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1076 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1078 ac_prev
=sharedstatedir
;;
1079 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1080 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1081 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1083 sharedstatedir
=$ac_optarg ;;
1085 -site |
--site |
--sit)
1087 -site=* |
--site=* |
--sit=*)
1090 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1092 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1093 srcdir
=$ac_optarg ;;
1095 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1096 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1097 ac_prev
=sysconfdir
;;
1098 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1099 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1100 sysconfdir
=$ac_optarg ;;
1102 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1103 ac_prev
=target_alias
;;
1104 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1105 target_alias
=$ac_optarg ;;
1107 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1110 -version |
--version |
--versio |
--versi |
--vers |
-V)
1111 ac_init_version
=: ;;
1114 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 as_fn_error
"invalid package name: $ac_useropt"
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval with_
$ac_useropt=\
$ac_optarg ;;
1129 -without-* |
--without-*)
1130 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1133 as_fn_error
"invalid package name: $ac_useropt"
1134 ac_useropt_orig
=$ac_useropt
1135 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep
=', ';;
1143 eval with_
$ac_useropt=no
;;
1146 # Obsolete; use --with-x.
1149 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1150 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1151 ac_prev
=x_includes
;;
1152 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1153 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1154 x_includes
=$ac_optarg ;;
1156 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1157 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1158 ac_prev
=x_libraries
;;
1159 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1160 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1161 x_libraries
=$ac_optarg ;;
1163 -*) as_fn_error
"unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information."
1168 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1172 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\
$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 if test -n "$ac_prev"; then
1189 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error
"missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val
=\$
$ac_var
1208 # Remove trailing slashes.
1211 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\
$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$
]* | ?
:[\\/]* ) continue;;
1217 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1219 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target
=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x
; then
1231 if test "x$build_alias" = x
; then
1232 cross_compiling
=maybe
1233 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1243 test "$silent" = yes && exec 6>/dev
/null
1246 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di
=`ls -di .` &&
1248 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error
"working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error
"pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted
=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir
=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted
=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1290 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var
in $ac_precious_vars; do
1307 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1309 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures this package to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1383 --build=BUILD configure
for building on BUILD
[guessed
]
1384 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1385 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1389 if test -n "$ac_init_help"; then
1394 --disable-option-checking ignore unrecognized
--enable/--with options
1395 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1396 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1397 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1398 --enable-sim-assert Specify whether to perform random assertions.
1399 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1400 --enable-sim-bswap Use the BSWAP instruction on Intel
486s and Pentiums.
1401 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1402 --enable-sim-config=file Override default config
file
1403 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1404 --enable-sim-default-model=which Specify default PowerPC to model.
1405 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1406 --enable-sim-endian=endian Specify target byte endian orientation.
1407 --enable-sim-env=env Specify target environment
(operating
, virtual
, user
).
1408 --enable-sim-filter=rule Specify filter rules.
1409 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1410 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1411 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1412 --enable-sim-hostendian=end Specify
host byte endian orientation.
1413 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1414 --enable-sim-inline=inlines Specify
which functions should be inlined.
1415 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1416 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1417 --enable-sim-model=which Specify PowerPC to model.
1418 --enable-sim-model-issue Specify whether to simulate model specific actions
1419 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1420 --enable-sim-opcode=which Override default opcode lookup.
1421 --enable-sim-packages=list Specify the packages to be included
in the build.
1422 --enable-sim-regparm=nr-parm Pass parameters
in registers instead of on the stack
- x86
/GCC specific.
1423 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1424 --enable-sim-smp=n Specify number of processors to configure
for.
1425 --enable-sim-stdcall=type Use an alternative
function call
/return mechanism
- x86
/GCC specific.
1426 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1427 --enable-sim-switch Use a switch instead of a table
for instruction call.
1428 --enable-sim-timebase Specify whether the PPC timebase is supported.
1429 --enable-sim-trace Specify whether tracing is supported.
1430 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
1431 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1434 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1435 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1436 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1437 --with-bugurl=URL Direct users to URL to report a bug
1439 Some influential environment variables
:
1440 CC C compiler
command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1443 nonstandard directory
<lib dir
>
1444 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1445 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1446 you have headers
in a nonstandard directory
<include dir
>
1449 Use these variables to override the choices made by
`configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1452 Report bugs to the package provider.
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1482 .) # We are building in place.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1516 generated by GNU Autoconf 2.64
1518 Copyright (C) 2009 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1539 *) ac_try_echo
=$ac_try;;
1541 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1545 if test -s conftest.err
; then
1546 grep -v '^ *+' conftest.err
>conftest.er1
1547 cat conftest.er1
>&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.
$ac_objext; then :
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.
$ac_ext >&5
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1565 } # ac_fn_c_try_compile
1567 # ac_fn_c_try_run LINENO
1568 # ----------------------
1569 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1570 # that executables *can* be run.
1573 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1574 if { { ac_try
="$ac_link"
1576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_link") 2>&5
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1585 { { case "(($ac_try" in
1586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1587 *) ac_try_echo
=$ac_try;;
1589 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_try") 2>&5
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; }; }; then :
1597 $as_echo "$as_me: program exited with status $ac_status" >&5
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.
$ac_ext >&5
1601 ac_retval
=$ac_status
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1615 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } >/dev/null && {
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists and can be compiled using the include files in
1649 # INCLUDES, setting the cache variable VAR accordingly.
1650 ac_fn_c_check_header_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 $as_echo_n "(cached) " >&6
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1663 if ac_fn_c_try_compile "$LINENO"; then :
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 } # ac_fn_c_check_header_compile
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1687 *) ac_try_echo
=$ac_try;;
1689 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1693 if test -s conftest.err
; then
1694 grep -v '^ *+' conftest.err
>conftest.er1
1695 cat conftest.er1
>&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest
$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 $as_test_x conftest
$ac_exeext
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.
$ac_ext >&5
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1721 } # ac_fn_c_try_link
1723 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1726 # the include files in INCLUDES and setting the cache variable VAR
1728 ac_fn_c_check_header_mongrel
()
1730 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1731 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1735 $as_echo_n "(cached) " >&6
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1741 # Is the header compilable?
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1743 $as_echo_n "checking $2 usability... " >&6; }
1744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1749 if ac_fn_c_try_compile
"$LINENO"; then :
1750 ac_header_compiler
=yes
1752 ac_header_compiler
=no
1754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1756 $as_echo "$ac_header_compiler" >&6; }
1758 # Is the header present?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1760 $as_echo_n "checking $2 presence... " >&6; }
1761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1765 if ac_fn_c_try_cpp
"$LINENO"; then :
1766 ac_header_preproc
=yes
1768 ac_header_preproc
=no
1770 rm -f conftest.err conftest.
$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1772 $as_echo "$ac_header_preproc" >&6; }
1774 # So? What about this header?
1775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1778 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1784 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1786 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1788 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1790 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1800 eval "$3=\$ac_header_compiler"
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1808 } # ac_fn_c_check_header_mongrel
1810 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1811 # ----------------------------------------------------
1812 # Tries to find if the field MEMBER exists in type AGGR, after including
1813 # INCLUDES, setting cache variable VAR accordingly.
1814 ac_fn_c_check_member
()
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1818 $as_echo_n "checking for $2.$3... " >&6; }
1819 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1820 $as_echo_n "(cached) " >&6
1822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1835 if ac_fn_c_try_compile
"$LINENO"; then :
1838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1845 if (sizeof ac_aggr.$3)
1851 if ac_fn_c_try_compile
"$LINENO"; then :
1856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1865 } # ac_fn_c_check_member
1867 # ac_fn_c_check_decl LINENO SYMBOL VAR
1868 # ------------------------------------
1869 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1870 ac_fn_c_check_decl
()
1872 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1874 $as_echo_n "checking whether $2 is declared... " >&6; }
1875 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1892 if ac_fn_c_try_compile
"$LINENO"; then :
1897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1904 } # ac_fn_c_check_decl
1906 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1907 # -------------------------------------------
1908 # Tests whether TYPE exists after having included INCLUDES, setting cache
1909 # variable VAR accordingly.
1910 ac_fn_c_check_type
()
1912 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1931 if ac_fn_c_try_compile
"$LINENO"; then :
1932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1944 if ac_fn_c_try_compile
"$LINENO"; then :
1949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1958 } # ac_fn_c_check_type
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func
()
1965 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1975 #define $2 innocuous_$2
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $2 (); below.
1979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980 <limits.h> exists even on freestanding compilers. */
1983 # include <limits.h>
1985 # include <assert.h>
1990 /* Override any GCC internal prototype to avoid an error.
1991 Use char because int might match the return type of a GCC
1992 builtin and then its argument prototype would still apply. */
1997 /* The GNU C library defines this for functions which it implements
1998 to always fail with ENOSYS. Some functions are actually named
1999 something starting with __ and the normal name is an alias. */
2000 #if defined __stub_$2 || defined __stub___$2
2012 if ac_fn_c_try_link
"$LINENO"; then :
2017 rm -f core conftest.err conftest.
$ac_objext \
2018 conftest
$ac_exeext conftest.
$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2025 } # ac_fn_c_check_func
2026 cat >config.log
<<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2030 It was created by $as_me, which was
2031 generated by GNU Autoconf 2.64. Invocation command line was
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir
=.
2067 $as_echo "PATH: $as_dir"
2083 # Keep a trace of the command line.
2084 # Strip out --no-create and --no-recursion so they do not pile up.
2085 # Strip out --silent because we don't want to record it for future runs.
2086 # Also quote any args containing shell meta-characters.
2087 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_must_keep_next
=false
2097 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2098 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2099 |
-silent |
--silent |
--silen |
--sile |
--sil)
2102 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2107 as_fn_append ac_configure_args1
" '$ac_arg'"
2108 if test $ac_must_keep_next = true
; then
2109 ac_must_keep_next
=false
# Got value, back to normal.
2112 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2113 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2114 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2115 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120 -* ) ac_must_keep_next
=true
;;
2123 as_fn_append ac_configure_args
" '$ac_arg'"
2128 { ac_configure_args0
=; unset ac_configure_args0
;}
2129 { ac_configure_args1
=; unset ac_configure_args1
;}
2131 # When interrupted or exit'd, cleanup temporary files, and complete
2132 # config.log. We remove comments because anyway the quotes in there
2133 # would cause problems or look ugly.
2134 # WARNING: Use '\'' to represent an apostrophe within the trap.
2135 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136 trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2142 ## ---------------- ##
2143 ## Cache variables. ##
2144 ## ---------------- ##
2147 # The following way of writing the cache mishandles newlines in values,
2149 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150 eval ac_val=\$$ac_var
2154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158 _ | IFS | as_nl) ;; #(
2159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160 *) { eval $ac_var=; unset $ac_var;} ;;
2165 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166 *${as_nl}ac_space=\ *)
2168 "s/'\''/'\''\\\\'\'''\''/g;
2169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180 ## ----------------- ##
2181 ## Output variables. ##
2182 ## ----------------- ##
2185 for ac_var in $ac_subst_vars
2187 eval ac_val=\$$ac_var
2189 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 $as_echo "$ac_var='\''$ac_val'\''"
2195 if test -n "$ac_subst_files"; then
2197 ## ------------------- ##
2198 ## File substitutions. ##
2199 ## ------------------- ##
2202 for ac_var
in $ac_subst_files
2204 eval ac_val
=\$
$ac_var
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 $as_echo "$ac_var='\''$ac_val'\''"
2213 if test -s confdefs.h; then
2223 test "$ac_signal" != 0 &&
2224 $as_echo "$as_me: caught signal $ac_signal"
2225 $as_echo "$as_me: exit $exit_status"
2227 rm -f core *.core core.conftest.* &&
2228 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231 for ac_signal
in 1 2 13 15; do
2232 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest
* confdefs.h
2239 $as_echo "/* confdefs.h */" > confdefs.h
2241 # Predefined preprocessor variables.
2243 cat >>confdefs.h
<<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2247 cat >>confdefs.h
<<_ACEOF
2248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251 cat >>confdefs.h
<<_ACEOF
2252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 cat >>confdefs.h
<<_ACEOF
2256 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 cat >>confdefs.h
<<_ACEOF
2260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 cat >>confdefs.h
<<_ACEOF
2264 #define PACKAGE_URL "$PACKAGE_URL"
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer an explicitly selected file to automatically selected ones.
2272 if test -n "$CONFIG_SITE"; then
2273 ac_site_file1
=$CONFIG_SITE
2274 elif test "x$prefix" != xNONE
; then
2275 ac_site_file1
=$prefix/share
/config.site
2276 ac_site_file2
=$prefix/etc
/config.site
2278 ac_site_file1
=$ac_default_prefix/share
/config.site
2279 ac_site_file2
=$ac_default_prefix/etc
/config.site
2281 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2283 test "x$ac_site_file" = xNONE
&& continue
2284 if test -r "$ac_site_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2286 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2287 sed 's/^/| /' "$ac_site_file" >&5
2292 if test -r "$cache_file"; then
2293 # Some versions of bash will fail to source /dev/null (special
2294 # files actually), so we avoid doing that.
2295 if test -f "$cache_file"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2297 $as_echo "$as_me: loading cache $cache_file" >&6;}
2299 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2300 *) .
"./$cache_file";;
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2305 $as_echo "$as_me: creating cache $cache_file" >&6;}
2309 # Check that the precious variables saved in the cache have kept the same
2311 ac_cache_corrupted
=false
2312 for ac_var
in $ac_precious_vars; do
2313 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2314 eval ac_new_set
=\
$ac_env_${ac_var}_set
2315 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2316 eval ac_new_val
=\
$ac_env_${ac_var}_value
2317 case $ac_old_set,$ac_new_set in
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2320 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2321 ac_cache_corrupted
=: ;;
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2324 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2325 ac_cache_corrupted
=: ;;
2328 if test "x$ac_old_val" != "x$ac_new_val"; then
2329 # differences in whitespace do not lead to failure.
2330 ac_old_val_w
=`echo x $ac_old_val`
2331 ac_new_val_w
=`echo x $ac_new_val`
2332 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2334 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2335 ac_cache_corrupted
=:
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2338 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2339 eval $ac_var=\
$ac_old_val
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2342 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2344 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2347 # Pass precious variables to config.status.
2348 if test "$ac_new_set" = set; then
2350 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2351 *) ac_arg
=$ac_var=$ac_new_val ;;
2353 case " $ac_configure_args " in
2354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2355 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2359 if $ac_cache_corrupted; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2363 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2364 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366 ## -------------------- ##
2367 ## Main body of script. ##
2368 ## -------------------- ##
2371 ac_cpp
='$CPP $CPPFLAGS'
2372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2382 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2383 for ac_t
in install-sh
install.sh shtool
; do
2384 if test -f "$ac_dir/$ac_t"; then
2386 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2391 if test -z "$ac_aux_dir"; then
2392 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2395 # These three variables are undocumented and unsupported,
2396 # and are intended to be withdrawn in a future Autoconf release.
2397 # They can cause serious problems if a builder's source tree is in a directory
2398 # whose full name contains unusual characters.
2399 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2404 # Find a good install program. We prefer a C program (faster),
2405 # so one script is as good as another. But avoid the broken or
2406 # incompatible versions:
2407 # SysV /etc/install, /usr/sbin/install
2408 # SunOS /usr/etc/install
2409 # IRIX /sbin/install
2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # OS/2's system install, which has a completely different semantic
2416 # ./install, which can be erroneously created by make from ./install.sh.
2417 # Reject install programs that cannot install multiple files.
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2419 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2420 if test -z "$INSTALL"; then
2421 if test "${ac_cv_path_install+set}" = set; then :
2422 $as_echo_n "(cached) " >&6
2424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir
=.
2429 # Account for people who put trailing slashes in PATH elements.
2430 case $as_dir/ in #((
2431 .
/ | .
// |
/[cC
]/* | \
2432 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2433 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2436 # OSF1 and SCO ODT 3.0 have their own names for install.
2437 # Don't use installbsd from OSF since it installs stuff as root
2439 for ac_prog
in ginstall scoinst
install; do
2440 for ac_exec_ext
in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2442 if test $ac_prog = install &&
2443 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2444 # AIX install. It has an incompatible calling convention.
2446 elif test $ac_prog = install &&
2447 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2448 # program-specific install script used by HP pwplus--don't use.
2451 rm -rf conftest.one conftest.two conftest.dir
2452 echo one
> conftest.one
2453 echo two
> conftest.two
2455 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2456 test -s conftest.one
&& test -s conftest.two
&&
2457 test -s conftest.dir
/conftest.one
&&
2458 test -s conftest.dir
/conftest.two
2460 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2473 rm -rf conftest.one conftest.two conftest.dir
2476 if test "${ac_cv_path_install+set}" = set; then
2477 INSTALL
=$ac_cv_path_install
2479 # As a last resort, use the slow shell script. Don't cache a
2480 # value for INSTALL within a source directory, because that will
2481 # break other packages using the cache if that directory is
2482 # removed, or if the value is a relative name.
2483 INSTALL
=$ac_install_sh
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2487 $as_echo "$INSTALL" >&6; }
2489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2490 # It thinks the first close brace ends the variable substitution.
2491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2495 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2498 ac_cpp
='$CPP $CPPFLAGS'
2499 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2502 if test -n "$ac_tool_prefix"; then
2503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2504 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_CC+set}" = set; then :
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC
="$CC" # Let the user override the test.
2513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir
=.
2518 for ac_exec_ext
in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 if test -n "$CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2533 $as_echo "$CC" >&6; }
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2541 if test -z "$ac_cv_prog_CC"; then
2543 # Extract the first word of "gcc", so it can be a program name with args.
2544 set dummy gcc
; ac_word
=$2
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546 $as_echo_n "checking for $ac_word... " >&6; }
2547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2550 if test -n "$ac_ct_CC"; then
2551 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir
=.
2558 for ac_exec_ext
in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_ac_ct_CC
="gcc"
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2571 if test -n "$ac_ct_CC"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2573 $as_echo "$ac_ct_CC" >&6; }
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576 $as_echo "no" >&6; }
2579 if test "x$ac_ct_CC" = x
; then
2582 case $cross_compiling:$ac_tool_warned in
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2586 ac_tool_warned
=yes ;;
2594 if test -z "$CC"; then
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2597 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if test "${ac_cv_prog_CC+set}" = set; then :
2601 $as_echo_n "(cached) " >&6
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC
="$CC" # Let the user override the test.
2606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir
=.
2611 for ac_exec_ext
in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 if test -n "$CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626 $as_echo "$CC" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2635 if test -z "$CC"; then
2636 # Extract the first word of "cc", so it can be a program name with args.
2637 set dummy cc
; ac_word
=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC
="$CC" # Let the user override the test.
2647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir
=.
2652 for ac_exec_ext
in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2655 ac_prog_rejected
=yes
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test $ac_prog_rejected = yes; then
2667 # We found a bogon in the path, so make sure we never use it.
2668 set dummy
$ac_cv_prog_CC
2670 if test $# != 0; then
2671 # We chose a different compiler from the bogus one.
2672 # However, it has the same basename, so the bogon will be chosen
2673 # first if we set CC to just the basename; use the full file name.
2675 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2681 if test -n "$CC"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2683 $as_echo "$CC" >&6; }
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2691 if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 for ac_prog
in cl.exe
2695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2696 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC
="$CC" # Let the user override the test.
2705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir
=.
2710 for ac_exec_ext
in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 if test -n "$CC"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725 $as_echo "$CC" >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2732 test -n "$CC" && break
2735 if test -z "$CC"; then
2737 for ac_prog
in cl.exe
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy
$ac_prog; ac_word
=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_CC
="$ac_prog"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2767 if test -n "$ac_ct_CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2769 $as_echo "$ac_ct_CC" >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2776 test -n "$ac_ct_CC" && break
2779 if test "x$ac_ct_CC" = x
; then
2782 case $cross_compiling:$ac_tool_warned in
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2786 ac_tool_warned
=yes ;;
2795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 as_fn_error
"no acceptable C compiler found in \$PATH
2798 See \`config.log' for more details." "$LINENO" 5; }
2800 # Provide some information about the compiler.
2801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2804 for ac_option
in --version -v -V -qversion; do
2805 { { ac_try
="$ac_compiler $ac_option >&5"
2807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811 $as_echo "$ac_try_echo"; } >&5
2812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2814 if test -s conftest.err; then
2816 ... rest of stderr output deleted ...
2817 10q' conftest.err >conftest.er1
2818 cat conftest.er1 >&5
2819 rm -f conftest.er1 conftest.err
2821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2822 test $ac_status = 0; }
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h. */
2836 ac_clean_files_save=$ac_clean_files
2837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2838 # Try to create an executable without -o first, disregard a.out.
2839 # It will help us diagnose broken compilers, and finding out an intuition
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2842 $as_echo_n "checking for C compiler default output file name... " >&6; }
2843 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2845 # The possible output files:
2846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2849 for ac_file in $ac_files
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2858 if { { ac_try="$ac_link_default"
2860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2861 *) ac_try_echo
=$ac_try;;
2863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864 $as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_link_default") 2>&5
2867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868 test $ac_status = 0; }; then :
2869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2872 # so that the user can short-circuit this test for compilers unknown to
2874 for ac_file
in $ac_files ''
2876 test -f "$ac_file" ||
continue
2878 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2881 # We found the default executable, but exeext='' is most
2885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2887 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 # We set ac_cv_exeext here because the later test for it is not
2890 # safe: cross compilers may not add the suffix if given an `-o'
2891 # argument, so we may need to know it at that point already.
2892 # Even if this section looks crufty: it has the advantage of
2899 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2905 $as_echo "$ac_file" >&6; }
2906 if test -z "$ac_file"; then :
2907 $as_echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.
$ac_ext >&5
2910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912 { as_fn_set_status
77
2913 as_fn_error
"C compiler cannot create executables
2914 See \`config.log' for more details." "$LINENO" 5; }; }
2916 ac_exeext
=$ac_cv_exeext
2918 # Check that the compiler produces executables we can run. If not, either
2919 # the compiler is broken, or we cross compile.
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2921 $as_echo_n "checking whether the C compiler works... " >&6; }
2922 # If not cross compiling, check that we can run a simple program.
2923 if test "$cross_compiling" != yes; then
2924 if { ac_try
='./$ac_file'
2925 { { case "(($ac_try" in
2926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_try") 2>&5
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; }; then
2937 if test "$cross_compiling" = maybe; then
2940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 as_fn_error "cannot run C compiled programs.
2943 If you meant to cross compile
, use \
`--host'.
2944 See \`config.log
' for more details." "$LINENO" 5; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 $as_echo "yes" >&6; }
2951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2952 ac_clean_files=$ac_clean_files_save
2953 # Check that the compiler produces executables we can run. If not, either
2954 # the compiler is broken, or we cross compile.
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2956 $as_echo_n "checking whether we are cross compiling... " >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2958 $as_echo "$cross_compiling" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2961 $as_echo_n "checking for suffix of executables... " >&6; }
2962 if { { ac_try="$ac_link"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_link") 2>&5
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; then :
2973 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2974 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2975 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2977 for ac_file
in conftest.exe conftest conftest.
*; do
2978 test -f "$ac_file" ||
continue
2980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2981 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2990 See \`config.log' for more details." "$LINENO" 5; }
2992 rm -f conftest
$ac_cv_exeext
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2994 $as_echo "$ac_cv_exeext" >&6; }
2996 rm -f conftest.
$ac_ext
2997 EXEEXT
=$ac_cv_exeext
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3000 $as_echo_n "checking for suffix of object files... " >&6; }
3001 if test "${ac_cv_objext+set}" = set; then :
3002 $as_echo_n "(cached) " >&6
3004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3015 rm -f conftest.o conftest.obj
3016 if { { ac_try
="$ac_compile"
3018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_compile") 2>&5
3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026 test $ac_status = 0; }; then :
3027 for ac_file in conftest.o conftest.obj conftest.*; do
3028 test -f "$ac_file" || continue;
3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 as_fn_error "cannot compute suffix of object files
: cannot compile
3042 See \
`config.log' for more details." "$LINENO" 5; }
3044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3047 $as_echo "$ac_cv_objext" >&6; }
3048 OBJEXT=$ac_cv_objext
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h. */
3069 if ac_fn_c_try_compile "$LINENO"; then :
3074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3080 if test $ac_compiler_gnu = yes; then
3085 ac_test_CFLAGS=${CFLAGS+set}
3086 ac_save_CFLAGS=$CFLAGS
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3089 if test "${ac_cv_prog_cc_g+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3092 ac_save_c_werror_flag=$ac_c_werror_flag
3093 ac_c_werror_flag=yes
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3107 if ac_fn_c_try_compile "$LINENO"; then :
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3122 if ac_fn_c_try_compile "$LINENO"; then :
3125 ac_c_werror_flag=$ac_save_c_werror_flag
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3138 if ac_fn_c_try_compile "$LINENO"; then :
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 ac_c_werror_flag=$ac_save_c_werror_flag
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3149 $as_echo "$ac_cv_prog_cc_g" >&6; }
3150 if test "$ac_test_CFLAGS" = set; then
3151 CFLAGS=$ac_save_CFLAGS
3152 elif test $ac_cv_prog_cc_g = yes; then
3153 if test "$GCC" = yes; then
3159 if test "$GCC" = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3170 ac_cv_prog_cc_c89=no
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3176 #include <sys/types.h>
3177 #include <sys/stat.h>
3178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3179 struct buf { int x; };
3180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3181 static char *e (p, i)
3187 static char *f (char * (*g) (char **, int), char **p, ...)
3192 s = g (p, va_arg (v,int));
3197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3198 function prototypes and stuff, but not '\xHH' hex character constants.
3199 These don't provoke an error unfortunately, instead are silently treated
3200 as 'x'. The following induces an error, until -std is added to get
3201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3202 array size at least. It's necessary to write '\x00'==0 to get something
3203 that's true only with -std. */
3204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3207 inside strings and character constants. */
3209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3211 int test (int i, double x);
3212 struct s1 {int (*f) (int a);};
3213 struct s2 {int (*f) (double a);};
3214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3228 CC="$ac_save_CC $ac_arg"
3229 if ac_fn_c_try_compile "$LINENO"; then :
3230 ac_cv_prog_cc_c89=$ac_arg
3232 rm -f core conftest.err conftest.$ac_objext
3233 test "x$ac_cv_prog_cc_c89" != "xno" && break
3235 rm -f conftest.$ac_ext
3240 case "x$ac_cv_prog_cc_c89" in
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3243 $as_echo "none needed" >&6; } ;;
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3246 $as_echo "unsupported" >&6; } ;;
3248 CC="$CC $ac_cv_prog_cc_c89"
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3252 if test "x$ac_cv_prog_cc_c89" != xno; then :
3257 ac_cpp='$CPP $CPPFLAGS'
3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 # Put a plausible default for CC_FOR_BUILD in Makefile.
3264 if test "x$cross_compiling" = "xno"; then
3265 CC_FOR_BUILD='$(CC)'
3269 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3272 # If we haven't got the data from the intl directory,
3273 # assume NLS is disabled.
3282 if test -f ../../intl/config.intl; then
3283 . ../../intl/config.intl
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3286 $as_echo_n "checking whether NLS is requested... " >&6; }
3287 if test x"$USE_NLS" != xyes; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3294 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3298 $as_echo_n "checking for catalogs to be installed... " >&6; }
3299 # Look for .po and .gmo files in the source directory.
3302 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3303 # If there aren't any .gmo files the shell will give us the
3304 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3306 case "$cat" in *\**)
3309 # The quadruple backslash is collapsed to a double backslash
3310 # by the backticks, then collapsed again by the double quotes,
3311 # leaving us with one backslash in the sed expression (right
3312 # before the dot that mustn't act as a wildcard).
3313 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3314 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3315 # The user is allowed to set LINGUAS to a list of languages to
3316 # install catalogs for. If it's empty that means "all of them."
3317 if test "x$LINGUAS" = x; then
3318 CATALOGS="$CATALOGS $cat"
3319 XLINGUAS="$XLINGUAS $lang"
3321 case "$LINGUAS" in *$lang*)
3322 CATALOGS="$CATALOGS $cat"
3323 XLINGUAS="$XLINGUAS $lang"
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3330 $as_echo "$LINGUAS" >&6; }
3344 # Check whether --enable-sim-alignment was given.
3345 if test "${enable_sim_alignment+set}" = set; then :
3346 enableval=$enable_sim_alignment; case "${enableval}" in
3347 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3348 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3349 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
3350 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
3352 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3353 echo "Setting alignment flags = $sim_alignment" 6>&1
3360 # Check whether --enable-sim-assert was given.
3361 if test "${enable_sim_assert+set}" = set; then :
3362 enableval=$enable_sim_assert; case "${enableval}" in
3363 yes) sim_assert="-DWITH_ASSERT=1";;
3364 no) sim_assert="-DWITH_ASSERT=0";;
3365 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
3367 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
3368 echo "Setting assert flags = $sim_assert" 6>&1
3375 # Check whether --enable-sim-bitsize was given.
3376 if test "${enable_sim_bitsize+set}" = set; then :
3377 enableval=$enable_sim_bitsize; case "${enableval}" in
3378 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3379 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3381 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3382 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3389 # Check whether --enable-sim-bswap was given.
3390 if test "${enable_sim_bswap+set}" = set; then :
3391 enableval=$enable_sim_bswap; case "${enableval}" in
3392 yes) sim_bswap="-DWITH_BSWAP=1";;
3393 no) sim_bswap="-DWITH_BSWAP=0";;
3394 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
3396 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3397 echo "Setting bswap flags = $sim_bswap" 6>&1
3404 # Check whether --enable-sim-cflags was given.
3405 if test "${enable_sim_cflags+set}" = set; then :
3406 enableval=$enable_sim_cflags; case "${enableval}" in
3407 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3409 *) sim_cflags=`echo "${enableval}" |
sed -e "s/,/ /g"`;;
3411 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3412 echo "Setting sim cflags = $sim_cflags" 6>&1
3419 # Check whether --enable-sim-config was given.
3420 if test "${enable_sim_config+set}" = set; then :
3421 enableval=$enable_sim_config; case "${enableval}" in
3422 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
3423 *) if test -f "${srcdir}/${enableval}"; then
3424 sim_config="${enableval}";
3425 elif test -f "${srcdir}/${enableval}-config.h"; then
3426 sim_config="${enableval}-config.h"
3428 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
3429 sim_config=std-config.h
3432 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3433 echo "Setting config flags = $sim_config" 6>&1
3436 sim_config="std-config.h"
3437 if test x"$silent" != x"yes"; then
3438 echo "Setting config flags = $sim_config" 6>&1
3443 # Check whether --enable-sim-decode-mechanism was given.
3444 if test "${enable_sim_decode_mechanism+set}" = set; then :
3445 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3446 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3447 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3448 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3449 sim_decode_mechanism="switch";;
3451 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3452 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3455 sim_decode_mechanism=""
3456 if test x"$silent" != x"yes"; then
3457 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3462 # Check whether --enable-sim-default-model was given.
3463 if test "${enable_sim_default_model+set}" = set; then :
3464 enableval=$enable_sim_default_model; case "${enableval}" in
3465 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3466 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3468 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3469 echo "Setting default-model flags = $sim_default_model" 6>&1
3472 sim_default_model=""
3476 # Check whether --enable-sim-duplicate was given.
3477 if test "${enable_sim_duplicate+set}" = set; then :
3478 enableval=$enable_sim_duplicate; case "${enableval}" in
3481 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3483 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3484 echo "Setting duplicate flags = $sim_dup" 6>&1
3488 if test x"$silent" != x"yes"; then
3489 echo "Setting duplicate flags = $sim_dup" 6>&1
3494 # Check whether --enable-sim-endian was given.
3495 if test "${enable_sim_endian+set}" = set; then :
3496 enableval=$enable_sim_endian; case "${enableval}" in
3497 yes) case "$target" in
3498 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3499 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3500 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3502 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3503 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3504 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3505 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
3507 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3508 echo "Setting endian flags = $sim_endian" 6>&1
3515 # Check whether --enable-sim-env was given.
3516 if test "${enable_sim_env+set}" = set; then :
3517 enableval=$enable_sim_env; case "${enableval}" in
3518 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3519 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3520 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3521 no) sim_env="-DWITH_ENVIRONMENT=0";;
3522 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
3524 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
3525 echo "Setting env flags = $sim_env" 6>&1
3532 # Check whether --enable-sim-filter was given.
3533 if test "${enable_sim_filter+set}" = set; then :
3534 enableval=$enable_sim_filter; case "${enableval}" in
3535 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3537 *) sim_filter="-F $enableval";;
3539 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3540 echo "Setting filter flags = $sim_filter" 6>&1
3543 sim_filter="-F 32,f,o"
3544 if test x"$silent" != x"yes"; then
3545 echo "Setting filter flags = $sim_filter" 6>&1
3550 # Check whether --enable-sim-float was given.
3551 if test "${enable_sim_float+set}" = set; then :
3552 enableval=$enable_sim_float; case "${enableval}" in
3553 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3554 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3555 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3556 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3557 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3559 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3560 echo "Setting float flags = $sim_float" 6>&1
3565 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3566 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3574 $as_echo_n "checking if union semun defined... " >&6; }
3575 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3581 #include <sys/types.h>
3582 #include <sys/ipc.h>
3583 #include <sys/sem.h>
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593 ac_cv_has_union_semun="yes"
3595 ac_cv_has_union_semun="no"
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3599 $as_echo "$ac_cv_has_union_semun" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3603 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3606 if test "$ac_cv_has_union_semun" = "yes"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3608 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3609 if test "${ac_cv_sysv_sem+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3613 if test "$cross_compiling" = yes; then :
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3619 #include <sys/types.h>
3620 #include <sys/ipc.h>
3621 #include <sys/sem.h>
3625 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3628 arg.val = 0; /* avoid implicit type cast to union */
3629 if (semctl(id, 0, IPC_RMID, arg) == -1)
3635 if ac_fn_c_try_run "$LINENO"; then :
3636 ac_cv_sysv_sem="yes"
3640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3641 conftest.$ac_objext conftest.beam conftest.$ac_ext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3647 $as_echo "$ac_cv_sysv_sem" >&6; }
3648 else # semun is not defined
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3650 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3651 if test "${ac_cv_sysv_sem+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3655 if test "$cross_compiling" = yes; then :
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3661 #include <sys/types.h>
3662 #include <sys/ipc.h>
3663 #include <sys/sem.h>
3666 struct semid_ds *buf;
3672 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3675 arg.val = 0; /* avoid implicit type cast to union */
3676 if (semctl(id, 0, IPC_RMID, arg) == -1)
3682 if ac_fn_c_try_run "$LINENO"; then :
3683 ac_cv_sysv_sem="yes"
3687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3688 conftest.$ac_objext conftest.beam conftest.$ac_ext
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3694 $as_echo "$ac_cv_sysv_sem" >&6; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3698 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3699 if test "${ac_cv_sysv_shm+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3703 if test "$cross_compiling" = yes; then :
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3709 #include <sys/types.h>
3710 #include <sys/ipc.h>
3711 #include <sys/shm.h>
3713 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3716 if (shmctl(id, IPC_RMID, 0) == -1)
3722 if ac_fn_c_try_run "$LINENO"; then :
3723 ac_cv_sysv_shm="yes"
3727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3728 conftest.$ac_objext conftest.beam conftest.$ac_ext
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3734 $as_echo "$ac_cv_sysv_shm" >&6; }
3736 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3737 sim_sysv_ipc_hw=",sem,shm";
3742 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3744 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3749 # Check whether --enable-sim-hardware was given.
3750 if test "${enable_sim_hardware+set}" = set; then :
3751 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3752 case "${enableval}" in
3754 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3755 ,*) hardware="${hardware}${enableval}";;
3756 *,) hardware="${enableval}${hardware}";;
3757 *) hardware="${enableval}"'';;
3759 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3760 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3761 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3762 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3765 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3766 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3767 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3768 if test x"$silent" != x"yes"; then
3769 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3773 # Check whether --enable-sim-hostbitsize was given.
3774 if test "${enable_sim_hostbitsize+set}" = set; then :
3775 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3776 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3777 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3779 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3780 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3793 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3794 # On Suns, sometimes $CPP names a directory.
3795 if test -n "$CPP" && test -d "$CPP"; then
3798 if test -z "$CPP"; then
3799 if test "${ac_cv_prog_CPP+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3802 # Double quotes because CPP needs to be expanded
3803 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3806 for ac_c_preproc_warn_flag in '' yes
3808 # Use a header file that comes with gcc, so configuring glibc
3809 # with a fresh cross-compiler works.
3810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3811 # <limits.h> exists even on freestanding compilers.
3812 # On the NeXT, cc -E runs the code through the compiler's parser,
3813 # not just through cpp. "Syntax error" is here to catch this case.
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3817 # include <limits.h>
3819 # include <assert.h>
3823 if ac_fn_c_try_cpp "$LINENO"; then :
3826 # Broken: fails on valid input.
3829 rm -f conftest.err conftest.$ac_ext
3831 # OK, works on sane cases. Now check whether nonexistent headers
3832 # can be detected and how.
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835 #include <ac_nonexistent.h>
3837 if ac_fn_c_try_cpp "$LINENO"; then :
3838 # Broken: success on invalid input.
3841 # Passes both tests.
3845 rm -f conftest.err conftest.$ac_ext
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.err conftest.
$ac_ext
3850 if $ac_preproc_ok; then :
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3863 $as_echo "$CPP" >&6; }
3865 for ac_c_preproc_warn_flag
in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3876 # include <limits.h>
3878 # include <assert.h>
3882 if ac_fn_c_try_cpp
"$LINENO"; then :
3885 # Broken: fails on valid input.
3888 rm -f conftest.err conftest.
$ac_ext
3890 # OK, works on sane cases. Now check whether nonexistent headers
3891 # can be detected and how.
3892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894 #include <ac_nonexistent.h>
3896 if ac_fn_c_try_cpp
"$LINENO"; then :
3897 # Broken: success on invalid input.
3900 # Passes both tests.
3904 rm -f conftest.err conftest.
$ac_ext
3907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3908 rm -f conftest.err conftest.
$ac_ext
3909 if $ac_preproc_ok; then :
3912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3915 See \`config.log' for more details." "$LINENO" 5; }
3919 ac_cpp
='$CPP $CPPFLAGS'
3920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3926 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3927 if test "${ac_cv_path_GREP+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
3930 if test -z "$GREP"; then
3931 ac_path_GREP_found
=false
3932 # Loop through the user's path and test for each of PROGNAME-LIST
3933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3937 test -z "$as_dir" && as_dir
=.
3938 for ac_prog
in grep ggrep
; do
3939 for ac_exec_ext
in '' $ac_executable_extensions; do
3940 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3941 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3942 # Check for GNU ac_path_GREP and select it if it is found.
3943 # Check for GNU $ac_path_GREP
3944 case `"$ac_path_GREP" --version 2>&1` in
3946 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3949 $as_echo_n 0123456789 >"conftest.in"
3952 cat "conftest.in" "conftest.in" >"conftest.tmp"
3953 mv "conftest.tmp" "conftest.in"
3954 cp "conftest.in" "conftest.nl"
3955 $as_echo 'GREP' >> "conftest.nl"
3956 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3957 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3958 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3959 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3960 # Best one so far, save it but keep looking for a better one
3961 ac_cv_path_GREP
="$ac_path_GREP"
3962 ac_path_GREP_max
=$ac_count
3964 # 10*(2^10) chars as input seems more than enough
3965 test $ac_count -gt 10 && break
3967 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3970 $ac_path_GREP_found && break 3
3975 if test -z "$ac_cv_path_GREP"; then
3976 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3979 ac_cv_path_GREP
=$GREP
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3984 $as_echo "$ac_cv_path_GREP" >&6; }
3985 GREP
="$ac_cv_path_GREP"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3989 $as_echo_n "checking for egrep... " >&6; }
3990 if test "${ac_cv_path_EGREP+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3993 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3994 then ac_cv_path_EGREP
="$GREP -E"
3996 if test -z "$EGREP"; then
3997 ac_path_EGREP_found
=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4000 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4003 test -z "$as_dir" && as_dir
=.
4004 for ac_prog
in egrep; do
4005 for ac_exec_ext
in '' $ac_executable_extensions; do
4006 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4007 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4008 # Check for GNU ac_path_EGREP and select it if it is found.
4009 # Check for GNU $ac_path_EGREP
4010 case `"$ac_path_EGREP" --version 2>&1` in
4012 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4015 $as_echo_n 0123456789 >"conftest.in"
4018 cat "conftest.in" "conftest.in" >"conftest.tmp"
4019 mv "conftest.tmp" "conftest.in"
4020 cp "conftest.in" "conftest.nl"
4021 $as_echo 'EGREP' >> "conftest.nl"
4022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4023 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4024 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4026 # Best one so far, save it but keep looking for a better one
4027 ac_cv_path_EGREP
="$ac_path_EGREP"
4028 ac_path_EGREP_max
=$ac_count
4030 # 10*(2^10) chars as input seems more than enough
4031 test $ac_count -gt 10 && break
4033 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4036 $ac_path_EGREP_found && break 3
4041 if test -z "$ac_cv_path_EGREP"; then
4042 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045 ac_cv_path_EGREP
=$EGREP
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4051 $as_echo "$ac_cv_path_EGREP" >&6; }
4052 EGREP
="$ac_cv_path_EGREP"
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4056 $as_echo_n "checking for ANSI C header files... " >&6; }
4057 if test "${ac_cv_header_stdc+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4075 if ac_fn_c_try_compile
"$LINENO"; then :
4076 ac_cv_header_stdc
=yes
4078 ac_cv_header_stdc
=no
4080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4082 if test $ac_cv_header_stdc = yes; then
4083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4090 $EGREP "memchr" >/dev
/null
2>&1; then :
4093 ac_cv_header_stdc
=no
4099 if test $ac_cv_header_stdc = yes; then
4100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 $EGREP "free" >/dev
/null
2>&1; then :
4110 ac_cv_header_stdc
=no
4116 if test $ac_cv_header_stdc = yes; then
4117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4118 if test "$cross_compiling" = yes; then :
4121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4125 #if ((' ' & 0x0FF) == 0x020)
4126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4129 # define ISLOWER(c) \
4130 (('a' <= (c) && (c) <= 'i') \
4131 || ('j' <= (c) && (c) <= 'r') \
4132 || ('s' <= (c) && (c) <= 'z'))
4133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4141 for (i = 0; i < 256; i++)
4142 if (XOR (islower (i), ISLOWER (i))
4143 || toupper (i) != TOUPPER (i))
4148 if ac_fn_c_try_run
"$LINENO"; then :
4151 ac_cv_header_stdc
=no
4153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4154 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4160 $as_echo "$ac_cv_header_stdc" >&6; }
4161 if test $ac_cv_header_stdc = yes; then
4163 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4167 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4168 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4169 inttypes.h stdint.h unistd.h
4171 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4172 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4174 eval as_val
=\$
$as_ac_Header
4175 if test "x$as_val" = x
""yes; then :
4176 cat >>confdefs.h
<<_ACEOF
4177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185 # Check whether --enable-sim-hostendian was given.
4186 if test "${enable_sim_hostendian+set}" = set; then :
4187 enableval
=$enable_sim_hostendian; case "${enableval}" in
4188 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4189 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4190 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4191 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4193 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4194 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4198 if test "x$cross_compiling" = "xno"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4200 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4201 if test "${ac_cv_c_bigendian+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4204 ac_cv_c_bigendian
=unknown
4205 # See if we're dealing with a universal compiler.
4206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #ifndef __APPLE_CC__
4209 not a universal capable compiler
4214 if ac_fn_c_try_compile
"$LINENO"; then :
4216 # Check for potential -arch flags. It is not universal unless
4217 # there are at least two -arch flags with different values.
4220 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4221 if test -n "$ac_prev"; then
4223 i?
86 | x86_64 | ppc | ppc64
)
4224 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4227 ac_cv_c_bigendian
=universal
4233 elif test "x$ac_word" = "x-arch"; then
4238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4239 if test $ac_cv_c_bigendian = unknown
; then
4240 # See if sys/param.h defines the BYTE_ORDER macro.
4241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <sys/types.h>
4244 #include <sys/param.h>
4249 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4250 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4259 if ac_fn_c_try_compile
"$LINENO"; then :
4260 # It does; now see whether it defined to BIG_ENDIAN or not.
4261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 #include <sys/types.h>
4264 #include <sys/param.h>
4269 #if BYTE_ORDER != BIG_ENDIAN
4277 if ac_fn_c_try_compile
"$LINENO"; then :
4278 ac_cv_c_bigendian
=yes
4280 ac_cv_c_bigendian
=no
4282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4286 if test $ac_cv_c_bigendian = unknown
; then
4287 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4295 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4303 if ac_fn_c_try_compile
"$LINENO"; then :
4304 # It does; now see whether it defined to _BIG_ENDIAN or not.
4305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4320 if ac_fn_c_try_compile
"$LINENO"; then :
4321 ac_cv_c_bigendian
=yes
4323 ac_cv_c_bigendian
=no
4325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4329 if test $ac_cv_c_bigendian = unknown
; then
4330 # Compile a test program.
4331 if test "$cross_compiling" = yes; then :
4332 # Try to guess by grepping values from an object file.
4333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335 short int ascii_mm[] =
4336 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4337 short int ascii_ii[] =
4338 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4339 int use_ascii (int i) {
4340 return ascii_mm[i] + ascii_ii[i];
4342 short int ebcdic_ii[] =
4343 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4344 short int ebcdic_mm[] =
4345 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4346 int use_ebcdic (int i) {
4347 return ebcdic_mm[i] + ebcdic_ii[i];
4354 return use_ascii (foo) == use_ebcdic (foo);
4359 if ac_fn_c_try_compile
"$LINENO"; then :
4360 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4361 ac_cv_c_bigendian
=yes
4363 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4364 if test "$ac_cv_c_bigendian" = unknown
; then
4365 ac_cv_c_bigendian
=no
4367 # finding both strings is unlikely to happen, but who knows?
4368 ac_cv_c_bigendian
=unknown
4372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 $ac_includes_default
4381 /* Are we little or big endian? From Harbison&Steele. */
4385 char c[sizeof (long int)];
4388 return u.c[sizeof (long int) - 1] == 1;
4394 if ac_fn_c_try_run
"$LINENO"; then :
4395 ac_cv_c_bigendian
=no
4397 ac_cv_c_bigendian
=yes
4399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4406 $as_echo "$ac_cv_c_bigendian" >&6; }
4407 case $ac_cv_c_bigendian in #(
4409 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4415 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4419 as_fn_error
"unknown endianness
4420 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4423 if test $ac_cv_c_bigendian = yes; then
4424 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4426 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4429 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4434 # Check whether --enable-sim-icache was given.
4435 if test "${enable_sim_icache+set}" = set; then :
4436 enableval
=$enable_sim_icache; icache
="-R"
4437 case "${enableval}" in
4438 yes) icache
="1024"; sim_icache
="-I $icache";;
4439 no
) sim_icache
="-R";;
4442 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4444 define
) sim_icache
="${sim_icache}R";;
4445 semantic
) sim_icache
="${sim_icache}C";;
4446 insn
) sim_icache
="${sim_icache}S";;
4447 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
4448 *) as_fn_error
"\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache
="";;
4451 sim_icache
="${sim_icache}I $icache";;
4453 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
4454 echo "Setting instruction cache size to $icache ($sim_icache)"
4457 sim_icache
="-CSRI 1024"
4458 if test x
"$silent" != x
"yes"; then
4459 echo "Setting instruction cache size to 1024 ($sim_icache)"
4464 # Check whether --enable-sim-inline was given.
4465 if test "${enable_sim_inline+set}" = set; then :
4466 enableval
=$enable_sim_inline; sim_inline
=""
4467 case "$enableval" in
4468 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4469 0) sim_inline
="-DDEFAULT_INLINE=0";;
4470 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
4471 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4472 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4475 *_INLINE
=*) new_flag
="-D$x";;
4476 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4477 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
4478 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
4480 if test x
"$sim_inline" = x
""; then
4481 sim_inline
="$new_flag"
4483 sim_inline
="$sim_inline $new_flag"
4487 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4488 echo "Setting inline flags = $sim_inline" 6>&1
4491 if test x
"$GCC" != ""; then
4492 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4493 if test x
"$silent" != x
"yes"; then
4494 echo "Setting inline flags = $sim_inline" 6>&1
4502 # Check whether --enable-sim-jump was given.
4503 if test "${enable_sim_jump+set}" = set; then :
4504 enableval
=$enable_sim_jump; case "${enableval}" in
4505 yes) sim_jump
="-J";;
4507 *) as_fn_error
"\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump
="";;
4509 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
4510 echo "Setting jump flag = $sim_jump" 6>&1
4514 if test x
"$silent" != x
"yes"; then
4515 echo "Setting jump flag = $sim_jump" 6>&1
4520 # Check whether --enable-sim-line-nr was given.
4521 if test "${enable_sim_line_nr+set}" = set; then :
4522 enableval
=$enable_sim_line_nr; case "${enableval}" in
4523 yes) sim_line_nr
="";;
4524 no
) sim_line_nr
="-L";;
4525 *) as_fn_error
"\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr
="";;
4527 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
4528 echo "Setting warning flags = $sim_line_nr" 6>&1
4535 # Check whether --enable-sim-model was given.
4536 if test "${enable_sim_model+set}" = set; then :
4537 enableval
=$enable_sim_model; case "${enableval}" in
4538 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
4539 *) sim_model
="-DWITH_MODEL=${enableval}";;
4541 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
4542 echo "Setting model flags = $sim_model" 6>&1
4549 # Check whether --enable-sim-model-issue was given.
4550 if test "${enable_sim_model_issue+set}" = set; then :
4551 enableval
=$enable_sim_model_issue; case "${enableval}" in
4552 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4553 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
4554 *) as_fn_error
"\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue
="";;
4556 if test x
"$silent" != x
"yes"; then
4557 echo "Setting model-issue flags = $sim_model_issue" 6>&1
4564 # Check whether --enable-sim-monitor was given.
4565 if test "${enable_sim_monitor+set}" = set; then :
4566 enableval
=$enable_sim_monitor; case "${enableval}" in
4567 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4568 no
) sim_monitor
="-DWITH_MON=0";;
4569 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4570 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
4571 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env
="";;
4573 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
4574 echo "Setting monitor flags = $sim_monitor" 6>&1
4581 # Check whether --enable-sim-opcode was given.
4582 if test "${enable_sim_opcode+set}" = set; then :
4583 enableval
=$enable_sim_opcode; case "${enableval}" in
4584 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
4585 *) if test -f "${srcdir}/${enableval}"; then
4586 sim_opcode
="${enableval}"
4587 elif test -f "${srcdir}/dc-${enableval}"; then
4588 sim_opcode
="dc-${enableval}"
4590 as_fn_error
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
4591 sim_opcode
="dc-complex"
4594 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
4595 echo "Setting opcode flags = $sim_opcode" 6>&1
4598 sim_opcode
="dc-complex"
4599 if test x
"$silent" != x
"yes"; then
4600 echo "Setting opcode flags = $sim_opcode"
4605 # Check whether --enable-sim-packages was given.
4606 if test "${enable_sim_packages+set}" = set; then :
4607 enableval
=$enable_sim_packages; packages
=disklabel
4608 case "${enableval}" in
4610 no
) as_fn_error
"\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages
="";;
4611 ,*) packages
="${packages}${enableval}";;
4612 *,) packages
="${enableval}${packages}";;
4613 *) packages
="${enableval}"'';;
4615 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4616 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4617 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
4618 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4622 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4623 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4624 if test x
"$silent" != x
"yes"; then
4625 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4630 # Check whether --enable-sim-regparm was given.
4631 if test "${enable_sim_regparm+set}" = set; then :
4632 enableval
=$enable_sim_regparm; case "${enableval}" in
4633 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
4634 no
) sim_regparm
="" ;;
4635 yes) sim_regparm
="-DWITH_REGPARM=3";;
4636 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-regparm\"" "$LINENO" 5; sim_regparm
="";;
4638 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
4639 echo "Setting regparm flags = $sim_regparm" 6>&1
4646 # Check whether --enable-sim-reserved-bits was given.
4647 if test "${enable_sim_reserved_bits+set}" = set; then :
4648 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
4649 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
4650 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
4651 *) as_fn_error
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved
="";;
4653 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
4654 echo "Setting reserved flags = $sim_reserved" 6>&1
4661 # Check whether --enable-sim-smp was given.
4662 if test "${enable_sim_smp+set}" = set; then :
4663 enableval
=$enable_sim_smp; case "${enableval}" in
4664 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
4665 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
4666 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
4668 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
4669 echo "Setting smp flags = $sim_smp" 6>&1
4672 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
4673 if test x
"$silent" != x
"yes"; then
4674 echo "Setting smp flags = $sim_smp" 6>&1
4679 # Check whether --enable-sim-stdcall was given.
4680 if test "${enable_sim_stdcall+set}" = set; then :
4681 enableval
=$enable_sim_stdcall; case "${enableval}" in
4682 no
) sim_stdcall
="" ;;
4683 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
4684 yes) sim_stdcall
="-DWITH_STDCALL=1";;
4685 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-stdcall\"" "$LINENO" 5; sim_stdcall
="";;
4687 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
4688 echo "Setting function call flags = $sim_stdcall" 6>&1
4695 # Check whether --enable-sim-stdio was given.
4696 if test "${enable_sim_stdio+set}" = set; then :
4697 enableval
=$enable_sim_stdio; case "${enableval}" in
4698 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4699 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4700 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4702 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4703 echo "Setting stdio flags = $sim_stdio" 6>&1
4710 # Check whether --enable-sim-switch was given.
4711 if test "${enable_sim_switch+set}" = set; then :
4712 enableval
=$enable_sim_switch; case "${enableval}" in
4713 yes) sim_switch
="-s";;
4715 *) as_fn_error
"\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch
="";;
4717 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
4718 echo "Setting switch flags = $sim_switch" 6>&1
4722 if test x
"$silent" != x
"yes"; then
4723 echo "Setting switch flags = $sim_switch" 6>&1
4728 # Check whether --enable-sim-timebase was given.
4729 if test "${enable_sim_timebase+set}" = set; then :
4730 enableval
=$enable_sim_timebase; case "${enableval}" in
4731 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
4732 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
4733 *) as_fn_error
"\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase
="";;
4735 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
4736 echo "Setting timebase flags = $sim_timebase" 6>&1
4743 # Check whether --enable-sim-trace was given.
4744 if test "${enable_sim_trace+set}" = set; then :
4745 enableval
=$enable_sim_trace; case "${enableval}" in
4746 yes) sim_trace
="-DWITH_TRACE=1";;
4747 no
) sim_trace
="-DWITH_TRACE=0";;
4748 *) as_fn_error
"\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace
="";;
4750 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4751 echo "Setting trace flags = $sim_trace" 6>&1
4758 # Check whether --enable-sim-warnings was given.
4759 if test "${enable_sim_warnings+set}" = set; then :
4760 enableval
=$enable_sim_warnings; case "${enableval}" in
4761 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
4762 no
) sim_warnings
="-w";;
4763 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4765 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
4766 echo "Setting warning flags = $sim_warnings" 6>&1
4773 # Check whether --enable-sim-xor-endian was given.
4774 if test "${enable_sim_xor_endian+set}" = set; then :
4775 enableval
=$enable_sim_xor_endian; case "${enableval}" in
4776 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
4777 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
4778 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
4780 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
4781 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
4790 # Check whether --with-pkgversion was given.
4791 if test "${with_pkgversion+set}" = set; then :
4792 withval
=$with_pkgversion; case "$withval" in
4793 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4795 *) PKGVERSION
="($withval) " ;;
4806 # Check whether --with-bugurl was given.
4807 if test "${with_bugurl+set}" = set; then :
4808 withval
=$with_bugurl; case "$withval" in
4809 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4812 *) BUGURL
="$withval"
4816 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4826 REPORT_BUGS_TO
="<$BUGURL>"
4827 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4834 cat >>confdefs.h
<<_ACEOF
4835 #define PKGVERSION "$PKGVERSION"
4839 cat >>confdefs.h
<<_ACEOF
4840 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4844 # Make sure we can run config.sub.
4845 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4846 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4849 $as_echo_n "checking build system type... " >&6; }
4850 if test "${ac_cv_build+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4853 ac_build_alias
=$build_alias
4854 test "x$ac_build_alias" = x
&&
4855 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4856 test "x$ac_build_alias" = x
&&
4857 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4858 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4859 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4863 $as_echo "$ac_cv_build" >&6; }
4864 case $ac_cv_build in
4866 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4869 ac_save_IFS
=$IFS; IFS
='-'
4875 # Remember, the first character of IFS is used to create $*,
4876 # except with old shells:
4879 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4883 $as_echo_n "checking host system type... " >&6; }
4884 if test "${ac_cv_host+set}" = set; then :
4885 $as_echo_n "(cached) " >&6
4887 if test "x$host_alias" = x
; then
4888 ac_cv_host
=$ac_cv_build
4890 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4891 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4896 $as_echo "$ac_cv_host" >&6; }
4899 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4902 ac_save_IFS
=$IFS; IFS
='-'
4908 # Remember, the first character of IFS is used to create $*,
4909 # except with old shells:
4912 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4916 $as_echo_n "checking target system type... " >&6; }
4917 if test "${ac_cv_target+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4920 if test "x$target_alias" = x
; then
4921 ac_cv_target
=$ac_cv_host
4923 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4924 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4929 $as_echo "$ac_cv_target" >&6; }
4930 case $ac_cv_target in
4932 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4934 target
=$ac_cv_target
4935 ac_save_IFS
=$IFS; IFS
='-'
4941 # Remember, the first character of IFS is used to create $*,
4942 # except with old shells:
4945 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4948 # The aliases save the names the user supplied, while $host etc.
4949 # will get canonicalized.
4950 test -n "$target_alias" &&
4951 test "$program_prefix$program_suffix$program_transform_name" = \
4953 program_prefix
=${target_alias}-
4955 test "$program_prefix" != NONE
&&
4956 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4957 # Use a double $ so make ignores it.
4958 test "$program_suffix" != NONE
&&
4959 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4960 # Double any \ or $.
4961 # By default was `s,x,x', remove it if useless.
4962 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4963 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4966 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4967 # using the same condition.
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4969 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4970 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4973 ac_func_search_save_LIBS
=$LIBS
4974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4977 /* Override any GCC internal prototype to avoid an error.
4978 Use char because int might match the return type of a GCC
4979 builtin and then its argument prototype would still apply. */
4983 char zlibVersion ();
4987 return zlibVersion ();
4992 for ac_lib
in '' z
; do
4993 if test -z "$ac_lib"; then
4994 ac_res
="none required"
4997 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4999 if ac_fn_c_try_link
"$LINENO"; then :
5000 ac_cv_search_zlibVersion
=$ac_res
5002 rm -f core conftest.err conftest.
$ac_objext \
5004 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5008 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5011 ac_cv_search_zlibVersion
=no
5014 LIBS
=$ac_func_search_save_LIBS
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
5017 $as_echo "$ac_cv_search_zlibVersion" >&6; }
5018 ac_res
=$ac_cv_search_zlibVersion
5019 if test "$ac_res" != no
; then :
5020 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5021 for ac_header
in zlib.h
5023 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5024 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
5025 cat >>confdefs.h
<<_ACEOF
5026 #define HAVE_ZLIB_H 1
5036 .
${srcdir}/..
/..
/bfd
/configure.
host
5041 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5046 ac_config_headers
="$ac_config_headers config.h:config.in"
5049 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5050 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
5052 cat >>confdefs.h
<<_ACEOF
5053 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5057 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
5062 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5063 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
5065 cat >>confdefs.h
<<_ACEOF
5066 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5070 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
5073 case " $LIBOBJS " in
5074 *" fileblocks.$ac_objext "* ) ;;
5075 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
5082 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5083 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5085 cat >>confdefs.h
<<_ACEOF
5086 #define HAVE_STRUCT_STAT_ST_RDEV 1
5090 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5096 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5097 if test "${ac_cv_struct_tm+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #include <sys/types.h>
5109 int *p = &tm.tm_sec;
5115 if ac_fn_c_try_compile
"$LINENO"; then :
5116 ac_cv_struct_tm
=time.h
5118 ac_cv_struct_tm
=sys
/time.h
5120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5123 $as_echo "$ac_cv_struct_tm" >&6; }
5124 if test $ac_cv_struct_tm = sys
/time.h
; then
5126 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5130 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5131 #include <$ac_cv_struct_tm>
5134 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
5136 cat >>confdefs.h
<<_ACEOF
5137 #define HAVE_STRUCT_TM_TM_ZONE 1
5143 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5145 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
5148 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
5150 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
5156 cat >>confdefs.h
<<_ACEOF
5157 #define HAVE_DECL_TZNAME $ac_have_decl
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
5161 $as_echo_n "checking for tzname... " >&6; }
5162 if test "${ac_cv_var_tzname+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5168 #if !HAVE_DECL_TZNAME
5169 extern char *tzname[];
5175 return tzname[0][0];
5180 if ac_fn_c_try_link
"$LINENO"; then :
5181 ac_cv_var_tzname
=yes
5185 rm -f core conftest.err conftest.
$ac_objext \
5186 conftest
$ac_exeext conftest.
$ac_ext
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
5189 $as_echo "$ac_cv_var_tzname" >&6; }
5190 if test $ac_cv_var_tzname = yes; then
5192 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5199 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5200 if test "${ac_cv_type_uid_t+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <sys/types.h>
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "uid_t" >/dev
/null
2>&1; then :
5210 ac_cv_type_uid_t
=yes
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5218 $as_echo "$ac_cv_type_uid_t" >&6; }
5219 if test $ac_cv_type_uid_t = no
; then
5221 $as_echo "#define uid_t int" >>confdefs.h
5224 $as_echo "#define gid_t int" >>confdefs.h
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5229 $as_echo_n "checking type of array argument to getgroups... " >&6; }
5230 if test "${ac_cv_type_getgroups+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5233 if test "$cross_compiling" = yes; then :
5234 ac_cv_type_getgroups
=cross
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 /* Thanks to Mike Rendell for this test. */
5239 $ac_includes_default
5242 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5249 union { gid_t gval; long int lval; } val;
5252 for (i = 0; i < NGID; i++)
5253 gidset[i] = val.gval;
5254 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5256 /* Exit non-zero if getgroups seems to require an array of ints. This
5257 happens when gid_t is short int but getgroups modifies an array
5259 return n > 0 && gidset[n] != val.gval;
5262 if ac_fn_c_try_run
"$LINENO"; then :
5263 ac_cv_type_getgroups
=gid_t
5265 ac_cv_type_getgroups
=int
5267 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5268 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5271 if test $ac_cv_type_getgroups = cross
; then
5272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
5279 ac_cv_type_getgroups
=gid_t
5281 ac_cv_type_getgroups
=int
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
5288 $as_echo "$ac_cv_type_getgroups" >&6; }
5290 cat >>confdefs.h
<<_ACEOF
5291 #define GETGROUPS_T $ac_cv_type_getgroups
5295 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5296 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5300 cat >>confdefs.h
<<_ACEOF
5306 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5307 if test "x$ac_cv_type_off_t" = x
""yes; then :
5311 cat >>confdefs.h
<<_ACEOF
5312 #define off_t long int
5317 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5318 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5322 cat >>confdefs.h
<<_ACEOF
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5329 $as_echo_n "checking return type of signal handlers... " >&6; }
5330 if test "${ac_cv_type_signal+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #include <sys/types.h>
5341 return *(signal (0, 0)) (0) == 1;
5346 if ac_fn_c_try_compile
"$LINENO"; then :
5347 ac_cv_type_signal
=int
5349 ac_cv_type_signal
=void
5351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5354 $as_echo "$ac_cv_type_signal" >&6; }
5356 cat >>confdefs.h
<<_ACEOF
5357 #define RETSIGTYPE $ac_cv_type_signal
5361 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5362 if test "x$ac_cv_type_size_t" = x
""yes; then :
5366 cat >>confdefs.h
<<_ACEOF
5367 #define size_t unsigned int
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5373 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5374 if test "${ac_cv_type_uid_t+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 #include <sys/types.h>
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "uid_t" >/dev
/null
2>&1; then :
5384 ac_cv_type_uid_t
=yes
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5392 $as_echo "$ac_cv_type_uid_t" >&6; }
5393 if test $ac_cv_type_uid_t = no
; then
5395 $as_echo "#define uid_t int" >>confdefs.h
5398 $as_echo "#define gid_t int" >>confdefs.h
5403 for ac_func
in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir
chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl
kill link lseek lstat mkdir pipe readlink
rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp
time umask unlink
5405 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5406 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5407 eval as_val
=\$
$as_ac_var
5408 if test "x$as_val" = x
""yes; then :
5409 cat >>confdefs.h
<<_ACEOF
5410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5417 for ac_header
in fcntl.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mount.h sys
/param.h sys
/resource.h sys
/stat.h sys
/termio.h sys
/termios.h sys
/time.h sys
/times.h sys
/types.h
time.h unistd.h sys
/vfs.h sys
/statfs.h
5419 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5421 eval as_val
=\$
$as_ac_Header
5422 if test "x$as_val" = x
""yes; then :
5423 cat >>confdefs.h
<<_ACEOF
5424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5432 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5433 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5435 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5436 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5437 $as_echo_n "(cached) " >&6
5439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441 #include <sys/types.h>
5453 if ac_fn_c_try_compile
"$LINENO"; then :
5454 eval "$as_ac_Header=yes"
5456 eval "$as_ac_Header=no"
5458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5460 eval ac_res
=\$
$as_ac_Header
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5462 $as_echo "$ac_res" >&6; }
5463 eval as_val
=\$
$as_ac_Header
5464 if test "x$as_val" = x
""yes; then :
5465 cat >>confdefs.h
<<_ACEOF
5466 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5469 ac_header_dirent
=$ac_hdr; break
5473 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5474 if test $ac_header_dirent = dirent.h
; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5476 $as_echo_n "checking for library containing opendir... " >&6; }
5477 if test "${ac_cv_search_opendir+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5480 ac_func_search_save_LIBS
=$LIBS
5481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5484 /* Override any GCC internal prototype to avoid an error.
5485 Use char because int might match the return type of a GCC
5486 builtin and then its argument prototype would still apply. */
5499 for ac_lib
in '' dir
; do
5500 if test -z "$ac_lib"; then
5501 ac_res
="none required"
5504 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5506 if ac_fn_c_try_link
"$LINENO"; then :
5507 ac_cv_search_opendir
=$ac_res
5509 rm -f core conftest.err conftest.
$ac_objext \
5511 if test "${ac_cv_search_opendir+set}" = set; then :
5515 if test "${ac_cv_search_opendir+set}" = set; then :
5518 ac_cv_search_opendir
=no
5521 LIBS
=$ac_func_search_save_LIBS
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5524 $as_echo "$ac_cv_search_opendir" >&6; }
5525 ac_res
=$ac_cv_search_opendir
5526 if test "$ac_res" != no
; then :
5527 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5533 $as_echo_n "checking for library containing opendir... " >&6; }
5534 if test "${ac_cv_search_opendir+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5537 ac_func_search_save_LIBS
=$LIBS
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5541 /* Override any GCC internal prototype to avoid an error.
5542 Use char because int might match the return type of a GCC
5543 builtin and then its argument prototype would still apply. */
5556 for ac_lib
in '' x
; do
5557 if test -z "$ac_lib"; then
5558 ac_res
="none required"
5561 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5563 if ac_fn_c_try_link
"$LINENO"; then :
5564 ac_cv_search_opendir
=$ac_res
5566 rm -f core conftest.err conftest.
$ac_objext \
5568 if test "${ac_cv_search_opendir+set}" = set; then :
5572 if test "${ac_cv_search_opendir+set}" = set; then :
5575 ac_cv_search_opendir
=no
5578 LIBS
=$ac_func_search_save_LIBS
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5581 $as_echo "$ac_cv_search_opendir" >&6; }
5582 ac_res
=$ac_cv_search_opendir
5583 if test "$ac_res" != no
; then :
5584 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
5593 $as_echo_n "checking for struct termios... " >&6; }
5594 if test "${ac_cv_termios_struct+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <sys/types.h>
5600 #include <sys/termios.h>
5604 static struct termios x;
5614 if ac_fn_c_try_compile
"$LINENO"; then :
5615 ac_cv_termios_struct
=yes
5617 ac_cv_termios_struct
=no
5619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
5623 $as_echo "$ac_cv_termios_struct" >&6; }
5624 if test $ac_cv_termios_struct = yes; then
5625 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5628 if test "$ac_cv_termios_struct" = "yes"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
5630 $as_echo_n "checking for c_line field in struct termios... " >&6; }
5631 if test "${ac_cv_termios_cline+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #include <sys/types.h>
5637 #include <sys/termios.h>
5641 static struct termios x; x.c_line = 0;
5646 if ac_fn_c_try_compile
"$LINENO"; then :
5647 ac_cv_termios_cline
=yes
5649 ac_cv_termios_cline
=no
5651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
5656 $as_echo "$ac_cv_termios_cline" >&6; }
5657 if test $ac_cv_termios_cline = yes; then
5658 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
5661 ac_cv_termios_cline
=no
5664 if test "$ac_cv_termios_struct" != "yes"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
5666 $as_echo_n "checking for struct termio... " >&6; }
5667 if test "${ac_cv_termio_struct+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 #include <sys/types.h>
5673 #include <sys/termio.h>
5677 static struct termio x;
5687 if ac_fn_c_try_compile
"$LINENO"; then :
5688 ac_cv_termio_struct
=yes
5690 ac_cv_termio_struct
=no
5692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
5696 $as_echo "$ac_cv_termio_struct" >&6; }
5697 if test $ac_cv_termio_struct = yes; then
5698 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5701 ac_cv_termio_struct
=no
5704 if test "$ac_cv_termio_struct" = "yes"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
5706 $as_echo_n "checking for c_line field in struct termio... " >&6; }
5707 if test "${ac_cv_termio_cline+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 #include <sys/types.h>
5713 #include <sys/termio.h>
5717 static struct termio x; x.c_line = 0;
5722 if ac_fn_c_try_compile
"$LINENO"; then :
5723 ac_cv_termio_cline
=yes
5725 ac_cv_termio_cline
=no
5727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
5732 $as_echo "$ac_cv_termio_cline" >&6; }
5733 if test $ac_cv_termio_cline = yes; then
5734 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
5737 ac_cv_termio_cline
=no
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
5741 $as_echo_n "checking for struct statfs... " >&6; }
5742 if test "${ac_cv_struct_statfs+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 #ifdef HAVE_SYS_PARAM_H
5749 #include <sys/param.h>
5751 #ifdef HAVE_SYS_MOUNT_H
5752 #include <sys/mount.h>
5754 #ifdef HAVE_SYS_VFS_H
5755 #include <sys/vfs.h>
5757 #ifdef HAVE_SYS_STATFS_H
5758 #include <sys/statfs.h>
5763 static struct statfs s;
5768 if ac_fn_c_try_compile
"$LINENO"; then :
5769 ac_cv_struct_statfs
=yes
5771 ac_cv_struct_statfs
=no
5773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
5777 $as_echo "$ac_cv_struct_statfs" >&6; }
5778 if test $ac_cv_struct_statfs = yes; then
5780 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
5784 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5785 if test "x$ac_cv_type_long_long" = x
""yes; then :
5787 cat >>confdefs.h
<<_ACEOF
5788 #define HAVE_LONG_LONG 1
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
5797 $as_echo_n "checking for /dev/zero... " >&6; }
5798 if test "${ac_cv_devzero+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5801 if test "$cross_compiling" = yes; then :
5804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5810 int fd = open ("/dev/zero", O_RDONLY);
5813 for (i = 0; i < sizeof (buf); i++)
5815 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
5817 for (i = 0; i < sizeof (buf); i++)
5823 if ac_fn_c_try_run
"$LINENO"; then :
5828 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5829 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
5835 $as_echo "$ac_cv_devzero" >&6; }
5836 if test $ac_cv_devzero = yes; then
5837 sim_devzero
="-DHAVE_DEVZERO"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
5843 $as_echo_n "checking for common simulator directory... " >&6; }
5844 if test -f "${srcdir}/../common/callback.c"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5846 $as_echo "yes" >&6; }
5847 sim_callback
="callback.o targ-map.o"
5848 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
5857 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
5858 if test -f "${srcdir}/../common/sim-fpu.c"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5860 $as_echo "yes" >&6; }
5861 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5870 # Since we run commands on the build system, we have to create a
5871 # separate config header for the build system if build != host.
5872 if test x
$host = x
$build; then
5873 ac_config_commands
="$ac_config_commands build-config.h"
5881 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5882 *) realsrcdir
=..
/${srcdir};;
5884 saved_CFLAGS
="${CFLAGS}"
5885 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5886 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
5887 ${realsrcdir}/configure \
5888 --enable-languages=${enable_languages-all} \
5889 --target=$target_alias --host=$build_alias --build=$build_alias
5890 CFLAGS
="${saved_CFLAGS}"
5891 mv config.h ..
/build-config.h
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5906 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5912 if test -n "$RANLIB"; then
5913 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir
=.
5920 for ac_exec_ext
in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 RANLIB
=$ac_cv_prog_RANLIB
5933 if test -n "$RANLIB"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5935 $as_echo "$RANLIB" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5943 if test -z "$ac_cv_prog_RANLIB"; then
5944 ac_ct_RANLIB
=$RANLIB
5945 # Extract the first word of "ranlib", so it can be a program name with args.
5946 set dummy ranlib
; ac_word
=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 if test -n "$ac_ct_RANLIB"; then
5953 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir
=.
5960 for ac_exec_ext
in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5973 if test -n "$ac_ct_RANLIB"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5975 $as_echo "$ac_ct_RANLIB" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5981 if test "x$ac_ct_RANLIB" = x
; then
5984 case $cross_compiling:$ac_tool_warned in
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned
=yes ;;
5990 RANLIB
=$ac_ct_RANLIB
5993 RANLIB
="$ac_cv_prog_RANLIB"
6041 ac_config_files
="$ac_config_files Makefile"
6043 ac_config_commands
="$ac_config_commands default"
6045 cat >confcache
<<\_ACEOF
6046 # This file is a shell script that caches the results of configure
6047 # tests run on this system so they can be shared between configure
6048 # scripts and configure runs, see configure's option --config-cache.
6049 # It is not useful on other systems. If it contains results you don't
6050 # want to keep, you may remove or edit it.
6052 # config.status only pays attention to the cache file if you give it
6053 # the --recheck option to rerun configure.
6055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6061 # The following way of writing the cache mishandles newlines in values,
6062 # but we know of no workaround that is simple, portable, and efficient.
6063 # So, we kill variables containing newlines.
6064 # Ultrix sh set writes to stderr and can't be redirected directly,
6065 # and sets the high bit in the cache file unless we assign to the vars.
6067 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6068 eval ac_val
=\$
$ac_var
6072 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6076 _ | IFS | as_nl
) ;; #(
6077 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6078 *) { eval $ac_var=; unset $ac_var;} ;;
6084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6085 *${as_nl}ac_space
=\
*)
6086 # `set' does not quote correctly, so add quotes: double-quote
6087 # substitution turns \\\\ into \\, and sed turns \\ into \.
6090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6093 # `set' quotes correctly as required by POSIX, so do not add quotes.
6094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6107 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6108 if test -w "$cache_file"; then
6109 test "x$cache_file" != "x/dev/null" &&
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6111 $as_echo "$as_me: updating cache $cache_file" >&6;}
6112 cat confcache
>$cache_file
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6115 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6120 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6121 # Let make expand exec_prefix.
6122 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6124 DEFS
=-DHAVE_CONFIG_H
6128 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6129 # 1. Remove the extension, and $U if already installed.
6130 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6131 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6133 # will be set to the directory where LIBOBJS objects are built.
6134 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6135 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6139 LTLIBOBJS
=$ac_ltlibobjs
6144 : ${CONFIG_STATUS=./config.status}
6146 ac_clean_files_save
=$ac_clean_files
6147 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6149 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6151 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6153 # Generated by $as_me.
6154 # Run this file to recreate the current configuration.
6155 # Compiler output produced by configure, useful for debugging
6156 # configure, is in config.log if it exists.
6162 SHELL=\${CONFIG_SHELL-$SHELL}
6165 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6166 ## -------------------- ##
6167 ## M4sh Initialization. ##
6168 ## -------------------- ##
6170 # Be more Bourne compatible
6171 DUALCASE
=1; export DUALCASE
# for MKS sh
6172 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6175 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6176 # is contrary to our usage. Disable this feature.
6177 alias -g '${1+"$@"}'='"$@"'
6178 setopt NO_GLOB_SUBST
6180 case `(set -o) 2>/dev/null` in #(
6192 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6193 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6195 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6196 # Prefer a ksh shell builtin over an external printf program on Solaris,
6197 # but without wasting forks for bash or zsh.
6198 if test -z "$BASH_VERSION$ZSH_VERSION" \
6199 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6200 as_echo='print
-r --'
6201 as_echo_n='print
-rn --'
6202 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6203 as_echo='printf %s
\n'
6204 as_echo_n='printf %s
'
6206 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6207 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6208 as_echo_n='/usr
/ucb
/echo -n'
6210 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6211 as_echo_n_body='eval
6215 expr "X$arg" : "X\\(.*\\)$as_nl";
6216 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6218 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6220 export as_echo_n_body
6221 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6224 as_echo='sh
-c $as_echo_body as_echo
'
6227 # The user is always right.
6228 if test "${PATH_SEPARATOR+set}" != set; then
6230 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6231 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6238 # We need space, tab and new line, in precisely that order. Quoting is
6239 # there to prevent editors from complaining about space-tab.
6240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6241 # splitting by setting IFS to empty value.)
6244 # Find who we are. Look in the path if we contain no directory separator.
6246 *[\\/]* ) as_myself=$0 ;;
6247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6258 # We did not find ourselves, most probably we were run as `sh COMMAND'
6259 # in which case we are not to be found in the path.
6260 if test "x$as_myself" = x
; then
6263 if test ! -f "$as_myself"; then
6264 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6268 # Unset variables that we do not need and which cause bugs (e.g. in
6269 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6270 # suppresses any "Segmentation fault" message there. '((' could
6271 # trigger a bug in pdksh 5.2.14.
6272 for as_var
in BASH_ENV ENV MAIL MAILPATH
6273 do eval test x\
${$as_var+set} = xset \
6274 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6287 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6290 # as_fn_error ERROR [LINENO LOG_FD]
6291 # ---------------------------------
6292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6294 # script with status $?, using 1 if that was 0.
6297 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6299 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6300 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6302 $as_echo "$as_me: error: $1" >&2
6303 as_fn_exit
$as_status
6307 # as_fn_set_status STATUS
6308 # -----------------------
6309 # Set $? to STATUS, without forking.
6313 } # as_fn_set_status
6317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6327 # Portably unset VAR.
6330 { eval $1=; unset $1;}
6332 as_unset
=as_fn_unset
6333 # as_fn_append VAR VALUE
6334 # ----------------------
6335 # Append the text in VALUE to the end of the definition contained in VAR. Take
6336 # advantage of any shell optimizations that allow amortized linear growth over
6337 # repeated appends, instead of the typical quadratic growth present in naive
6339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6340 eval 'as_fn_append ()
6351 # as_fn_arith ARG...
6352 # ------------------
6353 # Perform arithmetic evaluation on the ARGs, and store the result in the
6354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6355 # must be portable across $(()) and expr.
6356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6357 eval 'as_fn_arith ()
6364 as_val
=`expr "$@" || test $? -eq 1`
6369 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6370 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6376 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6377 as_basename
=basename
6382 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6388 as_me
=`$as_basename -- "$0" ||
6389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6390 X"$0" : 'X\(//\)$' \| \
6391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6393 sed '/^.*\/\([^/][^/]*\)\/*$/{
6407 # Avoid depending upon Character Ranges.
6408 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6409 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6410 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6411 as_cr_digits
='0123456789'
6412 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6414 ECHO_C
= ECHO_N
= ECHO_T
=
6415 case `echo -n x` in #(((((
6417 case `echo 'xy\c'` in
6418 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6420 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6427 rm -f conf$$ conf$$.exe conf$$.
file
6428 if test -d conf$$.dir
; then
6429 rm -f conf$$.dir
/conf$$.
file
6432 mkdir conf$$.dir
2>/dev
/null
6434 if (echo >conf$$.
file) 2>/dev
/null
; then
6435 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6437 # ... but there are two gotchas:
6438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6440 # In both cases, we have to default to `cp -p'.
6441 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6443 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6451 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6452 rmdir conf$$.dir
2>/dev
/null
6457 # Create "$as_dir" as a directory, including parents if necessary.
6462 -*) as_dir
=.
/$as_dir;;
6464 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6468 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6469 *) as_qdir
=$as_dir;;
6471 as_dirs
="'$as_qdir' $as_dirs"
6472 as_dir
=`$as_dirname -- "$as_dir" ||
6473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6474 X"$as_dir" : 'X\(//\)[^/]' \| \
6475 X"$as_dir" : 'X\(//\)$' \| \
6476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6477 $as_echo X"$as_dir" |
6478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6495 test -d "$as_dir" && break
6497 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6498 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6502 if mkdir
-p .
2>/dev
/null
; then
6503 as_mkdir_p
='mkdir -p "$as_dir"'
6505 test -d .
/-p && rmdir .
/-p
6509 if test -x / >/dev
/null
2>&1; then
6512 if ls -dL / >/dev
/null
2>&1; then
6519 if test -d "$1"; then
6525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6526 ???[sx]*):;;*)false;;esac;fi
6530 as_executable_p
=$as_test_x
6532 # Sed expression to map a string onto a valid CPP name.
6533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6535 # Sed expression to map a string onto a valid variable name.
6536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6540 ## ----------------------------------- ##
6541 ## Main body of $CONFIG_STATUS script. ##
6542 ## ----------------------------------- ##
6544 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6547 # Save the log message, to keep $0 and so on meaningful, and to
6548 # report actual input values of CONFIG_FILES etc. instead of their
6549 # values after options handling.
6551 This file was extended by $as_me, which was
6552 generated by GNU Autoconf 2.64. Invocation command line was
6554 CONFIG_FILES = $CONFIG_FILES
6555 CONFIG_HEADERS = $CONFIG_HEADERS
6556 CONFIG_LINKS = $CONFIG_LINKS
6557 CONFIG_COMMANDS = $CONFIG_COMMANDS
6560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6565 case $ac_config_files in *"
6566 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6569 case $ac_config_headers in *"
6570 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6575 # Files that config.status was made for.
6576 config_files="$ac_config_files"
6577 config_headers="$ac_config_headers"
6578 config_commands="$ac_config_commands"
6582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6584 \`$as_me' instantiates files and other configuration actions
6585 from templates according to the current configuration. Unless the files
6586 and actions are specified as TAGs, all are instantiated by default.
6588 Usage: $0 [OPTION]... [TAG]...
6590 -h, --help print this help, then exit
6591 -V, --version print version number and configuration settings, then exit
6592 -q, --quiet, --silent
6593 do not print progress messages
6594 -d, --debug don't remove temporary files
6595 --recheck update $as_me by reconfiguring in the same conditions
6596 --file=FILE[:TEMPLATE]
6597 instantiate the configuration file FILE
6598 --header=FILE[:TEMPLATE]
6599 instantiate the configuration header FILE
6601 Configuration files:
6604 Configuration headers:
6607 Configuration commands:
6610 Report bugs to the package provider."
6613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6616 configured by $0, generated by GNU Autoconf 2.64,
6617 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6619 Copyright (C) 2009 Free Software Foundation, Inc.
6620 This config.status script is free software; the Free Software Foundation
6621 gives unlimited permission to copy, distribute and modify it."
6626 test -n "\$AWK" || AWK=awk
6629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6630 # The default lists apply if the user does not specify any file.
6636 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6637 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6648 # Handling of the options.
6649 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6651 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6652 $as_echo "$ac_cs_version"; exit ;;
6653 --debug |
--debu |
--deb |
--de |
--d |
-d )
6655 --file |
--fil |
--fi |
--f )
6658 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6660 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6661 ac_need_defaults
=false
;;
6662 --header |
--heade |
--head |
--hea )
6665 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6667 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6668 ac_need_defaults
=false
;;
6670 # Conflict between --help and --header
6671 as_fn_error
"ambiguous option: \`$1'
6672 Try \`$0 --help' for more information.";;
6673 --help |
--hel |
-h )
6674 $as_echo "$ac_cs_usage"; exit ;;
6675 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6676 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6680 -*) as_fn_error
"unrecognized option: \`$1'
6681 Try \`$0 --help' for more information." ;;
6683 *) as_fn_append ac_config_targets
" $1"
6684 ac_need_defaults
=false
;;
6690 ac_configure_extra_args
=
6692 if $ac_cs_silent; then
6694 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6699 if \$ac_cs_recheck; then
6700 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6702 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6703 CONFIG_SHELL='$SHELL'
6709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6714 ## Running $as_me. ##
6720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6725 # Handling of arguments.
6726 for ac_config_target
in $ac_config_targets
6728 case $ac_config_target in
6729 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6730 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
6731 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6732 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6734 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6739 # If the user did not use the arguments to specify the items to instantiate,
6740 # then the envvar interface is used. Set only those that are not.
6741 # We use the long form for the default assignment because of an extremely
6742 # bizarre bug on SunOS 4.1.3.
6743 if $ac_need_defaults; then
6744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6749 # Have a temporary directory for convenience. Make it in the build tree
6750 # simply because there is no reason against having it here, and in addition,
6751 # creating and moving files from /tmp can sometimes cause problems.
6752 # Hook for its removal unless debugging.
6753 # Note that there is a small window in which the directory will not be cleaned:
6754 # after its creation but before its name has been assigned to `$tmp'.
6758 trap 'exit_status=$?
6759 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6761 trap 'as_fn_exit 1' 1 2 13 15
6763 # Create a (secure) tmp directory for tmp files.
6766 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6767 test -n "$tmp" && test -d "$tmp"
6770 tmp
=.
/conf$$
-$RANDOM
6771 (umask 077 && mkdir
"$tmp")
6772 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6774 # Set up the scripts for CONFIG_FILES section.
6775 # No need to generate them if there are no CONFIG_FILES.
6776 # This happens for instance with `./config.status config.h'.
6777 if test -n "$CONFIG_FILES"; then
6780 ac_cr
=`echo X | tr X '\015'`
6781 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6782 # But we know of no other shell where ac_cr would be empty at this
6783 # point, so we can use a bashism as a fallback.
6784 if test "x$ac_cr" = x
; then
6785 eval ac_cr
=\$
\'\\r
\'
6787 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6788 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6794 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6799 echo "cat >conf$$subs.awk <<_ACEOF" &&
6800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6803 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6804 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6806 for ac_last_try in false false false false false :; do
6807 . ./conf$$subs.sh ||
6808 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6810 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6811 if test $ac_delim_n = $ac_delim_num; then
6813 elif $ac_last_try; then
6814 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6816 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6822 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6826 s/^/S["/; s
/!.
*/"]=/
6836 s/\(.\{148\}\).*/\1/
6838 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6843 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6850 s/\(.\{148\}\).*/\1/
6852 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6856 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6861 ' <conf$$subs.awk | sed '
6866 ' >>$CONFIG_STATUS || ac_write_fail=1
6867 rm -f conf$$subs.awk
6868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6870 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6871 for (key in S) S_is_set[key] = 1
6877 nfields = split(line, field, "@
")
6879 len = length(field[1])
6880 for (i = 2; i < nfields; i++) {
6882 keylen = length(key)
6883 if (S_is_set[key]) {
6885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6886 len += length(value) + length(field[++i])
6897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6898 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6899 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6902 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6903 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6906 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6907 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6908 # trailing colons and then remove the whole line if VPATH becomes empty
6909 # (actually we leave an empty line to preserve line numbers).
6910 if test "x
$srcdir" = x.; then
6911 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6915 s/^\([^=]*=[ ]*\):*/\1/
6921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6922 fi # test -n "$CONFIG_FILES"
6924 # Set up the scripts for CONFIG_HEADERS section.
6925 # No need to generate them if there are no CONFIG_HEADERS.
6926 # This happens for instance with `./config.status Makefile'.
6927 if test -n "$CONFIG_HEADERS"; then
6928 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6932 # Transform confdefs.h into an awk script `defines.awk', embedded as
6933 # here-document in config.status, that substitutes the proper values into
6934 # config.h.in to produce config.h.
6936 # Create a delimiter string that does not exist in confdefs.h, to ease
6937 # handling of long lines.
6939 for ac_last_try in false false :; do
6940 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6941 if test -z "$ac_t"; then
6943 elif $ac_last_try; then
6944 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6946 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6950 # For the awk script, D is an array of macro values keyed by name,
6951 # likewise P contains macro parameters if any. Preserve backslash
6952 # newline sequences.
6954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6956 s/.\{148\}/&'"$ac_delim"'/g
6959 s/^[ ]*#[ ]*define[ ][ ]*/ /
6966 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6968 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6973 D["\
1"]=" \
3\\\\\\n
"\\/p
6975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6980 s/.\{148\}/&'"$ac_delim"'/g
6985 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6988 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6990 ' <confdefs.h | sed '
6991 s/'"$ac_delim"'/"\\\
6992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6995 for (key in D) D_is_set[key] = 1
6998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7000 split(line, arg, " ")
7001 if (arg[1] == "#") {
7005 defundef
= substr
(arg
[1], 2)
7008 split(mac1
, mac2
, "(") #)
7010 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7011 if (D_is_set
[macro
]) {
7012 # Preserve the white space surrounding the "#".
7013 print prefix
"define", macro P
[macro
] D
[macro
]
7016 # Replace #undef with comments. This is necessary, for example,
7017 # in the case of _POSIX_SOURCE, which is predefined and required
7018 # on some systems where configure will not decide to define it.
7019 if (defundef
== "undef") {
7020 print
"/*", prefix defundef
, macro
, "*/"
7028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7029 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7030 fi # test -n "$CONFIG_HEADERS"
7033 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7038 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7040 case $ac_mode$ac_tag in
7042 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7043 :[FH
]-) ac_tag
=-:-;;
7044 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7061 -) ac_f
="$tmp/stdin";;
7062 *) # Look for the file first in the build tree, then in the source tree
7063 # (if the path is not absolute). The absolute path cannot be DOS-style,
7064 # because $ac_f cannot contain `:'.
7068 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7070 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7072 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7073 as_fn_append ac_file_inputs
" '$ac_f'"
7076 # Let's still pretend it is `configure' which instantiates (i.e., don't
7077 # use $as_me), people would be surprised to read:
7078 # /* config.h. Generated by config.status. */
7079 configure_input
='Generated from '`
7080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7082 if test x
"$ac_file" != x-
; then
7083 configure_input
="$ac_file. $configure_input"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7085 $as_echo "$as_me: creating $ac_file" >&6;}
7087 # Neutralize special characters interpreted by sed in replacement strings.
7088 case $configure_input in #(
7089 *\
&* |
*\|
* |
*\\* )
7090 ac_sed_conf_input
=`$as_echo "$configure_input" |
7091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7092 *) ac_sed_conf_input
=$configure_input;;
7096 *:-:* |
*:-) cat >"$tmp/stdin" \
7097 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7102 ac_dir
=`$as_dirname -- "$ac_file" ||
7103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7104 X"$ac_file" : 'X\(//\)[^/]' \| \
7105 X"$ac_file" : 'X\(//\)$' \| \
7106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7107 $as_echo X"$ac_file" |
7108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7125 as_dir
="$ac_dir"; as_fn_mkdir_p
7129 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7131 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7132 # A ".." for each directory in $ac_dir_suffix.
7133 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7134 case $ac_top_builddir_sub in
7135 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7136 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7139 ac_abs_top_builddir
=$ac_pwd
7140 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7141 # for backward compatibility:
7142 ac_top_builddir
=$ac_top_build_prefix
7145 .
) # We are building in place.
7147 ac_top_srcdir
=$ac_top_builddir_sub
7148 ac_abs_top_srcdir
=$ac_pwd ;;
7149 [\\/]* | ?
:[\\/]* ) # Absolute name.
7150 ac_srcdir
=$srcdir$ac_dir_suffix;
7151 ac_top_srcdir
=$srcdir
7152 ac_abs_top_srcdir
=$srcdir ;;
7154 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7155 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7156 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7158 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7168 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7169 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7174 # If the template does not know about datarootdir, expand it.
7175 # FIXME: This hack should be removed a few years after 2.60.
7176 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7188 *datarootdir
*) ac_datarootdir_seen
=yes;;
7189 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7194 ac_datarootdir_hack='
7195 s&@datadir@&$datadir&g
7196 s&@docdir@&$docdir&g
7197 s&@infodir@&$infodir&g
7198 s&@localedir@&$localedir&g
7199 s&@mandir@&$mandir&g
7200 s&\\\${datarootdir}&$datarootdir&g' ;;
7204 # Neutralize VPATH when `$srcdir' = `.'.
7205 # Shell code in configure.ac might set extrasub.
7206 # FIXME: do we really want to maintain this feature?
7207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7208 ac_sed_extra="$ac_vpsub
7211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7213 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7214 s|@configure_input@|
$ac_sed_conf_input|
;t t
7215 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7216 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7217 s
&@srcdir@
&$ac_srcdir&;t t
7218 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7219 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7220 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7221 s
&@builddir@
&$ac_builddir&;t t
7222 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7223 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7224 s
&@INSTALL@
&$ac_INSTALL&;t t
7225 $ac_datarootdir_hack
7227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7228 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7234 which seems to be undefined. Please make sure it is defined." >&5
7235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7236 which seems to be undefined. Please make sure it is defined." >&2;}
7240 -) cat "$tmp/out" && rm -f "$tmp/out";;
7241 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7243 || as_fn_error "could not create $ac_file" "$LINENO" 5
7249 if test x"$ac_file" != x-; then
7251 $as_echo "/* $configure_input */" \
7252 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7253 } >"$tmp/config.h" \
7254 || as_fn_error "could not create $ac_file" "$LINENO" 5
7255 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7260 mv "$tmp/config.h" "$ac_file" \
7261 || as_fn_error "could not create $ac_file" "$LINENO" 5
7264 $as_echo "/* $configure_input */" \
7265 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7266 || as_fn_error "could not create -" "$LINENO" 5
7270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7271 $as_echo "$as_me: executing $ac_file commands" >&6;}
7276 case $ac_file$ac_mode in
7277 "build-config.h":C) cp config.h build-config.h ;;
7278 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7286 ac_clean_files=$ac_clean_files_save
7288 test $ac_write_fail = 0 ||
7289 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7292 # configure is writing to config.log, and then calls config.status.
7293 # config.status does its own redirection, appending to config.log.
7294 # Unfortunately, on DOS this fails, as config.log is still kept open
7295 # by configure, so config.status won't be able to
write to it
; its
7296 # output is simply discarded. So we exec the FD to /dev/null,
7297 # effectively closing config.log, so it can be properly (re)opened and
7298 # appended to by config.status. When coming back to configure, we
7299 # need to make the FD available again.
7300 if test "$no_create" != yes; then
7302 ac_config_status_args
=
7303 test "$silent" = yes &&
7304 ac_config_status_args
="$ac_config_status_args --quiet"
7306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7309 # would make configure fail if this is the last instruction.
7310 $ac_cs_success || as_fn_exit $?
7312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}