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
716 program_transform_name
729 enable_option_checking
734 enable_sim_decode_mechanism
735 enable_sim_default_model
742 enable_sim_hostbitsize
743 enable_sim_hostendian
749 enable_sim_model_issue
753 enable_sim_reserved_bits
760 enable_sim_xor_endian
766 ac_precious_vars
='build_alias
777 # Initialize some variables set by options.
779 ac_init_version
=false
780 ac_unrecognized_opts
=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
791 program_transform_name
=s
,x
,x
,
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir
='${exec_prefix}/bin'
806 sbindir
='${exec_prefix}/sbin'
807 libexecdir
='${exec_prefix}/libexec'
808 datarootdir
='${prefix}/share'
809 datadir
='${datarootdir}'
810 sysconfdir
='${prefix}/etc'
811 sharedstatedir
='${prefix}/com'
812 localstatedir
='${prefix}/var'
813 includedir
='${prefix}/include'
814 oldincludedir
='/usr/include'
815 docdir
='${datarootdir}/doc/${PACKAGE}'
816 infodir
='${datarootdir}/info'
821 libdir
='${exec_prefix}/lib'
822 localedir
='${datarootdir}/locale'
823 mandir
='${datarootdir}/man'
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\
$ac_option
837 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 # Accept the important Cygnus configure options, so we can diagnose typos.
843 case $ac_dashdash$ac_option in
847 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
849 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
852 -build |
--build |
--buil |
--bui |
--bu)
853 ac_prev
=build_alias
;;
854 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
855 build_alias
=$ac_optarg ;;
857 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
858 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
859 ac_prev
=cache_file
;;
860 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
861 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
862 cache_file
=$ac_optarg ;;
865 cache_file
=config.cache
;;
867 -datadir |
--datadir |
--datadi |
--datad)
869 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
870 datadir
=$ac_optarg ;;
872 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
873 |
--dataroo |
--dataro |
--datar)
874 ac_prev
=datarootdir
;;
875 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
876 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
877 datarootdir
=$ac_optarg ;;
879 -disable-* |
--disable-*)
880 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
883 as_fn_error
"invalid feature name: $ac_useropt"
884 ac_useropt_orig
=$ac_useropt
885 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep
=', ';;
893 eval enable_
$ac_useropt=no
;;
895 -docdir |
--docdir |
--docdi |
--doc |
--do)
897 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
900 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
902 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
905 -enable-* |
--enable-*)
906 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
909 as_fn_error
"invalid feature name: $ac_useropt"
910 ac_useropt_orig
=$ac_useropt
911 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
916 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep
=', ';;
919 eval enable_
$ac_useropt=\
$ac_optarg ;;
921 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
922 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
923 |
--exec |
--exe |
--ex)
924 ac_prev
=exec_prefix
;;
925 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
926 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
927 |
--exec=* |
--exe=* |
--ex=*)
928 exec_prefix
=$ac_optarg ;;
930 -gas |
--gas |
--ga |
--g)
931 # Obsolete; use --with-gas.
934 -help |
--help |
--hel |
--he |
-h)
936 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
937 ac_init_help
=recursive
;;
938 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
939 ac_init_help
=short
;;
941 -host |
--host |
--hos |
--ho)
942 ac_prev
=host_alias
;;
943 -host=* |
--host=* |
--hos=* |
--ho=*)
944 host_alias
=$ac_optarg ;;
946 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
948 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
950 htmldir
=$ac_optarg ;;
952 -includedir |
--includedir |
--includedi |
--included |
--include \
953 |
--includ |
--inclu |
--incl |
--inc)
954 ac_prev
=includedir
;;
955 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
956 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
957 includedir
=$ac_optarg ;;
959 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
961 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
962 infodir
=$ac_optarg ;;
964 -libdir |
--libdir |
--libdi |
--libd)
966 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
969 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
970 |
--libexe |
--libex |
--libe)
971 ac_prev
=libexecdir
;;
972 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
973 |
--libexe=* |
--libex=* |
--libe=*)
974 libexecdir
=$ac_optarg ;;
976 -localedir |
--localedir |
--localedi |
--localed |
--locale)
978 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
979 localedir
=$ac_optarg ;;
981 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
982 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
983 ac_prev
=localstatedir
;;
984 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
985 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
986 localstatedir
=$ac_optarg ;;
988 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
990 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
994 # Obsolete; use --without-fp.
997 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
998 |
--no-cr |
--no-c |
-n)
1001 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1002 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1005 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1006 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1007 |
--oldin |
--oldi |
--old |
--ol |
--o)
1008 ac_prev
=oldincludedir
;;
1009 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1010 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1011 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1012 oldincludedir
=$ac_optarg ;;
1014 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1016 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1017 prefix
=$ac_optarg ;;
1019 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1020 |
--program-pre |
--program-pr |
--program-p)
1021 ac_prev
=program_prefix
;;
1022 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1023 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1024 program_prefix
=$ac_optarg ;;
1026 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1027 |
--program-suf |
--program-su |
--program-s)
1028 ac_prev
=program_suffix
;;
1029 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1030 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1031 program_suffix
=$ac_optarg ;;
1033 -program-transform-name |
--program-transform-name \
1034 |
--program-transform-nam |
--program-transform-na \
1035 |
--program-transform-n |
--program-transform- \
1036 |
--program-transform |
--program-transfor \
1037 |
--program-transfo |
--program-transf \
1038 |
--program-trans |
--program-tran \
1039 |
--progr-tra |
--program-tr |
--program-t)
1040 ac_prev
=program_transform_name
;;
1041 -program-transform-name=* |
--program-transform-name=* \
1042 |
--program-transform-nam=* |
--program-transform-na=* \
1043 |
--program-transform-n=* |
--program-transform-=* \
1044 |
--program-transform=* |
--program-transfor=* \
1045 |
--program-transfo=* |
--program-transf=* \
1046 |
--program-trans=* |
--program-tran=* \
1047 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1048 program_transform_name
=$ac_optarg ;;
1050 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1052 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1053 pdfdir
=$ac_optarg ;;
1055 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1057 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1060 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1061 |
-silent |
--silent |
--silen |
--sile |
--sil)
1064 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1066 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1068 sbindir
=$ac_optarg ;;
1070 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1071 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1072 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1074 ac_prev
=sharedstatedir
;;
1075 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1076 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1077 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1079 sharedstatedir
=$ac_optarg ;;
1081 -site |
--site |
--sit)
1083 -site=* |
--site=* |
--sit=*)
1086 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1088 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1089 srcdir
=$ac_optarg ;;
1091 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1092 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1093 ac_prev
=sysconfdir
;;
1094 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1095 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1096 sysconfdir
=$ac_optarg ;;
1098 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1099 ac_prev
=target_alias
;;
1100 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1101 target_alias
=$ac_optarg ;;
1103 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1106 -version |
--version |
--versio |
--versi |
--vers |
-V)
1107 ac_init_version
=: ;;
1110 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1113 as_fn_error
"invalid package name: $ac_useropt"
1114 ac_useropt_orig
=$ac_useropt
1115 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep
=', ';;
1123 eval with_
$ac_useropt=\
$ac_optarg ;;
1125 -without-* |
--without-*)
1126 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1129 as_fn_error
"invalid package name: $ac_useropt"
1130 ac_useropt_orig
=$ac_useropt
1131 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep
=', ';;
1139 eval with_
$ac_useropt=no
;;
1142 # Obsolete; use --with-x.
1145 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1146 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1147 ac_prev
=x_includes
;;
1148 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1149 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1150 x_includes
=$ac_optarg ;;
1152 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1153 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1154 ac_prev
=x_libraries
;;
1155 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1156 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1157 x_libraries
=$ac_optarg ;;
1159 -*) as_fn_error
"unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information."
1164 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1168 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1170 eval $ac_envvar=\
$ac_optarg
1171 export $ac_envvar ;;
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 if test -n "$ac_prev"; then
1185 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error
"missing argument to $ac_option"
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1192 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 # Check all directory arguments for consistency.
1198 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1203 eval ac_val
=\$
$ac_var
1204 # Remove trailing slashes.
1207 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\
$ac_val;;
1210 # Be sure to have absolute directory names.
1212 [\\/$
]* | ?
:[\\/]* ) continue;;
1213 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1215 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target
=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x
; then
1227 if test "x$build_alias" = x
; then
1228 cross_compiling
=maybe
1229 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1239 test "$silent" = yes && exec 6>/dev
/null
1242 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di
=`ls -di .` &&
1244 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error
"working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error
"pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted
=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir
=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted
=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1286 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var
in $ac_precious_vars; do
1303 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1305 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures this package to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1379 --build=BUILD configure
for building on BUILD
[guessed
]
1380 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1381 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1385 if test -n "$ac_init_help"; then
1390 --disable-option-checking ignore unrecognized
--enable/--with options
1391 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1392 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1393 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1394 --enable-sim-assert Specify whether to perform random assertions.
1395 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1396 --enable-sim-config=file Override default config
file
1397 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1398 --enable-sim-default-model=which Specify default PowerPC to model.
1399 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1400 --enable-sim-endian=endian Specify target byte endian orientation.
1401 --enable-sim-env=env Specify target environment
(operating
, virtual
, user
).
1402 --enable-sim-filter=rule Specify filter rules.
1403 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1404 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1405 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1406 --enable-sim-hostendian=end Specify
host byte endian orientation.
1407 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1408 --enable-sim-inline=inlines Specify
which functions should be inlined.
1409 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1410 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1411 --enable-sim-model=which Specify PowerPC to model.
1412 --enable-sim-model-issue Specify whether to simulate model specific actions
1413 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1414 --enable-sim-opcode=which Override default opcode lookup.
1415 --enable-sim-packages=list Specify the packages to be included
in the build.
1416 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1417 --enable-sim-smp=n Specify number of processors to configure
for.
1418 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1419 --enable-sim-switch Use a switch instead of a table
for instruction call.
1420 --enable-sim-timebase Specify whether the PPC timebase is supported.
1421 --enable-sim-trace Specify whether tracing is supported.
1422 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
1423 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1424 --enable-plugins Enable support
for plugins
1427 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1428 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1429 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1430 --with-bugurl=URL Direct users to URL to report a bug
1431 --with-system-zlib use installed libz
1433 Some influential environment variables
:
1434 CC C compiler
command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1437 nonstandard directory
<lib dir
>
1438 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1439 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1440 you have headers
in a nonstandard directory
<include dir
>
1443 Use these variables to override the choices made by
`configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1446 Report bugs to the package provider.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1476 .) # We are building in place.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1510 generated by GNU Autoconf 2.64
1512 Copyright (C) 2009 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1533 *) ac_try_echo
=$ac_try;;
1535 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err
; then
1540 grep -v '^ *+' conftest.err
>conftest.er1
1541 cat conftest.er1
>&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.
$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.
$ac_ext >&5
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_run LINENO
1562 # ----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1564 # that executables *can* be run.
1567 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1568 if { { ac_try
="$ac_link"
1570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>&5
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1579 { { case "(($ac_try" in
1580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1581 *) ac_try_echo
=$ac_try;;
1583 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_try") 2>&5
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; }; }; then :
1591 $as_echo "$as_me: program exited with status $ac_status" >&5
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.
$ac_ext >&5
1595 ac_retval
=$ac_status
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1603 # ac_fn_c_try_cpp LINENO
1604 # ----------------------
1605 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1609 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } >/dev/null && {
1625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1657 if ac_fn_c_try_compile "$LINENO"; then :
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 } # ac_fn_c_check_header_compile
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1681 *) ac_try_echo
=$ac_try;;
1683 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1687 if test -s conftest.err
; then
1688 grep -v '^ *+' conftest.err
>conftest.er1
1689 cat conftest.er1
>&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest
$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 $as_test_x conftest
$ac_exeext
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.
$ac_ext >&5
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1715 } # ac_fn_c_try_link
1717 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1718 # ----------------------------------------------------
1719 # Tries to find if the field MEMBER exists in type AGGR, after including
1720 # INCLUDES, setting cache variable VAR accordingly.
1721 ac_fn_c_check_member
()
1723 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1725 $as_echo_n "checking for $2.$3... " >&6; }
1726 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1727 $as_echo_n "(cached) " >&6
1729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1742 if ac_fn_c_try_compile
"$LINENO"; then :
1745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1752 if (sizeof ac_aggr.$3)
1758 if ac_fn_c_try_compile
"$LINENO"; then :
1763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1772 } # ac_fn_c_check_member
1774 # ac_fn_c_check_decl LINENO SYMBOL VAR
1775 # ------------------------------------
1776 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1777 ac_fn_c_check_decl
()
1779 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1780 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1781 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1783 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1784 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1793 #ifndef $as_decl_name
1795 (void) $as_decl_use;
1797 (void) $as_decl_name;
1805 if ac_fn_c_try_compile
"$LINENO"; then :
1810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1817 } # ac_fn_c_check_decl
1819 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1820 # -------------------------------------------
1821 # Tests whether TYPE exists after having included INCLUDES, setting cache
1822 # variable VAR accordingly.
1823 ac_fn_c_check_type
()
1825 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1844 if ac_fn_c_try_compile
"$LINENO"; then :
1845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1857 if ac_fn_c_try_compile
"$LINENO"; then :
1862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1871 } # ac_fn_c_check_type
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func
()
1878 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888 #define $2 innocuous_$2
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1896 # include <limits.h>
1898 # include <assert.h>
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1925 if ac_fn_c_try_link
"$LINENO"; then :
1930 rm -f core conftest.err conftest.
$ac_objext \
1931 conftest
$ac_exeext conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1938 } # ac_fn_c_check_func
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1945 ac_fn_c_check_header_mongrel
()
1947 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1948 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1952 $as_echo_n "(cached) " >&6
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1966 if ac_fn_c_try_compile
"$LINENO"; then :
1967 ac_header_compiler
=yes
1969 ac_header_compiler
=no
1971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 if ac_fn_c_try_cpp
"$LINENO"; then :
1983 ac_header_preproc
=yes
1985 ac_header_preproc
=no
1987 rm -f conftest.err conftest.
$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2017 eval "$3=\$ac_header_compiler"
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2025 } # ac_fn_c_check_header_mongrel
2026 cat >config.log
<<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2030 It was created by $as_me, which was
2031 generated by GNU Autoconf 2.64. Invocation command line was
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir
=.
2067 $as_echo "PATH: $as_dir"
2083 # Keep a trace of the command line.
2084 # Strip out --no-create and --no-recursion so they do not pile up.
2085 # Strip out --silent because we don't want to record it for future runs.
2086 # Also quote any args containing shell meta-characters.
2087 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_must_keep_next
=false
2097 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2098 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2099 |
-silent |
--silent |
--silen |
--sile |
--sil)
2102 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2107 as_fn_append ac_configure_args1
" '$ac_arg'"
2108 if test $ac_must_keep_next = true
; then
2109 ac_must_keep_next
=false
# Got value, back to normal.
2112 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2113 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2114 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2115 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120 -* ) ac_must_keep_next
=true
;;
2123 as_fn_append ac_configure_args
" '$ac_arg'"
2128 { ac_configure_args0
=; unset ac_configure_args0
;}
2129 { ac_configure_args1
=; unset ac_configure_args1
;}
2131 # When interrupted or exit'd, cleanup temporary files, and complete
2132 # config.log. We remove comments because anyway the quotes in there
2133 # would cause problems or look ugly.
2134 # WARNING: Use '\'' to represent an apostrophe within the trap.
2135 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136 trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2142 ## ---------------- ##
2143 ## Cache variables. ##
2144 ## ---------------- ##
2147 # The following way of writing the cache mishandles newlines in values,
2149 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150 eval ac_val=\$$ac_var
2154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158 _ | IFS | as_nl) ;; #(
2159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160 *) { eval $ac_var=; unset $ac_var;} ;;
2165 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166 *${as_nl}ac_space=\ *)
2168 "s/'\''/'\''\\\\'\'''\''/g;
2169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180 ## ----------------- ##
2181 ## Output variables. ##
2182 ## ----------------- ##
2185 for ac_var in $ac_subst_vars
2187 eval ac_val=\$$ac_var
2189 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 $as_echo "$ac_var='\''$ac_val'\''"
2195 if test -n "$ac_subst_files"; then
2197 ## ------------------- ##
2198 ## File substitutions. ##
2199 ## ------------------- ##
2202 for ac_var
in $ac_subst_files
2204 eval ac_val
=\$
$ac_var
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 $as_echo "$ac_var='\''$ac_val'\''"
2213 if test -s confdefs.h; then
2223 test "$ac_signal" != 0 &&
2224 $as_echo "$as_me: caught signal $ac_signal"
2225 $as_echo "$as_me: exit $exit_status"
2227 rm -f core *.core core.conftest.* &&
2228 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231 for ac_signal
in 1 2 13 15; do
2232 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest
* confdefs.h
2239 $as_echo "/* confdefs.h */" > confdefs.h
2241 # Predefined preprocessor variables.
2243 cat >>confdefs.h
<<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2247 cat >>confdefs.h
<<_ACEOF
2248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251 cat >>confdefs.h
<<_ACEOF
2252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 cat >>confdefs.h
<<_ACEOF
2256 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 cat >>confdefs.h
<<_ACEOF
2260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 cat >>confdefs.h
<<_ACEOF
2264 #define PACKAGE_URL "$PACKAGE_URL"
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer an explicitly selected file to automatically selected ones.
2272 if test -n "$CONFIG_SITE"; then
2273 ac_site_file1
=$CONFIG_SITE
2274 elif test "x$prefix" != xNONE
; then
2275 ac_site_file1
=$prefix/share
/config.site
2276 ac_site_file2
=$prefix/etc
/config.site
2278 ac_site_file1
=$ac_default_prefix/share
/config.site
2279 ac_site_file2
=$ac_default_prefix/etc
/config.site
2281 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2283 test "x$ac_site_file" = xNONE
&& continue
2284 if test -r "$ac_site_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2286 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2287 sed 's/^/| /' "$ac_site_file" >&5
2292 if test -r "$cache_file"; then
2293 # Some versions of bash will fail to source /dev/null (special
2294 # files actually), so we avoid doing that.
2295 if test -f "$cache_file"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2297 $as_echo "$as_me: loading cache $cache_file" >&6;}
2299 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2300 *) .
"./$cache_file";;
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2305 $as_echo "$as_me: creating cache $cache_file" >&6;}
2309 # Check that the precious variables saved in the cache have kept the same
2311 ac_cache_corrupted
=false
2312 for ac_var
in $ac_precious_vars; do
2313 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2314 eval ac_new_set
=\
$ac_env_${ac_var}_set
2315 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2316 eval ac_new_val
=\
$ac_env_${ac_var}_value
2317 case $ac_old_set,$ac_new_set in
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2320 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2321 ac_cache_corrupted
=: ;;
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2324 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2325 ac_cache_corrupted
=: ;;
2328 if test "x$ac_old_val" != "x$ac_new_val"; then
2329 # differences in whitespace do not lead to failure.
2330 ac_old_val_w
=`echo x $ac_old_val`
2331 ac_new_val_w
=`echo x $ac_new_val`
2332 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2334 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2335 ac_cache_corrupted
=:
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2338 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2339 eval $ac_var=\
$ac_old_val
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2342 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2344 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2347 # Pass precious variables to config.status.
2348 if test "$ac_new_set" = set; then
2350 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2351 *) ac_arg
=$ac_var=$ac_new_val ;;
2353 case " $ac_configure_args " in
2354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2355 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2359 if $ac_cache_corrupted; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2363 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2364 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366 ## -------------------- ##
2367 ## Main body of script. ##
2368 ## -------------------- ##
2371 ac_cpp
='$CPP $CPPFLAGS'
2372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2377 # This file contains common code used by all simulators.
2379 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2380 # directory. It is intended to be invoked before any target specific stuff.
2381 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2382 # It is intended to be invoked last.
2384 # The simulator's configure.ac should look like:
2386 # dnl Process this file with autoconf to produce a configure script.
2387 # AC_PREREQ(2.64)dnl
2388 # AC_INIT(Makefile.in)
2389 # sinclude(../common/aclocal.m4)
2393 # ... target specific stuff ...
2397 # Include global overrides and fixes for Autoconf.
2424 # _AC_CHECK_DECL_BODY
2425 # -------------------
2426 # Shell function body for AC_CHECK_DECL.
2427 # _AC_CHECK_DECL_BODY
2429 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2431 # -------------------------------------------------------------
2432 # Helper to AC_CHECK_DECLS, which generates the check for a single
2433 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2434 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2446 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2448 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2449 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2450 # Written by Gordon Matzigkeit, 1996
2452 # This file is free software; the Free Software Foundation gives
2453 # unlimited permission to copy and/or distribute it, with or without
2454 # modifications, as long as this notice is preserved.
2461 # LT_PREREQ(VERSION)
2462 # ------------------
2463 # Complain and exit if this libtool version is less that VERSION.
2467 # _LT_CHECK_BUILDDIR
2468 # ------------------
2469 # Complain if the absolute build directory name contains unusual characters
2473 # LT_INIT([OPTIONS])
2474 # ------------------
2478 # This is what autoupdate's m4 run will expand. It fires
2479 # the warning (with _au_warn_XXX), outputs it into the
2480 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2481 # the replacement expansion.
2484 # This is an auxiliary macro that is also run when
2485 # autoupdate runs m4. It simply calls m4_warning, but
2486 # we need a wrapper so that each warning is emitted only
2487 # once. We break the quoting in m4_warning's argument in
2488 # order to expand this macro's arguments, not AU_DEFUN's.
2491 # Finally, this is the expansion that is picked up by
2492 # autoconf. It tells the user to run autoupdate, and
2493 # then outputs the replacement expansion. We do not care
2494 # about autoupdate's warning because that contains
2495 # information on what to do *after* running autoupdate.
2497 # This is what autoupdate's m4 run will expand. It fires
2498 # the warning (with _au_warn_XXX), outputs it into the
2499 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2500 # the replacement expansion.
2503 # This is an auxiliary macro that is also run when
2504 # autoupdate runs m4. It simply calls m4_warning, but
2505 # we need a wrapper so that each warning is emitted only
2506 # once. We break the quoting in m4_warning's argument in
2507 # order to expand this macro's arguments, not AU_DEFUN's.
2510 # Finally, this is the expansion that is picked up by
2511 # autoconf. It tells the user to run autoupdate, and
2512 # then outputs the replacement expansion. We do not care
2513 # about autoupdate's warning because that contains
2514 # information on what to do *after* running autoupdate.
2518 # _LT_CC_BASENAME(CC)
2519 # -------------------
2520 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2524 # _LT_FILEUTILS_DEFAULTS
2525 # ----------------------
2526 # It is okay to use these file commands and assume they have been set
2527 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2528 # _LT_FILEUTILS_DEFAULTS
2536 # _LT_PREPARE_SED_QUOTE_VARS
2537 # --------------------------
2538 # Define a few sed substitution that help us do robust quoting.
2543 # Note that this code is called both from `configure', and `config.status'
2544 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2545 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2546 # so we pass a copy along to make sure it has a sensible value anyway.
2550 ## ------------------------------------- ##
2551 ## Accumulate code for creating libtool. ##
2552 ## ------------------------------------- ##
2554 # So that we can recreate a full libtool script including additional
2555 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2556 # in macros and then make a single call at the end using the `libtool'
2560 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2561 # ----------------------------------------
2562 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2569 # _LT_CONFIG_LIBTOOL([COMMANDS])
2570 # ------------------------------
2571 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2578 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2579 # -----------------------------------------------------
2583 # _LT_FORMAT_COMMENT([COMMENT])
2584 # -----------------------------
2585 # Add leading comment marks to the start of each line, and a trailing
2586 # full-stop to the whole comment if one is not present already.
2591 ## ------------------------ ##
2592 ## FIXME: Eliminate VARNAME ##
2593 ## ------------------------ ##
2596 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2597 # -------------------------------------------------------------------
2598 # CONFIGNAME is the name given to the value in the libtool script.
2599 # VARNAME is the (base) name used in the configure script.
2600 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2601 # VARNAME. Any other value will be used directly.
2605 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2606 # --------------------------------------------------------
2610 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2611 # ------------------------------------------------
2615 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2616 # ---------------------------------------------------------
2620 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2621 # --------------------------------------------------
2625 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2626 # ---------------------------------------------------
2630 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2631 # ---------------------------------------------------
2636 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2637 # ------------------------------------------------
2642 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2643 # ------------------------------------
2644 # Quote a variable value, and forward it to `config.status' so that its
2645 # declaration there will have the same value as in `configure'. VARNAME
2646 # must have a single quote delimited value for this to work.
2650 # _LT_CONFIG_STATUS_DECLARATIONS
2651 # ------------------------------
2652 # We delimit libtool config variables with single quotes, so when
2653 # we write them to config.status, we have to be sure to quote all
2654 # embedded single quotes properly. In configure, this macro expands
2655 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2657 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2663 # Output comment and list of tags supported by the script
2667 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2668 # -----------------------------------
2669 # Extract the dictionary values for VARNAME (optionally with TAG) and
2670 # expand to a commented shell variable setting:
2672 # # Some comment about what VAR is for.
2673 # visible_name=$lt_internal_name
2677 # _LT_LIBTOOL_CONFIG_VARS
2678 # -----------------------
2679 # Produce commented declarations of non-tagged libtool config variables
2680 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2681 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2682 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2686 # _LT_LIBTOOL_TAG_VARS(TAG)
2687 # -------------------------
2691 # _LT_TAGVAR(VARNAME, [TAGNAME])
2692 # ------------------------------
2696 # _LT_CONFIG_COMMANDS
2697 # -------------------
2698 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2699 # variables for single and double quote escaping we saved from calls
2700 # to _LT_DECL, we can put quote escaped variables declarations
2701 # into `config.status', and then the shell code to quote escape them in
2702 # for loops in `config.status'. Finally, any additional code accumulated
2703 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2704 #_LT_CONFIG_COMMANDS
2710 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2711 # ------------------------------------
2712 # Generate a child script FILE with all initialization necessary to
2713 # reuse the environment learned by the parent script, and make the
2714 # file executable. If COMMENT is supplied, it is inserted after the
2715 # `#!' sequence but before initialization text begins. After this
2716 # macro, additional text can be appended to FILE to form the body of
2717 # the child script. The macro ends with non-zero status if the
2718 # file could not be fully written (such as if the disk is full).
2719 # _LT_GENERATED_FILE_INIT
2723 # This macro allows early generation of the libtool script (before
2724 # AC_OUTPUT is called), incase it is used in configure for compilation
2731 # If TAG is the built-in tag, create an initial libtool script with a
2732 # default configuration from the untagged config vars. Otherwise add code
2733 # to config.status for appending the configuration named by TAG from the
2734 # matching tagged config vars.
2738 # LT_SUPPORTED_TAG(TAG)
2739 # ---------------------
2740 # Trace this macro to discover what tags are supported by the libtool
2741 # --tag option, using:
2742 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
2746 # C support is built-in for now
2753 # Enable libtool support for the given language if not already enabled.
2757 # _LT_LANG(LANGNAME)
2758 # ------------------
2762 # _LT_LANG_DEFAULT_CONFIG
2763 # -----------------------
2764 # _LT_LANG_DEFAULT_CONFIG
2767 # This is what autoupdate's m4 run will expand. It fires
2768 # the warning (with _au_warn_XXX), outputs it into the
2769 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2770 # the replacement expansion.
2773 # This is an auxiliary macro that is also run when
2774 # autoupdate runs m4. It simply calls m4_warning, but
2775 # we need a wrapper so that each warning is emitted only
2776 # once. We break the quoting in m4_warning's argument in
2777 # order to expand this macro's arguments, not AU_DEFUN's.
2780 # Finally, this is the expansion that is picked up by
2781 # autoconf. It tells the user to run autoupdate, and
2782 # then outputs the replacement expansion. We do not care
2783 # about autoupdate's warning because that contains
2784 # information on what to do *after* running autoupdate.
2786 # This is what autoupdate's m4 run will expand. It fires
2787 # the warning (with _au_warn_XXX), outputs it into the
2788 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2789 # the replacement expansion.
2792 # This is an auxiliary macro that is also run when
2793 # autoupdate runs m4. It simply calls m4_warning, but
2794 # we need a wrapper so that each warning is emitted only
2795 # once. We break the quoting in m4_warning's argument in
2796 # order to expand this macro's arguments, not AU_DEFUN's.
2799 # Finally, this is the expansion that is picked up by
2800 # autoconf. It tells the user to run autoupdate, and
2801 # then outputs the replacement expansion. We do not care
2802 # about autoupdate's warning because that contains
2803 # information on what to do *after* running autoupdate.
2805 # This is what autoupdate's m4 run will expand. It fires
2806 # the warning (with _au_warn_XXX), outputs it into the
2807 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2808 # the replacement expansion.
2811 # This is an auxiliary macro that is also run when
2812 # autoupdate runs m4. It simply calls m4_warning, but
2813 # we need a wrapper so that each warning is emitted only
2814 # once. We break the quoting in m4_warning's argument in
2815 # order to expand this macro's arguments, not AU_DEFUN's.
2818 # Finally, this is the expansion that is picked up by
2819 # autoconf. It tells the user to run autoupdate, and
2820 # then outputs the replacement expansion. We do not care
2821 # about autoupdate's warning because that contains
2822 # information on what to do *after* running autoupdate.
2824 # This is what autoupdate's m4 run will expand. It fires
2825 # the warning (with _au_warn_XXX), outputs it into the
2826 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2827 # the replacement expansion.
2830 # This is an auxiliary macro that is also run when
2831 # autoupdate runs m4. It simply calls m4_warning, but
2832 # we need a wrapper so that each warning is emitted only
2833 # once. We break the quoting in m4_warning's argument in
2834 # order to expand this macro's arguments, not AU_DEFUN's.
2837 # Finally, this is the expansion that is picked up by
2838 # autoconf. It tells the user to run autoupdate, and
2839 # then outputs the replacement expansion. We do not care
2840 # about autoupdate's warning because that contains
2841 # information on what to do *after* running autoupdate.
2843 # This is what autoupdate's m4 run will expand. It fires
2844 # the warning (with _au_warn_XXX), outputs it into the
2845 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2846 # the replacement expansion.
2849 # This is an auxiliary macro that is also run when
2850 # autoupdate runs m4. It simply calls m4_warning, but
2851 # we need a wrapper so that each warning is emitted only
2852 # once. We break the quoting in m4_warning's argument in
2853 # order to expand this macro's arguments, not AU_DEFUN's.
2856 # Finally, this is the expansion that is picked up by
2857 # autoconf. It tells the user to run autoupdate, and
2858 # then outputs the replacement expansion. We do not care
2859 # about autoupdate's warning because that contains
2860 # information on what to do *after* running autoupdate.
2869 # _LT_COMPILER_BOILERPLATE
2870 # ------------------------
2871 # Check for compiler boilerplate output or warnings with
2872 # the simple compiler test code.
2873 # _LT_COMPILER_BOILERPLATE
2876 # _LT_LINKER_BOILERPLATE
2877 # ----------------------
2878 # Check for linker boilerplate output or warnings with
2879 # the simple link test code.
2880 # _LT_LINKER_BOILERPLATE
2882 # _LT_REQUIRED_DARWIN_CHECKS
2883 # -------------------------
2887 # _LT_DARWIN_LINKER_FEATURES
2888 # --------------------------
2889 # Checks for linker and compiler features on darwin
2892 # _LT_SYS_MODULE_PATH_AIX
2893 # -----------------------
2894 # Links a minimal program and checks the executable
2895 # for the system default hardcoded library path. In most cases,
2896 # this is /usr/lib:/lib, but when the MPI compilers are used
2897 # the location of the communication and MPI libs are included too.
2898 # If we don't find anything, use the default library path according
2899 # to the aix ld manual.
2900 # _LT_SYS_MODULE_PATH_AIX
2903 # _LT_SHELL_INIT(ARG)
2904 # -------------------
2909 # _LT_PROG_ECHO_BACKSLASH
2910 # -----------------------
2911 # Find how we can fake an echo command that does not interpret backslash.
2912 # In particular, with Autoconf 2.60 or later we add some code to the start
2913 # of the generated configure script which will find a shell with a builtin
2914 # printf (which we can use as an echo command).
2915 # _LT_PROG_ECHO_BACKSLASH
2923 # _LT_CMD_OLD_ARCHIVE
2924 # -------------------
2925 # _LT_CMD_OLD_ARCHIVE
2928 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2929 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2930 # ----------------------------------------------------------------
2931 # Check whether the given compiler option works
2932 # _LT_COMPILER_OPTION
2935 # This is what autoupdate's m4 run will expand. It fires
2936 # the warning (with _au_warn_XXX), outputs it into the
2937 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2938 # the replacement expansion.
2941 # This is an auxiliary macro that is also run when
2942 # autoupdate runs m4. It simply calls m4_warning, but
2943 # we need a wrapper so that each warning is emitted only
2944 # once. We break the quoting in m4_warning's argument in
2945 # order to expand this macro's arguments, not AU_DEFUN's.
2948 # Finally, this is the expansion that is picked up by
2949 # autoconf. It tells the user to run autoupdate, and
2950 # then outputs the replacement expansion. We do not care
2951 # about autoupdate's warning because that contains
2952 # information on what to do *after* running autoupdate.
2956 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2957 # [ACTION-SUCCESS], [ACTION-FAILURE])
2958 # ----------------------------------------------------
2959 # Check whether the given linker option works
2963 # This is what autoupdate's m4 run will expand. It fires
2964 # the warning (with _au_warn_XXX), outputs it into the
2965 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2966 # the replacement expansion.
2969 # This is an auxiliary macro that is also run when
2970 # autoupdate runs m4. It simply calls m4_warning, but
2971 # we need a wrapper so that each warning is emitted only
2972 # once. We break the quoting in m4_warning's argument in
2973 # order to expand this macro's arguments, not AU_DEFUN's.
2976 # Finally, this is the expansion that is picked up by
2977 # autoconf. It tells the user to run autoupdate, and
2978 # then outputs the replacement expansion. We do not care
2979 # about autoupdate's warning because that contains
2980 # information on what to do *after* running autoupdate.
2989 # This is what autoupdate's m4 run will expand. It fires
2990 # the warning (with _au_warn_XXX), outputs it into the
2991 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2992 # the replacement expansion.
2995 # This is an auxiliary macro that is also run when
2996 # autoupdate runs m4. It simply calls m4_warning, but
2997 # we need a wrapper so that each warning is emitted only
2998 # once. We break the quoting in m4_warning's argument in
2999 # order to expand this macro's arguments, not AU_DEFUN's.
3002 # Finally, this is the expansion that is picked up by
3003 # autoconf. It tells the user to run autoupdate, and
3004 # then outputs the replacement expansion. We do not care
3005 # about autoupdate's warning because that contains
3006 # information on what to do *after* running autoupdate.
3015 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3016 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3017 # ----------------------------------------------------------------
3018 # _LT_TRY_DLOPEN_SELF
3021 # LT_SYS_DLOPEN_SELF
3022 # ------------------
3023 # LT_SYS_DLOPEN_SELF
3026 # This is what autoupdate's m4 run will expand. It fires
3027 # the warning (with _au_warn_XXX), outputs it into the
3028 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3029 # the replacement expansion.
3032 # This is an auxiliary macro that is also run when
3033 # autoupdate runs m4. It simply calls m4_warning, but
3034 # we need a wrapper so that each warning is emitted only
3035 # once. We break the quoting in m4_warning's argument in
3036 # order to expand this macro's arguments, not AU_DEFUN's.
3039 # Finally, this is the expansion that is picked up by
3040 # autoconf. It tells the user to run autoupdate, and
3041 # then outputs the replacement expansion. We do not care
3042 # about autoupdate's warning because that contains
3043 # information on what to do *after* running autoupdate.
3047 # _LT_COMPILER_C_O([TAGNAME])
3048 # ---------------------------
3049 # Check to see if options -c and -o are simultaneously supported by compiler.
3050 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3054 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3055 # ----------------------------------
3056 # Check to see if we can do hard links to lock some files if needed
3057 # _LT_COMPILER_FILE_LOCKS
3065 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3066 # --------------------------------------
3067 # Check hardcoding attributes.
3068 # _LT_LINKER_HARDCODE_LIBPATH
3076 # _LT_SYS_DYNAMIC_LINKER([TAG])
3077 # -----------------------------
3078 # PORTME Fill in your ld.so characteristics
3079 # _LT_SYS_DYNAMIC_LINKER
3082 # _LT_PATH_TOOL_PREFIX(TOOL)
3083 # --------------------------
3084 # find a file program which can recognize shared library
3085 # _LT_PATH_TOOL_PREFIX
3088 # This is what autoupdate's m4 run will expand. It fires
3089 # the warning (with _au_warn_XXX), outputs it into the
3090 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3091 # the replacement expansion.
3094 # This is an auxiliary macro that is also run when
3095 # autoupdate runs m4. It simply calls m4_warning, but
3096 # we need a wrapper so that each warning is emitted only
3097 # once. We break the quoting in m4_warning's argument in
3098 # order to expand this macro's arguments, not AU_DEFUN's.
3101 # Finally, this is the expansion that is picked up by
3102 # autoconf. It tells the user to run autoupdate, and
3103 # then outputs the replacement expansion. We do not care
3104 # about autoupdate's warning because that contains
3105 # information on what to do *after* running autoupdate.
3111 # find a file program which can recognize a shared library
3117 # find the pathname to the GNU or non-GNU linker
3121 # This is what autoupdate's m4 run will expand. It fires
3122 # the warning (with _au_warn_XXX), outputs it into the
3123 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3124 # the replacement expansion.
3127 # This is an auxiliary macro that is also run when
3128 # autoupdate runs m4. It simply calls m4_warning, but
3129 # we need a wrapper so that each warning is emitted only
3130 # once. We break the quoting in m4_warning's argument in
3131 # order to expand this macro's arguments, not AU_DEFUN's.
3134 # Finally, this is the expansion that is picked up by
3135 # autoconf. It tells the user to run autoupdate, and
3136 # then outputs the replacement expansion. We do not care
3137 # about autoupdate's warning because that contains
3138 # information on what to do *after* running autoupdate.
3140 # This is what autoupdate's m4 run will expand. It fires
3141 # the warning (with _au_warn_XXX), outputs it into the
3142 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3143 # the replacement expansion.
3146 # This is an auxiliary macro that is also run when
3147 # autoupdate runs m4. It simply calls m4_warning, but
3148 # we need a wrapper so that each warning is emitted only
3149 # once. We break the quoting in m4_warning's argument in
3150 # order to expand this macro's arguments, not AU_DEFUN's.
3153 # Finally, this is the expansion that is picked up by
3154 # autoconf. It tells the user to run autoupdate, and
3155 # then outputs the replacement expansion. We do not care
3156 # about autoupdate's warning because that contains
3157 # information on what to do *after* running autoupdate.
3168 # find reload flag for linker
3169 # -- PORTME Some linkers may need a different reload flag.
3173 # _LT_CHECK_MAGIC_METHOD
3174 # ----------------------
3175 # how to check for library dependencies
3176 # -- PORTME fill in with the dynamic library characteristics
3177 # _LT_CHECK_MAGIC_METHOD
3182 # find the pathname to a BSD- or MS-compatible name lister
3186 # This is what autoupdate's m4 run will expand. It fires
3187 # the warning (with _au_warn_XXX), outputs it into the
3188 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3189 # the replacement expansion.
3192 # This is an auxiliary macro that is also run when
3193 # autoupdate runs m4. It simply calls m4_warning, but
3194 # we need a wrapper so that each warning is emitted only
3195 # once. We break the quoting in m4_warning's argument in
3196 # order to expand this macro's arguments, not AU_DEFUN's.
3199 # Finally, this is the expansion that is picked up by
3200 # autoconf. It tells the user to run autoupdate, and
3201 # then outputs the replacement expansion. We do not care
3202 # about autoupdate's warning because that contains
3203 # information on what to do *after* running autoupdate.
3205 # This is what autoupdate's m4 run will expand. It fires
3206 # the warning (with _au_warn_XXX), outputs it into the
3207 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3208 # the replacement expansion.
3211 # This is an auxiliary macro that is also run when
3212 # autoupdate runs m4. It simply calls m4_warning, but
3213 # we need a wrapper so that each warning is emitted only
3214 # once. We break the quoting in m4_warning's argument in
3215 # order to expand this macro's arguments, not AU_DEFUN's.
3218 # Finally, this is the expansion that is picked up by
3219 # autoconf. It tells the user to run autoupdate, and
3220 # then outputs the replacement expansion. We do not care
3221 # about autoupdate's warning because that contains
3222 # information on what to do *after* running autoupdate.
3228 # check for math library
3232 # This is what autoupdate's m4 run will expand. It fires
3233 # the warning (with _au_warn_XXX), outputs it into the
3234 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3235 # the replacement expansion.
3238 # This is an auxiliary macro that is also run when
3239 # autoupdate runs m4. It simply calls m4_warning, but
3240 # we need a wrapper so that each warning is emitted only
3241 # once. We break the quoting in m4_warning's argument in
3242 # order to expand this macro's arguments, not AU_DEFUN's.
3245 # Finally, this is the expansion that is picked up by
3246 # autoconf. It tells the user to run autoupdate, and
3247 # then outputs the replacement expansion. We do not care
3248 # about autoupdate's warning because that contains
3249 # information on what to do *after* running autoupdate.
3253 # _LT_COMPILER_NO_RTTI([TAGNAME])
3254 # -------------------------------
3255 # _LT_COMPILER_NO_RTTI
3258 # _LT_CMD_GLOBAL_SYMBOLS
3259 # ----------------------
3260 # _LT_CMD_GLOBAL_SYMBOLS
3263 # _LT_COMPILER_PIC([TAGNAME])
3264 # ---------------------------
3268 # _LT_LINKER_SHLIBS([TAGNAME])
3269 # ----------------------------
3270 # See if the linker supports building shared libraries.
3274 # _LT_LANG_C_CONFIG([TAG])
3275 # ------------------------
3276 # Ensure that the configuration variables for a C compiler are suitably
3277 # defined. These variables are subsequently used by _LT_CONFIG to write
3278 # the compiler configuration to `libtool'.
3282 # _LT_LANG_CXX_CONFIG([TAG])
3283 # --------------------------
3284 # Ensure that the configuration variables for a C++ compiler are suitably
3285 # defined. These variables are subsequently used by _LT_CONFIG to write
3286 # the compiler configuration to `libtool'.
3287 # _LT_LANG_CXX_CONFIG
3290 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3291 # ---------------------------------
3292 # Figure out "hidden" library dependencies from verbose
3293 # compiler output when linking a shared library.
3294 # Parse the compiler output and extract the necessary
3295 # objects, libraries and library flags.
3296 # _LT_SYS_HIDDEN_LIBDEPS
3299 # _LT_LANG_F77_CONFIG([TAG])
3300 # --------------------------
3301 # Ensure that the configuration variables for a Fortran 77 compiler are
3302 # suitably defined. These variables are subsequently used by _LT_CONFIG
3303 # to write the compiler configuration to `libtool'.
3304 # _LT_LANG_F77_CONFIG
3307 # _LT_LANG_FC_CONFIG([TAG])
3308 # -------------------------
3309 # Ensure that the configuration variables for a Fortran compiler are
3310 # suitably defined. These variables are subsequently used by _LT_CONFIG
3311 # to write the compiler configuration to `libtool'.
3312 # _LT_LANG_FC_CONFIG
3315 # _LT_LANG_GCJ_CONFIG([TAG])
3316 # --------------------------
3317 # Ensure that the configuration variables for the GNU Java Compiler compiler
3318 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3319 # to write the compiler configuration to `libtool'.
3320 # _LT_LANG_GCJ_CONFIG
3323 # _LT_LANG_RC_CONFIG([TAG])
3324 # -------------------------
3325 # Ensure that the configuration variables for the Windows resource compiler
3326 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3327 # to write the compiler configuration to `libtool'.
3328 # _LT_LANG_RC_CONFIG
3336 # This is what autoupdate's m4 run will expand. It fires
3337 # the warning (with _au_warn_XXX), outputs it into the
3338 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3339 # the replacement expansion.
3342 # This is an auxiliary macro that is also run when
3343 # autoupdate runs m4. It simply calls m4_warning, but
3344 # we need a wrapper so that each warning is emitted only
3345 # once. We break the quoting in m4_warning's argument in
3346 # order to expand this macro's arguments, not AU_DEFUN's.
3349 # Finally, this is the expansion that is picked up by
3350 # autoconf. It tells the user to run autoupdate, and
3351 # then outputs the replacement expansion. We do not care
3352 # about autoupdate's warning because that contains
3353 # information on what to do *after* running autoupdate.
3362 # This is what autoupdate's m4 run will expand. It fires
3363 # the warning (with _au_warn_XXX), outputs it into the
3364 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3365 # the replacement expansion.
3368 # This is an auxiliary macro that is also run when
3369 # autoupdate runs m4. It simply calls m4_warning, but
3370 # we need a wrapper so that each warning is emitted only
3371 # once. We break the quoting in m4_warning's argument in
3372 # order to expand this macro's arguments, not AU_DEFUN's.
3375 # Finally, this is the expansion that is picked up by
3376 # autoconf. It tells the user to run autoupdate, and
3377 # then outputs the replacement expansion. We do not care
3378 # about autoupdate's warning because that contains
3379 # information on what to do *after* running autoupdate.
3385 # If we don't have a new enough Autoconf to choose the best grep
3386 # available, choose the one first in the user's PATH.
3392 # If we don't have a new enough Autoconf to choose the best objdump
3393 # available, choose the one first in the user's PATH.
3399 # Check for a fully-functional sed program, that truncates
3400 # as few characters as possible. Prefer GNU sed if found.
3406 # This is what autoupdate's m4 run will expand. It fires
3407 # the warning (with _au_warn_XXX), outputs it into the
3408 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3409 # the replacement expansion.
3412 # This is an auxiliary macro that is also run when
3413 # autoupdate runs m4. It simply calls m4_warning, but
3414 # we need a wrapper so that each warning is emitted only
3415 # once. We break the quoting in m4_warning's argument in
3416 # order to expand this macro's arguments, not AU_DEFUN's.
3419 # Finally, this is the expansion that is picked up by
3420 # autoconf. It tells the user to run autoupdate, and
3421 # then outputs the replacement expansion. We do not care
3422 # about autoupdate's warning because that contains
3423 # information on what to do *after* running autoupdate.
3427 # _LT_CHECK_SHELL_FEATURES
3428 # ------------------------
3429 # Find out whether the shell is Bourne or XSI compatible,
3430 # or has some other useful features.
3431 # _LT_CHECK_SHELL_FEATURES
3434 # _LT_PROG_XSI_SHELLFNS
3435 # ---------------------
3436 # Bourne and XSI compatible variants of some useful shell functions.
3439 # Helper functions for option handling. -*- Autoconf -*-
3441 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3443 # Written by Gary V. Vaughan, 2004
3445 # This file is free software; the Free Software Foundation gives
3446 # unlimited permission to copy and/or distribute it, with or without
3447 # modifications, as long as this notice is preserved.
3449 # serial 6 ltoptions.m4
3451 # This is to help aclocal find these macros, as it can't see m4_define.
3455 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3456 # ------------------------------------------
3460 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3461 # ---------------------------------------
3462 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3463 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
3468 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3469 # ------------------------------------------------------------
3470 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3474 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3475 # -------------------------------------------------------
3476 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3481 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3482 # ----------------------------------------
3483 # OPTION-LIST is a space-separated list of Libtool options associated
3484 # with MACRO-NAME. If any OPTION has a matching handler declared with
3485 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3486 # the unknown option and exit.
3490 ## --------------------------------- ##
3491 ## Macros to handle LT_INIT options. ##
3492 ## --------------------------------- ##
3494 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3495 # -----------------------------------------
3499 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3500 # -----------------------------------------------
3508 # This is what autoupdate's m4 run will expand. It fires
3509 # the warning (with _au_warn_XXX), outputs it into the
3510 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3511 # the replacement expansion.
3514 # This is an auxiliary macro that is also run when
3515 # autoupdate runs m4. It simply calls m4_warning, but
3516 # we need a wrapper so that each warning is emitted only
3517 # once. We break the quoting in m4_warning's argument in
3518 # order to expand this macro's arguments, not AU_DEFUN's.
3521 # Finally, this is the expansion that is picked up by
3522 # autoconf. It tells the user to run autoupdate, and
3523 # then outputs the replacement expansion. We do not care
3524 # about autoupdate's warning because that contains
3525 # information on what to do *after* running autoupdate.
3532 # Declare package support for building win32 dll's.
3535 # This is what autoupdate's m4 run will expand. It fires
3536 # the warning (with _au_warn_XXX), outputs it into the
3537 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3538 # the replacement expansion.
3541 # This is an auxiliary macro that is also run when
3542 # autoupdate runs m4. It simply calls m4_warning, but
3543 # we need a wrapper so that each warning is emitted only
3544 # once. We break the quoting in m4_warning's argument in
3545 # order to expand this macro's arguments, not AU_DEFUN's.
3548 # Finally, this is the expansion that is picked up by
3549 # autoconf. It tells the user to run autoupdate, and
3550 # then outputs the replacement expansion. We do not care
3551 # about autoupdate's warning because that contains
3552 # information on what to do *after* running autoupdate.
3557 # _LT_ENABLE_SHARED([DEFAULT])
3558 # ----------------------------
3559 # implement the --enable-shared flag, and supports the `shared' and
3560 # `disable-shared' LT_INIT options.
3561 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3572 # This is what autoupdate's m4 run will expand. It fires
3573 # the warning (with _au_warn_XXX), outputs it into the
3574 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3575 # the replacement expansion.
3578 # This is an auxiliary macro that is also run when
3579 # autoupdate runs m4. It simply calls m4_warning, but
3580 # we need a wrapper so that each warning is emitted only
3581 # once. We break the quoting in m4_warning's argument in
3582 # order to expand this macro's arguments, not AU_DEFUN's.
3585 # Finally, this is the expansion that is picked up by
3586 # autoconf. It tells the user to run autoupdate, and
3587 # then outputs the replacement expansion. We do not care
3588 # about autoupdate's warning because that contains
3589 # information on what to do *after* running autoupdate.
3591 # This is what autoupdate's m4 run will expand. It fires
3592 # the warning (with _au_warn_XXX), outputs it into the
3593 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3594 # the replacement expansion.
3597 # This is an auxiliary macro that is also run when
3598 # autoupdate runs m4. It simply calls m4_warning, but
3599 # we need a wrapper so that each warning is emitted only
3600 # once. We break the quoting in m4_warning's argument in
3601 # order to expand this macro's arguments, not AU_DEFUN's.
3604 # Finally, this is the expansion that is picked up by
3605 # autoconf. It tells the user to run autoupdate, and
3606 # then outputs the replacement expansion. We do not care
3607 # about autoupdate's warning because that contains
3608 # information on what to do *after* running autoupdate.
3614 # _LT_ENABLE_STATIC([DEFAULT])
3615 # ----------------------------
3616 # implement the --enable-static flag, and support the `static' and
3617 # `disable-static' LT_INIT options.
3618 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3629 # This is what autoupdate's m4 run will expand. It fires
3630 # the warning (with _au_warn_XXX), outputs it into the
3631 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3632 # the replacement expansion.
3635 # This is an auxiliary macro that is also run when
3636 # autoupdate runs m4. It simply calls m4_warning, but
3637 # we need a wrapper so that each warning is emitted only
3638 # once. We break the quoting in m4_warning's argument in
3639 # order to expand this macro's arguments, not AU_DEFUN's.
3642 # Finally, this is the expansion that is picked up by
3643 # autoconf. It tells the user to run autoupdate, and
3644 # then outputs the replacement expansion. We do not care
3645 # about autoupdate's warning because that contains
3646 # information on what to do *after* running autoupdate.
3648 # This is what autoupdate's m4 run will expand. It fires
3649 # the warning (with _au_warn_XXX), outputs it into the
3650 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3651 # the replacement expansion.
3654 # This is an auxiliary macro that is also run when
3655 # autoupdate runs m4. It simply calls m4_warning, but
3656 # we need a wrapper so that each warning is emitted only
3657 # once. We break the quoting in m4_warning's argument in
3658 # order to expand this macro's arguments, not AU_DEFUN's.
3661 # Finally, this is the expansion that is picked up by
3662 # autoconf. It tells the user to run autoupdate, and
3663 # then outputs the replacement expansion. We do not care
3664 # about autoupdate's warning because that contains
3665 # information on what to do *after* running autoupdate.
3671 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
3672 # ----------------------------------
3673 # implement the --enable-fast-install flag, and support the `fast-install'
3674 # and `disable-fast-install' LT_INIT options.
3675 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3676 # _LT_ENABLE_FAST_INSTALL
3682 # This is what autoupdate's m4 run will expand. It fires
3683 # the warning (with _au_warn_XXX), outputs it into the
3684 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3685 # the replacement expansion.
3688 # This is an auxiliary macro that is also run when
3689 # autoupdate runs m4. It simply calls m4_warning, but
3690 # we need a wrapper so that each warning is emitted only
3691 # once. We break the quoting in m4_warning's argument in
3692 # order to expand this macro's arguments, not AU_DEFUN's.
3695 # Finally, this is the expansion that is picked up by
3696 # autoconf. It tells the user to run autoupdate, and
3697 # then outputs the replacement expansion. We do not care
3698 # about autoupdate's warning because that contains
3699 # information on what to do *after* running autoupdate.
3702 # This is what autoupdate's m4 run will expand. It fires
3703 # the warning (with _au_warn_XXX), outputs it into the
3704 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3705 # the replacement expansion.
3708 # This is an auxiliary macro that is also run when
3709 # autoupdate runs m4. It simply calls m4_warning, but
3710 # we need a wrapper so that each warning is emitted only
3711 # once. We break the quoting in m4_warning's argument in
3712 # order to expand this macro's arguments, not AU_DEFUN's.
3715 # Finally, this is the expansion that is picked up by
3716 # autoconf. It tells the user to run autoupdate, and
3717 # then outputs the replacement expansion. We do not care
3718 # about autoupdate's warning because that contains
3719 # information on what to do *after* running autoupdate.
3724 # _LT_WITH_PIC([MODE])
3725 # --------------------
3726 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
3728 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3735 # This is what autoupdate's m4 run will expand. It fires
3736 # the warning (with _au_warn_XXX), outputs it into the
3737 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3738 # the replacement expansion.
3741 # This is an auxiliary macro that is also run when
3742 # autoupdate runs m4. It simply calls m4_warning, but
3743 # we need a wrapper so that each warning is emitted only
3744 # once. We break the quoting in m4_warning's argument in
3745 # order to expand this macro's arguments, not AU_DEFUN's.
3748 # Finally, this is the expansion that is picked up by
3749 # autoconf. It tells the user to run autoupdate, and
3750 # then outputs the replacement expansion. We do not care
3751 # about autoupdate's warning because that contains
3752 # information on what to do *after* running autoupdate.
3756 ## ----------------- ##
3757 ## LTDL_INIT Options ##
3758 ## ----------------- ##
3769 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3771 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3772 # Written by Gary V. Vaughan, 2004
3774 # This file is free software; the Free Software Foundation gives
3775 # unlimited permission to copy and/or distribute it, with or without
3776 # modifications, as long as this notice is preserved.
3778 # serial 6 ltsugar.m4
3780 # This is to help aclocal find these macros, as it can't see m4_define.
3784 # lt_join(SEP, ARG1, [ARG2...])
3785 # -----------------------------
3786 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3787 # associated separator.
3788 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3789 # versions in m4sugar had bugs.
3797 # Manipulate m4 lists.
3798 # These macros are necessary as long as will still need to support
3799 # Autoconf-2.59 which quotes differently.
3805 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
3806 # ------------------------------------------
3807 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3808 # Note that neither SEPARATOR nor STRING are expanded; they are appended
3809 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3810 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
3811 # than defined and empty).
3813 # This macro is needed until we can rely on Autoconf 2.62, since earlier
3814 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3819 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3820 # ----------------------------------------------------------
3821 # Produce a SEP delimited list of all paired combinations of elements of
3822 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3823 # has the form PREFIXmINFIXSUFFIXn.
3824 # Needed until we can rely on m4_combine added in Autoconf 2.62.
3828 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3829 # -----------------------------------------------------------------------
3830 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3831 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3835 # lt_dict_add(DICT, KEY, VALUE)
3836 # -----------------------------
3840 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3841 # --------------------------------------------
3845 # lt_dict_fetch(DICT, KEY, [SUBKEY])
3846 # ----------------------------------
3850 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3851 # -----------------------------------------------------------------
3855 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3856 # --------------------------------------------------------------
3859 # ltversion.m4 -- version numbers -*- Autoconf -*-
3861 # Copyright (C) 2004 Free Software Foundation, Inc.
3862 # Written by Scott James Remnant, 2004
3864 # This file is free software; the Free Software Foundation gives
3865 # unlimited permission to copy and/or distribute it, with or without
3866 # modifications, as long as this notice is preserved.
3868 # Generated from ltversion.in.
3870 # serial 3134 ltversion.m4
3871 # This file is part of GNU Libtool
3878 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3880 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3881 # Written by Scott James Remnant, 2004.
3883 # This file is free software; the Free Software Foundation gives
3884 # unlimited permission to copy and/or distribute it, with or without
3885 # modifications, as long as this notice is preserved.
3887 # serial 4 lt~obsolete.m4
3889 # These exist entirely to fool aclocal when bootstrapping libtool.
3891 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3892 # which have later been changed to m4_define as they aren't part of the
3893 # exported API, or moved to Autoconf or Automake where they belong.
3895 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3896 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3897 # using a macro with the same name in our local m4/libtool.m4 it'll
3898 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3899 # and doesn't know about Autoconf macros at all.)
3901 # So we provide this file, which has a silly filename so it's always
3902 # included after everything else. This provides aclocal with the
3903 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3904 # because those macros already exist, or will be overwritten later.
3905 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3907 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3908 # Yes, that means every name once taken will need to remain here until
3909 # we give up compatibility with versions before 1.7, at which point
3910 # we need to keep only those names which we still refer to.
3912 # This is to help aclocal find these macros, as it can't see m4_define.
3979 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3980 # Free Software Foundation, Inc.
3982 # This file is free software; the Free Software Foundation
3983 # gives unlimited permission to copy and/or distribute it,
3984 # with or without modifications, as long as this notice is preserved.
3988 # Based on depend.m4 from automake 1.9, modified for standalone use in
3989 # an environment where GNU make is required.
3991 # ZW_PROG_COMPILER_DEPENDENCIES
3992 # -----------------------------
3993 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
3994 # sets fooDEPMODE accordingly. Cache-variable compatible with
3995 # original; not side-effect compatible. As the users of this macro
3996 # may require accurate dependencies for correct builds, it does *not*
3997 # honor --disable-dependency-checking, and failure to detect a usable
3998 # method is an error. depcomp is assumed to be located in
4001 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4007 # Choose a directory name for dependency files.
4012 # As AM_SET_DEPDIR, but also create the directory at config.status time.
4087 # intl sister-directory configuration rules.
4090 # The idea behind this macro is that there's no need to repeat all the
4091 # autoconf probes done by the intl directory - it's already done them
4092 # for us. In fact, there's no need even to look at the cache for the
4093 # answers. All we need to do is nab a few pieces of information.
4094 # The intl directory is set up to make this easy, by generating a
4095 # small file which can be sourced as a shell script; then we produce
4096 # the necessary substitutions and definitions for this directory.
4100 # Autoconf M4 include file defining utility macros for complex Canadian
4112 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4114 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
4117 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4118 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4122 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4123 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4127 # Backported from Autoconf 2.5x; can go away when and if
4128 # we switch. Put the OS path separator in $PATH_SEPARATOR.
4133 # ACX_HAVE_GCC_FOR_TARGET
4134 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4137 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4138 # Searching for installed target binutils. We need to take extra care,
4139 # else we may find the wrong assembler, linker, etc., and lose.
4141 # First try --with-build-time-tools, if specified.
4143 # For build != host, we ask the installed GCC for the name of the tool it
4144 # uses, and accept it if it is an absolute path. This is because the
4145 # only good choice for a compiler is the same GCC version that is being
4146 # installed (or we couldn't make target libraries), and we assume that
4147 # on the host system we'll have not only the same GCC version, but also
4148 # the same binutils version.
4150 # For build == host, search the same directories that the installed
4151 # compiler will search. We used to do this for the assembler, linker,
4152 # and nm only; for simplicity of configuration, however, we extend this
4153 # criterion to tools (such as ar and ranlib) that are never invoked by
4154 # the compiler, to avoid mismatches.
4156 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
4157 # if build == target. This makes the most sense only when bootstrapping,
4158 # but we also do so when build != host. In this case, we hope that the
4159 # build and host systems will have similar contents of MD_EXEC_PREFIX.
4161 # If we do not find a suitable binary, then try the user's path.
4165 # AC_PROG_CPP_WERROR
4166 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4167 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
4168 # For now, using this also overrides header checks to use only the
4169 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4170 # bit harder from here).
4171 # Eventually autoconf will default to checking headers with the compiler
4172 # instead, and we'll have to do this differently.
4174 # AC_PROG_CPP_WERROR
4177 # We require the gnatbind & gnatmake programs, as well as a compiler driver
4178 # that understands Ada. We use the user's CC setting, already found, and
4179 # possibly add $1 to the command-line parameters.
4181 # Sets the shell variable have_gnat to yes or no as appropriate, and
4182 # substitutes GNATBIND and GNATMAKE.
4209 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4210 for ac_t
in install-sh
install.sh shtool
; do
4211 if test -f "$ac_dir/$ac_t"; then
4213 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4218 if test -z "$ac_aux_dir"; then
4219 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4222 # These three variables are undocumented and unsupported,
4223 # and are intended to be withdrawn in a future Autoconf release.
4224 # They can cause serious problems if a builder's source tree is in a directory
4225 # whose full name contains unusual characters.
4226 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4227 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4228 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4231 # Find a good install program. We prefer a C program (faster),
4232 # so one script is as good as another. But avoid the broken or
4233 # incompatible versions:
4234 # SysV /etc/install, /usr/sbin/install
4235 # SunOS /usr/etc/install
4236 # IRIX /sbin/install
4238 # AmigaOS /C/install, which installs bootblocks on floppy discs
4239 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4240 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4241 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4242 # OS/2's system install, which has a completely different semantic
4243 # ./install, which can be erroneously created by make from ./install.sh.
4244 # Reject install programs that cannot install multiple files.
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4246 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4247 if test -z "$INSTALL"; then
4248 if test "${ac_cv_path_install+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir
=.
4256 # Account for people who put trailing slashes in PATH elements.
4257 case $as_dir/ in #((
4258 .
/ | .
// |
/[cC
]/* | \
4259 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4260 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4263 # OSF1 and SCO ODT 3.0 have their own names for install.
4264 # Don't use installbsd from OSF since it installs stuff as root
4266 for ac_prog
in ginstall scoinst
install; do
4267 for ac_exec_ext
in '' $ac_executable_extensions; do
4268 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4269 if test $ac_prog = install &&
4270 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4271 # AIX install. It has an incompatible calling convention.
4273 elif test $ac_prog = install &&
4274 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4275 # program-specific install script used by HP pwplus--don't use.
4278 rm -rf conftest.one conftest.two conftest.dir
4279 echo one
> conftest.one
4280 echo two
> conftest.two
4282 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4283 test -s conftest.one
&& test -s conftest.two
&&
4284 test -s conftest.dir
/conftest.one
&&
4285 test -s conftest.dir
/conftest.two
4287 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4300 rm -rf conftest.one conftest.two conftest.dir
4303 if test "${ac_cv_path_install+set}" = set; then
4304 INSTALL
=$ac_cv_path_install
4306 # As a last resort, use the slow shell script. Don't cache a
4307 # value for INSTALL within a source directory, because that will
4308 # break other packages using the cache if that directory is
4309 # removed, or if the value is a relative name.
4310 INSTALL
=$ac_install_sh
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4314 $as_echo "$INSTALL" >&6; }
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4322 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4325 ac_cpp
='$CPP $CPPFLAGS'
4326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4329 if test -n "$ac_tool_prefix"; then
4330 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4331 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if test "${ac_cv_prog_CC+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC
="$CC" # Let the user override the test.
4340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir
=.
4345 for ac_exec_ext
in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 if test -n "$CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360 $as_echo "$CC" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4368 if test -z "$ac_cv_prog_CC"; then
4370 # Extract the first word of "gcc", so it can be a program name with args.
4371 set dummy gcc
; ac_word
=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4377 if test -n "$ac_ct_CC"; then
4378 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir
=.
4385 for ac_exec_ext
in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_prog_ac_ct_CC
="gcc"
4388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4398 if test -n "$ac_ct_CC"; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4400 $as_echo "$ac_ct_CC" >&6; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4406 if test "x$ac_ct_CC" = x
; then
4409 case $cross_compiling:$ac_tool_warned in
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413 ac_tool_warned
=yes ;;
4421 if test -z "$CC"; then
4422 if test -n "$ac_tool_prefix"; then
4423 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4424 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_prog_CC+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4430 if test -n "$CC"; then
4431 ac_cv_prog_CC
="$CC" # Let the user override the test.
4433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir
=.
4438 for ac_exec_ext
in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 if test -n "$CC"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4453 $as_echo "$CC" >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4462 if test -z "$CC"; then
4463 # Extract the first word of "cc", so it can be a program name with args.
4464 set dummy cc
; ac_word
=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if test "${ac_cv_prog_CC+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4470 if test -n "$CC"; then
4471 ac_cv_prog_CC
="$CC" # Let the user override the test.
4474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir
=.
4479 for ac_exec_ext
in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4482 ac_prog_rejected
=yes
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 if test $ac_prog_rejected = yes; then
4494 # We found a bogon in the path, so make sure we never use it.
4495 set dummy
$ac_cv_prog_CC
4497 if test $# != 0; then
4498 # We chose a different compiler from the bogus one.
4499 # However, it has the same basename, so the bogon will be chosen
4500 # first if we set CC to just the basename; use the full file name.
4502 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4508 if test -n "$CC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4510 $as_echo "$CC" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4518 if test -z "$CC"; then
4519 if test -n "$ac_tool_prefix"; then
4520 for ac_prog
in cl.exe
4522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if test "${ac_cv_prog_CC+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC
="$CC" # Let the user override the test.
4532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir
=.
4537 for ac_exec_ext
in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 if test -n "$CC"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4552 $as_echo "$CC" >&6; }
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4559 test -n "$CC" && break
4562 if test -z "$CC"; then
4564 for ac_prog
in cl.exe
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy
$ac_prog; ac_word
=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4573 if test -n "$ac_ct_CC"; then
4574 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_exec_ext
in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_ac_ct_CC
="$ac_prog"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4594 if test -n "$ac_ct_CC"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4596 $as_echo "$ac_ct_CC" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4603 test -n "$ac_ct_CC" && break
4606 if test "x$ac_ct_CC" = x
; then
4609 case $cross_compiling:$ac_tool_warned in
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4613 ac_tool_warned
=yes ;;
4622 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4624 as_fn_error
"no acceptable C compiler found in \$PATH
4625 See \`config.log' for more details." "$LINENO" 5; }
4627 # Provide some information about the compiler.
4628 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4631 for ac_option
in --version -v -V -qversion; do
4632 { { ac_try
="$ac_compiler $ac_option >&5"
4634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4641 if test -s conftest.err; then
4643 ... rest of stderr output deleted ...
4644 10q' conftest.err >conftest.er1
4645 cat conftest.er1 >&5
4646 rm -f conftest.er1 conftest.err
4648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4649 test $ac_status = 0; }
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4663 ac_clean_files_save=$ac_clean_files
4664 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4665 # Try to create an executable without -o first, disregard a.out.
4666 # It will help us diagnose broken compilers, and finding out an intuition
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4669 $as_echo_n "checking for C compiler default output file name... " >&6; }
4670 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4672 # The possible output files:
4673 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4676 for ac_file in $ac_files
4679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4680 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4685 if { { ac_try="$ac_link_default"
4687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4688 *) ac_try_echo
=$ac_try;;
4690 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4691 $as_echo "$ac_try_echo"; } >&5
4692 (eval "$ac_link_default") 2>&5
4694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4695 test $ac_status = 0; }; then :
4696 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4697 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4698 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4699 # so that the user can short-circuit this test for compilers unknown to
4701 for ac_file
in $ac_files ''
4703 test -f "$ac_file" ||
continue
4705 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4708 # We found the default executable, but exeext='' is most
4712 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4714 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4716 # We set ac_cv_exeext here because the later test for it is not
4717 # safe: cross compilers may not add the suffix if given an `-o'
4718 # argument, so we may need to know it at that point already.
4719 # Even if this section looks crufty: it has the advantage of
4726 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4732 $as_echo "$ac_file" >&6; }
4733 if test -z "$ac_file"; then :
4734 $as_echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.
$ac_ext >&5
4737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4739 { as_fn_set_status
77
4740 as_fn_error
"C compiler cannot create executables
4741 See \`config.log' for more details." "$LINENO" 5; }; }
4743 ac_exeext
=$ac_cv_exeext
4745 # Check that the compiler produces executables we can run. If not, either
4746 # the compiler is broken, or we cross compile.
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4748 $as_echo_n "checking whether the C compiler works... " >&6; }
4749 # If not cross compiling, check that we can run a simple program.
4750 if test "$cross_compiling" != yes; then
4751 if { ac_try
='./$ac_file'
4752 { { case "(($ac_try" in
4753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_try") 2>&5
4760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761 test $ac_status = 0; }; }; then
4764 if test "$cross_compiling" = maybe; then
4767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4769 as_fn_error "cannot run C compiled programs.
4770 If you meant to cross compile
, use \
`--host'.
4771 See \`config.log
' for more details." "$LINENO" 5; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4776 $as_echo "yes" >&6; }
4778 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4779 ac_clean_files=$ac_clean_files_save
4780 # Check that the compiler produces executables we can run. If not, either
4781 # the compiler is broken, or we cross compile.
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4783 $as_echo_n "checking whether we are cross compiling... " >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4785 $as_echo "$cross_compiling" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4788 $as_echo_n "checking for suffix of executables... " >&6; }
4789 if { { ac_try="$ac_link"
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795 $as_echo "$ac_try_echo"; } >&5
4796 (eval "$ac_link") 2>&5
4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }; then :
4800 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4801 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4802 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4804 for ac_file
in conftest.exe conftest conftest.
*; do
4805 test -f "$ac_file" ||
continue
4807 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4808 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4816 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4817 See \`config.log' for more details." "$LINENO" 5; }
4819 rm -f conftest
$ac_cv_exeext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4821 $as_echo "$ac_cv_exeext" >&6; }
4823 rm -f conftest.
$ac_ext
4824 EXEEXT
=$ac_cv_exeext
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4827 $as_echo_n "checking for suffix of object files... " >&6; }
4828 if test "${ac_cv_objext+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4842 rm -f conftest.o conftest.obj
4843 if { { ac_try
="$ac_compile"
4845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849 $as_echo "$ac_try_echo"; } >&5
4850 (eval "$ac_compile") 2>&5
4852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853 test $ac_status = 0; }; then :
4854 for ac_file in conftest.o conftest.obj conftest.*; do
4855 test -f "$ac_file" || continue;
4857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4858 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4863 $as_echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4868 as_fn_error "cannot compute suffix of object files
: cannot compile
4869 See \
`config.log' for more details." "$LINENO" 5; }
4871 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4874 $as_echo "$ac_cv_objext" >&6; }
4875 OBJEXT=$ac_cv_objext
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4878 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4879 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4896 if ac_fn_c_try_compile "$LINENO"; then :
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4906 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4907 if test $ac_compiler_gnu = yes; then
4912 ac_test_CFLAGS=${CFLAGS+set}
4913 ac_save_CFLAGS=$CFLAGS
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4915 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4916 if test "${ac_cv_prog_cc_g+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4919 ac_save_c_werror_flag=$ac_c_werror_flag
4920 ac_c_werror_flag=yes
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4934 if ac_fn_c_try_compile "$LINENO"; then :
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4949 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_c_werror_flag=$ac_save_c_werror_flag
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4965 if ac_fn_c_try_compile "$LINENO"; then :
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 ac_c_werror_flag=$ac_save_c_werror_flag
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4976 $as_echo "$ac_cv_prog_cc_g" >&6; }
4977 if test "$ac_test_CFLAGS" = set; then
4978 CFLAGS=$ac_save_CFLAGS
4979 elif test $ac_cv_prog_cc_g = yes; then
4980 if test "$GCC" = yes; then
4986 if test "$GCC" = yes; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4993 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4994 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4997 ac_cv_prog_cc_c89=no
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5003 #include <sys/types.h>
5004 #include <sys/stat.h>
5005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5006 struct buf { int x; };
5007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5008 static char *e (p, i)
5014 static char *f (char * (*g) (char **, int), char **p, ...)
5019 s = g (p, va_arg (v,int));
5024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5025 function prototypes and stuff, but not '\xHH' hex character constants.
5026 These don't provoke an error unfortunately, instead are silently treated
5027 as 'x'. The following induces an error, until -std is added to get
5028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5029 array size at least. It's necessary to write '\x00'==0 to get something
5030 that's true only with -std. */
5031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5034 inside strings and character constants. */
5036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5038 int test (int i, double x);
5039 struct s1 {int (*f) (int a);};
5040 struct s2 {int (*f) (double a);};
5041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5055 CC="$ac_save_CC $ac_arg"
5056 if ac_fn_c_try_compile "$LINENO"; then :
5057 ac_cv_prog_cc_c89=$ac_arg
5059 rm -f core conftest.err conftest.$ac_objext
5060 test "x$ac_cv_prog_cc_c89" != "xno" && break
5062 rm -f conftest.$ac_ext
5067 case "x$ac_cv_prog_cc_c89" in
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5070 $as_echo "none needed" >&6; } ;;
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5073 $as_echo "unsupported" >&6; } ;;
5075 CC="$CC $ac_cv_prog_cc_c89"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5077 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5079 if test "x$ac_cv_prog_cc_c89" != xno; then :
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 # Put a plausible default for CC_FOR_BUILD in Makefile.
5091 if test "x$cross_compiling" = "xno"; then
5092 CC_FOR_BUILD='$(CC)'
5096 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5099 # If we haven't got the data from the intl directory,
5100 # assume NLS is disabled.
5109 if test -f ../../intl/config.intl; then
5110 . ../../intl/config.intl
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5113 $as_echo_n "checking whether NLS is requested... " >&6; }
5114 if test x"$USE_NLS" != xyes; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5119 $as_echo "yes" >&6; }
5121 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5125 $as_echo_n "checking for catalogs to be installed... " >&6; }
5126 # Look for .po and .gmo files in the source directory.
5129 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5130 # If there aren't any .gmo files the shell will give us the
5131 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5133 case "$cat" in *\**)
5136 # The quadruple backslash is collapsed to a double backslash
5137 # by the backticks, then collapsed again by the double quotes,
5138 # leaving us with one backslash in the sed expression (right
5139 # before the dot that mustn't act as a wildcard).
5140 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5141 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
5142 # The user is allowed to set LINGUAS to a list of languages to
5143 # install catalogs for. If it's empty that means "all of them."
5144 if test "x$LINGUAS" = x; then
5145 CATALOGS="$CATALOGS $cat"
5146 XLINGUAS="$XLINGUAS $lang"
5148 case "$LINGUAS" in *$lang*)
5149 CATALOGS="$CATALOGS $cat"
5150 XLINGUAS="$XLINGUAS $lang"
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5157 $as_echo "$LINGUAS" >&6; }
5171 # Check whether --enable-sim-alignment was given.
5172 if test "${enable_sim_alignment+set}" = set; then :
5173 enableval=$enable_sim_alignment; case "${enableval}" in
5174 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5175 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5176 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
5177 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
5179 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5180 echo "Setting alignment flags = $sim_alignment" 6>&1
5187 # Check whether --enable-sim-assert was given.
5188 if test "${enable_sim_assert+set}" = set; then :
5189 enableval=$enable_sim_assert; case "${enableval}" in
5190 yes) sim_assert="-DWITH_ASSERT=1";;
5191 no) sim_assert="-DWITH_ASSERT=0";;
5192 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
5194 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
5195 echo "Setting assert flags = $sim_assert" 6>&1
5202 # Check whether --enable-sim-bitsize was given.
5203 if test "${enable_sim_bitsize+set}" = set; then :
5204 enableval=$enable_sim_bitsize; case "${enableval}" in
5205 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
5206 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
5208 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5209 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5216 # Check whether --enable-sim-config was given.
5217 if test "${enable_sim_config+set}" = set; then :
5218 enableval=$enable_sim_config; case "${enableval}" in
5219 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
5220 *) if test -f "${srcdir}/${enableval}"; then
5221 sim_config="${enableval}";
5222 elif test -f "${srcdir}/${enableval}-config.h"; then
5223 sim_config="${enableval}-config.h"
5225 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
5226 sim_config=std-config.h
5229 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5230 echo "Setting config flags = $sim_config" 6>&1
5233 sim_config="std-config.h"
5234 if test x"$silent" != x"yes"; then
5235 echo "Setting config flags = $sim_config" 6>&1
5240 # Check whether --enable-sim-decode-mechanism was given.
5241 if test "${enable_sim_decode_mechanism+set}" = set; then :
5242 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
5243 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
5244 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
5245 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
5246 sim_decode_mechanism="switch";;
5248 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5249 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5252 sim_decode_mechanism=""
5253 if test x"$silent" != x"yes"; then
5254 echo "Setting decode mechanism flags = $sim_decode_mechanism"
5259 # Check whether --enable-sim-default-model was given.
5260 if test "${enable_sim_default_model+set}" = set; then :
5261 enableval=$enable_sim_default_model; case "${enableval}" in
5262 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
5263 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5265 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5266 echo "Setting default-model flags = $sim_default_model" 6>&1
5269 sim_default_model=""
5273 # Check whether --enable-sim-duplicate was given.
5274 if test "${enable_sim_duplicate+set}" = set; then :
5275 enableval=$enable_sim_duplicate; case "${enableval}" in
5278 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
5280 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5281 echo "Setting duplicate flags = $sim_dup" 6>&1
5285 if test x"$silent" != x"yes"; then
5286 echo "Setting duplicate flags = $sim_dup" 6>&1
5291 # Check whether --enable-sim-endian was given.
5292 if test "${enable_sim_endian+set}" = set; then :
5293 enableval=$enable_sim_endian; case "${enableval}" in
5294 yes) case "$target" in
5295 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5296 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5297 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5299 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5300 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5301 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5302 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5304 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5305 echo "Setting endian flags = $sim_endian" 6>&1
5312 # Check whether --enable-sim-env was given.
5313 if test "${enable_sim_env+set}" = set; then :
5314 enableval=$enable_sim_env; case "${enableval}" in
5315 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5316 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5317 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5318 no) sim_env="-DWITH_ENVIRONMENT=0";;
5319 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
5321 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
5322 echo "Setting env flags = $sim_env" 6>&1
5329 # Check whether --enable-sim-filter was given.
5330 if test "${enable_sim_filter+set}" = set; then :
5331 enableval=$enable_sim_filter; case "${enableval}" in
5332 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
5334 *) sim_filter="-F $enableval";;
5336 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5337 echo "Setting filter flags = $sim_filter" 6>&1
5340 sim_filter="-F 32,f,o"
5341 if test x"$silent" != x"yes"; then
5342 echo "Setting filter flags = $sim_filter" 6>&1
5347 # Check whether --enable-sim-float was given.
5348 if test "${enable_sim_float+set}" = set; then :
5349 enableval=$enable_sim_float; case "${enableval}" in
5350 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5351 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5352 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5353 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5354 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
5356 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5357 echo "Setting float flags = $sim_float" 6>&1
5362 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5363 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
5371 $as_echo_n "checking if union semun defined... " >&6; }
5372 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
5373 $as_echo_n "(cached) " >&6
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 #include <sys/ipc.h>
5380 #include <sys/sem.h>
5389 if ac_fn_c_try_compile "$LINENO"; then :
5390 ac_cv_has_union_semun="yes"
5392 ac_cv_has_union_semun="no"
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
5396 $as_echo "$ac_cv_has_union_semun" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
5400 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
5403 if test "$ac_cv_has_union_semun" = "yes"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5405 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
5406 if test "${ac_cv_sysv_sem+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5410 if test "$cross_compiling" = yes; then :
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5416 #include <sys/types.h>
5417 #include <sys/ipc.h>
5418 #include <sys/sem.h>
5422 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5425 arg.val = 0; /* avoid implicit type cast to union */
5426 if (semctl(id, 0, IPC_RMID, arg) == -1)
5432 if ac_fn_c_try_run "$LINENO"; then :
5433 ac_cv_sysv_sem="yes"
5437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5438 conftest.$ac_objext conftest.beam conftest.$ac_ext
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5444 $as_echo "$ac_cv_sysv_sem" >&6; }
5445 else # semun is not defined
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5447 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
5448 if test "${ac_cv_sysv_sem+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5452 if test "$cross_compiling" = yes; then :
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 #include <sys/ipc.h>
5460 #include <sys/sem.h>
5463 struct semid_ds *buf;
5469 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5472 arg.val = 0; /* avoid implicit type cast to union */
5473 if (semctl(id, 0, IPC_RMID, arg) == -1)
5479 if ac_fn_c_try_run "$LINENO"; then :
5480 ac_cv_sysv_sem="yes"
5484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5485 conftest.$ac_objext conftest.beam conftest.$ac_ext
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5491 $as_echo "$ac_cv_sysv_sem" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
5495 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
5496 if test "${ac_cv_sysv_shm+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5500 if test "$cross_compiling" = yes; then :
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5506 #include <sys/types.h>
5507 #include <sys/ipc.h>
5508 #include <sys/shm.h>
5510 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
5513 if (shmctl(id, IPC_RMID, 0) == -1)
5519 if ac_fn_c_try_run "$LINENO"; then :
5520 ac_cv_sysv_shm="yes"
5524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5525 conftest.$ac_objext conftest.beam conftest.$ac_ext
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
5531 $as_echo "$ac_cv_sysv_shm" >&6; }
5533 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5534 sim_sysv_ipc_hw=",sem,shm";
5539 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5541 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5546 # Check whether --enable-sim-hardware was given.
5547 if test "${enable_sim_hardware+set}" = set; then :
5548 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
5549 case "${enableval}" in
5551 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
5552 ,*) hardware="${hardware}${enableval}";;
5553 *,) hardware="${enableval}${hardware}";;
5554 *) hardware="${enableval}"'';;
5556 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
5557 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
5558 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5559 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5562 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
5563 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
5564 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
5565 if test x"$silent" != x"yes"; then
5566 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5570 # Check whether --enable-sim-hostbitsize was given.
5571 if test "${enable_sim_hostbitsize+set}" = set; then :
5572 enableval=$enable_sim_hostbitsize; case "${enableval}" in
5573 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
5574 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
5576 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5577 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5585 ac_cpp='$CPP $CPPFLAGS'
5586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5590 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5591 # On Suns, sometimes $CPP names a directory.
5592 if test -n "$CPP" && test -d "$CPP"; then
5595 if test -z "$CPP"; then
5596 if test "${ac_cv_prog_CPP+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5599 # Double quotes because CPP needs to be expanded
5600 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5603 for ac_c_preproc_warn_flag in '' yes
5605 # Use a header file that comes with gcc, so configuring glibc
5606 # with a fresh cross-compiler works.
5607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5608 # <limits.h> exists even on freestanding compilers.
5609 # On the NeXT, cc -E runs the code through the compiler's parser,
5610 # not just through cpp. "Syntax error" is here to catch this case.
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5614 # include <limits.h>
5616 # include <assert.h>
5620 if ac_fn_c_try_cpp "$LINENO"; then :
5623 # Broken: fails on valid input.
5626 rm -f conftest.err conftest.$ac_ext
5628 # OK, works on sane cases. Now check whether nonexistent headers
5629 # can be detected and how.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <ac_nonexistent.h>
5634 if ac_fn_c_try_cpp "$LINENO"; then :
5635 # Broken: success on invalid input.
5638 # Passes both tests.
5642 rm -f conftest.err conftest.$ac_ext
5645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5646 rm -f conftest.err conftest.
$ac_ext
5647 if $ac_preproc_ok; then :
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5660 $as_echo "$CPP" >&6; }
5662 for ac_c_preproc_warn_flag
in '' yes
5664 # Use a header file that comes with gcc, so configuring glibc
5665 # with a fresh cross-compiler works.
5666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5667 # <limits.h> exists even on freestanding compilers.
5668 # On the NeXT, cc -E runs the code through the compiler's parser,
5669 # not just through cpp. "Syntax error" is here to catch this case.
5670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5673 # include <limits.h>
5675 # include <assert.h>
5679 if ac_fn_c_try_cpp
"$LINENO"; then :
5682 # Broken: fails on valid input.
5685 rm -f conftest.err conftest.
$ac_ext
5687 # OK, works on sane cases. Now check whether nonexistent headers
5688 # can be detected and how.
5689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <ac_nonexistent.h>
5693 if ac_fn_c_try_cpp
"$LINENO"; then :
5694 # Broken: success on invalid input.
5697 # Passes both tests.
5701 rm -f conftest.err conftest.
$ac_ext
5704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5705 rm -f conftest.err conftest.
$ac_ext
5706 if $ac_preproc_ok; then :
5709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5711 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5712 See \`config.log' for more details." "$LINENO" 5; }
5716 ac_cpp
='$CPP $CPPFLAGS'
5717 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5724 if test "${ac_cv_path_GREP+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5727 if test -z "$GREP"; then
5728 ac_path_GREP_found
=false
5729 # Loop through the user's path and test for each of PROGNAME-LIST
5730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5731 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5734 test -z "$as_dir" && as_dir
=.
5735 for ac_prog
in grep ggrep
; do
5736 for ac_exec_ext
in '' $ac_executable_extensions; do
5737 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5738 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5739 # Check for GNU ac_path_GREP and select it if it is found.
5740 # Check for GNU $ac_path_GREP
5741 case `"$ac_path_GREP" --version 2>&1` in
5743 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5746 $as_echo_n 0123456789 >"conftest.in"
5749 cat "conftest.in" "conftest.in" >"conftest.tmp"
5750 mv "conftest.tmp" "conftest.in"
5751 cp "conftest.in" "conftest.nl"
5752 $as_echo 'GREP' >> "conftest.nl"
5753 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5754 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5755 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5756 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5757 # Best one so far, save it but keep looking for a better one
5758 ac_cv_path_GREP
="$ac_path_GREP"
5759 ac_path_GREP_max
=$ac_count
5761 # 10*(2^10) chars as input seems more than enough
5762 test $ac_count -gt 10 && break
5764 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5767 $ac_path_GREP_found && break 3
5772 if test -z "$ac_cv_path_GREP"; then
5773 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5776 ac_cv_path_GREP
=$GREP
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5781 $as_echo "$ac_cv_path_GREP" >&6; }
5782 GREP
="$ac_cv_path_GREP"
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5786 $as_echo_n "checking for egrep... " >&6; }
5787 if test "${ac_cv_path_EGREP+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5790 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5791 then ac_cv_path_EGREP
="$GREP -E"
5793 if test -z "$EGREP"; then
5794 ac_path_EGREP_found
=false
5795 # Loop through the user's path and test for each of PROGNAME-LIST
5796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5797 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5800 test -z "$as_dir" && as_dir
=.
5801 for ac_prog
in egrep; do
5802 for ac_exec_ext
in '' $ac_executable_extensions; do
5803 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5804 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5805 # Check for GNU ac_path_EGREP and select it if it is found.
5806 # Check for GNU $ac_path_EGREP
5807 case `"$ac_path_EGREP" --version 2>&1` in
5809 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5812 $as_echo_n 0123456789 >"conftest.in"
5815 cat "conftest.in" "conftest.in" >"conftest.tmp"
5816 mv "conftest.tmp" "conftest.in"
5817 cp "conftest.in" "conftest.nl"
5818 $as_echo 'EGREP' >> "conftest.nl"
5819 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5820 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5821 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5822 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5823 # Best one so far, save it but keep looking for a better one
5824 ac_cv_path_EGREP
="$ac_path_EGREP"
5825 ac_path_EGREP_max
=$ac_count
5827 # 10*(2^10) chars as input seems more than enough
5828 test $ac_count -gt 10 && break
5830 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5833 $ac_path_EGREP_found && break 3
5838 if test -z "$ac_cv_path_EGREP"; then
5839 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5842 ac_cv_path_EGREP
=$EGREP
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5848 $as_echo "$ac_cv_path_EGREP" >&6; }
5849 EGREP
="$ac_cv_path_EGREP"
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5853 $as_echo_n "checking for ANSI C header files... " >&6; }
5854 if test "${ac_cv_header_stdc+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5872 if ac_fn_c_try_compile
"$LINENO"; then :
5873 ac_cv_header_stdc
=yes
5875 ac_cv_header_stdc
=no
5877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5879 if test $ac_cv_header_stdc = yes; then
5880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 $EGREP "memchr" >/dev
/null
2>&1; then :
5890 ac_cv_header_stdc
=no
5896 if test $ac_cv_header_stdc = yes; then
5897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "free" >/dev
/null
2>&1; then :
5907 ac_cv_header_stdc
=no
5913 if test $ac_cv_header_stdc = yes; then
5914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5915 if test "$cross_compiling" = yes; then :
5918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5922 #if ((' ' & 0x0FF) == 0x020)
5923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5926 # define ISLOWER(c) \
5927 (('a' <= (c) && (c) <= 'i') \
5928 || ('j' <= (c) && (c) <= 'r') \
5929 || ('s' <= (c) && (c) <= 'z'))
5930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5938 for (i = 0; i < 256; i++)
5939 if (XOR (islower (i), ISLOWER (i))
5940 || toupper (i) != TOUPPER (i))
5945 if ac_fn_c_try_run
"$LINENO"; then :
5948 ac_cv_header_stdc
=no
5950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5957 $as_echo "$ac_cv_header_stdc" >&6; }
5958 if test $ac_cv_header_stdc = yes; then
5960 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5964 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5965 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5966 inttypes.h stdint.h unistd.h
5968 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5969 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5971 eval as_val
=\$
$as_ac_Header
5972 if test "x$as_val" = x
""yes; then :
5973 cat >>confdefs.h
<<_ACEOF
5974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5982 # Check whether --enable-sim-hostendian was given.
5983 if test "${enable_sim_hostendian+set}" = set; then :
5984 enableval
=$enable_sim_hostendian; case "${enableval}" in
5985 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
5986 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
5987 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
5988 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
5990 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
5991 echo "Setting hostendian flags = $sim_hostendian" 6>&1
5995 if test "x$cross_compiling" = "xno"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5997 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5998 if test "${ac_cv_c_bigendian+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6001 ac_cv_c_bigendian
=unknown
6002 # See if we're dealing with a universal compiler.
6003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 #ifndef __APPLE_CC__
6006 not a universal capable compiler
6011 if ac_fn_c_try_compile
"$LINENO"; then :
6013 # Check for potential -arch flags. It is not universal unless
6014 # there are at least two -arch flags with different values.
6017 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6018 if test -n "$ac_prev"; then
6020 i?
86 | x86_64 | ppc | ppc64
)
6021 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
6024 ac_cv_c_bigendian
=universal
6030 elif test "x$ac_word" = "x-arch"; then
6035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6036 if test $ac_cv_c_bigendian = unknown
; then
6037 # See if sys/param.h defines the BYTE_ORDER macro.
6038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <sys/types.h>
6041 #include <sys/param.h>
6046 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6047 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6056 if ac_fn_c_try_compile
"$LINENO"; then :
6057 # It does; now see whether it defined to BIG_ENDIAN or not.
6058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 #include <sys/types.h>
6061 #include <sys/param.h>
6066 #if BYTE_ORDER != BIG_ENDIAN
6074 if ac_fn_c_try_compile
"$LINENO"; then :
6075 ac_cv_c_bigendian
=yes
6077 ac_cv_c_bigendian
=no
6079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6083 if test $ac_cv_c_bigendian = unknown
; then
6084 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6092 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6100 if ac_fn_c_try_compile
"$LINENO"; then :
6101 # It does; now see whether it defined to _BIG_ENDIAN or not.
6102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6117 if ac_fn_c_try_compile
"$LINENO"; then :
6118 ac_cv_c_bigendian
=yes
6120 ac_cv_c_bigendian
=no
6122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6126 if test $ac_cv_c_bigendian = unknown
; then
6127 # Compile a test program.
6128 if test "$cross_compiling" = yes; then :
6129 # Try to guess by grepping values from an object file.
6130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 short int ascii_mm[] =
6133 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6134 short int ascii_ii[] =
6135 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6136 int use_ascii (int i) {
6137 return ascii_mm[i] + ascii_ii[i];
6139 short int ebcdic_ii[] =
6140 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6141 short int ebcdic_mm[] =
6142 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6143 int use_ebcdic (int i) {
6144 return ebcdic_mm[i] + ebcdic_ii[i];
6151 return use_ascii (foo) == use_ebcdic (foo);
6156 if ac_fn_c_try_compile
"$LINENO"; then :
6157 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6158 ac_cv_c_bigendian
=yes
6160 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6161 if test "$ac_cv_c_bigendian" = unknown
; then
6162 ac_cv_c_bigendian
=no
6164 # finding both strings is unlikely to happen, but who knows?
6165 ac_cv_c_bigendian
=unknown
6169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 $ac_includes_default
6178 /* Are we little or big endian? From Harbison&Steele. */
6182 char c[sizeof (long int)];
6185 return u.c[sizeof (long int) - 1] == 1;
6191 if ac_fn_c_try_run
"$LINENO"; then :
6192 ac_cv_c_bigendian
=no
6194 ac_cv_c_bigendian
=yes
6196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6203 $as_echo "$ac_cv_c_bigendian" >&6; }
6204 case $ac_cv_c_bigendian in #(
6206 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6212 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6216 as_fn_error
"unknown endianness
6217 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6220 if test $ac_cv_c_bigendian = yes; then
6221 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6223 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6226 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
6231 # Check whether --enable-sim-icache was given.
6232 if test "${enable_sim_icache+set}" = set; then :
6233 enableval
=$enable_sim_icache; icache
="-R"
6234 case "${enableval}" in
6235 yes) icache
="1024"; sim_icache
="-I $icache";;
6236 no
) sim_icache
="-R";;
6239 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6241 define
) sim_icache
="${sim_icache}R";;
6242 semantic
) sim_icache
="${sim_icache}C";;
6243 insn
) sim_icache
="${sim_icache}S";;
6244 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
6245 *) as_fn_error
"\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache
="";;
6248 sim_icache
="${sim_icache}I $icache";;
6250 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
6251 echo "Setting instruction cache size to $icache ($sim_icache)"
6254 sim_icache
="-CSRI 1024"
6255 if test x
"$silent" != x
"yes"; then
6256 echo "Setting instruction cache size to 1024 ($sim_icache)"
6261 # Check whether --enable-sim-inline was given.
6262 if test "${enable_sim_inline+set}" = set; then :
6263 enableval
=$enable_sim_inline; sim_inline
=""
6264 case "$enableval" in
6265 no
) sim_inline
="-DDEFAULT_INLINE=0";;
6266 0) sim_inline
="-DDEFAULT_INLINE=0";;
6267 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
6268 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6269 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6272 *_INLINE
=*) new_flag
="-D$x";;
6273 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6274 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
6275 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
6277 if test x
"$sim_inline" = x
""; then
6278 sim_inline
="$new_flag"
6280 sim_inline
="$sim_inline $new_flag"
6284 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
6285 echo "Setting inline flags = $sim_inline" 6>&1
6288 if test x
"$GCC" != ""; then
6289 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6290 if test x
"$silent" != x
"yes"; then
6291 echo "Setting inline flags = $sim_inline" 6>&1
6299 # Check whether --enable-sim-jump was given.
6300 if test "${enable_sim_jump+set}" = set; then :
6301 enableval
=$enable_sim_jump; case "${enableval}" in
6302 yes) sim_jump
="-J";;
6304 *) as_fn_error
"\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump
="";;
6306 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
6307 echo "Setting jump flag = $sim_jump" 6>&1
6311 if test x
"$silent" != x
"yes"; then
6312 echo "Setting jump flag = $sim_jump" 6>&1
6317 # Check whether --enable-sim-line-nr was given.
6318 if test "${enable_sim_line_nr+set}" = set; then :
6319 enableval
=$enable_sim_line_nr; case "${enableval}" in
6320 yes) sim_line_nr
="";;
6321 no
) sim_line_nr
="-L";;
6322 *) as_fn_error
"\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr
="";;
6324 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
6325 echo "Setting warning flags = $sim_line_nr" 6>&1
6332 # Check whether --enable-sim-model was given.
6333 if test "${enable_sim_model+set}" = set; then :
6334 enableval
=$enable_sim_model; case "${enableval}" in
6335 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
6336 *) sim_model
="-DWITH_MODEL=${enableval}";;
6338 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
6339 echo "Setting model flags = $sim_model" 6>&1
6346 # Check whether --enable-sim-model-issue was given.
6347 if test "${enable_sim_model_issue+set}" = set; then :
6348 enableval
=$enable_sim_model_issue; case "${enableval}" in
6349 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6350 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
6351 *) as_fn_error
"\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue
="";;
6353 if test x
"$silent" != x
"yes"; then
6354 echo "Setting model-issue flags = $sim_model_issue" 6>&1
6361 # Check whether --enable-sim-monitor was given.
6362 if test "${enable_sim_monitor+set}" = set; then :
6363 enableval
=$enable_sim_monitor; case "${enableval}" in
6364 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6365 no
) sim_monitor
="-DWITH_MON=0";;
6366 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6367 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
6368 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env
="";;
6370 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
6371 echo "Setting monitor flags = $sim_monitor" 6>&1
6378 # Check whether --enable-sim-opcode was given.
6379 if test "${enable_sim_opcode+set}" = set; then :
6380 enableval
=$enable_sim_opcode; case "${enableval}" in
6381 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
6382 *) if test -f "${srcdir}/${enableval}"; then
6383 sim_opcode
="${enableval}"
6384 elif test -f "${srcdir}/dc-${enableval}"; then
6385 sim_opcode
="dc-${enableval}"
6387 as_fn_error
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
6388 sim_opcode
="dc-complex"
6391 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
6392 echo "Setting opcode flags = $sim_opcode" 6>&1
6395 sim_opcode
="dc-complex"
6396 if test x
"$silent" != x
"yes"; then
6397 echo "Setting opcode flags = $sim_opcode"
6402 # Check whether --enable-sim-packages was given.
6403 if test "${enable_sim_packages+set}" = set; then :
6404 enableval
=$enable_sim_packages; packages
=disklabel
6405 case "${enableval}" in
6407 no
) as_fn_error
"\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages
="";;
6408 ,*) packages
="${packages}${enableval}";;
6409 *,) packages
="${enableval}${packages}";;
6410 *) packages
="${enableval}"'';;
6412 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6413 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6414 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
6415 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6419 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6420 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6421 if test x
"$silent" != x
"yes"; then
6422 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6427 # Check whether --enable-sim-reserved-bits was given.
6428 if test "${enable_sim_reserved_bits+set}" = set; then :
6429 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
6430 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
6431 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
6432 *) as_fn_error
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved
="";;
6434 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
6435 echo "Setting reserved flags = $sim_reserved" 6>&1
6442 # Check whether --enable-sim-smp was given.
6443 if test "${enable_sim_smp+set}" = set; then :
6444 enableval
=$enable_sim_smp; case "${enableval}" in
6445 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
6446 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
6447 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
6449 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
6450 echo "Setting smp flags = $sim_smp" 6>&1
6453 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
6454 if test x
"$silent" != x
"yes"; then
6455 echo "Setting smp flags = $sim_smp" 6>&1
6460 # Check whether --enable-sim-stdio was given.
6461 if test "${enable_sim_stdio+set}" = set; then :
6462 enableval
=$enable_sim_stdio; case "${enableval}" in
6463 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6464 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6465 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
6467 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6468 echo "Setting stdio flags = $sim_stdio" 6>&1
6475 # Check whether --enable-sim-switch was given.
6476 if test "${enable_sim_switch+set}" = set; then :
6477 enableval
=$enable_sim_switch; case "${enableval}" in
6478 yes) sim_switch
="-s";;
6480 *) as_fn_error
"\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch
="";;
6482 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
6483 echo "Setting switch flags = $sim_switch" 6>&1
6487 if test x
"$silent" != x
"yes"; then
6488 echo "Setting switch flags = $sim_switch" 6>&1
6493 # Check whether --enable-sim-timebase was given.
6494 if test "${enable_sim_timebase+set}" = set; then :
6495 enableval
=$enable_sim_timebase; case "${enableval}" in
6496 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
6497 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
6498 *) as_fn_error
"\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase
="";;
6500 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
6501 echo "Setting timebase flags = $sim_timebase" 6>&1
6508 # Check whether --enable-sim-trace was given.
6509 if test "${enable_sim_trace+set}" = set; then :
6510 enableval
=$enable_sim_trace; case "${enableval}" in
6511 yes) sim_trace
="-DWITH_TRACE=1";;
6512 no
) sim_trace
="-DWITH_TRACE=0";;
6513 *) as_fn_error
"\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace
="";;
6515 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6516 echo "Setting trace flags = $sim_trace" 6>&1
6523 # Check whether --enable-sim-warnings was given.
6524 if test "${enable_sim_warnings+set}" = set; then :
6525 enableval
=$enable_sim_warnings; case "${enableval}" in
6526 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6527 no
) sim_warnings
="-w";;
6528 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6530 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
6531 echo "Setting warning flags = $sim_warnings" 6>&1
6538 # Check whether --enable-sim-xor-endian was given.
6539 if test "${enable_sim_xor_endian+set}" = set; then :
6540 enableval
=$enable_sim_xor_endian; case "${enableval}" in
6541 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
6542 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
6543 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
6545 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
6546 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6555 # Check whether --with-pkgversion was given.
6556 if test "${with_pkgversion+set}" = set; then :
6557 withval
=$with_pkgversion; case "$withval" in
6558 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6560 *) PKGVERSION
="($withval) " ;;
6571 # Check whether --with-bugurl was given.
6572 if test "${with_bugurl+set}" = set; then :
6573 withval
=$with_bugurl; case "$withval" in
6574 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6577 *) BUGURL
="$withval"
6581 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6591 REPORT_BUGS_TO
="<$BUGURL>"
6592 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6599 cat >>confdefs.h
<<_ACEOF
6600 #define PKGVERSION "$PKGVERSION"
6604 cat >>confdefs.h
<<_ACEOF
6605 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6609 # Make sure we can run config.sub.
6610 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
6611 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6614 $as_echo_n "checking build system type... " >&6; }
6615 if test "${ac_cv_build+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6618 ac_build_alias
=$build_alias
6619 test "x$ac_build_alias" = x
&&
6620 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
6621 test "x$ac_build_alias" = x
&&
6622 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
6623 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6624 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6628 $as_echo "$ac_cv_build" >&6; }
6629 case $ac_cv_build in
6631 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
6634 ac_save_IFS
=$IFS; IFS
='-'
6640 # Remember, the first character of IFS is used to create $*,
6641 # except with old shells:
6644 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6648 $as_echo_n "checking host system type... " >&6; }
6649 if test "${ac_cv_host+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6652 if test "x$host_alias" = x
; then
6653 ac_cv_host
=$ac_cv_build
6655 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6656 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6661 $as_echo "$ac_cv_host" >&6; }
6664 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
6667 ac_save_IFS
=$IFS; IFS
='-'
6673 # Remember, the first character of IFS is used to create $*,
6674 # except with old shells:
6677 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6681 $as_echo_n "checking target system type... " >&6; }
6682 if test "${ac_cv_target+set}" = set; then :
6683 $as_echo_n "(cached) " >&6
6685 if test "x$target_alias" = x
; then
6686 ac_cv_target
=$ac_cv_host
6688 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6689 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6694 $as_echo "$ac_cv_target" >&6; }
6695 case $ac_cv_target in
6697 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
6699 target
=$ac_cv_target
6700 ac_save_IFS
=$IFS; IFS
='-'
6706 # Remember, the first character of IFS is used to create $*,
6707 # except with old shells:
6710 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
6713 # The aliases save the names the user supplied, while $host etc.
6714 # will get canonicalized.
6715 test -n "$target_alias" &&
6716 test "$program_prefix$program_suffix$program_transform_name" = \
6718 program_prefix
=${target_alias}-
6720 test "$program_prefix" != NONE
&&
6721 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
6722 # Use a double $ so make ignores it.
6723 test "$program_suffix" != NONE
&&
6724 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
6725 # Double any \ or $.
6726 # By default was `s,x,x', remove it if useless.
6727 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
6728 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
6731 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
6732 # using the same condition.
6734 # Use the system's zlib library.
6735 zlibdir
="-L\$(top_builddir)/../zlib"
6736 zlibinc
="-I\$(top_srcdir)/../zlib"
6738 # Check whether --with-system-zlib was given.
6739 if test "${with_system_zlib+set}" = set; then :
6740 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
6751 # BFD uses libdl when when plugins enabled.
6754 for ac_header
in dlfcn.h
6756 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6758 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
6759 cat >>confdefs.h
<<_ACEOF
6760 #define HAVE_DLFCN_H 1
6767 for ac_header
in windows.h
6769 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6771 if test "x$ac_cv_header_windows_h" = x
""yes; then :
6772 cat >>confdefs.h
<<_ACEOF
6773 #define HAVE_WINDOWS_H 1
6781 # Check whether --enable-plugins was given.
6782 if test "${enable_plugins+set}" = set; then :
6783 enableval
=$enable_plugins; case "${enableval}" in
6786 if test "$maybe_plugins" != "yes" ; then
6787 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6791 plugins
=$maybe_plugins
6795 if test "$plugins" = "yes"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6797 $as_echo_n "checking for library containing dlopen... " >&6; }
6798 if test "${ac_cv_search_dlopen+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6801 ac_func_search_save_LIBS
=$LIBS
6802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6805 /* Override any GCC internal prototype to avoid an error.
6806 Use char because int might match the return type of a GCC
6807 builtin and then its argument prototype would still apply. */
6820 for ac_lib
in '' dl
; do
6821 if test -z "$ac_lib"; then
6822 ac_res
="none required"
6825 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6827 if ac_fn_c_try_link
"$LINENO"; then :
6828 ac_cv_search_dlopen
=$ac_res
6830 rm -f core conftest.err conftest.
$ac_objext \
6832 if test "${ac_cv_search_dlopen+set}" = set; then :
6836 if test "${ac_cv_search_dlopen+set}" = set; then :
6839 ac_cv_search_dlopen
=no
6842 LIBS
=$ac_func_search_save_LIBS
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6845 $as_echo "$ac_cv_search_dlopen" >&6; }
6846 ac_res
=$ac_cv_search_dlopen
6847 if test "$ac_res" != no
; then :
6848 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6855 .
${srcdir}/..
/..
/bfd
/configure.
host
6860 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6865 ac_config_headers
="$ac_config_headers config.h:config.in"
6868 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6869 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
6871 cat >>confdefs.h
<<_ACEOF
6872 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6876 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6881 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6882 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
6884 cat >>confdefs.h
<<_ACEOF
6885 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6889 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6892 case " $LIBOBJS " in
6893 *" fileblocks.$ac_objext "* ) ;;
6894 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6901 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6902 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
6904 cat >>confdefs.h
<<_ACEOF
6905 #define HAVE_STRUCT_STAT_ST_RDEV 1
6909 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6915 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6916 if test "${ac_cv_struct_tm+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 #include <sys/types.h>
6928 int *p = &tm.tm_sec;
6934 if ac_fn_c_try_compile
"$LINENO"; then :
6935 ac_cv_struct_tm
=time.h
6937 ac_cv_struct_tm
=sys
/time.h
6939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6942 $as_echo "$ac_cv_struct_tm" >&6; }
6943 if test $ac_cv_struct_tm = sys
/time.h
; then
6945 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6949 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6950 #include <$ac_cv_struct_tm>
6953 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6955 cat >>confdefs.h
<<_ACEOF
6956 #define HAVE_STRUCT_TM_TM_ZONE 1
6962 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6964 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6967 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6969 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6975 cat >>confdefs.h
<<_ACEOF
6976 #define HAVE_DECL_TZNAME $ac_have_decl
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6980 $as_echo_n "checking for tzname... " >&6; }
6981 if test "${ac_cv_var_tzname+set}" = set; then :
6982 $as_echo_n "(cached) " >&6
6984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6987 #if !HAVE_DECL_TZNAME
6988 extern char *tzname[];
6994 return tzname[0][0];
6999 if ac_fn_c_try_link
"$LINENO"; then :
7000 ac_cv_var_tzname
=yes
7004 rm -f core conftest.err conftest.
$ac_objext \
7005 conftest
$ac_exeext conftest.
$ac_ext
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7008 $as_echo "$ac_cv_var_tzname" >&6; }
7009 if test $ac_cv_var_tzname = yes; then
7011 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7018 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7019 if test "${ac_cv_type_uid_t+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #include <sys/types.h>
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028 $EGREP "uid_t" >/dev
/null
2>&1; then :
7029 ac_cv_type_uid_t
=yes
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7037 $as_echo "$ac_cv_type_uid_t" >&6; }
7038 if test $ac_cv_type_uid_t = no
; then
7040 $as_echo "#define uid_t int" >>confdefs.h
7043 $as_echo "#define gid_t int" >>confdefs.h
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7048 $as_echo_n "checking type of array argument to getgroups... " >&6; }
7049 if test "${ac_cv_type_getgroups+set}" = set; then :
7050 $as_echo_n "(cached) " >&6
7052 if test "$cross_compiling" = yes; then :
7053 ac_cv_type_getgroups
=cross
7055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 /* Thanks to Mike Rendell for this test. */
7058 $ac_includes_default
7061 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7068 union { gid_t gval; long int lval; } val;
7071 for (i = 0; i < NGID; i++)
7072 gidset[i] = val.gval;
7073 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7075 /* Exit non-zero if getgroups seems to require an array of ints. This
7076 happens when gid_t is short int but getgroups modifies an array
7078 return n > 0 && gidset[n] != val.gval;
7081 if ac_fn_c_try_run
"$LINENO"; then :
7082 ac_cv_type_getgroups
=gid_t
7084 ac_cv_type_getgroups
=int
7086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7090 if test $ac_cv_type_getgroups = cross
; then
7091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
7098 ac_cv_type_getgroups
=gid_t
7100 ac_cv_type_getgroups
=int
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7107 $as_echo "$ac_cv_type_getgroups" >&6; }
7109 cat >>confdefs.h
<<_ACEOF
7110 #define GETGROUPS_T $ac_cv_type_getgroups
7114 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7115 if test "x$ac_cv_type_mode_t" = x
""yes; then :
7119 cat >>confdefs.h
<<_ACEOF
7125 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7126 if test "x$ac_cv_type_off_t" = x
""yes; then :
7130 cat >>confdefs.h
<<_ACEOF
7131 #define off_t long int
7136 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7137 if test "x$ac_cv_type_pid_t" = x
""yes; then :
7141 cat >>confdefs.h
<<_ACEOF
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7148 $as_echo_n "checking return type of signal handlers... " >&6; }
7149 if test "${ac_cv_type_signal+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
7152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 #include <sys/types.h>
7160 return *(signal (0, 0)) (0) == 1;
7165 if ac_fn_c_try_compile
"$LINENO"; then :
7166 ac_cv_type_signal
=int
7168 ac_cv_type_signal
=void
7170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7173 $as_echo "$ac_cv_type_signal" >&6; }
7175 cat >>confdefs.h
<<_ACEOF
7176 #define RETSIGTYPE $ac_cv_type_signal
7180 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7181 if test "x$ac_cv_type_size_t" = x
""yes; then :
7185 cat >>confdefs.h
<<_ACEOF
7186 #define size_t unsigned int
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7192 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7193 if test "${ac_cv_type_uid_t+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
7196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #include <sys/types.h>
7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 $EGREP "uid_t" >/dev
/null
2>&1; then :
7203 ac_cv_type_uid_t
=yes
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7211 $as_echo "$ac_cv_type_uid_t" >&6; }
7212 if test $ac_cv_type_uid_t = no
; then
7214 $as_echo "#define uid_t int" >>confdefs.h
7217 $as_echo "#define gid_t int" >>confdefs.h
7222 for ac_func
in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir
chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl
kill link lseek lstat mkdir pipe readlink
rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp
time umask unlink
7224 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7226 eval as_val
=\$
$as_ac_var
7227 if test "x$as_val" = x
""yes; then :
7228 cat >>confdefs.h
<<_ACEOF
7229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7236 for ac_header
in fcntl.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mount.h sys
/param.h sys
/resource.h sys
/stat.h sys
/termio.h sys
/termios.h sys
/time.h sys
/times.h sys
/types.h
time.h unistd.h sys
/vfs.h sys
/statfs.h
7238 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7239 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7240 eval as_val
=\$
$as_ac_Header
7241 if test "x$as_val" = x
""yes; then :
7242 cat >>confdefs.h
<<_ACEOF
7243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
7252 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7254 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7255 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7256 $as_echo_n "(cached) " >&6
7258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 #include <sys/types.h>
7272 if ac_fn_c_try_compile
"$LINENO"; then :
7273 eval "$as_ac_Header=yes"
7275 eval "$as_ac_Header=no"
7277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7279 eval ac_res
=\$
$as_ac_Header
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7281 $as_echo "$ac_res" >&6; }
7282 eval as_val
=\$
$as_ac_Header
7283 if test "x$as_val" = x
""yes; then :
7284 cat >>confdefs.h
<<_ACEOF
7285 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7288 ac_header_dirent
=$ac_hdr; break
7292 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7293 if test $ac_header_dirent = dirent.h
; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7295 $as_echo_n "checking for library containing opendir... " >&6; }
7296 if test "${ac_cv_search_opendir+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7299 ac_func_search_save_LIBS
=$LIBS
7300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7303 /* Override any GCC internal prototype to avoid an error.
7304 Use char because int might match the return type of a GCC
7305 builtin and then its argument prototype would still apply. */
7318 for ac_lib
in '' dir
; do
7319 if test -z "$ac_lib"; then
7320 ac_res
="none required"
7323 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7325 if ac_fn_c_try_link
"$LINENO"; then :
7326 ac_cv_search_opendir
=$ac_res
7328 rm -f core conftest.err conftest.
$ac_objext \
7330 if test "${ac_cv_search_opendir+set}" = set; then :
7334 if test "${ac_cv_search_opendir+set}" = set; then :
7337 ac_cv_search_opendir
=no
7340 LIBS
=$ac_func_search_save_LIBS
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7343 $as_echo "$ac_cv_search_opendir" >&6; }
7344 ac_res
=$ac_cv_search_opendir
7345 if test "$ac_res" != no
; then :
7346 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7352 $as_echo_n "checking for library containing opendir... " >&6; }
7353 if test "${ac_cv_search_opendir+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7356 ac_func_search_save_LIBS
=$LIBS
7357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7360 /* Override any GCC internal prototype to avoid an error.
7361 Use char because int might match the return type of a GCC
7362 builtin and then its argument prototype would still apply. */
7375 for ac_lib
in '' x
; do
7376 if test -z "$ac_lib"; then
7377 ac_res
="none required"
7380 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7382 if ac_fn_c_try_link
"$LINENO"; then :
7383 ac_cv_search_opendir
=$ac_res
7385 rm -f core conftest.err conftest.
$ac_objext \
7387 if test "${ac_cv_search_opendir+set}" = set; then :
7391 if test "${ac_cv_search_opendir+set}" = set; then :
7394 ac_cv_search_opendir
=no
7397 LIBS
=$ac_func_search_save_LIBS
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7400 $as_echo "$ac_cv_search_opendir" >&6; }
7401 ac_res
=$ac_cv_search_opendir
7402 if test "$ac_res" != no
; then :
7403 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
7412 $as_echo_n "checking for struct termios... " >&6; }
7413 if test "${ac_cv_termios_struct+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 #include <sys/types.h>
7419 #include <sys/termios.h>
7423 static struct termios x;
7433 if ac_fn_c_try_compile
"$LINENO"; then :
7434 ac_cv_termios_struct
=yes
7436 ac_cv_termios_struct
=no
7438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
7442 $as_echo "$ac_cv_termios_struct" >&6; }
7443 if test $ac_cv_termios_struct = yes; then
7444 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
7447 if test "$ac_cv_termios_struct" = "yes"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
7449 $as_echo_n "checking for c_line field in struct termios... " >&6; }
7450 if test "${ac_cv_termios_cline+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 #include <sys/types.h>
7456 #include <sys/termios.h>
7460 static struct termios x; x.c_line = 0;
7465 if ac_fn_c_try_compile
"$LINENO"; then :
7466 ac_cv_termios_cline
=yes
7468 ac_cv_termios_cline
=no
7470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
7475 $as_echo "$ac_cv_termios_cline" >&6; }
7476 if test $ac_cv_termios_cline = yes; then
7477 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
7480 ac_cv_termios_cline
=no
7483 if test "$ac_cv_termios_struct" != "yes"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
7485 $as_echo_n "checking for struct termio... " >&6; }
7486 if test "${ac_cv_termio_struct+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491 #include <sys/types.h>
7492 #include <sys/termio.h>
7496 static struct termio x;
7506 if ac_fn_c_try_compile
"$LINENO"; then :
7507 ac_cv_termio_struct
=yes
7509 ac_cv_termio_struct
=no
7511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
7515 $as_echo "$ac_cv_termio_struct" >&6; }
7516 if test $ac_cv_termio_struct = yes; then
7517 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
7520 ac_cv_termio_struct
=no
7523 if test "$ac_cv_termio_struct" = "yes"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
7525 $as_echo_n "checking for c_line field in struct termio... " >&6; }
7526 if test "${ac_cv_termio_cline+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <sys/types.h>
7532 #include <sys/termio.h>
7536 static struct termio x; x.c_line = 0;
7541 if ac_fn_c_try_compile
"$LINENO"; then :
7542 ac_cv_termio_cline
=yes
7544 ac_cv_termio_cline
=no
7546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
7551 $as_echo "$ac_cv_termio_cline" >&6; }
7552 if test $ac_cv_termio_cline = yes; then
7553 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
7556 ac_cv_termio_cline
=no
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
7560 $as_echo_n "checking for struct statfs... " >&6; }
7561 if test "${ac_cv_struct_statfs+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 #include <sys/types.h>
7567 #ifdef HAVE_SYS_PARAM_H
7568 #include <sys/param.h>
7570 #ifdef HAVE_SYS_MOUNT_H
7571 #include <sys/mount.h>
7573 #ifdef HAVE_SYS_VFS_H
7574 #include <sys/vfs.h>
7576 #ifdef HAVE_SYS_STATFS_H
7577 #include <sys/statfs.h>
7582 static struct statfs s;
7587 if ac_fn_c_try_compile
"$LINENO"; then :
7588 ac_cv_struct_statfs
=yes
7590 ac_cv_struct_statfs
=no
7592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
7596 $as_echo "$ac_cv_struct_statfs" >&6; }
7597 if test $ac_cv_struct_statfs = yes; then
7599 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
7603 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7604 if test "x$ac_cv_type_long_long" = x
""yes; then :
7606 cat >>confdefs.h
<<_ACEOF
7607 #define HAVE_LONG_LONG 1
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
7616 $as_echo_n "checking for /dev/zero... " >&6; }
7617 if test "${ac_cv_devzero+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7620 if test "$cross_compiling" = yes; then :
7623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7629 int fd = open ("/dev/zero", O_RDONLY);
7632 for (i = 0; i < sizeof (buf); i++)
7634 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
7636 for (i = 0; i < sizeof (buf); i++)
7642 if ac_fn_c_try_run
"$LINENO"; then :
7647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7648 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
7654 $as_echo "$ac_cv_devzero" >&6; }
7655 if test $ac_cv_devzero = yes; then
7656 sim_devzero
="-DHAVE_DEVZERO"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
7662 $as_echo_n "checking for common simulator directory... " >&6; }
7663 if test -f "${srcdir}/../common/callback.c"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7665 $as_echo "yes" >&6; }
7666 sim_callback
="callback.o targ-map.o"
7667 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
7676 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
7677 if test -f "${srcdir}/../common/sim-fpu.c"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679 $as_echo "yes" >&6; }
7680 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7689 # Since we run commands on the build system, we have to create a
7690 # separate config header for the build system if build != host.
7691 if test x
$host = x
$build; then
7692 ac_config_commands
="$ac_config_commands build-config.h"
7700 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
7701 *) realsrcdir
=..
/${srcdir};;
7703 saved_CFLAGS
="${CFLAGS}"
7704 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
7705 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
7706 ${realsrcdir}/configure \
7707 --enable-languages=${enable_languages-all} \
7708 --target=$target_alias --host=$build_alias --build=$build_alias
7709 CFLAGS
="${saved_CFLAGS}"
7710 mv config.h ..
/build-config.h
7723 if test -n "$ac_tool_prefix"; then
7724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7725 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7731 if test -n "$RANLIB"; then
7732 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir
=.
7739 for ac_exec_ext
in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 RANLIB
=$ac_cv_prog_RANLIB
7752 if test -n "$RANLIB"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7754 $as_echo "$RANLIB" >&6; }
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7762 if test -z "$ac_cv_prog_RANLIB"; then
7763 ac_ct_RANLIB
=$RANLIB
7764 # Extract the first word of "ranlib", so it can be a program name with args.
7765 set dummy ranlib
; ac_word
=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7771 if test -n "$ac_ct_RANLIB"; then
7772 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir
=.
7779 for ac_exec_ext
in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7792 if test -n "$ac_ct_RANLIB"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7794 $as_echo "$ac_ct_RANLIB" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7800 if test "x$ac_ct_RANLIB" = x
; then
7803 case $cross_compiling:$ac_tool_warned in
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7807 ac_tool_warned
=yes ;;
7809 RANLIB
=$ac_ct_RANLIB
7812 RANLIB
="$ac_cv_prog_RANLIB"
7856 ac_config_files
="$ac_config_files Makefile"
7858 ac_config_commands
="$ac_config_commands default"
7860 cat >confcache
<<\_ACEOF
7861 # This file is a shell script that caches the results of configure
7862 # tests run on this system so they can be shared between configure
7863 # scripts and configure runs, see configure's option --config-cache.
7864 # It is not useful on other systems. If it contains results you don't
7865 # want to keep, you may remove or edit it.
7867 # config.status only pays attention to the cache file if you give it
7868 # the --recheck option to rerun configure.
7870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7876 # The following way of writing the cache mishandles newlines in values,
7877 # but we know of no workaround that is simple, portable, and efficient.
7878 # So, we kill variables containing newlines.
7879 # Ultrix sh set writes to stderr and can't be redirected directly,
7880 # and sets the high bit in the cache file unless we assign to the vars.
7882 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7883 eval ac_val
=\$
$ac_var
7887 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7888 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7891 _ | IFS | as_nl
) ;; #(
7892 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7893 *) { eval $ac_var=; unset $ac_var;} ;;
7899 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7900 *${as_nl}ac_space
=\
*)
7901 # `set' does not quote correctly, so add quotes: double-quote
7902 # substitution turns \\\\ into \\, and sed turns \\ into \.
7905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7908 # `set' quotes correctly as required by POSIX, so do not add quotes.
7909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7920 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7922 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7923 if test -w "$cache_file"; then
7924 test "x$cache_file" != "x/dev/null" &&
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7926 $as_echo "$as_me: updating cache $cache_file" >&6;}
7927 cat confcache
>$cache_file
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7930 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7935 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7936 # Let make expand exec_prefix.
7937 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7939 DEFS
=-DHAVE_CONFIG_H
7943 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7944 # 1. Remove the extension, and $U if already installed.
7945 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7946 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7947 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7948 # will be set to the directory where LIBOBJS objects are built.
7949 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7950 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7954 LTLIBOBJS
=$ac_ltlibobjs
7959 : ${CONFIG_STATUS=./config.status}
7961 ac_clean_files_save
=$ac_clean_files
7962 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7964 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7966 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7968 # Generated by $as_me.
7969 # Run this file to recreate the current configuration.
7970 # Compiler output produced by configure, useful for debugging
7971 # configure, is in config.log if it exists.
7977 SHELL=\${CONFIG_SHELL-$SHELL}
7980 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7981 ## -------------------- ##
7982 ## M4sh Initialization. ##
7983 ## -------------------- ##
7985 # Be more Bourne compatible
7986 DUALCASE
=1; export DUALCASE
# for MKS sh
7987 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7990 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7991 # is contrary to our usage. Disable this feature.
7992 alias -g '${1+"$@"}'='"$@"'
7993 setopt NO_GLOB_SUBST
7995 case `(set -o) 2>/dev/null` in #(
8007 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8008 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8010 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8011 # Prefer a ksh shell builtin over an external printf program on Solaris,
8012 # but without wasting forks for bash or zsh.
8013 if test -z "$BASH_VERSION$ZSH_VERSION" \
8014 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8015 as_echo='print
-r --'
8016 as_echo_n='print
-rn --'
8017 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8018 as_echo='printf %s
\n'
8019 as_echo_n='printf %s
'
8021 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8022 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8023 as_echo_n='/usr
/ucb
/echo -n'
8025 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8026 as_echo_n_body='eval
8030 expr "X$arg" : "X\\(.*\\)$as_nl";
8031 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8033 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8035 export as_echo_n_body
8036 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8039 as_echo='sh
-c $as_echo_body as_echo
'
8042 # The user is always right.
8043 if test "${PATH_SEPARATOR+set}" != set; then
8045 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8046 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8053 # We need space, tab and new line, in precisely that order. Quoting is
8054 # there to prevent editors from complaining about space-tab.
8055 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8056 # splitting by setting IFS to empty value.)
8059 # Find who we are. Look in the path if we contain no directory separator.
8061 *[\\/]* ) as_myself=$0 ;;
8062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 test -z "$as_dir" && as_dir=.
8067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8073 # We did not find ourselves, most probably we were run as `sh COMMAND'
8074 # in which case we are not to be found in the path.
8075 if test "x$as_myself" = x
; then
8078 if test ! -f "$as_myself"; then
8079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8083 # Unset variables that we do not need and which cause bugs (e.g. in
8084 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8085 # suppresses any "Segmentation fault" message there. '((' could
8086 # trigger a bug in pdksh 5.2.14.
8087 for as_var
in BASH_ENV ENV MAIL MAILPATH
8088 do eval test x\
${$as_var+set} = xset \
8089 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8102 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8105 # as_fn_error ERROR [LINENO LOG_FD]
8106 # ---------------------------------
8107 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8108 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8109 # script with status $?, using 1 if that was 0.
8112 as_status
=$?
; test $as_status -eq 0 && as_status
=1
8114 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8115 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8117 $as_echo "$as_me: error: $1" >&2
8118 as_fn_exit
$as_status
8122 # as_fn_set_status STATUS
8123 # -----------------------
8124 # Set $? to STATUS, without forking.
8128 } # as_fn_set_status
8132 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8142 # Portably unset VAR.
8145 { eval $1=; unset $1;}
8147 as_unset
=as_fn_unset
8148 # as_fn_append VAR VALUE
8149 # ----------------------
8150 # Append the text in VALUE to the end of the definition contained in VAR. Take
8151 # advantage of any shell optimizations that allow amortized linear growth over
8152 # repeated appends, instead of the typical quadratic growth present in naive
8154 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8155 eval 'as_fn_append ()
8166 # as_fn_arith ARG...
8167 # ------------------
8168 # Perform arithmetic evaluation on the ARGs, and store the result in the
8169 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8170 # must be portable across $(()) and expr.
8171 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8172 eval 'as_fn_arith ()
8179 as_val
=`expr "$@" || test $? -eq 1`
8184 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8185 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8191 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8192 as_basename
=basename
8197 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8203 as_me
=`$as_basename -- "$0" ||
8204 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8205 X"$0" : 'X\(//\)$' \| \
8206 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8208 sed '/^.*\/\([^/][^/]*\)\/*$/{
8222 # Avoid depending upon Character Ranges.
8223 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8224 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8225 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8226 as_cr_digits
='0123456789'
8227 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8229 ECHO_C
= ECHO_N
= ECHO_T
=
8230 case `echo -n x` in #(((((
8232 case `echo 'xy\c'` in
8233 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8235 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8242 rm -f conf$$ conf$$.exe conf$$.
file
8243 if test -d conf$$.dir
; then
8244 rm -f conf$$.dir
/conf$$.
file
8247 mkdir conf$$.dir
2>/dev
/null
8249 if (echo >conf$$.
file) 2>/dev
/null
; then
8250 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8252 # ... but there are two gotchas:
8253 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8254 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8255 # In both cases, we have to default to `cp -p'.
8256 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8258 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8266 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8267 rmdir conf$$.dir
2>/dev
/null
8272 # Create "$as_dir" as a directory, including parents if necessary.
8277 -*) as_dir
=.
/$as_dir;;
8279 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8283 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8284 *) as_qdir
=$as_dir;;
8286 as_dirs
="'$as_qdir' $as_dirs"
8287 as_dir
=`$as_dirname -- "$as_dir" ||
8288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8289 X"$as_dir" : 'X\(//\)[^/]' \| \
8290 X"$as_dir" : 'X\(//\)$' \| \
8291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8292 $as_echo X"$as_dir" |
8293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8310 test -d "$as_dir" && break
8312 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8313 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8317 if mkdir
-p .
2>/dev
/null
; then
8318 as_mkdir_p
='mkdir -p "$as_dir"'
8320 test -d .
/-p && rmdir .
/-p
8324 if test -x / >/dev
/null
2>&1; then
8327 if ls -dL / >/dev
/null
2>&1; then
8334 if test -d "$1"; then
8340 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8341 ???[sx]*):;;*)false;;esac;fi
8345 as_executable_p
=$as_test_x
8347 # Sed expression to map a string onto a valid CPP name.
8348 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8350 # Sed expression to map a string onto a valid variable name.
8351 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8355 ## ----------------------------------- ##
8356 ## Main body of $CONFIG_STATUS script. ##
8357 ## ----------------------------------- ##
8359 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8362 # Save the log message, to keep $0 and so on meaningful, and to
8363 # report actual input values of CONFIG_FILES etc. instead of their
8364 # values after options handling.
8366 This file was extended by $as_me, which was
8367 generated by GNU Autoconf 2.64. Invocation command line was
8369 CONFIG_FILES = $CONFIG_FILES
8370 CONFIG_HEADERS = $CONFIG_HEADERS
8371 CONFIG_LINKS = $CONFIG_LINKS
8372 CONFIG_COMMANDS = $CONFIG_COMMANDS
8375 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8380 case $ac_config_files in *"
8381 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8384 case $ac_config_headers in *"
8385 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8390 # Files that config.status was made for.
8391 config_files="$ac_config_files"
8392 config_headers="$ac_config_headers"
8393 config_commands="$ac_config_commands"
8397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8399 \`$as_me' instantiates files and other configuration actions
8400 from templates according to the current configuration. Unless the files
8401 and actions are specified as TAGs, all are instantiated by default.
8403 Usage: $0 [OPTION]... [TAG]...
8405 -h, --help print this help, then exit
8406 -V, --version print version number and configuration settings, then exit
8407 -q, --quiet, --silent
8408 do not print progress messages
8409 -d, --debug don't remove temporary files
8410 --recheck update $as_me by reconfiguring in the same conditions
8411 --file=FILE[:TEMPLATE]
8412 instantiate the configuration file FILE
8413 --header=FILE[:TEMPLATE]
8414 instantiate the configuration header FILE
8416 Configuration files:
8419 Configuration headers:
8422 Configuration commands:
8425 Report bugs to the package provider."
8428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8431 configured by $0, generated by GNU Autoconf 2.64,
8432 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8434 Copyright (C) 2009 Free Software Foundation, Inc.
8435 This config.status script is free software; the Free Software Foundation
8436 gives unlimited permission to copy, distribute and modify it."
8441 test -n "\$AWK" || AWK=awk
8444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8445 # The default lists apply if the user does not specify any file.
8451 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8452 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8463 # Handling of the options.
8464 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8466 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8467 $as_echo "$ac_cs_version"; exit ;;
8468 --debug |
--debu |
--deb |
--de |
--d |
-d )
8470 --file |
--fil |
--fi |
--f )
8473 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8475 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8476 ac_need_defaults
=false
;;
8477 --header |
--heade |
--head |
--hea )
8480 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8482 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8483 ac_need_defaults
=false
;;
8485 # Conflict between --help and --header
8486 as_fn_error
"ambiguous option: \`$1'
8487 Try \`$0 --help' for more information.";;
8488 --help |
--hel |
-h )
8489 $as_echo "$ac_cs_usage"; exit ;;
8490 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8491 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8495 -*) as_fn_error
"unrecognized option: \`$1'
8496 Try \`$0 --help' for more information." ;;
8498 *) as_fn_append ac_config_targets
" $1"
8499 ac_need_defaults
=false
;;
8505 ac_configure_extra_args
=
8507 if $ac_cs_silent; then
8509 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8514 if \$ac_cs_recheck; then
8515 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8517 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8518 CONFIG_SHELL='$SHELL'
8524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8529 ## Running $as_me. ##
8535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8540 # Handling of arguments.
8541 for ac_config_target
in $ac_config_targets
8543 case $ac_config_target in
8544 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8545 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
8546 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8547 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8549 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8554 # If the user did not use the arguments to specify the items to instantiate,
8555 # then the envvar interface is used. Set only those that are not.
8556 # We use the long form for the default assignment because of an extremely
8557 # bizarre bug on SunOS 4.1.3.
8558 if $ac_need_defaults; then
8559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8560 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8564 # Have a temporary directory for convenience. Make it in the build tree
8565 # simply because there is no reason against having it here, and in addition,
8566 # creating and moving files from /tmp can sometimes cause problems.
8567 # Hook for its removal unless debugging.
8568 # Note that there is a small window in which the directory will not be cleaned:
8569 # after its creation but before its name has been assigned to `$tmp'.
8573 trap 'exit_status=$?
8574 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8576 trap 'as_fn_exit 1' 1 2 13 15
8578 # Create a (secure) tmp directory for tmp files.
8581 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8582 test -n "$tmp" && test -d "$tmp"
8585 tmp
=.
/conf$$
-$RANDOM
8586 (umask 077 && mkdir
"$tmp")
8587 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8589 # Set up the scripts for CONFIG_FILES section.
8590 # No need to generate them if there are no CONFIG_FILES.
8591 # This happens for instance with `./config.status config.h'.
8592 if test -n "$CONFIG_FILES"; then
8595 ac_cr
=`echo X | tr X '\015'`
8596 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8597 # But we know of no other shell where ac_cr would be empty at this
8598 # point, so we can use a bashism as a fallback.
8599 if test "x$ac_cr" = x
; then
8600 eval ac_cr
=\$
\'\\r
\'
8602 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8603 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8609 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8614 echo "cat >conf$$subs.awk <<_ACEOF" &&
8615 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8618 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8619 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8621 for ac_last_try in false false false false false :; do
8622 . ./conf$$subs.sh ||
8623 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8625 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8626 if test $ac_delim_n = $ac_delim_num; then
8628 elif $ac_last_try; then
8629 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8631 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8637 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8641 s/^/S["/; s
/!.
*/"]=/
8651 s/\(.\{148\}\).*/\1/
8653 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8658 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8665 s/\(.\{148\}\).*/\1/
8667 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8671 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8676 ' <conf$$subs.awk | sed '
8681 ' >>$CONFIG_STATUS || ac_write_fail=1
8682 rm -f conf$$subs.awk
8683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8685 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8686 for (key in S) S_is_set[key] = 1
8692 nfields = split(line, field, "@
")
8694 len = length(field[1])
8695 for (i = 2; i < nfields; i++) {
8697 keylen = length(key)
8698 if (S_is_set[key]) {
8700 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8701 len += length(value) + length(field[++i])
8712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8713 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8714 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8717 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8718 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8721 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8722 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8723 # trailing colons and then remove the whole line if VPATH becomes empty
8724 # (actually we leave an empty line to preserve line numbers).
8725 if test "x
$srcdir" = x.; then
8726 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8730 s/^\([^=]*=[ ]*\):*/\1/
8736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8737 fi # test -n "$CONFIG_FILES"
8739 # Set up the scripts for CONFIG_HEADERS section.
8740 # No need to generate them if there are no CONFIG_HEADERS.
8741 # This happens for instance with `./config.status Makefile'.
8742 if test -n "$CONFIG_HEADERS"; then
8743 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8747 # Transform confdefs.h into an awk script `defines.awk', embedded as
8748 # here-document in config.status, that substitutes the proper values into
8749 # config.h.in to produce config.h.
8751 # Create a delimiter string that does not exist in confdefs.h, to ease
8752 # handling of long lines.
8754 for ac_last_try in false false :; do
8755 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8756 if test -z "$ac_t"; then
8758 elif $ac_last_try; then
8759 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8761 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8765 # For the awk script, D is an array of macro values keyed by name,
8766 # likewise P contains macro parameters if any. Preserve backslash
8767 # newline sequences.
8769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8771 s/.\{148\}/&'"$ac_delim"'/g
8774 s/^[ ]*#[ ]*define[ ][ ]*/ /
8781 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8783 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8787 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8788 D["\
1"]=" \
3\\\\\\n
"\\/p
8790 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8795 s/.\{148\}/&'"$ac_delim"'/g
8800 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8803 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8805 ' <confdefs.h | sed '
8806 s/'"$ac_delim"'/"\\\
8807 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8810 for (key in D) D_is_set[key] = 1
8813 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8815 split(line, arg, " ")
8816 if (arg[1] == "#") {
8820 defundef
= substr
(arg
[1], 2)
8823 split(mac1
, mac2
, "(") #)
8825 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8826 if (D_is_set
[macro
]) {
8827 # Preserve the white space surrounding the "#".
8828 print prefix
"define", macro P
[macro
] D
[macro
]
8831 # Replace #undef with comments. This is necessary, for example,
8832 # in the case of _POSIX_SOURCE, which is predefined and required
8833 # on some systems where configure will not decide to define it.
8834 if (defundef
== "undef") {
8835 print
"/*", prefix defundef
, macro
, "*/"
8843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8844 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8845 fi # test -n "$CONFIG_HEADERS"
8848 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8853 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8855 case $ac_mode$ac_tag in
8857 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8858 :[FH
]-) ac_tag
=-:-;;
8859 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8876 -) ac_f
="$tmp/stdin";;
8877 *) # Look for the file first in the build tree, then in the source tree
8878 # (if the path is not absolute). The absolute path cannot be DOS-style,
8879 # because $ac_f cannot contain `:'.
8883 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8885 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8887 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8888 as_fn_append ac_file_inputs
" '$ac_f'"
8891 # Let's still pretend it is `configure' which instantiates (i.e., don't
8892 # use $as_me), people would be surprised to read:
8893 # /* config.h. Generated by config.status. */
8894 configure_input
='Generated from '`
8895 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8897 if test x
"$ac_file" != x-
; then
8898 configure_input
="$ac_file. $configure_input"
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8900 $as_echo "$as_me: creating $ac_file" >&6;}
8902 # Neutralize special characters interpreted by sed in replacement strings.
8903 case $configure_input in #(
8904 *\
&* |
*\|
* |
*\\* )
8905 ac_sed_conf_input
=`$as_echo "$configure_input" |
8906 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8907 *) ac_sed_conf_input
=$configure_input;;
8911 *:-:* |
*:-) cat >"$tmp/stdin" \
8912 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8917 ac_dir
=`$as_dirname -- "$ac_file" ||
8918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8919 X"$ac_file" : 'X\(//\)[^/]' \| \
8920 X"$ac_file" : 'X\(//\)$' \| \
8921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8922 $as_echo X"$ac_file" |
8923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8940 as_dir
="$ac_dir"; as_fn_mkdir_p
8944 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8946 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8947 # A ".." for each directory in $ac_dir_suffix.
8948 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8949 case $ac_top_builddir_sub in
8950 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8951 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8954 ac_abs_top_builddir
=$ac_pwd
8955 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8956 # for backward compatibility:
8957 ac_top_builddir
=$ac_top_build_prefix
8960 .
) # We are building in place.
8962 ac_top_srcdir
=$ac_top_builddir_sub
8963 ac_abs_top_srcdir
=$ac_pwd ;;
8964 [\\/]* | ?
:[\\/]* ) # Absolute name.
8965 ac_srcdir
=$srcdir$ac_dir_suffix;
8966 ac_top_srcdir
=$srcdir
8967 ac_abs_top_srcdir
=$srcdir ;;
8969 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8970 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8971 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8973 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8983 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8984 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8989 # If the template does not know about datarootdir, expand it.
8990 # FIXME: This hack should be removed a few years after 2.60.
8991 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9002 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9003 *datarootdir
*) ac_datarootdir_seen
=yes;;
9004 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9006 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9009 ac_datarootdir_hack='
9010 s&@datadir@&$datadir&g
9011 s&@docdir@&$docdir&g
9012 s&@infodir@&$infodir&g
9013 s&@localedir@&$localedir&g
9014 s&@mandir@&$mandir&g
9015 s&\\\${datarootdir}&$datarootdir&g' ;;
9019 # Neutralize VPATH when `$srcdir' = `.'.
9020 # Shell code in configure.ac might set extrasub.
9021 # FIXME: do we really want to maintain this feature?
9022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9023 ac_sed_extra="$ac_vpsub
9026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9028 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9029 s|@configure_input@|
$ac_sed_conf_input|
;t t
9030 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9031 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9032 s
&@srcdir@
&$ac_srcdir&;t t
9033 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9034 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9035 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9036 s
&@builddir@
&$ac_builddir&;t t
9037 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9038 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9039 s
&@INSTALL@
&$ac_INSTALL&;t t
9040 $ac_datarootdir_hack
9042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
9043 || as_fn_error "could not create
$ac_file" "$LINENO" 5
9045 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9046 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9047 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9049 which seems to be undefined. Please make sure it is defined." >&5
9050 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9051 which seems to be undefined. Please make sure it is defined." >&2;}
9055 -) cat "$tmp/out" && rm -f "$tmp/out";;
9056 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9058 || as_fn_error "could not create $ac_file" "$LINENO" 5
9064 if test x"$ac_file" != x-; then
9066 $as_echo "/* $configure_input */" \
9067 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9068 } >"$tmp/config.h" \
9069 || as_fn_error "could not create $ac_file" "$LINENO" 5
9070 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9072 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9075 mv "$tmp/config.h" "$ac_file" \
9076 || as_fn_error "could not create $ac_file" "$LINENO" 5
9079 $as_echo "/* $configure_input */" \
9080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9081 || as_fn_error "could not create -" "$LINENO" 5
9085 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9086 $as_echo "$as_me: executing $ac_file commands" >&6;}
9091 case $ac_file$ac_mode in
9092 "build-config.h":C) cp config.h build-config.h ;;
9093 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
9101 ac_clean_files=$ac_clean_files_save
9103 test $ac_write_fail = 0 ||
9104 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9107 # configure is writing to config.log, and then calls config.status.
9108 # config.status does its own redirection, appending to config.log.
9109 # Unfortunately, on DOS this fails, as config.log is still kept open
9110 # by configure, so config.status won't be able to
write to it
; its
9111 # output is simply discarded. So we exec the FD to /dev/null,
9112 # effectively closing config.log, so it can be properly (re)opened and
9113 # appended to by config.status. When coming back to configure, we
9114 # need to make the FD available again.
9115 if test "$no_create" != yes; then
9117 ac_config_status_args
=
9118 test "$silent" = yes &&
9119 ac_config_status_args
="$ac_config_status_args --quiet"
9121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9124 # would make configure fail if this is the last instruction.
9125 $ac_cs_success || as_fn_exit $?
9127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}