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
705 program_transform_name
718 enable_option_checking
720 enable_maintainer_mode
731 enable_sim_hostendian
732 enable_sim_default_model
733 enable_sim_environment
735 enable_build_warnings
736 enable_sim_build_warnings
739 ac_precious_vars
='build_alias
755 # Initialize some variables set by options.
757 ac_init_version
=false
758 ac_unrecognized_opts
=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name
=s
,x
,x
,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir
='${exec_prefix}/bin'
784 sbindir
='${exec_prefix}/sbin'
785 libexecdir
='${exec_prefix}/libexec'
786 datarootdir
='${prefix}/share'
787 datadir
='${datarootdir}'
788 sysconfdir
='${prefix}/etc'
789 sharedstatedir
='${prefix}/com'
790 localstatedir
='${prefix}/var'
791 includedir
='${prefix}/include'
792 oldincludedir
='/usr/include'
793 docdir
='${datarootdir}/doc/${PACKAGE}'
794 infodir
='${datarootdir}/info'
799 libdir
='${exec_prefix}/lib'
800 localedir
='${datarootdir}/locale'
801 mandir
='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\
$ac_option
815 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
825 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
827 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
830 -build |
--build |
--buil |
--bui |
--bu)
831 ac_prev
=build_alias
;;
832 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
833 build_alias
=$ac_optarg ;;
835 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
836 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
837 ac_prev
=cache_file
;;
838 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
839 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
840 cache_file
=$ac_optarg ;;
843 cache_file
=config.cache
;;
845 -datadir |
--datadir |
--datadi |
--datad)
847 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
848 datadir
=$ac_optarg ;;
850 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
851 |
--dataroo |
--dataro |
--datar)
852 ac_prev
=datarootdir
;;
853 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
854 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
855 datarootdir
=$ac_optarg ;;
857 -disable-* |
--disable-*)
858 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
861 as_fn_error
"invalid feature name: $ac_useropt"
862 ac_useropt_orig
=$ac_useropt
863 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
868 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869 ac_unrecognized_sep
=', ';;
871 eval enable_
$ac_useropt=no
;;
873 -docdir |
--docdir |
--docdi |
--doc |
--do)
875 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
878 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
880 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
883 -enable-* |
--enable-*)
884 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
887 as_fn_error
"invalid feature name: $ac_useropt"
888 ac_useropt_orig
=$ac_useropt
889 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep
=', ';;
897 eval enable_
$ac_useropt=\
$ac_optarg ;;
899 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
900 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
901 |
--exec |
--exe |
--ex)
902 ac_prev
=exec_prefix
;;
903 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
904 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
905 |
--exec=* |
--exe=* |
--ex=*)
906 exec_prefix
=$ac_optarg ;;
908 -gas |
--gas |
--ga |
--g)
909 # Obsolete; use --with-gas.
912 -help |
--help |
--hel |
--he |
-h)
914 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
915 ac_init_help
=recursive
;;
916 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
917 ac_init_help
=short
;;
919 -host |
--host |
--hos |
--ho)
920 ac_prev
=host_alias
;;
921 -host=* |
--host=* |
--hos=* |
--ho=*)
922 host_alias
=$ac_optarg ;;
924 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
926 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
928 htmldir
=$ac_optarg ;;
930 -includedir |
--includedir |
--includedi |
--included |
--include \
931 |
--includ |
--inclu |
--incl |
--inc)
932 ac_prev
=includedir
;;
933 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
934 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
935 includedir
=$ac_optarg ;;
937 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
939 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
940 infodir
=$ac_optarg ;;
942 -libdir |
--libdir |
--libdi |
--libd)
944 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
947 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
948 |
--libexe |
--libex |
--libe)
949 ac_prev
=libexecdir
;;
950 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
951 |
--libexe=* |
--libex=* |
--libe=*)
952 libexecdir
=$ac_optarg ;;
954 -localedir |
--localedir |
--localedi |
--localed |
--locale)
956 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
957 localedir
=$ac_optarg ;;
959 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
960 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
961 ac_prev
=localstatedir
;;
962 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
963 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
964 localstatedir
=$ac_optarg ;;
966 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
968 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
972 # Obsolete; use --without-fp.
975 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
976 |
--no-cr |
--no-c |
-n)
979 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
980 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
983 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
984 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
985 |
--oldin |
--oldi |
--old |
--ol |
--o)
986 ac_prev
=oldincludedir
;;
987 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
988 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
989 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
990 oldincludedir
=$ac_optarg ;;
992 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
994 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
997 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
998 |
--program-pre |
--program-pr |
--program-p)
999 ac_prev
=program_prefix
;;
1000 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1001 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1002 program_prefix
=$ac_optarg ;;
1004 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1005 |
--program-suf |
--program-su |
--program-s)
1006 ac_prev
=program_suffix
;;
1007 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1008 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1009 program_suffix
=$ac_optarg ;;
1011 -program-transform-name |
--program-transform-name \
1012 |
--program-transform-nam |
--program-transform-na \
1013 |
--program-transform-n |
--program-transform- \
1014 |
--program-transform |
--program-transfor \
1015 |
--program-transfo |
--program-transf \
1016 |
--program-trans |
--program-tran \
1017 |
--progr-tra |
--program-tr |
--program-t)
1018 ac_prev
=program_transform_name
;;
1019 -program-transform-name=* |
--program-transform-name=* \
1020 |
--program-transform-nam=* |
--program-transform-na=* \
1021 |
--program-transform-n=* |
--program-transform-=* \
1022 |
--program-transform=* |
--program-transfor=* \
1023 |
--program-transfo=* |
--program-transf=* \
1024 |
--program-trans=* |
--program-tran=* \
1025 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1026 program_transform_name
=$ac_optarg ;;
1028 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1030 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1031 pdfdir
=$ac_optarg ;;
1033 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1035 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1038 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1039 |
-silent |
--silent |
--silen |
--sile |
--sil)
1042 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1044 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1046 sbindir
=$ac_optarg ;;
1048 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1049 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1050 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1052 ac_prev
=sharedstatedir
;;
1053 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1054 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1055 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1057 sharedstatedir
=$ac_optarg ;;
1059 -site |
--site |
--sit)
1061 -site=* |
--site=* |
--sit=*)
1064 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1066 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1067 srcdir
=$ac_optarg ;;
1069 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1070 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1071 ac_prev
=sysconfdir
;;
1072 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1073 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1074 sysconfdir
=$ac_optarg ;;
1076 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1077 ac_prev
=target_alias
;;
1078 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1079 target_alias
=$ac_optarg ;;
1081 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1084 -version |
--version |
--versio |
--versi |
--vers |
-V)
1085 ac_init_version
=: ;;
1088 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error
"invalid package name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval with_
$ac_useropt=\
$ac_optarg ;;
1103 -without-* |
--without-*)
1104 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error
"invalid package name: $ac_useropt"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval with_
$ac_useropt=no
;;
1120 # Obsolete; use --with-x.
1123 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1124 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1125 ac_prev
=x_includes
;;
1126 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1127 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1128 x_includes
=$ac_optarg ;;
1130 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1131 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1132 ac_prev
=x_libraries
;;
1133 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1134 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1135 x_libraries
=$ac_optarg ;;
1137 -*) as_fn_error
"unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information."
1142 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 case $ac_envvar in #(
1145 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1146 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1148 eval $ac_envvar=\
$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 if test -n "$ac_prev"; then
1163 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1164 as_fn_error
"missing argument to $ac_option"
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1170 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 # Check all directory arguments for consistency.
1176 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val
=\$
$ac_var
1182 # Remove trailing slashes.
1185 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186 eval $ac_var=\
$ac_val;;
1188 # Be sure to have absolute directory names.
1190 [\\/$
]* | ?
:[\\/]* ) continue;;
1191 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1193 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1201 target
=$target_alias
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x
; then
1205 if test "x$build_alias" = x
; then
1206 cross_compiling
=maybe
1207 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used." >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1215 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1217 test "$silent" = yes && exec 6>/dev
/null
1220 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di
=`ls -di .` &&
1222 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1223 as_fn_error
"working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 as_fn_error
"pwd does not report name of working directory"
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted
=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir
=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1260 ac_srcdir_defaulted
=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1264 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1266 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1278 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 for ac_var
in $ac_precious_vars; do
1281 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1283 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1294 \`configure' configures this package to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1352 --program-prefix=PREFIX prepend PREFIX to installed program names
1353 --program-suffix=SUFFIX append SUFFIX to installed program names
1354 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1357 --build=BUILD configure
for building on BUILD
[guessed
]
1358 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1359 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1363 if test -n "$ac_init_help"; then
1368 --disable-option-checking ignore unrecognized
--enable/--with options
1369 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1370 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1371 --enable-maintainer-mode Enable developer functionality.
1372 --enable-sim-bswap Use Host specific BSWAP instruction.
1373 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1374 --enable-sim-debug=opts Enable debugging flags
1375 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1376 --enable-sim-trace=opts Enable tracing flags
1377 --enable-sim-profile=opts Enable profiling flags
1378 --enable-sim-endian=endian Specify target byte endian orientation.
1379 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
1380 --enable-sim-hostendian=end Specify
host byte endian orientation.
1381 --enable-sim-default-model=model Specify default model to simulate.
1382 --enable-sim-environment=environment Specify mixed
, user
, virtual or operating environment.
1383 --enable-sim-inline=inlines Specify
which functions should be inlined.
1384 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
1385 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
1386 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1389 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1390 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1391 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1392 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1393 --with-bugurl=URL Direct users to URL to report a bug
1395 Some influential environment variables
:
1396 CC C compiler
command
1397 CFLAGS C compiler flags
1398 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1399 nonstandard directory
<lib dir
>
1400 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1401 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1402 you have headers
in a nonstandard directory
<include dir
>
1404 PKG_CONFIG path to pkg-config utility
1406 directories to add to pkg-config
's search path
1408 path overriding pkg-config's built-in search path
1409 SDL_CFLAGS C compiler flags
for SDL
, overriding pkg-config
1410 SDL_LIBS linker flags
for SDL
, overriding pkg-config
1412 Use these variables to override the choices made by
`configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to the package provider.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1445 .) # We are building in place.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1479 generated by GNU Autoconf 2.64
1481 Copyright (C) 2009 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1502 *) ac_try_echo
=$ac_try;;
1504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1508 if test -s conftest.err
; then
1509 grep -v '^ *+' conftest.err
>conftest.er1
1510 cat conftest.er1
>&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.
$ac_objext; then :
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.
$ac_ext >&5
1525 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1528 } # ac_fn_c_try_compile
1530 # ac_fn_c_try_cpp LINENO
1531 # ----------------------
1532 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1536 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } >/dev/null && {
1552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1568 # -------------------------------------------------------
1569 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1570 # the include files in INCLUDES and setting the cache variable VAR
1572 ac_fn_c_check_header_mongrel ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577 $as_echo_n "checking for $2... " >&6; }
1578 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1579 $as_echo_n "(cached) " >&6
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583 $as_echo "$ac_res" >&6; }
1585 # Is the header compilable?
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1587 $as_echo_n "checking $2 usability... " >&6; }
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1593 if ac_fn_c_try_compile "$LINENO"; then :
1594 ac_header_compiler=yes
1596 ac_header_compiler=no
1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1600 $as_echo "$ac_header_compiler" >&6; }
1602 # Is the header present?
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1604 $as_echo_n "checking $2 presence... " >&6; }
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1609 if ac_fn_c_try_cpp "$LINENO"; then :
1610 ac_header_preproc=yes
1612 ac_header_preproc=no
1614 rm -f conftest.err conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1616 $as_echo "$ac_header_preproc" >&6; }
1618 # So? What about this header?
1619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1622 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1628 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1630 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1632 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1634 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1642 $as_echo_n "(cached) " >&6
1644 eval "$3=\$ac_header_compiler"
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652 } # ac_fn_c_check_header_mongrel
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_link"
1663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1664 *) ac_try_echo
=$ac_try;;
1666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>&5
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1672 { { case "(($ac_try" in
1673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_try") 2>&5
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; }; }; then :
1684 $as_echo "$as_me: program exited with status $ac_status" >&5
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1688 ac_retval=$ac_status
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists and can be compiled using the include files in
1699 # INCLUDES, setting the cache variable VAR accordingly.
1700 ac_fn_c_check_header_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706 $as_echo_n "(cached) " >&6
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1713 if ac_fn_c_try_compile "$LINENO"; then :
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 } # ac_fn_c_check_header_compile
1727 # ac_fn_c_try_link LINENO
1728 # -----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest$ac_exeext
1734 if { { ac_try="$ac_link"
1736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1737 *) ac_try_echo
=$ac_try;;
1739 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>conftest.err
1743 if test -s conftest.err
; then
1744 grep -v '^ *+' conftest.err
>conftest.er1
1745 cat conftest.er1
>&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest
$ac_exeext && {
1753 test "$cross_compiling" = yes ||
1754 $as_test_x conftest
$ac_exeext
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.
$ac_ext >&5
1763 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765 # interfere with the next link command; also delete a directory that is
1766 # left behind by Apple's compiler. We do this before executing the actions.
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1771 } # ac_fn_c_try_link
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func
()
1778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1796 # include <limits.h>
1798 # include <assert.h>
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1825 if ac_fn_c_try_link
"$LINENO"; then :
1830 rm -f core conftest.err conftest.
$ac_objext \
1831 conftest
$ac_exeext conftest.
$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1838 } # ac_fn_c_check_func
1839 cat >config.log
<<_ACEOF
1840 This file contains any messages produced by compilers while
1841 running configure, to aid debugging if configure makes a mistake.
1843 It was created by $as_me, which was
1844 generated by GNU Autoconf 2.64. Invocation command line was
1856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1866 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1869 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1870 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1871 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir
=.
1880 $as_echo "PATH: $as_dir"
1896 # Keep a trace of the command line.
1897 # Strip out --no-create and --no-recursion so they do not pile up.
1898 # Strip out --silent because we don't want to record it for future runs.
1899 # Also quote any args containing shell meta-characters.
1900 # Make two passes to allow for proper duplicate-argument suppression.
1904 ac_must_keep_next
=false
1910 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1911 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1912 |
-silent |
--silent |
--silen |
--sile |
--sil)
1915 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1920 as_fn_append ac_configure_args1
" '$ac_arg'"
1921 if test $ac_must_keep_next = true
; then
1922 ac_must_keep_next
=false
# Got value, back to normal.
1925 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1926 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1927 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1928 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1929 case "$ac_configure_args0 " in
1930 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1933 -* ) ac_must_keep_next
=true
;;
1936 as_fn_append ac_configure_args
" '$ac_arg'"
1941 { ac_configure_args0
=; unset ac_configure_args0
;}
1942 { ac_configure_args1
=; unset ac_configure_args1
;}
1944 # When interrupted or exit'd, cleanup temporary files, and complete
1945 # config.log. We remove comments because anyway the quotes in there
1946 # would cause problems or look ugly.
1947 # WARNING: Use '\'' to represent an apostrophe within the trap.
1948 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949 trap 'exit_status=$?
1950 # Save into config.log some information that might help in debugging.
1955 ## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##
1960 # The following way of writing the cache mishandles newlines in values,
1962 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963 eval ac_val=\$$ac_var
1967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1971 _ | IFS | as_nl) ;; #(
1972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1973 *) { eval $ac_var=; unset $ac_var;} ;;
1978 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979 *${as_nl}ac_space=\ *)
1981 "s/'\''/'\''\\\\'\'''\''/g;
1982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1993 ## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##
1998 for ac_var in $ac_subst_vars
2000 eval ac_val=\$$ac_var
2002 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 $as_echo "$ac_var='\''$ac_val'\''"
2008 if test -n "$ac_subst_files"; then
2010 ## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##
2015 for ac_var
in $ac_subst_files
2017 eval ac_val
=\$
$ac_var
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 $as_echo "$ac_var='\''$ac_val'\''"
2026 if test -s confdefs.h; then
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2044 for ac_signal
in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest
* confdefs.h
2052 $as_echo "/* confdefs.h */" > confdefs.h
2054 # Predefined preprocessor variables.
2056 cat >>confdefs.h
<<_ACEOF
2057 #define PACKAGE_NAME "$PACKAGE_NAME"
2060 cat >>confdefs.h
<<_ACEOF
2061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 cat >>confdefs.h
<<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2068 cat >>confdefs.h
<<_ACEOF
2069 #define PACKAGE_STRING "$PACKAGE_STRING"
2072 cat >>confdefs.h
<<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2076 cat >>confdefs.h
<<_ACEOF
2077 #define PACKAGE_URL "$PACKAGE_URL"
2081 # Let the site file select an alternate cache file if it wants to.
2082 # Prefer an explicitly selected file to automatically selected ones.
2085 if test -n "$CONFIG_SITE"; then
2086 ac_site_file1
=$CONFIG_SITE
2087 elif test "x$prefix" != xNONE
; then
2088 ac_site_file1
=$prefix/share
/config.site
2089 ac_site_file2
=$prefix/etc
/config.site
2091 ac_site_file1
=$ac_default_prefix/share
/config.site
2092 ac_site_file2
=$ac_default_prefix/etc
/config.site
2094 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2096 test "x$ac_site_file" = xNONE
&& continue
2097 if test -r "$ac_site_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2099 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100 sed 's/^/| /' "$ac_site_file" >&5
2105 if test -r "$cache_file"; then
2106 # Some versions of bash will fail to source /dev/null (special
2107 # files actually), so we avoid doing that.
2108 if test -f "$cache_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110 $as_echo "$as_me: loading cache $cache_file" >&6;}
2112 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2113 *) .
"./$cache_file";;
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118 $as_echo "$as_me: creating cache $cache_file" >&6;}
2122 # Check that the precious variables saved in the cache have kept the same
2124 ac_cache_corrupted
=false
2125 for ac_var
in $ac_precious_vars; do
2126 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2127 eval ac_new_set
=\
$ac_env_${ac_var}_set
2128 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2129 eval ac_new_val
=\
$ac_env_${ac_var}_value
2130 case $ac_old_set,$ac_new_set in
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134 ac_cache_corrupted
=: ;;
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138 ac_cache_corrupted
=: ;;
2141 if test "x$ac_old_val" != "x$ac_new_val"; then
2142 # differences in whitespace do not lead to failure.
2143 ac_old_val_w
=`echo x $ac_old_val`
2144 ac_new_val_w
=`echo x $ac_new_val`
2145 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148 ac_cache_corrupted
=:
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152 eval $ac_var=\
$ac_old_val
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2155 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2157 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2160 # Pass precious variables to config.status.
2161 if test "$ac_new_set" = set; then
2163 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164 *) ac_arg
=$ac_var=$ac_new_val ;;
2166 case " $ac_configure_args " in
2167 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2168 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2172 if $ac_cache_corrupted; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179 ## -------------------- ##
2180 ## Main body of script. ##
2181 ## -------------------- ##
2184 ac_cpp
='$CPP $CPPFLAGS'
2185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2190 # This file contains common code used by all simulators.
2192 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2193 # directory. It is intended to be invoked before any target specific stuff.
2194 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2195 # It is intended to be invoked last.
2197 # The simulator's configure.in should look like:
2199 # dnl Process this file with autoconf to produce a configure script.
2200 # AC_PREREQ(2.64)dnl
2201 # AC_INIT(Makefile.in)
2202 # sinclude(../common/aclocal.m4)
2206 # ... target specific stuff ...
2210 # Include global overrides and fixes for Autoconf.
2237 # _AC_CHECK_DECL_BODY
2238 # -------------------
2239 # Shell function body for AC_CHECK_DECL.
2240 # _AC_CHECK_DECL_BODY
2242 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2244 # -------------------------------------------------------------
2245 # Helper to AC_CHECK_DECLS, which generates the check for a single
2246 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2247 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2260 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
2261 # Free Software Foundation, Inc.
2263 # This file is free software; the Free Software Foundation
2264 # gives unlimited permission to copy and/or distribute it,
2265 # with or without modifications, as long as this notice is preserved.
2269 # Based on depend.m4 from automake 1.9, modified for standalone use in
2270 # an environment where GNU make is required.
2272 # ZW_PROG_COMPILER_DEPENDENCIES
2273 # -----------------------------
2274 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
2275 # sets fooDEPMODE accordingly. Cache-variable compatible with
2276 # original; not side-effect compatible. As the users of this macro
2277 # may require accurate dependencies for correct builds, it does *not*
2278 # honor --disable-dependency-checking, and failure to detect a usable
2279 # method is an error. depcomp is assumed to be located in
2282 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
2288 # Choose a directory name for dependency files.
2293 # As AM_SET_DEPDIR, but also create the directory at config.status time.
2344 sim_inline
="-DDEFAULT_INLINE=0"
2381 # intl sister-directory configuration rules.
2384 # The idea behind this macro is that there's no need to repeat all the
2385 # autoconf probes done by the intl directory - it's already done them
2386 # for us. In fact, there's no need even to look at the cache for the
2387 # answers. All we need to do is nab a few pieces of information.
2388 # The intl directory is set up to make this easy, by generating a
2389 # small file which can be sourced as a shell script; then we produce
2390 # the necessary substitutions and definitions for this directory.
2394 # Autoconf M4 include file defining utility macros for complex Canadian
2406 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2408 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2411 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2412 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2416 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2417 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2421 # Backported from Autoconf 2.5x; can go away when and if
2422 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2427 # ACX_HAVE_GCC_FOR_TARGET
2428 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2431 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2432 # Searching for installed target binutils. We need to take extra care,
2433 # else we may find the wrong assembler, linker, etc., and lose.
2435 # First try --with-build-time-tools, if specified.
2437 # For build != host, we ask the installed GCC for the name of the tool it
2438 # uses, and accept it if it is an absolute path. This is because the
2439 # only good choice for a compiler is the same GCC version that is being
2440 # installed (or we couldn't make target libraries), and we assume that
2441 # on the host system we'll have not only the same GCC version, but also
2442 # the same binutils version.
2444 # For build == host, search the same directories that the installed
2445 # compiler will search. We used to do this for the assembler, linker,
2446 # and nm only; for simplicity of configuration, however, we extend this
2447 # criterion to tools (such as ar and ranlib) that are never invoked by
2448 # the compiler, to avoid mismatches.
2450 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2451 # if build == target. This makes the most sense only when bootstrapping,
2452 # but we also do so when build != host. In this case, we hope that the
2453 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2455 # If we do not find a suitable binary, then try the user's path.
2459 # AC_PROG_CPP_WERROR
2460 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2461 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2462 # For now, using this also overrides header checks to use only the
2463 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2464 # bit harder from here).
2465 # Eventually autoconf will default to checking headers with the compiler
2466 # instead, and we'll have to do this differently.
2468 # AC_PROG_CPP_WERROR
2471 # We require the gnatbind program, and a compiler driver that
2472 # understands Ada. We use the user's CC setting, already found,
2473 # and possibly add $1 to the command-line parameters.
2475 # Sets the shell variable have_gnat to yes or no as appropriate, and
2476 # substitutes GNATBIND and GNATMAKE.
2503 ac_cpp
='$CPP $CPPFLAGS'
2504 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2507 if test -n "$ac_tool_prefix"; then
2508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2509 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if test "${ac_cv_prog_CC+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC
="$CC" # Let the user override the test.
2518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2522 test -z "$as_dir" && as_dir
=.
2523 for ac_exec_ext
in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 if test -n "$CC"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2538 $as_echo "$CC" >&6; }
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2546 if test -z "$ac_cv_prog_CC"; then
2548 # Extract the first word of "gcc", so it can be a program name with args.
2549 set dummy gcc
; ac_word
=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2553 $as_echo_n "(cached) " >&6
2555 if test -n "$ac_ct_CC"; then
2556 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir
=.
2563 for ac_exec_ext
in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_ac_ct_CC
="gcc"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2576 if test -n "$ac_ct_CC"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2578 $as_echo "$ac_ct_CC" >&6; }
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2584 if test "x$ac_ct_CC" = x
; then
2587 case $cross_compiling:$ac_tool_warned in
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2591 ac_tool_warned
=yes ;;
2599 if test -z "$CC"; then
2600 if test -n "$ac_tool_prefix"; then
2601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2602 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC
="$CC" # Let the user override the test.
2611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir
=.
2616 for ac_exec_ext
in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 if test -n "$CC"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2631 $as_echo "$CC" >&6; }
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2640 if test -z "$CC"; then
2641 # Extract the first word of "cc", so it can be a program name with args.
2642 set dummy cc
; ac_word
=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_CC+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC
="$CC" # Let the user override the test.
2652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir
=.
2657 for ac_exec_ext
in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2660 ac_prog_rejected
=yes
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 if test $ac_prog_rejected = yes; then
2672 # We found a bogon in the path, so make sure we never use it.
2673 set dummy
$ac_cv_prog_CC
2675 if test $# != 0; then
2676 # We chose a different compiler from the bogus one.
2677 # However, it has the same basename, so the bogon will be chosen
2678 # first if we set CC to just the basename; use the full file name.
2680 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2686 if test -n "$CC"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2688 $as_echo "$CC" >&6; }
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2696 if test -z "$CC"; then
2697 if test -n "$ac_tool_prefix"; then
2698 for ac_prog
in cl.exe
2700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2701 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_CC+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC
="$CC" # Let the user override the test.
2710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir
=.
2715 for ac_exec_ext
in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2737 test -n "$CC" && break
2740 if test -z "$CC"; then
2742 for ac_prog
in cl.exe
2744 # Extract the first word of "$ac_prog", so it can be a program name with args.
2745 set dummy
$ac_prog; ac_word
=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2749 $as_echo_n "(cached) " >&6
2751 if test -n "$ac_ct_CC"; then
2752 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir
=.
2759 for ac_exec_ext
in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 ac_cv_prog_ac_ct_CC
="$ac_prog"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2772 if test -n "$ac_ct_CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2774 $as_echo "$ac_ct_CC" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2781 test -n "$ac_ct_CC" && break
2784 if test "x$ac_ct_CC" = x
; then
2787 case $cross_compiling:$ac_tool_warned in
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2791 ac_tool_warned
=yes ;;
2800 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802 as_fn_error
"no acceptable C compiler found in \$PATH
2803 See \`config.log' for more details." "$LINENO" 5; }
2805 # Provide some information about the compiler.
2806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2809 for ac_option
in --version -v -V -qversion; do
2810 { { ac_try
="$ac_compiler $ac_option >&5"
2812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2816 $as_echo "$ac_try_echo"; } >&5
2817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2819 if test -s conftest.err; then
2821 ... rest of stderr output deleted ...
2822 10q' conftest.err >conftest.er1
2823 cat conftest.er1 >&5
2824 rm -f conftest.er1 conftest.err
2826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827 test $ac_status = 0; }
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2841 ac_clean_files_save=$ac_clean_files
2842 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2843 # Try to create an executable without -o first, disregard a.out.
2844 # It will help us diagnose broken compilers, and finding out an intuition
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2847 $as_echo_n "checking for C compiler default output file name... " >&6; }
2848 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2850 # The possible output files:
2851 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2854 for ac_file in $ac_files
2857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2858 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2863 if { { ac_try="$ac_link_default"
2865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2866 *) ac_try_echo
=$ac_try;;
2868 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869 $as_echo "$ac_try_echo"; } >&5
2870 (eval "$ac_link_default") 2>&5
2872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2873 test $ac_status = 0; }; then :
2874 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2876 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2877 # so that the user can short-circuit this test for compilers unknown to
2879 for ac_file
in $ac_files ''
2881 test -f "$ac_file" ||
continue
2883 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2886 # We found the default executable, but exeext='' is most
2890 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2892 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2894 # We set ac_cv_exeext here because the later test for it is not
2895 # safe: cross compilers may not add the suffix if given an `-o'
2896 # argument, so we may need to know it at that point already.
2897 # Even if this section looks crufty: it has the advantage of
2904 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2910 $as_echo "$ac_file" >&6; }
2911 if test -z "$ac_file"; then :
2912 $as_echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.
$ac_ext >&5
2915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 { as_fn_set_status
77
2918 as_fn_error
"C compiler cannot create executables
2919 See \`config.log' for more details." "$LINENO" 5; }; }
2921 ac_exeext
=$ac_cv_exeext
2923 # Check that the compiler produces executables we can run. If not, either
2924 # the compiler is broken, or we cross compile.
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2926 $as_echo_n "checking whether the C compiler works... " >&6; }
2927 # If not cross compiling, check that we can run a simple program.
2928 if test "$cross_compiling" != yes; then
2929 if { ac_try
='./$ac_file'
2930 { { case "(($ac_try" in
2931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2935 $as_echo "$ac_try_echo"; } >&5
2936 (eval "$ac_try") 2>&5
2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }; }; then
2942 if test "$cross_compiling" = maybe; then
2945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 as_fn_error "cannot run C compiled programs.
2948 If you meant to cross compile
, use \
`--host'.
2949 See \`config.log
' for more details." "$LINENO" 5; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2954 $as_echo "yes" >&6; }
2956 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2957 ac_clean_files=$ac_clean_files_save
2958 # Check that the compiler produces executables we can run. If not, either
2959 # the compiler is broken, or we cross compile.
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2961 $as_echo_n "checking whether we are cross compiling... " >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2963 $as_echo "$cross_compiling" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2966 $as_echo_n "checking for suffix of executables... " >&6; }
2967 if { { ac_try="$ac_link"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974 (eval "$ac_link") 2>&5
2976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977 test $ac_status = 0; }; then :
2978 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2979 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2980 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2982 for ac_file
in conftest.exe conftest conftest.
*; do
2983 test -f "$ac_file" ||
continue
2985 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2986 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2995 See \`config.log' for more details." "$LINENO" 5; }
2997 rm -f conftest
$ac_cv_exeext
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2999 $as_echo "$ac_cv_exeext" >&6; }
3001 rm -f conftest.
$ac_ext
3002 EXEEXT
=$ac_cv_exeext
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3005 $as_echo_n "checking for suffix of object files... " >&6; }
3006 if test "${ac_cv_objext+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3020 rm -f conftest.o conftest.obj
3021 if { { ac_try
="$ac_compile"
3023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_compile") 2>&5
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031 test $ac_status = 0; }; then :
3032 for ac_file in conftest.o conftest.obj conftest.*; do
3033 test -f "$ac_file" || continue;
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3041 $as_echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error "cannot compute suffix of object files
: cannot compile
3047 See \
`config.log' for more details." "$LINENO" 5; }
3049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3052 $as_echo "$ac_cv_objext" >&6; }
3053 OBJEXT=$ac_cv_objext
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3056 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3057 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3074 if ac_fn_c_try_compile "$LINENO"; then :
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3084 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3085 if test $ac_compiler_gnu = yes; then
3090 ac_test_CFLAGS=${CFLAGS+set}
3091 ac_save_CFLAGS=$CFLAGS
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3093 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3094 if test "${ac_cv_prog_cc_g+set}" = set; then :
3095 $as_echo_n "(cached) " >&6
3097 ac_save_c_werror_flag=$ac_c_werror_flag
3098 ac_c_werror_flag=yes
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3112 if ac_fn_c_try_compile "$LINENO"; then :
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3127 if ac_fn_c_try_compile "$LINENO"; then :
3130 ac_c_werror_flag=$ac_save_c_werror_flag
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3143 if ac_fn_c_try_compile "$LINENO"; then :
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3154 $as_echo "$ac_cv_prog_cc_g" >&6; }
3155 if test "$ac_test_CFLAGS" = set; then
3156 CFLAGS=$ac_save_CFLAGS
3157 elif test $ac_cv_prog_cc_g = yes; then
3158 if test "$GCC" = yes; then
3164 if test "$GCC" = yes; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3171 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3172 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3175 ac_cv_prog_cc_c89=no
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3181 #include <sys/types.h>
3182 #include <sys/stat.h>
3183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3184 struct buf { int x; };
3185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3186 static char *e (p, i)
3192 static char *f (char * (*g) (char **, int), char **p, ...)
3197 s = g (p, va_arg (v,int));
3202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3203 function prototypes and stuff, but not '\xHH' hex character constants.
3204 These don't provoke an error unfortunately, instead are silently treated
3205 as 'x'. The following induces an error, until -std is added to get
3206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3207 array size at least. It's necessary to write '\x00'==0 to get something
3208 that's true only with -std. */
3209 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3212 inside strings and character constants. */
3214 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3216 int test (int i, double x);
3217 struct s1 {int (*f) (int a);};
3218 struct s2 {int (*f) (double a);};
3219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3233 CC="$ac_save_CC $ac_arg"
3234 if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_cv_prog_cc_c89=$ac_arg
3237 rm -f core conftest.err conftest.$ac_objext
3238 test "x$ac_cv_prog_cc_c89" != "xno" && break
3240 rm -f conftest.$ac_ext
3245 case "x$ac_cv_prog_cc_c89" in
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3248 $as_echo "none needed" >&6; } ;;
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3251 $as_echo "unsupported" >&6; } ;;
3253 CC="$CC $ac_cv_prog_cc_c89"
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3255 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3257 if test "x$ac_cv_prog_cc_c89" != xno; then :
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3269 for ac_t in install-sh install.sh shtool; do
3270 if test -f "$ac_dir/$ac_t"; then
3272 ac_install_sh="$ac_aux_dir/$ac_t -c"
3277 if test -z "$ac_aux_dir"; then
3278 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3281 # These three variables are undocumented and unsupported,
3282 # and are intended to be withdrawn in a future Autoconf release.
3283 # They can cause serious problems if a builder's source tree is in a directory
3284 # whose full name contains unusual characters.
3285 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3286 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3287 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3290 # Make sure we can run config.sub.
3291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3292 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3295 $as_echo_n "checking build system type... " >&6; }
3296 if test "${ac_cv_build+set}" = set; then :
3297 $as_echo_n "(cached) " >&6
3299 ac_build_alias=$build_alias
3300 test "x$ac_build_alias" = x &&
3301 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3302 test "x$ac_build_alias" = x &&
3303 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3305 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3309 $as_echo "$ac_cv_build" >&6; }
3310 case $ac_cv_build in
3312 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3315 ac_save_IFS=$IFS; IFS='-'
3321 # Remember, the first character of IFS is used to create $*,
3322 # except with old shells:
3325 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3329 $as_echo_n "checking host system type... " >&6; }
3330 if test "${ac_cv_host+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3333 if test "x$host_alias" = x; then
3334 ac_cv_host=$ac_cv_build
3336 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3337 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3342 $as_echo "$ac_cv_host" >&6; }
3345 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3348 ac_save_IFS=$IFS; IFS='-'
3354 # Remember, the first character of IFS is used to create $*,
3355 # except with old shells:
3358 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3362 $as_echo_n "checking target system type... " >&6; }
3363 if test "${ac_cv_target+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3366 if test "x$target_alias" = x; then
3367 ac_cv_target=$ac_cv_host
3369 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3370 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3375 $as_echo "$ac_cv_target" >&6; }
3376 case $ac_cv_target in
3378 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3380 target=$ac_cv_target
3381 ac_save_IFS=$IFS; IFS='-'
3387 # Remember, the first character of IFS is used to create $*,
3388 # except with old shells:
3391 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3394 # The aliases save the names the user supplied, while $host etc.
3395 # will get canonicalized.
3396 test -n "$target_alias" &&
3397 test "$program_prefix$program_suffix$program_transform_name" = \
3399 program_prefix=${target_alias}-
3400 test "$program_prefix" != NONE &&
3401 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3402 # Use a double $ so make ignores it.
3403 test "$program_suffix" != NONE &&
3404 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3405 # Double any \ or $.
3406 # By default was `s
,x
,x
', remove it if useless.
3407 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3410 # Find a good install program. We prefer a C program (faster),
3411 # so one script is as good as another. But avoid the broken or
3412 # incompatible versions:
3413 # SysV /etc/install, /usr/sbin/install
3414 # SunOS /usr/etc/install
3415 # IRIX /sbin/install
3417 # AmigaOS /C/install, which installs bootblocks on floppy discs
3418 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
3419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3421 # OS/2's system install, which has a completely different semantic
3422 # ./install, which can be erroneously created by make from ./install.sh.
3423 # Reject install programs that cannot install multiple files.
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3425 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3426 if test -z "$INSTALL"; then
3427 if test "${ac_cv_path_install+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir
=.
3435 # Account for people who put trailing slashes in PATH elements.
3436 case $as_dir/ in #((
3437 .
/ | .
// |
/[cC
]/* | \
3438 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3439 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3442 # OSF1 and SCO ODT 3.0 have their own names for install.
3443 # Don't use installbsd from OSF since it installs stuff as root
3445 for ac_prog
in ginstall scoinst
install; do
3446 for ac_exec_ext
in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3448 if test $ac_prog = install &&
3449 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3450 # AIX install. It has an incompatible calling convention.
3452 elif test $ac_prog = install &&
3453 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3454 # program-specific install script used by HP pwplus--don't use.
3457 rm -rf conftest.one conftest.two conftest.dir
3458 echo one
> conftest.one
3459 echo two
> conftest.two
3461 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3462 test -s conftest.one
&& test -s conftest.two
&&
3463 test -s conftest.dir
/conftest.one
&&
3464 test -s conftest.dir
/conftest.two
3466 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3479 rm -rf conftest.one conftest.two conftest.dir
3482 if test "${ac_cv_path_install+set}" = set; then
3483 INSTALL
=$ac_cv_path_install
3485 # As a last resort, use the slow shell script. Don't cache a
3486 # value for INSTALL within a source directory, because that will
3487 # break other packages using the cache if that directory is
3488 # removed, or if the value is a relative name.
3489 INSTALL
=$ac_install_sh
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3493 $as_echo "$INSTALL" >&6; }
3495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3496 # It thinks the first close brace ends the variable substitution.
3497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3501 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3503 rm -rf .tst
2>/dev
/null
3504 mkdir .tst
2>/dev
/null
3505 if test -d .tst
; then
3510 rmdir .tst
2>/dev
/null
3512 DEPDIR
="${am__leading_dot}deps"
3516 ac_cpp
='$CPP $CPPFLAGS'
3517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3521 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3522 # On Suns, sometimes $CPP names a directory.
3523 if test -n "$CPP" && test -d "$CPP"; then
3526 if test -z "$CPP"; then
3527 if test "${ac_cv_prog_CPP+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3530 # Double quotes because CPP needs to be expanded
3531 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3534 for ac_c_preproc_warn_flag
in '' yes
3536 # Use a header file that comes with gcc, so configuring glibc
3537 # with a fresh cross-compiler works.
3538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3539 # <limits.h> exists even on freestanding compilers.
3540 # On the NeXT, cc -E runs the code through the compiler's parser,
3541 # not just through cpp. "Syntax error" is here to catch this case.
3542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3545 # include <limits.h>
3547 # include <assert.h>
3551 if ac_fn_c_try_cpp
"$LINENO"; then :
3554 # Broken: fails on valid input.
3557 rm -f conftest.err conftest.
$ac_ext
3559 # OK, works on sane cases. Now check whether nonexistent headers
3560 # can be detected and how.
3561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 #include <ac_nonexistent.h>
3565 if ac_fn_c_try_cpp
"$LINENO"; then :
3566 # Broken: success on invalid input.
3569 # Passes both tests.
3573 rm -f conftest.err conftest.
$ac_ext
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.
$ac_ext
3578 if $ac_preproc_ok; then :
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3591 $as_echo "$CPP" >&6; }
3593 for ac_c_preproc_warn_flag
in '' yes
3595 # Use a header file that comes with gcc, so configuring glibc
3596 # with a fresh cross-compiler works.
3597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598 # <limits.h> exists even on freestanding compilers.
3599 # On the NeXT, cc -E runs the code through the compiler's parser,
3600 # not just through cpp. "Syntax error" is here to catch this case.
3601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3604 # include <limits.h>
3606 # include <assert.h>
3610 if ac_fn_c_try_cpp
"$LINENO"; then :
3613 # Broken: fails on valid input.
3616 rm -f conftest.err conftest.
$ac_ext
3618 # OK, works on sane cases. Now check whether nonexistent headers
3619 # can be detected and how.
3620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3624 if ac_fn_c_try_cpp
"$LINENO"; then :
3625 # Broken: success on invalid input.
3628 # Passes both tests.
3632 rm -f conftest.err conftest.
$ac_ext
3635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636 rm -f conftest.err conftest.
$ac_ext
3637 if $ac_preproc_ok; then :
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3643 See \`config.log' for more details." "$LINENO" 5; }
3647 ac_cpp
='$CPP $CPPFLAGS'
3648 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3654 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3655 if test "${ac_cv_path_GREP+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -z "$GREP"; then
3659 ac_path_GREP_found
=false
3660 # Loop through the user's path and test for each of PROGNAME-LIST
3661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3662 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3665 test -z "$as_dir" && as_dir
=.
3666 for ac_prog
in grep ggrep
; do
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3669 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3670 # Check for GNU ac_path_GREP and select it if it is found.
3671 # Check for GNU $ac_path_GREP
3672 case `"$ac_path_GREP" --version 2>&1` in
3674 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3677 $as_echo_n 0123456789 >"conftest.in"
3680 cat "conftest.in" "conftest.in" >"conftest.tmp"
3681 mv "conftest.tmp" "conftest.in"
3682 cp "conftest.in" "conftest.nl"
3683 $as_echo 'GREP' >> "conftest.nl"
3684 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3685 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3686 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3687 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3688 # Best one so far, save it but keep looking for a better one
3689 ac_cv_path_GREP
="$ac_path_GREP"
3690 ac_path_GREP_max
=$ac_count
3692 # 10*(2^10) chars as input seems more than enough
3693 test $ac_count -gt 10 && break
3695 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3698 $ac_path_GREP_found && break 3
3703 if test -z "$ac_cv_path_GREP"; then
3704 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3707 ac_cv_path_GREP
=$GREP
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3712 $as_echo "$ac_cv_path_GREP" >&6; }
3713 GREP
="$ac_cv_path_GREP"
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3717 $as_echo_n "checking for egrep... " >&6; }
3718 if test "${ac_cv_path_EGREP+set}" = set; then :
3719 $as_echo_n "(cached) " >&6
3721 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3722 then ac_cv_path_EGREP
="$GREP -E"
3724 if test -z "$EGREP"; then
3725 ac_path_EGREP_found
=false
3726 # Loop through the user's path and test for each of PROGNAME-LIST
3727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3728 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3731 test -z "$as_dir" && as_dir
=.
3732 for ac_prog
in egrep; do
3733 for ac_exec_ext
in '' $ac_executable_extensions; do
3734 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3735 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3736 # Check for GNU ac_path_EGREP and select it if it is found.
3737 # Check for GNU $ac_path_EGREP
3738 case `"$ac_path_EGREP" --version 2>&1` in
3740 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3743 $as_echo_n 0123456789 >"conftest.in"
3746 cat "conftest.in" "conftest.in" >"conftest.tmp"
3747 mv "conftest.tmp" "conftest.in"
3748 cp "conftest.in" "conftest.nl"
3749 $as_echo 'EGREP' >> "conftest.nl"
3750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3751 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3752 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3754 # Best one so far, save it but keep looking for a better one
3755 ac_cv_path_EGREP
="$ac_path_EGREP"
3756 ac_path_EGREP_max
=$ac_count
3758 # 10*(2^10) chars as input seems more than enough
3759 test $ac_count -gt 10 && break
3761 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3764 $ac_path_EGREP_found && break 3
3769 if test -z "$ac_cv_path_EGREP"; then
3770 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3773 ac_cv_path_EGREP
=$EGREP
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3779 $as_echo "$ac_cv_path_EGREP" >&6; }
3780 EGREP
="$ac_cv_path_EGREP"
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3784 $as_echo_n "checking for ANSI C header files... " >&6; }
3785 if test "${ac_cv_header_stdc+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3803 if ac_fn_c_try_compile
"$LINENO"; then :
3804 ac_cv_header_stdc
=yes
3806 ac_cv_header_stdc
=no
3808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3810 if test $ac_cv_header_stdc = yes; then
3811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3818 $EGREP "memchr" >/dev
/null
2>&1; then :
3821 ac_cv_header_stdc
=no
3827 if test $ac_cv_header_stdc = yes; then
3828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "free" >/dev
/null
2>&1; then :
3838 ac_cv_header_stdc
=no
3844 if test $ac_cv_header_stdc = yes; then
3845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3846 if test "$cross_compiling" = yes; then :
3849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3853 #if ((' ' & 0x0FF) == 0x020)
3854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3857 # define ISLOWER(c) \
3858 (('a' <= (c) && (c) <= 'i') \
3859 || ('j' <= (c) && (c) <= 'r') \
3860 || ('s' <= (c) && (c) <= 'z'))
3861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3869 for (i = 0; i < 256; i++)
3870 if (XOR (islower (i), ISLOWER (i))
3871 || toupper (i) != TOUPPER (i))
3876 if ac_fn_c_try_run
"$LINENO"; then :
3879 ac_cv_header_stdc
=no
3881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3888 $as_echo "$ac_cv_header_stdc" >&6; }
3889 if test $ac_cv_header_stdc = yes; then
3891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3896 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3897 inttypes.h stdint.h unistd.h
3899 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3900 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3902 eval as_val
=\$
$as_ac_Header
3903 if test "x$as_val" = x
""yes; then :
3904 cat >>confdefs.h
<<_ACEOF
3905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3915 # autoconf.info says this should be called right after AC_INIT.
3916 ac_config_headers
="$ac_config_headers config.h:config.in"
3922 # Put a plausible default for CC_FOR_BUILD in Makefile.
3923 if test "x$cross_compiling" = "xno"; then
3924 CC_FOR_BUILD
='$(CC)'
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3936 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$RANLIB"; then
3943 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir
=.
3950 for ac_exec_ext
in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 RANLIB
=$ac_cv_prog_RANLIB
3963 if test -n "$RANLIB"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3965 $as_echo "$RANLIB" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3973 if test -z "$ac_cv_prog_RANLIB"; then
3974 ac_ct_RANLIB
=$RANLIB
3975 # Extract the first word of "ranlib", so it can be a program name with args.
3976 set dummy ranlib
; ac_word
=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -n "$ac_ct_RANLIB"; then
3983 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir
=.
3990 for ac_exec_ext
in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4003 if test -n "$ac_ct_RANLIB"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4005 $as_echo "$ac_ct_RANLIB" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4011 if test "x$ac_ct_RANLIB" = x
; then
4014 case $cross_compiling:$ac_tool_warned in
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4018 ac_tool_warned
=yes ;;
4020 RANLIB
=$ac_ct_RANLIB
4023 RANLIB
="$ac_cv_prog_RANLIB"
4027 # Dependency checking.
4028 ac_config_commands
="$ac_config_commands depdir"
4031 depcc
="$CC" am_compiler_list
=
4033 am_depcomp
=$ac_aux_dir/depcomp
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4035 $as_echo_n "checking dependency style of $depcc... " >&6; }
4036 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4039 if test -f "$am_depcomp"; then
4040 # We make a subdir and do the tests there. Otherwise we can end up
4041 # making bogus files that we don't know about and never remove. For
4042 # instance it was reported that on HP-UX the gcc test will end up
4043 # making a dummy file named `D' -- because `-MD' means `put the output
4046 # Copy depcomp to subdir because otherwise we won't find it if we're
4047 # using a relative directory.
4048 cp "$am_depcomp" conftest.dir
4050 # We will build objects and dependencies in a subdirectory because
4051 # it helps to detect inapplicable dependency modes. For instance
4052 # both Tru64's cc and ICC support -MD to output dependencies as a
4053 # side effect of compilation, but ICC will put the dependencies in
4054 # the current directory while Tru64 will put them in the object
4058 am_cv_CC_dependencies_compiler_type
=none
4059 if test "$am_compiler_list" = ""; then
4060 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4062 for depmode
in $am_compiler_list; do
4063 if test $depmode = none
; then break; fi
4065 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4066 # Setup a source with many dependencies, because some compilers
4067 # like to wrap large dependency lists on column 80 (with \), and
4068 # we should not choose a depcomp mode which is confused by this.
4070 # We need to recreate these files for each test, as the compiler may
4071 # overwrite some of them when testing with obscure command lines.
4072 # This happens at least with the AIX C compiler.
4074 for i
in 1 2 3 4 5 6; do
4075 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4076 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4077 # Solaris 8's {/usr,}/bin/sh.
4078 touch sub
/conftst
$i.h
4080 echo "include sub/conftest.Po" > confmf
4082 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4083 # mode. It turns out that the SunPro C++ compiler does not properly
4084 # handle `-M -o', and we need to detect this.
4085 depcmd
="depmode=$depmode \
4086 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4088 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4089 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4090 if env
$depcmd > conftest.err
2>&1 &&
4091 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4092 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4093 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4094 # icc doesn't choke on unknown options, it will just issue warnings
4095 # or remarks (even with -Werror). So we grep stderr for any message
4096 # that says an option was ignored or not supported.
4097 # When given -MP, icc 7.0 and 7.1 complain thusly:
4098 # icc: Command line warning: ignoring option '-M'; no argument required
4099 # The diagnosis changed in icc 8.0:
4100 # icc: Command line remark: option '-MP' not supported
4101 if (grep 'ignoring option' conftest.err ||
4102 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4103 am_cv_CC_dependencies_compiler_type
=$depmode
4104 $as_echo "$as_me:$LINENO: success" >&5
4108 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4109 sed -e 's/^/| /' < conftest.err
>&5
4115 am_cv_CC_dependencies_compiler_type
=none
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4120 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4121 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4122 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4123 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4128 # Check for the 'make' the user wants to use.
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy
$ac_prog; ac_word
=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if test "${ac_cv_prog_MAKE+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4138 if test -n "$MAKE"; then
4139 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir
=.
4146 for ac_exec_ext
in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148 ac_cv_prog_MAKE
="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 MAKE
=$ac_cv_prog_MAKE
4159 if test -n "$MAKE"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4161 $as_echo "$MAKE" >&6; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4168 test -n "$MAKE" && break
4172 case "`$MAKE --version 2>&1 | sed 1q`" in
4177 if test "$MAKE_IS_GNU" = yes; then
4187 # If we haven't got the data from the intl directory,
4188 # assume NLS is disabled.
4197 if test -f ..
/..
/intl
/config.intl
; then
4198 . ..
/..
/intl
/config.intl
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4201 $as_echo_n "checking whether NLS is requested... " >&6; }
4202 if test x
"$USE_NLS" != xyes
; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4207 $as_echo "yes" >&6; }
4209 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4213 $as_echo_n "checking for catalogs to be installed... " >&6; }
4214 # Look for .po and .gmo files in the source directory.
4217 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4218 # If there aren't any .gmo files the shell will give us the
4219 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4221 case "$cat" in *\
**)
4224 # The quadruple backslash is collapsed to a double backslash
4225 # by the backticks, then collapsed again by the double quotes,
4226 # leaving us with one backslash in the sed expression (right
4227 # before the dot that mustn't act as a wildcard).
4228 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4229 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4230 # The user is allowed to set LINGUAS to a list of languages to
4231 # install catalogs for. If it's empty that means "all of them."
4232 if test "x$LINGUAS" = x
; then
4233 CATALOGS
="$CATALOGS $cat"
4234 XLINGUAS
="$XLINGUAS $lang"
4236 case "$LINGUAS" in *$lang*)
4237 CATALOGS
="$CATALOGS $cat"
4238 XLINGUAS
="$XLINGUAS $lang"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4245 $as_echo "$LINGUAS" >&6; }
4258 # Check for common headers.
4259 # FIXME: Seems to me this can cause problems for i386-windows hosts.
4260 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
4261 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4263 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4264 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4265 eval as_val
=\$
$as_ac_Header
4266 if test "x$as_val" = x
""yes; then :
4267 cat >>confdefs.h
<<_ACEOF
4268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4275 for ac_header
in sys
/time.h sys
/resource.h
4277 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4278 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4279 eval as_val
=\$
$as_ac_Header
4280 if test "x$as_val" = x
""yes; then :
4281 cat >>confdefs.h
<<_ACEOF
4282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4289 for ac_header
in fcntl.h fpu_control.h
4291 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4292 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4293 eval as_val
=\$
$as_ac_Header
4294 if test "x$as_val" = x
""yes; then :
4295 cat >>confdefs.h
<<_ACEOF
4296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4303 for ac_header
in dlfcn.h errno.h sys
/stat.h
4305 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4306 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4307 eval as_val
=\$
$as_ac_Header
4308 if test "x$as_val" = x
""yes; then :
4309 cat >>confdefs.h
<<_ACEOF
4310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 for ac_func
in getrusage
time sigaction __setfpucw
4319 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4320 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4321 eval as_val
=\$
$as_ac_var
4322 if test "x$as_val" = x
""yes; then :
4323 cat >>confdefs.h
<<_ACEOF
4324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4331 # Check for socket libraries
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4333 $as_echo_n "checking for bind in -lsocket... " >&6; }
4334 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4337 ac_check_lib_save_LIBS
=$LIBS
4338 LIBS
="-lsocket $LIBS"
4339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4342 /* Override any GCC internal prototype to avoid an error.
4343 Use char because int might match the return type of a GCC
4344 builtin and then its argument prototype would still apply. */
4357 if ac_fn_c_try_link
"$LINENO"; then :
4358 ac_cv_lib_socket_bind
=yes
4360 ac_cv_lib_socket_bind
=no
4362 rm -f core conftest.err conftest.
$ac_objext \
4363 conftest
$ac_exeext conftest.
$ac_ext
4364 LIBS
=$ac_check_lib_save_LIBS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4367 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4368 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4369 cat >>confdefs.h
<<_ACEOF
4370 #define HAVE_LIBSOCKET 1
4373 LIBS
="-lsocket $LIBS"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4378 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4379 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4382 ac_check_lib_save_LIBS
=$LIBS
4384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4387 /* Override any GCC internal prototype to avoid an error.
4388 Use char because int might match the return type of a GCC
4389 builtin and then its argument prototype would still apply. */
4393 char gethostbyname ();
4397 return gethostbyname ();
4402 if ac_fn_c_try_link
"$LINENO"; then :
4403 ac_cv_lib_nsl_gethostbyname
=yes
4405 ac_cv_lib_nsl_gethostbyname
=no
4407 rm -f core conftest.err conftest.
$ac_objext \
4408 conftest
$ac_exeext conftest.
$ac_ext
4409 LIBS
=$ac_check_lib_save_LIBS
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4412 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4413 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4414 cat >>confdefs.h
<<_ACEOF
4415 #define HAVE_LIBNSL 1
4423 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4424 # using the same condition.
4426 # See if the user specified whether he wants zlib support or not.
4428 # Check whether --with-zlib was given.
4429 if test "${with_zlib+set}" = set; then :
4436 if test "$with_zlib" != "no"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4438 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4439 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4442 ac_func_search_save_LIBS
=$LIBS
4443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4446 /* Override any GCC internal prototype to avoid an error.
4447 Use char because int might match the return type of a GCC
4448 builtin and then its argument prototype would still apply. */
4452 char zlibVersion ();
4456 return zlibVersion ();
4461 for ac_lib
in '' z
; do
4462 if test -z "$ac_lib"; then
4463 ac_res
="none required"
4466 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4468 if ac_fn_c_try_link
"$LINENO"; then :
4469 ac_cv_search_zlibVersion
=$ac_res
4471 rm -f core conftest.err conftest.
$ac_objext \
4473 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4477 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4480 ac_cv_search_zlibVersion
=no
4483 LIBS
=$ac_func_search_save_LIBS
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4486 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4487 ac_res
=$ac_cv_search_zlibVersion
4488 if test "$ac_res" != no
; then :
4489 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4490 for ac_header
in zlib.h
4492 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4493 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4494 cat >>confdefs.h
<<_ACEOF
4495 #define HAVE_ZLIB_H 1
4504 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4505 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4510 .
${srcdir}/..
/..
/bfd
/configure.
host
4514 USE_MAINTAINER_MODE
=no
4515 # Check whether --enable-maintainer-mode was given.
4516 if test "${enable_maintainer_mode+set}" = set; then :
4517 enableval
=$enable_maintainer_mode; case "${enableval}" in
4518 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4520 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4522 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4523 echo "Setting maintainer mode" 6>&1
4531 # Check whether --enable-sim-bswap was given.
4532 if test "${enable_sim_bswap+set}" = set; then :
4533 enableval
=$enable_sim_bswap; case "${enableval}" in
4534 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4535 no
) sim_bswap
="-DWITH_BSWAP=0";;
4536 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4538 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4539 echo "Setting bswap flags = $sim_bswap" 6>&1
4547 # Check whether --enable-sim-cflags was given.
4548 if test "${enable_sim_cflags+set}" = set; then :
4549 enableval
=$enable_sim_cflags; case "${enableval}" in
4550 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4551 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4553 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4555 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4556 echo "Setting sim cflags = $sim_cflags" 6>&1
4564 # Check whether --enable-sim-debug was given.
4565 if test "${enable_sim_debug+set}" = set; then :
4566 enableval
=$enable_sim_debug; case "${enableval}" in
4567 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4568 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4569 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4571 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4572 echo "Setting sim debug = $sim_debug" 6>&1
4580 # Check whether --enable-sim-stdio was given.
4581 if test "${enable_sim_stdio+set}" = set; then :
4582 enableval
=$enable_sim_stdio; case "${enableval}" in
4583 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4584 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4585 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4587 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4588 echo "Setting stdio flags = $sim_stdio" 6>&1
4596 # Check whether --enable-sim-trace was given.
4597 if test "${enable_sim_trace+set}" = set; then :
4598 enableval
=$enable_sim_trace; case "${enableval}" in
4599 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4600 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4602 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4605 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4606 if test x
"$sim_trace" = x
; then
4607 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4609 sim_trace
="${sim_trace}|TRACE_$x"
4612 sim_trace
="$sim_trace)'" ;;
4614 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4615 echo "Setting sim trace = $sim_trace" 6>&1
4623 # Check whether --enable-sim-profile was given.
4624 if test "${enable_sim_profile+set}" = set; then :
4625 enableval
=$enable_sim_profile; case "${enableval}" in
4626 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4627 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4629 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4632 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4633 if test x
"$sim_profile" = x
; then
4634 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4636 sim_profile
="${sim_profile}|PROFILE_$x"
4639 sim_profile
="$sim_profile)'" ;;
4641 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4642 echo "Setting sim profile = $sim_profile" 6>&1
4645 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4651 # Check whether --with-pkgversion was given.
4652 if test "${with_pkgversion+set}" = set; then :
4653 withval
=$with_pkgversion; case "$withval" in
4654 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4656 *) PKGVERSION
="($withval) " ;;
4667 # Check whether --with-bugurl was given.
4668 if test "${with_bugurl+set}" = set; then :
4669 withval
=$with_bugurl; case "$withval" in
4670 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4673 *) BUGURL
="$withval"
4677 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4687 REPORT_BUGS_TO
="<$BUGURL>"
4688 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4695 cat >>confdefs.h
<<_ACEOF
4696 #define PKGVERSION "$PKGVERSION"
4700 cat >>confdefs.h
<<_ACEOF
4701 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4706 $as_echo_n "checking return type of signal handlers... " >&6; }
4707 if test "${ac_cv_type_signal+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <sys/types.h>
4718 return *(signal (0, 0)) (0) == 1;
4723 if ac_fn_c_try_compile
"$LINENO"; then :
4724 ac_cv_type_signal
=int
4726 ac_cv_type_signal
=void
4728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4731 $as_echo "$ac_cv_type_signal" >&6; }
4733 cat >>confdefs.h
<<_ACEOF
4734 #define RETSIGTYPE $ac_cv_type_signal
4744 sim_link_links
=tconfig.h
4745 if test -f ${srcdir}/tconfig.
in
4747 sim_link_files
=tconfig.
in
4749 sim_link_files
=..
/common
/tconfig.
in
4752 # targ-vals.def points to the libc macro description file.
4754 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4756 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4757 sim_link_links
="${sim_link_links} targ-vals.def"
4762 wire_endian
="LITTLE_ENDIAN"
4764 # Check whether --enable-sim-endian was given.
4765 if test "${enable_sim_endian+set}" = set; then :
4766 enableval
=$enable_sim_endian; case "${enableval}" in
4767 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4768 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4769 yes) if test x
"$wire_endian" != x
; then
4770 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4772 if test x
"$default_endian" != x
; then
4773 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4775 echo "No hard-wired endian for target $target" 1>&6
4776 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
4779 no
) if test x
"$default_endian" != x
; then
4780 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4782 if test x
"$wire_endian" != x
; then
4783 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4785 echo "No default endian for target $target" 1>&6
4786 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4789 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian
="";;
4791 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
4792 echo "Setting endian flags = $sim_endian" 6>&1
4795 if test x
"$default_endian" != x
; then
4796 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4798 if test x
"$wire_endian" != x
; then
4799 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4806 wire_alignment
="STRICT_ALIGNMENT"
4807 default_alignment
="STRICT_ALIGNMENT"
4809 # Check whether --enable-sim-alignment was given.
4810 if test "${enable_sim_alignment+set}" = set; then :
4811 enableval
=$enable_sim_alignment; case "${enableval}" in
4812 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4813 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4814 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4815 yes) if test x
"$wire_alignment" != x
; then
4816 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4818 if test x
"$default_alignment" != x
; then
4819 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4821 echo "No hard-wired alignment for target $target" 1>&6
4822 sim_alignment
="-DWITH_ALIGNMENT=0"
4825 no
) if test x
"$default_alignment" != x
; then
4826 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4828 if test x
"$wire_alignment" != x
; then
4829 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4831 echo "No default alignment for target $target" 1>&6
4832 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4835 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4837 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4838 echo "Setting alignment flags = $sim_alignment" 6>&1
4841 if test x
"$default_alignment" != x
; then
4842 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4844 if test x
"$wire_alignment" != x
; then
4845 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4853 # Check whether --enable-sim-hostendian was given.
4854 if test "${enable_sim_hostendian+set}" = set; then :
4855 enableval
=$enable_sim_hostendian; case "${enableval}" in
4856 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4857 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4858 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4859 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4861 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4862 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4866 if test "x$cross_compiling" = "xno"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4868 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4869 if test "${ac_cv_c_bigendian+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4872 ac_cv_c_bigendian
=unknown
4873 # See if we're dealing with a universal compiler.
4874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #ifndef __APPLE_CC__
4877 not a universal capable compiler
4882 if ac_fn_c_try_compile
"$LINENO"; then :
4884 # Check for potential -arch flags. It is not universal unless
4885 # there are at least two -arch flags with different values.
4888 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4889 if test -n "$ac_prev"; then
4891 i?
86 | x86_64 | ppc | ppc64
)
4892 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4895 ac_cv_c_bigendian
=universal
4901 elif test "x$ac_word" = "x-arch"; then
4906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4907 if test $ac_cv_c_bigendian = unknown
; then
4908 # See if sys/param.h defines the BYTE_ORDER macro.
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #include <sys/types.h>
4912 #include <sys/param.h>
4917 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4918 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4927 if ac_fn_c_try_compile
"$LINENO"; then :
4928 # It does; now see whether it defined to BIG_ENDIAN or not.
4929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #include <sys/types.h>
4932 #include <sys/param.h>
4937 #if BYTE_ORDER != BIG_ENDIAN
4945 if ac_fn_c_try_compile
"$LINENO"; then :
4946 ac_cv_c_bigendian
=yes
4948 ac_cv_c_bigendian
=no
4950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4954 if test $ac_cv_c_bigendian = unknown
; then
4955 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4963 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4971 if ac_fn_c_try_compile
"$LINENO"; then :
4972 # It does; now see whether it defined to _BIG_ENDIAN or not.
4973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4988 if ac_fn_c_try_compile
"$LINENO"; then :
4989 ac_cv_c_bigendian
=yes
4991 ac_cv_c_bigendian
=no
4993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 if test $ac_cv_c_bigendian = unknown
; then
4998 # Compile a test program.
4999 if test "$cross_compiling" = yes; then :
5000 # Try to guess by grepping values from an object file.
5001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 short int ascii_mm[] =
5004 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5005 short int ascii_ii[] =
5006 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5007 int use_ascii (int i) {
5008 return ascii_mm[i] + ascii_ii[i];
5010 short int ebcdic_ii[] =
5011 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5012 short int ebcdic_mm[] =
5013 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5014 int use_ebcdic (int i) {
5015 return ebcdic_mm[i] + ebcdic_ii[i];
5022 return use_ascii (foo) == use_ebcdic (foo);
5027 if ac_fn_c_try_compile
"$LINENO"; then :
5028 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5029 ac_cv_c_bigendian
=yes
5031 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5032 if test "$ac_cv_c_bigendian" = unknown
; then
5033 ac_cv_c_bigendian
=no
5035 # finding both strings is unlikely to happen, but who knows?
5036 ac_cv_c_bigendian
=unknown
5040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 $ac_includes_default
5049 /* Are we little or big endian? From Harbison&Steele. */
5053 char c[sizeof (long int)];
5056 return u.c[sizeof (long int) - 1] == 1;
5062 if ac_fn_c_try_run
"$LINENO"; then :
5063 ac_cv_c_bigendian
=no
5065 ac_cv_c_bigendian
=yes
5067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5068 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5074 $as_echo "$ac_cv_c_bigendian" >&6; }
5075 case $ac_cv_c_bigendian in #(
5077 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5083 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5087 as_fn_error
"unknown endianness
5088 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5091 if test $ac_cv_c_bigendian = yes; then
5092 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5094 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5097 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
5102 default_sim_default_model
="bf537"
5103 # Check whether --enable-sim-default-model was given.
5104 if test "${enable_sim_default_model+set}" = set; then :
5105 enableval
=$enable_sim_default_model; case "${enableval}" in
5106 yes|no
) as_fn_error
"\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
5107 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
5109 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
5110 echo "Setting default model = $sim_default_model" 6>&1
5113 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
5118 # Check whether --enable-sim-environment was given.
5119 if test "${enable_sim_environment+set}" = set; then :
5120 enableval
=$enable_sim_environment; case "${enableval}" in
5121 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
5122 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5123 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5124 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5125 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
5126 sim_environment
="";;
5128 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
5129 echo "Setting sim environment = $sim_environment" 6>&1
5132 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
5136 default_sim_inline
=""
5137 # Check whether --enable-sim-inline was given.
5138 if test "${enable_sim_inline+set}" = set; then :
5139 enableval
=$enable_sim_inline; sim_inline
=""
5140 case "$enableval" in
5141 no
) sim_inline
="-DDEFAULT_INLINE=0";;
5142 0) sim_inline
="-DDEFAULT_INLINE=0";;
5143 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
5144 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
5145 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
5148 *_INLINE
=*) new_flag
="-D$x";;
5149 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
5150 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
5151 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
5153 if test x
"$sim_inline" = x
""; then
5154 sim_inline
="$new_flag"
5156 sim_inline
="$sim_inline $new_flag"
5160 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
5161 echo "Setting inline flags = $sim_inline" 6>&1
5165 if test "x$cross_compiling" = "xno"; then
5166 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
5167 sim_inline
="${default_sim_inline}"
5168 if test x
"$silent" != x
"yes"; then
5169 echo "Setting inline flags = $sim_inline" 6>&1
5175 sim_inline
="-DDEFAULT_INLINE=0"
5180 # NOTE: Don't add -Wall or -Wunused, they both include
5181 # -Wunused-parameter which reports bogus warnings.
5182 # NOTE: If you add to this list, remember to update
5183 # gdb/doc/gdbint.texinfo.
5184 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5185 -Wformat -Wparentheses -Wpointer-arith"
5186 # GCC supports -Wuninitialized only with -O or -On, n != 0.
5187 if test x
${CFLAGS+set} = xset
; then
5191 build_warnings
="${build_warnings} -Wuninitialized"
5195 build_warnings
="${build_warnings} -Wuninitialized"
5197 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5198 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5199 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
5200 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5201 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5202 # -Woverloaded-virtual -Winline -Werror"
5203 # Check whether --enable-build-warnings was given.
5204 if test "${enable_build_warnings+set}" = set; then :
5205 enableval
=$enable_build_warnings; case "${enableval}" in
5207 no
) build_warnings
="-w";;
5208 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5209 build_warnings
="${build_warnings} ${t}";;
5210 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5211 build_warnings
="${t} ${build_warnings}";;
5212 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5214 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5215 echo "Setting compiler warning flags = $build_warnings" 6>&1
5218 # Check whether --enable-sim-build-warnings was given.
5219 if test "${enable_sim_build_warnings+set}" = set; then :
5220 enableval
=$enable_sim_build_warnings; case "${enableval}" in
5222 no
) build_warnings
="-w";;
5223 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5224 build_warnings
="${build_warnings} ${t}";;
5225 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5226 build_warnings
="${t} ${build_warnings}";;
5227 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5229 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5230 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5235 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5238 $as_echo_n "checking compiler warning flags... " >&6; }
5239 # Separate out the -Werror flag as some files just cannot be
5240 # compiled with it enabled.
5241 for w
in ${build_warnings}; do
5243 -Werr*) WERROR_CFLAGS
=-Werror ;;
5244 *) # Check that GCC accepts it
5245 saved_CFLAGS
="$CFLAGS"
5247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5258 if ac_fn_c_try_compile
"$LINENO"; then :
5259 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5262 CFLAGS
="$saved_CFLAGS"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
5266 $as_echo "${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
5270 if test x"yes" = x"yes"; then
5278 hardware="cfi core pal glue
"
5280 hardware="$hardware \
5311 sim_hw_cflags="-DWITH_HW=1"
5313 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5314 # Check whether --enable-sim-hardware was given.
5315 if test "${enable_sim_hardware+set}" = set; then :
5316 enableval=$enable_sim_hardware;
5317 case "${enableval}" in
5320 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5321 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5322 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5324 if test "$sim_hw_p" != yes; then
5326 sim_hw_cflags="-DWITH_HW=0"
5329 sim_hw_cflags="-DWITH_HW=1"
5332 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
5333 for i in $hardware ; do
5336 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
5340 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5341 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5345 if test "$sim_hw_p" != yes; then
5347 sim_hw_cflags="-DWITH_HW=0"
5350 if test x"$silent" != x"yes"; then
5351 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5355 case " $hardware " in
5356 *" cfi
"*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for log2
in -lm" >&5
5357 $as_echo_n "checking
for log2
in -lm...
" >&6; }
5358 if test "${ac_cv_lib_m_log2+set}" = set; then :
5359 $as_echo_n "(cached
) " >&6
5361 ac_check_lib_save_LIBS=$LIBS
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5366 /* Override any GCC internal prototype to avoid an error.
5367 Use char because int might match the return type of a GCC
5368 builtin and then its argument prototype would still apply. */
5381 if ac_fn_c_try_link "$LINENO"; then :
5382 ac_cv_lib_m_log2=yes
5386 rm -f core conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_m_log2" >&5
5391 $as_echo "$ac_cv_lib_m_log2" >&6; }
5392 if test "x
$ac_cv_lib_m_log2" = x""yes; then :
5393 cat >>confdefs.h <<_ACEOF
5404 for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread
5406 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
5407 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5408 eval as_val=\$$as_ac_var
5409 if test "x
$as_val" = x""yes; then :
5410 cat >>confdefs.h <<_ACEOF
5411 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
5417 for ac_header in sys/ioctl.h sys/mman.h net/if.h linux/if_tun.h linux/mii.h
5419 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
5420 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5421 eval as_val=\$$as_ac_Header
5422 if test "x
$as_val" = x""yes; then :
5423 cat >>confdefs.h <<_ACEOF
5424 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
5432 BFIN_SIM_EXTRA_OBJS=
5438 cat >>confdefs.h <<_ACEOF
5439 #define HAVE_DV_SOCKSER 1
5442 BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} dv-sockser.o
"
5446 BFIN_SIM_EXTRA_OBJS=${BFIN_SIM_EXTRA_OBJS}
5456 if test "x
$ac_cv_env_PKG_CONFIG_set" != "xset
"; then
5457 if test -n "$ac_tool_prefix"; then
5458 # Extract the first word of "${ac_tool_prefix}pkg-config
", so it can be a program name with args.
5459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5461 $as_echo_n "checking
for $ac_word...
" >&6; }
5462 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5463 $as_echo_n "(cached
) " >&6
5467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5489 if test -n "$PKG_CONFIG"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $PKG_CONFIG" >&5
5491 $as_echo "$PKG_CONFIG" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5494 $as_echo "no
" >&6; }
5499 if test -z "$ac_cv_path_PKG_CONFIG"; then
5500 ac_pt_PKG_CONFIG=$PKG_CONFIG
5501 # Extract the first word of "pkg-config
", so it can be a program name with args.
5502 set dummy pkg-config; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5504 $as_echo_n "checking
for $ac_word...
" >&6; }
5505 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5506 $as_echo_n "(cached
) " >&6
5508 case $ac_pt_PKG_CONFIG in
5510 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5531 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5532 if test -n "$ac_pt_PKG_CONFIG"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_pt_PKG_CONFIG" >&5
5534 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5537 $as_echo "no
" >&6; }
5540 if test "x
$ac_pt_PKG_CONFIG" = x; then
5543 case $cross_compiling:$ac_tool_warned in
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5546 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5547 ac_tool_warned=yes ;;
5549 PKG_CONFIG=$ac_pt_PKG_CONFIG
5552 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5556 if test -n "$PKG_CONFIG"; then
5557 _pkg_min_version=0.9.0
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is
at least version
$_pkg_min_version" >&5
5559 $as_echo_n "checking pkg-config is
at least version
$_pkg_min_version...
" >&6; }
5560 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5562 $as_echo "yes" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5565 $as_echo "no
" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for SDL
" >&5
5572 $as_echo_n "checking
for SDL...
" >&6; }
5574 if test -n "$SDL_CFLAGS"; then
5575 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
5576 elif test -n "$PKG_CONFIG"; then
5577 if test -n "$PKG_CONFIG" && \
5578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \
$PKG_CONFIG --exists --print-errors \"sdl
\""; } >&5
5579 ($PKG_CONFIG --exists --print-errors "sdl
") 2>&5
5581 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5582 test $ac_status = 0; }; then
5583 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl
" 2>/dev/null`
5584 test "x$?
" != "x0
" && pkg_failed=yes
5591 if test -n "$SDL_LIBS"; then
5592 pkg_cv_SDL_LIBS="$SDL_LIBS"
5593 elif test -n "$PKG_CONFIG"; then
5594 if test -n "$PKG_CONFIG" && \
5595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \
$PKG_CONFIG --exists --print-errors \"sdl
\""; } >&5
5596 ($PKG_CONFIG --exists --print-errors "sdl
") 2>&5
5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5599 test $ac_status = 0; }; then
5600 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl
" 2>/dev/null`
5601 test "x$?
" != "x0
" && pkg_failed=yes
5611 if test $pkg_failed = yes; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5613 $as_echo "no
" >&6; }
5615 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5616 _pkg_short_errors_supported=yes
5618 _pkg_short_errors_supported=no
5620 if test $_pkg_short_errors_supported = yes; then
5621 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl
" 2>&1`
5623 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl
" 2>&1`
5625 # Put the nasty error message in config.log where it belongs
5626 echo "$SDL_PKG_ERRORS" >&5
5629 elif test $pkg_failed = untried; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5631 $as_echo "no
" >&6; }
5634 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
5635 SDL_LIBS=$pkg_cv_SDL_LIBS
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5637 $as_echo "yes" >&6; }
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlopen
in -ldl" >&5
5640 $as_echo_n "checking
for dlopen
in -ldl...
" >&6; }
5641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5642 $as_echo_n "(cached
) " >&6
5644 ac_check_lib_save_LIBS=$LIBS
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5649 /* Override any GCC internal prototype to avoid an error.
5650 Use char because int might match the return type of a GCC
5651 builtin and then its argument prototype would still apply. */
5664 if ac_fn_c_try_link "$LINENO"; then :
5665 ac_cv_lib_dl_dlopen=yes
5667 ac_cv_lib_dl_dlopen=no
5669 rm -f core conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
5671 LIBS=$ac_check_lib_save_LIBS
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_dl_dlopen" >&5
5674 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5675 if test "x
$ac_cv_lib_dl_dlopen" = x""yes; then :
5677 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
5681 SDL_CFLAGS= SDL_LIBS=
5690 ac_sources="$sim_link_files"
5691 ac_dests="$sim_link_links"
5692 while test -n "$ac_sources"; do
5693 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5694 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5695 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5697 ac_config_links="$ac_config_links $ac_config_links_1"
5700 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5701 cgen_breaks="break cgen_rtx_error
";
5704 ac_config_files="$ac_config_files Makefile.sim
:Makefile.
in"
5706 ac_config_files="$ac_config_files Make-common.sim
:..
/common
/Make-common.
in"
5708 ac_config_files="$ac_config_files .gdbinit
:..
/common
/gdbinit.
in"
5710 ac_config_commands="$ac_config_commands Makefile
"
5712 ac_config_commands="$ac_config_commands stamp-h
"
5714 cat >confcache <<\_ACEOF
5715 # This file is a shell script that caches the results of configure
5716 # tests run on this system so they can be shared between configure
5717 # scripts and configure runs, see configure's option --config-cache.
5718 # It is not useful on other systems. If it contains results you don't
5719 # want to keep, you may remove or edit it.
5721 # config.status only pays attention to the cache file if you give it
5722 # the --recheck option to rerun configure.
5724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5730 # The following way of writing the cache mishandles newlines in values,
5731 # but we know of no workaround that is simple, portable, and efficient.
5732 # So, we kill variables containing newlines.
5733 # Ultrix sh set writes to stderr and can't be redirected directly,
5734 # and sets the high bit in the cache file unless we assign to the vars.
5736 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5737 eval ac_val=\$$ac_var
5741 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
5742 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
5745 _ | IFS | as_nl) ;; #(
5746 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5747 *) { eval $ac_var=; unset $ac_var;} ;;
5753 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5754 *${as_nl}ac_space=\ *)
5755 # `set' does not quote correctly, so add quotes: double-quote
5756 # substitution turns \\\\ into \\, and sed turns \\ into \.
5759 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
5762 # `set' quotes correctly as required by POSIX, so do not add quotes.
5763 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
5772 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5774 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5776 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5777 if test -w "$cache_file"; then
5778 test "x
$cache_file" != "x
/dev
/null
" &&
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
5780 $as_echo "$as_me: updating cache
$cache_file" >&6;}
5781 cat confcache >$cache_file
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
5784 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
5789 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
5790 # Let make expand exec_prefix.
5791 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
5793 DEFS=-DHAVE_CONFIG_H
5797 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
5798 # 1. Remove the extension, and $U if already installed.
5799 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5800 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5801 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5802 # will be set to the directory where LIBOBJS objects are built.
5803 as_fn_append ac_libobjs " \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
5804 as_fn_append ac_ltlibobjs " \
${LIBOBJDIR}$ac_i"'$U.lo'
5808 LTLIBOBJS=$ac_ltlibobjs
5811 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
5812 as_fn_error "conditional
\"GMAKE
\" was never defined.
5813 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
5817 : ${CONFIG_STATUS=./config.status}
5819 ac_clean_files_save=$ac_clean_files
5820 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$CONFIG_STATUS" >&5
5822 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
5824 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5826 # Generated by $as_me.
5827 # Run this file to recreate the current configuration.
5828 # Compiler output produced by configure, useful for debugging
5829 # configure, is in config.log if it exists.
5835 SHELL=\${CONFIG_SHELL-$SHELL}
5838 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5839 ## -------------------- ##
5840 ## M4sh Initialization. ##
5841 ## -------------------- ##
5843 # Be more Bourne compatible
5844 DUALCASE=1; export DUALCASE # for MKS sh
5845 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5848 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5849 # is contrary to our usage. Disable this feature.
5850 alias -g '${1+"$@"}'='"$@
"'
5851 setopt NO_GLOB_SUBST
5853 case `(set -o) 2>/dev/null` in #(
5865 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5866 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5868 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5869 # Prefer a ksh shell builtin over an external printf program on Solaris,
5870 # but without wasting forks for bash or zsh.
5871 if test -z "$BASH_VERSION$ZSH_VERSION" \
5872 && (test "X
`print -r -- $as_echo`" = "X
$as_echo") 2>/dev/null; then
5873 as_echo='print -r --'
5874 as_echo_n='print -rn --'
5875 elif (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
5876 as_echo='printf %s\n'
5877 as_echo_n='printf %s'
5879 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
5880 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5881 as_echo_n='/usr/ucb/echo -n'
5883 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
5884 as_echo_n_body='eval
5888 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
5889 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
5891 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
5893 export as_echo_n_body
5894 as_echo_n='sh -c $as_echo_n_body as_echo'
5897 as_echo='sh -c $as_echo_body as_echo'
5900 # The user is always right.
5901 if test "${PATH_SEPARATOR+set}" != set; then
5903 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5904 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5911 # We need space, tab and new line, in precisely that order. Quoting is
5912 # there to prevent editors from complaining about space-tab.
5913 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5914 # splitting by setting IFS to empty value.)
5917 # Find who we are. Look in the path if we contain no directory separator.
5919 *[\\/]* ) as_myself=$0 ;;
5920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5931 # We did not find ourselves, most probably we were run as `sh COMMAND'
5932 # in which case we are not to be found in the path.
5933 if test "x
$as_myself" = x; then
5936 if test ! -f "$as_myself"; then
5937 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
5941 # Unset variables that we do not need and which cause bugs (e.g. in
5942 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "||
exit 1"
5943 # suppresses any "Segmentation fault
" message there. '((' could
5944 # trigger a bug in pdksh 5.2.14.
5945 for as_var in BASH_ENV ENV MAIL MAILPATH
5946 do eval test x\${$as_var+set} = xset \
5947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5963 # as_fn_error ERROR [LINENO LOG_FD]
5964 # ---------------------------------
5965 # Output "`basename $0`: error
: ERROR
" to stderr. If LINENO and LOG_FD are
5966 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5967 # script with status $?, using 1 if that was 0.
5970 as_status=$?; test $as_status -eq 0 && as_status=1
5972 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5973 $as_echo "$as_me:${as_lineno-$LINENO}: error
: $1" >&$3
5975 $as_echo "$as_me: error
: $1" >&2
5976 as_fn_exit $as_status
5980 # as_fn_set_status STATUS
5981 # -----------------------
5982 # Set $? to STATUS, without forking.
5986 } # as_fn_set_status
5990 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6000 # Portably unset VAR.
6003 { eval $1=; unset $1;}
6005 as_unset=as_fn_unset
6006 # as_fn_append VAR VALUE
6007 # ----------------------
6008 # Append the text in VALUE to the end of the definition contained in VAR. Take
6009 # advantage of any shell optimizations that allow amortized linear growth over
6010 # repeated appends, instead of the typical quadratic growth present in naive
6012 if (eval "as_var
=1; as_var
+=2; test x\
$as_var = x12
") 2>/dev/null; then :
6013 eval 'as_fn_append ()
6024 # as_fn_arith ARG...
6025 # ------------------
6026 # Perform arithmetic evaluation on the ARGs, and store the result in the
6027 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6028 # must be portable across $(()) and expr.
6029 if (eval "test \$
(( 1 + 1 )) = 2") 2>/dev/null; then :
6030 eval 'as_fn_arith ()
6037 as_val=`expr "$@
" || test $? -eq 1`
6042 if expr a : '\(a\)' >/dev/null 2>&1 &&
6043 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
6049 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
6050 as_basename=basename
6055 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
6061 as_me=`$as_basename -- "$0" ||
6062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6063 X"$0" : 'X\(//\)$' \| \
6064 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6066 sed '/^.*\/\([^/][^/]*\)\/*$/{
6080 # Avoid depending upon Character Ranges.
6081 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6082 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6083 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6084 as_cr_digits='0123456789'
6085 as_cr_alnum=$as_cr_Letters$as_cr_digits
6087 ECHO_C= ECHO_N= ECHO_T=
6088 case `echo -n x` in #(((((
6090 case `echo 'xy\c'` in
6091 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6093 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6100 rm -f conf$$ conf$$.exe conf$$.file
6101 if test -d conf$$.dir; then
6102 rm -f conf$$.dir/conf$$.file
6105 mkdir conf$$.dir 2>/dev/null
6107 if (echo >conf$$.file) 2>/dev/null; then
6108 if ln -s conf$$.file conf$$ 2>/dev/null; then
6110 # ... but there are two gotchas:
6111 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6112 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6113 # In both cases, we have to default to `cp -p'.
6114 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6116 elif ln conf$$.file conf$$ 2>/dev/null; then
6124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6125 rmdir conf$$.dir 2>/dev/null
6130 # Create "$as_dir" as a directory, including parents if necessary.
6135 -*) as_dir=./$as_dir;;
6137 test -d "$as_dir" || eval $as_mkdir_p || {
6141 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s
/'/'\\\\\\\\''/g
"`;; #'(
6142 *) as_qdir=$as_dir;;
6144 as_dirs="'$as_qdir' $as_dirs"
6145 as_dir=`$as_dirname -- "$as_dir" ||
6146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6147 X"$as_dir" : 'X\(//\)[^/]' \| \
6148 X"$as_dir" : 'X\(//\)$' \| \
6149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6150 $as_echo X"$as_dir" |
6151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6168 test -d "$as_dir" && break
6170 test -z "$as_dirs" || eval "mkdir
$as_dirs"
6171 } || test -d "$as_dir" || as_fn_error "cannot create directory
$as_dir"
6175 if mkdir -p . 2>/dev/null; then
6176 as_mkdir_p='mkdir -p "$as_dir"'
6178 test -d ./-p && rmdir ./-p
6182 if test -x / >/dev/null 2>&1; then
6185 if ls -dL / >/dev/null 2>&1; then
6192 if test -d "$1"; then
6198 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6199 ???[sx]*):;;*)false;;esac;fi
6203 as_executable_p=$as_test_x
6205 # Sed expression to map a string onto a valid CPP name.
6206 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6208 # Sed expression to map a string onto a valid variable name.
6209 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6213 ## ----------------------------------- ##
6214 ## Main body of $CONFIG_STATUS script. ##
6215 ## ----------------------------------- ##
6217 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6220 # Save the log message, to keep $0 and so on meaningful, and to
6221 # report actual input values of CONFIG_FILES etc. instead of their
6222 # values after options handling.
6224 This
file was extended by
$as_me, which was
6225 generated by GNU Autoconf
2.64. Invocation
command line was
6227 CONFIG_FILES
= $CONFIG_FILES
6228 CONFIG_HEADERS
= $CONFIG_HEADERS
6229 CONFIG_LINKS
= $CONFIG_LINKS
6230 CONFIG_COMMANDS
= $CONFIG_COMMANDS
6233 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
6238 case $ac_config_files in *"
6239 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6242 case $ac_config_headers in *"
6243 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6248 # Files that config.status was made for.
6249 config_files="$ac_config_files"
6250 config_headers="$ac_config_headers"
6251 config_links="$ac_config_links"
6252 config_commands="$ac_config_commands"
6256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6258 \
`$as_me' instantiates files and other configuration actions
6259 from templates according to the current configuration. Unless the files
6260 and actions are specified as TAGs, all are instantiated by default.
6262 Usage: $0 [OPTION]... [TAG]...
6264 -h, --help print this help, then exit
6265 -V, --version print version number and configuration settings, then exit
6266 -q, --quiet, --silent
6267 do not print progress messages
6268 -d, --debug don't remove temporary files
6269 --recheck update $as_me by reconfiguring in the same conditions
6270 --file=FILE[:TEMPLATE]
6271 instantiate the configuration file FILE
6272 --header=FILE[:TEMPLATE]
6273 instantiate the configuration header FILE
6275 Configuration files:
6278 Configuration headers:
6281 Configuration links:
6284 Configuration commands:
6287 Report bugs to the package provider."
6290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6293 configured by $0, generated by GNU Autoconf 2.64,
6294 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6296 Copyright (C) 2009 Free Software Foundation, Inc.
6297 This config.status script is free software; the Free Software Foundation
6298 gives unlimited permission to copy, distribute and modify it."
6303 test -n "\$AWK" || AWK=awk
6306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6307 # The default lists apply if the user does not specify any file.
6313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6325 # Handling of the options.
6326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6328 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6329 $as_echo "$ac_cs_version"; exit ;;
6330 --debug | --debu | --deb | --de | --d | -d )
6332 --file | --fil | --fi | --f )
6335 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
6337 as_fn_append CONFIG_FILES " '$ac_optarg'"
6338 ac_need_defaults=false;;
6339 --header | --heade | --head | --hea )
6342 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
6344 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6345 ac_need_defaults=false;;
6347 # Conflict between --help and --header
6348 as_fn_error "ambiguous option: \`$1'
6349 Try \`$0 --help' for more information.
";;
6350 --help | --hel | -h )
6351 $as_echo "$ac_cs_usage"; exit ;;
6352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6353 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6357 -*) as_fn_error "unrecognized option
: \
`$1'
6358 Try \`$0 --help' for more information." ;;
6360 *) as_fn_append ac_config_targets " $1"
6361 ac_need_defaults=false ;;
6367 ac_configure_extra_args=
6369 if $ac_cs_silent; then
6371 ac_configure_extra_args="$ac_configure_extra_args --silent"
6375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6376 if \$ac_cs_recheck; then
6377 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6379 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6380 CONFIG_SHELL='$SHELL'
6386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6390 sed 'h
;s
/.
/-/g
;s
/^...
/## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6391 ## Running $as_me. ##
6397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6401 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6407 # Handling of arguments.
6408 for ac_config_target
in $ac_config_targets
6410 case $ac_config_target in
6411 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6412 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
6413 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6414 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6415 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6416 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6417 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6418 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6420 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6425 # If the user did not use the arguments to specify the items to instantiate,
6426 # then the envvar interface is used. Set only those that are not.
6427 # We use the long form for the default assignment because of an extremely
6428 # bizarre bug on SunOS 4.1.3.
6429 if $ac_need_defaults; then
6430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6432 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6433 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6436 # Have a temporary directory for convenience. Make it in the build tree
6437 # simply because there is no reason against having it here, and in addition,
6438 # creating and moving files from /tmp can sometimes cause problems.
6439 # Hook for its removal unless debugging.
6440 # Note that there is a small window in which the directory will not be cleaned:
6441 # after its creation but before its name has been assigned to `$tmp'.
6445 trap 'exit_status=$?
6446 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6448 trap 'as_fn_exit 1' 1 2 13 15
6450 # Create a (secure) tmp directory for tmp files.
6453 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6454 test -n "$tmp" && test -d "$tmp"
6457 tmp
=.
/conf$$
-$RANDOM
6458 (umask 077 && mkdir
"$tmp")
6459 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6461 # Set up the scripts for CONFIG_FILES section.
6462 # No need to generate them if there are no CONFIG_FILES.
6463 # This happens for instance with `./config.status config.h'.
6464 if test -n "$CONFIG_FILES"; then
6467 ac_cr
=`echo X | tr X '\015'`
6468 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6469 # But we know of no other shell where ac_cr would be empty at this
6470 # point, so we can use a bashism as a fallback.
6471 if test "x$ac_cr" = x
; then
6472 eval ac_cr
=\$
\'\\r
\'
6474 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6475 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6481 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6486 echo "cat >conf$$subs.awk <<_ACEOF" &&
6487 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6490 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6491 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6493 for ac_last_try in false false false false false :; do
6494 . ./conf$$subs.sh ||
6495 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6497 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6498 if test $ac_delim_n = $ac_delim_num; then
6500 elif $ac_last_try; then
6501 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6503 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6509 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6513 s/^/S["/; s
/!.
*/"]=/
6523 s/\(.\{148\}\).*/\1/
6525 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6530 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6537 s/\(.\{148\}\).*/\1/
6539 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6543 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6548 ' <conf$$subs.awk | sed '
6553 ' >>$CONFIG_STATUS || ac_write_fail=1
6554 rm -f conf$$subs.awk
6555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6557 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6558 for (key in S) S_is_set[key] = 1
6564 nfields = split(line, field, "@
")
6566 len = length(field[1])
6567 for (i = 2; i < nfields; i++) {
6569 keylen = length(key)
6570 if (S_is_set[key]) {
6572 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6573 len += length(value) + length(field[++i])
6584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6585 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6586 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6589 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6590 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6593 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6594 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6595 # trailing colons and then remove the whole line if VPATH becomes empty
6596 # (actually we leave an empty line to preserve line numbers).
6597 if test "x
$srcdir" = x.; then
6598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6602 s/^\([^=]*=[ ]*\):*/\1/
6608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6609 fi # test -n "$CONFIG_FILES"
6611 # Set up the scripts for CONFIG_HEADERS section.
6612 # No need to generate them if there are no CONFIG_HEADERS.
6613 # This happens for instance with `./config.status Makefile'.
6614 if test -n "$CONFIG_HEADERS"; then
6615 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6619 # Transform confdefs.h into an awk script `defines.awk', embedded as
6620 # here-document in config.status, that substitutes the proper values into
6621 # config.h.in to produce config.h.
6623 # Create a delimiter string that does not exist in confdefs.h, to ease
6624 # handling of long lines.
6626 for ac_last_try in false false :; do
6627 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6628 if test -z "$ac_t"; then
6630 elif $ac_last_try; then
6631 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6633 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6637 # For the awk script, D is an array of macro values keyed by name,
6638 # likewise P contains macro parameters if any. Preserve backslash
6639 # newline sequences.
6641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6643 s/.\{148\}/&'"$ac_delim"'/g
6646 s/^[ ]*#[ ]*define[ ][ ]*/ /
6653 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6655 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6660 D["\
1"]=" \
3\\\\\\n
"\\/p
6662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6667 s/.\{148\}/&'"$ac_delim"'/g
6672 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6675 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6677 ' <confdefs.h | sed '
6678 s/'"$ac_delim"'/"\\\
6679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6682 for (key in D) D_is_set[key] = 1
6685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6687 split(line, arg, " ")
6688 if (arg[1] == "#") {
6692 defundef
= substr
(arg
[1], 2)
6695 split(mac1
, mac2
, "(") #)
6697 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6698 if (D_is_set
[macro
]) {
6699 # Preserve the white space surrounding the "#".
6700 print prefix
"define", macro P
[macro
] D
[macro
]
6703 # Replace #undef with comments. This is necessary, for example,
6704 # in the case of _POSIX_SOURCE, which is predefined and required
6705 # on some systems where configure will not decide to define it.
6706 if (defundef
== "undef") {
6707 print
"/*", prefix defundef
, macro
, "*/"
6715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6716 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6717 fi # test -n "$CONFIG_HEADERS"
6720 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
6725 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6727 case $ac_mode$ac_tag in
6729 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6730 :[FH
]-) ac_tag
=-:-;;
6731 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6748 -) ac_f
="$tmp/stdin";;
6749 *) # Look for the file first in the build tree, then in the source tree
6750 # (if the path is not absolute). The absolute path cannot be DOS-style,
6751 # because $ac_f cannot contain `:'.
6755 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6757 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6759 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6760 as_fn_append ac_file_inputs
" '$ac_f'"
6763 # Let's still pretend it is `configure' which instantiates (i.e., don't
6764 # use $as_me), people would be surprised to read:
6765 # /* config.h. Generated by config.status. */
6766 configure_input
='Generated from '`
6767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6769 if test x
"$ac_file" != x-
; then
6770 configure_input
="$ac_file. $configure_input"
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6772 $as_echo "$as_me: creating $ac_file" >&6;}
6774 # Neutralize special characters interpreted by sed in replacement strings.
6775 case $configure_input in #(
6776 *\
&* |
*\|
* |
*\\* )
6777 ac_sed_conf_input
=`$as_echo "$configure_input" |
6778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6779 *) ac_sed_conf_input
=$configure_input;;
6783 *:-:* |
*:-) cat >"$tmp/stdin" \
6784 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
6789 ac_dir
=`$as_dirname -- "$ac_file" ||
6790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6791 X"$ac_file" : 'X\(//\)[^/]' \| \
6792 X"$ac_file" : 'X\(//\)$' \| \
6793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6794 $as_echo X"$ac_file" |
6795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6812 as_dir
="$ac_dir"; as_fn_mkdir_p
6816 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6818 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6819 # A ".." for each directory in $ac_dir_suffix.
6820 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6821 case $ac_top_builddir_sub in
6822 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6823 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6826 ac_abs_top_builddir
=$ac_pwd
6827 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6828 # for backward compatibility:
6829 ac_top_builddir
=$ac_top_build_prefix
6832 .
) # We are building in place.
6834 ac_top_srcdir
=$ac_top_builddir_sub
6835 ac_abs_top_srcdir
=$ac_pwd ;;
6836 [\\/]* | ?
:[\\/]* ) # Absolute name.
6837 ac_srcdir
=$srcdir$ac_dir_suffix;
6838 ac_top_srcdir
=$srcdir
6839 ac_abs_top_srcdir
=$srcdir ;;
6841 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6842 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6843 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6845 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6855 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6856 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6861 # If the template does not know about datarootdir, expand it.
6862 # FIXME: This hack should be removed a few years after 2.60.
6863 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6874 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6875 *datarootdir
*) ac_datarootdir_seen
=yes;;
6876 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6878 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6881 ac_datarootdir_hack='
6882 s&@datadir@&$datadir&g
6883 s&@docdir@&$docdir&g
6884 s&@infodir@&$infodir&g
6885 s&@localedir@&$localedir&g
6886 s&@mandir@&$mandir&g
6887 s&\\\${datarootdir}&$datarootdir&g' ;;
6891 # Neutralize VPATH when `$srcdir' = `.'.
6892 # Shell code in configure.ac might set extrasub.
6893 # FIXME: do we really want to maintain this feature?
6894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6895 ac_sed_extra="$ac_vpsub
6898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6900 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6901 s|@configure_input@|
$ac_sed_conf_input|
;t t
6902 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6903 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6904 s
&@srcdir@
&$ac_srcdir&;t t
6905 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6906 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6907 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6908 s
&@builddir@
&$ac_builddir&;t t
6909 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6910 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6911 s
&@INSTALL@
&$ac_INSTALL&;t t
6912 $ac_datarootdir_hack
6914 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
6915 || as_fn_error "could not create
$ac_file" "$LINENO" 5
6917 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6918 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
6919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6921 which seems to be undefined. Please make sure it is defined." >&5
6922 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6923 which seems to be undefined. Please make sure it is defined." >&2;}
6927 -) cat "$tmp/out" && rm -f "$tmp/out";;
6928 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6930 || as_fn_error "could not create $ac_file" "$LINENO" 5
6936 if test x"$ac_file" != x-; then
6938 $as_echo "/* $configure_input */" \
6939 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6940 } >"$tmp/config.h" \
6941 || as_fn_error "could not create $ac_file" "$LINENO" 5
6942 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6944 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6947 mv "$tmp/config.h" "$ac_file" \
6948 || as_fn_error "could not create $ac_file" "$LINENO" 5
6951 $as_echo "/* $configure_input */" \
6952 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6953 || as_fn_error "could not create -" "$LINENO" 5
6961 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
6964 # Prefer the file from the source tree if names are identical.
6965 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
6966 ac_source=$srcdir/$ac_source
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
6970 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
6972 if test ! -r "$ac_source"; then
6973 as_fn_error "$ac_source: file not found" "$LINENO" 5
6977 # Try a relative symlink, then a hard link, then a copy.
6979 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
6980 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
6982 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
6983 ln "$ac_source" "$ac_file" 2>/dev/null ||
6984 cp -p "$ac_source" "$ac_file" ||
6985 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
6988 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6989 $as_echo "$as_me: executing $ac_file commands" >&6;}
6994 case $ac_file$ac_mode in
6995 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6996 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6997 rm -f Makesim1.tmp Makesim2.tmp Makefile
6998 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6999 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
7000 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7001 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7002 <Makefile.sim
>Makefile
7003 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7005 "stamp-h":C
) echo > stamp-h
;;
7013 ac_clean_files
=$ac_clean_files_save
7015 test $ac_write_fail = 0 ||
7016 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7019 # configure is writing to config.log, and then calls config.status.
7020 # config.status does its own redirection, appending to config.log.
7021 # Unfortunately, on DOS this fails, as config.log is still kept open
7022 # by configure, so config.status won't be able to write to it; its
7023 # output is simply discarded. So we exec the FD to /dev/null,
7024 # effectively closing config.log, so it can be properly (re)opened and
7025 # appended to by config.status. When coming back to configure, we
7026 # need to make the FD available again.
7027 if test "$no_create" != yes; then
7029 ac_config_status_args
=
7030 test "$silent" = yes &&
7031 ac_config_status_args
="$ac_config_status_args --quiet"
7033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7036 # would make configure fail if this is the last instruction.
7037 $ac_cs_success || as_fn_exit $?
7039 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7041 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}