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
699 program_transform_name
712 enable_option_checking
714 enable_maintainer_mode
725 enable_sim_hostendian
726 enable_sim_default_model
727 enable_sim_environment
729 enable_build_warnings
730 enable_sim_build_warnings
733 ac_precious_vars
='build_alias
749 # Initialize some variables set by options.
751 ac_init_version
=false
752 ac_unrecognized_opts
=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
855 as_fn_error
"invalid feature name: $ac_useropt"
856 ac_useropt_orig
=$ac_useropt
857 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863 ac_unrecognized_sep
=', ';;
865 eval enable_
$ac_useropt=no
;;
867 -docdir |
--docdir |
--docdi |
--doc |
--do)
869 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
872 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
874 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
877 -enable-* |
--enable-*)
878 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
881 as_fn_error
"invalid feature name: $ac_useropt"
882 ac_useropt_orig
=$ac_useropt
883 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
888 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889 ac_unrecognized_sep
=', ';;
891 eval enable_
$ac_useropt=\
$ac_optarg ;;
893 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
894 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
895 |
--exec |
--exe |
--ex)
896 ac_prev
=exec_prefix
;;
897 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
898 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
899 |
--exec=* |
--exe=* |
--ex=*)
900 exec_prefix
=$ac_optarg ;;
902 -gas |
--gas |
--ga |
--g)
903 # Obsolete; use --with-gas.
906 -help |
--help |
--hel |
--he |
-h)
908 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
909 ac_init_help
=recursive
;;
910 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
911 ac_init_help
=short
;;
913 -host |
--host |
--hos |
--ho)
914 ac_prev
=host_alias
;;
915 -host=* |
--host=* |
--hos=* |
--ho=*)
916 host_alias
=$ac_optarg ;;
918 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
920 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
922 htmldir
=$ac_optarg ;;
924 -includedir |
--includedir |
--includedi |
--included |
--include \
925 |
--includ |
--inclu |
--incl |
--inc)
926 ac_prev
=includedir
;;
927 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
928 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
929 includedir
=$ac_optarg ;;
931 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
933 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
934 infodir
=$ac_optarg ;;
936 -libdir |
--libdir |
--libdi |
--libd)
938 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
941 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
942 |
--libexe |
--libex |
--libe)
943 ac_prev
=libexecdir
;;
944 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
945 |
--libexe=* |
--libex=* |
--libe=*)
946 libexecdir
=$ac_optarg ;;
948 -localedir |
--localedir |
--localedi |
--localed |
--locale)
950 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
951 localedir
=$ac_optarg ;;
953 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
954 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
955 ac_prev
=localstatedir
;;
956 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
957 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
958 localstatedir
=$ac_optarg ;;
960 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
962 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
966 # Obsolete; use --without-fp.
969 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
970 |
--no-cr |
--no-c |
-n)
973 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
974 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
977 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
978 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
979 |
--oldin |
--oldi |
--old |
--ol |
--o)
980 ac_prev
=oldincludedir
;;
981 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
982 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
983 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
984 oldincludedir
=$ac_optarg ;;
986 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
988 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
991 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
992 |
--program-pre |
--program-pr |
--program-p)
993 ac_prev
=program_prefix
;;
994 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
995 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
996 program_prefix
=$ac_optarg ;;
998 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
999 |
--program-suf |
--program-su |
--program-s)
1000 ac_prev
=program_suffix
;;
1001 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1002 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1003 program_suffix
=$ac_optarg ;;
1005 -program-transform-name |
--program-transform-name \
1006 |
--program-transform-nam |
--program-transform-na \
1007 |
--program-transform-n |
--program-transform- \
1008 |
--program-transform |
--program-transfor \
1009 |
--program-transfo |
--program-transf \
1010 |
--program-trans |
--program-tran \
1011 |
--progr-tra |
--program-tr |
--program-t)
1012 ac_prev
=program_transform_name
;;
1013 -program-transform-name=* |
--program-transform-name=* \
1014 |
--program-transform-nam=* |
--program-transform-na=* \
1015 |
--program-transform-n=* |
--program-transform-=* \
1016 |
--program-transform=* |
--program-transfor=* \
1017 |
--program-transfo=* |
--program-transf=* \
1018 |
--program-trans=* |
--program-tran=* \
1019 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1020 program_transform_name
=$ac_optarg ;;
1022 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1024 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1025 pdfdir
=$ac_optarg ;;
1027 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1029 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1032 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1033 |
-silent |
--silent |
--silen |
--sile |
--sil)
1036 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1038 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1040 sbindir
=$ac_optarg ;;
1042 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1043 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1044 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1046 ac_prev
=sharedstatedir
;;
1047 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1048 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1049 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1051 sharedstatedir
=$ac_optarg ;;
1053 -site |
--site |
--sit)
1055 -site=* |
--site=* |
--sit=*)
1058 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1060 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1061 srcdir
=$ac_optarg ;;
1063 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1064 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1065 ac_prev
=sysconfdir
;;
1066 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1067 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1068 sysconfdir
=$ac_optarg ;;
1070 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1071 ac_prev
=target_alias
;;
1072 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1073 target_alias
=$ac_optarg ;;
1075 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1078 -version |
--version |
--versio |
--versi |
--vers |
-V)
1079 ac_init_version
=: ;;
1082 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1085 as_fn_error
"invalid package name: $ac_useropt"
1086 ac_useropt_orig
=$ac_useropt
1087 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1092 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep
=', ';;
1095 eval with_
$ac_useropt=\
$ac_optarg ;;
1097 -without-* |
--without-*)
1098 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1101 as_fn_error
"invalid package name: $ac_useropt"
1102 ac_useropt_orig
=$ac_useropt
1103 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109 ac_unrecognized_sep
=', ';;
1111 eval with_
$ac_useropt=no
;;
1114 # Obsolete; use --with-x.
1117 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1118 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1119 ac_prev
=x_includes
;;
1120 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1121 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1122 x_includes
=$ac_optarg ;;
1124 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1125 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1126 ac_prev
=x_libraries
;;
1127 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1128 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1129 x_libraries
=$ac_optarg ;;
1131 -*) as_fn_error
"unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information."
1136 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 case $ac_envvar in #(
1139 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1140 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1142 eval $ac_envvar=\
$ac_optarg
1143 export $ac_envvar ;;
1146 # FIXME: should be removed in autoconf 3.0.
1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156 if test -n "$ac_prev"; then
1157 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1158 as_fn_error
"missing argument to $ac_option"
1161 if test -n "$ac_unrecognized_opts"; then
1162 case $enable_option_checking in
1164 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 # Check all directory arguments for consistency.
1170 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val
=\$
$ac_var
1176 # Remove trailing slashes.
1179 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\
$ac_val;;
1182 # Be sure to have absolute directory names.
1184 [\\/$
]* | ?
:[\\/]* ) continue;;
1185 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1187 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1195 target
=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x
; then
1199 if test "x$build_alias" = x
; then
1200 cross_compiling
=maybe
1201 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1211 test "$silent" = yes && exec 6>/dev
/null
1214 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di
=`ls -di .` &&
1216 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error
"working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error
"pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted
=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir
=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted
=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1258 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1260 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1272 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 for ac_var
in $ac_precious_vars; do
1275 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1277 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1288 \`configure' configures this package to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1351 --build=BUILD configure
for building on BUILD
[guessed
]
1352 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1353 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1357 if test -n "$ac_init_help"; then
1362 --disable-option-checking ignore unrecognized
--enable/--with options
1363 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1364 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1365 --enable-maintainer-mode Enable developer functionality.
1366 --enable-sim-bswap Use Host specific BSWAP instruction.
1367 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1368 --enable-sim-debug=opts Enable debugging flags
1369 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1370 --enable-sim-trace=opts Enable tracing flags
1371 --enable-sim-profile=opts Enable profiling flags
1372 --enable-sim-endian=endian Specify target byte endian orientation.
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-default-model=model Specify default model to simulate.
1376 --enable-sim-environment=environment Specify mixed
, user
, virtual or operating environment.
1377 --enable-sim-inline=inlines Specify
which functions should be inlined.
1378 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
1379 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
1380 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1383 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1384 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1385 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1386 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1387 --with-bugurl=URL Direct users to URL to report a bug
1389 Some influential environment variables
:
1390 CC C compiler
command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1393 nonstandard directory
<lib dir
>
1394 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1395 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1396 you have headers
in a nonstandard directory
<include dir
>
1398 PKG_CONFIG path to pkg-config utility
1400 directories to add to pkg-config
's search path
1402 path overriding pkg-config's built-in search path
1403 SDL_CFLAGS C compiler flags
for SDL
, overriding pkg-config
1404 SDL_LIBS linker flags
for SDL
, overriding pkg-config
1406 Use these variables to override the choices made by
`configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1409 Report bugs to the package provider.
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" ||
1418 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1439 .) # We are building in place.
1441 ac_top_srcdir=$ac_top_builddir_sub
1442 ac_abs_top_srcdir=$ac_pwd ;;
1443 [\\/]* | ?:[\\/]* ) # Absolute name.
1444 ac_srcdir=$srcdir$ac_dir_suffix;
1445 ac_top_srcdir=$srcdir
1446 ac_abs_top_srcdir=$srcdir ;;
1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465 cd "$ac_pwd" || { ac_status=$?; break; }
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1473 generated by GNU Autoconf 2.64
1475 Copyright (C) 2009 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile ()
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 rm -f conftest.$ac_objext
1493 if { { ac_try="$ac_compile"
1495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1496 *) ac_try_echo
=$ac_try;;
1498 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1502 if test -s conftest.err
; then
1503 grep -v '^ *+' conftest.err
>conftest.er1
1504 cat conftest.er1
>&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.
$ac_objext; then :
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.
$ac_ext >&5
1519 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1522 } # ac_fn_c_try_compile
1524 # ac_fn_c_try_cpp LINENO
1525 # ----------------------
1526 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1529 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1530 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } >/dev/null && {
1546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1562 # -------------------------------------------------------
1563 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1564 # the include files in INCLUDES and setting the cache variable VAR
1566 ac_fn_c_check_header_mongrel ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 $as_echo_n "(cached) " >&6
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
1579 # Is the header compilable?
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1581 $as_echo_n "checking $2 usability... " >&6; }
1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588 ac_header_compiler=yes
1590 ac_header_compiler=no
1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1594 $as_echo "$ac_header_compiler" >&6; }
1596 # Is the header present?
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1598 $as_echo_n "checking $2 presence... " >&6; }
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1603 if ac_fn_c_try_cpp "$LINENO"; then :
1604 ac_header_preproc=yes
1606 ac_header_preproc=no
1608 rm -f conftest.err conftest.$ac_ext
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1610 $as_echo "$ac_header_preproc" >&6; }
1612 # So? What about this header?
1613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1616 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1618 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1622 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1624 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1626 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1628 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1636 $as_echo_n "(cached) " >&6
1638 eval "$3=\$ac_header_compiler"
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 } # ac_fn_c_check_header_mongrel
1648 # ac_fn_c_try_run LINENO
1649 # ----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1651 # that executables *can* be run.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_link"
1657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1658 *) ac_try_echo
=$ac_try;;
1660 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>&5
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1666 { { case "(($ac_try" in
1667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_try") 2>&5
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; }; }; then :
1678 $as_echo "$as_me: program exited with status $ac_status" >&5
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1682 ac_retval=$ac_status
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700 $as_echo_n "(cached) " >&6
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1707 if ac_fn_c_try_compile "$LINENO"; then :
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 } # ac_fn_c_check_header_compile
1721 # ac_fn_c_try_link LINENO
1722 # -----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded.
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext conftest$ac_exeext
1728 if { { ac_try="$ac_link"
1730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1731 *) ac_try_echo
=$ac_try;;
1733 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>conftest.err
1737 if test -s conftest.err
; then
1738 grep -v '^ *+' conftest.err
>conftest.er1
1739 cat conftest.er1
>&5
1740 mv -f conftest.er1 conftest.err
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest
$ac_exeext && {
1747 test "$cross_compiling" = yes ||
1748 $as_test_x conftest
$ac_exeext
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.
$ac_ext >&5
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1765 } # ac_fn_c_try_link
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func
()
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1790 # include <limits.h>
1792 # include <assert.h>
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1819 if ac_fn_c_try_link
"$LINENO"; then :
1824 rm -f core conftest.err conftest.
$ac_objext \
1825 conftest
$ac_exeext conftest.
$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1832 } # ac_fn_c_check_func
1833 cat >config.log
<<_ACEOF
1834 This file contains any messages produced by compilers while
1835 running configure, to aid debugging if configure makes a mistake.
1837 It was created by $as_me, which was
1838 generated by GNU Autoconf 2.64. Invocation command line was
1850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir
=.
1874 $as_echo "PATH: $as_dir"
1890 # Keep a trace of the command line.
1891 # Strip out --no-create and --no-recursion so they do not pile up.
1892 # Strip out --silent because we don't want to record it for future runs.
1893 # Also quote any args containing shell meta-characters.
1894 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_must_keep_next
=false
1904 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1905 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1906 |
-silent |
--silent |
--silen |
--sile |
--sil)
1909 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1914 as_fn_append ac_configure_args1
" '$ac_arg'"
1915 if test $ac_must_keep_next = true
; then
1916 ac_must_keep_next
=false
# Got value, back to normal.
1919 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1920 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1921 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1922 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1923 case "$ac_configure_args0 " in
1924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927 -* ) ac_must_keep_next
=true
;;
1930 as_fn_append ac_configure_args
" '$ac_arg'"
1935 { ac_configure_args0
=; unset ac_configure_args0
;}
1936 { ac_configure_args1
=; unset ac_configure_args1
;}
1938 # When interrupted or exit'd, cleanup temporary files, and complete
1939 # config.log. We remove comments because anyway the quotes in there
1940 # would cause problems or look ugly.
1941 # WARNING: Use '\'' to represent an apostrophe within the trap.
1942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1943 trap 'exit_status=$?
1944 # Save into config.log some information that might help in debugging.
1949 ## ---------------- ##
1950 ## Cache variables. ##
1951 ## ---------------- ##
1954 # The following way of writing the cache mishandles newlines in values,
1956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957 eval ac_val=\$$ac_var
1961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965 _ | IFS | as_nl) ;; #(
1966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967 *) { eval $ac_var=; unset $ac_var;} ;;
1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973 *${as_nl}ac_space=\ *)
1975 "s/'\''/'\''\\\\'\'''\''/g;
1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1987 ## ----------------- ##
1988 ## Output variables. ##
1989 ## ----------------- ##
1992 for ac_var in $ac_subst_vars
1994 eval ac_val=\$$ac_var
1996 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 $as_echo "$ac_var='\''$ac_val'\''"
2002 if test -n "$ac_subst_files"; then
2004 ## ------------------- ##
2005 ## File substitutions. ##
2006 ## ------------------- ##
2009 for ac_var
in $ac_subst_files
2011 eval ac_val
=\$
$ac_var
2013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 $as_echo "$ac_var='\''$ac_val'\''"
2020 if test -s confdefs.h; then
2030 test "$ac_signal" != 0 &&
2031 $as_echo "$as_me: caught signal $ac_signal"
2032 $as_echo "$as_me: exit $exit_status"
2034 rm -f core *.core core.conftest.* &&
2035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2038 for ac_signal
in 1 2 13 15; do
2039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2044 rm -f -r conftest
* confdefs.h
2046 $as_echo "/* confdefs.h */" > confdefs.h
2048 # Predefined preprocessor variables.
2050 cat >>confdefs.h
<<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2054 cat >>confdefs.h
<<_ACEOF
2055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2058 cat >>confdefs.h
<<_ACEOF
2059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2062 cat >>confdefs.h
<<_ACEOF
2063 #define PACKAGE_STRING "$PACKAGE_STRING"
2066 cat >>confdefs.h
<<_ACEOF
2067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2070 cat >>confdefs.h
<<_ACEOF
2071 #define PACKAGE_URL "$PACKAGE_URL"
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer an explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080 ac_site_file1
=$CONFIG_SITE
2081 elif test "x$prefix" != xNONE
; then
2082 ac_site_file1
=$prefix/share
/config.site
2083 ac_site_file2
=$prefix/etc
/config.site
2085 ac_site_file1
=$ac_default_prefix/share
/config.site
2086 ac_site_file2
=$ac_default_prefix/etc
/config.site
2088 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2090 test "x$ac_site_file" = xNONE
&& continue
2091 if test -r "$ac_site_file"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2094 sed 's/^/| /' "$ac_site_file" >&5
2099 if test -r "$cache_file"; then
2100 # Some versions of bash will fail to source /dev/null (special
2101 # files actually), so we avoid doing that.
2102 if test -f "$cache_file"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2104 $as_echo "$as_me: loading cache $cache_file" >&6;}
2106 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2107 *) .
"./$cache_file";;
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2112 $as_echo "$as_me: creating cache $cache_file" >&6;}
2116 # Check that the precious variables saved in the cache have kept the same
2118 ac_cache_corrupted
=false
2119 for ac_var
in $ac_precious_vars; do
2120 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2121 eval ac_new_set
=\
$ac_env_${ac_var}_set
2122 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2123 eval ac_new_val
=\
$ac_env_${ac_var}_value
2124 case $ac_old_set,$ac_new_set in
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2128 ac_cache_corrupted
=: ;;
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2132 ac_cache_corrupted
=: ;;
2135 if test "x$ac_old_val" != "x$ac_new_val"; then
2136 # differences in whitespace do not lead to failure.
2137 ac_old_val_w
=`echo x $ac_old_val`
2138 ac_new_val_w
=`echo x $ac_new_val`
2139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142 ac_cache_corrupted
=:
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2146 eval $ac_var=\
$ac_old_val
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2154 # Pass precious variables to config.status.
2155 if test "$ac_new_set" = set; then
2157 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2158 *) ac_arg
=$ac_var=$ac_new_val ;;
2160 case " $ac_configure_args " in
2161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2162 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2166 if $ac_cache_corrupted; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2171 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2173 ## -------------------- ##
2174 ## Main body of script. ##
2175 ## -------------------- ##
2178 ac_cpp
='$CPP $CPPFLAGS'
2179 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2184 ac_config_headers
="$ac_config_headers config.h:config.in"
2187 # This file contains common code used by all simulators.
2189 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2190 # directory. It is intended to be invoked before any target specific stuff.
2191 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2192 # It is intended to be invoked last.
2194 # The simulator's configure.in should look like:
2196 # dnl Process this file with autoconf to produce a configure script.
2197 # sinclude(../common/aclocal.m4)
2199 # AC_INIT(Makefile.in)
2203 # ... target specific stuff ...
2207 # Include global overrides and fixes for Autoconf.
2231 # _AC_CHECK_DECL_BODY
2232 # -------------------
2233 # Shell function body for AC_CHECK_DECL.
2234 # _AC_CHECK_DECL_BODY
2236 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2238 # -------------------------------------------------------------
2239 # Helper to AC_CHECK_DECLS, which generates the check for a single
2240 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2241 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2300 sim_inline
="-DDEFAULT_INLINE=0"
2337 # intl sister-directory configuration rules.
2340 # The idea behind this macro is that there's no need to repeat all the
2341 # autoconf probes done by the intl directory - it's already done them
2342 # for us. In fact, there's no need even to look at the cache for the
2343 # answers. All we need to do is nab a few pieces of information.
2344 # The intl directory is set up to make this easy, by generating a
2345 # small file which can be sourced as a shell script; then we produce
2346 # the necessary substitutions and definitions for this directory.
2350 # Autoconf M4 include file defining utility macros for complex Canadian
2362 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2364 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2367 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2368 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2372 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2373 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2377 # Backported from Autoconf 2.5x; can go away when and if
2378 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2383 # ACX_HAVE_GCC_FOR_TARGET
2384 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2387 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2388 # Searching for installed target binutils. We need to take extra care,
2389 # else we may find the wrong assembler, linker, etc., and lose.
2391 # First try --with-build-time-tools, if specified.
2393 # For build != host, we ask the installed GCC for the name of the tool it
2394 # uses, and accept it if it is an absolute path. This is because the
2395 # only good choice for a compiler is the same GCC version that is being
2396 # installed (or we couldn't make target libraries), and we assume that
2397 # on the host system we'll have not only the same GCC version, but also
2398 # the same binutils version.
2400 # For build == host, search the same directories that the installed
2401 # compiler will search. We used to do this for the assembler, linker,
2402 # and nm only; for simplicity of configuration, however, we extend this
2403 # criterion to tools (such as ar and ranlib) that are never invoked by
2404 # the compiler, to avoid mismatches.
2406 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2407 # if build == target. This makes the most sense only when bootstrapping,
2408 # but we also do so when build != host. In this case, we hope that the
2409 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2411 # If we do not find a suitable binary, then try the user's path.
2415 # AC_PROG_CPP_WERROR
2416 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2417 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2418 # For now, using this also overrides header checks to use only the
2419 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2420 # bit harder from here).
2421 # Eventually autoconf will default to checking headers with the compiler
2422 # instead, and we'll have to do this differently.
2424 # AC_PROG_CPP_WERROR
2427 # We require the gnatbind program, and a compiler driver that
2428 # understands Ada. We use the user's CC setting, already found,
2429 # and possibly add $1 to the command-line parameters.
2431 # Sets the shell variable have_gnat to yes or no as appropriate, and
2432 # substitutes GNATBIND and GNATMAKE.
2458 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
2459 # it by inlining the macro's contents.
2460 # This file contains common code used by all simulators.
2462 # common.m4 invokes AC macros used by all simulators and by the common
2463 # directory. It is intended to be included before any target specific
2464 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
2465 # the Makefile. It is intended to be invoked last.
2467 # The simulator's configure.in should look like:
2469 # dnl Process this file with autoconf to produce a configure script.
2471 # AC_INIT(Makefile.in)
2472 # AC_CONFIG_HEADER(config.h:config.in)
2474 # sinclude(../common/aclocal.m4)
2475 # sinclude(../common/common.m4)
2477 # ... target specific stuff ...
2480 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2481 for ac_t
in install-sh
install.sh shtool
; do
2482 if test -f "$ac_dir/$ac_t"; then
2484 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2489 if test -z "$ac_aux_dir"; then
2490 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2493 # These three variables are undocumented and unsupported,
2494 # and are intended to be withdrawn in a future Autoconf release.
2495 # They can cause serious problems if a builder's source tree is in a directory
2496 # whose full name contains unusual characters.
2497 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2498 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2499 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2502 # Make sure we can run config.sub.
2503 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2504 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2507 $as_echo_n "checking build system type... " >&6; }
2508 if test "${ac_cv_build+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
2511 ac_build_alias
=$build_alias
2512 test "x$ac_build_alias" = x
&&
2513 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2514 test "x$ac_build_alias" = x
&&
2515 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2516 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2517 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2521 $as_echo "$ac_cv_build" >&6; }
2522 case $ac_cv_build in
2524 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2527 ac_save_IFS
=$IFS; IFS
='-'
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2537 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2541 $as_echo_n "checking host system type... " >&6; }
2542 if test "${ac_cv_host+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2545 if test "x$host_alias" = x
; then
2546 ac_cv_host
=$ac_cv_build
2548 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2549 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2554 $as_echo "$ac_cv_host" >&6; }
2557 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2560 ac_save_IFS
=$IFS; IFS
='-'
2566 # Remember, the first character of IFS is used to create $*,
2567 # except with old shells:
2570 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2574 $as_echo_n "checking target system type... " >&6; }
2575 if test "${ac_cv_target+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2578 if test "x$target_alias" = x
; then
2579 ac_cv_target
=$ac_cv_host
2581 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2582 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2587 $as_echo "$ac_cv_target" >&6; }
2588 case $ac_cv_target in
2590 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2592 target
=$ac_cv_target
2593 ac_save_IFS
=$IFS; IFS
='-'
2599 # Remember, the first character of IFS is used to create $*,
2600 # except with old shells:
2603 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2606 # The aliases save the names the user supplied, while $host etc.
2607 # will get canonicalized.
2608 test -n "$target_alias" &&
2609 test "$program_prefix$program_suffix$program_transform_name" = \
2611 program_prefix
=${target_alias}-
2613 test "$program_prefix" != NONE
&&
2614 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2615 # Use a double $ so make ignores it.
2616 test "$program_suffix" != NONE
&&
2617 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2618 # Double any \ or $.
2619 # By default was `s,x,x', remove it if useless.
2620 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2621 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2624 ac_cpp
='$CPP $CPPFLAGS'
2625 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2630 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if test "${ac_cv_prog_CC+set}" = set; then :
2634 $as_echo_n "(cached) " >&6
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC
="$CC" # Let the user override the test.
2639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir
=.
2644 for ac_exec_ext
in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2667 if test -z "$ac_cv_prog_CC"; then
2669 # Extract the first word of "gcc", so it can be a program name with args.
2670 set dummy gcc
; ac_word
=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir
=.
2684 for ac_exec_ext
in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_ac_ct_CC
="gcc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2697 if test -n "$ac_ct_CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2699 $as_echo "$ac_ct_CC" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2705 if test "x$ac_ct_CC" = x
; then
2708 case $cross_compiling:$ac_tool_warned in
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2712 ac_tool_warned
=yes ;;
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2723 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC
="$CC" # Let the user override the test.
2732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir
=.
2737 for ac_exec_ext
in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2761 if test -z "$CC"; then
2762 # Extract the first word of "cc", so it can be a program name with args.
2763 set dummy cc
; ac_word
=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC
="$CC" # Let the user override the test.
2773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir
=.
2778 for ac_exec_ext
in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2781 ac_prog_rejected
=yes
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 if test $ac_prog_rejected = yes; then
2793 # We found a bogon in the path, so make sure we never use it.
2794 set dummy
$ac_cv_prog_CC
2796 if test $# != 0; then
2797 # We chose a different compiler from the bogus one.
2798 # However, it has the same basename, so the bogon will be chosen
2799 # first if we set CC to just the basename; use the full file name.
2801 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2817 if test -z "$CC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 for ac_prog
in cl.exe
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC
="$CC" # Let the user override the test.
2831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir
=.
2836 for ac_exec_ext
in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 $as_echo "$CC" >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2858 test -n "$CC" && break
2861 if test -z "$CC"; then
2863 for ac_prog
in cl.exe
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy
$ac_prog; ac_word
=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir
=.
2880 for ac_exec_ext
in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_ac_ct_CC
="$ac_prog"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2893 if test -n "$ac_ct_CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2895 $as_echo "$ac_ct_CC" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2902 test -n "$ac_ct_CC" && break
2905 if test "x$ac_ct_CC" = x
; then
2908 case $cross_compiling:$ac_tool_warned in
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912 ac_tool_warned
=yes ;;
2921 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 as_fn_error
"no acceptable C compiler found in \$PATH
2924 See \`config.log' for more details." "$LINENO" 5; }
2926 # Provide some information about the compiler.
2927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2930 for ac_option
in --version -v -V -qversion; do
2931 { { ac_try
="$ac_compiler $ac_option >&5"
2933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2940 if test -s conftest.err; then
2942 ... rest of stderr output deleted ...
2943 10q' conftest.err >conftest.er1
2944 cat conftest.er1 >&5
2945 rm -f conftest.er1 conftest.err
2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948 test $ac_status = 0; }
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2962 ac_clean_files_save=$ac_clean_files
2963 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2964 # Try to create an executable without -o first, disregard a.out.
2965 # It will help us diagnose broken compilers, and finding out an intuition
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2968 $as_echo_n "checking for C compiler default output file name... " >&6; }
2969 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2971 # The possible output files:
2972 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2975 for ac_file in $ac_files
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2984 if { { ac_try="$ac_link_default"
2986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2987 *) ac_try_echo
=$ac_try;;
2989 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_link_default") 2>&5
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; then :
2995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2996 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2997 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2998 # so that the user can short-circuit this test for compilers unknown to
3000 for ac_file
in $ac_files ''
3002 test -f "$ac_file" ||
continue
3004 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3007 # We found the default executable, but exeext='' is most
3011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3013 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3015 # We set ac_cv_exeext here because the later test for it is not
3016 # safe: cross compilers may not add the suffix if given an `-o'
3017 # argument, so we may need to know it at that point already.
3018 # Even if this section looks crufty: it has the advantage of
3025 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3031 $as_echo "$ac_file" >&6; }
3032 if test -z "$ac_file"; then :
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_set_status
77
3039 as_fn_error
"C compiler cannot create executables
3040 See \`config.log' for more details." "$LINENO" 5; }; }
3042 ac_exeext
=$ac_cv_exeext
3044 # Check that the compiler produces executables we can run. If not, either
3045 # the compiler is broken, or we cross compile.
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3047 $as_echo_n "checking whether the C compiler works... " >&6; }
3048 # If not cross compiling, check that we can run a simple program.
3049 if test "$cross_compiling" != yes; then
3050 if { ac_try
='./$ac_file'
3051 { { case "(($ac_try" in
3052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_try") 2>&5
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }; }; then
3063 if test "$cross_compiling" = maybe; then
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error "cannot run C compiled programs.
3069 If you meant to cross compile
, use \
`--host'.
3070 See \`config.log
' for more details." "$LINENO" 5; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075 $as_echo "yes" >&6; }
3077 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3078 ac_clean_files=$ac_clean_files_save
3079 # Check that the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3082 $as_echo_n "checking whether we are cross compiling... " >&6; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3084 $as_echo "$cross_compiling" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3087 $as_echo_n "checking for suffix of executables... " >&6; }
3088 if { { ac_try="$ac_link"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_link") 2>&5
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; then :
3099 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3100 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3101 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3103 for ac_file
in conftest.exe conftest conftest.
*; do
3104 test -f "$ac_file" ||
continue
3106 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3107 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3116 See \`config.log' for more details." "$LINENO" 5; }
3118 rm -f conftest
$ac_cv_exeext
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3120 $as_echo "$ac_cv_exeext" >&6; }
3122 rm -f conftest.
$ac_ext
3123 EXEEXT
=$ac_cv_exeext
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3126 $as_echo_n "checking for suffix of object files... " >&6; }
3127 if test "${ac_cv_objext+set}" = set; then :
3128 $as_echo_n "(cached) " >&6
3130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3131 /* end confdefs.h. */
3141 rm -f conftest.o conftest.obj
3142 if { { ac_try
="$ac_compile"
3144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_compile") 2>&5
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 for ac_file in conftest.o conftest.obj conftest.*; do
3154 test -f "$ac_file" || continue;
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3157 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error "cannot compute suffix of object files
: cannot compile
3168 See \
`config.log' for more details." "$LINENO" 5; }
3170 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3173 $as_echo "$ac_cv_objext" >&6; }
3174 OBJEXT=$ac_cv_objext
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3177 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3178 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3195 if ac_fn_c_try_compile "$LINENO"; then :
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3205 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3206 if test $ac_compiler_gnu = yes; then
3211 ac_test_CFLAGS=${CFLAGS+set}
3212 ac_save_CFLAGS=$CFLAGS
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3214 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3215 if test "${ac_cv_prog_cc_g+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3218 ac_save_c_werror_flag=$ac_c_werror_flag
3219 ac_c_werror_flag=yes
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3233 if ac_fn_c_try_compile "$LINENO"; then :
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3248 if ac_fn_c_try_compile "$LINENO"; then :
3251 ac_c_werror_flag=$ac_save_c_werror_flag
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3264 if ac_fn_c_try_compile "$LINENO"; then :
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_c_werror_flag=$ac_save_c_werror_flag
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3275 $as_echo "$ac_cv_prog_cc_g" >&6; }
3276 if test "$ac_test_CFLAGS" = set; then
3277 CFLAGS=$ac_save_CFLAGS
3278 elif test $ac_cv_prog_cc_g = yes; then
3279 if test "$GCC" = yes; then
3285 if test "$GCC" = yes; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3292 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3293 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3296 ac_cv_prog_cc_c89=no
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3302 #include <sys/types.h>
3303 #include <sys/stat.h>
3304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3305 struct buf { int x; };
3306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3307 static char *e (p, i)
3313 static char *f (char * (*g) (char **, int), char **p, ...)
3318 s = g (p, va_arg (v,int));
3323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3324 function prototypes and stuff, but not '\xHH' hex character constants.
3325 These don't provoke an error unfortunately, instead are silently treated
3326 as 'x'. The following induces an error, until -std is added to get
3327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3328 array size at least. It's necessary to write '\x00'==0 to get something
3329 that's true only with -std. */
3330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333 inside strings and character constants. */
3335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3337 int test (int i, double x);
3338 struct s1 {int (*f) (int a);};
3339 struct s2 {int (*f) (double a);};
3340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3354 CC="$ac_save_CC $ac_arg"
3355 if ac_fn_c_try_compile "$LINENO"; then :
3356 ac_cv_prog_cc_c89=$ac_arg
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 rm -f conftest.$ac_ext
3366 case "x$ac_cv_prog_cc_c89" in
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3369 $as_echo "none needed" >&6; } ;;
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3372 $as_echo "unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3376 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3378 if test "x$ac_cv_prog_cc_c89" != xno; then :
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 # Find a good install program. We prefer a C program (faster),
3389 # so one script is as good as another. But avoid the broken or
3390 # incompatible versions:
3391 # SysV /etc/install, /usr/sbin/install
3392 # SunOS /usr/etc/install
3393 # IRIX /sbin/install
3395 # AmigaOS /C/install, which installs bootblocks on floppy discs
3396 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3397 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3398 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3399 # OS/2's system install, which has a completely different semantic
3400 # ./install, which can be erroneously created by make from ./install.sh.
3401 # Reject install programs that cannot install multiple files.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3403 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3404 if test -z "$INSTALL"; then
3405 if test "${ac_cv_path_install+set}" = set; then :
3406 $as_echo_n "(cached) " >&6
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 # Account for people who put trailing slashes in PATH elements.
3414 case $as_dir/ in #((
3415 ./ | .// | /[cC]/* | \
3416 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3417 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3420 # OSF1 and SCO ODT 3.0 have their own names for install.
3421 # Don't use installbsd from OSF since it installs stuff as root
3423 for ac_prog in ginstall scoinst install; do
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3426 if test $ac_prog = install &&
3427 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3428 # AIX install. It has an incompatible calling convention.
3430 elif test $ac_prog = install &&
3431 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3432 # program-specific install script used by HP pwplus--don't use.
3435 rm -rf conftest.one conftest.two conftest.dir
3436 echo one > conftest.one
3437 echo two > conftest.two
3439 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3440 test -s conftest.one && test -s conftest.two &&
3441 test -s conftest.dir/conftest.one &&
3442 test -s conftest.dir/conftest.two
3444 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3457 rm -rf conftest.one conftest.two conftest.dir
3460 if test "${ac_cv_path_install+set}" = set; then
3461 INSTALL=$ac_cv_path_install
3463 # As a last resort, use the slow shell script. Don't cache a
3464 # value for INSTALL within a source directory, because that will
3465 # break other packages using the cache if that directory is
3466 # removed, or if the value is a relative name.
3467 INSTALL=$ac_install_sh
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3471 $as_echo "$INSTALL" >&6; }
3473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3474 # It thinks the first close brace ends the variable substitution.
3475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3482 # Put a plausible default for CC_FOR_BUILD in Makefile.
3483 if test "x$cross_compiling" = "xno"; then
3484 CC_FOR_BUILD='$(CC)'
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$RANLIB"; then
3503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 RANLIB=$ac_cv_prog_RANLIB
3523 if test -n "$RANLIB"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3525 $as_echo "$RANLIB" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_RANLIB"; then
3534 ac_ct_RANLIB=$RANLIB
3535 # Extract the first word of "ranlib", so it can be a program name with args.
3536 set dummy ranlib; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_RANLIB"; then
3543 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_RANLIB="ranlib"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3563 if test -n "$ac_ct_RANLIB"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3565 $as_echo "$ac_ct_RANLIB" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_RANLIB" = x; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3580 RANLIB=$ac_ct_RANLIB
3583 RANLIB="$ac_cv_prog_RANLIB"
3588 # If we haven't got the data from the intl directory,
3589 # assume NLS is disabled.
3598 if test -f ../../intl/config.intl; then
3599 . ../../intl/config.intl
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3602 $as_echo_n "checking whether NLS is requested... " >&6; }
3603 if test x"$USE_NLS" != xyes; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3608 $as_echo "yes" >&6; }
3610 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3614 $as_echo_n "checking for catalogs to be installed... " >&6; }
3615 # Look for .po and .gmo files in the source directory.
3618 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3619 # If there aren't any .gmo files the shell will give us the
3620 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3622 case "$cat" in *\**)
3625 # The quadruple backslash is collapsed to a double backslash
3626 # by the backticks, then collapsed again by the double quotes,
3627 # leaving us with one backslash in the sed expression (right
3628 # before the dot that mustn't act as a wildcard).
3629 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3630 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3631 # The user is allowed to set LINGUAS to a list of languages to
3632 # install catalogs for. If it's empty that means "all of them."
3633 if test "x$LINGUAS" = x; then
3634 CATALOGS="$CATALOGS $cat"
3635 XLINGUAS="$XLINGUAS $lang"
3637 case "$LINGUAS" in *$lang*)
3638 CATALOGS="$CATALOGS $cat"
3639 XLINGUAS="$XLINGUAS $lang"
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3646 $as_echo "$LINGUAS" >&6; }
3659 # Check for common headers.
3660 # FIXME: Seems to me this can cause problems for i386-windows hosts.
3661 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3669 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3670 # On Suns, sometimes $CPP names a directory.
3671 if test -n "$CPP" && test -d "$CPP"; then
3674 if test -z "$CPP"; then
3675 if test "${ac_cv_prog_CPP+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3678 # Double quotes because CPP needs to be expanded
3679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3682 for ac_c_preproc_warn_flag in '' yes
3684 # Use a header file that comes with gcc, so configuring glibc
3685 # with a fresh cross-compiler works.
3686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687 # <limits.h> exists even on freestanding compilers.
3688 # On the NeXT, cc -E runs the code through the compiler's parser,
3689 # not just through cpp. "Syntax error" is here to catch this case.
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3693 # include <limits.h>
3695 # include <assert.h>
3699 if ac_fn_c_try_cpp "$LINENO"; then :
3702 # Broken: fails on valid input.
3705 rm -f conftest.err conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711 #include <ac_nonexistent.h>
3713 if ac_fn_c_try_cpp "$LINENO"; then :
3714 # Broken: success on invalid input.
3717 # Passes both tests.
3721 rm -f conftest.err conftest.$ac_ext
3724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3725 rm -f conftest.err conftest.
$ac_ext
3726 if $ac_preproc_ok; then :
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3739 $as_echo "$CPP" >&6; }
3741 for ac_c_preproc_warn_flag
in '' yes
3743 # Use a header file that comes with gcc, so configuring glibc
3744 # with a fresh cross-compiler works.
3745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3746 # <limits.h> exists even on freestanding compilers.
3747 # On the NeXT, cc -E runs the code through the compiler's parser,
3748 # not just through cpp. "Syntax error" is here to catch this case.
3749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3752 # include <limits.h>
3754 # include <assert.h>
3758 if ac_fn_c_try_cpp
"$LINENO"; then :
3761 # Broken: fails on valid input.
3764 rm -f conftest.err conftest.
$ac_ext
3766 # OK, works on sane cases. Now check whether nonexistent headers
3767 # can be detected and how.
3768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770 #include <ac_nonexistent.h>
3772 if ac_fn_c_try_cpp
"$LINENO"; then :
3773 # Broken: success on invalid input.
3776 # Passes both tests.
3780 rm -f conftest.err conftest.
$ac_ext
3783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3784 rm -f conftest.err conftest.
$ac_ext
3785 if $ac_preproc_ok; then :
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3791 See \`config.log' for more details." "$LINENO" 5; }
3795 ac_cpp
='$CPP $CPPFLAGS'
3796 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3802 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3803 if test "${ac_cv_path_GREP+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3806 if test -z "$GREP"; then
3807 ac_path_GREP_found
=false
3808 # Loop through the user's path and test for each of PROGNAME-LIST
3809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3810 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3813 test -z "$as_dir" && as_dir
=.
3814 for ac_prog
in grep ggrep
; do
3815 for ac_exec_ext
in '' $ac_executable_extensions; do
3816 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3818 # Check for GNU ac_path_GREP and select it if it is found.
3819 # Check for GNU $ac_path_GREP
3820 case `"$ac_path_GREP" --version 2>&1` in
3822 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3825 $as_echo_n 0123456789 >"conftest.in"
3828 cat "conftest.in" "conftest.in" >"conftest.tmp"
3829 mv "conftest.tmp" "conftest.in"
3830 cp "conftest.in" "conftest.nl"
3831 $as_echo 'GREP' >> "conftest.nl"
3832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3833 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3834 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3835 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3836 # Best one so far, save it but keep looking for a better one
3837 ac_cv_path_GREP
="$ac_path_GREP"
3838 ac_path_GREP_max
=$ac_count
3840 # 10*(2^10) chars as input seems more than enough
3841 test $ac_count -gt 10 && break
3843 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3846 $ac_path_GREP_found && break 3
3851 if test -z "$ac_cv_path_GREP"; then
3852 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3855 ac_cv_path_GREP
=$GREP
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3860 $as_echo "$ac_cv_path_GREP" >&6; }
3861 GREP
="$ac_cv_path_GREP"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3865 $as_echo_n "checking for egrep... " >&6; }
3866 if test "${ac_cv_path_EGREP+set}" = set; then :
3867 $as_echo_n "(cached) " >&6
3869 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3870 then ac_cv_path_EGREP
="$GREP -E"
3872 if test -z "$EGREP"; then
3873 ac_path_EGREP_found
=false
3874 # Loop through the user's path and test for each of PROGNAME-LIST
3875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3876 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3879 test -z "$as_dir" && as_dir
=.
3880 for ac_prog
in egrep; do
3881 for ac_exec_ext
in '' $ac_executable_extensions; do
3882 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3883 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3884 # Check for GNU ac_path_EGREP and select it if it is found.
3885 # Check for GNU $ac_path_EGREP
3886 case `"$ac_path_EGREP" --version 2>&1` in
3888 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3891 $as_echo_n 0123456789 >"conftest.in"
3894 cat "conftest.in" "conftest.in" >"conftest.tmp"
3895 mv "conftest.tmp" "conftest.in"
3896 cp "conftest.in" "conftest.nl"
3897 $as_echo 'EGREP' >> "conftest.nl"
3898 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3899 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3900 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3901 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3902 # Best one so far, save it but keep looking for a better one
3903 ac_cv_path_EGREP
="$ac_path_EGREP"
3904 ac_path_EGREP_max
=$ac_count
3906 # 10*(2^10) chars as input seems more than enough
3907 test $ac_count -gt 10 && break
3909 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3912 $ac_path_EGREP_found && break 3
3917 if test -z "$ac_cv_path_EGREP"; then
3918 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3921 ac_cv_path_EGREP
=$EGREP
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3927 $as_echo "$ac_cv_path_EGREP" >&6; }
3928 EGREP
="$ac_cv_path_EGREP"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3932 $as_echo_n "checking for ANSI C header files... " >&6; }
3933 if test "${ac_cv_header_stdc+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3951 if ac_fn_c_try_compile
"$LINENO"; then :
3952 ac_cv_header_stdc
=yes
3954 ac_cv_header_stdc
=no
3956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3958 if test $ac_cv_header_stdc = yes; then
3959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 $EGREP "memchr" >/dev
/null
2>&1; then :
3969 ac_cv_header_stdc
=no
3975 if test $ac_cv_header_stdc = yes; then
3976 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3983 $EGREP "free" >/dev
/null
2>&1; then :
3986 ac_cv_header_stdc
=no
3992 if test $ac_cv_header_stdc = yes; then
3993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3994 if test "$cross_compiling" = yes; then :
3997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 #if ((' ' & 0x0FF) == 0x020)
4002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4005 # define ISLOWER(c) \
4006 (('a' <= (c) && (c) <= 'i') \
4007 || ('j' <= (c) && (c) <= 'r') \
4008 || ('s' <= (c) && (c) <= 'z'))
4009 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4012 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4017 for (i = 0; i < 256; i++)
4018 if (XOR (islower (i), ISLOWER (i))
4019 || toupper (i) != TOUPPER (i))
4024 if ac_fn_c_try_run
"$LINENO"; then :
4027 ac_cv_header_stdc
=no
4029 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4030 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4036 $as_echo "$ac_cv_header_stdc" >&6; }
4037 if test $ac_cv_header_stdc = yes; then
4039 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4044 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4045 inttypes.h stdint.h unistd.h
4047 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4048 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4050 eval as_val
=\$
$as_ac_Header
4051 if test "x$as_val" = x
""yes; then :
4052 cat >>confdefs.h
<<_ACEOF
4053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4063 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4064 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4065 eval as_val
=\$
$as_ac_Header
4066 if test "x$as_val" = x
""yes; then :
4067 cat >>confdefs.h
<<_ACEOF
4068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4075 for ac_header
in sys
/time.h sys
/resource.h
4077 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4078 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4079 eval as_val
=\$
$as_ac_Header
4080 if test "x$as_val" = x
""yes; then :
4081 cat >>confdefs.h
<<_ACEOF
4082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4089 for ac_header
in fcntl.h fpu_control.h
4091 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4092 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4093 eval as_val
=\$
$as_ac_Header
4094 if test "x$as_val" = x
""yes; then :
4095 cat >>confdefs.h
<<_ACEOF
4096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 for ac_header
in dlfcn.h errno.h sys
/stat.h
4105 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4106 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4107 eval as_val
=\$
$as_ac_Header
4108 if test "x$as_val" = x
""yes; then :
4109 cat >>confdefs.h
<<_ACEOF
4110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4117 for ac_func
in getrusage
time sigaction __setfpucw
4119 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4120 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4121 eval as_val
=\$
$as_ac_var
4122 if test "x$as_val" = x
""yes; then :
4123 cat >>confdefs.h
<<_ACEOF
4124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4131 # Check for socket libraries
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4133 $as_echo_n "checking for bind in -lsocket... " >&6; }
4134 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4137 ac_check_lib_save_LIBS
=$LIBS
4138 LIBS
="-lsocket $LIBS"
4139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4142 /* Override any GCC internal prototype to avoid an error.
4143 Use char because int might match the return type of a GCC
4144 builtin and then its argument prototype would still apply. */
4157 if ac_fn_c_try_link
"$LINENO"; then :
4158 ac_cv_lib_socket_bind
=yes
4160 ac_cv_lib_socket_bind
=no
4162 rm -f core conftest.err conftest.
$ac_objext \
4163 conftest
$ac_exeext conftest.
$ac_ext
4164 LIBS
=$ac_check_lib_save_LIBS
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4167 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4168 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4169 cat >>confdefs.h
<<_ACEOF
4170 #define HAVE_LIBSOCKET 1
4173 LIBS
="-lsocket $LIBS"
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4178 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4179 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4182 ac_check_lib_save_LIBS
=$LIBS
4184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4187 /* Override any GCC internal prototype to avoid an error.
4188 Use char because int might match the return type of a GCC
4189 builtin and then its argument prototype would still apply. */
4193 char gethostbyname ();
4197 return gethostbyname ();
4202 if ac_fn_c_try_link
"$LINENO"; then :
4203 ac_cv_lib_nsl_gethostbyname
=yes
4205 ac_cv_lib_nsl_gethostbyname
=no
4207 rm -f core conftest.err conftest.
$ac_objext \
4208 conftest
$ac_exeext conftest.
$ac_ext
4209 LIBS
=$ac_check_lib_save_LIBS
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4212 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4213 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4214 cat >>confdefs.h
<<_ACEOF
4215 #define HAVE_LIBNSL 1
4223 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4224 # using the same condition.
4226 # See if the user specified whether he wants zlib support or not.
4228 # Check whether --with-zlib was given.
4229 if test "${with_zlib+set}" = set; then :
4236 if test "$with_zlib" != "no"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4238 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4239 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4242 ac_func_search_save_LIBS
=$LIBS
4243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4246 /* Override any GCC internal prototype to avoid an error.
4247 Use char because int might match the return type of a GCC
4248 builtin and then its argument prototype would still apply. */
4252 char zlibVersion ();
4256 return zlibVersion ();
4261 for ac_lib
in '' z
; do
4262 if test -z "$ac_lib"; then
4263 ac_res
="none required"
4266 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4268 if ac_fn_c_try_link
"$LINENO"; then :
4269 ac_cv_search_zlibVersion
=$ac_res
4271 rm -f core conftest.err conftest.
$ac_objext \
4273 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4277 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4280 ac_cv_search_zlibVersion
=no
4283 LIBS
=$ac_func_search_save_LIBS
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4286 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4287 ac_res
=$ac_cv_search_zlibVersion
4288 if test "$ac_res" != no
; then :
4289 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4290 for ac_header
in zlib.h
4292 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4293 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4294 cat >>confdefs.h
<<_ACEOF
4295 #define HAVE_ZLIB_H 1
4304 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4305 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4310 .
${srcdir}/..
/..
/bfd
/configure.
host
4314 USE_MAINTAINER_MODE
=no
4315 # Check whether --enable-maintainer-mode was given.
4316 if test "${enable_maintainer_mode+set}" = set; then :
4317 enableval
=$enable_maintainer_mode; case "${enableval}" in
4318 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4320 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4322 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4323 echo "Setting maintainer mode" 6>&1
4331 # Check whether --enable-sim-bswap was given.
4332 if test "${enable_sim_bswap+set}" = set; then :
4333 enableval
=$enable_sim_bswap; case "${enableval}" in
4334 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4335 no
) sim_bswap
="-DWITH_BSWAP=0";;
4336 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4338 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4339 echo "Setting bswap flags = $sim_bswap" 6>&1
4347 # Check whether --enable-sim-cflags was given.
4348 if test "${enable_sim_cflags+set}" = set; then :
4349 enableval
=$enable_sim_cflags; case "${enableval}" in
4350 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4351 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4353 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4355 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4356 echo "Setting sim cflags = $sim_cflags" 6>&1
4364 # Check whether --enable-sim-debug was given.
4365 if test "${enable_sim_debug+set}" = set; then :
4366 enableval
=$enable_sim_debug; case "${enableval}" in
4367 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4368 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4369 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4371 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4372 echo "Setting sim debug = $sim_debug" 6>&1
4380 # Check whether --enable-sim-stdio was given.
4381 if test "${enable_sim_stdio+set}" = set; then :
4382 enableval
=$enable_sim_stdio; case "${enableval}" in
4383 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4384 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4385 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4387 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4388 echo "Setting stdio flags = $sim_stdio" 6>&1
4396 # Check whether --enable-sim-trace was given.
4397 if test "${enable_sim_trace+set}" = set; then :
4398 enableval
=$enable_sim_trace; case "${enableval}" in
4399 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4400 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4402 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4405 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4406 if test x
"$sim_trace" = x
; then
4407 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4409 sim_trace
="${sim_trace}|TRACE_$x"
4412 sim_trace
="$sim_trace)'" ;;
4414 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4415 echo "Setting sim trace = $sim_trace" 6>&1
4423 # Check whether --enable-sim-profile was given.
4424 if test "${enable_sim_profile+set}" = set; then :
4425 enableval
=$enable_sim_profile; case "${enableval}" in
4426 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4427 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4429 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4432 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4433 if test x
"$sim_profile" = x
; then
4434 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4436 sim_profile
="${sim_profile}|PROFILE_$x"
4439 sim_profile
="$sim_profile)'" ;;
4441 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4442 echo "Setting sim profile = $sim_profile" 6>&1
4445 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4451 # Check whether --with-pkgversion was given.
4452 if test "${with_pkgversion+set}" = set; then :
4453 withval
=$with_pkgversion; case "$withval" in
4454 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4456 *) PKGVERSION
="($withval) " ;;
4467 # Check whether --with-bugurl was given.
4468 if test "${with_bugurl+set}" = set; then :
4469 withval
=$with_bugurl; case "$withval" in
4470 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4473 *) BUGURL
="$withval"
4477 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4487 REPORT_BUGS_TO
="<$BUGURL>"
4488 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4495 cat >>confdefs.h
<<_ACEOF
4496 #define PKGVERSION "$PKGVERSION"
4500 cat >>confdefs.h
<<_ACEOF
4501 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4506 $as_echo_n "checking return type of signal handlers... " >&6; }
4507 if test "${ac_cv_type_signal+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 #include <sys/types.h>
4518 return *(signal (0, 0)) (0) == 1;
4523 if ac_fn_c_try_compile
"$LINENO"; then :
4524 ac_cv_type_signal
=int
4526 ac_cv_type_signal
=void
4528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4531 $as_echo "$ac_cv_type_signal" >&6; }
4533 cat >>confdefs.h
<<_ACEOF
4534 #define RETSIGTYPE $ac_cv_type_signal
4544 sim_link_links
=tconfig.h
4545 if test -f ${srcdir}/tconfig.
in
4547 sim_link_files
=tconfig.
in
4549 sim_link_files
=..
/common
/tconfig.
in
4552 # targ-vals.def points to the libc macro description file.
4554 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4556 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4557 sim_link_links
="${sim_link_links} targ-vals.def"
4561 wire_endian
="LITTLE_ENDIAN"
4563 # Check whether --enable-sim-endian was given.
4564 if test "${enable_sim_endian+set}" = set; then :
4565 enableval
=$enable_sim_endian; case "${enableval}" in
4566 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4567 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4568 yes) if test x
"$wire_endian" != x
; then
4569 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4571 if test x
"$default_endian" != x
; then
4572 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4574 echo "No hard-wired endian for target $target" 1>&6
4575 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
4578 no
) if test x
"$default_endian" != x
; then
4579 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4581 if test x
"$wire_endian" != x
; then
4582 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4584 echo "No default endian for target $target" 1>&6
4585 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4588 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian
="";;
4590 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
4591 echo "Setting endian flags = $sim_endian" 6>&1
4594 if test x
"$default_endian" != x
; then
4595 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4597 if test x
"$wire_endian" != x
; then
4598 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4605 wire_alignment
="STRICT_ALIGNMENT"
4606 default_alignment
="STRICT_ALIGNMENT"
4608 # Check whether --enable-sim-alignment was given.
4609 if test "${enable_sim_alignment+set}" = set; then :
4610 enableval
=$enable_sim_alignment; case "${enableval}" in
4611 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4612 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4613 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4614 yes) if test x
"$wire_alignment" != x
; then
4615 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4617 if test x
"$default_alignment" != x
; then
4618 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4620 echo "No hard-wired alignment for target $target" 1>&6
4621 sim_alignment
="-DWITH_ALIGNMENT=0"
4624 no
) if test x
"$default_alignment" != x
; then
4625 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4627 if test x
"$wire_alignment" != x
; then
4628 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4630 echo "No default alignment for target $target" 1>&6
4631 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4634 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4636 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4637 echo "Setting alignment flags = $sim_alignment" 6>&1
4640 if test x
"$default_alignment" != x
; then
4641 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4643 if test x
"$wire_alignment" != x
; then
4644 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4652 # Check whether --enable-sim-hostendian was given.
4653 if test "${enable_sim_hostendian+set}" = set; then :
4654 enableval
=$enable_sim_hostendian; case "${enableval}" in
4655 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4656 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4657 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4658 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4660 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4661 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4665 if test "x$cross_compiling" = "xno"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4667 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4668 if test "${ac_cv_c_bigendian+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
4671 ac_cv_c_bigendian
=unknown
4672 # See if we're dealing with a universal compiler.
4673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #ifndef __APPLE_CC__
4676 not a universal capable compiler
4681 if ac_fn_c_try_compile
"$LINENO"; then :
4683 # Check for potential -arch flags. It is not universal unless
4684 # there are at least two -arch flags with different values.
4687 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4688 if test -n "$ac_prev"; then
4690 i?
86 | x86_64 | ppc | ppc64
)
4691 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4694 ac_cv_c_bigendian
=universal
4700 elif test "x$ac_word" = "x-arch"; then
4705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4706 if test $ac_cv_c_bigendian = unknown
; then
4707 # See if sys/param.h defines the BYTE_ORDER macro.
4708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710 #include <sys/types.h>
4711 #include <sys/param.h>
4716 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4717 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4726 if ac_fn_c_try_compile
"$LINENO"; then :
4727 # It does; now see whether it defined to BIG_ENDIAN or not.
4728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730 #include <sys/types.h>
4731 #include <sys/param.h>
4736 #if BYTE_ORDER != BIG_ENDIAN
4744 if ac_fn_c_try_compile
"$LINENO"; then :
4745 ac_cv_c_bigendian
=yes
4747 ac_cv_c_bigendian
=no
4749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4753 if test $ac_cv_c_bigendian = unknown
; then
4754 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4762 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4770 if ac_fn_c_try_compile
"$LINENO"; then :
4771 # It does; now see whether it defined to _BIG_ENDIAN or not.
4772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4787 if ac_fn_c_try_compile
"$LINENO"; then :
4788 ac_cv_c_bigendian
=yes
4790 ac_cv_c_bigendian
=no
4792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4796 if test $ac_cv_c_bigendian = unknown
; then
4797 # Compile a test program.
4798 if test "$cross_compiling" = yes; then :
4799 # Try to guess by grepping values from an object file.
4800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 short int ascii_mm[] =
4803 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4804 short int ascii_ii[] =
4805 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4806 int use_ascii (int i) {
4807 return ascii_mm[i] + ascii_ii[i];
4809 short int ebcdic_ii[] =
4810 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4811 short int ebcdic_mm[] =
4812 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4813 int use_ebcdic (int i) {
4814 return ebcdic_mm[i] + ebcdic_ii[i];
4821 return use_ascii (foo) == use_ebcdic (foo);
4826 if ac_fn_c_try_compile
"$LINENO"; then :
4827 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4828 ac_cv_c_bigendian
=yes
4830 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4831 if test "$ac_cv_c_bigendian" = unknown
; then
4832 ac_cv_c_bigendian
=no
4834 # finding both strings is unlikely to happen, but who knows?
4835 ac_cv_c_bigendian
=unknown
4839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 $ac_includes_default
4848 /* Are we little or big endian? From Harbison&Steele. */
4852 char c[sizeof (long int)];
4855 return u.c[sizeof (long int) - 1] == 1;
4861 if ac_fn_c_try_run
"$LINENO"; then :
4862 ac_cv_c_bigendian
=no
4864 ac_cv_c_bigendian
=yes
4866 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4867 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4873 $as_echo "$ac_cv_c_bigendian" >&6; }
4874 case $ac_cv_c_bigendian in #(
4876 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4882 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4886 as_fn_error
"unknown endianness
4887 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4890 if test $ac_cv_c_bigendian = yes; then
4891 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4893 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4896 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4901 default_sim_default_model
="bf537"
4902 # Check whether --enable-sim-default-model was given.
4903 if test "${enable_sim_default_model+set}" = set; then :
4904 enableval
=$enable_sim_default_model; case "${enableval}" in
4905 yes|no
) as_fn_error
"\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
4906 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
4908 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
4909 echo "Setting default model = $sim_default_model" 6>&1
4912 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
4917 # Check whether --enable-sim-environment was given.
4918 if test "${enable_sim_environment+set}" = set; then :
4919 enableval
=$enable_sim_environment; case "${enableval}" in
4920 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
4921 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
4922 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
4923 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
4924 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
4925 sim_environment
="";;
4927 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
4928 echo "Setting sim environment = $sim_environment" 6>&1
4931 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
4935 default_sim_inline
=""
4936 # Check whether --enable-sim-inline was given.
4937 if test "${enable_sim_inline+set}" = set; then :
4938 enableval
=$enable_sim_inline; sim_inline
=""
4939 case "$enableval" in
4940 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4941 0) sim_inline
="-DDEFAULT_INLINE=0";;
4942 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4943 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4944 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4947 *_INLINE
=*) new_flag
="-D$x";;
4948 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4949 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4950 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4952 if test x
"$sim_inline" = x
""; then
4953 sim_inline
="$new_flag"
4955 sim_inline
="$sim_inline $new_flag"
4959 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4960 echo "Setting inline flags = $sim_inline" 6>&1
4964 if test "x$cross_compiling" = "xno"; then
4965 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4966 sim_inline
="${default_sim_inline}"
4967 if test x
"$silent" != x
"yes"; then
4968 echo "Setting inline flags = $sim_inline" 6>&1
4974 sim_inline
="-DDEFAULT_INLINE=0"
4979 # NOTE: Don't add -Wall or -Wunused, they both include
4980 # -Wunused-parameter which reports bogus warnings.
4981 # NOTE: If you add to this list, remember to update
4982 # gdb/doc/gdbint.texinfo.
4983 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4984 -Wformat -Wparentheses -Wpointer-arith"
4985 # GCC supports -Wuninitialized only with -O or -On, n != 0.
4986 if test x
${CFLAGS+set} = xset
; then
4990 build_warnings
="${build_warnings} -Wuninitialized"
4994 build_warnings
="${build_warnings} -Wuninitialized"
4996 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4997 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4998 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4999 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5000 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5001 # -Woverloaded-virtual -Winline -Werror"
5002 # Check whether --enable-build-warnings was given.
5003 if test "${enable_build_warnings+set}" = set; then :
5004 enableval
=$enable_build_warnings; case "${enableval}" in
5006 no
) build_warnings
="-w";;
5007 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5008 build_warnings
="${build_warnings} ${t}";;
5009 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5010 build_warnings
="${t} ${build_warnings}";;
5011 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5013 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5014 echo "Setting compiler warning flags = $build_warnings" 6>&1
5017 # Check whether --enable-sim-build-warnings was given.
5018 if test "${enable_sim_build_warnings+set}" = set; then :
5019 enableval
=$enable_sim_build_warnings; case "${enableval}" in
5021 no
) build_warnings
="-w";;
5022 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5023 build_warnings
="${build_warnings} ${t}";;
5024 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5025 build_warnings
="${t} ${build_warnings}";;
5026 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5028 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5029 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5034 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5037 $as_echo_n "checking compiler warning flags... " >&6; }
5038 # Separate out the -Werror flag as some files just cannot be
5039 # compiled with it enabled.
5040 for w
in ${build_warnings}; do
5042 -Werr*) WERROR_CFLAGS
=-Werror ;;
5043 *) # Check that GCC accepts it
5044 saved_CFLAGS
="$CFLAGS"
5046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5057 if ac_fn_c_try_compile
"$LINENO"; then :
5058 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5061 CFLAGS
="$saved_CFLAGS"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
5065 $as_echo "${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
5069 if test x"yes" = x"yes"; then
5077 hardware="cfi core pal glue
"
5079 hardware="$hardware \
5109 sim_hw_cflags="-DWITH_HW=1"
5111 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5112 # Check whether --enable-sim-hardware was given.
5113 if test "${enable_sim_hardware+set}" = set; then :
5114 enableval=$enable_sim_hardware;
5115 case "${enableval}" in
5118 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5119 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5120 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5122 if test "$sim_hw_p" != yes; then
5124 sim_hw_cflags="-DWITH_HW=0"
5127 sim_hw_cflags="-DWITH_HW=1"
5130 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
5131 for i in $hardware ; do
5134 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
5138 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5139 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5143 if test "$sim_hw_p" != yes; then
5145 sim_hw_cflags="-DWITH_HW=0"
5148 if test x"$silent" != x"yes"; then
5149 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5154 for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread
5156 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
5157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5158 eval as_val=\$$as_ac_var
5159 if test "x
$as_val" = x""yes; then :
5160 cat >>confdefs.h <<_ACEOF
5161 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
5167 for ac_header in sys/ioctl.h sys/mman.h net/if.h linux/if_tun.h linux/mii.h
5169 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
5170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5171 eval as_val=\$$as_ac_Header
5172 if test "x
$as_val" = x""yes; then :
5173 cat >>confdefs.h <<_ACEOF
5174 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
5182 BFIN_SIM_EXTRA_OBJS=
5188 cat >>confdefs.h <<_ACEOF
5189 #define HAVE_DV_SOCKSER 1
5192 BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} dv-sockser.o
"
5196 BFIN_SIM_EXTRA_OBJS=${BFIN_SIM_EXTRA_OBJS}
5205 if test "x
$ac_cv_env_PKG_CONFIG_set" != "xset
"; then
5206 if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}pkg-config
", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5210 $as_echo_n "checking
for $ac_word...
" >&6; }
5211 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5212 $as_echo_n "(cached
) " >&6
5216 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5238 if test -n "$PKG_CONFIG"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $PKG_CONFIG" >&5
5240 $as_echo "$PKG_CONFIG" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5243 $as_echo "no
" >&6; }
5248 if test -z "$ac_cv_path_PKG_CONFIG"; then
5249 ac_pt_PKG_CONFIG=$PKG_CONFIG
5250 # Extract the first word of "pkg-config
", so it can be a program name with args.
5251 set dummy pkg-config; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5253 $as_echo_n "checking
for $ac_word...
" >&6; }
5254 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5255 $as_echo_n "(cached
) " >&6
5257 case $ac_pt_PKG_CONFIG in
5259 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5280 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5281 if test -n "$ac_pt_PKG_CONFIG"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_pt_PKG_CONFIG" >&5
5283 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5286 $as_echo "no
" >&6; }
5289 if test "x
$ac_pt_PKG_CONFIG" = x; then
5292 case $cross_compiling:$ac_tool_warned in
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5295 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5296 ac_tool_warned=yes ;;
5298 PKG_CONFIG=$ac_pt_PKG_CONFIG
5301 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5305 if test -n "$PKG_CONFIG"; then
5306 _pkg_min_version=0.9.0
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is
at least version
$_pkg_min_version" >&5
5308 $as_echo_n "checking pkg-config is
at least version
$_pkg_min_version...
" >&6; }
5309 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5311 $as_echo "yes" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5314 $as_echo "no
" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for SDL
" >&5
5321 $as_echo_n "checking
for SDL...
" >&6; }
5323 if test -n "$SDL_CFLAGS"; then
5324 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
5325 elif test -n "$PKG_CONFIG"; then
5326 if test -n "$PKG_CONFIG" && \
5327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \
$PKG_CONFIG --exists --print-errors \"sdl
\""; } >&5
5328 ($PKG_CONFIG --exists --print-errors "sdl
") 2>&5
5330 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5331 test $ac_status = 0; }; then
5332 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl
" 2>/dev/null`
5339 if test -n "$SDL_LIBS"; then
5340 pkg_cv_SDL_LIBS="$SDL_LIBS"
5341 elif test -n "$PKG_CONFIG"; then
5342 if test -n "$PKG_CONFIG" && \
5343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \
$PKG_CONFIG --exists --print-errors \"sdl
\""; } >&5
5344 ($PKG_CONFIG --exists --print-errors "sdl
") 2>&5
5346 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5347 test $ac_status = 0; }; then
5348 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl
" 2>/dev/null`
5358 if test $pkg_failed = yes; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5360 $as_echo "no
" >&6; }
5362 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5363 _pkg_short_errors_supported=yes
5365 _pkg_short_errors_supported=no
5367 if test $_pkg_short_errors_supported = yes; then
5368 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl
" 2>&1`
5370 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl
" 2>&1`
5372 # Put the nasty error message in config.log where it belongs
5373 echo "$SDL_PKG_ERRORS" >&5
5376 elif test $pkg_failed = untried; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5378 $as_echo "no
" >&6; }
5381 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
5382 SDL_LIBS=$pkg_cv_SDL_LIBS
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5384 $as_echo "yes" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlopen
in -ldl" >&5
5387 $as_echo_n "checking
for dlopen
in -ldl...
" >&6; }
5388 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5389 $as_echo_n "(cached
) " >&6
5391 ac_check_lib_save_LIBS=$LIBS
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5396 /* Override any GCC internal prototype to avoid an error.
5397 Use char because int might match the return type of a GCC
5398 builtin and then its argument prototype would still apply. */
5411 if ac_fn_c_try_link "$LINENO"; then :
5412 ac_cv_lib_dl_dlopen=yes
5414 ac_cv_lib_dl_dlopen=no
5416 rm -f core conftest.err conftest.$ac_objext \
5417 conftest$ac_exeext conftest.$ac_ext
5418 LIBS=$ac_check_lib_save_LIBS
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_dl_dlopen" >&5
5421 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5422 if test "x
$ac_cv_lib_dl_dlopen" = x""yes; then :
5424 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
5428 SDL_CFLAGS= SDL_LIBS=
5437 ac_sources="$sim_link_files"
5438 ac_dests="$sim_link_links"
5439 while test -n "$ac_sources"; do
5440 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5441 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5442 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5444 ac_config_links="$ac_config_links $ac_config_links_1"
5447 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5448 cgen_breaks="break cgen_rtx_error
";
5451 ac_config_files="$ac_config_files Makefile.sim
:Makefile.
in"
5453 ac_config_files="$ac_config_files Make-common.sim
:..
/common
/Make-common.
in"
5455 ac_config_files="$ac_config_files .gdbinit
:..
/common
/gdbinit.
in"
5457 ac_config_commands="$ac_config_commands Makefile
"
5459 ac_config_commands="$ac_config_commands stamp-h
"
5461 cat >confcache <<\_ACEOF
5462 # This file is a shell script that caches the results of configure
5463 # tests run on this system so they can be shared between configure
5464 # scripts and configure runs, see configure's option --config-cache.
5465 # It is not useful on other systems. If it contains results you don't
5466 # want to keep, you may remove or edit it.
5468 # config.status only pays attention to the cache file if you give it
5469 # the --recheck option to rerun configure.
5471 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5477 # The following way of writing the cache mishandles newlines in values,
5478 # but we know of no workaround that is simple, portable, and efficient.
5479 # So, we kill variables containing newlines.
5480 # Ultrix sh set writes to stderr and can't be redirected directly,
5481 # and sets the high bit in the cache file unless we assign to the vars.
5483 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5484 eval ac_val=\$$ac_var
5488 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
5489 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
5492 _ | IFS | as_nl) ;; #(
5493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5494 *) { eval $ac_var=; unset $ac_var;} ;;
5500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5501 *${as_nl}ac_space=\ *)
5502 # `set' does not quote correctly, so add quotes: double-quote
5503 # substitution turns \\\\ into \\, and sed turns \\ into \.
5506 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
5509 # `set' quotes correctly as required by POSIX, so do not add quotes.
5510 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
5519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5521 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5523 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5524 if test -w "$cache_file"; then
5525 test "x
$cache_file" != "x
/dev
/null
" &&
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
5527 $as_echo "$as_me: updating cache
$cache_file" >&6;}
5528 cat confcache >$cache_file
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
5531 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
5536 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
5537 # Let make expand exec_prefix.
5538 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
5540 DEFS=-DHAVE_CONFIG_H
5544 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
5545 # 1. Remove the extension, and $U if already installed.
5546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5547 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5549 # will be set to the directory where LIBOBJS objects are built.
5550 as_fn_append ac_libobjs " \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
5551 as_fn_append ac_ltlibobjs " \
${LIBOBJDIR}$ac_i"'$U.lo'
5555 LTLIBOBJS=$ac_ltlibobjs
5560 : ${CONFIG_STATUS=./config.status}
5562 ac_clean_files_save=$ac_clean_files
5563 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$CONFIG_STATUS" >&5
5565 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
5567 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5569 # Generated by $as_me.
5570 # Run this file to recreate the current configuration.
5571 # Compiler output produced by configure, useful for debugging
5572 # configure, is in config.log if it exists.
5578 SHELL=\${CONFIG_SHELL-$SHELL}
5581 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5582 ## -------------------- ##
5583 ## M4sh Initialization. ##
5584 ## -------------------- ##
5586 # Be more Bourne compatible
5587 DUALCASE=1; export DUALCASE # for MKS sh
5588 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5591 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5592 # is contrary to our usage. Disable this feature.
5593 alias -g '${1+"$@"}'='"$@
"'
5594 setopt NO_GLOB_SUBST
5596 case `(set -o) 2>/dev/null` in #(
5608 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5609 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5610 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5612 # Prefer a ksh shell builtin over an external printf program on Solaris,
5613 # but without wasting forks for bash or zsh.
5614 if test -z "$BASH_VERSION$ZSH_VERSION" \
5615 && (test "X
`print -r -- $as_echo`" = "X
$as_echo") 2>/dev/null; then
5616 as_echo='print -r --'
5617 as_echo_n='print -rn --'
5618 elif (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
5619 as_echo='printf %s\n'
5620 as_echo_n='printf %s'
5622 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
5623 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5624 as_echo_n='/usr/ucb/echo -n'
5626 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
5627 as_echo_n_body='eval
5631 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
5632 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
5634 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
5636 export as_echo_n_body
5637 as_echo_n='sh -c $as_echo_n_body as_echo'
5640 as_echo='sh -c $as_echo_body as_echo'
5643 # The user is always right.
5644 if test "${PATH_SEPARATOR+set}" != set; then
5646 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5647 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5654 # We need space, tab and new line, in precisely that order. Quoting is
5655 # there to prevent editors from complaining about space-tab.
5656 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5657 # splitting by setting IFS to empty value.)
5660 # Find who we are. Look in the path if we contain no directory separator.
5662 *[\\/]* ) as_myself=$0 ;;
5663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir=.
5668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5674 # We did not find ourselves, most probably we were run as `sh COMMAND'
5675 # in which case we are not to be found in the path.
5676 if test "x
$as_myself" = x; then
5679 if test ! -f "$as_myself"; then
5680 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
5684 # Unset variables that we do not need and which cause bugs (e.g. in
5685 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "||
exit 1"
5686 # suppresses any "Segmentation fault
" message there. '((' could
5687 # trigger a bug in pdksh 5.2.14.
5688 for as_var in BASH_ENV ENV MAIL MAILPATH
5689 do eval test x\${$as_var+set} = xset \
5690 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5703 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5706 # as_fn_error ERROR [LINENO LOG_FD]
5707 # ---------------------------------
5708 # Output "`basename $0`: error
: ERROR
" to stderr. If LINENO and LOG_FD are
5709 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5710 # script with status $?, using 1 if that was 0.
5713 as_status=$?; test $as_status -eq 0 && as_status=1
5715 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5716 $as_echo "$as_me:${as_lineno-$LINENO}: error
: $1" >&$3
5718 $as_echo "$as_me: error
: $1" >&2
5719 as_fn_exit $as_status
5723 # as_fn_set_status STATUS
5724 # -----------------------
5725 # Set $? to STATUS, without forking.
5729 } # as_fn_set_status
5733 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5743 # Portably unset VAR.
5746 { eval $1=; unset $1;}
5748 as_unset=as_fn_unset
5749 # as_fn_append VAR VALUE
5750 # ----------------------
5751 # Append the text in VALUE to the end of the definition contained in VAR. Take
5752 # advantage of any shell optimizations that allow amortized linear growth over
5753 # repeated appends, instead of the typical quadratic growth present in naive
5755 if (eval "as_var
=1; as_var
+=2; test x\
$as_var = x12
") 2>/dev/null; then :
5756 eval 'as_fn_append ()
5767 # as_fn_arith ARG...
5768 # ------------------
5769 # Perform arithmetic evaluation on the ARGs, and store the result in the
5770 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5771 # must be portable across $(()) and expr.
5772 if (eval "test \$
(( 1 + 1 )) = 2") 2>/dev/null; then :
5773 eval 'as_fn_arith ()
5780 as_val=`expr "$@
" || test $? -eq 1`
5785 if expr a : '\(a\)' >/dev/null 2>&1 &&
5786 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
5792 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
5793 as_basename=basename
5798 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
5804 as_me=`$as_basename -- "$0" ||
5805 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5806 X"$0" : 'X\(//\)$' \| \
5807 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5809 sed '/^.*\/\([^/][^/]*\)\/*$/{
5823 # Avoid depending upon Character Ranges.
5824 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5825 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5826 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5827 as_cr_digits='0123456789'
5828 as_cr_alnum=$as_cr_Letters$as_cr_digits
5830 ECHO_C= ECHO_N= ECHO_T=
5831 case `echo -n x` in #(((((
5833 case `echo 'xy\c'` in
5834 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5836 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5843 rm -f conf$$ conf$$.exe conf$$.file
5844 if test -d conf$$.dir; then
5845 rm -f conf$$.dir/conf$$.file
5848 mkdir conf$$.dir 2>/dev/null
5850 if (echo >conf$$.file) 2>/dev/null; then
5851 if ln -s conf$$.file conf$$ 2>/dev/null; then
5853 # ... but there are two gotchas:
5854 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5855 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5856 # In both cases, we have to default to `cp -p'.
5857 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5859 elif ln conf$$.file conf$$ 2>/dev/null; then
5867 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5868 rmdir conf$$.dir 2>/dev/null
5873 # Create "$as_dir" as a directory, including parents if necessary.
5878 -*) as_dir=./$as_dir;;
5880 test -d "$as_dir" || eval $as_mkdir_p || {
5884 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s
/'/'\\\\\\\\''/g
"`;; #'(
5885 *) as_qdir=$as_dir;;
5887 as_dirs="'$as_qdir' $as_dirs"
5888 as_dir=`$as_dirname -- "$as_dir" ||
5889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5890 X"$as_dir" : 'X\(//\)[^/]' \| \
5891 X"$as_dir" : 'X\(//\)$' \| \
5892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5893 $as_echo X"$as_dir" |
5894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5911 test -d "$as_dir" && break
5913 test -z "$as_dirs" || eval "mkdir
$as_dirs"
5914 } || test -d "$as_dir" || as_fn_error "cannot create directory
$as_dir"
5918 if mkdir -p . 2>/dev/null; then
5919 as_mkdir_p='mkdir -p "$as_dir"'
5921 test -d ./-p && rmdir ./-p
5925 if test -x / >/dev/null 2>&1; then
5928 if ls -dL / >/dev/null 2>&1; then
5935 if test -d "$1"; then
5941 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5942 ???[sx]*):;;*)false;;esac;fi
5946 as_executable_p=$as_test_x
5948 # Sed expression to map a string onto a valid CPP name.
5949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5951 # Sed expression to map a string onto a valid variable name.
5952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5956 ## ----------------------------------- ##
5957 ## Main body of $CONFIG_STATUS script. ##
5958 ## ----------------------------------- ##
5960 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5963 # Save the log message, to keep $0 and so on meaningful, and to
5964 # report actual input values of CONFIG_FILES etc. instead of their
5965 # values after options handling.
5967 This
file was extended by
$as_me, which was
5968 generated by GNU Autoconf
2.64. Invocation
command line was
5970 CONFIG_FILES
= $CONFIG_FILES
5971 CONFIG_HEADERS
= $CONFIG_HEADERS
5972 CONFIG_LINKS
= $CONFIG_LINKS
5973 CONFIG_COMMANDS
= $CONFIG_COMMANDS
5976 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
5981 case $ac_config_files in *"
5982 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5985 case $ac_config_headers in *"
5986 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5991 # Files that config.status was made for.
5992 config_files="$ac_config_files"
5993 config_headers="$ac_config_headers"
5994 config_links="$ac_config_links"
5995 config_commands="$ac_config_commands"
5999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6001 \
`$as_me' instantiates files and other configuration actions
6002 from templates according to the current configuration. Unless the files
6003 and actions are specified as TAGs, all are instantiated by default.
6005 Usage: $0 [OPTION]... [TAG]...
6007 -h, --help print this help, then exit
6008 -V, --version print version number and configuration settings, then exit
6009 -q, --quiet, --silent
6010 do not print progress messages
6011 -d, --debug don't remove temporary files
6012 --recheck update $as_me by reconfiguring in the same conditions
6013 --file=FILE[:TEMPLATE]
6014 instantiate the configuration file FILE
6015 --header=FILE[:TEMPLATE]
6016 instantiate the configuration header FILE
6018 Configuration files:
6021 Configuration headers:
6024 Configuration links:
6027 Configuration commands:
6030 Report bugs to the package provider."
6033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6036 configured by $0, generated by GNU Autoconf 2.64,
6037 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6039 Copyright (C) 2009 Free Software Foundation, Inc.
6040 This config.status script is free software; the Free Software Foundation
6041 gives unlimited permission to copy, distribute and modify it."
6046 test -n "\$AWK" || AWK=awk
6049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6050 # The default lists apply if the user does not specify any file.
6056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6057 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6068 # Handling of the options.
6069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6071 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6072 $as_echo "$ac_cs_version"; exit ;;
6073 --debug | --debu | --deb | --de | --d | -d )
6075 --file | --fil | --fi | --f )
6078 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
6080 as_fn_append CONFIG_FILES " '$ac_optarg'"
6081 ac_need_defaults=false;;
6082 --header | --heade | --head | --hea )
6085 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
6087 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6088 ac_need_defaults=false;;
6090 # Conflict between --help and --header
6091 as_fn_error "ambiguous option: \`$1'
6092 Try \`$0 --help' for more information.
";;
6093 --help | --hel | -h )
6094 $as_echo "$ac_cs_usage"; exit ;;
6095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6096 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6100 -*) as_fn_error "unrecognized option
: \
`$1'
6101 Try \`$0 --help' for more information." ;;
6103 *) as_fn_append ac_config_targets " $1"
6104 ac_need_defaults=false ;;
6110 ac_configure_extra_args=
6112 if $ac_cs_silent; then
6114 ac_configure_extra_args="$ac_configure_extra_args --silent"
6118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6119 if \$ac_cs_recheck; then
6120 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6122 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6123 CONFIG_SHELL='$SHELL'
6129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6133 sed 'h
;s
/.
/-/g
;s
/^...
/## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6134 ## Running $as_me. ##
6140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6145 # Handling of arguments.
6146 for ac_config_target
in $ac_config_targets
6148 case $ac_config_target in
6149 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6150 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6151 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6152 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6153 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6154 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6155 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6157 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6162 # If the user did not use the arguments to specify the items to instantiate,
6163 # then the envvar interface is used. Set only those that are not.
6164 # We use the long form for the default assignment because of an extremely
6165 # bizarre bug on SunOS 4.1.3.
6166 if $ac_need_defaults; then
6167 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6168 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6169 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6173 # Have a temporary directory for convenience. Make it in the build tree
6174 # simply because there is no reason against having it here, and in addition,
6175 # creating and moving files from /tmp can sometimes cause problems.
6176 # Hook for its removal unless debugging.
6177 # Note that there is a small window in which the directory will not be cleaned:
6178 # after its creation but before its name has been assigned to `$tmp'.
6182 trap 'exit_status=$?
6183 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6185 trap 'as_fn_exit 1' 1 2 13 15
6187 # Create a (secure) tmp directory for tmp files.
6190 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6191 test -n "$tmp" && test -d "$tmp"
6194 tmp
=.
/conf$$
-$RANDOM
6195 (umask 077 && mkdir
"$tmp")
6196 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6198 # Set up the scripts for CONFIG_FILES section.
6199 # No need to generate them if there are no CONFIG_FILES.
6200 # This happens for instance with `./config.status config.h'.
6201 if test -n "$CONFIG_FILES"; then
6204 ac_cr
=`echo X | tr X '\015'`
6205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6206 # But we know of no other shell where ac_cr would be empty at this
6207 # point, so we can use a bashism as a fallback.
6208 if test "x$ac_cr" = x
; then
6209 eval ac_cr
=\$
\'\\r
\'
6211 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6218 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6223 echo "cat >conf$$subs.awk <<_ACEOF" &&
6224 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6227 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6228 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6230 for ac_last_try in false false false false false :; do
6231 . ./conf$$subs.sh ||
6232 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6234 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6235 if test $ac_delim_n = $ac_delim_num; then
6237 elif $ac_last_try; then
6238 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6240 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6246 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6250 s/^/S["/; s
/!.
*/"]=/
6260 s/\(.\{148\}\).*/\1/
6262 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6267 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6274 s/\(.\{148\}\).*/\1/
6276 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6280 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6285 ' <conf$$subs.awk | sed '
6290 ' >>$CONFIG_STATUS || ac_write_fail=1
6291 rm -f conf$$subs.awk
6292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6294 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6295 for (key in S) S_is_set[key] = 1
6301 nfields = split(line, field, "@
")
6303 len = length(field[1])
6304 for (i = 2; i < nfields; i++) {
6306 keylen = length(key)
6307 if (S_is_set[key]) {
6309 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6310 len += length(value) + length(field[++i])
6321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6322 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6323 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6326 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6327 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6330 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6331 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6332 # trailing colons and then remove the whole line if VPATH becomes empty
6333 # (actually we leave an empty line to preserve line numbers).
6334 if test "x
$srcdir" = x.; then
6335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6339 s/^\([^=]*=[ ]*\):*/\1/
6345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6346 fi # test -n "$CONFIG_FILES"
6348 # Set up the scripts for CONFIG_HEADERS section.
6349 # No need to generate them if there are no CONFIG_HEADERS.
6350 # This happens for instance with `./config.status Makefile'.
6351 if test -n "$CONFIG_HEADERS"; then
6352 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6356 # Transform confdefs.h into an awk script `defines.awk', embedded as
6357 # here-document in config.status, that substitutes the proper values into
6358 # config.h.in to produce config.h.
6360 # Create a delimiter string that does not exist in confdefs.h, to ease
6361 # handling of long lines.
6363 for ac_last_try in false false :; do
6364 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6365 if test -z "$ac_t"; then
6367 elif $ac_last_try; then
6368 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6370 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6374 # For the awk script, D is an array of macro values keyed by name,
6375 # likewise P contains macro parameters if any. Preserve backslash
6376 # newline sequences.
6378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6380 s/.\{148\}/&'"$ac_delim"'/g
6383 s/^[ ]*#[ ]*define[ ][ ]*/ /
6390 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6392 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6396 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6397 D["\
1"]=" \
3\\\\\\n
"\\/p
6399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6404 s/.\{148\}/&'"$ac_delim"'/g
6409 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6412 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6414 ' <confdefs.h | sed '
6415 s/'"$ac_delim"'/"\\\
6416 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6419 for (key in D) D_is_set[key] = 1
6422 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6424 split(line, arg, " ")
6425 if (arg[1] == "#") {
6429 defundef
= substr
(arg
[1], 2)
6432 split(mac1
, mac2
, "(") #)
6434 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6435 if (D_is_set
[macro
]) {
6436 # Preserve the white space surrounding the "#".
6437 print prefix
"define", macro P
[macro
] D
[macro
]
6440 # Replace #undef with comments. This is necessary, for example,
6441 # in the case of _POSIX_SOURCE, which is predefined and required
6442 # on some systems where configure will not decide to define it.
6443 if (defundef
== "undef") {
6444 print
"/*", prefix defundef
, macro
, "*/"
6452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6453 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6454 fi # test -n "$CONFIG_HEADERS"
6457 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
6462 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6464 case $ac_mode$ac_tag in
6466 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6467 :[FH
]-) ac_tag
=-:-;;
6468 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6485 -) ac_f
="$tmp/stdin";;
6486 *) # Look for the file first in the build tree, then in the source tree
6487 # (if the path is not absolute). The absolute path cannot be DOS-style,
6488 # because $ac_f cannot contain `:'.
6492 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6494 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6496 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6497 as_fn_append ac_file_inputs
" '$ac_f'"
6500 # Let's still pretend it is `configure' which instantiates (i.e., don't
6501 # use $as_me), people would be surprised to read:
6502 # /* config.h. Generated by config.status. */
6503 configure_input
='Generated from '`
6504 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6506 if test x
"$ac_file" != x-
; then
6507 configure_input
="$ac_file. $configure_input"
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6509 $as_echo "$as_me: creating $ac_file" >&6;}
6511 # Neutralize special characters interpreted by sed in replacement strings.
6512 case $configure_input in #(
6513 *\
&* |
*\|
* |
*\\* )
6514 ac_sed_conf_input
=`$as_echo "$configure_input" |
6515 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6516 *) ac_sed_conf_input
=$configure_input;;
6520 *:-:* |
*:-) cat >"$tmp/stdin" \
6521 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
6526 ac_dir
=`$as_dirname -- "$ac_file" ||
6527 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6528 X"$ac_file" : 'X\(//\)[^/]' \| \
6529 X"$ac_file" : 'X\(//\)$' \| \
6530 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6531 $as_echo X"$ac_file" |
6532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6549 as_dir
="$ac_dir"; as_fn_mkdir_p
6553 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6555 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6556 # A ".." for each directory in $ac_dir_suffix.
6557 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6558 case $ac_top_builddir_sub in
6559 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6560 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6563 ac_abs_top_builddir
=$ac_pwd
6564 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6565 # for backward compatibility:
6566 ac_top_builddir
=$ac_top_build_prefix
6569 .
) # We are building in place.
6571 ac_top_srcdir
=$ac_top_builddir_sub
6572 ac_abs_top_srcdir
=$ac_pwd ;;
6573 [\\/]* | ?
:[\\/]* ) # Absolute name.
6574 ac_srcdir
=$srcdir$ac_dir_suffix;
6575 ac_top_srcdir
=$srcdir
6576 ac_abs_top_srcdir
=$srcdir ;;
6578 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6579 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6580 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6582 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6592 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6593 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6598 # If the template does not know about datarootdir, expand it.
6599 # FIXME: This hack should be removed a few years after 2.60.
6600 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6611 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6612 *datarootdir
*) ac_datarootdir_seen
=yes;;
6613 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6615 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6618 ac_datarootdir_hack='
6619 s&@datadir@&$datadir&g
6620 s&@docdir@&$docdir&g
6621 s&@infodir@&$infodir&g
6622 s&@localedir@&$localedir&g
6623 s&@mandir@&$mandir&g
6624 s&\\\${datarootdir}&$datarootdir&g' ;;
6628 # Neutralize VPATH when `$srcdir' = `.'.
6629 # Shell code in configure.ac might set extrasub.
6630 # FIXME: do we really want to maintain this feature?
6631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6632 ac_sed_extra="$ac_vpsub
6635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6637 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6638 s|@configure_input@|
$ac_sed_conf_input|
;t t
6639 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6640 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6641 s
&@srcdir@
&$ac_srcdir&;t t
6642 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6643 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6644 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6645 s
&@builddir@
&$ac_builddir&;t t
6646 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6647 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6648 s
&@INSTALL@
&$ac_INSTALL&;t t
6649 $ac_datarootdir_hack
6651 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
6652 || as_fn_error "could not create
$ac_file" "$LINENO" 5
6654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6655 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
6656 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6658 which seems to be undefined. Please make sure it is defined." >&5
6659 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6660 which seems to be undefined. Please make sure it is defined." >&2;}
6664 -) cat "$tmp/out" && rm -f "$tmp/out";;
6665 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6667 || as_fn_error "could not create $ac_file" "$LINENO" 5
6673 if test x"$ac_file" != x-; then
6675 $as_echo "/* $configure_input */" \
6676 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6677 } >"$tmp/config.h" \
6678 || as_fn_error "could not create $ac_file" "$LINENO" 5
6679 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6681 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6684 mv "$tmp/config.h" "$ac_file" \
6685 || as_fn_error "could not create $ac_file" "$LINENO" 5
6688 $as_echo "/* $configure_input */" \
6689 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6690 || as_fn_error "could not create -" "$LINENO" 5
6698 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
6701 # Prefer the file from the source tree if names are identical.
6702 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
6703 ac_source=$srcdir/$ac_source
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
6707 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
6709 if test ! -r "$ac_source"; then
6710 as_fn_error "$ac_source: file not found" "$LINENO" 5
6714 # Try a relative symlink, then a hard link, then a copy.
6716 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
6717 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
6719 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
6720 ln "$ac_source" "$ac_file" 2>/dev/null ||
6721 cp -p "$ac_source" "$ac_file" ||
6722 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
6725 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6726 $as_echo "$as_me: executing $ac_file commands" >&6;}
6731 case $ac_file$ac_mode in
6732 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6733 rm -f Makesim1.tmp Makesim2.tmp Makefile
6734 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6735 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
6736 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6737 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6738 <Makefile.sim
>Makefile
6739 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6741 "stamp-h":C
) echo > stamp-h
;;
6749 ac_clean_files
=$ac_clean_files_save
6751 test $ac_write_fail = 0 ||
6752 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
6755 # configure is writing to config.log, and then calls config.status.
6756 # config.status does its own redirection, appending to config.log.
6757 # Unfortunately, on DOS this fails, as config.log is still kept open
6758 # by configure, so config.status won't be able to write to it; its
6759 # output is simply discarded. So we exec the FD to /dev/null,
6760 # effectively closing config.log, so it can be properly (re)opened and
6761 # appended to by config.status. When coming back to configure, we
6762 # need to make the FD available again.
6763 if test "$no_create" != yes; then
6765 ac_config_status_args
=
6766 test "$silent" = yes &&
6767 ac_config_status_args
="$ac_config_status_args --quiet"
6769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6772 # would make configure fail if this is the last instruction.
6773 $ac_cs_success || as_fn_exit $?
6775 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6777 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}