2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="Makefile.in"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='LTLIBOBJS
697 program_transform_name
710 enable_option_checking
711 enable_maintainer_mode
722 enable_sim_hostendian
724 enable_sim_default_model
725 enable_sim_environment
729 ac_precious_vars='build_alias
740 # Initialize some variables set by options.
742 ac_init_version=false
743 ac_unrecognized_opts=
745 # The variables have the same names as the options, with
746 # dashes changed to underlines.
754 program_transform_name=s,x,x,
762 # Installation directory options.
763 # These are left unexpanded so users can "make install exec_prefix=/foo"
764 # and all the variables that are supposed to be based on exec_prefix
765 # by default will actually change.
766 # Use braces instead of parens because sh, perl, etc. also accept them.
767 # (The list follows the same order as the GNU Coding Standards.)
768 bindir='${exec_prefix}/bin'
769 sbindir='${exec_prefix}/sbin'
770 libexecdir='${exec_prefix}/libexec'
771 datarootdir='${prefix}/share'
772 datadir='${datarootdir}'
773 sysconfdir='${prefix}/etc'
774 sharedstatedir='${prefix}/com'
775 localstatedir='${prefix}/var'
776 includedir='${prefix}/include'
777 oldincludedir='/usr/include'
778 docdir='${datarootdir}/doc/${PACKAGE}'
779 infodir='${datarootdir}/info'
784 libdir='${exec_prefix}/lib'
785 localedir='${datarootdir}/locale'
786 mandir='${datarootdir}/man'
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 # Accept the important Cygnus configure options, so we can diagnose typos.
806 case $ac_dashdash$ac_option in
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
828 cache_file=config.cache ;;
830 -datadir | --datadir | --datadi | --datad)
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
842 -disable-* | --disable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
856 eval enable_$ac_useropt=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 -enable-* | --enable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
882 eval enable_$ac_useropt=\$ac_optarg ;;
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
897 -help | --help | --hel | --he | -h)
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913 htmldir=$ac_optarg ;;
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
927 -libdir | --libdir | --libdi | --libd)
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
939 -localedir | --localedir | --localedi | --localed | --locale)
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949 localstatedir=$ac_optarg ;;
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 # Obsolete; use --without-fp.
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1018 -psdir | --psdir | --psdi | --psd | --ps)
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1031 sbindir=$ac_optarg ;;
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1042 sharedstatedir=$ac_optarg ;;
1044 -site | --site | --sit)
1046 -site=* | --site=* | --sit=*)
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval with_$ac_useropt=\$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=no ;;
1105 # Obsolete; use --with-x.
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1122 -*) as_fn_error "unrecognized option: \`$ac_option'
1123 Try \`$0 --help' for more information."
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1137 # FIXME: should be removed in autoconf 3.0.
1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147 if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149 as_fn_error "missing argument to $ac_option"
1152 if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1155 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 # Check all directory arguments for consistency.
1161 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val=\$$ac_var
1167 # Remove trailing slashes.
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1173 # Be sure to have absolute directory names.
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error "working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error "pwd does not report name of working directory"
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1245 ac_srcdir_defaulted=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1279 \`configure' configures this package to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1337 --program-prefix=PREFIX prepend PREFIX to installed program names
1338 --program-suffix=SUFFIX append SUFFIX to installed program names
1339 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1342 --build=BUILD configure for building on BUILD [guessed]
1343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344 --target=TARGET configure for building compilers for TARGET [HOST]
1348 if test -n "$ac_init_help"; then
1353 --disable-option-checking ignore unrecognized --enable/--with options
1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1356 --enable-maintainer-mode Enable developer functionality.
1357 --enable-sim-bswap Use Host specific BSWAP instruction.
1358 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
1359 --enable-sim-debug=opts Enable debugging flags
1360 --enable-sim-stdio Specify whether to use stdio for console input/output.
1361 --enable-sim-trace=opts Enable tracing flags
1362 --enable-sim-profile=opts Enable profiling flags
1363 --enable-sim-endian=endian Specify target byte endian orientation.
1364 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
1365 --enable-sim-hostendian=end Specify host byte endian orientation.
1366 --enable-sim-scache=size Specify simulator execution cache size.
1367 --enable-sim-default-model=model Specify default model to simulate.
1368 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.
1369 --enable-cgen-maint=DIR build cgen generated files
1370 --enable-sim-trapdump Make unknown traps dump the registers
1373 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1374 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1375 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1376 --with-bugurl=URL Direct users to URL to report a bug
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1391 Report bugs to the package provider.
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" ||
1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1421 .) # We are building in place.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1455 generated by GNU Autoconf 2.64
1457 Copyright (C) 2009 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1464 ## ------------------------ ##
1465 ## Autoconf initialization. ##
1466 ## ------------------------ ##
1468 # ac_fn_c_try_compile LINENO
1469 # --------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_compile ()
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 rm -f conftest.$ac_objext
1475 if { { ac_try="$ac_compile"
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_compile") 2>conftest.err
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } && {
1491 test -z "$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 } && test -s conftest.$ac_objext; then :
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1504 } # ac_fn_c_try_compile
1506 # ac_fn_c_try_cpp LINENO
1507 # ----------------------
1508 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 if { { ac_try="$ac_cpp conftest.$ac_ext"
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } >/dev/null && {
1528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1543 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1544 # -------------------------------------------------------
1545 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1546 # the include files in INCLUDES and setting the cache variable VAR
1548 ac_fn_c_check_header_mongrel ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553 $as_echo_n "checking for $2... " >&6; }
1554 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1555 $as_echo_n "(cached) " >&6
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559 $as_echo "$ac_res" >&6; }
1561 # Is the header compilable?
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1563 $as_echo_n "checking $2 usability... " >&6; }
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1569 if ac_fn_c_try_compile "$LINENO"; then :
1570 ac_header_compiler=yes
1572 ac_header_compiler=no
1574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1576 $as_echo "$ac_header_compiler" >&6; }
1578 # Is the header present?
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1580 $as_echo_n "checking $2 presence... " >&6; }
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1585 if ac_fn_c_try_cpp "$LINENO"; then :
1586 ac_header_preproc=yes
1588 ac_header_preproc=no
1590 rm -f conftest.err conftest.$ac_ext
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1592 $as_echo "$ac_header_preproc" >&6; }
1594 # So? What about this header?
1595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1598 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1604 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1606 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1608 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1610 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1618 $as_echo_n "(cached) " >&6
1620 eval "$3=\$ac_header_compiler"
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 } # ac_fn_c_check_header_mongrel
1630 # ac_fn_c_try_run LINENO
1631 # ----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633 # that executables *can* be run.
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_link"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>&5
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648 { { case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_try") 2>&5
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; }; }; then :
1660 $as_echo "$as_me: program exited with status $ac_status" >&5
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=$ac_status
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1689 if ac_fn_c_try_compile "$LINENO"; then :
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 } # ac_fn_c_check_header_compile
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 $as_test_x conftest$ac_exeext
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 } # ac_fn_c_try_link
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1758 $as_echo_n "(cached) " >&6
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764 #define $2 innocuous_$2
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1772 # include <limits.h>
1774 # include <assert.h>
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1801 if ac_fn_c_try_link "$LINENO"; then :
1806 rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814 } # ac_fn_c_check_func
1815 cat >config.log <<_ACEOF
1816 This file contains any messages produced by compilers while
1817 running configure, to aid debugging if configure makes a mistake.
1819 It was created by $as_me, which was
1820 generated by GNU Autoconf 2.64. Invocation command line was
1832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1841 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1842 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1845 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1846 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1847 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 $as_echo "PATH: $as_dir"
1872 # Keep a trace of the command line.
1873 # Strip out --no-create and --no-recursion so they do not pile up.
1874 # Strip out --silent because we don't want to record it for future runs.
1875 # Also quote any args containing shell meta-characters.
1876 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_must_keep_next=false
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1891 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1896 as_fn_append ac_configure_args1 " '$ac_arg'"
1897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909 -* ) ac_must_keep_next=true ;;
1912 as_fn_append ac_configure_args " '$ac_arg'"
1917 { ac_configure_args0=; unset ac_configure_args0;}
1918 { ac_configure_args1=; unset ac_configure_args1;}
1920 # When interrupted or exit'd, cleanup temporary files, and complete
1921 # config.log. We remove comments because anyway the quotes in there
1922 # would cause problems or look ugly.
1923 # WARNING: Use '\'' to represent an apostrophe within the trap.
1924 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925 trap 'exit_status=$?
1926 # Save into config.log some information that might help in debugging.
1931 ## ---------------- ##
1932 ## Cache variables. ##
1933 ## ---------------- ##
1936 # The following way of writing the cache mishandles newlines in values,
1938 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1939 eval ac_val=\$$ac_var
1943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1944 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 _ | IFS | as_nl) ;; #(
1948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1949 *) { eval $ac_var=; unset $ac_var;} ;;
1954 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1955 *${as_nl}ac_space=\ *)
1957 "s/'\''/'\''\\\\'\'''\''/g;
1958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969 ## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##
1974 for ac_var in $ac_subst_vars
1976 eval ac_val=\$$ac_var
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 $as_echo "$ac_var='\''$ac_val'\''"
1984 if test -n "$ac_subst_files"; then
1986 ## ------------------- ##
1987 ## File substitutions. ##
1988 ## ------------------- ##
1991 for ac_var in $ac_subst_files
1993 eval ac_val=\$$ac_var
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 $as_echo "$ac_var='\''$ac_val'\''"
2002 if test -s confdefs.h; then
2012 test "$ac_signal" != 0 &&
2013 $as_echo "$as_me: caught signal $ac_signal"
2014 $as_echo "$as_me: exit $exit_status"
2016 rm -f core *.core core.conftest.* &&
2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 for ac_signal in 1 2 13 15; do
2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026 rm -f -r conftest* confdefs.h
2028 $as_echo "/* confdefs.h */" > confdefs.h
2030 # Predefined preprocessor variables.
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_NAME "$PACKAGE_NAME"
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_STRING "$PACKAGE_STRING"
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_URL "$PACKAGE_URL"
2057 # Let the site file select an alternate cache file if it wants to.
2058 # Prefer an explicitly selected file to automatically selected ones.
2061 if test -n "$CONFIG_SITE"; then
2062 ac_site_file1=$CONFIG_SITE
2063 elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 test "x$ac_site_file" = xNONE && continue
2073 if test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2081 if test -r "$cache_file"; then
2082 # Some versions of bash will fail to source /dev/null (special
2083 # files actually), so we avoid doing that.
2084 if test -f "$cache_file"; then
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089 *) . "./$cache_file";;
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094 $as_echo "$as_me: creating cache $cache_file" >&6;}
2098 # Check that the precious variables saved in the cache have kept the same
2100 ac_cache_corrupted=false
2101 for ac_var in $ac_precious_vars; do
2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103 eval ac_new_set=\$ac_env_${ac_var}_set
2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105 eval ac_new_val=\$ac_env_${ac_var}_value
2106 case $ac_old_set,$ac_new_set in
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110 ac_cache_corrupted=: ;;
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2117 if test "x$ac_old_val" != "x$ac_new_val"; then
2118 # differences in whitespace do not lead to failure.
2119 ac_old_val_w=`echo x $ac_old_val`
2120 ac_new_val_w=`echo x $ac_new_val`
2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted=:
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128 eval $ac_var=\$ac_old_val
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2131 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2133 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2136 # Pass precious variables to config.status.
2137 if test "$ac_new_set" = set; then
2139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 *) ac_arg=$ac_var=$ac_new_val ;;
2142 case " $ac_configure_args " in
2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2144 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2148 if $ac_cache_corrupted; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2155 ## -------------------- ##
2156 ## Main body of script. ##
2157 ## -------------------- ##
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166 ac_config_headers="$ac_config_headers config.h:config.in"
2169 # This file contains common code used by all simulators.
2171 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2172 # directory. It is intended to be invoked before any target specific stuff.
2173 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2174 # It is intended to be invoked last.
2176 # The simulator's configure.in should look like:
2178 # dnl Process this file with autoconf to produce a configure script.
2179 # sinclude(../common/aclocal.m4)
2181 # AC_INIT(Makefile.in)
2185 # ... target specific stuff ...
2189 # Include global overrides and fixes for Autoconf.
2274 sim_inline="-DDEFAULT_INLINE=0"
2311 # intl sister-directory configuration rules.
2314 # The idea behind this macro is that there's no need to repeat all the
2315 # autoconf probes done by the intl directory - it's already done them
2316 # for us. In fact, there's no need even to look at the cache for the
2317 # answers. All we need to do is nab a few pieces of information.
2318 # The intl directory is set up to make this easy, by generating a
2319 # small file which can be sourced as a shell script; then we produce
2320 # the necessary substitutions and definitions for this directory.
2324 # Autoconf M4 include file defining utility macros for complex Canadian
2336 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2338 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2341 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2342 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2346 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2347 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2351 # Backported from Autoconf 2.5x; can go away when and if
2352 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2357 # ACX_HAVE_GCC_FOR_TARGET
2358 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2361 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2362 # Searching for installed target binutils. We need to take extra care,
2363 # else we may find the wrong assembler, linker, etc., and lose.
2365 # First try --with-build-time-tools, if specified.
2367 # For build != host, we ask the installed GCC for the name of the tool it
2368 # uses, and accept it if it is an absolute path. This is because the
2369 # only good choice for a compiler is the same GCC version that is being
2370 # installed (or we couldn't make target libraries), and we assume that
2371 # on the host system we'll have not only the same GCC version, but also
2372 # the same binutils version.
2374 # For build == host, search the same directories that the installed
2375 # compiler will search. We used to do this for the assembler, linker,
2376 # and nm only; for simplicity of configuration, however, we extend this
2377 # criterion to tools (such as ar and ranlib) that are never invoked by
2378 # the compiler, to avoid mismatches.
2380 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2381 # if build == target. This makes the most sense only when bootstrapping,
2382 # but we also do so when build != host. In this case, we hope that the
2383 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2385 # If we do not find a suitable binary, then try the user's path.
2389 # AC_PROG_CPP_WERROR
2390 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2391 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2392 # For now, using this also overrides header checks to use only the
2393 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2394 # bit harder from here).
2395 # Eventually autoconf will default to checking headers with the compiler
2396 # instead, and we'll have to do this differently.
2398 # AC_PROG_CPP_WERROR
2401 # We require the gnatbind program, and a compiler driver that
2402 # understands Ada. We use the user's CC setting, already found,
2403 # and possibly add $1 to the command-line parameters.
2405 # Sets the shell variable have_gnat to yes or no as appropriate, and
2406 # substitutes GNATBIND and GNATMAKE.
2433 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
2434 # it by inlining the macro's contents.
2435 # This file contains common code used by all simulators.
2437 # common.m4 invokes AC macros used by all simulators and by the common
2438 # directory. It is intended to be included before any target specific
2439 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
2440 # the Makefile. It is intended to be invoked last.
2442 # The simulator's configure.in should look like:
2444 # dnl Process this file with autoconf to produce a configure script.
2446 # AC_INIT(Makefile.in)
2447 # AC_CONFIG_HEADER(config.h:config.in)
2449 # sinclude(../common/aclocal.m4)
2450 # sinclude(../common/common.m4)
2452 # ... target specific stuff ...
2455 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2456 for ac_t in install-sh install.sh shtool; do
2457 if test -f "$ac_dir/$ac_t"; then
2459 ac_install_sh="$ac_aux_dir/$ac_t -c"
2464 if test -z "$ac_aux_dir"; then
2465 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2468 # These three variables are undocumented and unsupported,
2469 # and are intended to be withdrawn in a future Autoconf release.
2470 # They can cause serious problems if a builder's source tree is in a directory
2471 # whose full name contains unusual characters.
2472 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2473 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2474 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2477 # Make sure we can run config.sub.
2478 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2479 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2482 $as_echo_n "checking build system type... " >&6; }
2483 if test "${ac_cv_build+set}" = set; then :
2484 $as_echo_n "(cached) " >&6
2486 ac_build_alias=$build_alias
2487 test "x$ac_build_alias" = x &&
2488 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2489 test "x$ac_build_alias" = x &&
2490 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2491 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2492 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2496 $as_echo "$ac_cv_build" >&6; }
2497 case $ac_cv_build in
2499 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2502 ac_save_IFS=$IFS; IFS='-'
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2512 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2516 $as_echo_n "checking host system type... " >&6; }
2517 if test "${ac_cv_host+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
2520 if test "x$host_alias" = x; then
2521 ac_cv_host=$ac_cv_build
2523 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2524 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2529 $as_echo "$ac_cv_host" >&6; }
2532 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2535 ac_save_IFS=$IFS; IFS='-'
2541 # Remember, the first character of IFS is used to create $*,
2542 # except with old shells:
2545 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2549 $as_echo_n "checking target system type... " >&6; }
2550 if test "${ac_cv_target+set}" = set; then :
2551 $as_echo_n "(cached) " >&6
2553 if test "x$target_alias" = x; then
2554 ac_cv_target=$ac_cv_host
2556 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2557 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2562 $as_echo "$ac_cv_target" >&6; }
2563 case $ac_cv_target in
2565 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2567 target=$ac_cv_target
2568 ac_save_IFS=$IFS; IFS='-'
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2578 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2581 # The aliases save the names the user supplied, while $host etc.
2582 # will get canonicalized.
2583 test -n "$target_alias" &&
2584 test "$program_prefix$program_suffix$program_transform_name" = \
2586 program_prefix=${target_alias}-
2588 test "$program_prefix" != NONE &&
2589 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2590 # Use a double $ so make ignores it.
2591 test "$program_suffix" != NONE &&
2592 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2593 # Double any \ or $.
2594 # By default was `s,x,x', remove it if useless.
2595 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2596 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 if test -n "$ac_tool_prefix"; then
2604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 if test -n "$CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634 $as_echo "$CC" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2642 if test -z "$ac_cv_prog_CC"; then
2644 # Extract the first word of "gcc", so it can be a program name with args.
2645 set dummy gcc; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_ac_ct_CC="gcc"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672 if test -n "$ac_ct_CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2674 $as_echo "$ac_ct_CC" >&6; }
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2680 if test "x$ac_ct_CC" = x; then
2683 case $cross_compiling:$ac_tool_warned in
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2687 ac_tool_warned=yes ;;
2695 if test -z "$CC"; then
2696 if test -n "$ac_tool_prefix"; then
2697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2698 set dummy ${ac_tool_prefix}cc; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_CC+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_CC="${ac_tool_prefix}cc"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 if test -n "$CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727 $as_echo "$CC" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2736 if test -z "$CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_CC+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2756 ac_prog_rejected=yes
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 if test $ac_prog_rejected = yes; then
2768 # We found a bogon in the path, so make sure we never use it.
2769 set dummy $ac_cv_prog_CC
2771 if test $# != 0; then
2772 # We chose a different compiler from the bogus one.
2773 # However, it has the same basename, so the bogon will be chosen
2774 # first if we set CC to just the basename; use the full file name.
2776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2782 if test -n "$CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2784 $as_echo "$CC" >&6; }
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2792 if test -z "$CC"; then
2793 if test -n "$ac_tool_prefix"; then
2794 for ac_prog in cl.exe
2796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then :
2801 $as_echo_n "(cached) " >&6
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826 $as_echo "$CC" >&6; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2833 test -n "$CC" && break
2836 if test -z "$CC"; then
2838 for ac_prog in cl.exe
2840 # Extract the first word of "$ac_prog", so it can be a program name with args.
2841 set dummy $ac_prog; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2847 if test -n "$ac_ct_CC"; then
2848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_ac_ct_CC="$ac_prog"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2870 $as_echo "$ac_ct_CC" >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2877 test -n "$ac_ct_CC" && break
2880 if test "x$ac_ct_CC" = x; then
2883 case $cross_compiling:$ac_tool_warned in
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887 ac_tool_warned=yes ;;
2896 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error "no acceptable C compiler found in \$PATH
2899 See \`config.log' for more details." "$LINENO" 5; }
2901 # Provide some information about the compiler.
2902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2905 for ac_option in --version -v -V -qversion; do
2906 { { ac_try="$ac_compiler $ac_option >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2912 $as_echo "$ac_try_echo"; } >&5
2913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2915 if test -s conftest.err; then
2917 ... rest of stderr output deleted ...
2918 10q' conftest.err >conftest.er1
2919 cat conftest.er1 >&5
2920 rm -f conftest.er1 conftest.err
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2937 ac_clean_files_save=$ac_clean_files
2938 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2939 # Try to create an executable without -o first, disregard a.out.
2940 # It will help us diagnose broken compilers, and finding out an intuition
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2943 $as_echo_n "checking for C compiler default output file name... " >&6; }
2944 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 # The possible output files:
2947 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2950 for ac_file in $ac_files
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2954 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2959 if { { ac_try="$ac_link_default"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link_default") 2>&5
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2971 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2972 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2973 # so that the user can short-circuit this test for compilers unknown to
2975 for ac_file in $ac_files ''
2977 test -f "$ac_file" || continue
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2982 # We found the default executable, but exeext='' is most
2986 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990 # We set ac_cv_exeext here because the later test for it is not
2991 # safe: cross compilers may not add the suffix if given an `-o'
2992 # argument, so we may need to know it at that point already.
2993 # Even if this section looks crufty: it has the advantage of
3000 test "$ac_cv_exeext" = no && ac_cv_exeext=
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3006 $as_echo "$ac_file" >&6; }
3007 if test -z "$ac_file"; then :
3008 $as_echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 { as_fn_set_status 77
3014 as_fn_error "C compiler cannot create executables
3015 See \`config.log' for more details." "$LINENO" 5; }; }
3017 ac_exeext=$ac_cv_exeext
3019 # Check that the compiler produces executables we can run. If not, either
3020 # the compiler is broken, or we cross compile.
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3022 $as_echo_n "checking whether the C compiler works... " >&6; }
3023 # If not cross compiling, check that we can run a simple program.
3024 if test "$cross_compiling" != yes; then
3025 if { ac_try='./$ac_file'
3026 { { case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_try") 2>&5
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; }; then
3038 if test "$cross_compiling" = maybe; then
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error "cannot run C compiled programs.
3044 If you meant to cross compile, use \`--host'.
3045 See \`config.log' for more details." "$LINENO" 5; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 $as_echo "yes" >&6; }
3052 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3053 ac_clean_files=$ac_clean_files_save
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3057 $as_echo_n "checking whether we are cross compiling... " >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3059 $as_echo "$cross_compiling" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3062 $as_echo_n "checking for suffix of executables... " >&6; }
3063 if { { ac_try="$ac_link"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link") 2>&5
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; then :
3074 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3075 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3076 # work properly (i.e., refer to `conftest.exe'), while it won't with
3078 for ac_file in conftest.exe conftest conftest.*; do
3079 test -f "$ac_file" || continue
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 as_fn_error "cannot compute suffix of executables: cannot compile and link
3091 See \`config.log' for more details." "$LINENO" 5; }
3093 rm -f conftest$ac_cv_exeext
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3095 $as_echo "$ac_cv_exeext" >&6; }
3097 rm -f conftest.$ac_ext
3098 EXEEXT=$ac_cv_exeext
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3101 $as_echo_n "checking for suffix of object files... " >&6; }
3102 if test "${ac_cv_objext+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3116 rm -f conftest.o conftest.obj
3117 if { { ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_compile") 2>&5
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }; then :
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3137 $as_echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error "cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details." "$LINENO" 5; }
3145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3148 $as_echo "$ac_cv_objext" >&6; }
3149 OBJEXT=$ac_cv_objext
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3153 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3170 if ac_fn_c_try_compile "$LINENO"; then :
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3181 if test $ac_compiler_gnu = yes; then
3186 ac_test_CFLAGS=${CFLAGS+set}
3187 ac_save_CFLAGS=$CFLAGS
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3190 if test "${ac_cv_prog_cc_g+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3193 ac_save_c_werror_flag=$ac_c_werror_flag
3194 ac_c_werror_flag=yes
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3208 if ac_fn_c_try_compile "$LINENO"; then :
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3223 if ac_fn_c_try_compile "$LINENO"; then :
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3239 if ac_fn_c_try_compile "$LINENO"; then :
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3250 $as_echo "$ac_cv_prog_cc_g" >&6; }
3251 if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3260 if test "$GCC" = yes; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3268 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3271 ac_cv_prog_cc_c89=no
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3277 #include <sys/types.h>
3278 #include <sys/stat.h>
3279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280 struct buf { int x; };
3281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282 static char *e (p, i)
3288 static char *f (char * (*g) (char **, int), char **p, ...)
3293 s = g (p, va_arg (v,int));
3298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
3301 as 'x'. The following induces an error, until -std is added to get
3302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
3304 that's true only with -std. */
3305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312 int test (int i, double x);
3313 struct s1 {int (*f) (int a);};
3314 struct s2 {int (*f) (double a);};
3315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3329 CC="$ac_save_CC $ac_arg"
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_cv_prog_cc_c89=$ac_arg
3333 rm -f core conftest.err conftest.$ac_objext
3334 test "x$ac_cv_prog_cc_c89" != "xno" && break
3336 rm -f conftest.$ac_ext
3341 case "x$ac_cv_prog_cc_c89" in
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3344 $as_echo "none needed" >&6; } ;;
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3347 $as_echo "unsupported" >&6; } ;;
3349 CC="$CC $ac_cv_prog_cc_c89"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3351 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3353 if test "x$ac_cv_prog_cc_c89" != xno; then :
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 # Find a good install program. We prefer a C program (faster),
3364 # so one script is as good as another. But avoid the broken or
3365 # incompatible versions:
3366 # SysV /etc/install, /usr/sbin/install
3367 # SunOS /usr/etc/install
3368 # IRIX /sbin/install
3370 # AmigaOS /C/install, which installs bootblocks on floppy discs
3371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3374 # OS/2's system install, which has a completely different semantic
3375 # ./install, which can be erroneously created by make from ./install.sh.
3376 # Reject install programs that cannot install multiple files.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3378 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3379 if test -z "$INSTALL"; then
3380 if test "${ac_cv_path_install+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 # Account for people who put trailing slashes in PATH elements.
3389 case $as_dir/ in #((
3390 ./ | .// | /[cC]/* | \
3391 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3392 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3395 # OSF1 and SCO ODT 3.0 have their own names for install.
3396 # Don't use installbsd from OSF since it installs stuff as root
3398 for ac_prog in ginstall scoinst install; do
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3401 if test $ac_prog = install &&
3402 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3403 # AIX install. It has an incompatible calling convention.
3405 elif test $ac_prog = install &&
3406 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3407 # program-specific install script used by HP pwplus--don't use.
3410 rm -rf conftest.one conftest.two conftest.dir
3411 echo one > conftest.one
3412 echo two > conftest.two
3414 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3415 test -s conftest.one && test -s conftest.two &&
3416 test -s conftest.dir/conftest.one &&
3417 test -s conftest.dir/conftest.two
3419 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3432 rm -rf conftest.one conftest.two conftest.dir
3435 if test "${ac_cv_path_install+set}" = set; then
3436 INSTALL=$ac_cv_path_install
3438 # As a last resort, use the slow shell script. Don't cache a
3439 # value for INSTALL within a source directory, because that will
3440 # break other packages using the cache if that directory is
3441 # removed, or if the value is a relative name.
3442 INSTALL=$ac_install_sh
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3446 $as_echo "$INSTALL" >&6; }
3448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3449 # It thinks the first close brace ends the variable substitution.
3450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3457 # Put a plausible default for CC_FOR_BUILD in Makefile.
3458 if test "x$cross_compiling" = "xno"; then
3459 CC_FOR_BUILD='$(CC)'
3469 if test -n "$ac_tool_prefix"; then
3470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3477 if test -n "$RANLIB"; then
3478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 RANLIB=$ac_cv_prog_RANLIB
3498 if test -n "$RANLIB"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3500 $as_echo "$RANLIB" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3508 if test -z "$ac_cv_prog_RANLIB"; then
3509 ac_ct_RANLIB=$RANLIB
3510 # Extract the first word of "ranlib", so it can be a program name with args.
3511 set dummy ranlib; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3517 if test -n "$ac_ct_RANLIB"; then
3518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_ac_ct_RANLIB="ranlib"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3538 if test -n "$ac_ct_RANLIB"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3540 $as_echo "$ac_ct_RANLIB" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3546 if test "x$ac_ct_RANLIB" = x; then
3549 case $cross_compiling:$ac_tool_warned in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553 ac_tool_warned=yes ;;
3555 RANLIB=$ac_ct_RANLIB
3558 RANLIB="$ac_cv_prog_RANLIB"
3563 # If we haven't got the data from the intl directory,
3564 # assume NLS is disabled.
3573 if test -f ../../intl/config.intl; then
3574 . ../../intl/config.intl
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3577 $as_echo_n "checking whether NLS is requested... " >&6; }
3578 if test x"$USE_NLS" != xyes; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3583 $as_echo "yes" >&6; }
3585 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3589 $as_echo_n "checking for catalogs to be installed... " >&6; }
3590 # Look for .po and .gmo files in the source directory.
3593 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3594 # If there aren't any .gmo files the shell will give us the
3595 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3597 case "$cat" in *\**)
3600 # The quadruple backslash is collapsed to a double backslash
3601 # by the backticks, then collapsed again by the double quotes,
3602 # leaving us with one backslash in the sed expression (right
3603 # before the dot that mustn't act as a wildcard).
3604 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3605 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3606 # The user is allowed to set LINGUAS to a list of languages to
3607 # install catalogs for. If it's empty that means "all of them."
3608 if test "x$LINGUAS" = x; then
3609 CATALOGS="$CATALOGS $cat"
3610 XLINGUAS="$XLINGUAS $lang"
3612 case "$LINGUAS" in *$lang*)
3613 CATALOGS="$CATALOGS $cat"
3614 XLINGUAS="$XLINGUAS $lang"
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3621 $as_echo "$LINGUAS" >&6; }
3634 # Check for common headers.
3635 # FIXME: Seems to me this can cause problems for i386-windows hosts.
3636 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3644 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3645 # On Suns, sometimes $CPP names a directory.
3646 if test -n "$CPP" && test -d "$CPP"; then
3649 if test -z "$CPP"; then
3650 if test "${ac_cv_prog_CPP+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3653 # Double quotes because CPP needs to be expanded
3654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3657 for ac_c_preproc_warn_flag in '' yes
3659 # Use a header file that comes with gcc, so configuring glibc
3660 # with a fresh cross-compiler works.
3661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662 # <limits.h> exists even on freestanding compilers.
3663 # On the NeXT, cc -E runs the code through the compiler's parser,
3664 # not just through cpp. "Syntax error" is here to catch this case.
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3668 # include <limits.h>
3670 # include <assert.h>
3674 if ac_fn_c_try_cpp "$LINENO"; then :
3677 # Broken: fails on valid input.
3680 rm -f conftest.err conftest.$ac_ext
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <ac_nonexistent.h>
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3689 # Broken: success on invalid input.
3692 # Passes both tests.
3696 rm -f conftest.err conftest.$ac_ext
3699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3700 rm -f conftest.err conftest.$ac_ext
3701 if $ac_preproc_ok; then :
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3714 $as_echo "$CPP" >&6; }
3716 for ac_c_preproc_warn_flag in '' yes
3718 # Use a header file that comes with gcc, so configuring glibc
3719 # with a fresh cross-compiler works.
3720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3721 # <limits.h> exists even on freestanding compilers.
3722 # On the NeXT, cc -E runs the code through the compiler's parser,
3723 # not just through cpp. "Syntax error" is here to catch this case.
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3727 # include <limits.h>
3729 # include <assert.h>
3733 if ac_fn_c_try_cpp "$LINENO"; then :
3736 # Broken: fails on valid input.
3739 rm -f conftest.err conftest.$ac_ext
3741 # OK, works on sane cases. Now check whether nonexistent headers
3742 # can be detected and how.
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 #include <ac_nonexistent.h>
3747 if ac_fn_c_try_cpp "$LINENO"; then :
3748 # Broken: success on invalid input.
3751 # Passes both tests.
3755 rm -f conftest.err conftest.$ac_ext
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then :
3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details." "$LINENO" 5; }
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3777 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3778 if test "${ac_cv_path_GREP+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -z "$GREP"; then
3782 ac_path_GREP_found=false
3783 # Loop through the user's path and test for each of PROGNAME-LIST
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788 test -z "$as_dir" && as_dir=.
3789 for ac_prog in grep ggrep; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3792 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3793 # Check for GNU ac_path_GREP and select it if it is found.
3794 # Check for GNU $ac_path_GREP
3795 case `"$ac_path_GREP" --version 2>&1` in
3797 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3800 $as_echo_n 0123456789 >"conftest.in"
3803 cat "conftest.in" "conftest.in" >"conftest.tmp"
3804 mv "conftest.tmp" "conftest.in"
3805 cp "conftest.in" "conftest.nl"
3806 $as_echo 'GREP' >> "conftest.nl"
3807 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3809 as_fn_arith $ac_count + 1 && ac_count=$as_val
3810 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3811 # Best one so far, save it but keep looking for a better one
3812 ac_cv_path_GREP="$ac_path_GREP"
3813 ac_path_GREP_max=$ac_count
3815 # 10*(2^10) chars as input seems more than enough
3816 test $ac_count -gt 10 && break
3818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 $ac_path_GREP_found && break 3
3826 if test -z "$ac_cv_path_GREP"; then
3827 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3830 ac_cv_path_GREP=$GREP
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3835 $as_echo "$ac_cv_path_GREP" >&6; }
3836 GREP="$ac_cv_path_GREP"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3840 $as_echo_n "checking for egrep... " >&6; }
3841 if test "${ac_cv_path_EGREP+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3844 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3845 then ac_cv_path_EGREP="$GREP -E"
3847 if test -z "$EGREP"; then
3848 ac_path_EGREP_found=false
3849 # Loop through the user's path and test for each of PROGNAME-LIST
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3854 test -z "$as_dir" && as_dir=.
3855 for ac_prog in egrep; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3858 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3859 # Check for GNU ac_path_EGREP and select it if it is found.
3860 # Check for GNU $ac_path_EGREP
3861 case `"$ac_path_EGREP" --version 2>&1` in
3863 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3866 $as_echo_n 0123456789 >"conftest.in"
3869 cat "conftest.in" "conftest.in" >"conftest.tmp"
3870 mv "conftest.tmp" "conftest.in"
3871 cp "conftest.in" "conftest.nl"
3872 $as_echo 'EGREP' >> "conftest.nl"
3873 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3875 as_fn_arith $ac_count + 1 && ac_count=$as_val
3876 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3877 # Best one so far, save it but keep looking for a better one
3878 ac_cv_path_EGREP="$ac_path_EGREP"
3879 ac_path_EGREP_max=$ac_count
3881 # 10*(2^10) chars as input seems more than enough
3882 test $ac_count -gt 10 && break
3884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3887 $ac_path_EGREP_found && break 3
3892 if test -z "$ac_cv_path_EGREP"; then
3893 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3896 ac_cv_path_EGREP=$EGREP
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3902 $as_echo "$ac_cv_path_EGREP" >&6; }
3903 EGREP="$ac_cv_path_EGREP"
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3907 $as_echo_n "checking for ANSI C header files... " >&6; }
3908 if test "${ac_cv_header_stdc+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_cv_header_stdc=yes
3929 ac_cv_header_stdc=no
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 if test $ac_cv_header_stdc = yes; then
3934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "memchr" >/dev/null 2>&1; then :
3944 ac_cv_header_stdc=no
3950 if test $ac_cv_header_stdc = yes; then
3951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958 $EGREP "free" >/dev/null 2>&1; then :
3961 ac_cv_header_stdc=no
3967 if test $ac_cv_header_stdc = yes; then
3968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3969 if test "$cross_compiling" = yes; then :
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3976 #if ((' ' & 0x0FF) == 0x020)
3977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3980 # define ISLOWER(c) \
3981 (('a' <= (c) && (c) <= 'i') \
3982 || ('j' <= (c) && (c) <= 'r') \
3983 || ('s' <= (c) && (c) <= 'z'))
3984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3992 for (i = 0; i < 256; i++)
3993 if (XOR (islower (i), ISLOWER (i))
3994 || toupper (i) != TOUPPER (i))
3999 if ac_fn_c_try_run "$LINENO"; then :
4002 ac_cv_header_stdc=no
4004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4005 conftest.$ac_objext conftest.beam conftest.$ac_ext
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4011 $as_echo "$ac_cv_header_stdc" >&6; }
4012 if test $ac_cv_header_stdc = yes; then
4014 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4020 inttypes.h stdint.h unistd.h
4022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4025 eval as_val=\$$as_ac_Header
4026 if test "x$as_val" = x""yes; then :
4027 cat >>confdefs.h <<_ACEOF
4028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4036 for ac_header in stdlib.h string.h strings.h unistd.h time.h
4038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4040 eval as_val=\$$as_ac_Header
4041 if test "x$as_val" = x""yes; then :
4042 cat >>confdefs.h <<_ACEOF
4043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4050 for ac_header in sys/time.h sys/resource.h
4052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4053 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4054 eval as_val=\$$as_ac_Header
4055 if test "x$as_val" = x""yes; then :
4056 cat >>confdefs.h <<_ACEOF
4057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4064 for ac_header in fcntl.h fpu_control.h
4066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4067 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4068 eval as_val=\$$as_ac_Header
4069 if test "x$as_val" = x""yes; then :
4070 cat >>confdefs.h <<_ACEOF
4071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 for ac_header in dlfcn.h errno.h sys/stat.h
4080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4081 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4082 eval as_val=\$$as_ac_Header
4083 if test "x$as_val" = x""yes; then :
4084 cat >>confdefs.h <<_ACEOF
4085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4092 for ac_func in getrusage time sigaction __setfpucw
4094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4096 eval as_val=\$$as_ac_var
4097 if test "x$as_val" = x""yes; then :
4098 cat >>confdefs.h <<_ACEOF
4099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4106 # Check for socket libraries
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4108 $as_echo_n "checking for bind in -lsocket... " >&6; }
4109 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4112 ac_check_lib_save_LIBS=$LIBS
4113 LIBS="-lsocket $LIBS"
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4117 /* Override any GCC internal prototype to avoid an error.
4118 Use char because int might match the return type of a GCC
4119 builtin and then its argument prototype would still apply. */
4132 if ac_fn_c_try_link "$LINENO"; then :
4133 ac_cv_lib_socket_bind=yes
4135 ac_cv_lib_socket_bind=no
4137 rm -f core conftest.err conftest.$ac_objext \
4138 conftest$ac_exeext conftest.$ac_ext
4139 LIBS=$ac_check_lib_save_LIBS
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4142 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4143 if test "x$ac_cv_lib_socket_bind" = x""yes; then :
4144 cat >>confdefs.h <<_ACEOF
4145 #define HAVE_LIBSOCKET 1
4148 LIBS="-lsocket $LIBS"
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4153 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4154 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4157 ac_check_lib_save_LIBS=$LIBS
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4162 /* Override any GCC internal prototype to avoid an error.
4163 Use char because int might match the return type of a GCC
4164 builtin and then its argument prototype would still apply. */
4168 char gethostbyname ();
4172 return gethostbyname ();
4177 if ac_fn_c_try_link "$LINENO"; then :
4178 ac_cv_lib_nsl_gethostbyname=yes
4180 ac_cv_lib_nsl_gethostbyname=no
4182 rm -f core conftest.err conftest.$ac_objext \
4183 conftest$ac_exeext conftest.$ac_ext
4184 LIBS=$ac_check_lib_save_LIBS
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4187 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4188 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4189 cat >>confdefs.h <<_ACEOF
4190 #define HAVE_LIBNSL 1
4198 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4199 # using the same condition.
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4201 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4202 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4205 ac_func_search_save_LIBS=$LIBS
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4209 /* Override any GCC internal prototype to avoid an error.
4210 Use char because int might match the return type of a GCC
4211 builtin and then its argument prototype would still apply. */
4215 char zlibVersion ();
4219 return zlibVersion ();
4224 for ac_lib in '' z; do
4225 if test -z "$ac_lib"; then
4226 ac_res="none required"
4229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4231 if ac_fn_c_try_link "$LINENO"; then :
4232 ac_cv_search_zlibVersion=$ac_res
4234 rm -f core conftest.err conftest.$ac_objext \
4236 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4240 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4243 ac_cv_search_zlibVersion=no
4246 LIBS=$ac_func_search_save_LIBS
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4249 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4250 ac_res=$ac_cv_search_zlibVersion
4251 if test "$ac_res" != no; then :
4252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4253 for ac_header in zlib.h
4255 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4256 if test "x$ac_cv_header_zlib_h" = x""yes; then :
4257 cat >>confdefs.h <<_ACEOF
4258 #define HAVE_ZLIB_H 1
4268 . ${srcdir}/../../bfd/configure.host
4272 USE_MAINTAINER_MODE=no
4273 # Check whether --enable-maintainer-mode was given.
4274 if test "${enable_maintainer_mode+set}" = set; then :
4275 enableval=$enable_maintainer_mode; case "${enableval}" in
4276 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4278 *) as_fn_error "\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT="#" ;;
4280 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4281 echo "Setting maintainer mode" 6>&1
4289 # Check whether --enable-sim-bswap was given.
4290 if test "${enable_sim_bswap+set}" = set; then :
4291 enableval=$enable_sim_bswap; case "${enableval}" in
4292 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4293 no) sim_bswap="-DWITH_BSWAP=0";;
4294 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
4296 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4297 echo "Setting bswap flags = $sim_bswap" 6>&1
4305 # Check whether --enable-sim-cflags was given.
4306 if test "${enable_sim_cflags+set}" = set; then :
4307 enableval=$enable_sim_cflags; case "${enableval}" in
4308 yes) sim_cflags="-O2 -fomit-frame-pointer";;
4309 trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
4311 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4313 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4314 echo "Setting sim cflags = $sim_cflags" 6>&1
4322 # Check whether --enable-sim-debug was given.
4323 if test "${enable_sim_debug+set}" = set; then :
4324 enableval=$enable_sim_debug; case "${enableval}" in
4325 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4326 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4327 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4329 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4330 echo "Setting sim debug = $sim_debug" 6>&1
4338 # Check whether --enable-sim-stdio was given.
4339 if test "${enable_sim_stdio+set}" = set; then :
4340 enableval=$enable_sim_stdio; case "${enableval}" in
4341 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4342 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4343 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
4345 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4346 echo "Setting stdio flags = $sim_stdio" 6>&1
4354 # Check whether --enable-sim-trace was given.
4355 if test "${enable_sim_trace+set}" = set; then :
4356 enableval=$enable_sim_trace; case "${enableval}" in
4357 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4358 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4360 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4363 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4364 if test x"$sim_trace" = x; then
4365 sim_trace="-DWITH_TRACE='(TRACE_$x"
4367 sim_trace="${sim_trace}|TRACE_$x"
4370 sim_trace="$sim_trace)'" ;;
4372 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4373 echo "Setting sim trace = $sim_trace" 6>&1
4381 # Check whether --enable-sim-profile was given.
4382 if test "${enable_sim_profile+set}" = set; then :
4383 enableval=$enable_sim_profile; case "${enableval}" in
4384 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4385 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4387 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4390 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4391 if test x"$sim_profile" = x; then
4392 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4394 sim_profile="${sim_profile}|PROFILE_$x"
4397 sim_profile="$sim_profile)'" ;;
4399 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4400 echo "Setting sim profile = $sim_profile" 6>&1
4403 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4409 # Check whether --with-pkgversion was given.
4410 if test "${with_pkgversion+set}" = set; then :
4411 withval=$with_pkgversion; case "$withval" in
4412 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
4414 *) PKGVERSION="($withval) " ;;
4425 # Check whether --with-bugurl was given.
4426 if test "${with_bugurl+set}" = set; then :
4427 withval=$with_bugurl; case "$withval" in
4428 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4431 *) BUGURL="$withval"
4435 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4445 REPORT_BUGS_TO="<$BUGURL>"
4446 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4453 cat >>confdefs.h <<_ACEOF
4454 #define PKGVERSION "$PKGVERSION"
4458 cat >>confdefs.h <<_ACEOF
4459 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4464 $as_echo_n "checking return type of signal handlers... " >&6; }
4465 if test "${ac_cv_type_signal+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <sys/types.h>
4476 return *(signal (0, 0)) (0) == 1;
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_type_signal=int
4484 ac_cv_type_signal=void
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4489 $as_echo "$ac_cv_type_signal" >&6; }
4491 cat >>confdefs.h <<_ACEOF
4492 #define RETSIGTYPE $ac_cv_type_signal
4502 sim_link_links=tconfig.h
4503 if test -f ${srcdir}/tconfig.in
4505 sim_link_files=tconfig.in
4507 sim_link_files=../common/tconfig.in
4510 # targ-vals.def points to the libc macro description file.
4512 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4514 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4515 sim_link_links="${sim_link_links} targ-vals.def"
4519 wire_endian="BIG_ENDIAN"
4521 # Check whether --enable-sim-endian was given.
4522 if test "${enable_sim_endian+set}" = set; then :
4523 enableval=$enable_sim_endian; case "${enableval}" in
4524 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4525 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4526 yes) if test x"$wire_endian" != x; then
4527 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4529 if test x"$default_endian" != x; then
4530 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4532 echo "No hard-wired endian for target $target" 1>&6
4533 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
4536 no) if test x"$default_endian" != x; then
4537 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4539 if test x"$wire_endian" != x; then
4540 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4542 echo "No default endian for target $target" 1>&6
4543 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4546 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
4548 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
4549 echo "Setting endian flags = $sim_endian" 6>&1
4552 if test x"$default_endian" != x; then
4553 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4555 if test x"$wire_endian" != x; then
4556 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4563 wire_alignment="STRICT_ALIGNMENT"
4564 default_alignment=""
4566 # Check whether --enable-sim-alignment was given.
4567 if test "${enable_sim_alignment+set}" = set; then :
4568 enableval=$enable_sim_alignment; case "${enableval}" in
4569 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4570 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4571 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4572 yes) if test x"$wire_alignment" != x; then
4573 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4575 if test x"$default_alignment" != x; then
4576 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4578 echo "No hard-wired alignment for target $target" 1>&6
4579 sim_alignment="-DWITH_ALIGNMENT=0"
4582 no) if test x"$default_alignment" != x; then
4583 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4585 if test x"$wire_alignment" != x; then
4586 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4588 echo "No default alignment for target $target" 1>&6
4589 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4592 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
4594 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4595 echo "Setting alignment flags = $sim_alignment" 6>&1
4598 if test x"$default_alignment" != x; then
4599 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4601 if test x"$wire_alignment" != x; then
4602 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4610 # Check whether --enable-sim-hostendian was given.
4611 if test "${enable_sim_hostendian+set}" = set; then :
4612 enableval=$enable_sim_hostendian; case "${enableval}" in
4613 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4614 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4615 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4616 *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
4618 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4619 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4623 if test "x$cross_compiling" = "xno"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4625 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4626 if test "${ac_cv_c_bigendian+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 ac_cv_c_bigendian=unknown
4630 # See if we're dealing with a universal compiler.
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #ifndef __APPLE_CC__
4634 not a universal capable compiler
4639 if ac_fn_c_try_compile "$LINENO"; then :
4641 # Check for potential -arch flags. It is not universal unless
4642 # there are at least two -arch flags with different values.
4645 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4646 if test -n "$ac_prev"; then
4648 i?86 | x86_64 | ppc | ppc64)
4649 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4652 ac_cv_c_bigendian=universal
4658 elif test "x$ac_word" = "x-arch"; then
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 if test $ac_cv_c_bigendian = unknown; then
4665 # See if sys/param.h defines the BYTE_ORDER macro.
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <sys/types.h>
4669 #include <sys/param.h>
4674 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4675 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 # It does; now see whether it defined to BIG_ENDIAN or not.
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #include <sys/types.h>
4689 #include <sys/param.h>
4694 #if BYTE_ORDER != BIG_ENDIAN
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703 ac_cv_c_bigendian=yes
4705 ac_cv_c_bigendian=no
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 if test $ac_cv_c_bigendian = unknown; then
4712 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4720 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729 # It does; now see whether it defined to _BIG_ENDIAN or not.
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_c_bigendian=yes
4748 ac_cv_c_bigendian=no
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 if test $ac_cv_c_bigendian = unknown; then
4755 # Compile a test program.
4756 if test "$cross_compiling" = yes; then :
4757 # Try to guess by grepping values from an object file.
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760 short int ascii_mm[] =
4761 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4762 short int ascii_ii[] =
4763 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4764 int use_ascii (int i) {
4765 return ascii_mm[i] + ascii_ii[i];
4767 short int ebcdic_ii[] =
4768 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4769 short int ebcdic_mm[] =
4770 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4771 int use_ebcdic (int i) {
4772 return ebcdic_mm[i] + ebcdic_ii[i];
4779 return use_ascii (foo) == use_ebcdic (foo);
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4786 ac_cv_c_bigendian=yes
4788 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4789 if test "$ac_cv_c_bigendian" = unknown; then
4790 ac_cv_c_bigendian=no
4792 # finding both strings is unlikely to happen, but who knows?
4793 ac_cv_c_bigendian=unknown
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801 $ac_includes_default
4806 /* Are we little or big endian? From Harbison&Steele. */
4810 char c[sizeof (long int)];
4813 return u.c[sizeof (long int) - 1] == 1;
4819 if ac_fn_c_try_run "$LINENO"; then :
4820 ac_cv_c_bigendian=no
4822 ac_cv_c_bigendian=yes
4824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4825 conftest.$ac_objext conftest.beam conftest.$ac_ext
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4831 $as_echo "$ac_cv_c_bigendian" >&6; }
4832 case $ac_cv_c_bigendian in #(
4834 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4840 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4844 as_fn_error "unknown endianness
4845 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4848 if test $ac_cv_c_bigendian = yes; then
4849 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4851 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4854 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4859 default_sim_scache="16384"
4860 # Check whether --enable-sim-scache was given.
4861 if test "${enable_sim_scache+set}" = set; then :
4862 enableval=$enable_sim_scache; case "${enableval}" in
4863 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
4864 no) sim_scache="-DWITH_SCACHE=0" ;;
4865 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
4866 *) as_fn_error "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
4869 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
4870 echo "Setting scache size = $sim_scache" 6>&1
4873 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
4878 default_sim_default_model="fr500"
4879 # Check whether --enable-sim-default-model was given.
4880 if test "${enable_sim_default_model+set}" = set; then :
4881 enableval=$enable_sim_default_model; case "${enableval}" in
4882 yes|no) as_fn_error "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
4883 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
4885 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
4886 echo "Setting default model = $sim_default_model" 6>&1
4889 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
4894 # Check whether --enable-sim-environment was given.
4895 if test "${enable_sim_environment+set}" = set; then :
4896 enableval=$enable_sim_environment; case "${enableval}" in
4897 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
4898 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
4899 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
4900 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
4901 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
4902 sim_environment="";;
4904 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
4905 echo "Setting sim environment = $sim_environment" 6>&1
4908 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
4914 cgendir='$(srcdir)/../../cgen'
4915 # Check whether --enable-cgen-maint was given.
4916 if test "${enable_cgen_maint+set}" = set; then :
4917 enableval=$enable_cgen_maint; case "${enableval}" in
4918 yes) cgen_maint=yes ;;
4919 no) cgen_maint=no ;;
4921 # argument is cgen install directory (not implemented yet).
4922 # Having a `share' directory might be more appropriate for the .scm,
4924 cgendir=${cgen_maint}/lib/cgen
4929 if test x${cgen_maint} != xno ; then
4940 # Enable making unknown traps dump out registers
4942 # Check whether --enable-sim-trapdump was given.
4943 if test "${enable_sim_trapdump+set}" = set; then :
4944 enableval=$enable_sim_trapdump; case "${enableval}" in
4945 yes) sim_trapdump="-DTRAPDUMP=1";;
4946 no) sim_trapdump="-DTRAPDUMP=0";;
4947 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5; sim_trapdump="";;
4949 if test x"$silent" != x"yes" && test x"$sim_trapdump" != x""; then
4950 echo "Setting sim_trapdump = $sim_trapdump" 6>&1
4958 ac_sources="$sim_link_files"
4959 ac_dests="$sim_link_links"
4960 while test -n "$ac_sources"; do
4961 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4962 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4963 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
4965 ac_config_links="$ac_config_links $ac_config_links_1"
4968 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
4969 cgen_breaks="break cgen_rtx_error";
4972 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
4974 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
4976 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
4978 ac_config_commands="$ac_config_commands Makefile"
4980 ac_config_commands="$ac_config_commands stamp-h"
4982 cat >confcache <<\_ACEOF
4983 # This file is a shell script that caches the results of configure
4984 # tests run on this system so they can be shared between configure
4985 # scripts and configure runs, see configure's option --config-cache.
4986 # It is not useful on other systems. If it contains results you don't
4987 # want to keep, you may remove or edit it.
4989 # config.status only pays attention to the cache file if you give it
4990 # the --recheck option to rerun configure.
4992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4998 # The following way of writing the cache mishandles newlines in values,
4999 # but we know of no workaround that is simple, portable, and efficient.
5000 # So, we kill variables containing newlines.
5001 # Ultrix sh set writes to stderr and can't be redirected directly,
5002 # and sets the high bit in the cache file unless we assign to the vars.
5004 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5005 eval ac_val=\$$ac_var
5009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5013 _ | IFS | as_nl) ;; #(
5014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5015 *) { eval $ac_var=; unset $ac_var;} ;;
5021 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5022 *${as_nl}ac_space=\ *)
5023 # `set' does not quote correctly, so add quotes: double-quote
5024 # substitution turns \\\\ into \\, and sed turns \\ into \.
5027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5030 # `set' quotes correctly as required by POSIX, so do not add quotes.
5031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5045 if test -w "$cache_file"; then
5046 test "x$cache_file" != "x/dev/null" &&
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5048 $as_echo "$as_me: updating cache $cache_file" >&6;}
5049 cat confcache >$cache_file
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5052 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5058 # Let make expand exec_prefix.
5059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5061 DEFS=-DHAVE_CONFIG_H
5065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5066 # 1. Remove the extension, and $U if already installed.
5067 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5068 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5069 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5070 # will be set to the directory where LIBOBJS objects are built.
5071 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5072 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5076 LTLIBOBJS=$ac_ltlibobjs
5081 : ${CONFIG_STATUS=./config.status}
5083 ac_clean_files_save=$ac_clean_files
5084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5086 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5088 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5090 # Generated by $as_me.
5091 # Run this file to recreate the current configuration.
5092 # Compiler output produced by configure, useful for debugging
5093 # configure, is in config.log if it exists.
5099 SHELL=\${CONFIG_SHELL-$SHELL}
5102 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5103 ## -------------------- ##
5104 ## M4sh Initialization. ##
5105 ## -------------------- ##
5107 # Be more Bourne compatible
5108 DUALCASE=1; export DUALCASE # for MKS sh
5109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5113 # is contrary to our usage. Disable this feature.
5114 alias -g '${1+"$@"}'='"$@"'
5115 setopt NO_GLOB_SUBST
5117 case `(set -o) 2>/dev/null` in #(
5129 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5130 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5133 # Prefer a ksh shell builtin over an external printf program on Solaris,
5134 # but without wasting forks for bash or zsh.
5135 if test -z "$BASH_VERSION$ZSH_VERSION" \
5136 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5137 as_echo='print -r --'
5138 as_echo_n='print -rn --'
5139 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5140 as_echo='printf %s\n'
5141 as_echo_n='printf %s'
5143 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5144 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5145 as_echo_n='/usr/ucb/echo -n'
5147 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5148 as_echo_n_body='eval
5152 expr "X$arg" : "X\\(.*\\)$as_nl";
5153 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5155 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5157 export as_echo_n_body
5158 as_echo_n='sh -c $as_echo_n_body as_echo'
5161 as_echo='sh -c $as_echo_body as_echo'
5164 # The user is always right.
5165 if test "${PATH_SEPARATOR+set}" != set; then
5167 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5168 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5175 # We need space, tab and new line, in precisely that order. Quoting is
5176 # there to prevent editors from complaining about space-tab.
5177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5178 # splitting by setting IFS to empty value.)
5181 # Find who we are. Look in the path if we contain no directory separator.
5183 *[\\/]* ) as_myself=$0 ;;
5184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5195 # We did not find ourselves, most probably we were run as `sh COMMAND'
5196 # in which case we are not to be found in the path.
5197 if test "x$as_myself" = x; then
5200 if test ! -f "$as_myself"; then
5201 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5205 # Unset variables that we do not need and which cause bugs (e.g. in
5206 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5207 # suppresses any "Segmentation fault" message there. '((' could
5208 # trigger a bug in pdksh 5.2.14.
5209 for as_var in BASH_ENV ENV MAIL MAILPATH
5210 do eval test x\${$as_var+set} = xset \
5211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5227 # as_fn_error ERROR [LINENO LOG_FD]
5228 # ---------------------------------
5229 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5230 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5231 # script with status $?, using 1 if that was 0.
5234 as_status=$?; test $as_status -eq 0 && as_status=1
5236 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5237 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5239 $as_echo "$as_me: error: $1" >&2
5240 as_fn_exit $as_status
5244 # as_fn_set_status STATUS
5245 # -----------------------
5246 # Set $? to STATUS, without forking.
5250 } # as_fn_set_status
5254 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5264 # Portably unset VAR.
5267 { eval $1=; unset $1;}
5269 as_unset=as_fn_unset
5270 # as_fn_append VAR VALUE
5271 # ----------------------
5272 # Append the text in VALUE to the end of the definition contained in VAR. Take
5273 # advantage of any shell optimizations that allow amortized linear growth over
5274 # repeated appends, instead of the typical quadratic growth present in naive
5276 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5277 eval 'as_fn_append ()
5288 # as_fn_arith ARG...
5289 # ------------------
5290 # Perform arithmetic evaluation on the ARGs, and store the result in the
5291 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5292 # must be portable across $(()) and expr.
5293 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5294 eval 'as_fn_arith ()
5301 as_val=`expr "$@" || test $? -eq 1`
5306 if expr a : '\(a\)' >/dev/null 2>&1 &&
5307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5314 as_basename=basename
5319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5325 as_me=`$as_basename -- "$0" ||
5326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5327 X"$0" : 'X\(//\)$' \| \
5328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5330 sed '/^.*\/\([^/][^/]*\)\/*$/{
5344 # Avoid depending upon Character Ranges.
5345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5348 as_cr_digits='0123456789'
5349 as_cr_alnum=$as_cr_Letters$as_cr_digits
5351 ECHO_C= ECHO_N= ECHO_T=
5352 case `echo -n x` in #(((((
5354 case `echo 'xy\c'` in
5355 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5357 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5364 rm -f conf$$ conf$$.exe conf$$.file
5365 if test -d conf$$.dir; then
5366 rm -f conf$$.dir/conf$$.file
5369 mkdir conf$$.dir 2>/dev/null
5371 if (echo >conf$$.file) 2>/dev/null; then
5372 if ln -s conf$$.file conf$$ 2>/dev/null; then
5374 # ... but there are two gotchas:
5375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5377 # In both cases, we have to default to `cp -p'.
5378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5380 elif ln conf$$.file conf$$ 2>/dev/null; then
5388 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5389 rmdir conf$$.dir 2>/dev/null
5394 # Create "$as_dir" as a directory, including parents if necessary.
5399 -*) as_dir=./$as_dir;;
5401 test -d "$as_dir" || eval $as_mkdir_p || {
5405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5406 *) as_qdir=$as_dir;;
5408 as_dirs="'$as_qdir' $as_dirs"
5409 as_dir=`$as_dirname -- "$as_dir" ||
5410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5411 X"$as_dir" : 'X\(//\)[^/]' \| \
5412 X"$as_dir" : 'X\(//\)$' \| \
5413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5414 $as_echo X"$as_dir" |
5415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5432 test -d "$as_dir" && break
5434 test -z "$as_dirs" || eval "mkdir $as_dirs"
5435 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5439 if mkdir -p . 2>/dev/null; then
5440 as_mkdir_p='mkdir -p "$as_dir"'
5442 test -d ./-p && rmdir ./-p
5446 if test -x / >/dev/null 2>&1; then
5449 if ls -dL / >/dev/null 2>&1; then
5456 if test -d "$1"; then
5462 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5463 ???[sx]*):;;*)false;;esac;fi
5467 as_executable_p=$as_test_x
5469 # Sed expression to map a string onto a valid CPP name.
5470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5472 # Sed expression to map a string onto a valid variable name.
5473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5477 ## ----------------------------------- ##
5478 ## Main body of $CONFIG_STATUS script. ##
5479 ## ----------------------------------- ##
5481 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5484 # Save the log message, to keep $0 and so on meaningful, and to
5485 # report actual input values of CONFIG_FILES etc. instead of their
5486 # values after options handling.
5488 This file was extended by $as_me, which was
5489 generated by GNU Autoconf 2.64. Invocation command line was
5491 CONFIG_FILES = $CONFIG_FILES
5492 CONFIG_HEADERS = $CONFIG_HEADERS
5493 CONFIG_LINKS = $CONFIG_LINKS
5494 CONFIG_COMMANDS = $CONFIG_COMMANDS
5497 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5502 case $ac_config_files in *"
5503 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5506 case $ac_config_headers in *"
5507 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5512 # Files that config.status was made for.
5513 config_files="$ac_config_files"
5514 config_headers="$ac_config_headers"
5515 config_links="$ac_config_links"
5516 config_commands="$ac_config_commands"
5520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5522 \`$as_me' instantiates files and other configuration actions
5523 from templates according to the current configuration. Unless the files
5524 and actions are specified as TAGs, all are instantiated by default.
5526 Usage: $0 [OPTION]... [TAG]...
5528 -h, --help print this help, then exit
5529 -V, --version print version number and configuration settings, then exit
5530 -q, --quiet, --silent
5531 do not print progress messages
5532 -d, --debug don't remove temporary files
5533 --recheck update $as_me by reconfiguring in the same conditions
5534 --file=FILE[:TEMPLATE]
5535 instantiate the configuration file FILE
5536 --header=FILE[:TEMPLATE]
5537 instantiate the configuration header FILE
5539 Configuration files:
5542 Configuration headers:
5545 Configuration links:
5548 Configuration commands:
5551 Report bugs to the package provider."
5554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5557 configured by $0, generated by GNU Autoconf 2.64,
5558 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5560 Copyright (C) 2009 Free Software Foundation, Inc.
5561 This config.status script is free software; the Free Software Foundation
5562 gives unlimited permission to copy, distribute and modify it."
5567 test -n "\$AWK" || AWK=awk
5570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5571 # The default lists apply if the user does not specify any file.
5577 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5578 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5589 # Handling of the options.
5590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5592 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5593 $as_echo "$ac_cs_version"; exit ;;
5594 --debug | --debu | --deb | --de | --d | -d )
5596 --file | --fil | --fi | --f )
5599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5601 as_fn_append CONFIG_FILES " '$ac_optarg'"
5602 ac_need_defaults=false;;
5603 --header | --heade | --head | --hea )
5606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5608 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5609 ac_need_defaults=false;;
5611 # Conflict between --help and --header
5612 as_fn_error "ambiguous option: \`$1'
5613 Try \`$0 --help' for more information.";;
5614 --help | --hel | -h )
5615 $as_echo "$ac_cs_usage"; exit ;;
5616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5617 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5621 -*) as_fn_error "unrecognized option: \`$1'
5622 Try \`$0 --help' for more information." ;;
5624 *) as_fn_append ac_config_targets " $1"
5625 ac_need_defaults=false ;;
5631 ac_configure_extra_args=
5633 if $ac_cs_silent; then
5635 ac_configure_extra_args="$ac_configure_extra_args --silent"
5639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5640 if \$ac_cs_recheck; then
5641 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5643 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5644 CONFIG_SHELL='$SHELL'
5650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5654 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5655 ## Running $as_me. ##
5661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5666 # Handling of arguments.
5667 for ac_config_target in $ac_config_targets
5669 case $ac_config_target in
5670 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5671 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5672 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5673 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5674 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5675 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5676 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5678 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5683 # If the user did not use the arguments to specify the items to instantiate,
5684 # then the envvar interface is used. Set only those that are not.
5685 # We use the long form for the default assignment because of an extremely
5686 # bizarre bug on SunOS 4.1.3.
5687 if $ac_need_defaults; then
5688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5689 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5690 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5694 # Have a temporary directory for convenience. Make it in the build tree
5695 # simply because there is no reason against having it here, and in addition,
5696 # creating and moving files from /tmp can sometimes cause problems.
5697 # Hook for its removal unless debugging.
5698 # Note that there is a small window in which the directory will not be cleaned:
5699 # after its creation but before its name has been assigned to `$tmp'.
5703 trap 'exit_status=$?
5704 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5706 trap 'as_fn_exit 1' 1 2 13 15
5708 # Create a (secure) tmp directory for tmp files.
5711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5712 test -n "$tmp" && test -d "$tmp"
5715 tmp=./conf$$-$RANDOM
5716 (umask 077 && mkdir "$tmp")
5717 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5719 # Set up the scripts for CONFIG_FILES section.
5720 # No need to generate them if there are no CONFIG_FILES.
5721 # This happens for instance with `./config.status config.h'.
5722 if test -n "$CONFIG_FILES"; then
5725 ac_cr=`echo X | tr X '\015'`
5726 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5727 # But we know of no other shell where ac_cr would be empty at this
5728 # point, so we can use a bashism as a fallback.
5729 if test "x$ac_cr" = x; then
5730 eval ac_cr=\$\'\\r\'
5732 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5733 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5739 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5744 echo "cat >conf$$subs.awk <<_ACEOF" &&
5745 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5749 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5751 for ac_last_try in false false false false false :; do
5752 . ./conf$$subs.sh ||
5753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5755 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5756 if test $ac_delim_n = $ac_delim_num; then
5758 elif $ac_last_try; then
5759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5767 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5771 s/^/S["/; s/!.*/"]=/
5781 s/\(.\{148\}\).*/\1/
5783 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5788 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5795 s/\(.\{148\}\).*/\1/
5797 s/["\\]/\\&/g; s/^/"/; s/$/"/
5801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5806 ' <conf$$subs.awk | sed '
5811 ' >>$CONFIG_STATUS || ac_write_fail=1
5812 rm -f conf$$subs.awk
5813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5815 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5816 for (key in S) S_is_set[key] = 1
5822 nfields = split(line, field, "@")
5824 len = length(field[1])
5825 for (i = 2; i < nfields; i++) {
5827 keylen = length(key)
5828 if (S_is_set[key]) {
5830 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5831 len += length(value) + length(field[++i])
5842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5843 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5844 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5847 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5848 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5851 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5852 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5853 # trailing colons and then remove the whole line if VPATH becomes empty
5854 # (actually we leave an empty line to preserve line numbers).
5855 if test "x$srcdir" = x.; then
5856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5860 s/^\([^=]*=[ ]*\):*/\1/
5866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5867 fi # test -n "$CONFIG_FILES"
5869 # Set up the scripts for CONFIG_HEADERS section.
5870 # No need to generate them if there are no CONFIG_HEADERS.
5871 # This happens for instance with `./config.status Makefile'.
5872 if test -n "$CONFIG_HEADERS"; then
5873 cat >"$tmp/defines.awk" <<\_ACAWK ||
5877 # Transform confdefs.h into an awk script `defines.awk', embedded as
5878 # here-document in config.status, that substitutes the proper values into
5879 # config.h.in to produce config.h.
5881 # Create a delimiter string that does not exist in confdefs.h, to ease
5882 # handling of long lines.
5884 for ac_last_try in false false :; do
5885 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5886 if test -z "$ac_t"; then
5888 elif $ac_last_try; then
5889 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5895 # For the awk script, D is an array of macro values keyed by name,
5896 # likewise P contains macro parameters if any. Preserve backslash
5897 # newline sequences.
5899 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5901 s/.\{148\}/&'"$ac_delim"'/g
5904 s/^[ ]*#[ ]*define[ ][ ]*/ /
5911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5913 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5917 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5918 D["\1"]=" \3\\\\\\n"\\/p
5920 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5925 s/.\{148\}/&'"$ac_delim"'/g
5930 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5933 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5935 ' <confdefs.h | sed '
5936 s/'"$ac_delim"'/"\\\
5937 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5940 for (key in D) D_is_set[key] = 1
5943 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5945 split(line, arg, " ")
5946 if (arg[1] == "#") {
5950 defundef = substr(arg[1], 2)
5953 split(mac1, mac2, "(") #)
5955 prefix = substr(line, 1, index(line, defundef) - 1)
5956 if (D_is_set[macro]) {
5957 # Preserve the white space surrounding the "#".
5958 print prefix "define", macro P[macro] D[macro]
5961 # Replace #undef with comments. This is necessary, for example,
5962 # in the case of _POSIX_SOURCE, which is predefined and required
5963 # on some systems where configure will not decide to define it.
5964 if (defundef == "undef") {
5965 print "/*", prefix defundef, macro, "*/"
5973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5974 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5975 fi # test -n "$CONFIG_HEADERS"
5978 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
5983 :[FHLC]) ac_mode=$ac_tag; continue;;
5985 case $ac_mode$ac_tag in
5987 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5988 :[FH]-) ac_tag=-:-;;
5989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6006 -) ac_f="$tmp/stdin";;
6007 *) # Look for the file first in the build tree, then in the source tree
6008 # (if the path is not absolute). The absolute path cannot be DOS-style,
6009 # because $ac_f cannot contain `:'.
6013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6015 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6017 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6018 as_fn_append ac_file_inputs " '$ac_f'"
6021 # Let's still pretend it is `configure' which instantiates (i.e., don't
6022 # use $as_me), people would be surprised to read:
6023 # /* config.h. Generated by config.status. */
6024 configure_input='Generated from '`
6025 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6027 if test x"$ac_file" != x-; then
6028 configure_input="$ac_file. $configure_input"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6030 $as_echo "$as_me: creating $ac_file" >&6;}
6032 # Neutralize special characters interpreted by sed in replacement strings.
6033 case $configure_input in #(
6034 *\&* | *\|* | *\\* )
6035 ac_sed_conf_input=`$as_echo "$configure_input" |
6036 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6037 *) ac_sed_conf_input=$configure_input;;
6041 *:-:* | *:-) cat >"$tmp/stdin" \
6042 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6047 ac_dir=`$as_dirname -- "$ac_file" ||
6048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6049 X"$ac_file" : 'X\(//\)[^/]' \| \
6050 X"$ac_file" : 'X\(//\)$' \| \
6051 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6052 $as_echo X"$ac_file" |
6053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6070 as_dir="$ac_dir"; as_fn_mkdir_p
6074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6077 # A ".." for each directory in $ac_dir_suffix.
6078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6079 case $ac_top_builddir_sub in
6080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6084 ac_abs_top_builddir=$ac_pwd
6085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6086 # for backward compatibility:
6087 ac_top_builddir=$ac_top_build_prefix
6090 .) # We are building in place.
6092 ac_top_srcdir=$ac_top_builddir_sub
6093 ac_abs_top_srcdir=$ac_pwd ;;
6094 [\\/]* | ?:[\\/]* ) # Absolute name.
6095 ac_srcdir=$srcdir$ac_dir_suffix;
6096 ac_top_srcdir=$srcdir
6097 ac_abs_top_srcdir=$srcdir ;;
6099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6100 ac_top_srcdir=$ac_top_build_prefix$srcdir
6101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6113 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6114 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6119 # If the template does not know about datarootdir, expand it.
6120 # FIXME: This hack should be removed a few years after 2.60.
6121 ac_datarootdir_hack=; ac_datarootdir_seen=
6132 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6133 *datarootdir*) ac_datarootdir_seen=yes;;
6134 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6136 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6139 ac_datarootdir_hack='
6140 s&@datadir@&$datadir&g
6141 s&@docdir@&$docdir&g
6142 s&@infodir@&$infodir&g
6143 s&@localedir@&$localedir&g
6144 s&@mandir@&$mandir&g
6145 s&\\\${datarootdir}&$datarootdir&g' ;;
6149 # Neutralize VPATH when `$srcdir' = `.'.
6150 # Shell code in configure.ac might set extrasub.
6151 # FIXME: do we really want to maintain this feature?
6152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6153 ac_sed_extra="$ac_vpsub
6156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6159 s|@configure_input@|$ac_sed_conf_input|;t t
6160 s&@top_builddir@&$ac_top_builddir_sub&;t t
6161 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6162 s&@srcdir@&$ac_srcdir&;t t
6163 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6164 s&@top_srcdir@&$ac_top_srcdir&;t t
6165 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6166 s&@builddir@&$ac_builddir&;t t
6167 s&@abs_builddir@&$ac_abs_builddir&;t t
6168 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6169 s&@INSTALL@&$ac_INSTALL&;t t
6170 $ac_datarootdir_hack
6172 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6173 || as_fn_error "could not create $ac_file" "$LINENO" 5
6175 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6176 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6177 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6179 which seems to be undefined. Please make sure it is defined." >&5
6180 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6181 which seems to be undefined. Please make sure it is defined." >&2;}
6185 -) cat "$tmp/out" && rm -f "$tmp/out";;
6186 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6188 || as_fn_error "could not create $ac_file" "$LINENO" 5
6194 if test x"$ac_file" != x-; then
6196 $as_echo "/* $configure_input */" \
6197 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6198 } >"$tmp/config.h" \
6199 || as_fn_error "could not create $ac_file" "$LINENO" 5
6200 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6202 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6205 mv "$tmp/config.h" "$ac_file" \
6206 || as_fn_error "could not create $ac_file" "$LINENO" 5
6209 $as_echo "/* $configure_input */" \
6210 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6211 || as_fn_error "could not create -" "$LINENO" 5
6219 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
6222 # Prefer the file from the source tree if names are identical.
6223 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
6224 ac_source=$srcdir/$ac_source
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
6228 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
6230 if test ! -r "$ac_source"; then
6231 as_fn_error "$ac_source: file not found" "$LINENO" 5
6235 # Try a relative symlink, then a hard link, then a copy.
6237 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
6238 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
6240 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
6241 ln "$ac_source" "$ac_file" 2>/dev/null ||
6242 cp -p "$ac_source" "$ac_file" ||
6243 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
6246 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6247 $as_echo "$as_me: executing $ac_file commands" >&6;}
6252 case $ac_file$ac_mode in
6253 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6254 rm -f Makesim1.tmp Makesim2.tmp Makefile
6255 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6256 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6257 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6258 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6259 <Makefile.sim >Makefile
6260 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6262 "stamp-h":C) echo > stamp-h ;;
6270 ac_clean_files=$ac_clean_files_save
6272 test $ac_write_fail = 0 ||
6273 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6276 # configure is writing to config.log, and then calls config.status.
6277 # config.status does its own redirection, appending to config.log.
6278 # Unfortunately, on DOS this fails, as config.log is still kept open
6279 # by configure, so config.status won't be able to write to it; its
6280 # output is simply discarded. So we exec the FD to /dev/null,
6281 # effectively closing config.log, so it can be properly (re)opened and
6282 # appended to by config.status. When coming back to configure, we
6283 # need to make the FD available again.
6284 if test "$no_create" != yes; then
6286 ac_config_status_args=
6287 test "$silent" = yes &&
6288 ac_config_status_args="$ac_config_status_args --quiet"
6290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6293 # would make configure fail if this is the last instruction.
6294 $ac_cs_success || as_fn_exit $?
6296 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6298 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}