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
703 program_transform_name
716 enable_option_checking
718 enable_maintainer_mode
728 enable_sim_hostendian
731 enable_build_warnings
732 enable_sim_build_warnings
734 enable_sim_default_model
735 enable_sim_environment
739 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 ac_unrecognized_opts
=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 includedir
='${prefix}/include'
787 oldincludedir
='/usr/include'
788 docdir
='${datarootdir}/doc/${PACKAGE}'
789 infodir
='${datarootdir}/info'
794 libdir
='${exec_prefix}/lib'
795 localedir
='${datarootdir}/locale'
796 mandir
='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\
$ac_option
810 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
822 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
825 -build |
--build |
--buil |
--bui |
--bu)
826 ac_prev
=build_alias
;;
827 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
828 build_alias
=$ac_optarg ;;
830 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
831 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
832 ac_prev
=cache_file
;;
833 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
834 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
835 cache_file
=$ac_optarg ;;
838 cache_file
=config.cache
;;
840 -datadir |
--datadir |
--datadi |
--datad)
842 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
843 datadir
=$ac_optarg ;;
845 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
846 |
--dataroo |
--dataro |
--datar)
847 ac_prev
=datarootdir
;;
848 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
849 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
850 datarootdir
=$ac_optarg ;;
852 -disable-* |
--disable-*)
853 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
856 as_fn_error
"invalid feature name: $ac_useropt"
857 ac_useropt_orig
=$ac_useropt
858 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep
=', ';;
866 eval enable_
$ac_useropt=no
;;
868 -docdir |
--docdir |
--docdi |
--doc |
--do)
870 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
873 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
875 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
878 -enable-* |
--enable-*)
879 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
882 as_fn_error
"invalid feature name: $ac_useropt"
883 ac_useropt_orig
=$ac_useropt
884 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
889 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep
=', ';;
892 eval enable_
$ac_useropt=\
$ac_optarg ;;
894 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
895 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
896 |
--exec |
--exe |
--ex)
897 ac_prev
=exec_prefix
;;
898 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
899 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
900 |
--exec=* |
--exe=* |
--ex=*)
901 exec_prefix
=$ac_optarg ;;
903 -gas |
--gas |
--ga |
--g)
904 # Obsolete; use --with-gas.
907 -help |
--help |
--hel |
--he |
-h)
909 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
910 ac_init_help
=recursive
;;
911 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
912 ac_init_help
=short
;;
914 -host |
--host |
--hos |
--ho)
915 ac_prev
=host_alias
;;
916 -host=* |
--host=* |
--hos=* |
--ho=*)
917 host_alias
=$ac_optarg ;;
919 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
921 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
923 htmldir
=$ac_optarg ;;
925 -includedir |
--includedir |
--includedi |
--included |
--include \
926 |
--includ |
--inclu |
--incl |
--inc)
927 ac_prev
=includedir
;;
928 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
929 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
930 includedir
=$ac_optarg ;;
932 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
934 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
935 infodir
=$ac_optarg ;;
937 -libdir |
--libdir |
--libdi |
--libd)
939 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
942 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
943 |
--libexe |
--libex |
--libe)
944 ac_prev
=libexecdir
;;
945 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
946 |
--libexe=* |
--libex=* |
--libe=*)
947 libexecdir
=$ac_optarg ;;
949 -localedir |
--localedir |
--localedi |
--localed |
--locale)
951 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
952 localedir
=$ac_optarg ;;
954 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
955 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
956 ac_prev
=localstatedir
;;
957 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
958 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
959 localstatedir
=$ac_optarg ;;
961 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
963 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
967 # Obsolete; use --without-fp.
970 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
971 |
--no-cr |
--no-c |
-n)
974 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
975 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
978 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
979 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
980 |
--oldin |
--oldi |
--old |
--ol |
--o)
981 ac_prev
=oldincludedir
;;
982 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
983 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
984 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
985 oldincludedir
=$ac_optarg ;;
987 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
989 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
992 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
993 |
--program-pre |
--program-pr |
--program-p)
994 ac_prev
=program_prefix
;;
995 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
996 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
997 program_prefix
=$ac_optarg ;;
999 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1000 |
--program-suf |
--program-su |
--program-s)
1001 ac_prev
=program_suffix
;;
1002 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1003 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1004 program_suffix
=$ac_optarg ;;
1006 -program-transform-name |
--program-transform-name \
1007 |
--program-transform-nam |
--program-transform-na \
1008 |
--program-transform-n |
--program-transform- \
1009 |
--program-transform |
--program-transfor \
1010 |
--program-transfo |
--program-transf \
1011 |
--program-trans |
--program-tran \
1012 |
--progr-tra |
--program-tr |
--program-t)
1013 ac_prev
=program_transform_name
;;
1014 -program-transform-name=* |
--program-transform-name=* \
1015 |
--program-transform-nam=* |
--program-transform-na=* \
1016 |
--program-transform-n=* |
--program-transform-=* \
1017 |
--program-transform=* |
--program-transfor=* \
1018 |
--program-transfo=* |
--program-transf=* \
1019 |
--program-trans=* |
--program-tran=* \
1020 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1021 program_transform_name
=$ac_optarg ;;
1023 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1025 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1026 pdfdir
=$ac_optarg ;;
1028 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1030 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1033 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1034 |
-silent |
--silent |
--silen |
--sile |
--sil)
1037 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1039 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1041 sbindir
=$ac_optarg ;;
1043 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1044 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1045 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1047 ac_prev
=sharedstatedir
;;
1048 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1049 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1050 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1052 sharedstatedir
=$ac_optarg ;;
1054 -site |
--site |
--sit)
1056 -site=* |
--site=* |
--sit=*)
1059 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1061 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1062 srcdir
=$ac_optarg ;;
1064 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1065 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1066 ac_prev
=sysconfdir
;;
1067 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1068 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1069 sysconfdir
=$ac_optarg ;;
1071 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1072 ac_prev
=target_alias
;;
1073 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1074 target_alias
=$ac_optarg ;;
1076 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1079 -version |
--version |
--versio |
--versi |
--vers |
-V)
1080 ac_init_version
=: ;;
1083 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1086 as_fn_error
"invalid package name: $ac_useropt"
1087 ac_useropt_orig
=$ac_useropt
1088 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1093 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep
=', ';;
1096 eval with_
$ac_useropt=\
$ac_optarg ;;
1098 -without-* |
--without-*)
1099 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1102 as_fn_error
"invalid package name: $ac_useropt"
1103 ac_useropt_orig
=$ac_useropt
1104 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep
=', ';;
1112 eval with_
$ac_useropt=no
;;
1115 # Obsolete; use --with-x.
1118 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1119 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1120 ac_prev
=x_includes
;;
1121 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1122 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1123 x_includes
=$ac_optarg ;;
1125 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1126 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1127 ac_prev
=x_libraries
;;
1128 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1129 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1130 x_libraries
=$ac_optarg ;;
1132 -*) as_fn_error
"unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information."
1137 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1141 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1143 eval $ac_envvar=\
$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 if test -n "$ac_prev"; then
1158 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error
"missing argument to $ac_option"
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1165 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 # Check all directory arguments for consistency.
1171 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1176 eval ac_val
=\$
$ac_var
1177 # Remove trailing slashes.
1180 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\
$ac_val;;
1183 # Be sure to have absolute directory names.
1185 [\\/$
]* | ?
:[\\/]* ) continue;;
1186 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1188 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1196 target
=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x
; then
1200 if test "x$build_alias" = x
; then
1201 cross_compiling
=maybe
1202 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used." >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1210 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1212 test "$silent" = yes && exec 6>/dev
/null
1215 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di
=`ls -di .` &&
1217 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error
"working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error
"pwd does not report name of working directory"
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted
=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir
=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1255 ac_srcdir_defaulted
=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1259 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1261 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1273 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 for ac_var
in $ac_precious_vars; do
1276 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1278 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1289 \`configure' configures this package to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1347 --program-prefix=PREFIX prepend PREFIX to installed program names
1348 --program-suffix=SUFFIX append SUFFIX to installed program names
1349 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1352 --build=BUILD configure
for building on BUILD
[guessed
]
1353 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1354 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1358 if test -n "$ac_init_help"; then
1363 --disable-option-checking ignore unrecognized
--enable/--with options
1364 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1365 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1366 --enable-maintainer-mode Enable developer functionality.
1367 --enable-sim-bswap Use Host specific BSWAP instruction.
1368 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1369 --enable-sim-debug=opts Enable debugging flags
1370 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1371 --enable-sim-trace=opts Enable tracing flags
1372 --enable-sim-profile=opts Enable profiling flags
1373 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
1374 --enable-sim-hostendian=end Specify
host byte endian orientation.
1375 --enable-sim-scache=size Specify simulator execution cache size.
1376 --enable-werror treat compile warnings as errors
1377 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1378 --enable-sim-build-warnings
1379 enable SIM specific build-time compiler warnings
if
1381 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1382 --enable-sim-default-model=model Specify default model to simulate.
1383 --enable-sim-environment=environment Specify mixed
, user
, virtual or operating environment.
1384 --enable-sim-inline=inlines Specify
which functions should be inlined.
1385 --enable-cgen-maint=DIR build cgen generated files
1388 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1389 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1390 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1391 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1392 --with-bugurl=URL Direct users to URL to report a bug
1394 Some influential environment variables
:
1395 CC C compiler
command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1398 nonstandard directory
<lib dir
>
1399 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1400 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1401 you have headers
in a nonstandard directory
<include dir
>
1404 Use these variables to override the choices made by
`configure' or to help
1405 it to find libraries and programs with nonstandard names/locations.
1407 Report bugs to the package provider.
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" ||
1416 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 ac_abs_top_builddir=$ac_pwd
1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir=$ac_top_build_prefix
1437 .) # We are building in place.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1471 generated by GNU Autoconf 2.64
1473 Copyright (C) 2009 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1480 ## ------------------------ ##
1481 ## Autoconf initialization. ##
1482 ## ------------------------ ##
1484 # ac_fn_c_try_compile LINENO
1485 # --------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_compile ()
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext
1491 if { { ac_try="$ac_compile"
1493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1494 *) ac_try_echo
=$ac_try;;
1496 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1500 if test -s conftest.err
; then
1501 grep -v '^ *+' conftest.err
>conftest.er1
1502 cat conftest.er1
>&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.
$ac_objext; then :
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.
$ac_ext >&5
1517 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1520 } # ac_fn_c_try_compile
1522 # ac_fn_c_try_cpp LINENO
1523 # ----------------------
1524 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1528 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } >/dev/null && {
1544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1560 # -------------------------------------------------------
1561 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1562 # the include files in INCLUDES and setting the cache variable VAR
1564 ac_fn_c_check_header_mongrel ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 $as_echo_n "checking for $2... " >&6; }
1570 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1571 $as_echo_n "(cached) " >&6
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1575 $as_echo "$ac_res" >&6; }
1577 # Is the header compilable?
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1579 $as_echo_n "checking $2 usability... " >&6; }
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1585 if ac_fn_c_try_compile "$LINENO"; then :
1586 ac_header_compiler=yes
1588 ac_header_compiler=no
1590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1592 $as_echo "$ac_header_compiler" >&6; }
1594 # Is the header present?
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1596 $as_echo_n "checking $2 presence... " >&6; }
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1601 if ac_fn_c_try_cpp "$LINENO"; then :
1602 ac_header_preproc=yes
1604 ac_header_preproc=no
1606 rm -f conftest.err conftest.$ac_ext
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1608 $as_echo "$ac_header_preproc" >&6; }
1610 # So? What about this header?
1611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1614 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1616 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1620 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1622 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1624 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1626 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1628 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1634 $as_echo_n "(cached) " >&6
1636 eval "$3=\$ac_header_compiler"
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 } # ac_fn_c_check_header_mongrel
1646 # ac_fn_c_try_run LINENO
1647 # ----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649 # that executables *can* be run.
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_link"
1655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1656 *) ac_try_echo
=$ac_try;;
1658 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>&5
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1664 { { case "(($ac_try" in
1665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_try") 2>&5
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; }; }; then :
1676 $as_echo "$as_me: program exited with status $ac_status" >&5
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=$ac_status
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698 $as_echo_n "(cached) " >&6
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1705 if ac_fn_c_try_compile "$LINENO"; then :
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 } # ac_fn_c_check_header_compile
1719 # ac_fn_c_try_link LINENO
1720 # -----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded.
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1729 *) ac_try_echo
=$ac_try;;
1731 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1735 if test -s conftest.err
; then
1736 grep -v '^ *+' conftest.err
>conftest.er1
1737 cat conftest.er1
>&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest
$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 $as_test_x conftest
$ac_exeext
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.
$ac_ext >&5
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1763 } # ac_fn_c_try_link
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func
()
1770 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1780 #define $2 innocuous_$2
1782 /* System header to define __stub macros and hopefully few prototypes,
1783 which can conflict with char $2 (); below.
1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785 <limits.h> exists even on freestanding compilers. */
1788 # include <limits.h>
1790 # include <assert.h>
1795 /* Override any GCC internal prototype to avoid an error.
1796 Use char because int might match the return type of a GCC
1797 builtin and then its argument prototype would still apply. */
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined __stub_$2 || defined __stub___$2
1817 if ac_fn_c_try_link
"$LINENO"; then :
1822 rm -f core conftest.err conftest.
$ac_objext \
1823 conftest
$ac_exeext conftest.
$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1830 } # ac_fn_c_check_func
1831 cat >config.log
<<_ACEOF
1832 This file contains any messages produced by compilers while
1833 running configure, to aid debugging if configure makes a mistake.
1835 It was created by $as_me, which was
1836 generated by GNU Autoconf 2.64. Invocation command line was
1848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1857 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1858 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1861 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1862 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1863 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir
=.
1872 $as_echo "PATH: $as_dir"
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1896 ac_must_keep_next
=false
1902 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1903 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1904 |
-silent |
--silent |
--silen |
--sile |
--sil)
1907 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1910 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1912 as_fn_append ac_configure_args1
" '$ac_arg'"
1913 if test $ac_must_keep_next = true
; then
1914 ac_must_keep_next
=false
# Got value, back to normal.
1917 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1918 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1919 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1920 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1921 case "$ac_configure_args0 " in
1922 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1925 -* ) ac_must_keep_next
=true
;;
1928 as_fn_append ac_configure_args
" '$ac_arg'"
1933 { ac_configure_args0
=; unset ac_configure_args0
;}
1934 { ac_configure_args1
=; unset ac_configure_args1
;}
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log. We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1942 # Save into config.log some information that might help in debugging.
1947 ## ---------------- ##
1948 ## Cache variables. ##
1949 ## ---------------- ##
1952 # The following way of writing the cache mishandles newlines in values,
1954 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955 eval ac_val=\$$ac_var
1959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963 _ | IFS | as_nl) ;; #(
1964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965 *) { eval $ac_var=; unset $ac_var;} ;;
1970 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971 *${as_nl}ac_space=\ *)
1973 "s/'\''/'\''\\\\'\'''\''/g;
1974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1985 ## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##
1990 for ac_var in $ac_subst_vars
1992 eval ac_val=\$$ac_var
1994 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 $as_echo "$ac_var='\''$ac_val'\''"
2000 if test -n "$ac_subst_files"; then
2002 ## ------------------- ##
2003 ## File substitutions. ##
2004 ## ------------------- ##
2007 for ac_var
in $ac_subst_files
2009 eval ac_val
=\$
$ac_var
2011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 $as_echo "$ac_var='\''$ac_val'\''"
2018 if test -s confdefs.h; then
2028 test "$ac_signal" != 0 &&
2029 $as_echo "$as_me: caught signal $ac_signal"
2030 $as_echo "$as_me: exit $exit_status"
2032 rm -f core *.core core.conftest.* &&
2033 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2036 for ac_signal
in 1 2 13 15; do
2037 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2041 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2042 rm -f -r conftest
* confdefs.h
2044 $as_echo "/* confdefs.h */" > confdefs.h
2046 # Predefined preprocessor variables.
2048 cat >>confdefs.h
<<_ACEOF
2049 #define PACKAGE_NAME "$PACKAGE_NAME"
2052 cat >>confdefs.h
<<_ACEOF
2053 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2056 cat >>confdefs.h
<<_ACEOF
2057 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2060 cat >>confdefs.h
<<_ACEOF
2061 #define PACKAGE_STRING "$PACKAGE_STRING"
2064 cat >>confdefs.h
<<_ACEOF
2065 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2068 cat >>confdefs.h
<<_ACEOF
2069 #define PACKAGE_URL "$PACKAGE_URL"
2073 # Let the site file select an alternate cache file if it wants to.
2074 # Prefer an explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078 ac_site_file1
=$CONFIG_SITE
2079 elif test "x$prefix" != xNONE
; then
2080 ac_site_file1
=$prefix/share
/config.site
2081 ac_site_file2
=$prefix/etc
/config.site
2083 ac_site_file1
=$ac_default_prefix/share
/config.site
2084 ac_site_file2
=$ac_default_prefix/etc
/config.site
2086 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2088 test "x$ac_site_file" = xNONE
&& continue
2089 if test -r "$ac_site_file"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092 sed 's/^/| /' "$ac_site_file" >&5
2097 if test -r "$cache_file"; then
2098 # Some versions of bash will fail to source /dev/null (special
2099 # files actually), so we avoid doing that.
2100 if test -f "$cache_file"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102 $as_echo "$as_me: loading cache $cache_file" >&6;}
2104 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2105 *) .
"./$cache_file";;
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110 $as_echo "$as_me: creating cache $cache_file" >&6;}
2114 # Check that the precious variables saved in the cache have kept the same
2116 ac_cache_corrupted
=false
2117 for ac_var
in $ac_precious_vars; do
2118 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2119 eval ac_new_set
=\
$ac_env_${ac_var}_set
2120 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2121 eval ac_new_val
=\
$ac_env_${ac_var}_value
2122 case $ac_old_set,$ac_new_set in
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2125 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2126 ac_cache_corrupted
=: ;;
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2130 ac_cache_corrupted
=: ;;
2133 if test "x$ac_old_val" != "x$ac_new_val"; then
2134 # differences in whitespace do not lead to failure.
2135 ac_old_val_w
=`echo x $ac_old_val`
2136 ac_new_val_w
=`echo x $ac_new_val`
2137 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2139 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2140 ac_cache_corrupted
=:
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2143 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2144 eval $ac_var=\
$ac_old_val
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2147 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2149 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2152 # Pass precious variables to config.status.
2153 if test "$ac_new_set" = set; then
2155 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 *) ac_arg
=$ac_var=$ac_new_val ;;
2158 case " $ac_configure_args " in
2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2164 if $ac_cache_corrupted; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2168 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2169 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2171 ## -------------------- ##
2172 ## Main body of script. ##
2173 ## -------------------- ##
2176 ac_cpp
='$CPP $CPPFLAGS'
2177 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2182 # This file contains common code used by all simulators.
2184 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2185 # directory. It is intended to be invoked before any target specific stuff.
2186 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2187 # It is intended to be invoked last.
2189 # The simulator's configure.in should look like:
2191 # dnl Process this file with autoconf to produce a configure script.
2192 # AC_PREREQ(2.64)dnl
2193 # AC_INIT(Makefile.in)
2194 # sinclude(../common/aclocal.m4)
2198 # ... target specific stuff ...
2202 # Include global overrides and fixes for Autoconf.
2229 # _AC_CHECK_DECL_BODY
2230 # -------------------
2231 # Shell function body for AC_CHECK_DECL.
2232 # _AC_CHECK_DECL_BODY
2234 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2236 # -------------------------------------------------------------
2237 # Helper to AC_CHECK_DECLS, which generates the check for a single
2238 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2239 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2252 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
2253 # Free Software Foundation, Inc.
2255 # This file is free software; the Free Software Foundation
2256 # gives unlimited permission to copy and/or distribute it,
2257 # with or without modifications, as long as this notice is preserved.
2261 # Based on depend.m4 from automake 1.9, modified for standalone use in
2262 # an environment where GNU make is required.
2264 # ZW_PROG_COMPILER_DEPENDENCIES
2265 # -----------------------------
2266 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
2267 # sets fooDEPMODE accordingly. Cache-variable compatible with
2268 # original; not side-effect compatible. As the users of this macro
2269 # may require accurate dependencies for correct builds, it does *not*
2270 # honor --disable-dependency-checking, and failure to detect a usable
2271 # method is an error. depcomp is assumed to be located in
2274 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
2280 # Choose a directory name for dependency files.
2285 # As AM_SET_DEPDIR, but also create the directory at config.status time.
2336 sim_inline
="-DDEFAULT_INLINE=0"
2373 # intl sister-directory configuration rules.
2376 # The idea behind this macro is that there's no need to repeat all the
2377 # autoconf probes done by the intl directory - it's already done them
2378 # for us. In fact, there's no need even to look at the cache for the
2379 # answers. All we need to do is nab a few pieces of information.
2380 # The intl directory is set up to make this easy, by generating a
2381 # small file which can be sourced as a shell script; then we produce
2382 # the necessary substitutions and definitions for this directory.
2386 # Autoconf M4 include file defining utility macros for complex Canadian
2398 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2400 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2403 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2404 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2408 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2409 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2413 # Backported from Autoconf 2.5x; can go away when and if
2414 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2419 # ACX_HAVE_GCC_FOR_TARGET
2420 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2423 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2424 # Searching for installed target binutils. We need to take extra care,
2425 # else we may find the wrong assembler, linker, etc., and lose.
2427 # First try --with-build-time-tools, if specified.
2429 # For build != host, we ask the installed GCC for the name of the tool it
2430 # uses, and accept it if it is an absolute path. This is because the
2431 # only good choice for a compiler is the same GCC version that is being
2432 # installed (or we couldn't make target libraries), and we assume that
2433 # on the host system we'll have not only the same GCC version, but also
2434 # the same binutils version.
2436 # For build == host, search the same directories that the installed
2437 # compiler will search. We used to do this for the assembler, linker,
2438 # and nm only; for simplicity of configuration, however, we extend this
2439 # criterion to tools (such as ar and ranlib) that are never invoked by
2440 # the compiler, to avoid mismatches.
2442 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2443 # if build == target. This makes the most sense only when bootstrapping,
2444 # but we also do so when build != host. In this case, we hope that the
2445 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2447 # If we do not find a suitable binary, then try the user's path.
2451 # AC_PROG_CPP_WERROR
2452 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2453 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2454 # For now, using this also overrides header checks to use only the
2455 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2456 # bit harder from here).
2457 # Eventually autoconf will default to checking headers with the compiler
2458 # instead, and we'll have to do this differently.
2460 # AC_PROG_CPP_WERROR
2463 # We require the gnatbind & gnatmake programs, as well as a compiler driver
2464 # that understands Ada. We use the user's CC setting, already found, and
2465 # possibly add $1 to the command-line parameters.
2467 # Sets the shell variable have_gnat to yes or no as appropriate, and
2468 # substitutes GNATBIND and GNATMAKE.
2495 ac_cpp
='$CPP $CPPFLAGS'
2496 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2499 if test -n "$ac_tool_prefix"; then
2500 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2501 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2503 $as_echo_n "checking for $ac_word... " >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then :
2505 $as_echo_n "(cached) " >&6
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC
="$CC" # Let the user override the test.
2510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir
=.
2515 for ac_exec_ext
in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 if test -n "$CC"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2530 $as_echo "$CC" >&6; }
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2533 $as_echo "no" >&6; }
2538 if test -z "$ac_cv_prog_CC"; then
2540 # Extract the first word of "gcc", so it can be a program name with args.
2541 set dummy gcc
; ac_word
=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
2547 if test -n "$ac_ct_CC"; then
2548 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir
=.
2555 for ac_exec_ext
in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 ac_cv_prog_ac_ct_CC
="gcc"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2568 if test -n "$ac_ct_CC"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2570 $as_echo "$ac_ct_CC" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2576 if test "x$ac_ct_CC" = x
; then
2579 case $cross_compiling:$ac_tool_warned in
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2583 ac_tool_warned
=yes ;;
2591 if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
2593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2594 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then :
2598 $as_echo_n "(cached) " >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC
="$CC" # Let the user override the test.
2603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir
=.
2608 for ac_exec_ext
in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CC"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2623 $as_echo "$CC" >&6; }
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2632 if test -z "$CC"; then
2633 # Extract the first word of "cc", so it can be a program name with args.
2634 set dummy cc
; ac_word
=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if test "${ac_cv_prog_CC+set}" = set; then :
2638 $as_echo_n "(cached) " >&6
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC
="$CC" # Let the user override the test.
2644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir
=.
2649 for ac_exec_ext
in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2652 ac_prog_rejected
=yes
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test $ac_prog_rejected = yes; then
2664 # We found a bogon in the path, so make sure we never use it.
2665 set dummy
$ac_cv_prog_CC
2667 if test $# != 0; then
2668 # We chose a different compiler from the bogus one.
2669 # However, it has the same basename, so the bogon will be chosen
2670 # first if we set CC to just the basename; use the full file name.
2672 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2678 if test -n "$CC"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2680 $as_echo "$CC" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2688 if test -z "$CC"; then
2689 if test -n "$ac_tool_prefix"; then
2690 for ac_prog
in cl.exe
2692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2693 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then :
2697 $as_echo_n "(cached) " >&6
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC
="$CC" # Let the user override the test.
2702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir
=.
2707 for ac_exec_ext
in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test -n "$CC"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722 $as_echo "$CC" >&6; }
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2729 test -n "$CC" && break
2732 if test -z "$CC"; then
2734 for ac_prog
in cl.exe
2736 # Extract the first word of "$ac_prog", so it can be a program name with args.
2737 set dummy
$ac_prog; ac_word
=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2741 $as_echo_n "(cached) " >&6
2743 if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir
=.
2751 for ac_exec_ext
in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_ac_ct_CC
="$ac_prog"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2764 if test -n "$ac_ct_CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2766 $as_echo "$ac_ct_CC" >&6; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2773 test -n "$ac_ct_CC" && break
2776 if test "x$ac_ct_CC" = x
; then
2779 case $cross_compiling:$ac_tool_warned in
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783 ac_tool_warned
=yes ;;
2792 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 as_fn_error
"no acceptable C compiler found in \$PATH
2795 See \`config.log' for more details." "$LINENO" 5; }
2797 # Provide some information about the compiler.
2798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2801 for ac_option
in --version -v -V -qversion; do
2802 { { ac_try
="$ac_compiler $ac_option >&5"
2804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2808 $as_echo "$ac_try_echo"; } >&5
2809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2811 if test -s conftest.err; then
2813 ... rest of stderr output deleted ...
2814 10q' conftest.err >conftest.er1
2815 cat conftest.er1 >&5
2816 rm -f conftest.er1 conftest.err
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; }
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2833 ac_clean_files_save=$ac_clean_files
2834 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2835 # Try to create an executable without -o first, disregard a.out.
2836 # It will help us diagnose broken compilers, and finding out an intuition
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2839 $as_echo_n "checking for C compiler default output file name... " >&6; }
2840 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2842 # The possible output files:
2843 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2846 for ac_file in $ac_files
2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2850 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 if { { ac_try="$ac_link_default"
2857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2858 *) ac_try_echo
=$ac_try;;
2860 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 $as_echo "$ac_try_echo"; } >&5
2862 (eval "$ac_link_default") 2>&5
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; }; then :
2866 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2867 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2868 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2869 # so that the user can short-circuit this test for compilers unknown to
2871 for ac_file
in $ac_files ''
2873 test -f "$ac_file" ||
continue
2875 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2878 # We found the default executable, but exeext='' is most
2882 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2884 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2886 # We set ac_cv_exeext here because the later test for it is not
2887 # safe: cross compilers may not add the suffix if given an `-o'
2888 # argument, so we may need to know it at that point already.
2889 # Even if this section looks crufty: it has the advantage of
2896 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2902 $as_echo "$ac_file" >&6; }
2903 if test -z "$ac_file"; then :
2904 $as_echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.
$ac_ext >&5
2907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 { as_fn_set_status
77
2910 as_fn_error
"C compiler cannot create executables
2911 See \`config.log' for more details." "$LINENO" 5; }; }
2913 ac_exeext
=$ac_cv_exeext
2915 # Check that the compiler produces executables we can run. If not, either
2916 # the compiler is broken, or we cross compile.
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2918 $as_echo_n "checking whether the C compiler works... " >&6; }
2919 # If not cross compiling, check that we can run a simple program.
2920 if test "$cross_compiling" != yes; then
2921 if { ac_try
='./$ac_file'
2922 { { case "(($ac_try" in
2923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_try") 2>&5
2930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931 test $ac_status = 0; }; }; then
2934 if test "$cross_compiling" = maybe; then
2937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error "cannot run C compiled programs.
2940 If you meant to cross compile
, use \
`--host'.
2941 See \`config.log
' for more details." "$LINENO" 5; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946 $as_echo "yes" >&6; }
2948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2949 ac_clean_files=$ac_clean_files_save
2950 # Check that the compiler produces executables we can run. If not, either
2951 # the compiler is broken, or we cross compile.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2953 $as_echo_n "checking whether we are cross compiling... " >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2955 $as_echo "$cross_compiling" >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2958 $as_echo_n "checking for suffix of executables... " >&6; }
2959 if { { ac_try="$ac_link"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link") 2>&5
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2971 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2972 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2974 for ac_file
in conftest.exe conftest conftest.
*; do
2975 test -f "$ac_file" ||
continue
2977 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2978 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details." "$LINENO" 5; }
2989 rm -f conftest
$ac_cv_exeext
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2991 $as_echo "$ac_cv_exeext" >&6; }
2993 rm -f conftest.
$ac_ext
2994 EXEEXT
=$ac_cv_exeext
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2997 $as_echo_n "checking for suffix of object files... " >&6; }
2998 if test "${ac_cv_objext+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h. */
3012 rm -f conftest.o conftest.obj
3013 if { { ac_try
="$ac_compile"
3015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019 $as_echo "$ac_try_echo"; } >&5
3020 (eval "$ac_compile") 2>&5
3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023 test $ac_status = 0; }; then :
3024 for ac_file in conftest.o conftest.obj conftest.*; do
3025 test -f "$ac_file" || continue;
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 $as_echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error "cannot compute suffix of object files
: cannot compile
3039 See \
`config.log' for more details." "$LINENO" 5; }
3041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3044 $as_echo "$ac_cv_objext" >&6; }
3045 OBJEXT=$ac_cv_objext
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3048 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3049 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3066 if ac_fn_c_try_compile "$LINENO"; then :
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3076 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3077 if test $ac_compiler_gnu = yes; then
3082 ac_test_CFLAGS=${CFLAGS+set}
3083 ac_save_CFLAGS=$CFLAGS
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3085 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3086 if test "${ac_cv_prog_cc_g+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 ac_save_c_werror_flag=$ac_c_werror_flag
3090 ac_c_werror_flag=yes
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3104 if ac_fn_c_try_compile "$LINENO"; then :
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3119 if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_c_werror_flag=$ac_save_c_werror_flag
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3135 if ac_fn_c_try_compile "$LINENO"; then :
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_c_werror_flag=$ac_save_c_werror_flag
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3146 $as_echo "$ac_cv_prog_cc_g" >&6; }
3147 if test "$ac_test_CFLAGS" = set; then
3148 CFLAGS=$ac_save_CFLAGS
3149 elif test $ac_cv_prog_cc_g = yes; then
3150 if test "$GCC" = yes; then
3156 if test "$GCC" = yes; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3164 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
3167 ac_cv_prog_cc_c89=no
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3173 #include <sys/types.h>
3174 #include <sys/stat.h>
3175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3176 struct buf { int x; };
3177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3178 static char *e (p, i)
3184 static char *f (char * (*g) (char **, int), char **p, ...)
3189 s = g (p, va_arg (v,int));
3194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3195 function prototypes and stuff, but not '\xHH' hex character constants.
3196 These don't provoke an error unfortunately, instead are silently treated
3197 as 'x'. The following induces an error, until -std is added to get
3198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3199 array size at least. It's necessary to write '\x00'==0 to get something
3200 that's true only with -std. */
3201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3204 inside strings and character constants. */
3206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3208 int test (int i, double x);
3209 struct s1 {int (*f) (int a);};
3210 struct s2 {int (*f) (double a);};
3211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225 CC="$ac_save_CC $ac_arg"
3226 if ac_fn_c_try_compile "$LINENO"; then :
3227 ac_cv_prog_cc_c89=$ac_arg
3229 rm -f core conftest.err conftest.$ac_objext
3230 test "x$ac_cv_prog_cc_c89" != "xno" && break
3232 rm -f conftest.$ac_ext
3237 case "x$ac_cv_prog_cc_c89" in
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3240 $as_echo "none needed" >&6; } ;;
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3243 $as_echo "unsupported" >&6; } ;;
3245 CC="$CC $ac_cv_prog_cc_c89"
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3249 if test "x$ac_cv_prog_cc_c89" != xno; then :
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3261 for ac_t in install-sh install.sh shtool; do
3262 if test -f "$ac_dir/$ac_t"; then
3264 ac_install_sh="$ac_aux_dir/$ac_t -c"
3269 if test -z "$ac_aux_dir"; then
3270 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3273 # These three variables are undocumented and unsupported,
3274 # and are intended to be withdrawn in a future Autoconf release.
3275 # They can cause serious problems if a builder's source tree is in a directory
3276 # whose full name contains unusual characters.
3277 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3278 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3279 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3282 # Make sure we can run config.sub.
3283 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3284 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3287 $as_echo_n "checking build system type... " >&6; }
3288 if test "${ac_cv_build+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3291 ac_build_alias=$build_alias
3292 test "x$ac_build_alias" = x &&
3293 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3294 test "x$ac_build_alias" = x &&
3295 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3296 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3297 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3301 $as_echo "$ac_cv_build" >&6; }
3302 case $ac_cv_build in
3304 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3307 ac_save_IFS=$IFS; IFS='-'
3313 # Remember, the first character of IFS is used to create $*,
3314 # except with old shells:
3317 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3321 $as_echo_n "checking host system type... " >&6; }
3322 if test "${ac_cv_host+set}" = set; then :
3323 $as_echo_n "(cached) " >&6
3325 if test "x$host_alias" = x; then
3326 ac_cv_host=$ac_cv_build
3328 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3329 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3334 $as_echo "$ac_cv_host" >&6; }
3337 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3340 ac_save_IFS=$IFS; IFS='-'
3346 # Remember, the first character of IFS is used to create $*,
3347 # except with old shells:
3350 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3354 $as_echo_n "checking target system type... " >&6; }
3355 if test "${ac_cv_target+set}" = set; then :
3356 $as_echo_n "(cached) " >&6
3358 if test "x$target_alias" = x; then
3359 ac_cv_target=$ac_cv_host
3361 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3362 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3367 $as_echo "$ac_cv_target" >&6; }
3368 case $ac_cv_target in
3370 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3372 target=$ac_cv_target
3373 ac_save_IFS=$IFS; IFS='-'
3379 # Remember, the first character of IFS is used to create $*,
3380 # except with old shells:
3383 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3386 # The aliases save the names the user supplied, while $host etc.
3387 # will get canonicalized.
3388 test -n "$target_alias" &&
3389 test "$program_prefix$program_suffix$program_transform_name" = \
3391 program_prefix=${target_alias}-
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3399 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3400 # On Suns, sometimes $CPP names a directory.
3401 if test -n "$CPP" && test -d "$CPP"; then
3404 if test -z "$CPP"; then
3405 if test "${ac_cv_prog_CPP+set}" = set; then :
3406 $as_echo_n "(cached) " >&6
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3423 # include <limits.h>
3425 # include <assert.h>
3429 if ac_fn_c_try_cpp "$LINENO"; then :
3432 # Broken: fails on valid input.
3435 rm -f conftest.err conftest.$ac_ext
3437 # OK, works on sane cases. Now check whether nonexistent headers
3438 # can be detected and how.
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441 #include <ac_nonexistent.h>
3443 if ac_fn_c_try_cpp "$LINENO"; then :
3444 # Broken: success on invalid input.
3447 # Passes both tests.
3451 rm -f conftest.err conftest.$ac_ext
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.
$ac_ext
3456 if $ac_preproc_ok; then :
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3469 $as_echo "$CPP" >&6; }
3471 for ac_c_preproc_warn_flag
in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476 # <limits.h> exists even on freestanding compilers.
3477 # On the NeXT, cc -E runs the code through the compiler's parser,
3478 # not just through cpp. "Syntax error" is here to catch this case.
3479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3482 # include <limits.h>
3484 # include <assert.h>
3488 if ac_fn_c_try_cpp
"$LINENO"; then :
3491 # Broken: fails on valid input.
3494 rm -f conftest.err conftest.
$ac_ext
3496 # OK, works on sane cases. Now check whether nonexistent headers
3497 # can be detected and how.
3498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500 #include <ac_nonexistent.h>
3502 if ac_fn_c_try_cpp
"$LINENO"; then :
3503 # Broken: success on invalid input.
3506 # Passes both tests.
3510 rm -f conftest.err conftest.
$ac_ext
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.
$ac_ext
3515 if $ac_preproc_ok; then :
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3521 See \`config.log' for more details." "$LINENO" 5; }
3525 ac_cpp
='$CPP $CPPFLAGS'
3526 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3532 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3533 if test "${ac_cv_path_GREP+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -z "$GREP"; then
3537 ac_path_GREP_found
=false
3538 # Loop through the user's path and test for each of PROGNAME-LIST
3539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3540 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3543 test -z "$as_dir" && as_dir
=.
3544 for ac_prog
in grep ggrep
; do
3545 for ac_exec_ext
in '' $ac_executable_extensions; do
3546 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3547 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3548 # Check for GNU ac_path_GREP and select it if it is found.
3549 # Check for GNU $ac_path_GREP
3550 case `"$ac_path_GREP" --version 2>&1` in
3552 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3555 $as_echo_n 0123456789 >"conftest.in"
3558 cat "conftest.in" "conftest.in" >"conftest.tmp"
3559 mv "conftest.tmp" "conftest.in"
3560 cp "conftest.in" "conftest.nl"
3561 $as_echo 'GREP' >> "conftest.nl"
3562 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3563 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3564 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3565 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3566 # Best one so far, save it but keep looking for a better one
3567 ac_cv_path_GREP
="$ac_path_GREP"
3568 ac_path_GREP_max
=$ac_count
3570 # 10*(2^10) chars as input seems more than enough
3571 test $ac_count -gt 10 && break
3573 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3576 $ac_path_GREP_found && break 3
3581 if test -z "$ac_cv_path_GREP"; then
3582 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3585 ac_cv_path_GREP
=$GREP
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3590 $as_echo "$ac_cv_path_GREP" >&6; }
3591 GREP
="$ac_cv_path_GREP"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3595 $as_echo_n "checking for egrep... " >&6; }
3596 if test "${ac_cv_path_EGREP+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3599 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3600 then ac_cv_path_EGREP
="$GREP -E"
3602 if test -z "$EGREP"; then
3603 ac_path_EGREP_found
=false
3604 # Loop through the user's path and test for each of PROGNAME-LIST
3605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3609 test -z "$as_dir" && as_dir
=.
3610 for ac_prog
in egrep; do
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3613 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3614 # Check for GNU ac_path_EGREP and select it if it is found.
3615 # Check for GNU $ac_path_EGREP
3616 case `"$ac_path_EGREP" --version 2>&1` in
3618 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3621 $as_echo_n 0123456789 >"conftest.in"
3624 cat "conftest.in" "conftest.in" >"conftest.tmp"
3625 mv "conftest.tmp" "conftest.in"
3626 cp "conftest.in" "conftest.nl"
3627 $as_echo 'EGREP' >> "conftest.nl"
3628 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3629 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3630 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3631 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3632 # Best one so far, save it but keep looking for a better one
3633 ac_cv_path_EGREP
="$ac_path_EGREP"
3634 ac_path_EGREP_max
=$ac_count
3636 # 10*(2^10) chars as input seems more than enough
3637 test $ac_count -gt 10 && break
3639 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3642 $ac_path_EGREP_found && break 3
3647 if test -z "$ac_cv_path_EGREP"; then
3648 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3651 ac_cv_path_EGREP
=$EGREP
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3657 $as_echo "$ac_cv_path_EGREP" >&6; }
3658 EGREP
="$ac_cv_path_EGREP"
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3662 $as_echo_n "checking for ANSI C header files... " >&6; }
3663 if test "${ac_cv_header_stdc+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3681 if ac_fn_c_try_compile
"$LINENO"; then :
3682 ac_cv_header_stdc
=yes
3684 ac_cv_header_stdc
=no
3686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3688 if test $ac_cv_header_stdc = yes; then
3689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3696 $EGREP "memchr" >/dev
/null
2>&1; then :
3699 ac_cv_header_stdc
=no
3705 if test $ac_cv_header_stdc = yes; then
3706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 $EGREP "free" >/dev
/null
2>&1; then :
3716 ac_cv_header_stdc
=no
3722 if test $ac_cv_header_stdc = yes; then
3723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3724 if test "$cross_compiling" = yes; then :
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 #if ((' ' & 0x0FF) == 0x020)
3732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3735 # define ISLOWER(c) \
3736 (('a' <= (c) && (c) <= 'i') \
3737 || ('j' <= (c) && (c) <= 'r') \
3738 || ('s' <= (c) && (c) <= 'z'))
3739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3747 for (i = 0; i < 256; i++)
3748 if (XOR (islower (i), ISLOWER (i))
3749 || toupper (i) != TOUPPER (i))
3754 if ac_fn_c_try_run
"$LINENO"; then :
3757 ac_cv_header_stdc
=no
3759 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3760 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3766 $as_echo "$ac_cv_header_stdc" >&6; }
3767 if test $ac_cv_header_stdc = yes; then
3769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3774 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3775 inttypes.h stdint.h unistd.h
3777 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3778 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3780 eval as_val
=\$
$as_ac_Header
3781 if test "x$as_val" = x
""yes; then :
3782 cat >>confdefs.h
<<_ACEOF
3783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3792 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3793 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3800 if test "$MINIX" = yes; then
3802 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3805 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3808 $as_echo "#define _MINIX 1" >>confdefs.h
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3814 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3815 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3821 # define __EXTENSIONS__ 1
3822 $ac_includes_default
3831 if ac_fn_c_try_compile
"$LINENO"; then :
3832 ac_cv_safe_to_define___extensions__
=yes
3834 ac_cv_safe_to_define___extensions__
=no
3836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3839 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3840 test $ac_cv_safe_to_define___extensions__ = yes &&
3841 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3843 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3845 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3847 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3849 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3852 test "$program_prefix" != NONE
&&
3853 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3854 # Use a double $ so make ignores it.
3855 test "$program_suffix" != NONE
&&
3856 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3857 # Double any \ or $.
3858 # By default was `s,x,x', remove it if useless.
3859 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3860 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3862 # Find a good install program. We prefer a C program (faster),
3863 # so one script is as good as another. But avoid the broken or
3864 # incompatible versions:
3865 # SysV /etc/install, /usr/sbin/install
3866 # SunOS /usr/etc/install
3867 # IRIX /sbin/install
3869 # AmigaOS /C/install, which installs bootblocks on floppy discs
3870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3873 # OS/2's system install, which has a completely different semantic
3874 # ./install, which can be erroneously created by make from ./install.sh.
3875 # Reject install programs that cannot install multiple files.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3877 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3878 if test -z "$INSTALL"; then
3879 if test "${ac_cv_path_install+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir
=.
3887 # Account for people who put trailing slashes in PATH elements.
3888 case $as_dir/ in #((
3889 .
/ | .
// |
/[cC
]/* | \
3890 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3891 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3894 # OSF1 and SCO ODT 3.0 have their own names for install.
3895 # Don't use installbsd from OSF since it installs stuff as root
3897 for ac_prog
in ginstall scoinst
install; do
3898 for ac_exec_ext
in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3900 if test $ac_prog = install &&
3901 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3902 # AIX install. It has an incompatible calling convention.
3904 elif test $ac_prog = install &&
3905 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3906 # program-specific install script used by HP pwplus--don't use.
3909 rm -rf conftest.one conftest.two conftest.dir
3910 echo one
> conftest.one
3911 echo two
> conftest.two
3913 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3914 test -s conftest.one
&& test -s conftest.two
&&
3915 test -s conftest.dir
/conftest.one
&&
3916 test -s conftest.dir
/conftest.two
3918 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3931 rm -rf conftest.one conftest.two conftest.dir
3934 if test "${ac_cv_path_install+set}" = set; then
3935 INSTALL
=$ac_cv_path_install
3937 # As a last resort, use the slow shell script. Don't cache a
3938 # value for INSTALL within a source directory, because that will
3939 # break other packages using the cache if that directory is
3940 # removed, or if the value is a relative name.
3941 INSTALL
=$ac_install_sh
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3945 $as_echo "$INSTALL" >&6; }
3947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3948 # It thinks the first close brace ends the variable substitution.
3949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3953 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3955 rm -rf .tst
2>/dev
/null
3956 mkdir .tst
2>/dev
/null
3957 if test -d .tst
; then
3962 rmdir .tst
2>/dev
/null
3964 DEPDIR
="${am__leading_dot}deps"
3968 # autoconf.info says this should be called right after AC_INIT.
3969 ac_config_headers
="$ac_config_headers config.h:config.in"
3976 # Put a plausible default for CC_FOR_BUILD in Makefile.
3977 if test "x$cross_compiling" = "xno"; then
3978 CC_FOR_BUILD
='$(CC)'
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3990 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 if test -n "$RANLIB"; then
3997 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir
=.
4004 for ac_exec_ext
in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 RANLIB
=$ac_cv_prog_RANLIB
4017 if test -n "$RANLIB"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4019 $as_echo "$RANLIB" >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4027 if test -z "$ac_cv_prog_RANLIB"; then
4028 ac_ct_RANLIB
=$RANLIB
4029 # Extract the first word of "ranlib", so it can be a program name with args.
4030 set dummy ranlib
; ac_word
=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4036 if test -n "$ac_ct_RANLIB"; then
4037 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir
=.
4044 for ac_exec_ext
in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4057 if test -n "$ac_ct_RANLIB"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4059 $as_echo "$ac_ct_RANLIB" >&6; }
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4065 if test "x$ac_ct_RANLIB" = x
; then
4068 case $cross_compiling:$ac_tool_warned in
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned
=yes ;;
4074 RANLIB
=$ac_ct_RANLIB
4077 RANLIB
="$ac_cv_prog_RANLIB"
4081 # Some of the common include files depend on bfd.h, and bfd.h checks
4082 # that config.h is included first by testing that the PACKAGE macro
4086 cat >>confdefs.h
<<_ACEOF
4087 #define PACKAGE "$PACKAGE"
4092 # Dependency checking.
4093 ac_config_commands
="$ac_config_commands depdir"
4096 depcc
="$CC" am_compiler_list
=
4098 am_depcomp
=$ac_aux_dir/depcomp
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4100 $as_echo_n "checking dependency style of $depcc... " >&6; }
4101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -f "$am_depcomp"; then
4105 # We make a subdir and do the tests there. Otherwise we can end up
4106 # making bogus files that we don't know about and never remove. For
4107 # instance it was reported that on HP-UX the gcc test will end up
4108 # making a dummy file named `D' -- because `-MD' means `put the output
4111 # Copy depcomp to subdir because otherwise we won't find it if we're
4112 # using a relative directory.
4113 cp "$am_depcomp" conftest.dir
4115 # We will build objects and dependencies in a subdirectory because
4116 # it helps to detect inapplicable dependency modes. For instance
4117 # both Tru64's cc and ICC support -MD to output dependencies as a
4118 # side effect of compilation, but ICC will put the dependencies in
4119 # the current directory while Tru64 will put them in the object
4123 am_cv_CC_dependencies_compiler_type
=none
4124 if test "$am_compiler_list" = ""; then
4125 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4127 for depmode
in $am_compiler_list; do
4128 if test $depmode = none
; then break; fi
4130 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4131 # Setup a source with many dependencies, because some compilers
4132 # like to wrap large dependency lists on column 80 (with \), and
4133 # we should not choose a depcomp mode which is confused by this.
4135 # We need to recreate these files for each test, as the compiler may
4136 # overwrite some of them when testing with obscure command lines.
4137 # This happens at least with the AIX C compiler.
4139 for i
in 1 2 3 4 5 6; do
4140 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4142 # Solaris 8's {/usr,}/bin/sh.
4143 touch sub
/conftst
$i.h
4145 echo "include sub/conftest.Po" > confmf
4147 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4148 # mode. It turns out that the SunPro C++ compiler does not properly
4149 # handle `-M -o', and we need to detect this.
4150 depcmd
="depmode=$depmode \
4151 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4153 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4154 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4155 if env
$depcmd > conftest.err
2>&1 &&
4156 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4157 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4158 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4159 # icc doesn't choke on unknown options, it will just issue warnings
4160 # or remarks (even with -Werror). So we grep stderr for any message
4161 # that says an option was ignored or not supported.
4162 # When given -MP, icc 7.0 and 7.1 complain thusly:
4163 # icc: Command line warning: ignoring option '-M'; no argument required
4164 # The diagnosis changed in icc 8.0:
4165 # icc: Command line remark: option '-MP' not supported
4166 if (grep 'ignoring option' conftest.err ||
4167 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4168 am_cv_CC_dependencies_compiler_type
=$depmode
4169 $as_echo "$as_me:$LINENO: success" >&5
4173 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4174 sed -e 's/^/| /' < conftest.err
>&5
4180 am_cv_CC_dependencies_compiler_type
=none
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4185 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4186 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4187 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4188 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4193 # Check for the 'make' the user wants to use.
4196 # Extract the first word of "$ac_prog", so it can be a program name with args.
4197 set dummy
$ac_prog; ac_word
=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_MAKE+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$MAKE"; then
4204 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir
=.
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_MAKE
="$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 MAKE
=$ac_cv_prog_MAKE
4224 if test -n "$MAKE"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4226 $as_echo "$MAKE" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$MAKE" && break
4237 case "`$MAKE --version 2>&1 | sed 1q`" in
4242 if test "$MAKE_IS_GNU" = yes; then
4252 # If we haven't got the data from the intl directory,
4253 # assume NLS is disabled.
4262 if test -f ..
/..
/intl
/config.intl
; then
4263 . ..
/..
/intl
/config.intl
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4266 $as_echo_n "checking whether NLS is requested... " >&6; }
4267 if test x
"$USE_NLS" != xyes
; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4272 $as_echo "yes" >&6; }
4274 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4278 $as_echo_n "checking for catalogs to be installed... " >&6; }
4279 # Look for .po and .gmo files in the source directory.
4282 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4283 # If there aren't any .gmo files the shell will give us the
4284 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4286 case "$cat" in *\
**)
4289 # The quadruple backslash is collapsed to a double backslash
4290 # by the backticks, then collapsed again by the double quotes,
4291 # leaving us with one backslash in the sed expression (right
4292 # before the dot that mustn't act as a wildcard).
4293 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4294 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4295 # The user is allowed to set LINGUAS to a list of languages to
4296 # install catalogs for. If it's empty that means "all of them."
4297 if test "x$LINGUAS" = x
; then
4298 CATALOGS
="$CATALOGS $cat"
4299 XLINGUAS
="$XLINGUAS $lang"
4301 case "$LINGUAS" in *$lang*)
4302 CATALOGS
="$CATALOGS $cat"
4303 XLINGUAS
="$XLINGUAS $lang"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4310 $as_echo "$LINGUAS" >&6; }
4323 # Check for common headers.
4324 # FIXME: Seems to me this can cause problems for i386-windows hosts.
4325 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
4326 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4328 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4330 eval as_val
=\$
$as_ac_Header
4331 if test "x$as_val" = x
""yes; then :
4332 cat >>confdefs.h
<<_ACEOF
4333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 for ac_header
in sys
/time.h sys
/resource.h
4342 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4344 eval as_val
=\$
$as_ac_Header
4345 if test "x$as_val" = x
""yes; then :
4346 cat >>confdefs.h
<<_ACEOF
4347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4354 for ac_header
in fcntl.h fpu_control.h
4356 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4357 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4358 eval as_val
=\$
$as_ac_Header
4359 if test "x$as_val" = x
""yes; then :
4360 cat >>confdefs.h
<<_ACEOF
4361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4368 for ac_header
in dlfcn.h errno.h sys
/stat.h
4370 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4371 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4372 eval as_val
=\$
$as_ac_Header
4373 if test "x$as_val" = x
""yes; then :
4374 cat >>confdefs.h
<<_ACEOF
4375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4382 for ac_func
in getrusage
time sigaction __setfpucw
4384 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4385 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4386 eval as_val
=\$
$as_ac_var
4387 if test "x$as_val" = x
""yes; then :
4388 cat >>confdefs.h
<<_ACEOF
4389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4396 # Check for socket libraries
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4398 $as_echo_n "checking for bind in -lsocket... " >&6; }
4399 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4402 ac_check_lib_save_LIBS
=$LIBS
4403 LIBS
="-lsocket $LIBS"
4404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4407 /* Override any GCC internal prototype to avoid an error.
4408 Use char because int might match the return type of a GCC
4409 builtin and then its argument prototype would still apply. */
4422 if ac_fn_c_try_link
"$LINENO"; then :
4423 ac_cv_lib_socket_bind
=yes
4425 ac_cv_lib_socket_bind
=no
4427 rm -f core conftest.err conftest.
$ac_objext \
4428 conftest
$ac_exeext conftest.
$ac_ext
4429 LIBS
=$ac_check_lib_save_LIBS
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4432 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4433 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4434 cat >>confdefs.h
<<_ACEOF
4435 #define HAVE_LIBSOCKET 1
4438 LIBS
="-lsocket $LIBS"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4443 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4444 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 ac_check_lib_save_LIBS
=$LIBS
4449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4452 /* Override any GCC internal prototype to avoid an error.
4453 Use char because int might match the return type of a GCC
4454 builtin and then its argument prototype would still apply. */
4458 char gethostbyname ();
4462 return gethostbyname ();
4467 if ac_fn_c_try_link
"$LINENO"; then :
4468 ac_cv_lib_nsl_gethostbyname
=yes
4470 ac_cv_lib_nsl_gethostbyname
=no
4472 rm -f core conftest.err conftest.
$ac_objext \
4473 conftest
$ac_exeext conftest.
$ac_ext
4474 LIBS
=$ac_check_lib_save_LIBS
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4477 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4478 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4479 cat >>confdefs.h
<<_ACEOF
4480 #define HAVE_LIBNSL 1
4488 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4489 # using the same condition.
4491 # See if the user specified whether he wants zlib support or not.
4493 # Check whether --with-zlib was given.
4494 if test "${with_zlib+set}" = set; then :
4501 if test "$with_zlib" != "no"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4503 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4504 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4507 ac_func_search_save_LIBS
=$LIBS
4508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4511 /* Override any GCC internal prototype to avoid an error.
4512 Use char because int might match the return type of a GCC
4513 builtin and then its argument prototype would still apply. */
4517 char zlibVersion ();
4521 return zlibVersion ();
4526 for ac_lib
in '' z
; do
4527 if test -z "$ac_lib"; then
4528 ac_res
="none required"
4531 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4533 if ac_fn_c_try_link
"$LINENO"; then :
4534 ac_cv_search_zlibVersion
=$ac_res
4536 rm -f core conftest.err conftest.
$ac_objext \
4538 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4542 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4545 ac_cv_search_zlibVersion
=no
4548 LIBS
=$ac_func_search_save_LIBS
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4551 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4552 ac_res
=$ac_cv_search_zlibVersion
4553 if test "$ac_res" != no
; then :
4554 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4555 for ac_header
in zlib.h
4557 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4558 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4559 cat >>confdefs.h
<<_ACEOF
4560 #define HAVE_ZLIB_H 1
4569 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4570 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4575 .
${srcdir}/..
/..
/bfd
/configure.
host
4579 USE_MAINTAINER_MODE
=no
4580 # Check whether --enable-maintainer-mode was given.
4581 if test "${enable_maintainer_mode+set}" = set; then :
4582 enableval
=$enable_maintainer_mode; case "${enableval}" in
4583 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4585 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4587 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4588 echo "Setting maintainer mode" 6>&1
4596 # Check whether --enable-sim-bswap was given.
4597 if test "${enable_sim_bswap+set}" = set; then :
4598 enableval
=$enable_sim_bswap; case "${enableval}" in
4599 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4600 no
) sim_bswap
="-DWITH_BSWAP=0";;
4601 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4603 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4604 echo "Setting bswap flags = $sim_bswap" 6>&1
4612 # Check whether --enable-sim-cflags was given.
4613 if test "${enable_sim_cflags+set}" = set; then :
4614 enableval
=$enable_sim_cflags; case "${enableval}" in
4615 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4616 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4618 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4620 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4621 echo "Setting sim cflags = $sim_cflags" 6>&1
4629 # Check whether --enable-sim-debug was given.
4630 if test "${enable_sim_debug+set}" = set; then :
4631 enableval
=$enable_sim_debug; case "${enableval}" in
4632 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4633 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4634 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4636 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4637 echo "Setting sim debug = $sim_debug" 6>&1
4645 # Check whether --enable-sim-stdio was given.
4646 if test "${enable_sim_stdio+set}" = set; then :
4647 enableval
=$enable_sim_stdio; case "${enableval}" in
4648 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4649 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4650 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4652 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4653 echo "Setting stdio flags = $sim_stdio" 6>&1
4661 # Check whether --enable-sim-trace was given.
4662 if test "${enable_sim_trace+set}" = set; then :
4663 enableval
=$enable_sim_trace; case "${enableval}" in
4664 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4665 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4667 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4670 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4671 if test x
"$sim_trace" = x
; then
4672 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4674 sim_trace
="${sim_trace}|TRACE_$x"
4677 sim_trace
="$sim_trace)'" ;;
4679 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4680 echo "Setting sim trace = $sim_trace" 6>&1
4688 # Check whether --enable-sim-profile was given.
4689 if test "${enable_sim_profile+set}" = set; then :
4690 enableval
=$enable_sim_profile; case "${enableval}" in
4691 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4692 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4694 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4697 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4698 if test x
"$sim_profile" = x
; then
4699 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4701 sim_profile
="${sim_profile}|PROFILE_$x"
4704 sim_profile
="$sim_profile)'" ;;
4706 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4707 echo "Setting sim profile = $sim_profile" 6>&1
4710 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4716 # Check whether --with-pkgversion was given.
4717 if test "${with_pkgversion+set}" = set; then :
4718 withval
=$with_pkgversion; case "$withval" in
4719 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4721 *) PKGVERSION
="($withval) " ;;
4732 # Check whether --with-bugurl was given.
4733 if test "${with_bugurl+set}" = set; then :
4734 withval
=$with_bugurl; case "$withval" in
4735 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4738 *) BUGURL
="$withval"
4742 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4752 REPORT_BUGS_TO
="<$BUGURL>"
4753 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4760 cat >>confdefs.h
<<_ACEOF
4761 #define PKGVERSION "$PKGVERSION"
4765 cat >>confdefs.h
<<_ACEOF
4766 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4771 $as_echo_n "checking return type of signal handlers... " >&6; }
4772 if test "${ac_cv_type_signal+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 #include <sys/types.h>
4783 return *(signal (0, 0)) (0) == 1;
4788 if ac_fn_c_try_compile
"$LINENO"; then :
4789 ac_cv_type_signal
=int
4791 ac_cv_type_signal
=void
4793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4796 $as_echo "$ac_cv_type_signal" >&6; }
4798 cat >>confdefs.h
<<_ACEOF
4799 #define RETSIGTYPE $ac_cv_type_signal
4809 sim_link_links
=tconfig.h
4810 if test -f ${srcdir}/tconfig.
in
4812 sim_link_files
=tconfig.
in
4814 sim_link_files
=..
/common
/tconfig.
in
4817 # targ-vals.def points to the libc macro description file.
4819 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4821 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4822 sim_link_links
="${sim_link_links} targ-vals.def"
4826 # For dv-rv and rvdummy.
4827 for ac_header
in sys
/socket.h sys
/select.h limits.h sys
/param.h
4829 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4830 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4831 eval as_val
=\$
$as_ac_Header
4832 if test "x$as_val" = x
""yes; then :
4833 cat >>confdefs.h
<<_ACEOF
4834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4842 wire_alignment
="NONSTRICT_ALIGNMENT"
4843 default_alignment
=""
4845 # Check whether --enable-sim-alignment was given.
4846 if test "${enable_sim_alignment+set}" = set; then :
4847 enableval
=$enable_sim_alignment; case "${enableval}" in
4848 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4849 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4850 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4851 yes) if test x
"$wire_alignment" != x
; then
4852 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4854 if test x
"$default_alignment" != x
; then
4855 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4857 echo "No hard-wired alignment for target $target" 1>&6
4858 sim_alignment
="-DWITH_ALIGNMENT=0"
4861 no
) if test x
"$default_alignment" != x
; then
4862 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4864 if test x
"$wire_alignment" != x
; then
4865 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4867 echo "No default alignment for target $target" 1>&6
4868 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4871 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4873 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4874 echo "Setting alignment flags = $sim_alignment" 6>&1
4877 if test x
"$default_alignment" != x
; then
4878 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4880 if test x
"$wire_alignment" != x
; then
4881 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4889 # Check whether --enable-sim-hostendian was given.
4890 if test "${enable_sim_hostendian+set}" = set; then :
4891 enableval
=$enable_sim_hostendian; case "${enableval}" in
4892 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4893 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4894 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4895 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4897 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4898 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4902 if test "x$cross_compiling" = "xno"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4904 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4905 if test "${ac_cv_c_bigendian+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4908 ac_cv_c_bigendian
=unknown
4909 # See if we're dealing with a universal compiler.
4910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #ifndef __APPLE_CC__
4913 not a universal capable compiler
4918 if ac_fn_c_try_compile
"$LINENO"; then :
4920 # Check for potential -arch flags. It is not universal unless
4921 # there are at least two -arch flags with different values.
4924 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4925 if test -n "$ac_prev"; then
4927 i?
86 | x86_64 | ppc | ppc64
)
4928 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4931 ac_cv_c_bigendian
=universal
4937 elif test "x$ac_word" = "x-arch"; then
4942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4943 if test $ac_cv_c_bigendian = unknown
; then
4944 # See if sys/param.h defines the BYTE_ORDER macro.
4945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 #include <sys/types.h>
4948 #include <sys/param.h>
4953 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4954 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4963 if ac_fn_c_try_compile
"$LINENO"; then :
4964 # It does; now see whether it defined to BIG_ENDIAN or not.
4965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <sys/types.h>
4968 #include <sys/param.h>
4973 #if BYTE_ORDER != BIG_ENDIAN
4981 if ac_fn_c_try_compile
"$LINENO"; then :
4982 ac_cv_c_bigendian
=yes
4984 ac_cv_c_bigendian
=no
4986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4990 if test $ac_cv_c_bigendian = unknown
; then
4991 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4999 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5007 if ac_fn_c_try_compile
"$LINENO"; then :
5008 # It does; now see whether it defined to _BIG_ENDIAN or not.
5009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5024 if ac_fn_c_try_compile
"$LINENO"; then :
5025 ac_cv_c_bigendian
=yes
5027 ac_cv_c_bigendian
=no
5029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5033 if test $ac_cv_c_bigendian = unknown
; then
5034 # Compile a test program.
5035 if test "$cross_compiling" = yes; then :
5036 # Try to guess by grepping values from an object file.
5037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 short int ascii_mm[] =
5040 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5041 short int ascii_ii[] =
5042 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5043 int use_ascii (int i) {
5044 return ascii_mm[i] + ascii_ii[i];
5046 short int ebcdic_ii[] =
5047 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5048 short int ebcdic_mm[] =
5049 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5050 int use_ebcdic (int i) {
5051 return ebcdic_mm[i] + ebcdic_ii[i];
5058 return use_ascii (foo) == use_ebcdic (foo);
5063 if ac_fn_c_try_compile
"$LINENO"; then :
5064 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5065 ac_cv_c_bigendian
=yes
5067 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5068 if test "$ac_cv_c_bigendian" = unknown
; then
5069 ac_cv_c_bigendian
=no
5071 # finding both strings is unlikely to happen, but who knows?
5072 ac_cv_c_bigendian
=unknown
5076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 $ac_includes_default
5085 /* Are we little or big endian? From Harbison&Steele. */
5089 char c[sizeof (long int)];
5092 return u.c[sizeof (long int) - 1] == 1;
5098 if ac_fn_c_try_run
"$LINENO"; then :
5099 ac_cv_c_bigendian
=no
5101 ac_cv_c_bigendian
=yes
5103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5110 $as_echo "$ac_cv_c_bigendian" >&6; }
5111 case $ac_cv_c_bigendian in #(
5113 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5119 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5123 as_fn_error
"unknown endianness
5124 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5127 if test $ac_cv_c_bigendian = yes; then
5128 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5130 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5133 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
5138 default_sim_scache
="16384"
5139 # Check whether --enable-sim-scache was given.
5140 if test "${enable_sim_scache+set}" = set; then :
5141 enableval
=$enable_sim_scache; case "${enableval}" in
5142 yes) sim_scache
="-DWITH_SCACHE=${default_sim_scache}";;
5143 no
) sim_scache
="-DWITH_SCACHE=0" ;;
5144 [0-9]*) sim_scache
="-DWITH_SCACHE=${enableval}";;
5145 *) as_fn_error
"\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
5148 if test x
"$silent" != x
"yes" && test x
"$sim_scache" != x
""; then
5149 echo "Setting scache size = $sim_scache" 6>&1
5152 sim_scache
="-DWITH_SCACHE=${default_sim_scache}"
5157 # Check whether --enable-werror was given.
5158 if test "${enable_werror+set}" = set; then :
5159 enableval
=$enable_werror; case "${enableval}" in
5160 yes | y
) ERROR_ON_WARNING
="yes" ;;
5161 no | n
) ERROR_ON_WARNING
="no" ;;
5162 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5167 # Enable -Werror by default when using gcc
5168 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5169 ERROR_ON_WARNING
=yes
5173 if test "${ERROR_ON_WARNING}" = yes ; then
5174 # NOTE: Disabled in the sim dir due to most sims generating warnings.
5175 # WERROR_CFLAGS="-Werror"
5179 # The entries after -Wno-pointer-sign are disabled warnings which may
5180 # be enabled in the future, which can not currently be used to build
5182 # NOTE: If you change this list, remember to update
5183 # gdb/doc/gdbint.texinfo.
5184 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
5185 -Wformat-nonliteral -Wno-pointer-sign \
5186 -Wno-unused -Wunused-value -Wunused-function \
5187 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
5189 # Enable -Wno-format by default when using gcc on mingw since many
5190 # GCC versions complain about %I64.
5192 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
5195 # Check whether --enable-build-warnings was given.
5196 if test "${enable_build_warnings+set}" = set; then :
5197 enableval
=$enable_build_warnings; case "${enableval}" in
5199 no
) build_warnings
="-w";;
5200 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5201 build_warnings
="${build_warnings} ${t}";;
5202 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5203 build_warnings
="${t} ${build_warnings}";;
5204 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5206 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5207 echo "Setting compiler warning flags = $build_warnings" 6>&1
5210 # Check whether --enable-sim-build-warnings was given.
5211 if test "${enable_sim_build_warnings+set}" = set; then :
5212 enableval
=$enable_sim_build_warnings; case "${enableval}" in
5214 no
) build_warnings
="-w";;
5215 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5216 build_warnings
="${build_warnings} ${t}";;
5217 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5218 build_warnings
="${t} ${build_warnings}";;
5219 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5221 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5222 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5226 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5229 $as_echo_n "checking compiler warning flags... " >&6; }
5230 # Separate out the -Werror flag as some files just cannot be
5231 # compiled with it enabled.
5232 for w
in ${build_warnings}; do
5234 -Werr*) WERROR_CFLAGS
=-Werror ;;
5235 *) # Check that GCC accepts it
5236 saved_CFLAGS
="$CFLAGS"
5238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5249 if ac_fn_c_try_compile
"$LINENO"; then :
5250 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5253 CFLAGS
="$saved_CFLAGS"
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5257 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5261 if test x"no
" = x"yes"; then
5269 hardware="cfi core pal glue
"
5271 hardware="$hardware rv cris
"
5272 sim_hw_cflags="-DWITH_HW=1"
5274 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5275 # Check whether --enable-sim-hardware was given.
5276 if test "${enable_sim_hardware+set}" = set; then :
5277 enableval=$enable_sim_hardware;
5278 case "${enableval}" in
5281 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5282 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5283 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5285 if test "$sim_hw_p" != yes; then
5287 sim_hw_cflags="-DWITH_HW=0"
5290 sim_hw_cflags="-DWITH_HW=1"
5293 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
5294 for i in $hardware ; do
5297 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
5301 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5302 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5306 if test "$sim_hw_p" != yes; then
5308 sim_hw_cflags="-DWITH_HW=0"
5311 if test x"$silent" != x"yes"; then
5312 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5316 case " $hardware " in
5317 *" cfi
"*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for log2
in -lm" >&5
5318 $as_echo_n "checking
for log2
in -lm...
" >&6; }
5319 if test "${ac_cv_lib_m_log2+set}" = set; then :
5320 $as_echo_n "(cached
) " >&6
5322 ac_check_lib_save_LIBS=$LIBS
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5327 /* Override any GCC internal prototype to avoid an error.
5328 Use char because int might match the return type of a GCC
5329 builtin and then its argument prototype would still apply. */
5342 if ac_fn_c_try_link "$LINENO"; then :
5343 ac_cv_lib_m_log2=yes
5347 rm -f core conftest.err conftest.$ac_objext \
5348 conftest$ac_exeext conftest.$ac_ext
5349 LIBS=$ac_check_lib_save_LIBS
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_m_log2" >&5
5352 $as_echo "$ac_cv_lib_m_log2" >&6; }
5353 if test "x
$ac_cv_lib_m_log2" = x""yes; then :
5354 cat >>confdefs.h <<_ACEOF
5365 # The default model shouldn't matter as long as there's a BFD.
5367 default_sim_default_model="crisv32
"
5368 # Check whether --enable-sim-default-model was given.
5369 if test "${enable_sim_default_model+set}" = set; then :
5370 enableval=$enable_sim_default_model; case "${enableval}" in
5371 yes|no) as_fn_error "\"Missing argument to
--enable-sim-default-model\"" "$LINENO" 5;;
5372 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
5374 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5375 echo "Setting default model
= $sim_default_model" 6>&1
5378 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
5383 # Check whether --enable-sim-environment was given.
5384 if test "${enable_sim_environment+set}" = set; then :
5385 enableval=$enable_sim_environment; case "${enableval}" in
5386 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT
";;
5387 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT
";;
5388 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT
";;
5389 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT
";;
5390 *) as_fn_error "\"Unknown value
$enableval passed to
--enable-sim-environment\"" "$LINENO" 5;
5391 sim_environment="";;
5393 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
5394 echo "Setting sim environment
= $sim_environment" 6>&1
5397 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT
"
5401 default_sim_inline=""
5402 # Check whether --enable-sim-inline was given.
5403 if test "${enable_sim_inline+set}" = set; then :
5404 enableval=$enable_sim_inline; sim_inline=""
5405 case "$enableval" in
5406 no) sim_inline="-DDEFAULT_INLINE=0";;
5407 0) sim_inline="-DDEFAULT_INLINE=0";;
5408 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE
";;
5409 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS
";;
5410 *) for x in `echo "$enableval" | sed -e "s
/,/ /g
"`; do
5413 *_INLINE=*) new_flag="-D$x";;
5414 *=*) new_flag=`echo "$x" | sed -e "s
/=/_INLINE
=/" -e "s
/^
/-D/"`;;
5415 *_INLINE) new_flag="-D$x=ALL_C_INLINE
";;
5416 *) new_flag="-D$x""_INLINE
=ALL_C_INLINE
";;
5418 if test x"$sim_inline" = x""; then
5419 sim_inline="$new_flag"
5421 sim_inline="$sim_inline $new_flag"
5425 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
5426 echo "Setting inline flags
= $sim_inline" 6>&1
5430 if test "x
$cross_compiling" = "xno
"; then
5431 if test x"$GCC" != "x
" -a x"${default_sim_inline}" != "x
" ; then
5432 sim_inline="${default_sim_inline}"
5433 if test x"$silent" != x"yes"; then
5434 echo "Setting inline flags
= $sim_inline" 6>&1
5440 sim_inline="-DDEFAULT_INLINE=0"
5447 cgendir='$(srcdir)/../../cgen'
5448 # Check whether --enable-cgen-maint was given.
5449 if test "${enable_cgen_maint+set}" = set; then :
5450 enableval=$enable_cgen_maint; case "${enableval}" in
5451 yes) cgen_maint=yes ;;
5452 no) cgen_maint=no ;;
5454 # argument is cgen install directory (not implemented yet).
5455 # Having a `share' directory might be more appropriate for the .scm,
5457 cgendir=${cgen_maint}/lib/cgen
5462 if test x${cgen_maint} != xno ; then
5473 ac_sources="$sim_link_files"
5474 ac_dests="$sim_link_links"
5475 while test -n "$ac_sources"; do
5476 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5477 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5478 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5480 ac_config_links="$ac_config_links $ac_config_links_1"
5483 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5484 cgen_breaks="break cgen_rtx_error
";
5487 ac_config_files="$ac_config_files Makefile.sim
:Makefile.
in"
5489 ac_config_files="$ac_config_files Make-common.sim
:..
/common
/Make-common.
in"
5491 ac_config_files="$ac_config_files .gdbinit
:..
/common
/gdbinit.
in"
5493 ac_config_commands="$ac_config_commands Makefile
"
5495 ac_config_commands="$ac_config_commands stamp-h
"
5497 cat >confcache <<\_ACEOF
5498 # This file is a shell script that caches the results of configure
5499 # tests run on this system so they can be shared between configure
5500 # scripts and configure runs, see configure's option --config-cache.
5501 # It is not useful on other systems. If it contains results you don't
5502 # want to keep, you may remove or edit it.
5504 # config.status only pays attention to the cache file if you give it
5505 # the --recheck option to rerun configure.
5507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5513 # The following way of writing the cache mishandles newlines in values,
5514 # but we know of no workaround that is simple, portable, and efficient.
5515 # So, we kill variables containing newlines.
5516 # Ultrix sh set writes to stderr and can't be redirected directly,
5517 # and sets the high bit in the cache file unless we assign to the vars.
5519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5520 eval ac_val=\$$ac_var
5524 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
5525 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
5528 _ | IFS | as_nl) ;; #(
5529 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5530 *) { eval $ac_var=; unset $ac_var;} ;;
5536 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5537 *${as_nl}ac_space=\ *)
5538 # `set' does not quote correctly, so add quotes: double-quote
5539 # substitution turns \\\\ into \\, and sed turns \\ into \.
5542 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
5545 # `set' quotes correctly as required by POSIX, so do not add quotes.
5546 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
5555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5560 if test -w "$cache_file"; then
5561 test "x
$cache_file" != "x
/dev
/null
" &&
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
5563 $as_echo "$as_me: updating cache
$cache_file" >&6;}
5564 cat confcache >$cache_file
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
5567 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
5572 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
5573 # Let make expand exec_prefix.
5574 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
5576 DEFS=-DHAVE_CONFIG_H
5580 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
5581 # 1. Remove the extension, and $U if already installed.
5582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5583 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5585 # will be set to the directory where LIBOBJS objects are built.
5586 as_fn_append ac_libobjs " \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
5587 as_fn_append ac_ltlibobjs " \
${LIBOBJDIR}$ac_i"'$U.lo'
5591 LTLIBOBJS=$ac_ltlibobjs
5594 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
5595 as_fn_error "conditional
\"GMAKE
\" was never defined.
5596 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
5600 : ${CONFIG_STATUS=./config.status}
5602 ac_clean_files_save=$ac_clean_files
5603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$CONFIG_STATUS" >&5
5605 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
5607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5609 # Generated by $as_me.
5610 # Run this file to recreate the current configuration.
5611 # Compiler output produced by configure, useful for debugging
5612 # configure, is in config.log if it exists.
5618 SHELL=\${CONFIG_SHELL-$SHELL}
5621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5622 ## -------------------- ##
5623 ## M4sh Initialization. ##
5624 ## -------------------- ##
5626 # Be more Bourne compatible
5627 DUALCASE=1; export DUALCASE # for MKS sh
5628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5632 # is contrary to our usage. Disable this feature.
5633 alias -g '${1+"$@"}'='"$@
"'
5634 setopt NO_GLOB_SUBST
5636 case `(set -o) 2>/dev/null` in #(
5648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5649 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5652 # Prefer a ksh shell builtin over an external printf program on Solaris,
5653 # but without wasting forks for bash or zsh.
5654 if test -z "$BASH_VERSION$ZSH_VERSION" \
5655 && (test "X
`print -r -- $as_echo`" = "X
$as_echo") 2>/dev/null; then
5656 as_echo='print -r --'
5657 as_echo_n='print -rn --'
5658 elif (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
5659 as_echo='printf %s\n'
5660 as_echo_n='printf %s'
5662 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
5663 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5664 as_echo_n='/usr/ucb/echo -n'
5666 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
5667 as_echo_n_body='eval
5671 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
5672 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
5674 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
5676 export as_echo_n_body
5677 as_echo_n='sh -c $as_echo_n_body as_echo'
5680 as_echo='sh -c $as_echo_body as_echo'
5683 # The user is always right.
5684 if test "${PATH_SEPARATOR+set}" != set; then
5686 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5687 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5694 # We need space, tab and new line, in precisely that order. Quoting is
5695 # there to prevent editors from complaining about space-tab.
5696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5697 # splitting by setting IFS to empty value.)
5700 # Find who we are. Look in the path if we contain no directory separator.
5702 *[\\/]* ) as_myself=$0 ;;
5703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5714 # We did not find ourselves, most probably we were run as `sh COMMAND'
5715 # in which case we are not to be found in the path.
5716 if test "x
$as_myself" = x; then
5719 if test ! -f "$as_myself"; then
5720 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
5724 # Unset variables that we do not need and which cause bugs (e.g. in
5725 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "||
exit 1"
5726 # suppresses any "Segmentation fault
" message there. '((' could
5727 # trigger a bug in pdksh 5.2.14.
5728 for as_var in BASH_ENV ENV MAIL MAILPATH
5729 do eval test x\${$as_var+set} = xset \
5730 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5746 # as_fn_error ERROR [LINENO LOG_FD]
5747 # ---------------------------------
5748 # Output "`basename $0`: error
: ERROR
" to stderr. If LINENO and LOG_FD are
5749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5750 # script with status $?, using 1 if that was 0.
5753 as_status=$?; test $as_status -eq 0 && as_status=1
5755 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5756 $as_echo "$as_me:${as_lineno-$LINENO}: error
: $1" >&$3
5758 $as_echo "$as_me: error
: $1" >&2
5759 as_fn_exit $as_status
5763 # as_fn_set_status STATUS
5764 # -----------------------
5765 # Set $? to STATUS, without forking.
5769 } # as_fn_set_status
5773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5783 # Portably unset VAR.
5786 { eval $1=; unset $1;}
5788 as_unset=as_fn_unset
5789 # as_fn_append VAR VALUE
5790 # ----------------------
5791 # Append the text in VALUE to the end of the definition contained in VAR. Take
5792 # advantage of any shell optimizations that allow amortized linear growth over
5793 # repeated appends, instead of the typical quadratic growth present in naive
5795 if (eval "as_var
=1; as_var
+=2; test x\
$as_var = x12
") 2>/dev/null; then :
5796 eval 'as_fn_append ()
5807 # as_fn_arith ARG...
5808 # ------------------
5809 # Perform arithmetic evaluation on the ARGs, and store the result in the
5810 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5811 # must be portable across $(()) and expr.
5812 if (eval "test \$
(( 1 + 1 )) = 2") 2>/dev/null; then :
5813 eval 'as_fn_arith ()
5820 as_val=`expr "$@
" || test $? -eq 1`
5825 if expr a : '\(a\)' >/dev/null 2>&1 &&
5826 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
5832 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
5833 as_basename=basename
5838 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
5844 as_me=`$as_basename -- "$0" ||
5845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5846 X"$0" : 'X\(//\)$' \| \
5847 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5849 sed '/^.*\/\([^/][^/]*\)\/*$/{
5863 # Avoid depending upon Character Ranges.
5864 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5867 as_cr_digits='0123456789'
5868 as_cr_alnum=$as_cr_Letters$as_cr_digits
5870 ECHO_C= ECHO_N= ECHO_T=
5871 case `echo -n x` in #(((((
5873 case `echo 'xy\c'` in
5874 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5876 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5883 rm -f conf$$ conf$$.exe conf$$.file
5884 if test -d conf$$.dir; then
5885 rm -f conf$$.dir/conf$$.file
5888 mkdir conf$$.dir 2>/dev/null
5890 if (echo >conf$$.file) 2>/dev/null; then
5891 if ln -s conf$$.file conf$$ 2>/dev/null; then
5893 # ... but there are two gotchas:
5894 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5895 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5896 # In both cases, we have to default to `cp -p'.
5897 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5899 elif ln conf$$.file conf$$ 2>/dev/null; then
5907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5908 rmdir conf$$.dir 2>/dev/null
5913 # Create "$as_dir" as a directory, including parents if necessary.
5918 -*) as_dir=./$as_dir;;
5920 test -d "$as_dir" || eval $as_mkdir_p || {
5924 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s
/'/'\\\\\\\\''/g
"`;; #'(
5925 *) as_qdir=$as_dir;;
5927 as_dirs="'$as_qdir' $as_dirs"
5928 as_dir=`$as_dirname -- "$as_dir" ||
5929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5930 X"$as_dir" : 'X\(//\)[^/]' \| \
5931 X"$as_dir" : 'X\(//\)$' \| \
5932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5933 $as_echo X"$as_dir" |
5934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5951 test -d "$as_dir" && break
5953 test -z "$as_dirs" || eval "mkdir
$as_dirs"
5954 } || test -d "$as_dir" || as_fn_error "cannot create directory
$as_dir"
5958 if mkdir -p . 2>/dev/null; then
5959 as_mkdir_p='mkdir -p "$as_dir"'
5961 test -d ./-p && rmdir ./-p
5965 if test -x / >/dev/null 2>&1; then
5968 if ls -dL / >/dev/null 2>&1; then
5975 if test -d "$1"; then
5981 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5982 ???[sx]*):;;*)false;;esac;fi
5986 as_executable_p=$as_test_x
5988 # Sed expression to map a string onto a valid CPP name.
5989 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5991 # Sed expression to map a string onto a valid variable name.
5992 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5996 ## ----------------------------------- ##
5997 ## Main body of $CONFIG_STATUS script. ##
5998 ## ----------------------------------- ##
6000 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6003 # Save the log message, to keep $0 and so on meaningful, and to
6004 # report actual input values of CONFIG_FILES etc. instead of their
6005 # values after options handling.
6007 This
file was extended by
$as_me, which was
6008 generated by GNU Autoconf
2.64. Invocation
command line was
6010 CONFIG_FILES
= $CONFIG_FILES
6011 CONFIG_HEADERS
= $CONFIG_HEADERS
6012 CONFIG_LINKS
= $CONFIG_LINKS
6013 CONFIG_COMMANDS
= $CONFIG_COMMANDS
6016 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
6021 case $ac_config_files in *"
6022 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6025 case $ac_config_headers in *"
6026 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6031 # Files that config.status was made for.
6032 config_files="$ac_config_files"
6033 config_headers="$ac_config_headers"
6034 config_links="$ac_config_links"
6035 config_commands="$ac_config_commands"
6039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6041 \
`$as_me' instantiates files and other configuration actions
6042 from templates according to the current configuration. Unless the files
6043 and actions are specified as TAGs, all are instantiated by default.
6045 Usage: $0 [OPTION]... [TAG]...
6047 -h, --help print this help, then exit
6048 -V, --version print version number and configuration settings, then exit
6049 -q, --quiet, --silent
6050 do not print progress messages
6051 -d, --debug don't remove temporary files
6052 --recheck update $as_me by reconfiguring in the same conditions
6053 --file=FILE[:TEMPLATE]
6054 instantiate the configuration file FILE
6055 --header=FILE[:TEMPLATE]
6056 instantiate the configuration header FILE
6058 Configuration files:
6061 Configuration headers:
6064 Configuration links:
6067 Configuration commands:
6070 Report bugs to the package provider."
6073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6076 configured by $0, generated by GNU Autoconf 2.64,
6077 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6079 Copyright (C) 2009 Free Software Foundation, Inc.
6080 This config.status script is free software; the Free Software Foundation
6081 gives unlimited permission to copy, distribute and modify it."
6086 test -n "\$AWK" || AWK=awk
6089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6090 # The default lists apply if the user does not specify any file.
6096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6108 # Handling of the options.
6109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6112 $as_echo "$ac_cs_version"; exit ;;
6113 --debug | --debu | --deb | --de | --d | -d )
6115 --file | --fil | --fi | --f )
6118 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
6120 as_fn_append CONFIG_FILES " '$ac_optarg'"
6121 ac_need_defaults=false;;
6122 --header | --heade | --head | --hea )
6125 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
6127 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6128 ac_need_defaults=false;;
6130 # Conflict between --help and --header
6131 as_fn_error "ambiguous option: \`$1'
6132 Try \`$0 --help' for more information.
";;
6133 --help | --hel | -h )
6134 $as_echo "$ac_cs_usage"; exit ;;
6135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6136 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6140 -*) as_fn_error "unrecognized option
: \
`$1'
6141 Try \`$0 --help' for more information." ;;
6143 *) as_fn_append ac_config_targets " $1"
6144 ac_need_defaults=false ;;
6150 ac_configure_extra_args=
6152 if $ac_cs_silent; then
6154 ac_configure_extra_args="$ac_configure_extra_args --silent"
6158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6159 if \$ac_cs_recheck; then
6160 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6163 CONFIG_SHELL='$SHELL'
6169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6173 sed 'h
;s
/.
/-/g
;s
/^...
/## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6174 ## Running $as_me. ##
6180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6184 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6190 # Handling of arguments.
6191 for ac_config_target
in $ac_config_targets
6193 case $ac_config_target in
6194 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6195 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
6196 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6197 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6198 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6199 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6200 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6201 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6203 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6208 # If the user did not use the arguments to specify the items to instantiate,
6209 # then the envvar interface is used. Set only those that are not.
6210 # We use the long form for the default assignment because of an extremely
6211 # bizarre bug on SunOS 4.1.3.
6212 if $ac_need_defaults; then
6213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6215 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6219 # Have a temporary directory for convenience. Make it in the build tree
6220 # simply because there is no reason against having it here, and in addition,
6221 # creating and moving files from /tmp can sometimes cause problems.
6222 # Hook for its removal unless debugging.
6223 # Note that there is a small window in which the directory will not be cleaned:
6224 # after its creation but before its name has been assigned to `$tmp'.
6228 trap 'exit_status=$?
6229 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6231 trap 'as_fn_exit 1' 1 2 13 15
6233 # Create a (secure) tmp directory for tmp files.
6236 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6237 test -n "$tmp" && test -d "$tmp"
6240 tmp
=.
/conf$$
-$RANDOM
6241 (umask 077 && mkdir
"$tmp")
6242 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6244 # Set up the scripts for CONFIG_FILES section.
6245 # No need to generate them if there are no CONFIG_FILES.
6246 # This happens for instance with `./config.status config.h'.
6247 if test -n "$CONFIG_FILES"; then
6250 ac_cr
=`echo X | tr X '\015'`
6251 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6252 # But we know of no other shell where ac_cr would be empty at this
6253 # point, so we can use a bashism as a fallback.
6254 if test "x$ac_cr" = x
; then
6255 eval ac_cr
=\$
\'\\r
\'
6257 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6258 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6264 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6269 echo "cat >conf$$subs.awk <<_ACEOF" &&
6270 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6273 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6274 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6276 for ac_last_try in false false false false false :; do
6277 . ./conf$$subs.sh ||
6278 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6280 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6281 if test $ac_delim_n = $ac_delim_num; then
6283 elif $ac_last_try; then
6284 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6286 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6292 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6296 s/^/S["/; s
/!.
*/"]=/
6306 s/\(.\{148\}\).*/\1/
6308 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6313 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6320 s/\(.\{148\}\).*/\1/
6322 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6326 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6331 ' <conf$$subs.awk | sed '
6336 ' >>$CONFIG_STATUS || ac_write_fail=1
6337 rm -f conf$$subs.awk
6338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6340 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6341 for (key in S) S_is_set[key] = 1
6347 nfields = split(line, field, "@
")
6349 len = length(field[1])
6350 for (i = 2; i < nfields; i++) {
6352 keylen = length(key)
6353 if (S_is_set[key]) {
6355 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6356 len += length(value) + length(field[++i])
6367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6368 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6369 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6372 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6373 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6376 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6377 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6378 # trailing colons and then remove the whole line if VPATH becomes empty
6379 # (actually we leave an empty line to preserve line numbers).
6380 if test "x
$srcdir" = x.; then
6381 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6385 s/^\([^=]*=[ ]*\):*/\1/
6391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6392 fi # test -n "$CONFIG_FILES"
6394 # Set up the scripts for CONFIG_HEADERS section.
6395 # No need to generate them if there are no CONFIG_HEADERS.
6396 # This happens for instance with `./config.status Makefile'.
6397 if test -n "$CONFIG_HEADERS"; then
6398 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6402 # Transform confdefs.h into an awk script `defines.awk', embedded as
6403 # here-document in config.status, that substitutes the proper values into
6404 # config.h.in to produce config.h.
6406 # Create a delimiter string that does not exist in confdefs.h, to ease
6407 # handling of long lines.
6409 for ac_last_try in false false :; do
6410 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6411 if test -z "$ac_t"; then
6413 elif $ac_last_try; then
6414 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6416 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6420 # For the awk script, D is an array of macro values keyed by name,
6421 # likewise P contains macro parameters if any. Preserve backslash
6422 # newline sequences.
6424 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6426 s/.\{148\}/&'"$ac_delim"'/g
6429 s/^[ ]*#[ ]*define[ ][ ]*/ /
6436 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6438 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6442 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6443 D["\
1"]=" \
3\\\\\\n
"\\/p
6445 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6450 s/.\{148\}/&'"$ac_delim"'/g
6455 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6458 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6460 ' <confdefs.h | sed '
6461 s/'"$ac_delim"'/"\\\
6462 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6465 for (key in D) D_is_set[key] = 1
6468 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6470 split(line, arg, " ")
6471 if (arg[1] == "#") {
6475 defundef
= substr
(arg
[1], 2)
6478 split(mac1
, mac2
, "(") #)
6480 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6481 if (D_is_set
[macro
]) {
6482 # Preserve the white space surrounding the "#".
6483 print prefix
"define", macro P
[macro
] D
[macro
]
6486 # Replace #undef with comments. This is necessary, for example,
6487 # in the case of _POSIX_SOURCE, which is predefined and required
6488 # on some systems where configure will not decide to define it.
6489 if (defundef
== "undef") {
6490 print
"/*", prefix defundef
, macro
, "*/"
6498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6499 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6500 fi # test -n "$CONFIG_HEADERS"
6503 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
6508 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6510 case $ac_mode$ac_tag in
6512 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6513 :[FH
]-) ac_tag
=-:-;;
6514 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6531 -) ac_f
="$tmp/stdin";;
6532 *) # Look for the file first in the build tree, then in the source tree
6533 # (if the path is not absolute). The absolute path cannot be DOS-style,
6534 # because $ac_f cannot contain `:'.
6538 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6540 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6542 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6543 as_fn_append ac_file_inputs
" '$ac_f'"
6546 # Let's still pretend it is `configure' which instantiates (i.e., don't
6547 # use $as_me), people would be surprised to read:
6548 # /* config.h. Generated by config.status. */
6549 configure_input
='Generated from '`
6550 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6552 if test x
"$ac_file" != x-
; then
6553 configure_input
="$ac_file. $configure_input"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6555 $as_echo "$as_me: creating $ac_file" >&6;}
6557 # Neutralize special characters interpreted by sed in replacement strings.
6558 case $configure_input in #(
6559 *\
&* |
*\|
* |
*\\* )
6560 ac_sed_conf_input
=`$as_echo "$configure_input" |
6561 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6562 *) ac_sed_conf_input
=$configure_input;;
6566 *:-:* |
*:-) cat >"$tmp/stdin" \
6567 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
6572 ac_dir
=`$as_dirname -- "$ac_file" ||
6573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6574 X"$ac_file" : 'X\(//\)[^/]' \| \
6575 X"$ac_file" : 'X\(//\)$' \| \
6576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6577 $as_echo X"$ac_file" |
6578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6595 as_dir
="$ac_dir"; as_fn_mkdir_p
6599 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6601 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6602 # A ".." for each directory in $ac_dir_suffix.
6603 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6604 case $ac_top_builddir_sub in
6605 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6606 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6609 ac_abs_top_builddir
=$ac_pwd
6610 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6611 # for backward compatibility:
6612 ac_top_builddir
=$ac_top_build_prefix
6615 .
) # We are building in place.
6617 ac_top_srcdir
=$ac_top_builddir_sub
6618 ac_abs_top_srcdir
=$ac_pwd ;;
6619 [\\/]* | ?
:[\\/]* ) # Absolute name.
6620 ac_srcdir
=$srcdir$ac_dir_suffix;
6621 ac_top_srcdir
=$srcdir
6622 ac_abs_top_srcdir
=$srcdir ;;
6624 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6625 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6626 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6628 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6638 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6639 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6644 # If the template does not know about datarootdir, expand it.
6645 # FIXME: This hack should be removed a few years after 2.60.
6646 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6657 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6658 *datarootdir
*) ac_datarootdir_seen
=yes;;
6659 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6661 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6664 ac_datarootdir_hack='
6665 s&@datadir@&$datadir&g
6666 s&@docdir@&$docdir&g
6667 s&@infodir@&$infodir&g
6668 s&@localedir@&$localedir&g
6669 s&@mandir@&$mandir&g
6670 s&\\\${datarootdir}&$datarootdir&g' ;;
6674 # Neutralize VPATH when `$srcdir' = `.'.
6675 # Shell code in configure.ac might set extrasub.
6676 # FIXME: do we really want to maintain this feature?
6677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6678 ac_sed_extra="$ac_vpsub
6681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6683 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6684 s|@configure_input@|
$ac_sed_conf_input|
;t t
6685 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6686 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6687 s
&@srcdir@
&$ac_srcdir&;t t
6688 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6689 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6690 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6691 s
&@builddir@
&$ac_builddir&;t t
6692 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6693 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6694 s
&@INSTALL@
&$ac_INSTALL&;t t
6695 $ac_datarootdir_hack
6697 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
6698 || as_fn_error "could not create
$ac_file" "$LINENO" 5
6700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6701 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
6702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6704 which seems to be undefined. Please make sure it is defined." >&5
6705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6706 which seems to be undefined. Please make sure it is defined." >&2;}
6710 -) cat "$tmp/out" && rm -f "$tmp/out";;
6711 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6713 || as_fn_error "could not create $ac_file" "$LINENO" 5
6719 if test x"$ac_file" != x-; then
6721 $as_echo "/* $configure_input */" \
6722 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6723 } >"$tmp/config.h" \
6724 || as_fn_error "could not create $ac_file" "$LINENO" 5
6725 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6730 mv "$tmp/config.h" "$ac_file" \
6731 || as_fn_error "could not create $ac_file" "$LINENO" 5
6734 $as_echo "/* $configure_input */" \
6735 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6736 || as_fn_error "could not create -" "$LINENO" 5
6744 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
6747 # Prefer the file from the source tree if names are identical.
6748 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
6749 ac_source=$srcdir/$ac_source
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
6753 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
6755 if test ! -r "$ac_source"; then
6756 as_fn_error "$ac_source: file not found" "$LINENO" 5
6760 # Try a relative symlink, then a hard link, then a copy.
6762 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
6763 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
6765 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
6766 ln "$ac_source" "$ac_file" 2>/dev/null ||
6767 cp -p "$ac_source" "$ac_file" ||
6768 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
6771 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6772 $as_echo "$as_me: executing $ac_file commands" >&6;}
6777 case $ac_file$ac_mode in
6778 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6779 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6780 rm -f Makesim1.tmp Makesim2.tmp Makefile
6781 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6782 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
6783 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6784 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6785 <Makefile.sim
>Makefile
6786 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6788 "stamp-h":C
) echo > stamp-h
;;
6796 ac_clean_files
=$ac_clean_files_save
6798 test $ac_write_fail = 0 ||
6799 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
6802 # configure is writing to config.log, and then calls config.status.
6803 # config.status does its own redirection, appending to config.log.
6804 # Unfortunately, on DOS this fails, as config.log is still kept open
6805 # by configure, so config.status won't be able to write to it; its
6806 # output is simply discarded. So we exec the FD to /dev/null,
6807 # effectively closing config.log, so it can be properly (re)opened and
6808 # appended to by config.status. When coming back to configure, we
6809 # need to make the FD available again.
6810 if test "$no_create" != yes; then
6812 ac_config_status_args
=
6813 test "$silent" = yes &&
6814 ac_config_status_args
="$ac_config_status_args --quiet"
6816 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6818 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6819 # would make configure fail if this is the last instruction.
6820 $ac_cs_success || as_fn_exit $?
6822 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6824 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}