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
720 program_transform_name
733 enable_option_checking
740 enable_sim_decode_mechanism
741 enable_sim_default_model
748 enable_sim_hostbitsize
749 enable_sim_hostendian
755 enable_sim_model_issue
760 enable_sim_reserved_bits
768 enable_sim_xor_endian
774 ac_precious_vars
='build_alias
785 # Initialize some variables set by options.
787 ac_init_version
=false
788 ac_unrecognized_opts
=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name
=s
,x
,x
,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir
='${exec_prefix}/bin'
814 sbindir
='${exec_prefix}/sbin'
815 libexecdir
='${exec_prefix}/libexec'
816 datarootdir
='${prefix}/share'
817 datadir
='${datarootdir}'
818 sysconfdir
='${prefix}/etc'
819 sharedstatedir
='${prefix}/com'
820 localstatedir
='${prefix}/var'
821 includedir
='${prefix}/include'
822 oldincludedir
='/usr/include'
823 docdir
='${datarootdir}/doc/${PACKAGE}'
824 infodir
='${datarootdir}/info'
829 libdir
='${exec_prefix}/lib'
830 localedir
='${datarootdir}/locale'
831 mandir
='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\
$ac_option
845 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 # Accept the important Cygnus configure options, so we can diagnose typos.
851 case $ac_dashdash$ac_option in
855 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
857 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
860 -build |
--build |
--buil |
--bui |
--bu)
861 ac_prev
=build_alias
;;
862 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
863 build_alias
=$ac_optarg ;;
865 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
866 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
867 ac_prev
=cache_file
;;
868 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
869 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
870 cache_file
=$ac_optarg ;;
873 cache_file
=config.cache
;;
875 -datadir |
--datadir |
--datadi |
--datad)
877 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
878 datadir
=$ac_optarg ;;
880 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
881 |
--dataroo |
--dataro |
--datar)
882 ac_prev
=datarootdir
;;
883 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
884 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
885 datarootdir
=$ac_optarg ;;
887 -disable-* |
--disable-*)
888 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
891 as_fn_error
"invalid feature name: $ac_useropt"
892 ac_useropt_orig
=$ac_useropt
893 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
898 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep
=', ';;
901 eval enable_
$ac_useropt=no
;;
903 -docdir |
--docdir |
--docdi |
--doc |
--do)
905 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
908 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
910 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
913 -enable-* |
--enable-*)
914 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
917 as_fn_error
"invalid feature name: $ac_useropt"
918 ac_useropt_orig
=$ac_useropt
919 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
924 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep
=', ';;
927 eval enable_
$ac_useropt=\
$ac_optarg ;;
929 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
930 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
931 |
--exec |
--exe |
--ex)
932 ac_prev
=exec_prefix
;;
933 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
934 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
935 |
--exec=* |
--exe=* |
--ex=*)
936 exec_prefix
=$ac_optarg ;;
938 -gas |
--gas |
--ga |
--g)
939 # Obsolete; use --with-gas.
942 -help |
--help |
--hel |
--he |
-h)
944 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
945 ac_init_help
=recursive
;;
946 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
947 ac_init_help
=short
;;
949 -host |
--host |
--hos |
--ho)
950 ac_prev
=host_alias
;;
951 -host=* |
--host=* |
--hos=* |
--ho=*)
952 host_alias
=$ac_optarg ;;
954 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
956 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
958 htmldir
=$ac_optarg ;;
960 -includedir |
--includedir |
--includedi |
--included |
--include \
961 |
--includ |
--inclu |
--incl |
--inc)
962 ac_prev
=includedir
;;
963 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
964 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
965 includedir
=$ac_optarg ;;
967 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
969 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
970 infodir
=$ac_optarg ;;
972 -libdir |
--libdir |
--libdi |
--libd)
974 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
977 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
978 |
--libexe |
--libex |
--libe)
979 ac_prev
=libexecdir
;;
980 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
981 |
--libexe=* |
--libex=* |
--libe=*)
982 libexecdir
=$ac_optarg ;;
984 -localedir |
--localedir |
--localedi |
--localed |
--locale)
986 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
987 localedir
=$ac_optarg ;;
989 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
990 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
991 ac_prev
=localstatedir
;;
992 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
993 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
994 localstatedir
=$ac_optarg ;;
996 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
998 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1001 -nfp |
--nfp |
--nf)
1002 # Obsolete; use --without-fp.
1005 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1006 |
--no-cr |
--no-c |
-n)
1009 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1010 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1013 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1014 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1015 |
--oldin |
--oldi |
--old |
--ol |
--o)
1016 ac_prev
=oldincludedir
;;
1017 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1018 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1019 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1020 oldincludedir
=$ac_optarg ;;
1022 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1024 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1025 prefix
=$ac_optarg ;;
1027 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1028 |
--program-pre |
--program-pr |
--program-p)
1029 ac_prev
=program_prefix
;;
1030 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1031 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1032 program_prefix
=$ac_optarg ;;
1034 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1035 |
--program-suf |
--program-su |
--program-s)
1036 ac_prev
=program_suffix
;;
1037 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1038 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1039 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
1049 -program-transform-name=* |
--program-transform-name=* \
1050 |
--program-transform-nam=* |
--program-transform-na=* \
1051 |
--program-transform-n=* |
--program-transform-=* \
1052 |
--program-transform=* |
--program-transfor=* \
1053 |
--program-transfo=* |
--program-transf=* \
1054 |
--program-trans=* |
--program-tran=* \
1055 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1056 program_transform_name
=$ac_optarg ;;
1058 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1060 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1061 pdfdir
=$ac_optarg ;;
1063 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1065 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1068 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1069 |
-silent |
--silent |
--silen |
--sile |
--sil)
1072 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1074 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1076 sbindir
=$ac_optarg ;;
1078 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1079 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1080 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1082 ac_prev
=sharedstatedir
;;
1083 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1084 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1085 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1087 sharedstatedir
=$ac_optarg ;;
1089 -site |
--site |
--sit)
1091 -site=* |
--site=* |
--sit=*)
1094 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1096 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1097 srcdir
=$ac_optarg ;;
1099 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1100 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1101 ac_prev
=sysconfdir
;;
1102 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1103 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1104 sysconfdir
=$ac_optarg ;;
1106 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1107 ac_prev
=target_alias
;;
1108 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1109 target_alias
=$ac_optarg ;;
1111 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1114 -version |
--version |
--versio |
--versi |
--vers |
-V)
1115 ac_init_version
=: ;;
1118 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1121 as_fn_error
"invalid package name: $ac_useropt"
1122 ac_useropt_orig
=$ac_useropt
1123 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1128 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep
=', ';;
1131 eval with_
$ac_useropt=\
$ac_optarg ;;
1133 -without-* |
--without-*)
1134 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1137 as_fn_error
"invalid package name: $ac_useropt"
1138 ac_useropt_orig
=$ac_useropt
1139 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1144 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep
=', ';;
1147 eval with_
$ac_useropt=no
;;
1150 # Obsolete; use --with-x.
1153 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1154 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1155 ac_prev
=x_includes
;;
1156 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1157 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1158 x_includes
=$ac_optarg ;;
1160 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1161 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1162 ac_prev
=x_libraries
;;
1163 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1164 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1165 x_libraries
=$ac_optarg ;;
1167 -*) as_fn_error
"unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information."
1172 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1176 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1178 eval $ac_envvar=\
$ac_optarg
1179 export $ac_envvar ;;
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 if test -n "$ac_prev"; then
1193 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error
"missing argument to $ac_option"
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1200 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 # Check all directory arguments for consistency.
1206 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val
=\$
$ac_var
1212 # Remove trailing slashes.
1215 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\
$ac_val;;
1218 # Be sure to have absolute directory names.
1220 [\\/$
]* | ?
:[\\/]* ) continue;;
1221 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1223 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1231 target
=$target_alias
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x
; then
1235 if test "x$build_alias" = x
; then
1236 cross_compiling
=maybe
1237 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238 If a cross compiler is detected then cross compile mode will be used." >&2
1239 elif test "x$build_alias" != "x$host_alias"; then
1245 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1247 test "$silent" = yes && exec 6>/dev
/null
1250 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di
=`ls -di .` &&
1252 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error
"working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error
"pwd does not report name of working directory"
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted
=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir
=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1290 ac_srcdir_defaulted
=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1294 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1296 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1308 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 for ac_var
in $ac_precious_vars; do
1311 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1313 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1324 \`configure' configures this package to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1387 --build=BUILD configure
for building on BUILD
[guessed
]
1388 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1389 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1393 if test -n "$ac_init_help"; then
1398 --disable-option-checking ignore unrecognized
--enable/--with options
1399 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1400 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1401 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1402 --enable-sim-assert Specify whether to perform random assertions.
1403 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1404 --enable-sim-bswap Use the BSWAP instruction on Intel
486s and Pentiums.
1405 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1406 --enable-sim-config=file Override default config
file
1407 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1408 --enable-sim-default-model=which Specify default PowerPC to model.
1409 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1410 --enable-sim-endian=endian Specify target byte endian orientation.
1411 --enable-sim-env=env Specify target environment
(operating
, virtual
, user
).
1412 --enable-sim-filter=rule Specify filter rules.
1413 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1414 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1415 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1416 --enable-sim-hostendian=end Specify
host byte endian orientation.
1417 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1418 --enable-sim-inline=inlines Specify
which functions should be inlined.
1419 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1420 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1421 --enable-sim-model=which Specify PowerPC to model.
1422 --enable-sim-model-issue Specify whether to simulate model specific actions
1423 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1424 --enable-sim-opcode=which Override default opcode lookup.
1425 --enable-sim-packages=list Specify the packages to be included
in the build.
1426 --enable-sim-regparm=nr-parm Pass parameters
in registers instead of on the stack
- x86
/GCC specific.
1427 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1428 --enable-sim-smp=n Specify number of processors to configure
for.
1429 --enable-sim-stdcall=type Use an alternative
function call
/return mechanism
- x86
/GCC specific.
1430 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1431 --enable-sim-switch Use a switch instead of a table
for instruction call.
1432 --enable-sim-timebase Specify whether the PPC timebase is supported.
1433 --enable-sim-trace Specify whether tracing is supported.
1434 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
1435 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1436 --enable-plugins Enable support
for plugins
1439 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1440 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1441 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1442 --with-bugurl=URL Direct users to URL to report a bug
1443 --with-system-zlib use installed libz
1445 Some influential environment variables
:
1446 CC C compiler
command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1449 nonstandard directory
<lib dir
>
1450 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1451 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1452 you have headers
in a nonstandard directory
<include dir
>
1455 Use these variables to override the choices made by
`configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1458 Report bugs to the package provider.
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1488 .) # We are building in place.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1522 generated by GNU Autoconf 2.64
1524 Copyright (C) 2009 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1545 *) ac_try_echo
=$ac_try;;
1547 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1551 if test -s conftest.err
; then
1552 grep -v '^ *+' conftest.err
>conftest.er1
1553 cat conftest.er1
>&5
1554 mv -f conftest.er1 conftest.err
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.
$ac_objext; then :
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.
$ac_ext >&5
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1571 } # ac_fn_c_try_compile
1573 # ac_fn_c_try_run LINENO
1574 # ----------------------
1575 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1576 # that executables *can* be run.
1579 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1580 if { { ac_try
="$ac_link"
1582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_link") 2>&5
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1591 { { case "(($ac_try" in
1592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1593 *) ac_try_echo
=$ac_try;;
1595 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_try") 2>&5
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; }; }; then :
1603 $as_echo "$as_me: program exited with status $ac_status" >&5
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.
$ac_ext >&5
1607 ac_retval
=$ac_status
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1621 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } >/dev/null && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1669 if ac_fn_c_try_compile "$LINENO"; then :
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1693 *) ac_try_echo
=$ac_try;;
1695 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1699 if test -s conftest.err
; then
1700 grep -v '^ *+' conftest.err
>conftest.er1
1701 cat conftest.er1
>&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest
$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 $as_test_x conftest
$ac_exeext
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.
$ac_ext >&5
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1727 } # ac_fn_c_try_link
1729 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1730 # ----------------------------------------------------
1731 # Tries to find if the field MEMBER exists in type AGGR, after including
1732 # INCLUDES, setting cache variable VAR accordingly.
1733 ac_fn_c_check_member
()
1735 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1737 $as_echo_n "checking for $2.$3... " >&6; }
1738 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1754 if ac_fn_c_try_compile
"$LINENO"; then :
1757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1764 if (sizeof ac_aggr.$3)
1770 if ac_fn_c_try_compile
"$LINENO"; then :
1775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1784 } # ac_fn_c_check_member
1786 # ac_fn_c_check_decl LINENO SYMBOL VAR
1787 # ------------------------------------
1788 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1789 ac_fn_c_check_decl
()
1791 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1792 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1793 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1795 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1796 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1805 #ifndef $as_decl_name
1807 (void) $as_decl_use;
1809 (void) $as_decl_name;
1817 if ac_fn_c_try_compile
"$LINENO"; then :
1822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1829 } # ac_fn_c_check_decl
1831 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1832 # -------------------------------------------
1833 # Tests whether TYPE exists after having included INCLUDES, setting cache
1834 # variable VAR accordingly.
1835 ac_fn_c_check_type
()
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1856 if ac_fn_c_try_compile
"$LINENO"; then :
1857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1869 if ac_fn_c_try_compile
"$LINENO"; then :
1874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1883 } # ac_fn_c_check_type
1885 # ac_fn_c_check_func LINENO FUNC VAR
1886 # ----------------------------------
1887 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1888 ac_fn_c_check_func
()
1890 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900 #define $2 innocuous_$2
1902 /* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1908 # include <limits.h>
1910 # include <assert.h>
1915 /* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1922 /* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925 #if defined __stub_$2 || defined __stub___$2
1937 if ac_fn_c_try_link
"$LINENO"; then :
1942 rm -f core conftest.err conftest.
$ac_objext \
1943 conftest
$ac_exeext conftest.
$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1950 } # ac_fn_c_check_func
1952 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1953 # -------------------------------------------------------
1954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1955 # the include files in INCLUDES and setting the cache variable VAR
1957 ac_fn_c_check_header_mongrel
()
1959 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1960 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 # Is the header compilable?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1972 $as_echo_n "checking $2 usability... " >&6; }
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1978 if ac_fn_c_try_compile
"$LINENO"; then :
1979 ac_header_compiler
=yes
1981 ac_header_compiler
=no
1983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1985 $as_echo "$ac_header_compiler" >&6; }
1987 # Is the header present?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1989 $as_echo_n "checking $2 presence... " >&6; }
1990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 if ac_fn_c_try_cpp
"$LINENO"; then :
1995 ac_header_preproc
=yes
1997 ac_header_preproc
=no
1999 rm -f conftest.err conftest.
$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001 $as_echo "$ac_header_preproc" >&6; }
2003 # So? What about this header?
2004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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}: WARNING: $2: present but cannot be compiled" >&5
2013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2029 eval "$3=\$ac_header_compiler"
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2037 } # ac_fn_c_check_header_mongrel
2038 cat >config.log
<<_ACEOF
2039 This file contains any messages produced by compilers while
2040 running configure, to aid debugging if configure makes a mistake.
2042 It was created by $as_me, which was
2043 generated by GNU Autoconf 2.64. Invocation command line was
2055 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2056 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2057 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2058 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2059 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2061 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2062 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2064 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2065 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2066 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2067 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2068 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2069 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2070 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2078 test -z "$as_dir" && as_dir
=.
2079 $as_echo "PATH: $as_dir"
2095 # Keep a trace of the command line.
2096 # Strip out --no-create and --no-recursion so they do not pile up.
2097 # Strip out --silent because we don't want to record it for future runs.
2098 # Also quote any args containing shell meta-characters.
2099 # Make two passes to allow for proper duplicate-argument suppression.
2103 ac_must_keep_next
=false
2109 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2110 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2111 |
-silent |
--silent |
--silen |
--sile |
--sil)
2114 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2117 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2119 as_fn_append ac_configure_args1
" '$ac_arg'"
2120 if test $ac_must_keep_next = true
; then
2121 ac_must_keep_next
=false
# Got value, back to normal.
2124 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2125 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2126 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2127 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2128 case "$ac_configure_args0 " in
2129 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2132 -* ) ac_must_keep_next
=true
;;
2135 as_fn_append ac_configure_args
" '$ac_arg'"
2140 { ac_configure_args0
=; unset ac_configure_args0
;}
2141 { ac_configure_args1
=; unset ac_configure_args1
;}
2143 # When interrupted or exit'd, cleanup temporary files, and complete
2144 # config.log. We remove comments because anyway the quotes in there
2145 # would cause problems or look ugly.
2146 # WARNING: Use '\'' to represent an apostrophe within the trap.
2147 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2148 trap 'exit_status=$?
2149 # Save into config.log some information that might help in debugging.
2154 ## ---------------- ##
2155 ## Cache variables. ##
2156 ## ---------------- ##
2159 # The following way of writing the cache mishandles newlines in values,
2161 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2162 eval ac_val=\$$ac_var
2166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2170 _ | IFS | as_nl) ;; #(
2171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2172 *) { eval $ac_var=; unset $ac_var;} ;;
2177 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2178 *${as_nl}ac_space=\ *)
2180 "s/'\''/'\''\\\\'\'''\''/g;
2181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2192 ## ----------------- ##
2193 ## Output variables. ##
2194 ## ----------------- ##
2197 for ac_var in $ac_subst_vars
2199 eval ac_val=\$$ac_var
2201 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203 $as_echo "$ac_var='\''$ac_val'\''"
2207 if test -n "$ac_subst_files"; then
2209 ## ------------------- ##
2210 ## File substitutions. ##
2211 ## ------------------- ##
2214 for ac_var
in $ac_subst_files
2216 eval ac_val
=\$
$ac_var
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 $as_echo "$ac_var='\''$ac_val'\''"
2225 if test -s confdefs.h; then
2235 test "$ac_signal" != 0 &&
2236 $as_echo "$as_me: caught signal $ac_signal"
2237 $as_echo "$as_me: exit $exit_status"
2239 rm -f core *.core core.conftest.* &&
2240 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2243 for ac_signal
in 1 2 13 15; do
2244 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2248 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2249 rm -f -r conftest
* confdefs.h
2251 $as_echo "/* confdefs.h */" > confdefs.h
2253 # Predefined preprocessor variables.
2255 cat >>confdefs.h
<<_ACEOF
2256 #define PACKAGE_NAME "$PACKAGE_NAME"
2259 cat >>confdefs.h
<<_ACEOF
2260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2263 cat >>confdefs.h
<<_ACEOF
2264 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2267 cat >>confdefs.h
<<_ACEOF
2268 #define PACKAGE_STRING "$PACKAGE_STRING"
2271 cat >>confdefs.h
<<_ACEOF
2272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2275 cat >>confdefs.h
<<_ACEOF
2276 #define PACKAGE_URL "$PACKAGE_URL"
2280 # Let the site file select an alternate cache file if it wants to.
2281 # Prefer an explicitly selected file to automatically selected ones.
2284 if test -n "$CONFIG_SITE"; then
2285 ac_site_file1
=$CONFIG_SITE
2286 elif test "x$prefix" != xNONE
; then
2287 ac_site_file1
=$prefix/share
/config.site
2288 ac_site_file2
=$prefix/etc
/config.site
2290 ac_site_file1
=$ac_default_prefix/share
/config.site
2291 ac_site_file2
=$ac_default_prefix/etc
/config.site
2293 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2295 test "x$ac_site_file" = xNONE
&& continue
2296 if test -r "$ac_site_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299 sed 's/^/| /' "$ac_site_file" >&5
2304 if test -r "$cache_file"; then
2305 # Some versions of bash will fail to source /dev/null (special
2306 # files actually), so we avoid doing that.
2307 if test -f "$cache_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309 $as_echo "$as_me: loading cache $cache_file" >&6;}
2311 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2312 *) .
"./$cache_file";;
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317 $as_echo "$as_me: creating cache $cache_file" >&6;}
2321 # Check that the precious variables saved in the cache have kept the same
2323 ac_cache_corrupted
=false
2324 for ac_var
in $ac_precious_vars; do
2325 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2326 eval ac_new_set
=\
$ac_env_${ac_var}_set
2327 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2328 eval ac_new_val
=\
$ac_env_${ac_var}_value
2329 case $ac_old_set,$ac_new_set in
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333 ac_cache_corrupted
=: ;;
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337 ac_cache_corrupted
=: ;;
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w
=`echo x $ac_old_val`
2343 ac_new_val_w
=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted
=:
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351 eval $ac_var=\
$ac_old_val
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2354 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2362 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 *) ac_arg
=$ac_var=$ac_new_val ;;
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2367 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2371 if $ac_cache_corrupted; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2383 ac_cpp
='$CPP $CPPFLAGS'
2384 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2389 # This file contains common code used by all simulators.
2391 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2392 # directory. It is intended to be invoked before any target specific stuff.
2393 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2394 # It is intended to be invoked last.
2396 # The simulator's configure.ac should look like:
2398 # dnl Process this file with autoconf to produce a configure script.
2399 # AC_PREREQ(2.64)dnl
2400 # AC_INIT(Makefile.in)
2401 # sinclude(../common/aclocal.m4)
2405 # ... target specific stuff ...
2409 # Include global overrides and fixes for Autoconf.
2436 # _AC_CHECK_DECL_BODY
2437 # -------------------
2438 # Shell function body for AC_CHECK_DECL.
2439 # _AC_CHECK_DECL_BODY
2441 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2443 # -------------------------------------------------------------
2444 # Helper to AC_CHECK_DECLS, which generates the check for a single
2445 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2446 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2458 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2460 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2461 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2462 # Written by Gordon Matzigkeit, 1996
2464 # This file is free software; the Free Software Foundation gives
2465 # unlimited permission to copy and/or distribute it, with or without
2466 # modifications, as long as this notice is preserved.
2473 # LT_PREREQ(VERSION)
2474 # ------------------
2475 # Complain and exit if this libtool version is less that VERSION.
2479 # _LT_CHECK_BUILDDIR
2480 # ------------------
2481 # Complain if the absolute build directory name contains unusual characters
2485 # LT_INIT([OPTIONS])
2486 # ------------------
2490 # This is what autoupdate's m4 run will expand. It fires
2491 # the warning (with _au_warn_XXX), outputs it into the
2492 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2493 # the replacement expansion.
2496 # This is an auxiliary macro that is also run when
2497 # autoupdate runs m4. It simply calls m4_warning, but
2498 # we need a wrapper so that each warning is emitted only
2499 # once. We break the quoting in m4_warning's argument in
2500 # order to expand this macro's arguments, not AU_DEFUN's.
2503 # Finally, this is the expansion that is picked up by
2504 # autoconf. It tells the user to run autoupdate, and
2505 # then outputs the replacement expansion. We do not care
2506 # about autoupdate's warning because that contains
2507 # information on what to do *after* running autoupdate.
2509 # This is what autoupdate's m4 run will expand. It fires
2510 # the warning (with _au_warn_XXX), outputs it into the
2511 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2512 # the replacement expansion.
2515 # This is an auxiliary macro that is also run when
2516 # autoupdate runs m4. It simply calls m4_warning, but
2517 # we need a wrapper so that each warning is emitted only
2518 # once. We break the quoting in m4_warning's argument in
2519 # order to expand this macro's arguments, not AU_DEFUN's.
2522 # Finally, this is the expansion that is picked up by
2523 # autoconf. It tells the user to run autoupdate, and
2524 # then outputs the replacement expansion. We do not care
2525 # about autoupdate's warning because that contains
2526 # information on what to do *after* running autoupdate.
2530 # _LT_CC_BASENAME(CC)
2531 # -------------------
2532 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2536 # _LT_FILEUTILS_DEFAULTS
2537 # ----------------------
2538 # It is okay to use these file commands and assume they have been set
2539 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2540 # _LT_FILEUTILS_DEFAULTS
2548 # _LT_PREPARE_SED_QUOTE_VARS
2549 # --------------------------
2550 # Define a few sed substitution that help us do robust quoting.
2555 # Note that this code is called both from `configure', and `config.status'
2556 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2557 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2558 # so we pass a copy along to make sure it has a sensible value anyway.
2562 ## ------------------------------------- ##
2563 ## Accumulate code for creating libtool. ##
2564 ## ------------------------------------- ##
2566 # So that we can recreate a full libtool script including additional
2567 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2568 # in macros and then make a single call at the end using the `libtool'
2572 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2573 # ----------------------------------------
2574 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2581 # _LT_CONFIG_LIBTOOL([COMMANDS])
2582 # ------------------------------
2583 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2590 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2591 # -----------------------------------------------------
2595 # _LT_FORMAT_COMMENT([COMMENT])
2596 # -----------------------------
2597 # Add leading comment marks to the start of each line, and a trailing
2598 # full-stop to the whole comment if one is not present already.
2603 ## ------------------------ ##
2604 ## FIXME: Eliminate VARNAME ##
2605 ## ------------------------ ##
2608 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2609 # -------------------------------------------------------------------
2610 # CONFIGNAME is the name given to the value in the libtool script.
2611 # VARNAME is the (base) name used in the configure script.
2612 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2613 # VARNAME. Any other value will be used directly.
2617 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2618 # --------------------------------------------------------
2622 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2623 # ------------------------------------------------
2627 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2628 # ---------------------------------------------------------
2632 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2633 # --------------------------------------------------
2637 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2638 # ---------------------------------------------------
2642 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2643 # ---------------------------------------------------
2648 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2649 # ------------------------------------------------
2654 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2655 # ------------------------------------
2656 # Quote a variable value, and forward it to `config.status' so that its
2657 # declaration there will have the same value as in `configure'. VARNAME
2658 # must have a single quote delimited value for this to work.
2662 # _LT_CONFIG_STATUS_DECLARATIONS
2663 # ------------------------------
2664 # We delimit libtool config variables with single quotes, so when
2665 # we write them to config.status, we have to be sure to quote all
2666 # embedded single quotes properly. In configure, this macro expands
2667 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2669 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2675 # Output comment and list of tags supported by the script
2679 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2680 # -----------------------------------
2681 # Extract the dictionary values for VARNAME (optionally with TAG) and
2682 # expand to a commented shell variable setting:
2684 # # Some comment about what VAR is for.
2685 # visible_name=$lt_internal_name
2689 # _LT_LIBTOOL_CONFIG_VARS
2690 # -----------------------
2691 # Produce commented declarations of non-tagged libtool config variables
2692 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2693 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2694 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2698 # _LT_LIBTOOL_TAG_VARS(TAG)
2699 # -------------------------
2703 # _LT_TAGVAR(VARNAME, [TAGNAME])
2704 # ------------------------------
2708 # _LT_CONFIG_COMMANDS
2709 # -------------------
2710 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2711 # variables for single and double quote escaping we saved from calls
2712 # to _LT_DECL, we can put quote escaped variables declarations
2713 # into `config.status', and then the shell code to quote escape them in
2714 # for loops in `config.status'. Finally, any additional code accumulated
2715 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2716 #_LT_CONFIG_COMMANDS
2722 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2723 # ------------------------------------
2724 # Generate a child script FILE with all initialization necessary to
2725 # reuse the environment learned by the parent script, and make the
2726 # file executable. If COMMENT is supplied, it is inserted after the
2727 # `#!' sequence but before initialization text begins. After this
2728 # macro, additional text can be appended to FILE to form the body of
2729 # the child script. The macro ends with non-zero status if the
2730 # file could not be fully written (such as if the disk is full).
2731 # _LT_GENERATED_FILE_INIT
2735 # This macro allows early generation of the libtool script (before
2736 # AC_OUTPUT is called), incase it is used in configure for compilation
2743 # If TAG is the built-in tag, create an initial libtool script with a
2744 # default configuration from the untagged config vars. Otherwise add code
2745 # to config.status for appending the configuration named by TAG from the
2746 # matching tagged config vars.
2750 # LT_SUPPORTED_TAG(TAG)
2751 # ---------------------
2752 # Trace this macro to discover what tags are supported by the libtool
2753 # --tag option, using:
2754 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
2758 # C support is built-in for now
2765 # Enable libtool support for the given language if not already enabled.
2769 # _LT_LANG(LANGNAME)
2770 # ------------------
2774 # _LT_LANG_DEFAULT_CONFIG
2775 # -----------------------
2776 # _LT_LANG_DEFAULT_CONFIG
2779 # This is what autoupdate's m4 run will expand. It fires
2780 # the warning (with _au_warn_XXX), outputs it into the
2781 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2782 # the replacement expansion.
2785 # This is an auxiliary macro that is also run when
2786 # autoupdate runs m4. It simply calls m4_warning, but
2787 # we need a wrapper so that each warning is emitted only
2788 # once. We break the quoting in m4_warning's argument in
2789 # order to expand this macro's arguments, not AU_DEFUN's.
2792 # Finally, this is the expansion that is picked up by
2793 # autoconf. It tells the user to run autoupdate, and
2794 # then outputs the replacement expansion. We do not care
2795 # about autoupdate's warning because that contains
2796 # information on what to do *after* running autoupdate.
2798 # This is what autoupdate's m4 run will expand. It fires
2799 # the warning (with _au_warn_XXX), outputs it into the
2800 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2801 # the replacement expansion.
2804 # This is an auxiliary macro that is also run when
2805 # autoupdate runs m4. It simply calls m4_warning, but
2806 # we need a wrapper so that each warning is emitted only
2807 # once. We break the quoting in m4_warning's argument in
2808 # order to expand this macro's arguments, not AU_DEFUN's.
2811 # Finally, this is the expansion that is picked up by
2812 # autoconf. It tells the user to run autoupdate, and
2813 # then outputs the replacement expansion. We do not care
2814 # about autoupdate's warning because that contains
2815 # information on what to do *after* running autoupdate.
2817 # This is what autoupdate's m4 run will expand. It fires
2818 # the warning (with _au_warn_XXX), outputs it into the
2819 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2820 # the replacement expansion.
2823 # This is an auxiliary macro that is also run when
2824 # autoupdate runs m4. It simply calls m4_warning, but
2825 # we need a wrapper so that each warning is emitted only
2826 # once. We break the quoting in m4_warning's argument in
2827 # order to expand this macro's arguments, not AU_DEFUN's.
2830 # Finally, this is the expansion that is picked up by
2831 # autoconf. It tells the user to run autoupdate, and
2832 # then outputs the replacement expansion. We do not care
2833 # about autoupdate's warning because that contains
2834 # information on what to do *after* running autoupdate.
2836 # This is what autoupdate's m4 run will expand. It fires
2837 # the warning (with _au_warn_XXX), outputs it into the
2838 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2839 # the replacement expansion.
2842 # This is an auxiliary macro that is also run when
2843 # autoupdate runs m4. It simply calls m4_warning, but
2844 # we need a wrapper so that each warning is emitted only
2845 # once. We break the quoting in m4_warning's argument in
2846 # order to expand this macro's arguments, not AU_DEFUN's.
2849 # Finally, this is the expansion that is picked up by
2850 # autoconf. It tells the user to run autoupdate, and
2851 # then outputs the replacement expansion. We do not care
2852 # about autoupdate's warning because that contains
2853 # information on what to do *after* running autoupdate.
2855 # This is what autoupdate's m4 run will expand. It fires
2856 # the warning (with _au_warn_XXX), outputs it into the
2857 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2858 # the replacement expansion.
2861 # This is an auxiliary macro that is also run when
2862 # autoupdate runs m4. It simply calls m4_warning, but
2863 # we need a wrapper so that each warning is emitted only
2864 # once. We break the quoting in m4_warning's argument in
2865 # order to expand this macro's arguments, not AU_DEFUN's.
2868 # Finally, this is the expansion that is picked up by
2869 # autoconf. It tells the user to run autoupdate, and
2870 # then outputs the replacement expansion. We do not care
2871 # about autoupdate's warning because that contains
2872 # information on what to do *after* running autoupdate.
2881 # _LT_COMPILER_BOILERPLATE
2882 # ------------------------
2883 # Check for compiler boilerplate output or warnings with
2884 # the simple compiler test code.
2885 # _LT_COMPILER_BOILERPLATE
2888 # _LT_LINKER_BOILERPLATE
2889 # ----------------------
2890 # Check for linker boilerplate output or warnings with
2891 # the simple link test code.
2892 # _LT_LINKER_BOILERPLATE
2894 # _LT_REQUIRED_DARWIN_CHECKS
2895 # -------------------------
2899 # _LT_DARWIN_LINKER_FEATURES
2900 # --------------------------
2901 # Checks for linker and compiler features on darwin
2904 # _LT_SYS_MODULE_PATH_AIX
2905 # -----------------------
2906 # Links a minimal program and checks the executable
2907 # for the system default hardcoded library path. In most cases,
2908 # this is /usr/lib:/lib, but when the MPI compilers are used
2909 # the location of the communication and MPI libs are included too.
2910 # If we don't find anything, use the default library path according
2911 # to the aix ld manual.
2912 # _LT_SYS_MODULE_PATH_AIX
2915 # _LT_SHELL_INIT(ARG)
2916 # -------------------
2921 # _LT_PROG_ECHO_BACKSLASH
2922 # -----------------------
2923 # Find how we can fake an echo command that does not interpret backslash.
2924 # In particular, with Autoconf 2.60 or later we add some code to the start
2925 # of the generated configure script which will find a shell with a builtin
2926 # printf (which we can use as an echo command).
2927 # _LT_PROG_ECHO_BACKSLASH
2935 # _LT_CMD_OLD_ARCHIVE
2936 # -------------------
2937 # _LT_CMD_OLD_ARCHIVE
2940 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2941 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2942 # ----------------------------------------------------------------
2943 # Check whether the given compiler option works
2944 # _LT_COMPILER_OPTION
2947 # This is what autoupdate's m4 run will expand. It fires
2948 # the warning (with _au_warn_XXX), outputs it into the
2949 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2950 # the replacement expansion.
2953 # This is an auxiliary macro that is also run when
2954 # autoupdate runs m4. It simply calls m4_warning, but
2955 # we need a wrapper so that each warning is emitted only
2956 # once. We break the quoting in m4_warning's argument in
2957 # order to expand this macro's arguments, not AU_DEFUN's.
2960 # Finally, this is the expansion that is picked up by
2961 # autoconf. It tells the user to run autoupdate, and
2962 # then outputs the replacement expansion. We do not care
2963 # about autoupdate's warning because that contains
2964 # information on what to do *after* running autoupdate.
2968 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2969 # [ACTION-SUCCESS], [ACTION-FAILURE])
2970 # ----------------------------------------------------
2971 # Check whether the given linker option works
2975 # This is what autoupdate's m4 run will expand. It fires
2976 # the warning (with _au_warn_XXX), outputs it into the
2977 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2978 # the replacement expansion.
2981 # This is an auxiliary macro that is also run when
2982 # autoupdate runs m4. It simply calls m4_warning, but
2983 # we need a wrapper so that each warning is emitted only
2984 # once. We break the quoting in m4_warning's argument in
2985 # order to expand this macro's arguments, not AU_DEFUN's.
2988 # Finally, this is the expansion that is picked up by
2989 # autoconf. It tells the user to run autoupdate, and
2990 # then outputs the replacement expansion. We do not care
2991 # about autoupdate's warning because that contains
2992 # information on what to do *after* running autoupdate.
3001 # This is what autoupdate's m4 run will expand. It fires
3002 # the warning (with _au_warn_XXX), outputs it into the
3003 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3004 # the replacement expansion.
3007 # This is an auxiliary macro that is also run when
3008 # autoupdate runs m4. It simply calls m4_warning, but
3009 # we need a wrapper so that each warning is emitted only
3010 # once. We break the quoting in m4_warning's argument in
3011 # order to expand this macro's arguments, not AU_DEFUN's.
3014 # Finally, this is the expansion that is picked up by
3015 # autoconf. It tells the user to run autoupdate, and
3016 # then outputs the replacement expansion. We do not care
3017 # about autoupdate's warning because that contains
3018 # information on what to do *after* running autoupdate.
3027 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3028 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3029 # ----------------------------------------------------------------
3030 # _LT_TRY_DLOPEN_SELF
3033 # LT_SYS_DLOPEN_SELF
3034 # ------------------
3035 # LT_SYS_DLOPEN_SELF
3038 # This is what autoupdate's m4 run will expand. It fires
3039 # the warning (with _au_warn_XXX), outputs it into the
3040 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3041 # the replacement expansion.
3044 # This is an auxiliary macro that is also run when
3045 # autoupdate runs m4. It simply calls m4_warning, but
3046 # we need a wrapper so that each warning is emitted only
3047 # once. We break the quoting in m4_warning's argument in
3048 # order to expand this macro's arguments, not AU_DEFUN's.
3051 # Finally, this is the expansion that is picked up by
3052 # autoconf. It tells the user to run autoupdate, and
3053 # then outputs the replacement expansion. We do not care
3054 # about autoupdate's warning because that contains
3055 # information on what to do *after* running autoupdate.
3059 # _LT_COMPILER_C_O([TAGNAME])
3060 # ---------------------------
3061 # Check to see if options -c and -o are simultaneously supported by compiler.
3062 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3066 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3067 # ----------------------------------
3068 # Check to see if we can do hard links to lock some files if needed
3069 # _LT_COMPILER_FILE_LOCKS
3077 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3078 # --------------------------------------
3079 # Check hardcoding attributes.
3080 # _LT_LINKER_HARDCODE_LIBPATH
3088 # _LT_SYS_DYNAMIC_LINKER([TAG])
3089 # -----------------------------
3090 # PORTME Fill in your ld.so characteristics
3091 # _LT_SYS_DYNAMIC_LINKER
3094 # _LT_PATH_TOOL_PREFIX(TOOL)
3095 # --------------------------
3096 # find a file program which can recognize shared library
3097 # _LT_PATH_TOOL_PREFIX
3100 # This is what autoupdate's m4 run will expand. It fires
3101 # the warning (with _au_warn_XXX), outputs it into the
3102 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3103 # the replacement expansion.
3106 # This is an auxiliary macro that is also run when
3107 # autoupdate runs m4. It simply calls m4_warning, but
3108 # we need a wrapper so that each warning is emitted only
3109 # once. We break the quoting in m4_warning's argument in
3110 # order to expand this macro's arguments, not AU_DEFUN's.
3113 # Finally, this is the expansion that is picked up by
3114 # autoconf. It tells the user to run autoupdate, and
3115 # then outputs the replacement expansion. We do not care
3116 # about autoupdate's warning because that contains
3117 # information on what to do *after* running autoupdate.
3123 # find a file program which can recognize a shared library
3129 # find the pathname to the GNU or non-GNU linker
3133 # This is what autoupdate's m4 run will expand. It fires
3134 # the warning (with _au_warn_XXX), outputs it into the
3135 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3136 # the replacement expansion.
3139 # This is an auxiliary macro that is also run when
3140 # autoupdate runs m4. It simply calls m4_warning, but
3141 # we need a wrapper so that each warning is emitted only
3142 # once. We break the quoting in m4_warning's argument in
3143 # order to expand this macro's arguments, not AU_DEFUN's.
3146 # Finally, this is the expansion that is picked up by
3147 # autoconf. It tells the user to run autoupdate, and
3148 # then outputs the replacement expansion. We do not care
3149 # about autoupdate's warning because that contains
3150 # information on what to do *after* running autoupdate.
3152 # This is what autoupdate's m4 run will expand. It fires
3153 # the warning (with _au_warn_XXX), outputs it into the
3154 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3155 # the replacement expansion.
3158 # This is an auxiliary macro that is also run when
3159 # autoupdate runs m4. It simply calls m4_warning, but
3160 # we need a wrapper so that each warning is emitted only
3161 # once. We break the quoting in m4_warning's argument in
3162 # order to expand this macro's arguments, not AU_DEFUN's.
3165 # Finally, this is the expansion that is picked up by
3166 # autoconf. It tells the user to run autoupdate, and
3167 # then outputs the replacement expansion. We do not care
3168 # about autoupdate's warning because that contains
3169 # information on what to do *after* running autoupdate.
3180 # find reload flag for linker
3181 # -- PORTME Some linkers may need a different reload flag.
3185 # _LT_CHECK_MAGIC_METHOD
3186 # ----------------------
3187 # how to check for library dependencies
3188 # -- PORTME fill in with the dynamic library characteristics
3189 # _LT_CHECK_MAGIC_METHOD
3194 # find the pathname to a BSD- or MS-compatible name lister
3198 # This is what autoupdate's m4 run will expand. It fires
3199 # the warning (with _au_warn_XXX), outputs it into the
3200 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3201 # the replacement expansion.
3204 # This is an auxiliary macro that is also run when
3205 # autoupdate runs m4. It simply calls m4_warning, but
3206 # we need a wrapper so that each warning is emitted only
3207 # once. We break the quoting in m4_warning's argument in
3208 # order to expand this macro's arguments, not AU_DEFUN's.
3211 # Finally, this is the expansion that is picked up by
3212 # autoconf. It tells the user to run autoupdate, and
3213 # then outputs the replacement expansion. We do not care
3214 # about autoupdate's warning because that contains
3215 # information on what to do *after* running autoupdate.
3217 # This is what autoupdate's m4 run will expand. It fires
3218 # the warning (with _au_warn_XXX), outputs it into the
3219 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3220 # the replacement expansion.
3223 # This is an auxiliary macro that is also run when
3224 # autoupdate runs m4. It simply calls m4_warning, but
3225 # we need a wrapper so that each warning is emitted only
3226 # once. We break the quoting in m4_warning's argument in
3227 # order to expand this macro's arguments, not AU_DEFUN's.
3230 # Finally, this is the expansion that is picked up by
3231 # autoconf. It tells the user to run autoupdate, and
3232 # then outputs the replacement expansion. We do not care
3233 # about autoupdate's warning because that contains
3234 # information on what to do *after* running autoupdate.
3240 # check for math library
3244 # This is what autoupdate's m4 run will expand. It fires
3245 # the warning (with _au_warn_XXX), outputs it into the
3246 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3247 # the replacement expansion.
3250 # This is an auxiliary macro that is also run when
3251 # autoupdate runs m4. It simply calls m4_warning, but
3252 # we need a wrapper so that each warning is emitted only
3253 # once. We break the quoting in m4_warning's argument in
3254 # order to expand this macro's arguments, not AU_DEFUN's.
3257 # Finally, this is the expansion that is picked up by
3258 # autoconf. It tells the user to run autoupdate, and
3259 # then outputs the replacement expansion. We do not care
3260 # about autoupdate's warning because that contains
3261 # information on what to do *after* running autoupdate.
3265 # _LT_COMPILER_NO_RTTI([TAGNAME])
3266 # -------------------------------
3267 # _LT_COMPILER_NO_RTTI
3270 # _LT_CMD_GLOBAL_SYMBOLS
3271 # ----------------------
3272 # _LT_CMD_GLOBAL_SYMBOLS
3275 # _LT_COMPILER_PIC([TAGNAME])
3276 # ---------------------------
3280 # _LT_LINKER_SHLIBS([TAGNAME])
3281 # ----------------------------
3282 # See if the linker supports building shared libraries.
3286 # _LT_LANG_C_CONFIG([TAG])
3287 # ------------------------
3288 # Ensure that the configuration variables for a C compiler are suitably
3289 # defined. These variables are subsequently used by _LT_CONFIG to write
3290 # the compiler configuration to `libtool'.
3294 # _LT_LANG_CXX_CONFIG([TAG])
3295 # --------------------------
3296 # Ensure that the configuration variables for a C++ compiler are suitably
3297 # defined. These variables are subsequently used by _LT_CONFIG to write
3298 # the compiler configuration to `libtool'.
3299 # _LT_LANG_CXX_CONFIG
3302 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3303 # ---------------------------------
3304 # Figure out "hidden" library dependencies from verbose
3305 # compiler output when linking a shared library.
3306 # Parse the compiler output and extract the necessary
3307 # objects, libraries and library flags.
3308 # _LT_SYS_HIDDEN_LIBDEPS
3311 # _LT_LANG_F77_CONFIG([TAG])
3312 # --------------------------
3313 # Ensure that the configuration variables for a Fortran 77 compiler are
3314 # suitably defined. These variables are subsequently used by _LT_CONFIG
3315 # to write the compiler configuration to `libtool'.
3316 # _LT_LANG_F77_CONFIG
3319 # _LT_LANG_FC_CONFIG([TAG])
3320 # -------------------------
3321 # Ensure that the configuration variables for a Fortran compiler are
3322 # suitably defined. These variables are subsequently used by _LT_CONFIG
3323 # to write the compiler configuration to `libtool'.
3324 # _LT_LANG_FC_CONFIG
3327 # _LT_LANG_GCJ_CONFIG([TAG])
3328 # --------------------------
3329 # Ensure that the configuration variables for the GNU Java Compiler compiler
3330 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3331 # to write the compiler configuration to `libtool'.
3332 # _LT_LANG_GCJ_CONFIG
3335 # _LT_LANG_RC_CONFIG([TAG])
3336 # -------------------------
3337 # Ensure that the configuration variables for the Windows resource compiler
3338 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3339 # to write the compiler configuration to `libtool'.
3340 # _LT_LANG_RC_CONFIG
3348 # This is what autoupdate's m4 run will expand. It fires
3349 # the warning (with _au_warn_XXX), outputs it into the
3350 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3351 # the replacement expansion.
3354 # This is an auxiliary macro that is also run when
3355 # autoupdate runs m4. It simply calls m4_warning, but
3356 # we need a wrapper so that each warning is emitted only
3357 # once. We break the quoting in m4_warning's argument in
3358 # order to expand this macro's arguments, not AU_DEFUN's.
3361 # Finally, this is the expansion that is picked up by
3362 # autoconf. It tells the user to run autoupdate, and
3363 # then outputs the replacement expansion. We do not care
3364 # about autoupdate's warning because that contains
3365 # information on what to do *after* running autoupdate.
3374 # This is what autoupdate's m4 run will expand. It fires
3375 # the warning (with _au_warn_XXX), outputs it into the
3376 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3377 # the replacement expansion.
3380 # This is an auxiliary macro that is also run when
3381 # autoupdate runs m4. It simply calls m4_warning, but
3382 # we need a wrapper so that each warning is emitted only
3383 # once. We break the quoting in m4_warning's argument in
3384 # order to expand this macro's arguments, not AU_DEFUN's.
3387 # Finally, this is the expansion that is picked up by
3388 # autoconf. It tells the user to run autoupdate, and
3389 # then outputs the replacement expansion. We do not care
3390 # about autoupdate's warning because that contains
3391 # information on what to do *after* running autoupdate.
3397 # If we don't have a new enough Autoconf to choose the best grep
3398 # available, choose the one first in the user's PATH.
3404 # If we don't have a new enough Autoconf to choose the best objdump
3405 # available, choose the one first in the user's PATH.
3411 # Check for a fully-functional sed program, that truncates
3412 # as few characters as possible. Prefer GNU sed if found.
3418 # This is what autoupdate's m4 run will expand. It fires
3419 # the warning (with _au_warn_XXX), outputs it into the
3420 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3421 # the replacement expansion.
3424 # This is an auxiliary macro that is also run when
3425 # autoupdate runs m4. It simply calls m4_warning, but
3426 # we need a wrapper so that each warning is emitted only
3427 # once. We break the quoting in m4_warning's argument in
3428 # order to expand this macro's arguments, not AU_DEFUN's.
3431 # Finally, this is the expansion that is picked up by
3432 # autoconf. It tells the user to run autoupdate, and
3433 # then outputs the replacement expansion. We do not care
3434 # about autoupdate's warning because that contains
3435 # information on what to do *after* running autoupdate.
3439 # _LT_CHECK_SHELL_FEATURES
3440 # ------------------------
3441 # Find out whether the shell is Bourne or XSI compatible,
3442 # or has some other useful features.
3443 # _LT_CHECK_SHELL_FEATURES
3446 # _LT_PROG_XSI_SHELLFNS
3447 # ---------------------
3448 # Bourne and XSI compatible variants of some useful shell functions.
3451 # Helper functions for option handling. -*- Autoconf -*-
3453 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3455 # Written by Gary V. Vaughan, 2004
3457 # This file is free software; the Free Software Foundation gives
3458 # unlimited permission to copy and/or distribute it, with or without
3459 # modifications, as long as this notice is preserved.
3461 # serial 6 ltoptions.m4
3463 # This is to help aclocal find these macros, as it can't see m4_define.
3467 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3468 # ------------------------------------------
3472 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3473 # ---------------------------------------
3474 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3475 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
3480 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3481 # ------------------------------------------------------------
3482 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3486 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3487 # -------------------------------------------------------
3488 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3493 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3494 # ----------------------------------------
3495 # OPTION-LIST is a space-separated list of Libtool options associated
3496 # with MACRO-NAME. If any OPTION has a matching handler declared with
3497 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3498 # the unknown option and exit.
3502 ## --------------------------------- ##
3503 ## Macros to handle LT_INIT options. ##
3504 ## --------------------------------- ##
3506 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3507 # -----------------------------------------
3511 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3512 # -----------------------------------------------
3520 # This is what autoupdate's m4 run will expand. It fires
3521 # the warning (with _au_warn_XXX), outputs it into the
3522 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3523 # the replacement expansion.
3526 # This is an auxiliary macro that is also run when
3527 # autoupdate runs m4. It simply calls m4_warning, but
3528 # we need a wrapper so that each warning is emitted only
3529 # once. We break the quoting in m4_warning's argument in
3530 # order to expand this macro's arguments, not AU_DEFUN's.
3533 # Finally, this is the expansion that is picked up by
3534 # autoconf. It tells the user to run autoupdate, and
3535 # then outputs the replacement expansion. We do not care
3536 # about autoupdate's warning because that contains
3537 # information on what to do *after* running autoupdate.
3544 # Declare package support for building win32 dll's.
3547 # This is what autoupdate's m4 run will expand. It fires
3548 # the warning (with _au_warn_XXX), outputs it into the
3549 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3550 # the replacement expansion.
3553 # This is an auxiliary macro that is also run when
3554 # autoupdate runs m4. It simply calls m4_warning, but
3555 # we need a wrapper so that each warning is emitted only
3556 # once. We break the quoting in m4_warning's argument in
3557 # order to expand this macro's arguments, not AU_DEFUN's.
3560 # Finally, this is the expansion that is picked up by
3561 # autoconf. It tells the user to run autoupdate, and
3562 # then outputs the replacement expansion. We do not care
3563 # about autoupdate's warning because that contains
3564 # information on what to do *after* running autoupdate.
3569 # _LT_ENABLE_SHARED([DEFAULT])
3570 # ----------------------------
3571 # implement the --enable-shared flag, and supports the `shared' and
3572 # `disable-shared' LT_INIT options.
3573 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3584 # This is what autoupdate's m4 run will expand. It fires
3585 # the warning (with _au_warn_XXX), outputs it into the
3586 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3587 # the replacement expansion.
3590 # This is an auxiliary macro that is also run when
3591 # autoupdate runs m4. It simply calls m4_warning, but
3592 # we need a wrapper so that each warning is emitted only
3593 # once. We break the quoting in m4_warning's argument in
3594 # order to expand this macro's arguments, not AU_DEFUN's.
3597 # Finally, this is the expansion that is picked up by
3598 # autoconf. It tells the user to run autoupdate, and
3599 # then outputs the replacement expansion. We do not care
3600 # about autoupdate's warning because that contains
3601 # information on what to do *after* running autoupdate.
3603 # This is what autoupdate's m4 run will expand. It fires
3604 # the warning (with _au_warn_XXX), outputs it into the
3605 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3606 # the replacement expansion.
3609 # This is an auxiliary macro that is also run when
3610 # autoupdate runs m4. It simply calls m4_warning, but
3611 # we need a wrapper so that each warning is emitted only
3612 # once. We break the quoting in m4_warning's argument in
3613 # order to expand this macro's arguments, not AU_DEFUN's.
3616 # Finally, this is the expansion that is picked up by
3617 # autoconf. It tells the user to run autoupdate, and
3618 # then outputs the replacement expansion. We do not care
3619 # about autoupdate's warning because that contains
3620 # information on what to do *after* running autoupdate.
3626 # _LT_ENABLE_STATIC([DEFAULT])
3627 # ----------------------------
3628 # implement the --enable-static flag, and support the `static' and
3629 # `disable-static' LT_INIT options.
3630 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3641 # This is what autoupdate's m4 run will expand. It fires
3642 # the warning (with _au_warn_XXX), outputs it into the
3643 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3644 # the replacement expansion.
3647 # This is an auxiliary macro that is also run when
3648 # autoupdate runs m4. It simply calls m4_warning, but
3649 # we need a wrapper so that each warning is emitted only
3650 # once. We break the quoting in m4_warning's argument in
3651 # order to expand this macro's arguments, not AU_DEFUN's.
3654 # Finally, this is the expansion that is picked up by
3655 # autoconf. It tells the user to run autoupdate, and
3656 # then outputs the replacement expansion. We do not care
3657 # about autoupdate's warning because that contains
3658 # information on what to do *after* running autoupdate.
3660 # This is what autoupdate's m4 run will expand. It fires
3661 # the warning (with _au_warn_XXX), outputs it into the
3662 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3663 # the replacement expansion.
3666 # This is an auxiliary macro that is also run when
3667 # autoupdate runs m4. It simply calls m4_warning, but
3668 # we need a wrapper so that each warning is emitted only
3669 # once. We break the quoting in m4_warning's argument in
3670 # order to expand this macro's arguments, not AU_DEFUN's.
3673 # Finally, this is the expansion that is picked up by
3674 # autoconf. It tells the user to run autoupdate, and
3675 # then outputs the replacement expansion. We do not care
3676 # about autoupdate's warning because that contains
3677 # information on what to do *after* running autoupdate.
3683 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
3684 # ----------------------------------
3685 # implement the --enable-fast-install flag, and support the `fast-install'
3686 # and `disable-fast-install' LT_INIT options.
3687 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3688 # _LT_ENABLE_FAST_INSTALL
3694 # This is what autoupdate's m4 run will expand. It fires
3695 # the warning (with _au_warn_XXX), outputs it into the
3696 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3697 # the replacement expansion.
3700 # This is an auxiliary macro that is also run when
3701 # autoupdate runs m4. It simply calls m4_warning, but
3702 # we need a wrapper so that each warning is emitted only
3703 # once. We break the quoting in m4_warning's argument in
3704 # order to expand this macro's arguments, not AU_DEFUN's.
3707 # Finally, this is the expansion that is picked up by
3708 # autoconf. It tells the user to run autoupdate, and
3709 # then outputs the replacement expansion. We do not care
3710 # about autoupdate's warning because that contains
3711 # information on what to do *after* running autoupdate.
3714 # This is what autoupdate's m4 run will expand. It fires
3715 # the warning (with _au_warn_XXX), outputs it into the
3716 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3717 # the replacement expansion.
3720 # This is an auxiliary macro that is also run when
3721 # autoupdate runs m4. It simply calls m4_warning, but
3722 # we need a wrapper so that each warning is emitted only
3723 # once. We break the quoting in m4_warning's argument in
3724 # order to expand this macro's arguments, not AU_DEFUN's.
3727 # Finally, this is the expansion that is picked up by
3728 # autoconf. It tells the user to run autoupdate, and
3729 # then outputs the replacement expansion. We do not care
3730 # about autoupdate's warning because that contains
3731 # information on what to do *after* running autoupdate.
3736 # _LT_WITH_PIC([MODE])
3737 # --------------------
3738 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
3740 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3747 # This is what autoupdate's m4 run will expand. It fires
3748 # the warning (with _au_warn_XXX), outputs it into the
3749 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3750 # the replacement expansion.
3753 # This is an auxiliary macro that is also run when
3754 # autoupdate runs m4. It simply calls m4_warning, but
3755 # we need a wrapper so that each warning is emitted only
3756 # once. We break the quoting in m4_warning's argument in
3757 # order to expand this macro's arguments, not AU_DEFUN's.
3760 # Finally, this is the expansion that is picked up by
3761 # autoconf. It tells the user to run autoupdate, and
3762 # then outputs the replacement expansion. We do not care
3763 # about autoupdate's warning because that contains
3764 # information on what to do *after* running autoupdate.
3768 ## ----------------- ##
3769 ## LTDL_INIT Options ##
3770 ## ----------------- ##
3781 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3783 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3784 # Written by Gary V. Vaughan, 2004
3786 # This file is free software; the Free Software Foundation gives
3787 # unlimited permission to copy and/or distribute it, with or without
3788 # modifications, as long as this notice is preserved.
3790 # serial 6 ltsugar.m4
3792 # This is to help aclocal find these macros, as it can't see m4_define.
3796 # lt_join(SEP, ARG1, [ARG2...])
3797 # -----------------------------
3798 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3799 # associated separator.
3800 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3801 # versions in m4sugar had bugs.
3809 # Manipulate m4 lists.
3810 # These macros are necessary as long as will still need to support
3811 # Autoconf-2.59 which quotes differently.
3817 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
3818 # ------------------------------------------
3819 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3820 # Note that neither SEPARATOR nor STRING are expanded; they are appended
3821 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3822 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
3823 # than defined and empty).
3825 # This macro is needed until we can rely on Autoconf 2.62, since earlier
3826 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3831 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3832 # ----------------------------------------------------------
3833 # Produce a SEP delimited list of all paired combinations of elements of
3834 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3835 # has the form PREFIXmINFIXSUFFIXn.
3836 # Needed until we can rely on m4_combine added in Autoconf 2.62.
3840 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3841 # -----------------------------------------------------------------------
3842 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3843 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3847 # lt_dict_add(DICT, KEY, VALUE)
3848 # -----------------------------
3852 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3853 # --------------------------------------------
3857 # lt_dict_fetch(DICT, KEY, [SUBKEY])
3858 # ----------------------------------
3862 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3863 # -----------------------------------------------------------------
3867 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3868 # --------------------------------------------------------------
3871 # ltversion.m4 -- version numbers -*- Autoconf -*-
3873 # Copyright (C) 2004 Free Software Foundation, Inc.
3874 # Written by Scott James Remnant, 2004
3876 # This file is free software; the Free Software Foundation gives
3877 # unlimited permission to copy and/or distribute it, with or without
3878 # modifications, as long as this notice is preserved.
3880 # Generated from ltversion.in.
3882 # serial 3134 ltversion.m4
3883 # This file is part of GNU Libtool
3890 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3892 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3893 # Written by Scott James Remnant, 2004.
3895 # This file is free software; the Free Software Foundation gives
3896 # unlimited permission to copy and/or distribute it, with or without
3897 # modifications, as long as this notice is preserved.
3899 # serial 4 lt~obsolete.m4
3901 # These exist entirely to fool aclocal when bootstrapping libtool.
3903 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3904 # which have later been changed to m4_define as they aren't part of the
3905 # exported API, or moved to Autoconf or Automake where they belong.
3907 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3908 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3909 # using a macro with the same name in our local m4/libtool.m4 it'll
3910 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3911 # and doesn't know about Autoconf macros at all.)
3913 # So we provide this file, which has a silly filename so it's always
3914 # included after everything else. This provides aclocal with the
3915 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3916 # because those macros already exist, or will be overwritten later.
3917 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3919 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3920 # Yes, that means every name once taken will need to remain here until
3921 # we give up compatibility with versions before 1.7, at which point
3922 # we need to keep only those names which we still refer to.
3924 # This is to help aclocal find these macros, as it can't see m4_define.
3991 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3992 # Free Software Foundation, Inc.
3994 # This file is free software; the Free Software Foundation
3995 # gives unlimited permission to copy and/or distribute it,
3996 # with or without modifications, as long as this notice is preserved.
4000 # Based on depend.m4 from automake 1.9, modified for standalone use in
4001 # an environment where GNU make is required.
4003 # ZW_PROG_COMPILER_DEPENDENCIES
4004 # -----------------------------
4005 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
4006 # sets fooDEPMODE accordingly. Cache-variable compatible with
4007 # original; not side-effect compatible. As the users of this macro
4008 # may require accurate dependencies for correct builds, it does *not*
4009 # honor --disable-dependency-checking, and failure to detect a usable
4010 # method is an error. depcomp is assumed to be located in
4013 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4019 # Choose a directory name for dependency files.
4024 # As AM_SET_DEPDIR, but also create the directory at config.status time.
4075 sim_inline
="-DDEFAULT_INLINE=0"
4112 # intl sister-directory configuration rules.
4115 # The idea behind this macro is that there's no need to repeat all the
4116 # autoconf probes done by the intl directory - it's already done them
4117 # for us. In fact, there's no need even to look at the cache for the
4118 # answers. All we need to do is nab a few pieces of information.
4119 # The intl directory is set up to make this easy, by generating a
4120 # small file which can be sourced as a shell script; then we produce
4121 # the necessary substitutions and definitions for this directory.
4125 # Autoconf M4 include file defining utility macros for complex Canadian
4137 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4139 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
4142 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4143 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4147 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4148 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4152 # Backported from Autoconf 2.5x; can go away when and if
4153 # we switch. Put the OS path separator in $PATH_SEPARATOR.
4158 # ACX_HAVE_GCC_FOR_TARGET
4159 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4162 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4163 # Searching for installed target binutils. We need to take extra care,
4164 # else we may find the wrong assembler, linker, etc., and lose.
4166 # First try --with-build-time-tools, if specified.
4168 # For build != host, we ask the installed GCC for the name of the tool it
4169 # uses, and accept it if it is an absolute path. This is because the
4170 # only good choice for a compiler is the same GCC version that is being
4171 # installed (or we couldn't make target libraries), and we assume that
4172 # on the host system we'll have not only the same GCC version, but also
4173 # the same binutils version.
4175 # For build == host, search the same directories that the installed
4176 # compiler will search. We used to do this for the assembler, linker,
4177 # and nm only; for simplicity of configuration, however, we extend this
4178 # criterion to tools (such as ar and ranlib) that are never invoked by
4179 # the compiler, to avoid mismatches.
4181 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
4182 # if build == target. This makes the most sense only when bootstrapping,
4183 # but we also do so when build != host. In this case, we hope that the
4184 # build and host systems will have similar contents of MD_EXEC_PREFIX.
4186 # If we do not find a suitable binary, then try the user's path.
4190 # AC_PROG_CPP_WERROR
4191 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4192 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
4193 # For now, using this also overrides header checks to use only the
4194 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4195 # bit harder from here).
4196 # Eventually autoconf will default to checking headers with the compiler
4197 # instead, and we'll have to do this differently.
4199 # AC_PROG_CPP_WERROR
4202 # We require the gnatbind & gnatmake programs, as well as a compiler driver
4203 # that understands Ada. We use the user's CC setting, already found, and
4204 # possibly add $1 to the command-line parameters.
4206 # Sets the shell variable have_gnat to yes or no as appropriate, and
4207 # substitutes GNATBIND and GNATMAKE.
4234 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4235 for ac_t
in install-sh
install.sh shtool
; do
4236 if test -f "$ac_dir/$ac_t"; then
4238 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4243 if test -z "$ac_aux_dir"; then
4244 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4247 # These three variables are undocumented and unsupported,
4248 # and are intended to be withdrawn in a future Autoconf release.
4249 # They can cause serious problems if a builder's source tree is in a directory
4250 # whose full name contains unusual characters.
4251 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4252 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4253 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4256 # Find a good install program. We prefer a C program (faster),
4257 # so one script is as good as another. But avoid the broken or
4258 # incompatible versions:
4259 # SysV /etc/install, /usr/sbin/install
4260 # SunOS /usr/etc/install
4261 # IRIX /sbin/install
4263 # AmigaOS /C/install, which installs bootblocks on floppy discs
4264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4267 # OS/2's system install, which has a completely different semantic
4268 # ./install, which can be erroneously created by make from ./install.sh.
4269 # Reject install programs that cannot install multiple files.
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4271 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4272 if test -z "$INSTALL"; then
4273 if test "${ac_cv_path_install+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir
=.
4281 # Account for people who put trailing slashes in PATH elements.
4282 case $as_dir/ in #((
4283 .
/ | .
// |
/[cC
]/* | \
4284 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4285 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4288 # OSF1 and SCO ODT 3.0 have their own names for install.
4289 # Don't use installbsd from OSF since it installs stuff as root
4291 for ac_prog
in ginstall scoinst
install; do
4292 for ac_exec_ext
in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4294 if test $ac_prog = install &&
4295 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4296 # AIX install. It has an incompatible calling convention.
4298 elif test $ac_prog = install &&
4299 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4300 # program-specific install script used by HP pwplus--don't use.
4303 rm -rf conftest.one conftest.two conftest.dir
4304 echo one
> conftest.one
4305 echo two
> conftest.two
4307 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4308 test -s conftest.one
&& test -s conftest.two
&&
4309 test -s conftest.dir
/conftest.one
&&
4310 test -s conftest.dir
/conftest.two
4312 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4325 rm -rf conftest.one conftest.two conftest.dir
4328 if test "${ac_cv_path_install+set}" = set; then
4329 INSTALL
=$ac_cv_path_install
4331 # As a last resort, use the slow shell script. Don't cache a
4332 # value for INSTALL within a source directory, because that will
4333 # break other packages using the cache if that directory is
4334 # removed, or if the value is a relative name.
4335 INSTALL
=$ac_install_sh
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4339 $as_echo "$INSTALL" >&6; }
4341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4342 # It thinks the first close brace ends the variable substitution.
4343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4347 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4350 ac_cpp
='$CPP $CPPFLAGS'
4351 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4352 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4353 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4356 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_CC+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC
="$CC" # Let the user override the test.
4365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir
=.
4370 for ac_exec_ext
in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 if test -n "$CC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4385 $as_echo "$CC" >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4393 if test -z "$ac_cv_prog_CC"; then
4395 # Extract the first word of "gcc", so it can be a program name with args.
4396 set dummy gcc
; ac_word
=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4402 if test -n "$ac_ct_CC"; then
4403 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_exec_ext
in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_ac_ct_CC
="gcc"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4423 if test -n "$ac_ct_CC"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4425 $as_echo "$ac_ct_CC" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4431 if test "x$ac_ct_CC" = x
; then
4434 case $cross_compiling:$ac_tool_warned in
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4438 ac_tool_warned
=yes ;;
4446 if test -z "$CC"; then
4447 if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4449 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_prog_CC+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC
="$CC" # Let the user override the test.
4458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir
=.
4463 for ac_exec_ext
in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 if test -n "$CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4487 if test -z "$CC"; then
4488 # Extract the first word of "cc", so it can be a program name with args.
4489 set dummy cc
; ac_word
=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if test "${ac_cv_prog_CC+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -n "$CC"; then
4496 ac_cv_prog_CC
="$CC" # Let the user override the test.
4499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir
=.
4504 for ac_exec_ext
in '' $ac_executable_extensions; do
4505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4506 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4507 ac_prog_rejected
=yes
4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 if test $ac_prog_rejected = yes; then
4519 # We found a bogon in the path, so make sure we never use it.
4520 set dummy
$ac_cv_prog_CC
4522 if test $# != 0; then
4523 # We chose a different compiler from the bogus one.
4524 # However, it has the same basename, so the bogon will be chosen
4525 # first if we set CC to just the basename; use the full file name.
4527 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4533 if test -n "$CC"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4535 $as_echo "$CC" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4543 if test -z "$CC"; then
4544 if test -n "$ac_tool_prefix"; then
4545 for ac_prog
in cl.exe
4547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4548 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if test "${ac_cv_prog_CC+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$CC"; then
4555 ac_cv_prog_CC
="$CC" # Let the user override the test.
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_exec_ext
in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 if test -n "$CC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4577 $as_echo "$CC" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$CC" && break
4587 if test -z "$CC"; then
4589 for ac_prog
in cl.exe
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy
$ac_prog; ac_word
=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4598 if test -n "$ac_ct_CC"; then
4599 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir
=.
4606 for ac_exec_ext
in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_ac_ct_CC
="$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4619 if test -n "$ac_ct_CC"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4621 $as_echo "$ac_ct_CC" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 test -n "$ac_ct_CC" && break
4631 if test "x$ac_ct_CC" = x
; then
4634 case $cross_compiling:$ac_tool_warned in
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned
=yes ;;
4647 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4649 as_fn_error
"no acceptable C compiler found in \$PATH
4650 See \`config.log' for more details." "$LINENO" 5; }
4652 # Provide some information about the compiler.
4653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4656 for ac_option
in --version -v -V -qversion; do
4657 { { ac_try
="$ac_compiler $ac_option >&5"
4659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663 $as_echo "$ac_try_echo"; } >&5
4664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4666 if test -s conftest.err; then
4668 ... rest of stderr output deleted ...
4669 10q' conftest.err >conftest.er1
4670 cat conftest.er1 >&5
4671 rm -f conftest.er1 conftest.err
4673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4688 ac_clean_files_save=$ac_clean_files
4689 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4690 # Try to create an executable without -o first, disregard a.out.
4691 # It will help us diagnose broken compilers, and finding out an intuition
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4694 $as_echo_n "checking for C compiler default output file name... " >&6; }
4695 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4697 # The possible output files:
4698 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4701 for ac_file in $ac_files
4704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4705 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4710 if { { ac_try="$ac_link_default"
4712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4713 *) ac_try_echo
=$ac_try;;
4715 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4716 $as_echo "$ac_try_echo"; } >&5
4717 (eval "$ac_link_default") 2>&5
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }; then :
4721 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4722 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4723 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4724 # so that the user can short-circuit this test for compilers unknown to
4726 for ac_file
in $ac_files ''
4728 test -f "$ac_file" ||
continue
4730 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4733 # We found the default executable, but exeext='' is most
4737 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4739 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4741 # We set ac_cv_exeext here because the later test for it is not
4742 # safe: cross compilers may not add the suffix if given an `-o'
4743 # argument, so we may need to know it at that point already.
4744 # Even if this section looks crufty: it has the advantage of
4751 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4757 $as_echo "$ac_file" >&6; }
4758 if test -z "$ac_file"; then :
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.
$ac_ext >&5
4762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4764 { as_fn_set_status
77
4765 as_fn_error
"C compiler cannot create executables
4766 See \`config.log' for more details." "$LINENO" 5; }; }
4768 ac_exeext
=$ac_cv_exeext
4770 # Check that the compiler produces executables we can run. If not, either
4771 # the compiler is broken, or we cross compile.
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4773 $as_echo_n "checking whether the C compiler works... " >&6; }
4774 # If not cross compiling, check that we can run a simple program.
4775 if test "$cross_compiling" != yes; then
4776 if { ac_try
='./$ac_file'
4777 { { case "(($ac_try" in
4778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4782 $as_echo "$ac_try_echo"; } >&5
4783 (eval "$ac_try") 2>&5
4785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4786 test $ac_status = 0; }; }; then
4789 if test "$cross_compiling" = maybe; then
4792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4794 as_fn_error "cannot run C compiled programs.
4795 If you meant to cross compile
, use \
`--host'.
4796 See \`config.log
' for more details." "$LINENO" 5; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801 $as_echo "yes" >&6; }
4803 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4804 ac_clean_files=$ac_clean_files_save
4805 # Check that the compiler produces executables we can run. If not, either
4806 # the compiler is broken, or we cross compile.
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4808 $as_echo_n "checking whether we are cross compiling... " >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4810 $as_echo "$cross_compiling" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4813 $as_echo_n "checking for suffix of executables... " >&6; }
4814 if { { ac_try="$ac_link"
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4820 $as_echo "$ac_try_echo"; } >&5
4821 (eval "$ac_link") 2>&5
4823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4824 test $ac_status = 0; }; then :
4825 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4826 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4827 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4829 for ac_file
in conftest.exe conftest conftest.
*; do
4830 test -f "$ac_file" ||
continue
4832 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4833 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4841 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4842 See \`config.log' for more details." "$LINENO" 5; }
4844 rm -f conftest
$ac_cv_exeext
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4846 $as_echo "$ac_cv_exeext" >&6; }
4848 rm -f conftest.
$ac_ext
4849 EXEEXT
=$ac_cv_exeext
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4852 $as_echo_n "checking for suffix of object files... " >&6; }
4853 if test "${ac_cv_objext+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4867 rm -f conftest.o conftest.obj
4868 if { { ac_try
="$ac_compile"
4870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4874 $as_echo "$ac_try_echo"; } >&5
4875 (eval "$ac_compile") 2>&5
4877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }; then :
4879 for ac_file in conftest.o conftest.obj conftest.*; do
4880 test -f "$ac_file" || continue;
4882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4888 $as_echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4893 as_fn_error "cannot compute suffix of object files
: cannot compile
4894 See \
`config.log' for more details." "$LINENO" 5; }
4896 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4899 $as_echo "$ac_cv_objext" >&6; }
4900 OBJEXT=$ac_cv_objext
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4903 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4904 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4921 if ac_fn_c_try_compile "$LINENO"; then :
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4931 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4932 if test $ac_compiler_gnu = yes; then
4937 ac_test_CFLAGS=${CFLAGS+set}
4938 ac_save_CFLAGS=$CFLAGS
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4940 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4941 if test "${ac_cv_prog_cc_g+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4944 ac_save_c_werror_flag=$ac_c_werror_flag
4945 ac_c_werror_flag=yes
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4959 if ac_fn_c_try_compile "$LINENO"; then :
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4974 if ac_fn_c_try_compile "$LINENO"; then :
4977 ac_c_werror_flag=$ac_save_c_werror_flag
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4990 if ac_fn_c_try_compile "$LINENO"; then :
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 ac_c_werror_flag=$ac_save_c_werror_flag
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5001 $as_echo "$ac_cv_prog_cc_g" >&6; }
5002 if test "$ac_test_CFLAGS" = set; then
5003 CFLAGS=$ac_save_CFLAGS
5004 elif test $ac_cv_prog_cc_g = yes; then
5005 if test "$GCC" = yes; then
5011 if test "$GCC" = yes; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5018 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5019 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5022 ac_cv_prog_cc_c89=no
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5028 #include <sys/types.h>
5029 #include <sys/stat.h>
5030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5031 struct buf { int x; };
5032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5033 static char *e (p, i)
5039 static char *f (char * (*g) (char **, int), char **p, ...)
5044 s = g (p, va_arg (v,int));
5049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5050 function prototypes and stuff, but not '\xHH' hex character constants.
5051 These don't provoke an error unfortunately, instead are silently treated
5052 as 'x'. The following induces an error, until -std is added to get
5053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5054 array size at least. It's necessary to write '\x00'==0 to get something
5055 that's true only with -std. */
5056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5059 inside strings and character constants. */
5061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5063 int test (int i, double x);
5064 struct s1 {int (*f) (int a);};
5065 struct s2 {int (*f) (double a);};
5066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5080 CC="$ac_save_CC $ac_arg"
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082 ac_cv_prog_cc_c89=$ac_arg
5084 rm -f core conftest.err conftest.$ac_objext
5085 test "x$ac_cv_prog_cc_c89" != "xno" && break
5087 rm -f conftest.$ac_ext
5092 case "x$ac_cv_prog_cc_c89" in
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5095 $as_echo "none needed" >&6; } ;;
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5098 $as_echo "unsupported" >&6; } ;;
5100 CC="$CC $ac_cv_prog_cc_c89"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5102 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5104 if test "x$ac_cv_prog_cc_c89" != xno; then :
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 # Put a plausible default for CC_FOR_BUILD in Makefile.
5116 if test "x$cross_compiling" = "xno"; then
5117 CC_FOR_BUILD='$(CC)'
5121 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5124 # If we haven't got the data from the intl directory,
5125 # assume NLS is disabled.
5134 if test -f ../../intl/config.intl; then
5135 . ../../intl/config.intl
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5138 $as_echo_n "checking whether NLS is requested... " >&6; }
5139 if test x"$USE_NLS" != xyes; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5144 $as_echo "yes" >&6; }
5146 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5150 $as_echo_n "checking for catalogs to be installed... " >&6; }
5151 # Look for .po and .gmo files in the source directory.
5154 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5155 # If there aren't any .gmo files the shell will give us the
5156 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5158 case "$cat" in *\**)
5161 # The quadruple backslash is collapsed to a double backslash
5162 # by the backticks, then collapsed again by the double quotes,
5163 # leaving us with one backslash in the sed expression (right
5164 # before the dot that mustn't act as a wildcard).
5165 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5166 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
5167 # The user is allowed to set LINGUAS to a list of languages to
5168 # install catalogs for. If it's empty that means "all of them."
5169 if test "x$LINGUAS" = x; then
5170 CATALOGS="$CATALOGS $cat"
5171 XLINGUAS="$XLINGUAS $lang"
5173 case "$LINGUAS" in *$lang*)
5174 CATALOGS="$CATALOGS $cat"
5175 XLINGUAS="$XLINGUAS $lang"
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5182 $as_echo "$LINGUAS" >&6; }
5196 # Check whether --enable-sim-alignment was given.
5197 if test "${enable_sim_alignment+set}" = set; then :
5198 enableval=$enable_sim_alignment; case "${enableval}" in
5199 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5200 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5201 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
5202 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
5204 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5205 echo "Setting alignment flags = $sim_alignment" 6>&1
5212 # Check whether --enable-sim-assert was given.
5213 if test "${enable_sim_assert+set}" = set; then :
5214 enableval=$enable_sim_assert; case "${enableval}" in
5215 yes) sim_assert="-DWITH_ASSERT=1";;
5216 no) sim_assert="-DWITH_ASSERT=0";;
5217 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
5219 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
5220 echo "Setting assert flags = $sim_assert" 6>&1
5227 # Check whether --enable-sim-bitsize was given.
5228 if test "${enable_sim_bitsize+set}" = set; then :
5229 enableval=$enable_sim_bitsize; case "${enableval}" in
5230 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
5231 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
5233 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5234 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5241 # Check whether --enable-sim-bswap was given.
5242 if test "${enable_sim_bswap+set}" = set; then :
5243 enableval=$enable_sim_bswap; case "${enableval}" in
5244 yes) sim_bswap="-DWITH_BSWAP=1";;
5245 no) sim_bswap="-DWITH_BSWAP=0";;
5246 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
5248 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
5249 echo "Setting bswap flags = $sim_bswap" 6>&1
5256 # Check whether --enable-sim-cflags was given.
5257 if test "${enable_sim_cflags+set}" = set; then :
5258 enableval=$enable_sim_cflags; case "${enableval}" in
5259 yes) sim_cflags="-O2 -fomit-frame-pointer";;
5261 *) sim_cflags=`echo "${enableval}" |
sed -e "s/,/ /g"`;;
5263 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
5264 echo "Setting sim cflags = $sim_cflags" 6>&1
5271 # Check whether --enable-sim-config was given.
5272 if test "${enable_sim_config+set}" = set; then :
5273 enableval=$enable_sim_config; case "${enableval}" in
5274 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
5275 *) if test -f "${srcdir}/${enableval}"; then
5276 sim_config="${enableval}";
5277 elif test -f "${srcdir}/${enableval}-config.h"; then
5278 sim_config="${enableval}-config.h"
5280 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
5281 sim_config=std-config.h
5284 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5285 echo "Setting config flags = $sim_config" 6>&1
5288 sim_config="std-config.h"
5289 if test x"$silent" != x"yes"; then
5290 echo "Setting config flags = $sim_config" 6>&1
5295 # Check whether --enable-sim-decode-mechanism was given.
5296 if test "${enable_sim_decode_mechanism+set}" = set; then :
5297 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
5298 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
5299 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
5300 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
5301 sim_decode_mechanism="switch";;
5303 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5304 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5307 sim_decode_mechanism=""
5308 if test x"$silent" != x"yes"; then
5309 echo "Setting decode mechanism flags = $sim_decode_mechanism"
5314 # Check whether --enable-sim-default-model was given.
5315 if test "${enable_sim_default_model+set}" = set; then :
5316 enableval=$enable_sim_default_model; case "${enableval}" in
5317 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
5318 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5320 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5321 echo "Setting default-model flags = $sim_default_model" 6>&1
5324 sim_default_model=""
5328 # Check whether --enable-sim-duplicate was given.
5329 if test "${enable_sim_duplicate+set}" = set; then :
5330 enableval=$enable_sim_duplicate; case "${enableval}" in
5333 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
5335 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5336 echo "Setting duplicate flags = $sim_dup" 6>&1
5340 if test x"$silent" != x"yes"; then
5341 echo "Setting duplicate flags = $sim_dup" 6>&1
5346 # Check whether --enable-sim-endian was given.
5347 if test "${enable_sim_endian+set}" = set; then :
5348 enableval=$enable_sim_endian; case "${enableval}" in
5349 yes) case "$target" in
5350 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5351 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5352 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5354 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5355 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5356 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5357 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5359 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5360 echo "Setting endian flags = $sim_endian" 6>&1
5367 # Check whether --enable-sim-env was given.
5368 if test "${enable_sim_env+set}" = set; then :
5369 enableval=$enable_sim_env; case "${enableval}" in
5370 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5371 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5372 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5373 no) sim_env="-DWITH_ENVIRONMENT=0";;
5374 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
5376 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
5377 echo "Setting env flags = $sim_env" 6>&1
5384 # Check whether --enable-sim-filter was given.
5385 if test "${enable_sim_filter+set}" = set; then :
5386 enableval=$enable_sim_filter; case "${enableval}" in
5387 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
5389 *) sim_filter="-F $enableval";;
5391 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5392 echo "Setting filter flags = $sim_filter" 6>&1
5395 sim_filter="-F 32,f,o"
5396 if test x"$silent" != x"yes"; then
5397 echo "Setting filter flags = $sim_filter" 6>&1
5402 # Check whether --enable-sim-float was given.
5403 if test "${enable_sim_float+set}" = set; then :
5404 enableval=$enable_sim_float; case "${enableval}" in
5405 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5406 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5407 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5408 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5409 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
5411 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5412 echo "Setting float flags = $sim_float" 6>&1
5417 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5418 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
5426 $as_echo_n "checking if union semun defined... " >&6; }
5427 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5433 #include <sys/types.h>
5434 #include <sys/ipc.h>
5435 #include <sys/sem.h>
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445 ac_cv_has_union_semun="yes"
5447 ac_cv_has_union_semun="no"
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
5451 $as_echo "$ac_cv_has_union_semun" >&6; }
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
5455 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
5458 if test "$ac_cv_has_union_semun" = "yes"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5460 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
5461 if test "${ac_cv_sysv_sem+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5465 if test "$cross_compiling" = yes; then :
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5471 #include <sys/types.h>
5472 #include <sys/ipc.h>
5473 #include <sys/sem.h>
5477 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5480 arg.val = 0; /* avoid implicit type cast to union */
5481 if (semctl(id, 0, IPC_RMID, arg) == -1)
5487 if ac_fn_c_try_run "$LINENO"; then :
5488 ac_cv_sysv_sem="yes"
5492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5493 conftest.$ac_objext conftest.beam conftest.$ac_ext
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5499 $as_echo "$ac_cv_sysv_sem" >&6; }
5500 else # semun is not defined
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5502 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
5503 if test "${ac_cv_sysv_sem+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5507 if test "$cross_compiling" = yes; then :
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5513 #include <sys/types.h>
5514 #include <sys/ipc.h>
5515 #include <sys/sem.h>
5518 struct semid_ds *buf;
5524 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5527 arg.val = 0; /* avoid implicit type cast to union */
5528 if (semctl(id, 0, IPC_RMID, arg) == -1)
5534 if ac_fn_c_try_run "$LINENO"; then :
5535 ac_cv_sysv_sem="yes"
5539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5540 conftest.$ac_objext conftest.beam conftest.$ac_ext
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5546 $as_echo "$ac_cv_sysv_sem" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
5550 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
5551 if test "${ac_cv_sysv_shm+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5555 if test "$cross_compiling" = yes; then :
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5561 #include <sys/types.h>
5562 #include <sys/ipc.h>
5563 #include <sys/shm.h>
5565 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
5568 if (shmctl(id, IPC_RMID, 0) == -1)
5574 if ac_fn_c_try_run "$LINENO"; then :
5575 ac_cv_sysv_shm="yes"
5579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5580 conftest.$ac_objext conftest.beam conftest.$ac_ext
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
5586 $as_echo "$ac_cv_sysv_shm" >&6; }
5588 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5589 sim_sysv_ipc_hw=",sem,shm";
5594 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5596 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5601 # Check whether --enable-sim-hardware was given.
5602 if test "${enable_sim_hardware+set}" = set; then :
5603 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}"
5604 case "${enableval}" in
5606 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
5607 ,*) hardware="${hardware}${enableval}";;
5608 *,) hardware="${enableval}${hardware}";;
5609 *) hardware="${enableval}"'';;
5611 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
5612 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
5613 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5614 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5617 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
5618 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
5619 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
5620 if test x"$silent" != x"yes"; then
5621 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5625 # Check whether --enable-sim-hostbitsize was given.
5626 if test "${enable_sim_hostbitsize+set}" = set; then :
5627 enableval=$enable_sim_hostbitsize; case "${enableval}" in
5628 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
5629 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
5631 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5632 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5640 ac_cpp='$CPP $CPPFLAGS'
5641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5645 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5646 # On Suns, sometimes $CPP names a directory.
5647 if test -n "$CPP" && test -d "$CPP"; then
5650 if test -z "$CPP"; then
5651 if test "${ac_cv_prog_CPP+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5654 # Double quotes because CPP needs to be expanded
5655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5658 for ac_c_preproc_warn_flag in '' yes
5660 # Use a header file that comes with gcc, so configuring glibc
5661 # with a fresh cross-compiler works.
5662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5663 # <limits.h> exists even on freestanding compilers.
5664 # On the NeXT, cc -E runs the code through the compiler's parser,
5665 # not just through cpp. "Syntax error" is here to catch this case.
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5669 # include <limits.h>
5671 # include <assert.h>
5675 if ac_fn_c_try_cpp "$LINENO"; then :
5678 # Broken: fails on valid input.
5681 rm -f conftest.err conftest.$ac_ext
5683 # OK, works on sane cases. Now check whether nonexistent headers
5684 # can be detected and how.
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #include <ac_nonexistent.h>
5689 if ac_fn_c_try_cpp "$LINENO"; then :
5690 # Broken: success on invalid input.
5693 # Passes both tests.
5697 rm -f conftest.err conftest.$ac_ext
5700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5701 rm -f conftest.err conftest.
$ac_ext
5702 if $ac_preproc_ok; then :
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5715 $as_echo "$CPP" >&6; }
5717 for ac_c_preproc_warn_flag
in '' yes
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5728 # include <limits.h>
5730 # include <assert.h>
5734 if ac_fn_c_try_cpp
"$LINENO"; then :
5737 # Broken: fails on valid input.
5740 rm -f conftest.err conftest.
$ac_ext
5742 # OK, works on sane cases. Now check whether nonexistent headers
5743 # can be detected and how.
5744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #include <ac_nonexistent.h>
5748 if ac_fn_c_try_cpp
"$LINENO"; then :
5749 # Broken: success on invalid input.
5752 # Passes both tests.
5756 rm -f conftest.err conftest.
$ac_ext
5759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5760 rm -f conftest.err conftest.
$ac_ext
5761 if $ac_preproc_ok; then :
5764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5767 See \`config.log' for more details." "$LINENO" 5; }
5771 ac_cpp
='$CPP $CPPFLAGS'
5772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5778 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5779 if test "${ac_cv_path_GREP+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5782 if test -z "$GREP"; then
5783 ac_path_GREP_found
=false
5784 # Loop through the user's path and test for each of PROGNAME-LIST
5785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5786 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5789 test -z "$as_dir" && as_dir
=.
5790 for ac_prog
in grep ggrep
; do
5791 for ac_exec_ext
in '' $ac_executable_extensions; do
5792 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5793 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5794 # Check for GNU ac_path_GREP and select it if it is found.
5795 # Check for GNU $ac_path_GREP
5796 case `"$ac_path_GREP" --version 2>&1` in
5798 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5801 $as_echo_n 0123456789 >"conftest.in"
5804 cat "conftest.in" "conftest.in" >"conftest.tmp"
5805 mv "conftest.tmp" "conftest.in"
5806 cp "conftest.in" "conftest.nl"
5807 $as_echo 'GREP' >> "conftest.nl"
5808 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5809 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5810 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5811 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5812 # Best one so far, save it but keep looking for a better one
5813 ac_cv_path_GREP
="$ac_path_GREP"
5814 ac_path_GREP_max
=$ac_count
5816 # 10*(2^10) chars as input seems more than enough
5817 test $ac_count -gt 10 && break
5819 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5822 $ac_path_GREP_found && break 3
5827 if test -z "$ac_cv_path_GREP"; then
5828 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5831 ac_cv_path_GREP
=$GREP
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5836 $as_echo "$ac_cv_path_GREP" >&6; }
5837 GREP
="$ac_cv_path_GREP"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5841 $as_echo_n "checking for egrep... " >&6; }
5842 if test "${ac_cv_path_EGREP+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5845 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5846 then ac_cv_path_EGREP
="$GREP -E"
5848 if test -z "$EGREP"; then
5849 ac_path_EGREP_found
=false
5850 # Loop through the user's path and test for each of PROGNAME-LIST
5851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5852 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5855 test -z "$as_dir" && as_dir
=.
5856 for ac_prog
in egrep; do
5857 for ac_exec_ext
in '' $ac_executable_extensions; do
5858 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5859 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5860 # Check for GNU ac_path_EGREP and select it if it is found.
5861 # Check for GNU $ac_path_EGREP
5862 case `"$ac_path_EGREP" --version 2>&1` in
5864 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5867 $as_echo_n 0123456789 >"conftest.in"
5870 cat "conftest.in" "conftest.in" >"conftest.tmp"
5871 mv "conftest.tmp" "conftest.in"
5872 cp "conftest.in" "conftest.nl"
5873 $as_echo 'EGREP' >> "conftest.nl"
5874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5875 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5876 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5878 # Best one so far, save it but keep looking for a better one
5879 ac_cv_path_EGREP
="$ac_path_EGREP"
5880 ac_path_EGREP_max
=$ac_count
5882 # 10*(2^10) chars as input seems more than enough
5883 test $ac_count -gt 10 && break
5885 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5888 $ac_path_EGREP_found && break 3
5893 if test -z "$ac_cv_path_EGREP"; then
5894 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5897 ac_cv_path_EGREP
=$EGREP
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5903 $as_echo "$ac_cv_path_EGREP" >&6; }
5904 EGREP
="$ac_cv_path_EGREP"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5908 $as_echo_n "checking for ANSI C header files... " >&6; }
5909 if test "${ac_cv_header_stdc+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5927 if ac_fn_c_try_compile
"$LINENO"; then :
5928 ac_cv_header_stdc
=yes
5930 ac_cv_header_stdc
=no
5932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5934 if test $ac_cv_header_stdc = yes; then
5935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942 $EGREP "memchr" >/dev
/null
2>&1; then :
5945 ac_cv_header_stdc
=no
5951 if test $ac_cv_header_stdc = yes; then
5952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959 $EGREP "free" >/dev
/null
2>&1; then :
5962 ac_cv_header_stdc
=no
5968 if test $ac_cv_header_stdc = yes; then
5969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5970 if test "$cross_compiling" = yes; then :
5973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5977 #if ((' ' & 0x0FF) == 0x020)
5978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5981 # define ISLOWER(c) \
5982 (('a' <= (c) && (c) <= 'i') \
5983 || ('j' <= (c) && (c) <= 'r') \
5984 || ('s' <= (c) && (c) <= 'z'))
5985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5993 for (i = 0; i < 256; i++)
5994 if (XOR (islower (i), ISLOWER (i))
5995 || toupper (i) != TOUPPER (i))
6000 if ac_fn_c_try_run
"$LINENO"; then :
6003 ac_cv_header_stdc
=no
6005 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6006 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6012 $as_echo "$ac_cv_header_stdc" >&6; }
6013 if test $ac_cv_header_stdc = yes; then
6015 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6020 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6021 inttypes.h stdint.h unistd.h
6023 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6026 eval as_val
=\$
$as_ac_Header
6027 if test "x$as_val" = x
""yes; then :
6028 cat >>confdefs.h
<<_ACEOF
6029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 # Check whether --enable-sim-hostendian was given.
6038 if test "${enable_sim_hostendian+set}" = set; then :
6039 enableval
=$enable_sim_hostendian; case "${enableval}" in
6040 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
6041 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6042 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6043 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
6045 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
6046 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6050 if test "x$cross_compiling" = "xno"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6052 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6053 if test "${ac_cv_c_bigendian+set}" = set; then :
6054 $as_echo_n "(cached) " >&6
6056 ac_cv_c_bigendian
=unknown
6057 # See if we're dealing with a universal compiler.
6058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 #ifndef __APPLE_CC__
6061 not a universal capable compiler
6066 if ac_fn_c_try_compile
"$LINENO"; then :
6068 # Check for potential -arch flags. It is not universal unless
6069 # there are at least two -arch flags with different values.
6072 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6073 if test -n "$ac_prev"; then
6075 i?
86 | x86_64 | ppc | ppc64
)
6076 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
6079 ac_cv_c_bigendian
=universal
6085 elif test "x$ac_word" = "x-arch"; then
6090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6091 if test $ac_cv_c_bigendian = unknown
; then
6092 # See if sys/param.h defines the BYTE_ORDER macro.
6093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 #include <sys/types.h>
6096 #include <sys/param.h>
6101 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6102 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6111 if ac_fn_c_try_compile
"$LINENO"; then :
6112 # It does; now see whether it defined to BIG_ENDIAN or not.
6113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 #include <sys/types.h>
6116 #include <sys/param.h>
6121 #if BYTE_ORDER != BIG_ENDIAN
6129 if ac_fn_c_try_compile
"$LINENO"; then :
6130 ac_cv_c_bigendian
=yes
6132 ac_cv_c_bigendian
=no
6134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6138 if test $ac_cv_c_bigendian = unknown
; then
6139 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6147 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6155 if ac_fn_c_try_compile
"$LINENO"; then :
6156 # It does; now see whether it defined to _BIG_ENDIAN or not.
6157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6172 if ac_fn_c_try_compile
"$LINENO"; then :
6173 ac_cv_c_bigendian
=yes
6175 ac_cv_c_bigendian
=no
6177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6181 if test $ac_cv_c_bigendian = unknown
; then
6182 # Compile a test program.
6183 if test "$cross_compiling" = yes; then :
6184 # Try to guess by grepping values from an object file.
6185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 short int ascii_mm[] =
6188 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6189 short int ascii_ii[] =
6190 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6191 int use_ascii (int i) {
6192 return ascii_mm[i] + ascii_ii[i];
6194 short int ebcdic_ii[] =
6195 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6196 short int ebcdic_mm[] =
6197 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6198 int use_ebcdic (int i) {
6199 return ebcdic_mm[i] + ebcdic_ii[i];
6206 return use_ascii (foo) == use_ebcdic (foo);
6211 if ac_fn_c_try_compile
"$LINENO"; then :
6212 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6213 ac_cv_c_bigendian
=yes
6215 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6216 if test "$ac_cv_c_bigendian" = unknown
; then
6217 ac_cv_c_bigendian
=no
6219 # finding both strings is unlikely to happen, but who knows?
6220 ac_cv_c_bigendian
=unknown
6224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 $ac_includes_default
6233 /* Are we little or big endian? From Harbison&Steele. */
6237 char c[sizeof (long int)];
6240 return u.c[sizeof (long int) - 1] == 1;
6246 if ac_fn_c_try_run
"$LINENO"; then :
6247 ac_cv_c_bigendian
=no
6249 ac_cv_c_bigendian
=yes
6251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6258 $as_echo "$ac_cv_c_bigendian" >&6; }
6259 case $ac_cv_c_bigendian in #(
6261 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6267 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6271 as_fn_error
"unknown endianness
6272 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6275 if test $ac_cv_c_bigendian = yes; then
6276 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6278 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6281 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
6286 # Check whether --enable-sim-icache was given.
6287 if test "${enable_sim_icache+set}" = set; then :
6288 enableval
=$enable_sim_icache; icache
="-R"
6289 case "${enableval}" in
6290 yes) icache
="1024"; sim_icache
="-I $icache";;
6291 no
) sim_icache
="-R";;
6294 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6296 define
) sim_icache
="${sim_icache}R";;
6297 semantic
) sim_icache
="${sim_icache}C";;
6298 insn
) sim_icache
="${sim_icache}S";;
6299 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
6300 *) as_fn_error
"\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache
="";;
6303 sim_icache
="${sim_icache}I $icache";;
6305 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
6306 echo "Setting instruction cache size to $icache ($sim_icache)"
6309 sim_icache
="-CSRI 1024"
6310 if test x
"$silent" != x
"yes"; then
6311 echo "Setting instruction cache size to 1024 ($sim_icache)"
6316 # Check whether --enable-sim-inline was given.
6317 if test "${enable_sim_inline+set}" = set; then :
6318 enableval
=$enable_sim_inline; sim_inline
=""
6319 case "$enableval" in
6320 no
) sim_inline
="-DDEFAULT_INLINE=0";;
6321 0) sim_inline
="-DDEFAULT_INLINE=0";;
6322 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
6323 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6324 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6327 *_INLINE
=*) new_flag
="-D$x";;
6328 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6329 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
6330 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
6332 if test x
"$sim_inline" = x
""; then
6333 sim_inline
="$new_flag"
6335 sim_inline
="$sim_inline $new_flag"
6339 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
6340 echo "Setting inline flags = $sim_inline" 6>&1
6343 if test x
"$GCC" != ""; then
6344 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6345 if test x
"$silent" != x
"yes"; then
6346 echo "Setting inline flags = $sim_inline" 6>&1
6354 # Check whether --enable-sim-jump was given.
6355 if test "${enable_sim_jump+set}" = set; then :
6356 enableval
=$enable_sim_jump; case "${enableval}" in
6357 yes) sim_jump
="-J";;
6359 *) as_fn_error
"\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump
="";;
6361 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
6362 echo "Setting jump flag = $sim_jump" 6>&1
6366 if test x
"$silent" != x
"yes"; then
6367 echo "Setting jump flag = $sim_jump" 6>&1
6372 # Check whether --enable-sim-line-nr was given.
6373 if test "${enable_sim_line_nr+set}" = set; then :
6374 enableval
=$enable_sim_line_nr; case "${enableval}" in
6375 yes) sim_line_nr
="";;
6376 no
) sim_line_nr
="-L";;
6377 *) as_fn_error
"\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr
="";;
6379 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
6380 echo "Setting warning flags = $sim_line_nr" 6>&1
6387 # Check whether --enable-sim-model was given.
6388 if test "${enable_sim_model+set}" = set; then :
6389 enableval
=$enable_sim_model; case "${enableval}" in
6390 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
6391 *) sim_model
="-DWITH_MODEL=${enableval}";;
6393 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
6394 echo "Setting model flags = $sim_model" 6>&1
6401 # Check whether --enable-sim-model-issue was given.
6402 if test "${enable_sim_model_issue+set}" = set; then :
6403 enableval
=$enable_sim_model_issue; case "${enableval}" in
6404 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6405 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
6406 *) as_fn_error
"\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue
="";;
6408 if test x
"$silent" != x
"yes"; then
6409 echo "Setting model-issue flags = $sim_model_issue" 6>&1
6416 # Check whether --enable-sim-monitor was given.
6417 if test "${enable_sim_monitor+set}" = set; then :
6418 enableval
=$enable_sim_monitor; case "${enableval}" in
6419 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6420 no
) sim_monitor
="-DWITH_MON=0";;
6421 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6422 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
6423 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env
="";;
6425 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
6426 echo "Setting monitor flags = $sim_monitor" 6>&1
6433 # Check whether --enable-sim-opcode was given.
6434 if test "${enable_sim_opcode+set}" = set; then :
6435 enableval
=$enable_sim_opcode; case "${enableval}" in
6436 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
6437 *) if test -f "${srcdir}/${enableval}"; then
6438 sim_opcode
="${enableval}"
6439 elif test -f "${srcdir}/dc-${enableval}"; then
6440 sim_opcode
="dc-${enableval}"
6442 as_fn_error
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
6443 sim_opcode
="dc-complex"
6446 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
6447 echo "Setting opcode flags = $sim_opcode" 6>&1
6450 sim_opcode
="dc-complex"
6451 if test x
"$silent" != x
"yes"; then
6452 echo "Setting opcode flags = $sim_opcode"
6457 # Check whether --enable-sim-packages was given.
6458 if test "${enable_sim_packages+set}" = set; then :
6459 enableval
=$enable_sim_packages; packages
=disklabel
6460 case "${enableval}" in
6462 no
) as_fn_error
"\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages
="";;
6463 ,*) packages
="${packages}${enableval}";;
6464 *,) packages
="${enableval}${packages}";;
6465 *) packages
="${enableval}"'';;
6467 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6468 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6469 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
6470 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6474 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6475 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6476 if test x
"$silent" != x
"yes"; then
6477 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6482 # Check whether --enable-sim-regparm was given.
6483 if test "${enable_sim_regparm+set}" = set; then :
6484 enableval
=$enable_sim_regparm; case "${enableval}" in
6485 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
6486 no
) sim_regparm
="" ;;
6487 yes) sim_regparm
="-DWITH_REGPARM=3";;
6488 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-regparm\"" "$LINENO" 5; sim_regparm
="";;
6490 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
6491 echo "Setting regparm flags = $sim_regparm" 6>&1
6498 # Check whether --enable-sim-reserved-bits was given.
6499 if test "${enable_sim_reserved_bits+set}" = set; then :
6500 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
6501 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
6502 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
6503 *) as_fn_error
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved
="";;
6505 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
6506 echo "Setting reserved flags = $sim_reserved" 6>&1
6513 # Check whether --enable-sim-smp was given.
6514 if test "${enable_sim_smp+set}" = set; then :
6515 enableval
=$enable_sim_smp; case "${enableval}" in
6516 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
6517 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
6518 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
6520 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
6521 echo "Setting smp flags = $sim_smp" 6>&1
6524 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
6525 if test x
"$silent" != x
"yes"; then
6526 echo "Setting smp flags = $sim_smp" 6>&1
6531 # Check whether --enable-sim-stdcall was given.
6532 if test "${enable_sim_stdcall+set}" = set; then :
6533 enableval
=$enable_sim_stdcall; case "${enableval}" in
6534 no
) sim_stdcall
="" ;;
6535 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
6536 yes) sim_stdcall
="-DWITH_STDCALL=1";;
6537 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-stdcall\"" "$LINENO" 5; sim_stdcall
="";;
6539 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
6540 echo "Setting function call flags = $sim_stdcall" 6>&1
6547 # Check whether --enable-sim-stdio was given.
6548 if test "${enable_sim_stdio+set}" = set; then :
6549 enableval
=$enable_sim_stdio; case "${enableval}" in
6550 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6551 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6552 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
6554 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6555 echo "Setting stdio flags = $sim_stdio" 6>&1
6562 # Check whether --enable-sim-switch was given.
6563 if test "${enable_sim_switch+set}" = set; then :
6564 enableval
=$enable_sim_switch; case "${enableval}" in
6565 yes) sim_switch
="-s";;
6567 *) as_fn_error
"\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch
="";;
6569 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
6570 echo "Setting switch flags = $sim_switch" 6>&1
6574 if test x
"$silent" != x
"yes"; then
6575 echo "Setting switch flags = $sim_switch" 6>&1
6580 # Check whether --enable-sim-timebase was given.
6581 if test "${enable_sim_timebase+set}" = set; then :
6582 enableval
=$enable_sim_timebase; case "${enableval}" in
6583 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
6584 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
6585 *) as_fn_error
"\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase
="";;
6587 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
6588 echo "Setting timebase flags = $sim_timebase" 6>&1
6595 # Check whether --enable-sim-trace was given.
6596 if test "${enable_sim_trace+set}" = set; then :
6597 enableval
=$enable_sim_trace; case "${enableval}" in
6598 yes) sim_trace
="-DWITH_TRACE=1";;
6599 no
) sim_trace
="-DWITH_TRACE=0";;
6600 *) as_fn_error
"\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace
="";;
6602 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6603 echo "Setting trace flags = $sim_trace" 6>&1
6610 # Check whether --enable-sim-warnings was given.
6611 if test "${enable_sim_warnings+set}" = set; then :
6612 enableval
=$enable_sim_warnings; case "${enableval}" in
6613 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6614 no
) sim_warnings
="-w";;
6615 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6617 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
6618 echo "Setting warning flags = $sim_warnings" 6>&1
6625 # Check whether --enable-sim-xor-endian was given.
6626 if test "${enable_sim_xor_endian+set}" = set; then :
6627 enableval
=$enable_sim_xor_endian; case "${enableval}" in
6628 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
6629 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
6630 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
6632 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
6633 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6642 # Check whether --with-pkgversion was given.
6643 if test "${with_pkgversion+set}" = set; then :
6644 withval
=$with_pkgversion; case "$withval" in
6645 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6647 *) PKGVERSION
="($withval) " ;;
6658 # Check whether --with-bugurl was given.
6659 if test "${with_bugurl+set}" = set; then :
6660 withval
=$with_bugurl; case "$withval" in
6661 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6664 *) BUGURL
="$withval"
6668 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6678 REPORT_BUGS_TO
="<$BUGURL>"
6679 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6686 cat >>confdefs.h
<<_ACEOF
6687 #define PKGVERSION "$PKGVERSION"
6691 cat >>confdefs.h
<<_ACEOF
6692 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6696 # Make sure we can run config.sub.
6697 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
6698 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6701 $as_echo_n "checking build system type... " >&6; }
6702 if test "${ac_cv_build+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6705 ac_build_alias
=$build_alias
6706 test "x$ac_build_alias" = x
&&
6707 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
6708 test "x$ac_build_alias" = x
&&
6709 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
6710 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6711 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6715 $as_echo "$ac_cv_build" >&6; }
6716 case $ac_cv_build in
6718 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
6721 ac_save_IFS
=$IFS; IFS
='-'
6727 # Remember, the first character of IFS is used to create $*,
6728 # except with old shells:
6731 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6735 $as_echo_n "checking host system type... " >&6; }
6736 if test "${ac_cv_host+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6739 if test "x$host_alias" = x
; then
6740 ac_cv_host
=$ac_cv_build
6742 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6743 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6748 $as_echo "$ac_cv_host" >&6; }
6751 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
6754 ac_save_IFS
=$IFS; IFS
='-'
6760 # Remember, the first character of IFS is used to create $*,
6761 # except with old shells:
6764 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6768 $as_echo_n "checking target system type... " >&6; }
6769 if test "${ac_cv_target+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6772 if test "x$target_alias" = x
; then
6773 ac_cv_target
=$ac_cv_host
6775 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6776 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6781 $as_echo "$ac_cv_target" >&6; }
6782 case $ac_cv_target in
6784 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
6786 target
=$ac_cv_target
6787 ac_save_IFS
=$IFS; IFS
='-'
6793 # Remember, the first character of IFS is used to create $*,
6794 # except with old shells:
6797 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
6800 # The aliases save the names the user supplied, while $host etc.
6801 # will get canonicalized.
6802 test -n "$target_alias" &&
6803 test "$program_prefix$program_suffix$program_transform_name" = \
6805 program_prefix
=${target_alias}-
6807 test "$program_prefix" != NONE
&&
6808 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
6809 # Use a double $ so make ignores it.
6810 test "$program_suffix" != NONE
&&
6811 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
6812 # Double any \ or $.
6813 # By default was `s,x,x', remove it if useless.
6814 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
6815 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
6818 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
6819 # using the same condition.
6821 # Use the system's zlib library.
6822 zlibdir
="-L\$(top_builddir)/../zlib"
6823 zlibinc
="-I\$(top_srcdir)/../zlib"
6825 # Check whether --with-system-zlib was given.
6826 if test "${with_system_zlib+set}" = set; then :
6827 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
6838 # BFD uses libdl when when plugins enabled.
6841 for ac_header
in dlfcn.h
6843 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6845 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
6846 cat >>confdefs.h
<<_ACEOF
6847 #define HAVE_DLFCN_H 1
6854 for ac_header
in windows.h
6856 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6858 if test "x$ac_cv_header_windows_h" = x
""yes; then :
6859 cat >>confdefs.h
<<_ACEOF
6860 #define HAVE_WINDOWS_H 1
6868 # Check whether --enable-plugins was given.
6869 if test "${enable_plugins+set}" = set; then :
6870 enableval
=$enable_plugins; case "${enableval}" in
6873 if test "$maybe_plugins" != "yes" ; then
6874 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6878 plugins
=$maybe_plugins
6882 if test "$plugins" = "yes"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6884 $as_echo_n "checking for library containing dlopen... " >&6; }
6885 if test "${ac_cv_search_dlopen+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6888 ac_func_search_save_LIBS
=$LIBS
6889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6892 /* Override any GCC internal prototype to avoid an error.
6893 Use char because int might match the return type of a GCC
6894 builtin and then its argument prototype would still apply. */
6907 for ac_lib
in '' dl
; do
6908 if test -z "$ac_lib"; then
6909 ac_res
="none required"
6912 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6914 if ac_fn_c_try_link
"$LINENO"; then :
6915 ac_cv_search_dlopen
=$ac_res
6917 rm -f core conftest.err conftest.
$ac_objext \
6919 if test "${ac_cv_search_dlopen+set}" = set; then :
6923 if test "${ac_cv_search_dlopen+set}" = set; then :
6926 ac_cv_search_dlopen
=no
6929 LIBS
=$ac_func_search_save_LIBS
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6932 $as_echo "$ac_cv_search_dlopen" >&6; }
6933 ac_res
=$ac_cv_search_dlopen
6934 if test "$ac_res" != no
; then :
6935 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6942 .
${srcdir}/..
/..
/bfd
/configure.
host
6947 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6952 ac_config_headers
="$ac_config_headers config.h:config.in"
6955 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6956 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
6958 cat >>confdefs.h
<<_ACEOF
6959 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6963 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6968 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6969 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
6971 cat >>confdefs.h
<<_ACEOF
6972 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6976 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6979 case " $LIBOBJS " in
6980 *" fileblocks.$ac_objext "* ) ;;
6981 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6988 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6989 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
6991 cat >>confdefs.h
<<_ACEOF
6992 #define HAVE_STRUCT_STAT_ST_RDEV 1
6996 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7002 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7003 if test "${ac_cv_struct_tm+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
7006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 #include <sys/types.h>
7015 int *p = &tm.tm_sec;
7021 if ac_fn_c_try_compile
"$LINENO"; then :
7022 ac_cv_struct_tm
=time.h
7024 ac_cv_struct_tm
=sys
/time.h
7026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7029 $as_echo "$ac_cv_struct_tm" >&6; }
7030 if test $ac_cv_struct_tm = sys
/time.h
; then
7032 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7036 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7037 #include <$ac_cv_struct_tm>
7040 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
7042 cat >>confdefs.h
<<_ACEOF
7043 #define HAVE_STRUCT_TM_TM_ZONE 1
7049 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7051 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7054 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7056 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
7062 cat >>confdefs.h
<<_ACEOF
7063 #define HAVE_DECL_TZNAME $ac_have_decl
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7067 $as_echo_n "checking for tzname... " >&6; }
7068 if test "${ac_cv_var_tzname+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7074 #if !HAVE_DECL_TZNAME
7075 extern char *tzname[];
7081 return tzname[0][0];
7086 if ac_fn_c_try_link
"$LINENO"; then :
7087 ac_cv_var_tzname
=yes
7091 rm -f core conftest.err conftest.
$ac_objext \
7092 conftest
$ac_exeext conftest.
$ac_ext
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7095 $as_echo "$ac_cv_var_tzname" >&6; }
7096 if test $ac_cv_var_tzname = yes; then
7098 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7105 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7106 if test "${ac_cv_type_uid_t+set}" = set; then :
7107 $as_echo_n "(cached) " >&6
7109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 #include <sys/types.h>
7114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7115 $EGREP "uid_t" >/dev
/null
2>&1; then :
7116 ac_cv_type_uid_t
=yes
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7124 $as_echo "$ac_cv_type_uid_t" >&6; }
7125 if test $ac_cv_type_uid_t = no
; then
7127 $as_echo "#define uid_t int" >>confdefs.h
7130 $as_echo "#define gid_t int" >>confdefs.h
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7135 $as_echo_n "checking type of array argument to getgroups... " >&6; }
7136 if test "${ac_cv_type_getgroups+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7139 if test "$cross_compiling" = yes; then :
7140 ac_cv_type_getgroups
=cross
7142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 /* Thanks to Mike Rendell for this test. */
7145 $ac_includes_default
7148 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7155 union { gid_t gval; long int lval; } val;
7158 for (i = 0; i < NGID; i++)
7159 gidset[i] = val.gval;
7160 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7162 /* Exit non-zero if getgroups seems to require an array of ints. This
7163 happens when gid_t is short int but getgroups modifies an array
7165 return n > 0 && gidset[n] != val.gval;
7168 if ac_fn_c_try_run
"$LINENO"; then :
7169 ac_cv_type_getgroups
=gid_t
7171 ac_cv_type_getgroups
=int
7173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7177 if test $ac_cv_type_getgroups = cross
; then
7178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
7185 ac_cv_type_getgroups
=gid_t
7187 ac_cv_type_getgroups
=int
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7194 $as_echo "$ac_cv_type_getgroups" >&6; }
7196 cat >>confdefs.h
<<_ACEOF
7197 #define GETGROUPS_T $ac_cv_type_getgroups
7201 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7202 if test "x$ac_cv_type_mode_t" = x
""yes; then :
7206 cat >>confdefs.h
<<_ACEOF
7212 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7213 if test "x$ac_cv_type_off_t" = x
""yes; then :
7217 cat >>confdefs.h
<<_ACEOF
7218 #define off_t long int
7223 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7224 if test "x$ac_cv_type_pid_t" = x
""yes; then :
7228 cat >>confdefs.h
<<_ACEOF
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7235 $as_echo_n "checking return type of signal handlers... " >&6; }
7236 if test "${ac_cv_type_signal+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 #include <sys/types.h>
7247 return *(signal (0, 0)) (0) == 1;
7252 if ac_fn_c_try_compile
"$LINENO"; then :
7253 ac_cv_type_signal
=int
7255 ac_cv_type_signal
=void
7257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7260 $as_echo "$ac_cv_type_signal" >&6; }
7262 cat >>confdefs.h
<<_ACEOF
7263 #define RETSIGTYPE $ac_cv_type_signal
7267 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7268 if test "x$ac_cv_type_size_t" = x
""yes; then :
7272 cat >>confdefs.h
<<_ACEOF
7273 #define size_t unsigned int
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7279 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7280 if test "${ac_cv_type_uid_t+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
7283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #include <sys/types.h>
7288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289 $EGREP "uid_t" >/dev
/null
2>&1; then :
7290 ac_cv_type_uid_t
=yes
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7298 $as_echo "$ac_cv_type_uid_t" >&6; }
7299 if test $ac_cv_type_uid_t = no
; then
7301 $as_echo "#define uid_t int" >>confdefs.h
7304 $as_echo "#define gid_t int" >>confdefs.h
7309 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
7311 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7312 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7313 eval as_val
=\$
$as_ac_var
7314 if test "x$as_val" = x
""yes; then :
7315 cat >>confdefs.h
<<_ACEOF
7316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7323 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
7325 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7326 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7327 eval as_val
=\$
$as_ac_Header
7328 if test "x$as_val" = x
""yes; then :
7329 cat >>confdefs.h
<<_ACEOF
7330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7338 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
7339 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7341 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7342 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7343 $as_echo_n "(cached) " >&6
7345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 #include <sys/types.h>
7359 if ac_fn_c_try_compile
"$LINENO"; then :
7360 eval "$as_ac_Header=yes"
7362 eval "$as_ac_Header=no"
7364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7366 eval ac_res
=\$
$as_ac_Header
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7368 $as_echo "$ac_res" >&6; }
7369 eval as_val
=\$
$as_ac_Header
7370 if test "x$as_val" = x
""yes; then :
7371 cat >>confdefs.h
<<_ACEOF
7372 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7375 ac_header_dirent
=$ac_hdr; break
7379 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7380 if test $ac_header_dirent = dirent.h
; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7382 $as_echo_n "checking for library containing opendir... " >&6; }
7383 if test "${ac_cv_search_opendir+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
7386 ac_func_search_save_LIBS
=$LIBS
7387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7390 /* Override any GCC internal prototype to avoid an error.
7391 Use char because int might match the return type of a GCC
7392 builtin and then its argument prototype would still apply. */
7405 for ac_lib
in '' dir
; do
7406 if test -z "$ac_lib"; then
7407 ac_res
="none required"
7410 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7412 if ac_fn_c_try_link
"$LINENO"; then :
7413 ac_cv_search_opendir
=$ac_res
7415 rm -f core conftest.err conftest.
$ac_objext \
7417 if test "${ac_cv_search_opendir+set}" = set; then :
7421 if test "${ac_cv_search_opendir+set}" = set; then :
7424 ac_cv_search_opendir
=no
7427 LIBS
=$ac_func_search_save_LIBS
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7430 $as_echo "$ac_cv_search_opendir" >&6; }
7431 ac_res
=$ac_cv_search_opendir
7432 if test "$ac_res" != no
; then :
7433 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7439 $as_echo_n "checking for library containing opendir... " >&6; }
7440 if test "${ac_cv_search_opendir+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7443 ac_func_search_save_LIBS
=$LIBS
7444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7447 /* Override any GCC internal prototype to avoid an error.
7448 Use char because int might match the return type of a GCC
7449 builtin and then its argument prototype would still apply. */
7462 for ac_lib
in '' x
; do
7463 if test -z "$ac_lib"; then
7464 ac_res
="none required"
7467 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7469 if ac_fn_c_try_link
"$LINENO"; then :
7470 ac_cv_search_opendir
=$ac_res
7472 rm -f core conftest.err conftest.
$ac_objext \
7474 if test "${ac_cv_search_opendir+set}" = set; then :
7478 if test "${ac_cv_search_opendir+set}" = set; then :
7481 ac_cv_search_opendir
=no
7484 LIBS
=$ac_func_search_save_LIBS
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7487 $as_echo "$ac_cv_search_opendir" >&6; }
7488 ac_res
=$ac_cv_search_opendir
7489 if test "$ac_res" != no
; then :
7490 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
7499 $as_echo_n "checking for struct termios... " >&6; }
7500 if test "${ac_cv_termios_struct+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 #include <sys/types.h>
7506 #include <sys/termios.h>
7510 static struct termios x;
7520 if ac_fn_c_try_compile
"$LINENO"; then :
7521 ac_cv_termios_struct
=yes
7523 ac_cv_termios_struct
=no
7525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
7529 $as_echo "$ac_cv_termios_struct" >&6; }
7530 if test $ac_cv_termios_struct = yes; then
7531 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
7534 if test "$ac_cv_termios_struct" = "yes"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
7536 $as_echo_n "checking for c_line field in struct termios... " >&6; }
7537 if test "${ac_cv_termios_cline+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 #include <sys/types.h>
7543 #include <sys/termios.h>
7547 static struct termios x; x.c_line = 0;
7552 if ac_fn_c_try_compile
"$LINENO"; then :
7553 ac_cv_termios_cline
=yes
7555 ac_cv_termios_cline
=no
7557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
7562 $as_echo "$ac_cv_termios_cline" >&6; }
7563 if test $ac_cv_termios_cline = yes; then
7564 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
7567 ac_cv_termios_cline
=no
7570 if test "$ac_cv_termios_struct" != "yes"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
7572 $as_echo_n "checking for struct termio... " >&6; }
7573 if test "${ac_cv_termio_struct+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 #include <sys/types.h>
7579 #include <sys/termio.h>
7583 static struct termio x;
7593 if ac_fn_c_try_compile
"$LINENO"; then :
7594 ac_cv_termio_struct
=yes
7596 ac_cv_termio_struct
=no
7598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
7602 $as_echo "$ac_cv_termio_struct" >&6; }
7603 if test $ac_cv_termio_struct = yes; then
7604 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
7607 ac_cv_termio_struct
=no
7610 if test "$ac_cv_termio_struct" = "yes"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
7612 $as_echo_n "checking for c_line field in struct termio... " >&6; }
7613 if test "${ac_cv_termio_cline+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
7616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7618 #include <sys/types.h>
7619 #include <sys/termio.h>
7623 static struct termio x; x.c_line = 0;
7628 if ac_fn_c_try_compile
"$LINENO"; then :
7629 ac_cv_termio_cline
=yes
7631 ac_cv_termio_cline
=no
7633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
7638 $as_echo "$ac_cv_termio_cline" >&6; }
7639 if test $ac_cv_termio_cline = yes; then
7640 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
7643 ac_cv_termio_cline
=no
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
7647 $as_echo_n "checking for struct statfs... " >&6; }
7648 if test "${ac_cv_struct_statfs+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
7651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 #include <sys/types.h>
7654 #ifdef HAVE_SYS_PARAM_H
7655 #include <sys/param.h>
7657 #ifdef HAVE_SYS_MOUNT_H
7658 #include <sys/mount.h>
7660 #ifdef HAVE_SYS_VFS_H
7661 #include <sys/vfs.h>
7663 #ifdef HAVE_SYS_STATFS_H
7664 #include <sys/statfs.h>
7669 static struct statfs s;
7674 if ac_fn_c_try_compile
"$LINENO"; then :
7675 ac_cv_struct_statfs
=yes
7677 ac_cv_struct_statfs
=no
7679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
7683 $as_echo "$ac_cv_struct_statfs" >&6; }
7684 if test $ac_cv_struct_statfs = yes; then
7686 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
7690 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7691 if test "x$ac_cv_type_long_long" = x
""yes; then :
7693 cat >>confdefs.h
<<_ACEOF
7694 #define HAVE_LONG_LONG 1
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
7703 $as_echo_n "checking for /dev/zero... " >&6; }
7704 if test "${ac_cv_devzero+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7707 if test "$cross_compiling" = yes; then :
7710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7716 int fd = open ("/dev/zero", O_RDONLY);
7719 for (i = 0; i < sizeof (buf); i++)
7721 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
7723 for (i = 0; i < sizeof (buf); i++)
7729 if ac_fn_c_try_run
"$LINENO"; then :
7734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7735 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
7741 $as_echo "$ac_cv_devzero" >&6; }
7742 if test $ac_cv_devzero = yes; then
7743 sim_devzero
="-DHAVE_DEVZERO"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
7749 $as_echo_n "checking for common simulator directory... " >&6; }
7750 if test -f "${srcdir}/../common/callback.c"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7752 $as_echo "yes" >&6; }
7753 sim_callback
="callback.o targ-map.o"
7754 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
7763 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
7764 if test -f "${srcdir}/../common/sim-fpu.c"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7766 $as_echo "yes" >&6; }
7767 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7776 # Since we run commands on the build system, we have to create a
7777 # separate config header for the build system if build != host.
7778 if test x
$host = x
$build; then
7779 ac_config_commands
="$ac_config_commands build-config.h"
7787 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
7788 *) realsrcdir
=..
/${srcdir};;
7790 saved_CFLAGS
="${CFLAGS}"
7791 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
7792 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
7793 ${realsrcdir}/configure \
7794 --enable-languages=${enable_languages-all} \
7795 --target=$target_alias --host=$build_alias --build=$build_alias
7796 CFLAGS
="${saved_CFLAGS}"
7797 mv config.h ..
/build-config.h
7810 if test -n "$ac_tool_prefix"; then
7811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7812 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7818 if test -n "$RANLIB"; then
7819 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir
=.
7826 for ac_exec_ext
in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 RANLIB
=$ac_cv_prog_RANLIB
7839 if test -n "$RANLIB"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7841 $as_echo "$RANLIB" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7849 if test -z "$ac_cv_prog_RANLIB"; then
7850 ac_ct_RANLIB
=$RANLIB
7851 # Extract the first word of "ranlib", so it can be a program name with args.
7852 set dummy ranlib
; ac_word
=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7858 if test -n "$ac_ct_RANLIB"; then
7859 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir
=.
7866 for ac_exec_ext
in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7879 if test -n "$ac_ct_RANLIB"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7881 $as_echo "$ac_ct_RANLIB" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7887 if test "x$ac_ct_RANLIB" = x
; then
7890 case $cross_compiling:$ac_tool_warned in
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7894 ac_tool_warned
=yes ;;
7896 RANLIB
=$ac_ct_RANLIB
7899 RANLIB
="$ac_cv_prog_RANLIB"
7947 ac_config_files
="$ac_config_files Makefile"
7949 ac_config_commands
="$ac_config_commands default"
7951 cat >confcache
<<\_ACEOF
7952 # This file is a shell script that caches the results of configure
7953 # tests run on this system so they can be shared between configure
7954 # scripts and configure runs, see configure's option --config-cache.
7955 # It is not useful on other systems. If it contains results you don't
7956 # want to keep, you may remove or edit it.
7958 # config.status only pays attention to the cache file if you give it
7959 # the --recheck option to rerun configure.
7961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7967 # The following way of writing the cache mishandles newlines in values,
7968 # but we know of no workaround that is simple, portable, and efficient.
7969 # So, we kill variables containing newlines.
7970 # Ultrix sh set writes to stderr and can't be redirected directly,
7971 # and sets the high bit in the cache file unless we assign to the vars.
7973 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7974 eval ac_val
=\$
$ac_var
7978 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7982 _ | IFS | as_nl
) ;; #(
7983 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7984 *) { eval $ac_var=; unset $ac_var;} ;;
7990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7991 *${as_nl}ac_space
=\
*)
7992 # `set' does not quote correctly, so add quotes: double-quote
7993 # substitution turns \\\\ into \\, and sed turns \\ into \.
7996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7999 # `set' quotes correctly as required by POSIX, so do not add quotes.
8000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8013 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8014 if test -w "$cache_file"; then
8015 test "x$cache_file" != "x/dev/null" &&
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8017 $as_echo "$as_me: updating cache $cache_file" >&6;}
8018 cat confcache
>$cache_file
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8021 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8026 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8027 # Let make expand exec_prefix.
8028 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8030 DEFS
=-DHAVE_CONFIG_H
8034 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8035 # 1. Remove the extension, and $U if already installed.
8036 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8037 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8038 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8039 # will be set to the directory where LIBOBJS objects are built.
8040 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8041 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8045 LTLIBOBJS
=$ac_ltlibobjs
8050 : ${CONFIG_STATUS=./config.status}
8052 ac_clean_files_save
=$ac_clean_files
8053 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8055 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8057 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8059 # Generated by $as_me.
8060 # Run this file to recreate the current configuration.
8061 # Compiler output produced by configure, useful for debugging
8062 # configure, is in config.log if it exists.
8068 SHELL=\${CONFIG_SHELL-$SHELL}
8071 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8072 ## -------------------- ##
8073 ## M4sh Initialization. ##
8074 ## -------------------- ##
8076 # Be more Bourne compatible
8077 DUALCASE
=1; export DUALCASE
# for MKS sh
8078 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8082 # is contrary to our usage. Disable this feature.
8083 alias -g '${1+"$@"}'='"$@"'
8084 setopt NO_GLOB_SUBST
8086 case `(set -o) 2>/dev/null` in #(
8098 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8099 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8102 # Prefer a ksh shell builtin over an external printf program on Solaris,
8103 # but without wasting forks for bash or zsh.
8104 if test -z "$BASH_VERSION$ZSH_VERSION" \
8105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8106 as_echo='print
-r --'
8107 as_echo_n='print
-rn --'
8108 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8109 as_echo='printf %s
\n'
8110 as_echo_n='printf %s
'
8112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8113 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8114 as_echo_n='/usr
/ucb
/echo -n'
8116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8117 as_echo_n_body='eval
8121 expr "X$arg" : "X\\(.*\\)$as_nl";
8122 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8124 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8126 export as_echo_n_body
8127 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8130 as_echo='sh
-c $as_echo_body as_echo
'
8133 # The user is always right.
8134 if test "${PATH_SEPARATOR+set}" != set; then
8136 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8137 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8144 # We need space, tab and new line, in precisely that order. Quoting is
8145 # there to prevent editors from complaining about space-tab.
8146 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8147 # splitting by setting IFS to empty value.)
8150 # Find who we are. Look in the path if we contain no directory separator.
8152 *[\\/]* ) as_myself=$0 ;;
8153 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 test -z "$as_dir" && as_dir=.
8158 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8164 # We did not find ourselves, most probably we were run as `sh COMMAND'
8165 # in which case we are not to be found in the path.
8166 if test "x$as_myself" = x
; then
8169 if test ! -f "$as_myself"; then
8170 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8174 # Unset variables that we do not need and which cause bugs (e.g. in
8175 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8176 # suppresses any "Segmentation fault" message there. '((' could
8177 # trigger a bug in pdksh 5.2.14.
8178 for as_var
in BASH_ENV ENV MAIL MAILPATH
8179 do eval test x\
${$as_var+set} = xset \
8180 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8193 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8196 # as_fn_error ERROR [LINENO LOG_FD]
8197 # ---------------------------------
8198 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8199 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8200 # script with status $?, using 1 if that was 0.
8203 as_status
=$?
; test $as_status -eq 0 && as_status
=1
8205 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8206 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8208 $as_echo "$as_me: error: $1" >&2
8209 as_fn_exit
$as_status
8213 # as_fn_set_status STATUS
8214 # -----------------------
8215 # Set $? to STATUS, without forking.
8219 } # as_fn_set_status
8223 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8233 # Portably unset VAR.
8236 { eval $1=; unset $1;}
8238 as_unset
=as_fn_unset
8239 # as_fn_append VAR VALUE
8240 # ----------------------
8241 # Append the text in VALUE to the end of the definition contained in VAR. Take
8242 # advantage of any shell optimizations that allow amortized linear growth over
8243 # repeated appends, instead of the typical quadratic growth present in naive
8245 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8246 eval 'as_fn_append ()
8257 # as_fn_arith ARG...
8258 # ------------------
8259 # Perform arithmetic evaluation on the ARGs, and store the result in the
8260 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8261 # must be portable across $(()) and expr.
8262 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8263 eval 'as_fn_arith ()
8270 as_val
=`expr "$@" || test $? -eq 1`
8275 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8276 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8282 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8283 as_basename
=basename
8288 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8294 as_me
=`$as_basename -- "$0" ||
8295 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8296 X"$0" : 'X\(//\)$' \| \
8297 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8299 sed '/^.*\/\([^/][^/]*\)\/*$/{
8313 # Avoid depending upon Character Ranges.
8314 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8315 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8316 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8317 as_cr_digits
='0123456789'
8318 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8320 ECHO_C
= ECHO_N
= ECHO_T
=
8321 case `echo -n x` in #(((((
8323 case `echo 'xy\c'` in
8324 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8326 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8333 rm -f conf$$ conf$$.exe conf$$.
file
8334 if test -d conf$$.dir
; then
8335 rm -f conf$$.dir
/conf$$.
file
8338 mkdir conf$$.dir
2>/dev
/null
8340 if (echo >conf$$.
file) 2>/dev
/null
; then
8341 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8343 # ... but there are two gotchas:
8344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8346 # In both cases, we have to default to `cp -p'.
8347 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8349 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8357 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8358 rmdir conf$$.dir
2>/dev
/null
8363 # Create "$as_dir" as a directory, including parents if necessary.
8368 -*) as_dir
=.
/$as_dir;;
8370 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8374 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8375 *) as_qdir
=$as_dir;;
8377 as_dirs
="'$as_qdir' $as_dirs"
8378 as_dir
=`$as_dirname -- "$as_dir" ||
8379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8380 X"$as_dir" : 'X\(//\)[^/]' \| \
8381 X"$as_dir" : 'X\(//\)$' \| \
8382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8383 $as_echo X"$as_dir" |
8384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8401 test -d "$as_dir" && break
8403 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8404 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8408 if mkdir
-p .
2>/dev
/null
; then
8409 as_mkdir_p
='mkdir -p "$as_dir"'
8411 test -d .
/-p && rmdir .
/-p
8415 if test -x / >/dev
/null
2>&1; then
8418 if ls -dL / >/dev
/null
2>&1; then
8425 if test -d "$1"; then
8431 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8432 ???[sx]*):;;*)false;;esac;fi
8436 as_executable_p
=$as_test_x
8438 # Sed expression to map a string onto a valid CPP name.
8439 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8441 # Sed expression to map a string onto a valid variable name.
8442 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8446 ## ----------------------------------- ##
8447 ## Main body of $CONFIG_STATUS script. ##
8448 ## ----------------------------------- ##
8450 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8453 # Save the log message, to keep $0 and so on meaningful, and to
8454 # report actual input values of CONFIG_FILES etc. instead of their
8455 # values after options handling.
8457 This file was extended by $as_me, which was
8458 generated by GNU Autoconf 2.64. Invocation command line was
8460 CONFIG_FILES = $CONFIG_FILES
8461 CONFIG_HEADERS = $CONFIG_HEADERS
8462 CONFIG_LINKS = $CONFIG_LINKS
8463 CONFIG_COMMANDS = $CONFIG_COMMANDS
8466 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8471 case $ac_config_files in *"
8472 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8475 case $ac_config_headers in *"
8476 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8481 # Files that config.status was made for.
8482 config_files="$ac_config_files"
8483 config_headers="$ac_config_headers"
8484 config_commands="$ac_config_commands"
8488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8490 \`$as_me' instantiates files and other configuration actions
8491 from templates according to the current configuration. Unless the files
8492 and actions are specified as TAGs, all are instantiated by default.
8494 Usage: $0 [OPTION]... [TAG]...
8496 -h, --help print this help, then exit
8497 -V, --version print version number and configuration settings, then exit
8498 -q, --quiet, --silent
8499 do not print progress messages
8500 -d, --debug don't remove temporary files
8501 --recheck update $as_me by reconfiguring in the same conditions
8502 --file=FILE[:TEMPLATE]
8503 instantiate the configuration file FILE
8504 --header=FILE[:TEMPLATE]
8505 instantiate the configuration header FILE
8507 Configuration files:
8510 Configuration headers:
8513 Configuration commands:
8516 Report bugs to the package provider."
8519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8522 configured by $0, generated by GNU Autoconf 2.64,
8523 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8525 Copyright (C) 2009 Free Software Foundation, Inc.
8526 This config.status script is free software; the Free Software Foundation
8527 gives unlimited permission to copy, distribute and modify it."
8532 test -n "\$AWK" || AWK=awk
8535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8536 # The default lists apply if the user does not specify any file.
8542 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8543 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8554 # Handling of the options.
8555 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8557 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8558 $as_echo "$ac_cs_version"; exit ;;
8559 --debug |
--debu |
--deb |
--de |
--d |
-d )
8561 --file |
--fil |
--fi |
--f )
8564 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8566 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8567 ac_need_defaults
=false
;;
8568 --header |
--heade |
--head |
--hea )
8571 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8573 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8574 ac_need_defaults
=false
;;
8576 # Conflict between --help and --header
8577 as_fn_error
"ambiguous option: \`$1'
8578 Try \`$0 --help' for more information.";;
8579 --help |
--hel |
-h )
8580 $as_echo "$ac_cs_usage"; exit ;;
8581 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8582 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8586 -*) as_fn_error
"unrecognized option: \`$1'
8587 Try \`$0 --help' for more information." ;;
8589 *) as_fn_append ac_config_targets
" $1"
8590 ac_need_defaults
=false
;;
8596 ac_configure_extra_args
=
8598 if $ac_cs_silent; then
8600 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8605 if \$ac_cs_recheck; then
8606 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8608 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8609 CONFIG_SHELL='$SHELL'
8615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8620 ## Running $as_me. ##
8626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8631 # Handling of arguments.
8632 for ac_config_target
in $ac_config_targets
8634 case $ac_config_target in
8635 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8636 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
8637 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8638 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8640 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8645 # If the user did not use the arguments to specify the items to instantiate,
8646 # then the envvar interface is used. Set only those that are not.
8647 # We use the long form for the default assignment because of an extremely
8648 # bizarre bug on SunOS 4.1.3.
8649 if $ac_need_defaults; then
8650 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8651 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8652 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8655 # Have a temporary directory for convenience. Make it in the build tree
8656 # simply because there is no reason against having it here, and in addition,
8657 # creating and moving files from /tmp can sometimes cause problems.
8658 # Hook for its removal unless debugging.
8659 # Note that there is a small window in which the directory will not be cleaned:
8660 # after its creation but before its name has been assigned to `$tmp'.
8664 trap 'exit_status=$?
8665 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8667 trap 'as_fn_exit 1' 1 2 13 15
8669 # Create a (secure) tmp directory for tmp files.
8672 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8673 test -n "$tmp" && test -d "$tmp"
8676 tmp
=.
/conf$$
-$RANDOM
8677 (umask 077 && mkdir
"$tmp")
8678 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8680 # Set up the scripts for CONFIG_FILES section.
8681 # No need to generate them if there are no CONFIG_FILES.
8682 # This happens for instance with `./config.status config.h'.
8683 if test -n "$CONFIG_FILES"; then
8686 ac_cr
=`echo X | tr X '\015'`
8687 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8688 # But we know of no other shell where ac_cr would be empty at this
8689 # point, so we can use a bashism as a fallback.
8690 if test "x$ac_cr" = x
; then
8691 eval ac_cr
=\$
\'\\r
\'
8693 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8694 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8700 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8705 echo "cat >conf$$subs.awk <<_ACEOF" &&
8706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8709 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8710 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8712 for ac_last_try in false false false false false :; do
8713 . ./conf$$subs.sh ||
8714 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8716 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8717 if test $ac_delim_n = $ac_delim_num; then
8719 elif $ac_last_try; then
8720 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8722 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8728 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8732 s/^/S["/; s
/!.
*/"]=/
8742 s/\(.\{148\}\).*/\1/
8744 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8749 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8756 s/\(.\{148\}\).*/\1/
8758 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8762 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8767 ' <conf$$subs.awk | sed '
8772 ' >>$CONFIG_STATUS || ac_write_fail=1
8773 rm -f conf$$subs.awk
8774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8776 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8777 for (key in S) S_is_set[key] = 1
8783 nfields = split(line, field, "@
")
8785 len = length(field[1])
8786 for (i = 2; i < nfields; i++) {
8788 keylen = length(key)
8789 if (S_is_set[key]) {
8791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8792 len += length(value) + length(field[++i])
8803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8804 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8805 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8808 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8809 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8812 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8813 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8814 # trailing colons and then remove the whole line if VPATH becomes empty
8815 # (actually we leave an empty line to preserve line numbers).
8816 if test "x
$srcdir" = x.; then
8817 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8821 s/^\([^=]*=[ ]*\):*/\1/
8827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8828 fi # test -n "$CONFIG_FILES"
8830 # Set up the scripts for CONFIG_HEADERS section.
8831 # No need to generate them if there are no CONFIG_HEADERS.
8832 # This happens for instance with `./config.status Makefile'.
8833 if test -n "$CONFIG_HEADERS"; then
8834 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8838 # Transform confdefs.h into an awk script `defines.awk', embedded as
8839 # here-document in config.status, that substitutes the proper values into
8840 # config.h.in to produce config.h.
8842 # Create a delimiter string that does not exist in confdefs.h, to ease
8843 # handling of long lines.
8845 for ac_last_try in false false :; do
8846 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8847 if test -z "$ac_t"; then
8849 elif $ac_last_try; then
8850 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8852 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8856 # For the awk script, D is an array of macro values keyed by name,
8857 # likewise P contains macro parameters if any. Preserve backslash
8858 # newline sequences.
8860 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8862 s/.\{148\}/&'"$ac_delim"'/g
8865 s/^[ ]*#[ ]*define[ ][ ]*/ /
8872 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8874 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8879 D["\
1"]=" \
3\\\\\\n
"\\/p
8881 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8886 s/.\{148\}/&'"$ac_delim"'/g
8891 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8894 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8896 ' <confdefs.h | sed '
8897 s/'"$ac_delim"'/"\\\
8898 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8901 for (key in D) D_is_set[key] = 1
8904 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8906 split(line, arg, " ")
8907 if (arg[1] == "#") {
8911 defundef
= substr
(arg
[1], 2)
8914 split(mac1
, mac2
, "(") #)
8916 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8917 if (D_is_set
[macro
]) {
8918 # Preserve the white space surrounding the "#".
8919 print prefix
"define", macro P
[macro
] D
[macro
]
8922 # Replace #undef with comments. This is necessary, for example,
8923 # in the case of _POSIX_SOURCE, which is predefined and required
8924 # on some systems where configure will not decide to define it.
8925 if (defundef
== "undef") {
8926 print
"/*", prefix defundef
, macro
, "*/"
8934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8935 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8936 fi # test -n "$CONFIG_HEADERS"
8939 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8944 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8946 case $ac_mode$ac_tag in
8948 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8949 :[FH
]-) ac_tag
=-:-;;
8950 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8967 -) ac_f
="$tmp/stdin";;
8968 *) # Look for the file first in the build tree, then in the source tree
8969 # (if the path is not absolute). The absolute path cannot be DOS-style,
8970 # because $ac_f cannot contain `:'.
8974 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8976 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8978 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8979 as_fn_append ac_file_inputs
" '$ac_f'"
8982 # Let's still pretend it is `configure' which instantiates (i.e., don't
8983 # use $as_me), people would be surprised to read:
8984 # /* config.h. Generated by config.status. */
8985 configure_input
='Generated from '`
8986 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8988 if test x
"$ac_file" != x-
; then
8989 configure_input
="$ac_file. $configure_input"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8991 $as_echo "$as_me: creating $ac_file" >&6;}
8993 # Neutralize special characters interpreted by sed in replacement strings.
8994 case $configure_input in #(
8995 *\
&* |
*\|
* |
*\\* )
8996 ac_sed_conf_input
=`$as_echo "$configure_input" |
8997 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8998 *) ac_sed_conf_input
=$configure_input;;
9002 *:-:* |
*:-) cat >"$tmp/stdin" \
9003 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
9008 ac_dir
=`$as_dirname -- "$ac_file" ||
9009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9010 X"$ac_file" : 'X\(//\)[^/]' \| \
9011 X"$ac_file" : 'X\(//\)$' \| \
9012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9013 $as_echo X"$ac_file" |
9014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9031 as_dir
="$ac_dir"; as_fn_mkdir_p
9035 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9037 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9038 # A ".." for each directory in $ac_dir_suffix.
9039 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9040 case $ac_top_builddir_sub in
9041 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9042 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9045 ac_abs_top_builddir
=$ac_pwd
9046 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9047 # for backward compatibility:
9048 ac_top_builddir
=$ac_top_build_prefix
9051 .
) # We are building in place.
9053 ac_top_srcdir
=$ac_top_builddir_sub
9054 ac_abs_top_srcdir
=$ac_pwd ;;
9055 [\\/]* | ?
:[\\/]* ) # Absolute name.
9056 ac_srcdir
=$srcdir$ac_dir_suffix;
9057 ac_top_srcdir
=$srcdir
9058 ac_abs_top_srcdir
=$srcdir ;;
9060 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9061 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9062 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9064 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9074 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9075 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9080 # If the template does not know about datarootdir, expand it.
9081 # FIXME: This hack should be removed a few years after 2.60.
9082 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9093 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9094 *datarootdir
*) ac_datarootdir_seen
=yes;;
9095 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9097 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9100 ac_datarootdir_hack='
9101 s&@datadir@&$datadir&g
9102 s&@docdir@&$docdir&g
9103 s&@infodir@&$infodir&g
9104 s&@localedir@&$localedir&g
9105 s&@mandir@&$mandir&g
9106 s&\\\${datarootdir}&$datarootdir&g' ;;
9110 # Neutralize VPATH when `$srcdir' = `.'.
9111 # Shell code in configure.ac might set extrasub.
9112 # FIXME: do we really want to maintain this feature?
9113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9114 ac_sed_extra="$ac_vpsub
9117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9119 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9120 s|@configure_input@|
$ac_sed_conf_input|
;t t
9121 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9122 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9123 s
&@srcdir@
&$ac_srcdir&;t t
9124 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9125 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9126 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9127 s
&@builddir@
&$ac_builddir&;t t
9128 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9129 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9130 s
&@INSTALL@
&$ac_INSTALL&;t t
9131 $ac_datarootdir_hack
9133 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
9134 || as_fn_error "could not create
$ac_file" "$LINENO" 5
9136 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9137 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9138 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9140 which seems to be undefined. Please make sure it is defined." >&5
9141 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9142 which seems to be undefined. Please make sure it is defined." >&2;}
9146 -) cat "$tmp/out" && rm -f "$tmp/out";;
9147 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9149 || as_fn_error "could not create $ac_file" "$LINENO" 5
9155 if test x"$ac_file" != x-; then
9157 $as_echo "/* $configure_input */" \
9158 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9159 } >"$tmp/config.h" \
9160 || as_fn_error "could not create $ac_file" "$LINENO" 5
9161 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9163 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9166 mv "$tmp/config.h" "$ac_file" \
9167 || as_fn_error "could not create $ac_file" "$LINENO" 5
9170 $as_echo "/* $configure_input */" \
9171 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9172 || as_fn_error "could not create -" "$LINENO" 5
9176 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9177 $as_echo "$as_me: executing $ac_file commands" >&6;}
9182 case $ac_file$ac_mode in
9183 "build-config.h":C) cp config.h build-config.h ;;
9184 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
9192 ac_clean_files=$ac_clean_files_save
9194 test $ac_write_fail = 0 ||
9195 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9198 # configure is writing to config.log, and then calls config.status.
9199 # config.status does its own redirection, appending to config.log.
9200 # Unfortunately, on DOS this fails, as config.log is still kept open
9201 # by configure, so config.status won't be able to
write to it
; its
9202 # output is simply discarded. So we exec the FD to /dev/null,
9203 # effectively closing config.log, so it can be properly (re)opened and
9204 # appended to by config.status. When coming back to configure, we
9205 # need to make the FD available again.
9206 if test "$no_create" != yes; then
9208 ac_config_status_args
=
9209 test "$silent" = yes &&
9210 ac_config_status_args
="$ac_config_status_args --quiet"
9212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9215 # would make configure fail if this is the last instruction.
9216 $ac_cs_success || as_fn_exit $?
9218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}