2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
689 program_transform_name
702 enable_option_checking
704 enable_sim_decode_mechanism
705 enable_sim_default_model
710 enable_sim_hostbitsize
715 enable_sim_model_issue
722 enable_sim_xor_endian
724 ac_precious_vars
='build_alias
735 # Initialize some variables set by options.
737 ac_init_version
=false
738 ac_unrecognized_opts
=
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
749 program_transform_name
=s
,x
,x
,
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir
='${exec_prefix}/bin'
764 sbindir
='${exec_prefix}/sbin'
765 libexecdir
='${exec_prefix}/libexec'
766 datarootdir
='${prefix}/share'
767 datadir
='${datarootdir}'
768 sysconfdir
='${prefix}/etc'
769 sharedstatedir
='${prefix}/com'
770 localstatedir
='${prefix}/var'
771 includedir
='${prefix}/include'
772 oldincludedir
='/usr/include'
773 docdir
='${datarootdir}/doc/${PACKAGE}'
774 infodir
='${datarootdir}/info'
779 libdir
='${exec_prefix}/lib'
780 localedir
='${datarootdir}/locale'
781 mandir
='${datarootdir}/man'
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\
$ac_option
795 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
806 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
808 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
811 -build |
--build |
--buil |
--bui |
--bu)
812 ac_prev
=build_alias
;;
813 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
814 build_alias
=$ac_optarg ;;
816 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
817 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
818 ac_prev
=cache_file
;;
819 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
820 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
821 cache_file
=$ac_optarg ;;
824 cache_file
=config.cache
;;
826 -datadir |
--datadir |
--datadi |
--datad)
828 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
829 datadir
=$ac_optarg ;;
831 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
832 |
--dataroo |
--dataro |
--datar)
833 ac_prev
=datarootdir
;;
834 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
835 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
836 datarootdir
=$ac_optarg ;;
838 -disable-* |
--disable-*)
839 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
842 as_fn_error $?
"invalid feature name: $ac_useropt"
843 ac_useropt_orig
=$ac_useropt
844 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
849 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep
=', ';;
852 eval enable_
$ac_useropt=no
;;
854 -docdir |
--docdir |
--docdi |
--doc |
--do)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
864 -enable-* |
--enable-*)
865 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
868 as_fn_error $?
"invalid feature name: $ac_useropt"
869 ac_useropt_orig
=$ac_useropt
870 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
875 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
876 ac_unrecognized_sep
=', ';;
878 eval enable_
$ac_useropt=\
$ac_optarg ;;
880 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
881 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
882 |
--exec |
--exe |
--ex)
883 ac_prev
=exec_prefix
;;
884 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
885 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
886 |
--exec=* |
--exe=* |
--ex=*)
887 exec_prefix
=$ac_optarg ;;
889 -gas |
--gas |
--ga |
--g)
890 # Obsolete; use --with-gas.
893 -help |
--help |
--hel |
--he |
-h)
895 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
896 ac_init_help
=recursive
;;
897 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
898 ac_init_help
=short
;;
900 -host |
--host |
--hos |
--ho)
901 ac_prev
=host_alias
;;
902 -host=* |
--host=* |
--hos=* |
--ho=*)
903 host_alias
=$ac_optarg ;;
905 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
907 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
909 htmldir
=$ac_optarg ;;
911 -includedir |
--includedir |
--includedi |
--included |
--include \
912 |
--includ |
--inclu |
--incl |
--inc)
913 ac_prev
=includedir
;;
914 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
915 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
916 includedir
=$ac_optarg ;;
918 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
920 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
921 infodir
=$ac_optarg ;;
923 -libdir |
--libdir |
--libdi |
--libd)
925 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
928 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
929 |
--libexe |
--libex |
--libe)
930 ac_prev
=libexecdir
;;
931 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
932 |
--libexe=* |
--libex=* |
--libe=*)
933 libexecdir
=$ac_optarg ;;
935 -localedir |
--localedir |
--localedi |
--localed |
--locale)
937 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
938 localedir
=$ac_optarg ;;
940 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
941 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
942 ac_prev
=localstatedir
;;
943 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
944 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
945 localstatedir
=$ac_optarg ;;
947 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
949 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
953 # Obsolete; use --without-fp.
956 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
957 |
--no-cr |
--no-c |
-n)
960 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
961 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
964 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
965 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
966 |
--oldin |
--oldi |
--old |
--ol |
--o)
967 ac_prev
=oldincludedir
;;
968 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
969 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
970 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
971 oldincludedir
=$ac_optarg ;;
973 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
975 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
978 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
979 |
--program-pre |
--program-pr |
--program-p)
980 ac_prev
=program_prefix
;;
981 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
982 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
983 program_prefix
=$ac_optarg ;;
985 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
986 |
--program-suf |
--program-su |
--program-s)
987 ac_prev
=program_suffix
;;
988 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
989 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
990 program_suffix
=$ac_optarg ;;
992 -program-transform-name |
--program-transform-name \
993 |
--program-transform-nam |
--program-transform-na \
994 |
--program-transform-n |
--program-transform- \
995 |
--program-transform |
--program-transfor \
996 |
--program-transfo |
--program-transf \
997 |
--program-trans |
--program-tran \
998 |
--progr-tra |
--program-tr |
--program-t)
999 ac_prev
=program_transform_name
;;
1000 -program-transform-name=* |
--program-transform-name=* \
1001 |
--program-transform-nam=* |
--program-transform-na=* \
1002 |
--program-transform-n=* |
--program-transform-=* \
1003 |
--program-transform=* |
--program-transfor=* \
1004 |
--program-transfo=* |
--program-transf=* \
1005 |
--program-trans=* |
--program-tran=* \
1006 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1007 program_transform_name
=$ac_optarg ;;
1009 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1011 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1012 pdfdir
=$ac_optarg ;;
1014 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1016 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1019 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1020 |
-silent |
--silent |
--silen |
--sile |
--sil)
1023 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1025 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1027 sbindir
=$ac_optarg ;;
1029 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1030 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1031 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1033 ac_prev
=sharedstatedir
;;
1034 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1035 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1036 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1038 sharedstatedir
=$ac_optarg ;;
1040 -site |
--site |
--sit)
1042 -site=* |
--site=* |
--sit=*)
1045 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1047 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1048 srcdir
=$ac_optarg ;;
1050 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1051 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1052 ac_prev
=sysconfdir
;;
1053 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1054 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1055 sysconfdir
=$ac_optarg ;;
1057 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1058 ac_prev
=target_alias
;;
1059 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1060 target_alias
=$ac_optarg ;;
1062 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1065 -version |
--version |
--versio |
--versi |
--vers |
-V)
1066 ac_init_version
=: ;;
1069 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error $?
"invalid package name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval with_
$ac_useropt=\
$ac_optarg ;;
1084 -without-* |
--without-*)
1085 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error $?
"invalid package name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval with_
$ac_useropt=no
;;
1101 # Obsolete; use --with-x.
1104 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1105 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1106 ac_prev
=x_includes
;;
1107 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1108 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1109 x_includes
=$ac_optarg ;;
1111 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1112 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1113 ac_prev
=x_libraries
;;
1114 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1115 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1116 x_libraries
=$ac_optarg ;;
1118 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1119 Try \`$0 --help' for more information"
1123 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 case $ac_envvar in #(
1126 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1127 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1129 eval $ac_envvar=\
$ac_optarg
1130 export $ac_envvar ;;
1133 # FIXME: should be removed in autoconf 3.0.
1134 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1135 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1136 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1137 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1143 if test -n "$ac_prev"; then
1144 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1145 as_fn_error $?
"missing argument to $ac_option"
1148 if test -n "$ac_unrecognized_opts"; then
1149 case $enable_option_checking in
1151 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 # Check all directory arguments for consistency.
1157 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir
1162 eval ac_val
=\$
$ac_var
1163 # Remove trailing slashes.
1166 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\
$ac_val;;
1169 # Be sure to have absolute directory names.
1171 [\\/$
]* | ?
:[\\/]* ) continue;;
1172 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1174 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1182 target
=$target_alias
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x
; then
1186 if test "x$build_alias" = x
; then
1187 cross_compiling
=maybe
1188 elif test "x$build_alias" != "x$host_alias"; then
1194 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1196 test "$silent" = yes && exec 6>/dev
/null
1199 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di
=`ls -di .` &&
1201 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1202 as_fn_error $?
"working directory cannot be determined"
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 as_fn_error $?
"pwd does not report name of working directory"
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted
=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir
=`$as_dirname -- "$as_myself" ||
1212 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$as_myself" : 'X\(//\)[^/]' \| \
1214 X"$as_myself" : 'X\(//\)$' \| \
1215 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216 $as_echo X"$as_myself" |
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1239 ac_srcdir_defaulted
=no
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1243 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1245 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1247 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1249 # When building in place, set srcdir=.
1250 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 # Remove unnecessary trailing slashes from srcdir.
1254 # Double slashes in file names in object file debugging info
1255 # mess up M-x gdb in Emacs.
1257 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1259 for ac_var
in $ac_precious_vars; do
1260 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1261 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1262 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1263 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1267 # Report the --help message.
1269 if test "$ac_init_help" = "long"; then
1270 # Omit some internal or obsolete options to make the list less imposing.
1271 # This message is too long to be a string in the A/UX 3.1 sh.
1273 \`configure' configures this package to adapt to many kinds of systems.
1275 Usage: $0 [OPTION]... [VAR=VALUE]...
1277 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278 VAR=VALUE. See below for descriptions of some of the useful variables.
1280 Defaults for the options are specified in brackets.
1283 -h, --help display this help and exit
1284 --help=short display options specific to this package
1285 --help=recursive display the short help of all the included packages
1286 -V, --version display version information and exit
1287 -q, --quiet, --silent do not print \`checking ...' messages
1288 --cache-file=FILE cache test results in FILE [disabled]
1289 -C, --config-cache alias for \`--cache-file=config.cache'
1290 -n, --no-create do not create output files
1291 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1293 Installation directories:
1294 --prefix=PREFIX install architecture-independent files in PREFIX
1295 [$ac_default_prefix]
1296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 By default, \`make install' will install all the files in
1300 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1301 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302 for instance \`--prefix=\$HOME'.
1304 For better control, use the options below.
1306 Fine tuning of the installation directories:
1307 --bindir=DIR user executables [EPREFIX/bin]
1308 --sbindir=DIR system admin executables [EPREFIX/sbin]
1309 --libexecdir=DIR program executables [EPREFIX/libexec]
1310 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1313 --libdir=DIR object code libraries [EPREFIX/lib]
1314 --includedir=DIR C header files [PREFIX/include]
1315 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1316 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1317 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1318 --infodir=DIR info documentation [DATAROOTDIR/info]
1319 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1320 --mandir=DIR man documentation [DATAROOTDIR/man]
1321 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1322 --htmldir=DIR html documentation [DOCDIR]
1323 --dvidir=DIR dvi documentation [DOCDIR]
1324 --pdfdir=DIR pdf documentation [DOCDIR]
1325 --psdir=DIR ps documentation [DOCDIR]
1332 if test -n "$ac_init_help"; then
1337 --disable-option-checking ignore unrecognized
--enable/--with options
1338 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1339 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1340 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1341 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1342 --enable-sim-default-model=which Specify default PowerPC to model.
1343 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1344 --enable-sim-filter=rule Specify filter rules.
1345 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1346 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1347 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1348 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1349 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1350 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1351 --enable-sim-model=which Specify PowerPC to model.
1352 --enable-sim-model-issue Specify whether to simulate model specific actions
1353 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1354 --enable-sim-opcode=which Override default opcode lookup.
1355 --enable-sim-packages=list Specify the packages to be included
in the build.
1356 --enable-sim-smp=n Specify number of processors to configure
for.
1357 --enable-sim-switch Use a switch instead of a table
for instruction call.
1358 --enable-sim-timebase Specify whether the PPC timebase is supported.
1359 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1371 Use these variables to override the choices made by
`configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to the package provider.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" ||
1383 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1404 .) # We are building in place.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1426 $SHELL "$ac_srcdir/configure" --help=recursive
1428 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1438 generated by GNU Autoconf 2.69
1440 Copyright (C) 2012 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1447 ## ------------------------ ##
1448 ## Autoconf initialization. ##
1449 ## ------------------------ ##
1451 # ac_fn_c_try_compile LINENO
1452 # --------------------------
1453 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1454 ac_fn_c_try_compile ()
1456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457 rm -f conftest.$ac_objext
1458 if { { ac_try="$ac_compile"
1460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1461 *) ac_try_echo
=$ac_try;;
1463 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464 $as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_compile") 2>conftest.err
1467 if test -s conftest.err
; then
1468 grep -v '^ *+' conftest.err
>conftest.er1
1469 cat conftest.er1
>&5
1470 mv -f conftest.er1 conftest.err
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } && {
1474 test -z "$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1476 } && test -s conftest.
$ac_objext; then :
1479 $as_echo "$as_me: failed program was:" >&5
1480 sed 's/^/| /' conftest.
$ac_ext >&5
1484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1485 as_fn_set_status
$ac_retval
1487 } # ac_fn_c_try_compile
1489 # ac_fn_c_try_run LINENO
1490 # ----------------------
1491 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1492 # that executables *can* be run.
1495 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1496 if { { ac_try
="$ac_link"
1498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_link") 2>&5
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1507 { { case "(($ac_try" in
1508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1509 *) ac_try_echo
=$ac_try;;
1511 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_try") 2>&5
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; }; }; then :
1519 $as_echo "$as_me: program exited with status $ac_status" >&5
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.
$ac_ext >&5
1523 ac_retval
=$ac_status
1525 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527 as_fn_set_status
$ac_retval
1531 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1532 # -------------------------------------------
1533 # Tests whether TYPE exists after having included INCLUDES, setting cache
1534 # variable VAR accordingly.
1535 ac_fn_c_check_type
()
1537 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1539 $as_echo_n "checking for $2... " >&6; }
1540 if eval \
${$3+:} false
; then :
1541 $as_echo_n "(cached) " >&6
1544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1556 if ac_fn_c_try_compile
"$LINENO"; then :
1557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1558 /* end confdefs.h. */
1569 if ac_fn_c_try_compile
"$LINENO"; then :
1574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 $as_echo "$ac_res" >&6; }
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583 } # ac_fn_c_check_type
1585 # ac_fn_c_try_cpp LINENO
1586 # ----------------------
1587 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1590 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1591 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } > conftest.i && {
1607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1639 if ac_fn_c_try_compile "$LINENO"; then :
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 } # ac_fn_c_check_header_compile
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1656 It was created by $as_me, which was
1657 generated by GNU Autoconf 2.69. Invocation command line was
1669 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1670 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1671 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1672 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1673 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1675 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1676 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1678 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1679 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1680 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1681 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1682 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1683 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1684 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 $as_echo "PATH: $as_dir"
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1717 ac_must_keep_next=false
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1728 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1731 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1733 as_fn_append ac_configure_args1 " '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746 -* ) ac_must_keep_next=true ;;
1749 as_fn_append ac_configure_args " '$ac_arg'"
1754 { ac_configure_args0=; unset ac_configure_args0;}
1755 { ac_configure_args1=; unset ac_configure_args1;}
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1767 $as_echo "## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##"
1771 # The following way of writing the cache mishandles newlines in values,
1773 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1774 eval ac_val=\$$ac_var
1778 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1782 _ | IFS | as_nl) ;; #(
1783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1784 *) { eval $ac_var=; unset $ac_var;} ;;
1789 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803 $as_echo "## ----------------- ##
1804 ## Output variables. ##
1805 ## ----------------- ##"
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 $as_echo "$ac_var='\''$ac_val'\''"
1817 if test -n "$ac_subst_files"; then
1818 $as_echo "## ------------------- ##
1819 ## File substitutions. ##
1820 ## ------------------- ##"
1822 for ac_var in $ac_subst_files
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 $as_echo "$ac_var='\''$ac_val'\''"
1833 if test -s confdefs.h; then
1834 $as_echo "## ----------- ##
1841 test "$ac_signal" != 0 &&
1842 $as_echo "$as_me: caught signal $ac_signal"
1843 $as_echo "$as_me: exit $exit_status"
1845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 for ac_signal in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest* confdefs.h
1857 $as_echo "/* confdefs.h */" > confdefs.h
1859 # Predefined preprocessor variables.
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_URL "$PACKAGE_URL"
1886 # Let the site file select an alternate cache file if it wants to.
1887 # Prefer an explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 # We do not want a PATH search for config.site.
1892 case $CONFIG_SITE in #((
1893 -*) ac_site_file1=./$CONFIG_SITE;;
1894 */*) ac_site_file1=$CONFIG_SITE;;
1895 *) ac_site_file1=./$CONFIG_SITE;;
1897 elif test "x$prefix" != xNONE; then
1898 ac_site_file1=$prefix/share/config.site
1899 ac_site_file2=$prefix/etc/config.site
1901 ac_site_file1=$ac_default_prefix/share/config.site
1902 ac_site_file2=$ac_default_prefix/etc/config.site
1904 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1906 test "x$ac_site_file" = xNONE && continue
1907 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1909 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1912 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1914 as_fn_error $? "failed to load site
script $ac_site_file
1915 See \
`config.log' for more details" "$LINENO" 5; }
1919 if test -r "$cache_file"; then
1920 # Some versions of bash will fail to source /dev/null (special files
1921 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1922 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1924 $as_echo "$as_me: loading cache $cache_file" >&6;}
1926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1927 *) . "./$cache_file";;
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1932 $as_echo "$as_me: creating cache $cache_file" >&6;}
1936 # Check that the precious variables saved in the cache have kept the same
1938 ac_cache_corrupted=false
1939 for ac_var in $ac_precious_vars; do
1940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1941 eval ac_new_set=\$ac_env_${ac_var}_set
1942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1943 eval ac_new_val=\$ac_env_${ac_var}_value
1944 case $ac_old_set,$ac_new_set in
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1947 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1951 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1955 if test "x$ac_old_val" != "x$ac_new_val"; then
1956 # differences in whitespace do not lead to failure.
1957 ac_old_val_w=`echo x
$ac_old_val`
1958 ac_new_val_w=`echo x
$ac_new_val`
1959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1962 ac_cache_corrupted=:
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1966 eval $ac_var=\$ac_old_val
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1969 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1974 # Pass precious variables to config.status.
1975 if test "$ac_new_set" = set; then
1977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1978 *) ac_arg=$ac_var=$ac_new_val ;;
1980 case " $ac_configure_args " in
1981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1982 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1986 if $ac_cache_corrupted; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1993 ## -------------------- ##
1994 ## Main body of script. ##
1995 ## -------------------- ##
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2008 if test -f "$ac_dir/install-sh"; then
2010 ac_install_sh="$ac_aux_dir/install-sh -c"
2012 elif test -f "$ac_dir/install.sh"; then
2014 ac_install_sh="$ac_aux_dir/install.sh -c"
2016 elif test -f "$ac_dir/shtool"; then
2018 ac_install_sh="$ac_aux_dir/shtool install -c"
2022 if test -z "$ac_aux_dir"; then
2023 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2035 # Find a good install program. We prefer a C program (faster),
2036 # so one script is as good as another. But avoid the broken or
2037 # incompatible versions:
2038 # SysV /etc/install, /usr/sbin/install
2039 # SunOS /usr/etc/install
2040 # IRIX /sbin/install
2042 # AmigaOS /C/install, which installs bootblocks on floppy discs
2043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2046 # OS/2's system install, which has a completely different semantic
2047 # ./install, which can be erroneously created by make from ./install.sh.
2048 # Reject install programs that cannot install multiple files.
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2050 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2051 if test -z "$INSTALL"; then
2052 if ${ac_cv_path_install+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 # Account for people who put trailing slashes in PATH elements.
2061 case $as_dir/ in #((
2062 ./ | .// | /[cC]/* | \
2063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2064 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2067 # OSF1 and SCO ODT 3.0 have their own names for install.
2068 # Don't use installbsd from OSF since it installs stuff as root
2070 for ac_prog in ginstall scoinst install; do
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2073 if test $ac_prog = install &&
2074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2075 # AIX install. It has an incompatible calling convention.
2077 elif test $ac_prog = install &&
2078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2079 # program-specific install script used by HP pwplus--don't use.
2082 rm -rf conftest.one conftest.two conftest.dir
2083 echo one > conftest.one
2084 echo two > conftest.two
2086 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2087 test -s conftest.one && test -s conftest.two &&
2088 test -s conftest.dir/conftest.one &&
2089 test -s conftest.dir/conftest.two
2091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2104 rm -rf conftest.one conftest.two conftest.dir
2107 if test "${ac_cv_path_install+set}" = set; then
2108 INSTALL=$ac_cv_path_install
2110 # As a last resort, use the slow shell script. Don't cache a
2111 # value for INSTALL within a source directory, because that will
2112 # break other packages using the cache if that directory is
2113 # removed, or if the value is a relative name.
2114 INSTALL=$ac_install_sh
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2118 $as_echo "$INSTALL" >&6; }
2120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2121 # It thinks the first close brace ends the variable substitution.
2122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2133 if test -n "$ac_tool_prefix"; then
2134 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2137 $as_echo_n "checking for $ac_word... " >&6; }
2138 if ${ac_cv_prog_CC+:} false; then :
2139 $as_echo_n "(cached) " >&6
2141 if test -n "$CC"; then
2142 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 if test -n "$CC"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2164 $as_echo "$CC" >&6; }
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2167 $as_echo "no" >&6; }
2172 if test -z "$ac_cv_prog_CC"; then
2174 # Extract the first word of "gcc", so it can be a program name with args.
2175 set dummy gcc; ac_word=$2
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2177 $as_echo_n "checking for $ac_word... " >&6; }
2178 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2179 $as_echo_n "(cached) " >&6
2181 if test -n "$ac_ct_CC"; then
2182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 ac_cv_prog_ac_ct_CC="gcc"
2192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2204 $as_echo "$ac_ct_CC" >&6; }
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2207 $as_echo "no" >&6; }
2210 if test "x$ac_ct_CC" = x; then
2213 case $cross_compiling:$ac_tool_warned in
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2217 ac_tool_warned=yes ;;
2225 if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}cc; ac_word=$2
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2230 $as_echo_n "checking for $ac_word... " >&6; }
2231 if ${ac_cv_prog_CC+:} false; then :
2232 $as_echo_n "(cached) " >&6
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_CC="${ac_tool_prefix}cc"
2245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 if test -n "$CC"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2257 $as_echo "$CC" >&6; }
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2260 $as_echo "no" >&6; }
2266 if test -z "$CC"; then
2267 # Extract the first word of "cc", so it can be a program name with args.
2268 set dummy cc; ac_word=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if ${ac_cv_prog_CC+:} false; then :
2272 $as_echo_n "(cached) " >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2286 ac_prog_rejected=yes
2290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 if test $ac_prog_rejected = yes; then
2298 # We found a bogon in the path, so make sure we never use it.
2299 set dummy $ac_cv_prog_CC
2301 if test $# != 0; then
2302 # We chose a different compiler from the bogus one.
2303 # However, it has the same basename, so the bogon will be chosen
2304 # first if we set CC to just the basename; use the full file name.
2306 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2312 if test -n "$CC"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2314 $as_echo "$CC" >&6; }
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2317 $as_echo "no" >&6; }
2322 if test -z "$CC"; then
2323 if test -n "$ac_tool_prefix"; then
2324 for ac_prog in cl.exe
2326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2329 $as_echo_n "checking for $ac_word... " >&6; }
2330 if ${ac_cv_prog_CC+:} false; then :
2331 $as_echo_n "(cached) " >&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2343 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 if test -n "$CC"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2356 $as_echo "$CC" >&6; }
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2359 $as_echo "no" >&6; }
2363 test -n "$CC" && break
2366 if test -z "$CC"; then
2368 for ac_prog in cl.exe
2370 # Extract the first word of "$ac_prog", so it can be a program name with args.
2371 set dummy $ac_prog; ac_word=$2
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2373 $as_echo_n "checking for $ac_word... " >&6; }
2374 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2375 $as_echo_n "(cached) " >&6
2377 if test -n "$ac_ct_CC"; then
2378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2387 ac_cv_prog_ac_ct_CC="$ac_prog"
2388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2400 $as_echo "$ac_ct_CC" >&6; }
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2403 $as_echo "no" >&6; }
2407 test -n "$ac_ct_CC" && break
2410 if test "x$ac_ct_CC" = x; then
2413 case $cross_compiling:$ac_tool_warned in
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2417 ac_tool_warned=yes ;;
2426 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2429 See \
`config.log' for more details" "$LINENO" 5; }
2431 # Provide some information about the compiler.
2432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2435 for ac_option in --version -v -V -qversion; do
2436 { { ac_try="$ac_compiler $ac_option >&5"
2438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2439 *) ac_try_echo
=$ac_try;;
2441 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2445 if test -s conftest.err
; then
2447 ... rest of stderr output deleted ...
2448 10q' conftest.err
>conftest.er1
2449 cat conftest.er1
>&5
2451 rm -f conftest.er1 conftest.err
2452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2453 test $ac_status = 0; }
2456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2467 ac_clean_files_save
=$ac_clean_files
2468 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2469 # Try to create an executable without -o first, disregard a.out.
2470 # It will help us diagnose broken compilers, and finding out an intuition
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2473 $as_echo_n "checking whether the C compiler works... " >&6; }
2474 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2476 # The possible output files:
2477 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2480 for ac_file
in $ac_files
2483 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2484 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2489 if { { ac_try
="$ac_link_default"
2491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495 $as_echo "$ac_try_echo"; } >&5
2496 (eval "$ac_link_default") 2>&5
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499 test $ac_status = 0; }; then :
2500 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2501 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2502 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2503 # so that the user can short-circuit this test for compilers unknown to
2505 for ac_file in $ac_files ''
2507 test -f "$ac_file" || continue
2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2512 # We found the default executable, but exeext='' is most
2516 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2518 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2520 # We set ac_cv_exeext here because the later test for it is not
2521 # safe: cross compilers may not add the suffix if given an `-o'
2522 # argument, so we may need to know it at that point already.
2523 # Even if this section looks crufty: it has the advantage of
2530 test "$ac_cv_exeext" = no && ac_cv_exeext=
2535 if test -z "$ac_file"; then :
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2538 $as_echo "$as_me: failed program was:" >&5
2539 sed 's
/^
/|
/' conftest.$ac_ext >&5
2541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2543 as_fn_error 77 "C compiler cannot create executables
2544 See \`config.log
' for more details" "$LINENO" 5; }
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2547 $as_echo "yes" >&6; }
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2550 $as_echo_n "checking for C compiler default output file name... " >&6; }
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2552 $as_echo "$ac_file" >&6; }
2553 ac_exeext=$ac_cv_exeext
2555 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2556 ac_clean_files=$ac_clean_files_save
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2558 $as_echo_n "checking for suffix of executables... " >&6; }
2559 if { { ac_try="$ac_link"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565 $as_echo "$ac_try_echo"; } >&5
2566 (eval "$ac_link") 2>&5
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; }; then :
2570 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2571 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2572 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2574 for ac_file
in conftest.exe conftest conftest.
*; do
2575 test -f "$ac_file" ||
continue
2577 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2578 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2587 See \`config.log' for more details" "$LINENO" 5; }
2589 rm -f conftest conftest
$ac_cv_exeext
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2591 $as_echo "$ac_cv_exeext" >&6; }
2593 rm -f conftest.
$ac_ext
2594 EXEEXT
=$ac_cv_exeext
2596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2602 FILE *f = fopen ("conftest.out", "w");
2603 return ferror (f) || fclose (f) != 0;
2609 ac_clean_files
="$ac_clean_files conftest.out"
2610 # Check that the compiler produces executables we can run. If not, either
2611 # the compiler is broken, or we cross compile.
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2613 $as_echo_n "checking whether we are cross compiling... " >&6; }
2614 if test "$cross_compiling" != yes; then
2615 { { ac_try
="$ac_link"
2617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>&5
2624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625 test $ac_status = 0; }
2626 if { ac_try='./conftest$ac_cv_exeext'
2627 { { case "(($ac_try" in
2628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2629 *) ac_try_echo
=$ac_try;;
2631 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 $as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_try") 2>&5
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; }; }; then
2639 if test "$cross_compiling" = maybe
; then
2642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 as_fn_error $?
"cannot run C compiled programs.
2645 If you meant to cross compile, use \`--host'.
2646 See \`config.log' for more details" "$LINENO" 5; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2651 $as_echo "$cross_compiling" >&6; }
2653 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2654 ac_clean_files
=$ac_clean_files_save
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2656 $as_echo_n "checking for suffix of object files... " >&6; }
2657 if ${ac_cv_objext+:} false
; then :
2658 $as_echo_n "(cached) " >&6
2660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2671 rm -f conftest.o conftest.obj
2672 if { { ac_try
="$ac_compile"
2674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678 $as_echo "$ac_try_echo"; } >&5
2679 (eval "$ac_compile") 2>&5
2681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682 test $ac_status = 0; }; then :
2683 for ac_file in conftest.o conftest.obj conftest.*; do
2684 test -f "$ac_file" || continue;
2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2687 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2692 $as_echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2698 See \
`config.log' for more details" "$LINENO" 5; }
2700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2703 $as_echo "$ac_cv_objext" >&6; }
2704 OBJEXT=$ac_cv_objext
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2707 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2708 if ${ac_cv_c_compiler_gnu+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2725 if ac_fn_c_try_compile "$LINENO"; then :
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2735 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2736 if test $ac_compiler_gnu = yes; then
2741 ac_test_CFLAGS=${CFLAGS+set}
2742 ac_save_CFLAGS=$CFLAGS
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2744 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2745 if ${ac_cv_prog_cc_g+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_save_c_werror_flag=$ac_c_werror_flag
2749 ac_c_werror_flag=yes
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2763 if ac_fn_c_try_compile "$LINENO"; then :
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2778 if ac_fn_c_try_compile "$LINENO"; then :
2781 ac_c_werror_flag=$ac_save_c_werror_flag
2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2794 if ac_fn_c_try_compile "$LINENO"; then :
2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ac_c_werror_flag=$ac_save_c_werror_flag
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2805 $as_echo "$ac_cv_prog_cc_g" >&6; }
2806 if test "$ac_test_CFLAGS" = set; then
2807 CFLAGS=$ac_save_CFLAGS
2808 elif test $ac_cv_prog_cc_g = yes; then
2809 if test "$GCC" = yes; then
2815 if test "$GCC" = yes; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2823 if ${ac_cv_prog_cc_c89+:} false; then :
2824 $as_echo_n "(cached) " >&6
2826 ac_cv_prog_cc_c89=no
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829 /* end confdefs.h. */
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2847 s = g (p, va_arg (v,int));
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2853 function prototypes and stuff, but not '\xHH' hex character constants.
2854 These don't provoke an error unfortunately, instead are silently treated
2855 as 'x'. The following induces an error, until -std is added to get
2856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2857 array size at least. It's necessary to write '\x00'==0 to get something
2858 that's true only with -std. */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2862 inside strings and character constants. */
2864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2866 int test (int i, double x);
2867 struct s1 {int (*f) (int a);};
2868 struct s2 {int (*f) (double a);};
2869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2881 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883 CC="$ac_save_CC $ac_arg"
2884 if ac_fn_c_try_compile "$LINENO"; then :
2885 ac_cv_prog_cc_c89=$ac_arg
2887 rm -f core conftest.err conftest.$ac_objext
2888 test "x$ac_cv_prog_cc_c89" != "xno" && break
2890 rm -f conftest.$ac_ext
2895 case "x$ac_cv_prog_cc_c89" in
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2898 $as_echo "none needed" >&6; } ;;
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2901 $as_echo "unsupported" >&6; } ;;
2903 CC="$CC $ac_cv_prog_cc_c89"
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2907 if test "x$ac_cv_prog_cc_c89" != xno; then :
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 # Check whether --enable-sim-bitsize was given.
2919 if test "${enable_sim_bitsize+set}" = set; then :
2920 enableval=$enable_sim_bitsize; case "${enableval}" in
2921 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2922 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
2924 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
2925 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2932 # Check whether --enable-sim-decode-mechanism was given.
2933 if test "${enable_sim_decode_mechanism+set}" = set; then :
2934 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
2935 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
2936 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
2937 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
2938 sim_decode_mechanism="switch";;
2940 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
2941 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2944 sim_decode_mechanism=""
2945 if test x"$silent" != x"yes"; then
2946 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2951 # Check whether --enable-sim-default-model was given.
2952 if test "${enable_sim_default_model+set}" = set; then :
2953 enableval=$enable_sim_default_model; case "${enableval}" in
2954 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
2955 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
2957 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
2958 echo "Setting default-model flags = $sim_default_model" 6>&1
2961 sim_default_model=""
2965 # Check whether --enable-sim-duplicate was given.
2966 if test "${enable_sim_duplicate+set}" = set; then :
2967 enableval=$enable_sim_duplicate; case "${enableval}" in
2970 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
2972 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
2973 echo "Setting duplicate flags = $sim_dup" 6>&1
2977 if test x"$silent" != x"yes"; then
2978 echo "Setting duplicate flags = $sim_dup" 6>&1
2983 # Check whether --enable-sim-filter was given.
2984 if test "${enable_sim_filter+set}" = set; then :
2985 enableval=$enable_sim_filter; case "${enableval}" in
2986 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
2988 *) sim_filter="-F $enableval";;
2990 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
2991 echo "Setting filter flags = $sim_filter" 6>&1
2994 sim_filter="-F 32,f,o"
2995 if test x"$silent" != x"yes"; then
2996 echo "Setting filter flags = $sim_filter" 6>&1
3001 # Check whether --enable-sim-float was given.
3002 if test "${enable_sim_float+set}" = set; then :
3003 enableval=$enable_sim_float; case "${enableval}" in
3004 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3005 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3006 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3007 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3008 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3010 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3011 echo "Setting float flags = $sim_float" 6>&1
3016 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3017 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3025 $as_echo_n "checking if union semun defined... " >&6; }
3026 if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3032 #include <sys/types.h>
3033 #include <sys/ipc.h>
3034 #include <sys/sem.h>
3043 if ac_fn_c_try_compile "$LINENO"; then :
3044 ac_cv_has_union_semun="yes"
3046 ac_cv_has_union_semun="no"
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3050 $as_echo "$ac_cv_has_union_semun" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3054 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3057 if test "$ac_cv_has_union_semun" = "yes"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3059 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3060 if ${ac_cv_sysv_sem+:} false; then :
3061 $as_echo_n "(cached) " >&6
3064 if test "$cross_compiling" = yes; then :
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h. */
3070 #include <sys/types.h>
3071 #include <sys/ipc.h>
3072 #include <sys/sem.h>
3076 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3079 arg.val = 0; /* avoid implicit type cast to union */
3080 if (semctl(id, 0, IPC_RMID, arg) == -1)
3086 if ac_fn_c_try_run "$LINENO"; then :
3087 ac_cv_sysv_sem="yes"
3091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3092 conftest.$ac_objext conftest.beam conftest.$ac_ext
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3098 $as_echo "$ac_cv_sysv_sem" >&6; }
3099 else # semun is not defined
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3101 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3102 if ${ac_cv_sysv_sem+:} false; then :
3103 $as_echo_n "(cached) " >&6
3106 if test "$cross_compiling" = yes; then :
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3112 #include <sys/types.h>
3113 #include <sys/ipc.h>
3114 #include <sys/sem.h>
3117 struct semid_ds *buf;
3123 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3126 arg.val = 0; /* avoid implicit type cast to union */
3127 if (semctl(id, 0, IPC_RMID, arg) == -1)
3133 if ac_fn_c_try_run "$LINENO"; then :
3134 ac_cv_sysv_sem="yes"
3138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3139 conftest.$ac_objext conftest.beam conftest.$ac_ext
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3145 $as_echo "$ac_cv_sysv_sem" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3149 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3150 if ${ac_cv_sysv_shm+:} false; then :
3151 $as_echo_n "(cached) " >&6
3154 if test "$cross_compiling" = yes; then :
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3160 #include <sys/types.h>
3161 #include <sys/ipc.h>
3162 #include <sys/shm.h>
3164 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3167 if (shmctl(id, IPC_RMID, 0) == -1)
3173 if ac_fn_c_try_run "$LINENO"; then :
3174 ac_cv_sysv_shm="yes"
3178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3179 conftest.$ac_objext conftest.beam conftest.$ac_ext
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3185 $as_echo "$ac_cv_sysv_shm" >&6; }
3187 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3188 sim_sysv_ipc_hw=",sem,shm";
3193 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3195 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3200 # Check whether --enable-sim-hardware was given.
3201 if test "${enable_sim_hardware+set}" = set; then :
3202 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}"
3203 case "${enableval}" in
3205 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3206 ,*) hardware="${hardware}${enableval}";;
3207 *,) hardware="${enableval}${hardware}";;
3208 *) hardware="${enableval}"'';;
3210 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3211 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3212 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3213 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3216 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3217 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3218 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3219 if test x"$silent" != x"yes"; then
3220 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3224 # Check whether --enable-sim-hostbitsize was given.
3225 if test "${enable_sim_hostbitsize+set}" = set; then :
3226 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3227 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3228 *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3230 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3231 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3238 # Check whether --enable-sim-icache was given.
3239 if test "${enable_sim_icache+set}" = set; then :
3240 enableval=$enable_sim_icache; icache="-R"
3241 case "${enableval}" in
3242 yes) icache="1024"; sim_icache="-I $icache";;
3243 no) sim_icache="-R";;
3246 for x in `echo "${enableval}" |
sed -e "s/,/ /g"`; do
3248 define) sim_icache="${sim_icache}R";;
3249 semantic) sim_icache="${sim_icache}C";;
3250 insn) sim_icache="${sim_icache}S";;
3251 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3252 *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
3255 sim_icache="${sim_icache}I $icache";;
3257 if test x"$silent" != x"yes" && test x"$icache" != x""; then
3258 echo "Setting instruction cache size to $icache ($sim_icache)"
3261 sim_icache="-CSRI 1024"
3262 if test x"$silent" != x"yes"; then
3263 echo "Setting instruction cache size to 1024 ($sim_icache)"
3268 # Check whether --enable-sim-jump was given.
3269 if test "${enable_sim_jump+set}" = set; then :
3270 enableval=$enable_sim_jump; case "${enableval}" in
3271 yes) sim_jump="-J";;
3273 *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
3275 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3276 echo "Setting jump flag = $sim_jump" 6>&1
3280 if test x"$silent" != x"yes"; then
3281 echo "Setting jump flag = $sim_jump" 6>&1
3286 # Check whether --enable-sim-line-nr was given.
3287 if test "${enable_sim_line_nr+set}" = set; then :
3288 enableval=$enable_sim_line_nr; case "${enableval}" in
3289 yes) sim_line_nr="";;
3290 no) sim_line_nr="-L";;
3291 *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
3293 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3294 echo "Setting warning flags = $sim_line_nr" 6>&1
3301 # Check whether --enable-sim-model was given.
3302 if test "${enable_sim_model+set}" = set; then :
3303 enableval=$enable_sim_model; case "${enableval}" in
3304 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
3305 *) sim_model="-DWITH_MODEL=${enableval}";;
3307 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3308 echo "Setting model flags = $sim_model" 6>&1
3315 # Check whether --enable-sim-model-issue was given.
3316 if test "${enable_sim_model_issue+set}" = set; then :
3317 enableval=$enable_sim_model_issue; case "${enableval}" in
3318 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3319 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3320 *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
3322 if test x"$silent" != x"yes"; then
3323 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3330 # Check whether --enable-sim-monitor was given.
3331 if test "${enable_sim_monitor+set}" = set; then :
3332 enableval=$enable_sim_monitor; case "${enableval}" in
3333 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3334 no) sim_monitor="-DWITH_MON=0";;
3335 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3336 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3337 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;;
3339 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3340 echo "Setting monitor flags = $sim_monitor" 6>&1
3347 # Check whether --enable-sim-opcode was given.
3348 if test "${enable_sim_opcode+set}" = set; then :
3349 enableval=$enable_sim_opcode; case "${enableval}" in
3350 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
3351 *) if test -f "${srcdir}/${enableval}"; then
3352 sim_opcode="${enableval}"
3353 elif test -f "${srcdir}/dc-${enableval}"; then
3354 sim_opcode="dc-${enableval}"
3356 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3357 sim_opcode="dc-complex"
3360 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3361 echo "Setting opcode flags = $sim_opcode" 6>&1
3364 sim_opcode="dc-complex"
3365 if test x"$silent" != x"yes"; then
3366 echo "Setting opcode flags = $sim_opcode"
3371 # Check whether --enable-sim-packages was given.
3372 if test "${enable_sim_packages+set}" = set; then :
3373 enableval=$enable_sim_packages; packages=disklabel
3374 case "${enableval}" in
3376 no) as_fn_error $? "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
3377 ,*) packages="${packages}${enableval}";;
3378 *,) packages="${enableval}${packages}";;
3379 *) packages="${enableval}"'';;
3381 sim_pk_src=`echo $packages |
sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3382 sim_pk_obj=`echo $sim_pk_src |
sed -e 's/\.c/.o/g'`
3383 if test x"$silent" != x"yes" && test x"$packages" != x""; then
3384 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3388 sim_pk_src=`echo $packages |
sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3389 sim_pk_obj=`echo $sim_pk_src |
sed -e 's/\.c/.o/g'`
3390 if test x"$silent" != x"yes"; then
3391 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3396 # Check whether --enable-sim-smp was given.
3397 if test "${enable_sim_smp+set}" = set; then :
3398 enableval=$enable_sim_smp; case "${enableval}" in
3399 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3400 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3401 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3403 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3404 echo "Setting smp flags = $sim_smp" 6>&1
3407 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3408 if test x"$silent" != x"yes"; then
3409 echo "Setting smp flags = $sim_smp" 6>&1
3414 # Check whether --enable-sim-switch was given.
3415 if test "${enable_sim_switch+set}" = set; then :
3416 enableval=$enable_sim_switch; case "${enableval}" in
3417 yes) sim_switch="-s";;
3419 *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
3421 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3422 echo "Setting switch flags = $sim_switch" 6>&1
3426 if test x"$silent" != x"yes"; then
3427 echo "Setting switch flags = $sim_switch" 6>&1
3432 # Check whether --enable-sim-timebase was given.
3433 if test "${enable_sim_timebase+set}" = set; then :
3434 enableval=$enable_sim_timebase; case "${enableval}" in
3435 yes) sim_timebase="-DWITH_TIME_BASE=1";;
3436 no) sim_timebase="-DWITH_TIME_BASE=0";;
3437 *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
3439 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3440 echo "Setting timebase flags = $sim_timebase" 6>&1
3447 # Check whether --enable-sim-xor-endian was given.
3448 if test "${enable_sim_xor_endian+set}" = set; then :
3449 enableval=$enable_sim_xor_endian; case "${enableval}" in
3450 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3451 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3452 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3454 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3455 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3465 $as_echo "#define USE_WIN32API 1" >>confdefs.h
3470 ac_config_headers="$ac_config_headers config.h:config.in"
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
3476 $as_echo_n "checking for struct termios... " >&6; }
3477 if ${ac_cv_termios_struct+:} false; then :
3478 $as_echo_n "(cached) " >&6
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482 #include <sys/types.h>
3483 #include <sys/termios.h>
3487 static struct termios x;
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498 ac_cv_termios_struct=yes
3500 ac_cv_termios_struct=no
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
3506 $as_echo "$ac_cv_termios_struct" >&6; }
3507 if test $ac_cv_termios_struct = yes; then
3508 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
3511 if test "$ac_cv_termios_struct" = "yes"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
3513 $as_echo_n "checking for c_line field in struct termios... " >&6; }
3514 if ${ac_cv_termios_cline+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 #include <sys/types.h>
3520 #include <sys/termios.h>
3524 static struct termios x; x.c_line = 0;
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_termios_cline=yes
3532 ac_cv_termios_cline=no
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
3539 $as_echo "$ac_cv_termios_cline" >&6; }
3540 if test $ac_cv_termios_cline = yes; then
3541 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
3544 ac_cv_termios_cline=no
3547 if test "$ac_cv_termios_struct" != "yes"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
3549 $as_echo_n "checking for struct termio... " >&6; }
3550 if ${ac_cv_termio_struct+:} false; then :
3551 $as_echo_n "(cached) " >&6
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <sys/types.h>
3556 #include <sys/termio.h>
3560 static struct termio x;
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571 ac_cv_termio_struct=yes
3573 ac_cv_termio_struct=no
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
3579 $as_echo "$ac_cv_termio_struct" >&6; }
3580 if test $ac_cv_termio_struct = yes; then
3581 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
3584 ac_cv_termio_struct=no
3587 if test "$ac_cv_termio_struct" = "yes"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
3589 $as_echo_n "checking for c_line field in struct termio... " >&6; }
3590 if ${ac_cv_termio_cline+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <sys/types.h>
3596 #include <sys/termio.h>
3600 static struct termio x; x.c_line = 0;
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_termio_cline=yes
3608 ac_cv_termio_cline=no
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
3615 $as_echo "$ac_cv_termio_cline" >&6; }
3616 if test $ac_cv_termio_cline = yes; then
3617 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
3620 ac_cv_termio_cline=no
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
3624 $as_echo_n "checking for struct statfs... " >&6; }
3625 if ${ac_cv_struct_statfs+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630 #include <sys/types.h>
3631 #ifdef HAVE_SYS_PARAM_H
3632 #include <sys/param.h>
3634 #ifdef HAVE_SYS_MOUNT_H
3635 #include <sys/mount.h>
3637 #ifdef HAVE_SYS_VFS_H
3638 #include <sys/vfs.h>
3640 #ifdef HAVE_SYS_STATFS_H
3641 #include <sys/statfs.h>
3646 static struct statfs s;
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_struct_statfs=yes
3654 ac_cv_struct_statfs=no
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
3660 $as_echo "$ac_cv_struct_statfs" >&6; }
3661 if test $ac_cv_struct_statfs = yes; then
3663 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3673 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3674 # On Suns, sometimes $CPP names a directory.
3675 if test -n "$CPP" && test -d "$CPP"; then
3678 if test -z "$CPP"; then
3679 if ${ac_cv_prog_CPP+:} false; then :
3680 $as_echo_n "(cached) " >&6
3682 # Double quotes because CPP needs to be expanded
3683 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3686 for ac_c_preproc_warn_flag in '' yes
3688 # Use a header file that comes with gcc, so configuring glibc
3689 # with a fresh cross-compiler works.
3690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3691 # <limits.h> exists even on freestanding compilers.
3692 # On the NeXT, cc -E runs the code through the compiler's parser,
3693 # not just through cpp. "Syntax error" is here to catch this case.
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3697 # include <limits.h>
3699 # include <assert.h>
3703 if ac_fn_c_try_cpp "$LINENO"; then :
3706 # Broken: fails on valid input.
3709 rm -f conftest.err conftest.i conftest.$ac_ext
3711 # OK, works on sane cases. Now check whether nonexistent headers
3712 # can be detected and how.
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 #include <ac_nonexistent.h>
3717 if ac_fn_c_try_cpp "$LINENO"; then :
3718 # Broken: success on invalid input.
3721 # Passes both tests.
3725 rm -f conftest.err conftest.i conftest.$ac_ext
3728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729 rm -f conftest.i conftest.err conftest.
$ac_ext
3730 if $ac_preproc_ok; then :
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3743 $as_echo "$CPP" >&6; }
3745 for ac_c_preproc_warn_flag
in '' yes
3747 # Use a header file that comes with gcc, so configuring glibc
3748 # with a fresh cross-compiler works.
3749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3750 # <limits.h> exists even on freestanding compilers.
3751 # On the NeXT, cc -E runs the code through the compiler's parser,
3752 # not just through cpp. "Syntax error" is here to catch this case.
3753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3756 # include <limits.h>
3758 # include <assert.h>
3762 if ac_fn_c_try_cpp
"$LINENO"; then :
3765 # Broken: fails on valid input.
3768 rm -f conftest.err conftest.i conftest.
$ac_ext
3770 # OK, works on sane cases. Now check whether nonexistent headers
3771 # can be detected and how.
3772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774 #include <ac_nonexistent.h>
3776 if ac_fn_c_try_cpp
"$LINENO"; then :
3777 # Broken: success on invalid input.
3780 # Passes both tests.
3784 rm -f conftest.err conftest.i conftest.
$ac_ext
3787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3788 rm -f conftest.i conftest.err conftest.
$ac_ext
3789 if $ac_preproc_ok; then :
3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3794 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3795 See \`config.log' for more details" "$LINENO" 5; }
3799 ac_cpp
='$CPP $CPPFLAGS'
3800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3806 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3807 if ${ac_cv_path_GREP+:} false
; then :
3808 $as_echo_n "(cached) " >&6
3810 if test -z "$GREP"; then
3811 ac_path_GREP_found
=false
3812 # Loop through the user's path and test for each of PROGNAME-LIST
3813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3814 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3817 test -z "$as_dir" && as_dir
=.
3818 for ac_prog
in grep ggrep
; do
3819 for ac_exec_ext
in '' $ac_executable_extensions; do
3820 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3821 as_fn_executable_p
"$ac_path_GREP" ||
continue
3822 # Check for GNU ac_path_GREP and select it if it is found.
3823 # Check for GNU $ac_path_GREP
3824 case `"$ac_path_GREP" --version 2>&1` in
3826 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3829 $as_echo_n 0123456789 >"conftest.in"
3832 cat "conftest.in" "conftest.in" >"conftest.tmp"
3833 mv "conftest.tmp" "conftest.in"
3834 cp "conftest.in" "conftest.nl"
3835 $as_echo 'GREP' >> "conftest.nl"
3836 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3837 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3838 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3839 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3840 # Best one so far, save it but keep looking for a better one
3841 ac_cv_path_GREP
="$ac_path_GREP"
3842 ac_path_GREP_max
=$ac_count
3844 # 10*(2^10) chars as input seems more than enough
3845 test $ac_count -gt 10 && break
3847 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3850 $ac_path_GREP_found && break 3
3855 if test -z "$ac_cv_path_GREP"; then
3856 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3859 ac_cv_path_GREP
=$GREP
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3864 $as_echo "$ac_cv_path_GREP" >&6; }
3865 GREP
="$ac_cv_path_GREP"
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3869 $as_echo_n "checking for egrep... " >&6; }
3870 if ${ac_cv_path_EGREP+:} false
; then :
3871 $as_echo_n "(cached) " >&6
3873 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3874 then ac_cv_path_EGREP
="$GREP -E"
3876 if test -z "$EGREP"; then
3877 ac_path_EGREP_found
=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3880 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3883 test -z "$as_dir" && as_dir
=.
3884 for ac_prog
in egrep; do
3885 for ac_exec_ext
in '' $ac_executable_extensions; do
3886 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3887 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3888 # Check for GNU ac_path_EGREP and select it if it is found.
3889 # Check for GNU $ac_path_EGREP
3890 case `"$ac_path_EGREP" --version 2>&1` in
3892 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3895 $as_echo_n 0123456789 >"conftest.in"
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 $as_echo 'EGREP' >> "conftest.nl"
3902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3903 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3904 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_EGREP
="$ac_path_EGREP"
3908 ac_path_EGREP_max
=$ac_count
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3913 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3916 $ac_path_EGREP_found && break 3
3921 if test -z "$ac_cv_path_EGREP"; then
3922 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3925 ac_cv_path_EGREP
=$EGREP
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3931 $as_echo "$ac_cv_path_EGREP" >&6; }
3932 EGREP
="$ac_cv_path_EGREP"
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3936 $as_echo_n "checking for ANSI C header files... " >&6; }
3937 if ${ac_cv_header_stdc+:} false
; then :
3938 $as_echo_n "(cached) " >&6
3940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3955 if ac_fn_c_try_compile
"$LINENO"; then :
3956 ac_cv_header_stdc
=yes
3958 ac_cv_header_stdc
=no
3960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3962 if test $ac_cv_header_stdc = yes; then
3963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 $EGREP "memchr" >/dev
/null
2>&1; then :
3973 ac_cv_header_stdc
=no
3979 if test $ac_cv_header_stdc = yes; then
3980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3987 $EGREP "free" >/dev
/null
2>&1; then :
3990 ac_cv_header_stdc
=no
3996 if test $ac_cv_header_stdc = yes; then
3997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3998 if test "$cross_compiling" = yes; then :
4001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4005 #if ((' ' & 0x0FF) == 0x020)
4006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4009 # define ISLOWER(c) \
4010 (('a' <= (c) && (c) <= 'i') \
4011 || ('j' <= (c) && (c) <= 'r') \
4012 || ('s' <= (c) && (c) <= 'z'))
4013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4021 for (i = 0; i < 256; i++)
4022 if (XOR (islower (i), ISLOWER (i))
4023 || toupper (i) != TOUPPER (i))
4028 if ac_fn_c_try_run
"$LINENO"; then :
4031 ac_cv_header_stdc
=no
4033 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4034 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4040 $as_echo "$ac_cv_header_stdc" >&6; }
4041 if test $ac_cv_header_stdc = yes; then
4043 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4048 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4049 inttypes.h stdint.h unistd.h
4051 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4052 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4054 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4055 cat >>confdefs.h
<<_ACEOF
4056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4064 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4065 if test "x$ac_cv_type_long_long" = xyes
; then :
4067 cat >>confdefs.h
<<_ACEOF
4068 #define HAVE_LONG_LONG 1
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
4077 $as_echo_n "checking for /dev/zero... " >&6; }
4078 if ${ac_cv_devzero+:} false
; then :
4079 $as_echo_n "(cached) " >&6
4081 if test "$cross_compiling" = yes; then :
4084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4090 int fd = open ("/dev/zero", O_RDONLY);
4093 for (i = 0; i < sizeof (buf); i++)
4095 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
4097 for (i = 0; i < sizeof (buf); i++)
4103 if ac_fn_c_try_run
"$LINENO"; then :
4108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4109 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
4115 $as_echo "$ac_cv_devzero" >&6; }
4116 if test $ac_cv_devzero = yes; then
4117 sim_devzero
="-DHAVE_DEVZERO"
4122 # Since we run commands on the build system, we have to create a
4123 # separate config header for the build system if build != host.
4124 if test x
$host = x
$build; then
4125 ac_config_commands
="$ac_config_commands build-config.h"
4133 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
4134 *) realsrcdir
=..
/${srcdir};;
4136 saved_CFLAGS
="${CFLAGS}"
4137 # Put a plausible default for CC_FOR_BUILD in Makefile.
4138 if test "x$cross_compiling" = "xno"; then
4139 CC_FOR_BUILD
='$(CC)'
4143 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD-${CFLAGS}}" \
4144 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
4145 ${realsrcdir}/configure \
4146 --enable-languages=${enable_languages-all} \
4147 --target=$target_alias --host=$build_alias --build=$build_alias
4148 CFLAGS
="${saved_CFLAGS}"
4149 mv config.h ..
/build-config.h
4180 ac_config_files
="$ac_config_files Makefile"
4182 ac_config_commands
="$ac_config_commands default"
4184 cat >confcache
<<\_ACEOF
4185 # This file is a shell script that caches the results of configure
4186 # tests run on this system so they can be shared between configure
4187 # scripts and configure runs, see configure's option --config-cache.
4188 # It is not useful on other systems. If it contains results you don't
4189 # want to keep, you may remove or edit it.
4191 # config.status only pays attention to the cache file if you give it
4192 # the --recheck option to rerun configure.
4194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4200 # The following way of writing the cache mishandles newlines in values,
4201 # but we know of no workaround that is simple, portable, and efficient.
4202 # So, we kill variables containing newlines.
4203 # Ultrix sh set writes to stderr and can't be redirected directly,
4204 # and sets the high bit in the cache file unless we assign to the vars.
4206 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4207 eval ac_val
=\$
$ac_var
4211 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4215 _ | IFS | as_nl
) ;; #(
4216 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4217 *) { eval $ac_var=; unset $ac_var;} ;;
4223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4224 *${as_nl}ac_space
=\
*)
4225 # `set' does not quote correctly, so add quotes: double-quote
4226 # substitution turns \\\\ into \\, and sed turns \\ into \.
4229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4232 # `set' quotes correctly as required by POSIX, so do not add quotes.
4233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4246 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4247 if test -w "$cache_file"; then
4248 if test "x$cache_file" != "x/dev/null"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4250 $as_echo "$as_me: updating cache $cache_file" >&6;}
4251 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4252 cat confcache
>"$cache_file"
4254 case $cache_file in #(
4256 mv -f confcache
"$cache_file"$$
&&
4257 mv -f "$cache_file"$$
"$cache_file" ;; #(
4259 mv -f confcache
"$cache_file" ;;
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4270 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4271 # Let make expand exec_prefix.
4272 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4274 DEFS
=-DHAVE_CONFIG_H
4279 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4280 # 1. Remove the extension, and $U if already installed.
4281 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4282 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4284 # will be set to the directory where LIBOBJS objects are built.
4285 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4286 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4290 LTLIBOBJS
=$ac_ltlibobjs
4294 : "${CONFIG_STATUS=./config.status}"
4296 ac_clean_files_save
=$ac_clean_files
4297 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4299 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4301 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4303 # Generated by $as_me.
4304 # Run this file to recreate the current configuration.
4305 # Compiler output produced by configure, useful for debugging
4306 # configure, is in config.log if it exists.
4312 SHELL=\${CONFIG_SHELL-$SHELL}
4315 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4316 ## -------------------- ##
4317 ## M4sh Initialization. ##
4318 ## -------------------- ##
4320 # Be more Bourne compatible
4321 DUALCASE
=1; export DUALCASE
# for MKS sh
4322 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4325 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4326 # is contrary to our usage. Disable this feature.
4327 alias -g '${1+"$@"}'='"$@"'
4328 setopt NO_GLOB_SUBST
4330 case `(set -o) 2>/dev/null` in #(
4342 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4343 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4346 # Prefer a ksh shell builtin over an external printf program on Solaris,
4347 # but without wasting forks for bash or zsh.
4348 if test -z "$BASH_VERSION$ZSH_VERSION" \
4349 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4350 as_echo='print
-r --'
4351 as_echo_n='print
-rn --'
4352 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4353 as_echo='printf %s
\n'
4354 as_echo_n='printf %s
'
4356 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4357 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4358 as_echo_n='/usr
/ucb
/echo -n'
4360 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4361 as_echo_n_body='eval
4365 expr "X$arg" : "X\\(.*\\)$as_nl";
4366 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4368 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4370 export as_echo_n_body
4371 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4374 as_echo='sh
-c $as_echo_body as_echo
'
4377 # The user is always right.
4378 if test "${PATH_SEPARATOR+set}" != set; then
4380 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4381 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4388 # We need space, tab and new line, in precisely that order. Quoting is
4389 # there to prevent editors from complaining about space-tab.
4390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4391 # splitting by setting IFS to empty value.)
4394 # Find who we are. Look in the path if we contain no directory separator.
4397 *[\\/]* ) as_myself=$0 ;;
4398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4409 # We did not find ourselves, most probably we were run as `sh COMMAND'
4410 # in which case we are not to be found in the path.
4411 if test "x$as_myself" = x
; then
4414 if test ! -f "$as_myself"; then
4415 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4419 # Unset variables that we do not need and which cause bugs (e.g. in
4420 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4421 # suppresses any "Segmentation fault" message there. '((' could
4422 # trigger a bug in pdksh 5.2.14.
4423 for as_var
in BASH_ENV ENV MAIL MAILPATH
4424 do eval test x\
${$as_var+set} = xset \
4425 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4438 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4441 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4442 # ----------------------------------------
4443 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4444 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4445 # script with STATUS, using 1 if that was 0.
4448 as_status
=$1; test $as_status -eq 0 && as_status
=1
4450 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4451 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4453 $as_echo "$as_me: error: $2" >&2
4454 as_fn_exit
$as_status
4458 # as_fn_set_status STATUS
4459 # -----------------------
4460 # Set $? to STATUS, without forking.
4464 } # as_fn_set_status
4468 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4478 # Portably unset VAR.
4481 { eval $1=; unset $1;}
4483 as_unset
=as_fn_unset
4484 # as_fn_append VAR VALUE
4485 # ----------------------
4486 # Append the text in VALUE to the end of the definition contained in VAR. Take
4487 # advantage of any shell optimizations that allow amortized linear growth over
4488 # repeated appends, instead of the typical quadratic growth present in naive
4490 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4491 eval 'as_fn_append ()
4502 # as_fn_arith ARG...
4503 # ------------------
4504 # Perform arithmetic evaluation on the ARGs, and store the result in the
4505 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4506 # must be portable across $(()) and expr.
4507 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4508 eval 'as_fn_arith ()
4515 as_val
=`expr "$@" || test $? -eq 1`
4520 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4521 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4527 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4528 as_basename
=basename
4533 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4539 as_me
=`$as_basename -- "$0" ||
4540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4541 X"$0" : 'X\(//\)$' \| \
4542 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4544 sed '/^.*\/\([^/][^/]*\)\/*$/{
4558 # Avoid depending upon Character Ranges.
4559 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4560 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4561 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4562 as_cr_digits
='0123456789'
4563 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4565 ECHO_C
= ECHO_N
= ECHO_T
=
4566 case `echo -n x` in #(((((
4568 case `echo 'xy\c'` in
4569 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4571 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4578 rm -f conf$$ conf$$.exe conf$$.
file
4579 if test -d conf$$.dir
; then
4580 rm -f conf$$.dir
/conf$$.
file
4583 mkdir conf$$.dir
2>/dev
/null
4585 if (echo >conf$$.
file) 2>/dev
/null
; then
4586 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4588 # ... but there are two gotchas:
4589 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4590 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4591 # In both cases, we have to default to `cp -pR'.
4592 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4594 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4602 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4603 rmdir conf$$.dir
2>/dev
/null
4608 # Create "$as_dir" as a directory, including parents if necessary.
4613 -*) as_dir
=.
/$as_dir;;
4615 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4619 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4620 *) as_qdir
=$as_dir;;
4622 as_dirs
="'$as_qdir' $as_dirs"
4623 as_dir
=`$as_dirname -- "$as_dir" ||
4624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4625 X"$as_dir" : 'X\(//\)[^/]' \| \
4626 X"$as_dir" : 'X\(//\)$' \| \
4627 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4628 $as_echo X"$as_dir" |
4629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4646 test -d "$as_dir" && break
4648 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4649 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4653 if mkdir
-p .
2>/dev
/null
; then
4654 as_mkdir_p
='mkdir -p "$as_dir"'
4656 test -d .
/-p && rmdir .
/-p
4661 # as_fn_executable_p FILE
4662 # -----------------------
4663 # Test if FILE is an executable regular file.
4664 as_fn_executable_p
()
4666 test -f "$1" && test -x "$1"
4667 } # as_fn_executable_p
4669 as_executable_p
=as_fn_executable_p
4671 # Sed expression to map a string onto a valid CPP name.
4672 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4674 # Sed expression to map a string onto a valid variable name.
4675 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4679 ## ----------------------------------- ##
4680 ## Main body of $CONFIG_STATUS script. ##
4681 ## ----------------------------------- ##
4683 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4686 # Save the log message, to keep $0 and so on meaningful, and to
4687 # report actual input values of CONFIG_FILES etc. instead of their
4688 # values after options handling.
4690 This file was extended by $as_me, which was
4691 generated by GNU Autoconf 2.69. Invocation command line was
4693 CONFIG_FILES = $CONFIG_FILES
4694 CONFIG_HEADERS = $CONFIG_HEADERS
4695 CONFIG_LINKS = $CONFIG_LINKS
4696 CONFIG_COMMANDS = $CONFIG_COMMANDS
4699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4704 case $ac_config_files in *"
4705 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4708 case $ac_config_headers in *"
4709 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4714 # Files that config.status was made for.
4715 config_files="$ac_config_files"
4716 config_headers="$ac_config_headers"
4717 config_commands="$ac_config_commands"
4721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4723 \`$as_me' instantiates files and other configuration actions
4724 from templates according to the current configuration. Unless the files
4725 and actions are specified as TAGs, all are instantiated by default.
4727 Usage: $0 [OPTION]... [TAG]...
4729 -h, --help print this help, then exit
4730 -V, --version print version number and configuration settings, then exit
4731 --config print configuration, then exit
4732 -q, --quiet, --silent
4733 do not print progress messages
4734 -d, --debug don't remove temporary files
4735 --recheck update $as_me by reconfiguring in the same conditions
4736 --file=FILE[:TEMPLATE]
4737 instantiate the configuration file FILE
4738 --header=FILE[:TEMPLATE]
4739 instantiate the configuration header FILE
4741 Configuration files:
4744 Configuration headers:
4747 Configuration commands:
4750 Report bugs to the package provider."
4753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4754 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4757 configured by $0, generated by GNU Autoconf 2.69,
4758 with options \\"\$ac_cs_config\\"
4760 Copyright (C) 2012 Free Software Foundation, Inc.
4761 This config.status script is free software; the Free Software Foundation
4762 gives unlimited permission to copy, distribute and modify it."
4767 test -n "\$AWK" || AWK=awk
4770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4771 # The default lists apply if the user does not specify any file.
4777 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4778 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4782 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4794 # Handling of the options.
4795 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4797 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4798 $as_echo "$ac_cs_version"; exit ;;
4799 --config |
--confi |
--conf |
--con |
--co |
--c )
4800 $as_echo "$ac_cs_config"; exit ;;
4801 --debug |
--debu |
--deb |
--de |
--d |
-d )
4803 --file |
--fil |
--fi |
--f )
4806 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4807 '') as_fn_error $?
"missing file argument" ;;
4809 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4810 ac_need_defaults
=false
;;
4811 --header |
--heade |
--head |
--hea )
4814 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4816 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4817 ac_need_defaults
=false
;;
4819 # Conflict between --help and --header
4820 as_fn_error $?
"ambiguous option: \`$1'
4821 Try \`$0 --help' for more information.";;
4822 --help |
--hel |
-h )
4823 $as_echo "$ac_cs_usage"; exit ;;
4824 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4825 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4829 -*) as_fn_error $?
"unrecognized option: \`$1'
4830 Try \`$0 --help' for more information." ;;
4832 *) as_fn_append ac_config_targets
" $1"
4833 ac_need_defaults
=false
;;
4839 ac_configure_extra_args
=
4841 if $ac_cs_silent; then
4843 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4848 if \$ac_cs_recheck; then
4849 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4851 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4852 CONFIG_SHELL='$SHELL'
4858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4863 ## Running $as_me. ##
4869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4874 # Handling of arguments.
4875 for ac_config_target
in $ac_config_targets
4877 case $ac_config_target in
4878 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
4879 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
4880 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4881 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
4883 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4888 # If the user did not use the arguments to specify the items to instantiate,
4889 # then the envvar interface is used. Set only those that are not.
4890 # We use the long form for the default assignment because of an extremely
4891 # bizarre bug on SunOS 4.1.3.
4892 if $ac_need_defaults; then
4893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
4898 # Have a temporary directory for convenience. Make it in the build tree
4899 # simply because there is no reason against having it here, and in addition,
4900 # creating and moving files from /tmp can sometimes cause problems.
4901 # Hook for its removal unless debugging.
4902 # Note that there is a small window in which the directory will not be cleaned:
4903 # after its creation but before its name has been assigned to `$tmp'.
4907 trap 'exit_status=$?
4909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4911 trap 'as_fn_exit 1' 1 2 13 15
4913 # Create a (secure) tmp directory for tmp files.
4916 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4920 tmp
=.
/conf$$
-$RANDOM
4921 (umask 077 && mkdir
"$tmp")
4922 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
4925 # Set up the scripts for CONFIG_FILES section.
4926 # No need to generate them if there are no CONFIG_FILES.
4927 # This happens for instance with `./config.status config.h'.
4928 if test -n "$CONFIG_FILES"; then
4931 ac_cr
=`echo X | tr X '\015'`
4932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4933 # But we know of no other shell where ac_cr would be empty at this
4934 # point, so we can use a bashism as a fallback.
4935 if test "x$ac_cr" = x
; then
4936 eval ac_cr
=\$
\'\\r
\'
4938 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4950 echo "cat >conf$$subs.awk <<_ACEOF" &&
4951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4954 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4957 for ac_last_try in false false false false false :; do
4958 . ./conf$$subs.sh ||
4959 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4961 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
4962 if test $ac_delim_n = $ac_delim_num; then
4964 elif $ac_last_try; then
4965 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4967 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
4972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4973 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
4977 s/^/S["/; s
/!.
*/"]=/
4987 s/\(.\{148\}\)..*/\1/
4989 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
4994 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5001 s/\(.\{148\}\)..*/\1/
5003 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5007 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5012 ' <conf$$subs.awk | sed '
5017 ' >>$CONFIG_STATUS || ac_write_fail=1
5018 rm -f conf$$subs.awk
5019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5021 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5022 for (key in S) S_is_set[key] = 1
5028 nfields = split(line, field, "@
")
5030 len = length(field[1])
5031 for (i = 2; i < nfields; i++) {
5033 keylen = length(key)
5034 if (S_is_set[key]) {
5036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5037 len += length(value) + length(field[++i])
5048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5049 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5050 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5053 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5054 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5057 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5058 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5059 # trailing colons and then remove the whole line if VPATH becomes empty
5060 # (actually we leave an empty line to preserve line numbers).
5061 if test "x
$srcdir" = x.; then
5062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5081 fi # test -n "$CONFIG_FILES"
5083 # Set up the scripts for CONFIG_HEADERS section.
5084 # No need to generate them if there are no CONFIG_HEADERS.
5085 # This happens for instance with `./config.status Makefile'.
5086 if test -n "$CONFIG_HEADERS"; then
5087 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5091 # Transform confdefs.h into an awk script `defines.awk', embedded as
5092 # here-document in config.status, that substitutes the proper values into
5093 # config.h.in to produce config.h.
5095 # Create a delimiter string that does not exist in confdefs.h, to ease
5096 # handling of long lines.
5098 for ac_last_try in false false :; do
5099 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5100 if test -z "$ac_tt"; then
5102 elif $ac_last_try; then
5103 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5105 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5109 # For the awk script, D is an array of macro values keyed by name,
5110 # likewise P contains macro parameters if any. Preserve backslash
5111 # newline sequences.
5113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5115 s/.\{148\}/&'"$ac_delim"'/g
5118 s/^[ ]*#[ ]*define[ ][ ]*/ /
5125 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5127 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5132 D["\
1"]=" \
3\\\\\\n
"\\/p
5134 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5139 s/.\{148\}/&'"$ac_delim"'/g
5144 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5147 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5149 ' <confdefs.h | sed '
5150 s/'"$ac_delim"'/"\\\
5151 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5154 for (key in D) D_is_set[key] = 1
5157 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5159 split(line, arg, " ")
5160 if (arg[1] == "#") {
5164 defundef
= substr
(arg
[1], 2)
5167 split(mac1
, mac2
, "(") #)
5169 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5170 if (D_is_set
[macro
]) {
5171 # Preserve the white space surrounding the "#".
5172 print prefix
"define", macro P
[macro
] D
[macro
]
5175 # Replace #undef with comments. This is necessary, for example,
5176 # in the case of _POSIX_SOURCE, which is predefined and required
5177 # on some systems where configure will not decide to define it.
5178 if (defundef
== "undef") {
5179 print
"/*", prefix defundef
, macro
, "*/"
5187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5188 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5189 fi # test -n "$CONFIG_HEADERS"
5192 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5197 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5199 case $ac_mode$ac_tag in
5201 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5202 :[FH
]-) ac_tag
=-:-;;
5203 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5220 -) ac_f
="$ac_tmp/stdin";;
5221 *) # Look for the file first in the build tree, then in the source tree
5222 # (if the path is not absolute). The absolute path cannot be DOS-style,
5223 # because $ac_f cannot contain `:'.
5227 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5229 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5231 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5232 as_fn_append ac_file_inputs
" '$ac_f'"
5235 # Let's still pretend it is `configure' which instantiates (i.e., don't
5236 # use $as_me), people would be surprised to read:
5237 # /* config.h. Generated by config.status. */
5238 configure_input
='Generated from '`
5239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5241 if test x
"$ac_file" != x-
; then
5242 configure_input
="$ac_file. $configure_input"
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5244 $as_echo "$as_me: creating $ac_file" >&6;}
5246 # Neutralize special characters interpreted by sed in replacement strings.
5247 case $configure_input in #(
5248 *\
&* |
*\|
* |
*\\* )
5249 ac_sed_conf_input
=`$as_echo "$configure_input" |
5250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5251 *) ac_sed_conf_input
=$configure_input;;
5255 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5256 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5261 ac_dir
=`$as_dirname -- "$ac_file" ||
5262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5263 X"$ac_file" : 'X\(//\)[^/]' \| \
5264 X"$ac_file" : 'X\(//\)$' \| \
5265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5266 $as_echo X"$ac_file" |
5267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5284 as_dir
="$ac_dir"; as_fn_mkdir_p
5288 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5290 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5291 # A ".." for each directory in $ac_dir_suffix.
5292 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5293 case $ac_top_builddir_sub in
5294 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5295 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5298 ac_abs_top_builddir
=$ac_pwd
5299 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5300 # for backward compatibility:
5301 ac_top_builddir
=$ac_top_build_prefix
5304 .
) # We are building in place.
5306 ac_top_srcdir
=$ac_top_builddir_sub
5307 ac_abs_top_srcdir
=$ac_pwd ;;
5308 [\\/]* | ?
:[\\/]* ) # Absolute name.
5309 ac_srcdir
=$srcdir$ac_dir_suffix;
5310 ac_top_srcdir
=$srcdir
5311 ac_abs_top_srcdir
=$srcdir ;;
5313 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5314 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5315 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5317 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5327 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5328 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5333 # If the template does not know about datarootdir, expand it.
5334 # FIXME: This hack should be removed a few years after 2.60.
5335 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5346 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5347 *datarootdir
*) ac_datarootdir_seen
=yes;;
5348 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5350 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5353 ac_datarootdir_hack='
5354 s&@datadir@&$datadir&g
5355 s&@docdir@&$docdir&g
5356 s&@infodir@&$infodir&g
5357 s&@localedir@&$localedir&g
5358 s&@mandir@&$mandir&g
5359 s&\\\${datarootdir}&$datarootdir&g' ;;
5363 # Neutralize VPATH when `$srcdir' = `.'.
5364 # Shell code in configure.ac might set extrasub.
5365 # FIXME: do we really want to maintain this feature?
5366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5367 ac_sed_extra="$ac_vpsub
5370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5372 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5373 s|@configure_input@|
$ac_sed_conf_input|
;t t
5374 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5375 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5376 s
&@srcdir@
&$ac_srcdir&;t t
5377 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5378 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5379 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5380 s
&@builddir@
&$ac_builddir&;t t
5381 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5382 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5383 s
&@INSTALL@
&$ac_INSTALL&;t t
5384 $ac_datarootdir_hack
5386 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5387 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5390 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5392 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5394 which seems to be undefined. Please make sure it is defined" >&5
5395 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5396 which seems to be undefined. Please make sure it is defined" >&2;}
5398 rm -f "$ac_tmp/stdin"
5400 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5401 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5409 if test x"$ac_file" != x-; then
5411 $as_echo "/* $configure_input */" \
5412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5413 } >"$ac_tmp/config.h" \
5414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5415 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5417 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5420 mv "$ac_tmp/config.h" "$ac_file" \
5421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5424 $as_echo "/* $configure_input */" \
5425 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5426 || as_fn_error $? "could not create -" "$LINENO" 5
5430 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5431 $as_echo "$as_me: executing $ac_file commands" >&6;}
5436 case $ac_file$ac_mode in
5437 "build-config.h":C) cp config.h build-config.h ;;
5438 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
5446 ac_clean_files=$ac_clean_files_save
5448 test $ac_write_fail = 0 ||
5449 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5452 # configure is writing to config.log, and then calls config.status.
5453 # config.status does its own redirection, appending to config.log.
5454 # Unfortunately, on DOS this fails, as config.log is still kept open
5455 # by configure, so config.status won't be able to
write to it
; its
5456 # output is simply discarded. So we exec the FD to /dev/null,
5457 # effectively closing config.log, so it can be properly (re)opened and
5458 # appended to by config.status. When coming back to configure, we
5459 # need to make the FD available again.
5460 if test "$no_create" != yes; then
5462 ac_config_status_args
=
5463 test "$silent" = yes &&
5464 ac_config_status_args
="$ac_config_status_args --quiet"
5466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5469 # would make configure fail if this is the last instruction.
5470 $ac_cs_success || as_fn_exit
1
5472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}