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
625 sdccconf_h_dir_separator
676 program_transform_name
689 enable_option_checking
691 ac_precious_vars
='build_alias
700 sdccconf_h_dir_separator
704 # Initialize some variables set by options.
706 ac_init_version
=false
707 ac_unrecognized_opts
=
709 # The variables have the same names as the options, with
710 # dashes changed to underlines.
718 program_transform_name
=s
,x
,x
,
726 # Installation directory options.
727 # These are left unexpanded so users can "make install exec_prefix=/foo"
728 # and all the variables that are supposed to be based on exec_prefix
729 # by default will actually change.
730 # Use braces instead of parens because sh, perl, etc. also accept them.
731 # (The list follows the same order as the GNU Coding Standards.)
732 bindir
='${exec_prefix}/bin'
733 sbindir
='${exec_prefix}/sbin'
734 libexecdir
='${exec_prefix}/libexec'
735 datarootdir
='${prefix}/share'
736 datadir
='${datarootdir}'
737 sysconfdir
='${prefix}/etc'
738 sharedstatedir
='${prefix}/com'
739 localstatedir
='${prefix}/var'
740 runstatedir
='${localstatedir}/run'
741 includedir
='${prefix}/include'
742 oldincludedir
='/usr/include'
743 docdir
='${datarootdir}/doc/${PACKAGE}'
744 infodir
='${datarootdir}/info'
749 libdir
='${exec_prefix}/lib'
750 localedir
='${datarootdir}/locale'
751 mandir
='${datarootdir}/man'
757 # If the previous option needs an argument, assign it.
758 if test -n "$ac_prev"; then
759 eval $ac_prev=\
$ac_option
765 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770 # Accept the important Cygnus configure options, so we can diagnose typos.
772 case $ac_dashdash$ac_option in
776 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
778 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
781 -build |
--build |
--buil |
--bui |
--bu)
782 ac_prev
=build_alias
;;
783 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
784 build_alias
=$ac_optarg ;;
786 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
787 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
788 ac_prev
=cache_file
;;
789 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
790 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
791 cache_file
=$ac_optarg ;;
794 cache_file
=config.cache
;;
796 -datadir |
--datadir |
--datadi |
--datad)
798 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
799 datadir
=$ac_optarg ;;
801 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
802 |
--dataroo |
--dataro |
--datar)
803 ac_prev
=datarootdir
;;
804 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
805 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
806 datarootdir
=$ac_optarg ;;
808 -disable-* |
--disable-*)
809 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
812 as_fn_error $?
"invalid feature name: $ac_useropt"
813 ac_useropt_orig
=$ac_useropt
814 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
815 case $ac_user_opts in
819 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
820 ac_unrecognized_sep
=', ';;
822 eval enable_
$ac_useropt=no
;;
824 -docdir |
--docdir |
--docdi |
--doc |
--do)
826 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
829 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
831 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
834 -enable-* |
--enable-*)
835 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
836 # Reject names that are not valid shell variable names.
837 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
838 as_fn_error $?
"invalid feature name: $ac_useropt"
839 ac_useropt_orig
=$ac_useropt
840 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841 case $ac_user_opts in
845 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
846 ac_unrecognized_sep
=', ';;
848 eval enable_
$ac_useropt=\
$ac_optarg ;;
850 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
851 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
852 |
--exec |
--exe |
--ex)
853 ac_prev
=exec_prefix
;;
854 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
855 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
856 |
--exec=* |
--exe=* |
--ex=*)
857 exec_prefix
=$ac_optarg ;;
859 -gas |
--gas |
--ga |
--g)
860 # Obsolete; use --with-gas.
863 -help |
--help |
--hel |
--he |
-h)
865 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
866 ac_init_help
=recursive
;;
867 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
868 ac_init_help
=short
;;
870 -host |
--host |
--hos |
--ho)
871 ac_prev
=host_alias
;;
872 -host=* |
--host=* |
--hos=* |
--ho=*)
873 host_alias
=$ac_optarg ;;
875 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
877 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
879 htmldir
=$ac_optarg ;;
881 -includedir |
--includedir |
--includedi |
--included |
--include \
882 |
--includ |
--inclu |
--incl |
--inc)
883 ac_prev
=includedir
;;
884 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
885 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
886 includedir
=$ac_optarg ;;
888 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
890 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
891 infodir
=$ac_optarg ;;
893 -libdir |
--libdir |
--libdi |
--libd)
895 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
898 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
899 |
--libexe |
--libex |
--libe)
900 ac_prev
=libexecdir
;;
901 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
902 |
--libexe=* |
--libex=* |
--libe=*)
903 libexecdir
=$ac_optarg ;;
905 -localedir |
--localedir |
--localedi |
--localed |
--locale)
907 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
908 localedir
=$ac_optarg ;;
910 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
911 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
912 ac_prev
=localstatedir
;;
913 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
914 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
915 localstatedir
=$ac_optarg ;;
917 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
919 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
923 # Obsolete; use --without-fp.
926 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
927 |
--no-cr |
--no-c |
-n)
930 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
931 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
934 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
935 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
936 |
--oldin |
--oldi |
--old |
--ol |
--o)
937 ac_prev
=oldincludedir
;;
938 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
939 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
940 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
941 oldincludedir
=$ac_optarg ;;
943 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
945 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
948 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
949 |
--program-pre |
--program-pr |
--program-p)
950 ac_prev
=program_prefix
;;
951 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
952 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
953 program_prefix
=$ac_optarg ;;
955 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
956 |
--program-suf |
--program-su |
--program-s)
957 ac_prev
=program_suffix
;;
958 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
959 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
960 program_suffix
=$ac_optarg ;;
962 -program-transform-name |
--program-transform-name \
963 |
--program-transform-nam |
--program-transform-na \
964 |
--program-transform-n |
--program-transform- \
965 |
--program-transform |
--program-transfor \
966 |
--program-transfo |
--program-transf \
967 |
--program-trans |
--program-tran \
968 |
--progr-tra |
--program-tr |
--program-t)
969 ac_prev
=program_transform_name
;;
970 -program-transform-name=* |
--program-transform-name=* \
971 |
--program-transform-nam=* |
--program-transform-na=* \
972 |
--program-transform-n=* |
--program-transform-=* \
973 |
--program-transform=* |
--program-transfor=* \
974 |
--program-transfo=* |
--program-transf=* \
975 |
--program-trans=* |
--program-tran=* \
976 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
977 program_transform_name
=$ac_optarg ;;
979 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
981 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
984 -psdir |
--psdir |
--psdi |
--psd |
--ps)
986 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
989 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
990 |
-silent |
--silent |
--silen |
--sile |
--sil)
993 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
994 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
995 |
--run |
--ru |
--r)
996 ac_prev
=runstatedir
;;
997 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
998 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
999 |
--run=* |
--ru=* |
--r=*)
1000 runstatedir
=$ac_optarg ;;
1002 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1004 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1006 sbindir
=$ac_optarg ;;
1008 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1009 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1010 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1012 ac_prev
=sharedstatedir
;;
1013 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1014 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1015 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1017 sharedstatedir
=$ac_optarg ;;
1019 -site |
--site |
--sit)
1021 -site=* |
--site=* |
--sit=*)
1024 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1026 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1027 srcdir
=$ac_optarg ;;
1029 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1030 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1031 ac_prev
=sysconfdir
;;
1032 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1033 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1034 sysconfdir
=$ac_optarg ;;
1036 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1037 ac_prev
=target_alias
;;
1038 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1039 target_alias
=$ac_optarg ;;
1041 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1044 -version |
--version |
--versio |
--versi |
--vers |
-V)
1045 ac_init_version
=: ;;
1048 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1051 as_fn_error $?
"invalid package name: $ac_useropt"
1052 ac_useropt_orig
=$ac_useropt
1053 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1058 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval with_
$ac_useropt=\
$ac_optarg ;;
1063 -without-* |
--without-*)
1064 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1067 as_fn_error $?
"invalid package name: $ac_useropt"
1068 ac_useropt_orig
=$ac_useropt
1069 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1074 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1075 ac_unrecognized_sep
=', ';;
1077 eval with_
$ac_useropt=no
;;
1080 # Obsolete; use --with-x.
1083 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1084 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1085 ac_prev
=x_includes
;;
1086 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1087 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1088 x_includes
=$ac_optarg ;;
1090 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1091 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1092 ac_prev
=x_libraries
;;
1093 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1094 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1095 x_libraries
=$ac_optarg ;;
1097 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1098 Try \`$0 --help' for more information"
1102 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 case $ac_envvar in #(
1105 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1106 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1108 eval $ac_envvar=\
$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1122 if test -n "$ac_prev"; then
1123 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1124 as_fn_error $?
"missing argument to $ac_option"
1127 if test -n "$ac_unrecognized_opts"; then
1128 case $enable_option_checking in
1130 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1131 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1135 # Check all directory arguments for consistency.
1136 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir runstatedir
1141 eval ac_val
=\$
$ac_var
1142 # Remove trailing slashes.
1145 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1146 eval $ac_var=\
$ac_val;;
1148 # Be sure to have absolute directory names.
1150 [\\/$
]* | ?
:[\\/]* ) continue;;
1151 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1153 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1156 # There might be people who depend on the old broken behavior: `$host'
1157 # used to hold the argument of --host etc.
1158 # FIXME: To remove some day.
1161 target
=$target_alias
1163 # FIXME: To remove some day.
1164 if test "x$host_alias" != x
; then
1165 if test "x$build_alias" = x
; then
1166 cross_compiling
=maybe
1167 elif test "x$build_alias" != "x$host_alias"; then
1173 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1175 test "$silent" = yes && exec 6>/dev
/null
1178 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1179 ac_ls_di
=`ls -di .` &&
1180 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1181 as_fn_error $?
"working directory cannot be determined"
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 as_fn_error $?
"pwd does not report name of working directory"
1186 # Find the source files, if location was not specified.
1187 if test -z "$srcdir"; then
1188 ac_srcdir_defaulted
=yes
1189 # Try the directory containing this script, then the parent directory.
1190 ac_confdir
=`$as_dirname -- "$as_myself" ||
1191 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192 X"$as_myself" : 'X\(//\)[^/]' \| \
1193 X"$as_myself" : 'X\(//\)$' \| \
1194 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1195 $as_echo X"$as_myself" |
1196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1218 ac_srcdir_defaulted
=no
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1222 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1224 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1236 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 for ac_var
in $ac_precious_vars; do
1239 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1241 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1252 \`configure' configures this package to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking ...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1311 --program-prefix=PREFIX prepend PREFIX to installed program names
1312 --program-suffix=SUFFIX append SUFFIX to installed program names
1313 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1317 if test -n "$ac_init_help"; then
1321 Some influential environment variables
:
1322 CC C compiler
command
1323 CFLAGS C compiler flags
1324 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1325 nonstandard directory
<lib dir
>
1326 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1327 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1328 you have headers
in a nonstandard directory
<include dir
>
1330 sdccconf_h_dir_separator
1331 needed
in sdccconf.h
: either
"/" (default
) or
"\\"
1333 appended to datadir to define SDCC
's library root directory
1335 Use these variables to override the choices made by `configure' or to
help
1336 it to
find libraries and programs with nonstandard names
/locations.
1338 Report bugs to the package provider.
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1346 test -d "$ac_dir" ||
1347 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1352 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1354 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1359 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1362 ac_abs_top_builddir
=$ac_pwd
1363 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir
=$ac_top_build_prefix
1368 .
) # We are building in place.
1370 ac_top_srcdir
=$ac_top_builddir_sub
1371 ac_abs_top_srcdir
=$ac_pwd ;;
1372 [\\/]* | ?
:[\\/]* ) # Absolute name.
1373 ac_srcdir
=$srcdir$ac_dir_suffix;
1374 ac_top_srcdir
=$srcdir
1375 ac_abs_top_srcdir
=$srcdir ;;
1377 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1381 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1383 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1392 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1394 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1402 generated by GNU Autoconf
2.69
1404 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1405 This configure
script is free software
; the Free Software Foundation
1406 gives unlimited permission to copy
, distribute and modify it.
1411 ## ------------------------ ##
1412 ## Autoconf initialization. ##
1413 ## ------------------------ ##
1415 # ac_fn_c_try_compile LINENO
1416 # --------------------------
1417 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1418 ac_fn_c_try_compile
()
1420 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1421 rm -f conftest.
$ac_objext
1422 if { { ac_try
="$ac_compile"
1424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1425 *) ac_try_echo=$ac_try;;
1427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 $as_echo "$ac_try_echo"; } >&5
1429 (eval "$ac_compile") 2>conftest.err
1431 if test -s conftest.err; then
1432 grep -v '^ *+' conftest.err >conftest.er1
1433 cat conftest.er1 >&5
1434 mv -f conftest.er1 conftest.err
1436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 test $ac_status = 0; } && {
1438 test -z "$ac_c_werror_flag" ||
1439 test ! -s conftest.err
1440 } && test -s conftest.$ac_objext; then :
1443 $as_echo "$as_me: failed program was:" >&5
1444 sed 's/^/| /' conftest.$ac_ext >&5
1448 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1449 as_fn_set_status $ac_retval
1451 } # ac_fn_c_try_compile
1453 # ac_fn_c_try_cpp LINENO
1454 # ----------------------
1455 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 if { { ac_try="$ac_cpp conftest.$ac_ext"
1461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1462 *) ac_try_echo
=$ac_try;;
1464 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465 $as_echo "$ac_try_echo"; } >&5
1466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1468 if test -s conftest.err
; then
1469 grep -v '^ *+' conftest.err
>conftest.er1
1470 cat conftest.er1
>&5
1471 mv -f conftest.er1 conftest.err
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } > conftest.i
&& {
1475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1476 test ! -s conftest.err
1480 $as_echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.
$ac_ext >&5
1485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486 as_fn_set_status
$ac_retval
1490 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1491 # -------------------------------------------------------
1492 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1493 # the include files in INCLUDES and setting the cache variable VAR
1495 ac_fn_c_check_header_mongrel
()
1497 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1498 if eval \
${$3+:} false
; then :
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500 $as_echo_n "checking for $2... " >&6; }
1501 if eval \
${$3+:} false
; then :
1502 $as_echo_n "(cached) " >&6
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1506 $as_echo "$ac_res" >&6; }
1508 # Is the header compilable?
1509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1510 $as_echo_n "checking $2 usability... " >&6; }
1511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1512 /* end confdefs.h. */
1516 if ac_fn_c_try_compile
"$LINENO"; then :
1517 ac_header_compiler
=yes
1519 ac_header_compiler
=no
1521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1523 $as_echo "$ac_header_compiler" >&6; }
1525 # Is the header present?
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1527 $as_echo_n "checking $2 presence... " >&6; }
1528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1529 /* end confdefs.h. */
1532 if ac_fn_c_try_cpp
"$LINENO"; then :
1533 ac_header_preproc
=yes
1535 ac_header_preproc
=no
1537 rm -f conftest.err conftest.i conftest.
$ac_ext
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1539 $as_echo "$ac_header_preproc" >&6; }
1541 # So? What about this header?
1542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1545 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1547 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1551 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1553 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1555 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1557 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1559 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 $as_echo_n "checking for $2... " >&6; }
1564 if eval \
${$3+:} false
; then :
1565 $as_echo_n "(cached) " >&6
1567 eval "$3=\$ac_header_compiler"
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 } # ac_fn_c_check_header_mongrel
1577 # ac_fn_c_try_run LINENO
1578 # ----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580 # that executables *can* be run.
1583 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1584 if { { ac_try
="$ac_link"
1586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>&5
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595 { { case "(($ac_try" in
1596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1597 *) ac_try_echo
=$ac_try;;
1599 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_try") 2>&5
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; }; }; then :
1607 $as_echo "$as_me: program exited with status $ac_status" >&5
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.
$ac_ext >&5
1611 ac_retval
=$ac_status
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status
$ac_retval
1619 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1620 # -------------------------------------------------------
1621 # Tests whether HEADER exists and can be compiled using the include files in
1622 # INCLUDES, setting the cache variable VAR accordingly.
1623 ac_fn_c_check_header_compile
()
1625 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \
${$3+:} false
; then :
1629 $as_echo_n "(cached) " >&6
1631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1636 if ac_fn_c_try_compile
"$LINENO"; then :
1641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 } # ac_fn_c_check_header_compile
1650 # ac_fn_c_try_link LINENO
1651 # -----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1656 rm -f conftest.
$ac_objext conftest
$ac_exeext
1657 if { { ac_try
="$ac_link"
1659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>conftest.err
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest$ac_exeext && {
1676 test "$cross_compiling" = yes ||
1677 test -x conftest$ac_exeext
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688 # interfere with the next link command; also delete a directory that is
1689 # left behind by Apple's compiler. We do this before executing the actions.
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1694 } # ac_fn_c_try_link
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1699 It was created by $as_me, which was
1700 generated by GNU Autoconf 2.69. Invocation command line was
1712 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1713 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1714 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1715 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1716 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1718 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1719 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1721 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1722 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1723 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1724 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1725 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1726 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1727 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 $as_echo "PATH: $as_dir"
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1760 ac_must_keep_next=false
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1771 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1774 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1776 as_fn_append ac_configure_args1 " '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
1778 ac_must_keep_next=false # Got value, back to normal.
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789 -* ) ac_must_keep_next=true ;;
1792 as_fn_append ac_configure_args " '$ac_arg'"
1797 { ac_configure_args0=; unset ac_configure_args0;}
1798 { ac_configure_args1=; unset ac_configure_args1;}
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log. We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1810 $as_echo "## ---------------- ##
1811 ## Cache variables. ##
1812 ## ---------------- ##"
1814 # The following way of writing the cache mishandles newlines in values,
1816 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1817 eval ac_val=\$$ac_var
1821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1825 _ | IFS | as_nl) ;; #(
1826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1827 *) { eval $ac_var=; unset $ac_var;} ;;
1832 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1833 *${as_nl}ac_space=\ *)
1835 "s/'\''/'\''\\\\'\'''\''/g;
1836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 $as_echo "## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##"
1850 for ac_var in $ac_subst_vars
1852 eval ac_val=\$$ac_var
1854 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 $as_echo "$ac_var='\''$ac_val'\''"
1860 if test -n "$ac_subst_files"; then
1861 $as_echo "## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##"
1865 for ac_var in $ac_subst_files
1867 eval ac_val=\$$ac_var
1869 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871 $as_echo "$ac_var='\''$ac_val'\''"
1876 if test -s confdefs.h; then
1877 $as_echo "## ----------- ##
1884 test "$ac_signal" != 0 &&
1885 $as_echo "$as_me: caught signal $ac_signal"
1886 $as_echo "$as_me: exit $exit_status"
1888 rm -f core *.core core.conftest.* &&
1889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1892 for ac_signal in 1 2 13 15; do
1893 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1898 rm -f -r conftest* confdefs.h
1900 $as_echo "/* confdefs.h */" > confdefs.h
1902 # Predefined preprocessor variables.
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_NAME "$PACKAGE_NAME"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_STRING "$PACKAGE_STRING"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_URL "$PACKAGE_URL"
1929 # Let the site file select an alternate cache file if it wants to.
1930 # Prefer an explicitly selected file to automatically selected ones.
1933 if test -n "$CONFIG_SITE"; then
1934 # We do not want a PATH search for config.site.
1935 case $CONFIG_SITE in #((
1936 -*) ac_site_file1=./$CONFIG_SITE;;
1937 */*) ac_site_file1=$CONFIG_SITE;;
1938 *) ac_site_file1=./$CONFIG_SITE;;
1940 elif test "x$prefix" != xNONE; then
1941 ac_site_file1=$prefix/share/config.site
1942 ac_site_file2=$prefix/etc/config.site
1944 ac_site_file1=$ac_default_prefix/share/config.site
1945 ac_site_file2=$ac_default_prefix/etc/config.site
1947 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1949 test "x$ac_site_file" = xNONE && continue
1950 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1952 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1953 sed 's/^/| /' "$ac_site_file" >&5
1955 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1957 as_fn_error $? "failed to load site
script $ac_site_file
1958 See \
`config.log' for more details" "$LINENO" 5; }
1962 if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special files
1964 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1965 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1967 $as_echo "$as_me: loading cache $cache_file" >&6;}
1969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1975 $as_echo "$as_me: creating cache $cache_file" >&6;}
1979 # Check that the precious variables saved in the cache have kept the same
1981 ac_cache_corrupted=false
1982 for ac_var in $ac_precious_vars; do
1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
1987 case $ac_old_set,$ac_new_set in
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1990 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1994 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
1999 # differences in whitespace do not lead to failure.
2000 ac_old_val_w=`echo x
$ac_old_val`
2001 ac_new_val_w=`echo x
$ac_new_val`
2002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2005 ac_cache_corrupted=:
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2009 eval $ac_var=\$ac_old_val
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2012 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2017 # Pass precious variables to config.status.
2018 if test "$ac_new_set" = set; then
2020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2021 *) ac_arg=$ac_var=$ac_new_val ;;
2023 case " $ac_configure_args " in
2024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2025 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2029 if $ac_cache_corrupted; then
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2034 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2036 ## -------------------- ##
2037 ## Main body of script. ##
2038 ## -------------------- ##
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 ac_config_headers="$ac_config_headers config.h"
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057 if test -n "$ac_tool_prefix"; then
2058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2061 $as_echo_n "checking for $ac_word... " >&6; }
2062 if ${ac_cv_prog_CC+:} false; then :
2063 $as_echo_n "(cached) " >&6
2065 if test -n "$CC"; then
2066 ac_cv_prog_CC="$CC" # Let the user override the test.
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 if test -n "$CC"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2088 $as_echo "$CC" >&6; }
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2091 $as_echo "no" >&6; }
2096 if test -z "$ac_cv_prog_CC"; then
2098 # Extract the first word of "gcc", so it can be a program name with args.
2099 set dummy gcc; ac_word=$2
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2101 $as_echo_n "checking for $ac_word... " >&6; }
2102 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2103 $as_echo_n "(cached) " >&6
2105 if test -n "$ac_ct_CC"; then
2106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_ac_ct_CC="gcc"
2116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2126 if test -n "$ac_ct_CC"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2128 $as_echo "$ac_ct_CC" >&6; }
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2131 $as_echo "no" >&6; }
2134 if test "x$ac_ct_CC" = x; then
2137 case $cross_compiling:$ac_tool_warned in
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2141 ac_tool_warned=yes ;;
2149 if test -z "$CC"; then
2150 if test -n "$ac_tool_prefix"; then
2151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2152 set dummy ${ac_tool_prefix}cc; ac_word=$2
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2154 $as_echo_n "checking for $ac_word... " >&6; }
2155 if ${ac_cv_prog_CC+:} false; then :
2156 $as_echo_n "(cached) " >&6
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 ac_cv_prog_CC="${ac_tool_prefix}cc"
2169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 if test -n "$CC"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2181 $as_echo "$CC" >&6; }
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2184 $as_echo "no" >&6; }
2190 if test -z "$CC"; then
2191 # Extract the first word of "cc", so it can be a program name with args.
2192 set dummy cc; ac_word=$2
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2194 $as_echo_n "checking for $ac_word... " >&6; }
2195 if ${ac_cv_prog_CC+:} false; then :
2196 $as_echo_n "(cached) " >&6
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2210 ac_prog_rejected=yes
2214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 if test $ac_prog_rejected = yes; then
2222 # We found a bogon in the path, so make sure we never use it.
2223 set dummy $ac_cv_prog_CC
2225 if test $# != 0; then
2226 # We chose a different compiler from the bogus one.
2227 # However, it has the same basename, so the bogon will be chosen
2228 # first if we set CC to just the basename; use the full file name.
2230 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2236 if test -n "$CC"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2238 $as_echo "$CC" >&6; }
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2241 $as_echo "no" >&6; }
2246 if test -z "$CC"; then
2247 if test -n "$ac_tool_prefix"; then
2248 for ac_prog in cl.exe
2250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if ${ac_cv_prog_CC+:} false; then :
2255 $as_echo_n "(cached) " >&6
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 if test -n "$CC"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2280 $as_echo "$CC" >&6; }
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2283 $as_echo "no" >&6; }
2287 test -n "$CC" && break
2290 if test -z "$CC"; then
2292 for ac_prog in cl.exe
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297 $as_echo_n "checking for $ac_word... " >&6; }
2298 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2299 $as_echo_n "(cached) " >&6
2301 if test -n "$ac_ct_CC"; then
2302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_ac_ct_CC="$ac_prog"
2312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2322 if test -n "$ac_ct_CC"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2324 $as_echo "$ac_ct_CC" >&6; }
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327 $as_echo "no" >&6; }
2331 test -n "$ac_ct_CC" && break
2334 if test "x$ac_ct_CC" = x; then
2337 case $cross_compiling:$ac_tool_warned in
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2341 ac_tool_warned=yes ;;
2350 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2353 See \
`config.log' for more details" "$LINENO" 5; }
2355 # Provide some information about the compiler.
2356 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2359 for ac_option in --version -v -V -qversion; do
2360 { { ac_try="$ac_compiler $ac_option >&5"
2362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2363 *) ac_try_echo
=$ac_try;;
2365 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2366 $as_echo "$ac_try_echo"; } >&5
2367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2369 if test -s conftest.err
; then
2371 ... rest of stderr output deleted ...
2372 10q' conftest.err
>conftest.er1
2373 cat conftest.er1
>&5
2375 rm -f conftest.er1 conftest.err
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; }
2380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2391 ac_clean_files_save
=$ac_clean_files
2392 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2393 # Try to create an executable without -o first, disregard a.out.
2394 # It will help us diagnose broken compilers, and finding out an intuition
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2397 $as_echo_n "checking whether the C compiler works... " >&6; }
2398 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400 # The possible output files:
2401 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2404 for ac_file
in $ac_files
2407 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2408 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2413 if { { ac_try
="$ac_link_default"
2415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_link_default") 2>&5
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; }; then :
2424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2425 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2427 # so that the user can short-circuit this test for compilers unknown to
2429 for ac_file in $ac_files ''
2431 test -f "$ac_file" || continue
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2436 # We found the default executable, but exeext='' is most
2440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 # We set ac_cv_exeext here because the later test for it is not
2445 # safe: cross compilers may not add the suffix if given an `-o'
2446 # argument, so we may need to know it at that point already.
2447 # Even if this section looks crufty: it has the advantage of
2454 test "$ac_cv_exeext" = no && ac_cv_exeext=
2459 if test -z "$ac_file"; then :
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2462 $as_echo "$as_me: failed program was:" >&5
2463 sed 's
/^
/|
/' conftest.$ac_ext >&5
2465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2467 as_fn_error 77 "C compiler cannot create executables
2468 See \`config.log
' for more details" "$LINENO" 5; }
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471 $as_echo "yes" >&6; }
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2474 $as_echo_n "checking for C compiler default output file name... " >&6; }
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2476 $as_echo "$ac_file" >&6; }
2477 ac_exeext=$ac_cv_exeext
2479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2480 ac_clean_files=$ac_clean_files_save
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2482 $as_echo_n "checking for suffix of executables... " >&6; }
2483 if { { ac_try="$ac_link"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_link") 2>&5
2492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493 test $ac_status = 0; }; then :
2494 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2495 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2496 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2498 for ac_file
in conftest.exe conftest conftest.
*; do
2499 test -f "$ac_file" ||
continue
2501 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2502 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details" "$LINENO" 5; }
2513 rm -f conftest conftest
$ac_cv_exeext
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2515 $as_echo "$ac_cv_exeext" >&6; }
2517 rm -f conftest.
$ac_ext
2518 EXEEXT
=$ac_cv_exeext
2520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2526 FILE *f = fopen ("conftest.out", "w");
2527 return ferror (f) || fclose (f) != 0;
2533 ac_clean_files
="$ac_clean_files conftest.out"
2534 # Check that the compiler produces executables we can run. If not, either
2535 # the compiler is broken, or we cross compile.
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2537 $as_echo_n "checking whether we are cross compiling... " >&6; }
2538 if test "$cross_compiling" != yes; then
2539 { { ac_try
="$ac_link"
2541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2545 $as_echo "$ac_try_echo"; } >&5
2546 (eval "$ac_link") 2>&5
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; }
2550 if { ac_try='./conftest$ac_cv_exeext'
2551 { { case "(($ac_try" in
2552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2553 *) ac_try_echo
=$ac_try;;
2555 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556 $as_echo "$ac_try_echo"; } >&5
2557 (eval "$ac_try") 2>&5
2559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2560 test $ac_status = 0; }; }; then
2563 if test "$cross_compiling" = maybe
; then
2566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 as_fn_error $?
"cannot run C compiled programs.
2569 If you meant to cross compile, use \`--host'.
2570 See \`config.log' for more details" "$LINENO" 5; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2575 $as_echo "$cross_compiling" >&6; }
2577 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2578 ac_clean_files
=$ac_clean_files_save
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2580 $as_echo_n "checking for suffix of object files... " >&6; }
2581 if ${ac_cv_objext+:} false
; then :
2582 $as_echo_n "(cached) " >&6
2584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2595 rm -f conftest.o conftest.obj
2596 if { { ac_try
="$ac_compile"
2598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2602 $as_echo "$ac_try_echo"; } >&5
2603 (eval "$ac_compile") 2>&5
2605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2606 test $ac_status = 0; }; then :
2607 for ac_file in conftest.o conftest.obj conftest.*; do
2608 test -f "$ac_file" || continue;
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2616 $as_echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2622 See \
`config.log' for more details" "$LINENO" 5; }
2624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2627 $as_echo "$ac_cv_objext" >&6; }
2628 OBJEXT=$ac_cv_objext
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2632 if ${ac_cv_c_compiler_gnu+:} false; then :
2633 $as_echo_n "(cached) " >&6
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2649 if ac_fn_c_try_compile "$LINENO"; then :
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2660 if test $ac_compiler_gnu = yes; then
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2669 if ${ac_cv_prog_cc_g+:} false; then :
2670 $as_echo_n "(cached) " >&6
2672 ac_save_c_werror_flag=$ac_c_werror_flag
2673 ac_c_werror_flag=yes
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2687 if ac_fn_c_try_compile "$LINENO"; then :
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2702 if ac_fn_c_try_compile "$LINENO"; then :
2705 ac_c_werror_flag=$ac_save_c_werror_flag
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2718 if ac_fn_c_try_compile "$LINENO"; then :
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_c_werror_flag=$ac_save_c_werror_flag
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2729 $as_echo "$ac_cv_prog_cc_g" >&6; }
2730 if test "$ac_test_CFLAGS" = set; then
2731 CFLAGS=$ac_save_CFLAGS
2732 elif test $ac_cv_prog_cc_g = yes; then
2733 if test "$GCC" = yes; then
2739 if test "$GCC" = yes; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2747 if ${ac_cv_prog_cc_c89+:} false; then :
2748 $as_echo_n "(cached) " >&6
2750 ac_cv_prog_cc_c89=no
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2758 struct buf { int x; };
2759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2760 static char *e (p, i)
2766 static char *f (char * (*g) (char **, int), char **p, ...)
2771 s = g (p, va_arg (v,int));
2776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2777 function prototypes and stuff, but not '\xHH' hex character constants.
2778 These don't provoke an error unfortunately, instead are silently treated
2779 as 'x'. The following induces an error, until -std is added to get
2780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2781 array size at least. It's necessary to write '\x00'==0 to get something
2782 that's true only with -std. */
2783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2786 inside strings and character constants. */
2788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2790 int test (int i, double x);
2791 struct s1 {int (*f) (int a);};
2792 struct s2 {int (*f) (double a);};
2793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2807 CC="$ac_save_CC $ac_arg"
2808 if ac_fn_c_try_compile "$LINENO"; then :
2809 ac_cv_prog_cc_c89=$ac_arg
2811 rm -f core conftest.err conftest.$ac_objext
2812 test "x$ac_cv_prog_cc_c89" != "xno" && break
2814 rm -f conftest.$ac_ext
2819 case "x$ac_cv_prog_cc_c89" in
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2822 $as_echo "none needed" >&6; } ;;
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2825 $as_echo "unsupported" >&6; } ;;
2827 CC="$CC $ac_cv_prog_cc_c89"
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2831 if test "x$ac_cv_prog_cc_c89" != xno; then :
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2848 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2849 # On Suns, sometimes $CPP names a directory.
2850 if test -n "$CPP" && test -d "$CPP"; then
2853 if test -z "$CPP"; then
2854 if ${ac_cv_prog_CPP+:} false; then :
2855 $as_echo_n "(cached) " >&6
2857 # Double quotes because CPP needs to be expanded
2858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2861 for ac_c_preproc_warn_flag in '' yes
2863 # Use a header file that comes with gcc, so configuring glibc
2864 # with a fresh cross-compiler works.
2865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2866 # <limits.h> exists even on freestanding compilers.
2867 # On the NeXT, cc -E runs the code through the compiler's parser,
2868 # not just through cpp. "Syntax error" is here to catch this case.
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2872 # include <limits.h>
2874 # include <assert.h>
2878 if ac_fn_c_try_cpp "$LINENO"; then :
2881 # Broken: fails on valid input.
2884 rm -f conftest.err conftest.i conftest.$ac_ext
2886 # OK, works on sane cases. Now check whether nonexistent headers
2887 # can be detected and how.
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2890 #include <ac_nonexistent.h>
2892 if ac_fn_c_try_cpp "$LINENO"; then :
2893 # Broken: success on invalid input.
2896 # Passes both tests.
2900 rm -f conftest.err conftest.i conftest.$ac_ext
2903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2904 rm -f conftest.i conftest.err conftest.
$ac_ext
2905 if $ac_preproc_ok; then :
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2918 $as_echo "$CPP" >&6; }
2920 for ac_c_preproc_warn_flag
in '' yes
2922 # Use a header file that comes with gcc, so configuring glibc
2923 # with a fresh cross-compiler works.
2924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2925 # <limits.h> exists even on freestanding compilers.
2926 # On the NeXT, cc -E runs the code through the compiler's parser,
2927 # not just through cpp. "Syntax error" is here to catch this case.
2928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2931 # include <limits.h>
2933 # include <assert.h>
2937 if ac_fn_c_try_cpp
"$LINENO"; then :
2940 # Broken: fails on valid input.
2943 rm -f conftest.err conftest.i conftest.
$ac_ext
2945 # OK, works on sane cases. Now check whether nonexistent headers
2946 # can be detected and how.
2947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949 #include <ac_nonexistent.h>
2951 if ac_fn_c_try_cpp
"$LINENO"; then :
2952 # Broken: success on invalid input.
2955 # Passes both tests.
2959 rm -f conftest.err conftest.i conftest.
$ac_ext
2962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2963 rm -f conftest.i conftest.err conftest.
$ac_ext
2964 if $ac_preproc_ok; then :
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details" "$LINENO" 5; }
2974 ac_cpp
='$CPP $CPPFLAGS'
2975 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2981 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2982 if ${ac_cv_path_GREP+:} false
; then :
2983 $as_echo_n "(cached) " >&6
2985 if test -z "$GREP"; then
2986 ac_path_GREP_found
=false
2987 # Loop through the user's path and test for each of PROGNAME-LIST
2988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2989 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
2992 test -z "$as_dir" && as_dir
=.
2993 for ac_prog
in grep ggrep
; do
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
2996 as_fn_executable_p
"$ac_path_GREP" ||
continue
2997 # Check for GNU ac_path_GREP and select it if it is found.
2998 # Check for GNU $ac_path_GREP
2999 case `"$ac_path_GREP" --version 2>&1` in
3001 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3004 $as_echo_n 0123456789 >"conftest.in"
3007 cat "conftest.in" "conftest.in" >"conftest.tmp"
3008 mv "conftest.tmp" "conftest.in"
3009 cp "conftest.in" "conftest.nl"
3010 $as_echo 'GREP' >> "conftest.nl"
3011 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3012 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3013 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3014 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3015 # Best one so far, save it but keep looking for a better one
3016 ac_cv_path_GREP
="$ac_path_GREP"
3017 ac_path_GREP_max
=$ac_count
3019 # 10*(2^10) chars as input seems more than enough
3020 test $ac_count -gt 10 && break
3022 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3025 $ac_path_GREP_found && break 3
3030 if test -z "$ac_cv_path_GREP"; then
3031 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3034 ac_cv_path_GREP
=$GREP
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3039 $as_echo "$ac_cv_path_GREP" >&6; }
3040 GREP
="$ac_cv_path_GREP"
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3044 $as_echo_n "checking for egrep... " >&6; }
3045 if ${ac_cv_path_EGREP+:} false
; then :
3046 $as_echo_n "(cached) " >&6
3048 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3049 then ac_cv_path_EGREP
="$GREP -E"
3051 if test -z "$EGREP"; then
3052 ac_path_EGREP_found
=false
3053 # Loop through the user's path and test for each of PROGNAME-LIST
3054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3055 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3058 test -z "$as_dir" && as_dir
=.
3059 for ac_prog
in egrep; do
3060 for ac_exec_ext
in '' $ac_executable_extensions; do
3061 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3062 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3063 # Check for GNU ac_path_EGREP and select it if it is found.
3064 # Check for GNU $ac_path_EGREP
3065 case `"$ac_path_EGREP" --version 2>&1` in
3067 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3070 $as_echo_n 0123456789 >"conftest.in"
3073 cat "conftest.in" "conftest.in" >"conftest.tmp"
3074 mv "conftest.tmp" "conftest.in"
3075 cp "conftest.in" "conftest.nl"
3076 $as_echo 'EGREP' >> "conftest.nl"
3077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3078 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3079 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3081 # Best one so far, save it but keep looking for a better one
3082 ac_cv_path_EGREP
="$ac_path_EGREP"
3083 ac_path_EGREP_max
=$ac_count
3085 # 10*(2^10) chars as input seems more than enough
3086 test $ac_count -gt 10 && break
3088 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3091 $ac_path_EGREP_found && break 3
3096 if test -z "$ac_cv_path_EGREP"; then
3097 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3100 ac_cv_path_EGREP
=$EGREP
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3106 $as_echo "$ac_cv_path_EGREP" >&6; }
3107 EGREP
="$ac_cv_path_EGREP"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3111 $as_echo_n "checking for ANSI C header files... " >&6; }
3112 if ${ac_cv_header_stdc+:} false
; then :
3113 $as_echo_n "(cached) " >&6
3115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3130 if ac_fn_c_try_compile
"$LINENO"; then :
3131 ac_cv_header_stdc
=yes
3133 ac_cv_header_stdc
=no
3135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3137 if test $ac_cv_header_stdc = yes; then
3138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3145 $EGREP "memchr" >/dev
/null
2>&1; then :
3148 ac_cv_header_stdc
=no
3154 if test $ac_cv_header_stdc = yes; then
3155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3162 $EGREP "free" >/dev
/null
2>&1; then :
3165 ac_cv_header_stdc
=no
3171 if test $ac_cv_header_stdc = yes; then
3172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3173 if test "$cross_compiling" = yes; then :
3176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3180 #if ((' ' & 0x0FF) == 0x020)
3181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3184 # define ISLOWER(c) \
3185 (('a' <= (c) && (c) <= 'i') \
3186 || ('j' <= (c) && (c) <= 'r') \
3187 || ('s' <= (c) && (c) <= 'z'))
3188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3196 for (i = 0; i < 256; i++)
3197 if (XOR (islower (i), ISLOWER (i))
3198 || toupper (i) != TOUPPER (i))
3203 if ac_fn_c_try_run
"$LINENO"; then :
3206 ac_cv_header_stdc
=no
3208 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3209 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3215 $as_echo "$ac_cv_header_stdc" >&6; }
3216 if test $ac_cv_header_stdc = yes; then
3218 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3223 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3224 inttypes.h stdint.h unistd.h
3226 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3227 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3229 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3230 cat >>confdefs.h
<<_ACEOF
3231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3241 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
3242 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
3248 if test "$ac_cv_header_readline_readline_h" = yes; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Readline version" >&5
3251 $as_echo_n "checking for GNU Readline version... " >&6; }
3252 cat > conftest.
$ac_ext <<EOF
3254 #include <readline/readline.h>
3255 wi_LIB_READLINE_VERSION RL_VERSION_MAJOR RL_VERSION_MINOR
3258 wi_READLINE_VERSION
=$
($CPP $CPPFLAGS conftest.
$ac_ext |
sed -n -e "s/^wi_LIB_READLINE_VERSION *\([0-9][0-9]*\) *\([0-9][0-9]*\)$/\1.\2/p")
3261 if test -n "$wi_READLINE_VERSION"; then
3262 wi_MAJOR
=$
(expr $wi_READLINE_VERSION : '\([0-9][0-9]*\)\.')
3263 wi_MINOR
=$
(expr $wi_READLINE_VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)')
3264 if test $wi_MINOR -lt 10; then
3265 wi_MINOR
=$
(expr $wi_MINOR \
* 10)
3267 wi_READLINE_VERSION
=$
(expr $wi_MAJOR \
* 100 + $wi_MINOR)
3269 wi_READLINE_VERSION
=-1
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wi_READLINE_VERSION" >&5
3272 $as_echo "$wi_READLINE_VERSION" >&6; }
3275 ac_save_LIBS
="$LIBS"
3276 # Note: $LIBCURSES is permitted to be empty.
3278 for LIBREADLINE
in "-lreadline.dll" "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Readline library $LIBREADLINE" >&5
3281 $as_echo_n "checking for GNU Readline library $LIBREADLINE... " >&6; }
3283 LIBS
="$ac_save_LIBS $LIBREADLINE"
3285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3290 #include <readline/readline.h>
3297 int dummy = rl_completion_append_character; /* rl_completion_append_character appeared in version 2.1 */
3304 if ac_fn_c_try_link
"$LINENO"; then :
3306 wi_cv_lib_readline
=yes
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3312 wi_cv_lib_readline
=no
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3317 rm -f core conftest.err conftest.
$ac_objext \
3318 conftest
$ac_exeext conftest.
$ac_ext
3320 if test "$wi_cv_lib_readline" = yes; then
3323 cat >>confdefs.h
<<_ACEOF
3324 #define HAVE_LIBREADLINE $wi_READLINE_VERSION
3331 LIBS
="$ac_save_LIBS"
3336 # ===========================================================================
3338 ac_cpp
='$CPP $CPPFLAGS'
3339 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3342 if test -n "$ac_tool_prefix"; then
3343 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3344 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false
; then :
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC
="$CC" # Let the user override the test.
3353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir
=.
3358 for ac_exec_ext
in '' $ac_executable_extensions; do
3359 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3381 if test -z "$ac_cv_prog_CC"; then
3383 # Extract the first word of "gcc", so it can be a program name with args.
3384 set dummy gcc
; ac_word
=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3388 $as_echo_n "(cached) " >&6
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3397 test -z "$as_dir" && as_dir
=.
3398 for ac_exec_ext
in '' $ac_executable_extensions; do
3399 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_ac_ct_CC
="gcc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3419 if test "x$ac_ct_CC" = x
; then
3422 case $cross_compiling:$ac_tool_warned in
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned
=yes ;;
3434 if test -z "$CC"; then
3435 if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3437 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false
; then :
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC
="$CC" # Let the user override the test.
3446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir
=.
3451 for ac_exec_ext
in '' $ac_executable_extensions; do
3452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 if test -n "$CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466 $as_echo "$CC" >&6; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3475 if test -z "$CC"; then
3476 # Extract the first word of "cc", so it can be a program name with args.
3477 set dummy cc
; ac_word
=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_CC+:} false
; then :
3481 $as_echo_n "(cached) " >&6
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC
="$CC" # Let the user override the test.
3487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3491 test -z "$as_dir" && as_dir
=.
3492 for ac_exec_ext
in '' $ac_executable_extensions; do
3493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3495 ac_prog_rejected
=yes
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 if test $ac_prog_rejected = yes; then
3507 # We found a bogon in the path, so make sure we never use it.
3508 set dummy
$ac_cv_prog_CC
3510 if test $# != 0; then
3511 # We chose a different compiler from the bogus one.
3512 # However, it has the same basename, so the bogon will be chosen
3513 # first if we set CC to just the basename; use the full file name.
3515 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 for ac_prog
in cl.exe
3535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3536 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false
; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC
="$CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$CC" && break
3575 if test -z "$CC"; then
3577 for ac_prog
in cl.exe
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy
$ac_prog; ac_word
=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3584 $as_echo_n "(cached) " >&6
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir
=.
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_CC
="$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3616 test -n "$ac_ct_CC" && break
3619 if test "x$ac_ct_CC" = x
; then
3622 case $cross_compiling:$ac_tool_warned in
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned
=yes ;;
3635 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $?
"no acceptable C compiler found in \$PATH
3638 See \`config.log' for more details" "$LINENO" 5; }
3640 # Provide some information about the compiler.
3641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3644 for ac_option
in --version -v -V -qversion; do
3645 { { ac_try
="$ac_compiler $ac_option >&5"
3647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654 if test -s conftest.err; then
3656 ... rest of stderr output deleted ...
3657 10q' conftest.err >conftest.er1
3658 cat conftest.er1 >&5
3660 rm -f conftest.er1 conftest.err
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3684 if ac_fn_c_try_compile "$LINENO"; then :
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3722 if ac_fn_c_try_compile "$LINENO"; then :
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3737 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3753 if ac_fn_c_try_compile "$LINENO"; then :
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3774 if test "$GCC" = yes; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783 $as_echo_n "(cached) " >&6
3785 ac_cv_prog_cc_c89=no
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3806 s = g (p, va_arg (v,int));
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_c89=$ac_arg
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3849 rm -f conftest.$ac_ext
3854 case "x$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3882 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3883 # On Suns, sometimes $CPP names a directory.
3884 if test -n "$CPP" && test -d "$CPP"; then
3887 if test -z "$CPP"; then
3888 if ${ac_cv_prog_CPP+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 # Double quotes because CPP needs to be expanded
3892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3895 for ac_c_preproc_warn_flag in '' yes
3897 # Use a header file that comes with gcc, so configuring glibc
3898 # with a fresh cross-compiler works.
3899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3900 # <limits.h> exists even on freestanding compilers.
3901 # On the NeXT, cc -E runs the code through the compiler's parser,
3902 # not just through cpp. "Syntax error" is here to catch this case.
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3906 # include <limits.h>
3908 # include <assert.h>
3912 if ac_fn_c_try_cpp "$LINENO"; then :
3915 # Broken: fails on valid input.
3918 rm -f conftest.err conftest.i conftest.$ac_ext
3920 # OK, works on sane cases. Now check whether nonexistent headers
3921 # can be detected and how.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924 #include <ac_nonexistent.h>
3926 if ac_fn_c_try_cpp "$LINENO"; then :
3927 # Broken: success on invalid input.
3930 # Passes both tests.
3934 rm -f conftest.err conftest.i conftest.$ac_ext
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.i conftest.err conftest.
$ac_ext
3939 if $ac_preproc_ok; then :
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3952 $as_echo "$CPP" >&6; }
3954 for ac_c_preproc_warn_flag
in '' yes
3956 # Use a header file that comes with gcc, so configuring glibc
3957 # with a fresh cross-compiler works.
3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 # <limits.h> exists even on freestanding compilers.
3960 # On the NeXT, cc -E runs the code through the compiler's parser,
3961 # not just through cpp. "Syntax error" is here to catch this case.
3962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3965 # include <limits.h>
3967 # include <assert.h>
3971 if ac_fn_c_try_cpp
"$LINENO"; then :
3974 # Broken: fails on valid input.
3977 rm -f conftest.err conftest.i conftest.
$ac_ext
3979 # OK, works on sane cases. Now check whether nonexistent headers
3980 # can be detected and how.
3981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983 #include <ac_nonexistent.h>
3985 if ac_fn_c_try_cpp
"$LINENO"; then :
3986 # Broken: success on invalid input.
3989 # Passes both tests.
3993 rm -f conftest.err conftest.i conftest.
$ac_ext
3996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997 rm -f conftest.i conftest.err conftest.
$ac_ext
3998 if $ac_preproc_ok; then :
4001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4004 See \`config.log' for more details" "$LINENO" 5; }
4008 ac_cpp
='$CPP $CPPFLAGS'
4009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4014 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4015 if test -f "$ac_dir/install-sh"; then
4017 ac_install_sh
="$ac_aux_dir/install-sh -c"
4019 elif test -f "$ac_dir/install.sh"; then
4021 ac_install_sh
="$ac_aux_dir/install.sh -c"
4023 elif test -f "$ac_dir/shtool"; then
4025 ac_install_sh
="$ac_aux_dir/shtool install -c"
4029 if test -z "$ac_aux_dir"; then
4030 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4033 # These three variables are undocumented and unsupported,
4034 # and are intended to be withdrawn in a future Autoconf release.
4035 # They can cause serious problems if a builder's source tree is in a directory
4036 # whose full name contains unusual characters.
4037 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4038 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4039 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4042 # Find a good install program. We prefer a C program (faster),
4043 # so one script is as good as another. But avoid the broken or
4044 # incompatible versions:
4045 # SysV /etc/install, /usr/sbin/install
4046 # SunOS /usr/etc/install
4047 # IRIX /sbin/install
4049 # AmigaOS /C/install, which installs bootblocks on floppy discs
4050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4053 # OS/2's system install, which has a completely different semantic
4054 # ./install, which can be erroneously created by make from ./install.sh.
4055 # Reject install programs that cannot install multiple files.
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4057 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4058 if test -z "$INSTALL"; then
4059 if ${ac_cv_path_install+:} false
; then :
4060 $as_echo_n "(cached) " >&6
4062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir
=.
4067 # Account for people who put trailing slashes in PATH elements.
4068 case $as_dir/ in #((
4069 .
/ | .
// |
/[cC
]/* | \
4070 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4071 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4074 # OSF1 and SCO ODT 3.0 have their own names for install.
4075 # Don't use installbsd from OSF since it installs stuff as root
4077 for ac_prog
in ginstall scoinst
install; do
4078 for ac_exec_ext
in '' $ac_executable_extensions; do
4079 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4080 if test $ac_prog = install &&
4081 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4082 # AIX install. It has an incompatible calling convention.
4084 elif test $ac_prog = install &&
4085 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4086 # program-specific install script used by HP pwplus--don't use.
4089 rm -rf conftest.one conftest.two conftest.dir
4090 echo one
> conftest.one
4091 echo two
> conftest.two
4093 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4094 test -s conftest.one
&& test -s conftest.two
&&
4095 test -s conftest.dir
/conftest.one
&&
4096 test -s conftest.dir
/conftest.two
4098 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4111 rm -rf conftest.one conftest.two conftest.dir
4114 if test "${ac_cv_path_install+set}" = set; then
4115 INSTALL
=$ac_cv_path_install
4117 # As a last resort, use the slow shell script. Don't cache a
4118 # value for INSTALL within a source directory, because that will
4119 # break other packages using the cache if that directory is
4120 # removed, or if the value is a relative name.
4121 INSTALL
=$ac_install_sh
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4125 $as_echo "$INSTALL" >&6; }
4127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4128 # It thinks the first close brace ends the variable substitution.
4129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4133 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4137 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_RANLIB+:} false
; then :
4141 $as_echo_n "(cached) " >&6
4143 if test -n "$RANLIB"; then
4144 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 RANLIB
=$ac_cv_prog_RANLIB
4164 if test -n "$RANLIB"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4166 $as_echo "$RANLIB" >&6; }
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4174 if test -z "$ac_cv_prog_RANLIB"; then
4175 ac_ct_RANLIB
=$RANLIB
4176 # Extract the first word of "ranlib", so it can be a program name with args.
4177 set dummy ranlib
; ac_word
=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4181 $as_echo_n "(cached) " >&6
4183 if test -n "$ac_ct_RANLIB"; then
4184 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir
=.
4191 for ac_exec_ext
in '' $ac_executable_extensions; do
4192 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4204 if test -n "$ac_ct_RANLIB"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4206 $as_echo "$ac_ct_RANLIB" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4212 if test "x$ac_ct_RANLIB" = x
; then
4215 case $cross_compiling:$ac_tool_warned in
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4219 ac_tool_warned
=yes ;;
4221 RANLIB
=$ac_ct_RANLIB
4224 RANLIB
="$ac_cv_prog_RANLIB"
4227 # Extract the first word of "autoconf", so it can be a program name with args.
4228 set dummy autoconf
; ac_word
=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_AUTOCONF+:} false
; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$AUTOCONF"; then
4235 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_exec_ext
in '' $ac_executable_extensions; do
4243 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_AUTOCONF
="autoconf"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF
=":"
4255 AUTOCONF
=$ac_cv_prog_AUTOCONF
4256 if test -n "$AUTOCONF"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4258 $as_echo "$AUTOCONF" >&6; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4265 # Extract the first word of "strip", so it can be a program name with args.
4266 set dummy strip
; ac_word
=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_STRIP+:} false
; then :
4270 $as_echo_n "(cached) " >&6
4272 if test -n "$STRIP"; then
4273 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir
=.
4280 for ac_exec_ext
in '' $ac_executable_extensions; do
4281 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_STRIP
="strip"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
4293 STRIP
=$ac_cv_prog_STRIP
4294 if test -n "$STRIP"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4296 $as_echo "$STRIP" >&6; }
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4303 # Extract the first word of "as", so it can be a program name with args.
4304 set dummy as
; ac_word
=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_AS+:} false
; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -n "$AS"; then
4311 ac_cv_prog_AS
="$AS" # Let the user override the test.
4313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir
=.
4318 for ac_exec_ext
in '' $ac_executable_extensions; do
4319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
=":"
4332 if test -n "$AS"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4334 $as_echo "$AS" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4341 # Extract the first word of "cp", so it can be a program name with args.
4342 set dummy
cp; ac_word
=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_prog_CP+:} false
; then :
4346 $as_echo_n "(cached) " >&6
4348 if test -n "$CP"; then
4349 ac_cv_prog_CP
="$CP" # Let the user override the test.
4351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir
=.
4356 for ac_exec_ext
in '' $ac_executable_extensions; do
4357 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP
=":"
4370 if test -n "$CP"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4372 $as_echo "$CP" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4381 ac_cpp
='$CPP $CPPFLAGS'
4382 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4387 test "$program_prefix" != NONE
&&
4388 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4389 # Use a double $ so make ignores it.
4390 test "$program_suffix" != NONE
&&
4391 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4392 # Double any \ or $.
4393 # By default was `s,x,x', remove it if useless.
4394 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4395 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4397 # Checking for header files.
4398 # ===========================================================================
4399 for ac_header
in unistd.h sys
/wait.h
4401 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4402 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4403 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4404 cat >>confdefs.h
<<_ACEOF
4405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413 for ac_header
in sys
/socket.h
4415 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4416 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
4417 cat >>confdefs.h
<<_ACEOF
4418 #define HAVE_SYS_SOCKET_H 1
4420 socket_type
=sys_socket_h
4425 if test $socket_type = unknown
; then
4426 for ac_header
in winsock2.h
4428 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4429 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
4430 cat >>confdefs.h
<<_ACEOF
4431 #define HAVE_WINSOCK2_H 1
4433 socket_type
=winsock2_h
4440 # Checking for functions/libs
4441 # ===========================================================================
4442 if test $socket_type = winsock2_h
; then
4443 LIBS
="-lws2_32 $LIBS"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4446 $as_echo_n "checking for socket in -lsocket... " >&6; }
4447 if ${ac_cv_lib_socket_socket+:} false
; then :
4448 $as_echo_n "(cached) " >&6
4450 ac_check_lib_save_LIBS
=$LIBS
4451 LIBS
="-lsocket $LIBS"
4452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4455 /* Override any GCC internal prototype to avoid an error.
4456 Use char because int might match the return type of a GCC
4457 builtin and then its argument prototype would still apply. */
4470 if ac_fn_c_try_link
"$LINENO"; then :
4471 ac_cv_lib_socket_socket
=yes
4473 ac_cv_lib_socket_socket
=no
4475 rm -f core conftest.err conftest.
$ac_objext \
4476 conftest
$ac_exeext conftest.
$ac_ext
4477 LIBS
=$ac_check_lib_save_LIBS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4480 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4481 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
4482 cat >>confdefs.h
<<_ACEOF
4483 #define HAVE_LIBSOCKET 1
4486 LIBS
="-lsocket $LIBS"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdr_short in -lnsl" >&5
4491 $as_echo_n "checking for xdr_short in -lnsl... " >&6; }
4492 if ${ac_cv_lib_nsl_xdr_short+:} false
; then :
4493 $as_echo_n "(cached) " >&6
4495 ac_check_lib_save_LIBS
=$LIBS
4497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4500 /* Override any GCC internal prototype to avoid an error.
4501 Use char because int might match the return type of a GCC
4502 builtin and then its argument prototype would still apply. */
4510 return xdr_short ();
4515 if ac_fn_c_try_link
"$LINENO"; then :
4516 ac_cv_lib_nsl_xdr_short
=yes
4518 ac_cv_lib_nsl_xdr_short
=no
4520 rm -f core conftest.err conftest.
$ac_objext \
4521 conftest
$ac_exeext conftest.
$ac_ext
4522 LIBS
=$ac_check_lib_save_LIBS
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_xdr_short" >&5
4525 $as_echo "$ac_cv_lib_nsl_xdr_short" >&6; }
4526 if test "x$ac_cv_lib_nsl_xdr_short" = xyes
; then :
4527 cat >>confdefs.h
<<_ACEOF
4528 #define HAVE_LIBNSL 1
4539 # ===========================================================================
4541 # Check whether the compiler for the current language is SunPRO.
4545 # bor_IS_VALID_OPTION macro checks if the current compiler, selected by
4546 # AC_LANG, supports option specified as the 1st parameter. The test fails if
4547 # the compiler returns an error or in case something is writeen to stderr.
4548 # For example: bor_VALID_OPT(fPIC)
4552 # This macro expands DIR and assigns it to RET.
4553 # If DIR is NONE, then it's replaced by DEFAULT.
4555 # Based on AC_DEFINE_DIR
4559 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
4563 # adl_NORMALIZE_PATH
4565 # - empty paths are changed to '.'
4566 # - trailing slashes are removed
4567 # - repeated slashes are squeezed except a leading doubled slash '//'
4568 # (which might indicate a networked disk on some OS).
4571 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4572 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4573 # are turned into backslashes, otherwise they are all turned into slashes.
4575 # This makes processing of DOS filenames quite easier, because you can turn a
4576 # filename to the Unix notation, make your processing, and turn it back to
4577 # original notation.
4585 # Checking characteristics of compilers and other programs
4586 # ===========================================================================
4587 if test "$ac_cv_c_compiler_gnu" = "yes"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether preprocessor accepts -MM or -M" >&5
4589 $as_echo_n "checking whether preprocessor accepts -MM or -M... " >&6; }
4590 if ${sdcc_cv_MM+:} false
; then :
4591 $as_echo_n "(cached) " >&6
4593 echo "#include <stdio.h>" >_test_.c
4595 $CPP -v -MM _test_.c
1>&5 2>&5
4596 if test "$?" = "0"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_MM" >&5
4604 $as_echo "$sdcc_cv_MM" >&6; }
4606 # This is the first time when CFLAGS are set/modified!!
4607 ac_test_CFLAGS
=${CFLAGS+set}
4608 bor_save_CFLAGS
=$CFLAGS
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C accepts -ggdb" >&5
4610 $as_echo_n "checking whether $C accepts -ggdb... " >&6; }
4611 if ${bor_cv_c_ggdb+:} false
; then :
4612 $as_echo_n "(cached) " >&6
4614 bor_save_c_werror_flag
=$ac_c_werror_flag
4615 ac_c_werror_flag
=yes
4618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4629 if ac_fn_c_try_compile
"$LINENO"; then :
4634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4635 ac_c_werror_flag
=$bor_save_c_werror_flag
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bor_cv_c_ggdb" >&5
4638 $as_echo "$bor_cv_c_ggdb" >&6; }
4639 CFLAGS
=$bor_save_CFLAGS
4641 if test "$bor_cv_c_ggdb" = "yes"; then
4642 CFLAGS
="-ggdb ${CFLAGS}"
4645 ac_test_CFLAGS
=${CFLAGS+set}
4646 bor_save_CFLAGS
=$CFLAGS
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C accepts -pipe" >&5
4648 $as_echo_n "checking whether $C accepts -pipe... " >&6; }
4649 if ${bor_cv_c_pipe+:} false
; then :
4650 $as_echo_n "(cached) " >&6
4652 bor_save_c_werror_flag
=$ac_c_werror_flag
4653 ac_c_werror_flag
=yes
4656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4667 if ac_fn_c_try_compile
"$LINENO"; then :
4672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4673 ac_c_werror_flag
=$bor_save_c_werror_flag
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bor_cv_c_pipe" >&5
4676 $as_echo "$bor_cv_c_pipe" >&6; }
4677 CFLAGS
=$bor_save_CFLAGS
4679 if test "$bor_cv_c_pipe" = "yes"; then
4680 CFLAGS
="-pipe $CFLAGS"
4684 C99_FLAG
="--std=c99"
4685 MAKEDEP
="$CC $sdcc_cv_MM"
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the SunPRO C compiler" >&5
4688 $as_echo_n "checking whether we are using the SunPRO C compiler... " >&6; }
4689 if ${bor_cv_c_compiler_sunpro+:} false
; then :
4690 $as_echo_n "(cached) " >&6
4692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4698 #if !defined __SUNPRO_C && !defined __SUNPRO_CC
4706 if ac_fn_c_try_compile
"$LINENO"; then :
4707 bor_compiler_sunpro
=yes
4709 bor_compiler_sunpro
=no
4711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4712 bor_cv_c_compiler_sunpro
=$bor_compiler_sunpro
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bor_cv_c_compiler_sunpro" >&5
4716 $as_echo "$bor_cv_c_compiler_sunpro" >&6; }
4717 if test "$bor_cv_c_compiler_sunpro" = "yes"; then
4719 CFLAGS
="-xO2 ${C99_FLAG} ${CFLAGS}"
4721 MAKEDEP
="$CC ${C99_FLAG} -xM1"
4729 # Try to append a c99 flag
4730 # -------------------------------------------------------------------------
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4732 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4733 if ${ac_cv_prog_cc_c99+:} false
; then :
4734 $as_echo_n "(cached) " >&6
4736 ac_cv_prog_cc_c99
=no
4738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4741 #include <stdbool.h>
4746 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4747 #define debug(...) fprintf (stderr, __VA_ARGS__)
4748 #define showlist(...) puts (#__VA_ARGS__)
4749 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4751 test_varargs_macros (void)
4756 debug ("X = %d\n", x);
4757 showlist (The first, second, and third items.);
4758 report (x>y, "x is %d but y is %d", x, y);
4761 // Check long long types.
4762 #define BIG64 18446744073709551615ull
4763 #define BIG32 4294967295ul
4764 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4766 your preprocessor is broken;
4770 your preprocessor is broken;
4772 static long long int bignum = -9223372036854775807LL;
4773 static unsigned long long int ubignum = BIG64;
4775 struct incomplete_array
4783 const wchar_t *name;
4787 typedef const char *ccp;
4790 test_restrict (ccp restrict text)
4792 // See if C++-style comments work.
4793 // Iterate through items via the restricted pointer.
4794 // Also check for declarations in for loops.
4795 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4800 // Check varargs and va_copy.
4802 test_varargs (const char *format, ...)
4805 va_start (args, format);
4807 va_copy (args_copy, args);
4818 str = va_arg (args_copy, const char *);
4821 number = va_arg (args_copy, int);
4824 fnumber = va_arg (args_copy, double);
4839 _Bool success = false;
4842 if (test_restrict ("String literal") == 0)
4844 char *restrict newvar = "Another string";
4847 test_varargs ("s, d' f .", "string", 65, 34.234);
4848 test_varargs_macros ();
4850 // Check flexible array members.
4851 struct incomplete_array *ia =
4852 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4854 for (int i = 0; i < ia->datasize; ++i)
4855 ia->data[i] = i * 1.234;
4857 // Check named initializers.
4858 struct named_init ni = {
4860 .name = L"Test wide string",
4861 .average = 543.34343,
4866 int dynamic_array[ni.number];
4867 dynamic_array[ni.number - 1] = 543;
4869 // work around unused variable warnings
4870 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4871 || dynamic_array[ni.number - 1] != 543);
4877 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4879 CC
="$ac_save_CC $ac_arg"
4880 if ac_fn_c_try_compile
"$LINENO"; then :
4881 ac_cv_prog_cc_c99
=$ac_arg
4883 rm -f core conftest.err conftest.
$ac_objext
4884 test "x$ac_cv_prog_cc_c99" != "xno" && break
4886 rm -f conftest.
$ac_ext
4891 case "x$ac_cv_prog_cc_c99" in
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4894 $as_echo "none needed" >&6; } ;;
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4897 $as_echo "unsupported" >&6; } ;;
4899 CC
="$CC $ac_cv_prog_cc_c99"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4901 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4903 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4908 if test "$ac_cv_prog_cc_c99" != "no"; then
4909 CFLAGS
="$ac_cv_prog_cc_c99 ${CFLAGS}"
4912 # Set standard installation paths
4913 # ===========================================================================
4915 # In the Makefiles we need paths with '/' as directory separator, even if
4916 # crosscompiling for Win32.
4917 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
4918 # The variables in the Makefiles are replaced by AC_SUBST()
4920 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
4922 # The macros are expanded for the header.
4923 # The variables in the header are replaced by AC_*DEFINE*()
4924 # sdccconf_h_dir_separator contains a backslash.
4926 if test "x${sdccconf_h_dir_separator}" = "x"; then
4927 sdccconf_h_dir_separator
="/"
4934 # *nix default: "sdcc/lib"
4936 if test "${lib_dir_suffix}" = ""; then
4937 lib_dir_suffix
="sdcc/lib"
4947 cat >>confdefs.h
<<_ACEOF
4948 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
4953 # default: "${prefix}/share"
4955 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4956 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4958 test "x$ac_expand" = xNONE
&& ac_expand
="$"NONE
""
4959 ac_expand
=`eval echo $ac_expand`
4960 expanded_datadir
=`eval echo $ac_expand`
4963 ac_ndu
=$expanded_datadir
4966 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
4969 case $sdccconf_h_dir_separator in
4971 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
4972 s,^[\\/],\\\\\\\\,'` ;;
4974 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
4977 cat >>confdefs.h
<<_ACEOF
4978 #define DATADIR "${ac_ndu}"
4984 norm_lib_dir_suffix
=${lib_dir_suffix}
4985 case ":$norm_lib_dir_suffix:" in
4986 ::) norm_lib_dir_suffix
='.' ;;
4987 :*[\\/]:) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
4990 case $sdccconf_h_dir_separator in
4992 *\\*) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
4993 s,^[\\/],\\\\\\\\,'` ;;
4995 *) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
4998 cat >>confdefs.h
<<_ACEOF
4999 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5004 # Generating output files
5005 # ===========================================================================
5006 ac_config_files
="$ac_config_files Makefile"
5008 cat >confcache
<<\_ACEOF
5009 # This file is a shell script that caches the results of configure
5010 # tests run on this system so they can be shared between configure
5011 # scripts and configure runs, see configure's option --config-cache.
5012 # It is not useful on other systems. If it contains results you don't
5013 # want to keep, you may remove or edit it.
5015 # config.status only pays attention to the cache file if you give it
5016 # the --recheck option to rerun configure.
5018 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5019 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5024 # The following way of writing the cache mishandles newlines in values,
5025 # but we know of no workaround that is simple, portable, and efficient.
5026 # So, we kill variables containing newlines.
5027 # Ultrix sh set writes to stderr and can't be redirected directly,
5028 # and sets the high bit in the cache file unless we assign to the vars.
5030 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5031 eval ac_val
=\$
$ac_var
5035 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5039 _ | IFS | as_nl
) ;; #(
5040 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5041 *) { eval $ac_var=; unset $ac_var;} ;;
5047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5048 *${as_nl}ac_space
=\
*)
5049 # `set' does not quote correctly, so add quotes: double-quote
5050 # substitution turns \\\\ into \\, and sed turns \\ into \.
5053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5056 # `set' quotes correctly as required by POSIX, so do not add quotes.
5057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5070 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5071 if test -w "$cache_file"; then
5072 if test "x$cache_file" != "x/dev/null"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5074 $as_echo "$as_me: updating cache $cache_file" >&6;}
5075 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5076 cat confcache
>"$cache_file"
5078 case $cache_file in #(
5080 mv -f confcache
"$cache_file"$$
&&
5081 mv -f "$cache_file"$$
"$cache_file" ;; #(
5083 mv -f confcache
"$cache_file" ;;
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5089 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5094 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5095 # Let make expand exec_prefix.
5096 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5098 DEFS
=-DHAVE_CONFIG_H
5103 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5104 # 1. Remove the extension, and $U if already installed.
5105 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5106 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5108 # will be set to the directory where LIBOBJS objects are built.
5109 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5110 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5114 LTLIBOBJS
=$ac_ltlibobjs
5118 : "${CONFIG_STATUS=./config.status}"
5120 ac_clean_files_save
=$ac_clean_files
5121 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5123 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5125 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5127 # Generated by $as_me.
5128 # Run this file to recreate the current configuration.
5129 # Compiler output produced by configure, useful for debugging
5130 # configure, is in config.log if it exists.
5136 SHELL=\${CONFIG_SHELL-$SHELL}
5139 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5140 ## -------------------- ##
5141 ## M4sh Initialization. ##
5142 ## -------------------- ##
5144 # Be more Bourne compatible
5145 DUALCASE
=1; export DUALCASE
# for MKS sh
5146 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5149 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5150 # is contrary to our usage. Disable this feature.
5151 alias -g '${1+"$@"}'='"$@"'
5152 setopt NO_GLOB_SUBST
5154 case `(set -o) 2>/dev/null` in #(
5166 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5167 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5170 # Prefer a ksh shell builtin over an external printf program on Solaris,
5171 # but without wasting forks for bash or zsh.
5172 if test -z "$BASH_VERSION$ZSH_VERSION" \
5173 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5174 as_echo='print
-r --'
5175 as_echo_n='print
-rn --'
5176 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5177 as_echo='printf %s
\n'
5178 as_echo_n='printf %s
'
5180 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5181 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5182 as_echo_n='/usr
/ucb
/echo -n'
5184 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5185 as_echo_n_body='eval
5189 expr "X$arg" : "X\\(.*\\)$as_nl";
5190 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5192 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5194 export as_echo_n_body
5195 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5198 as_echo='sh
-c $as_echo_body as_echo
'
5201 # The user is always right.
5202 if test "${PATH_SEPARATOR+set}" != set; then
5204 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5205 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5212 # We need space, tab and new line, in precisely that order. Quoting is
5213 # there to prevent editors from complaining about space-tab.
5214 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5215 # splitting by setting IFS to empty value.)
5218 # Find who we are. Look in the path if we contain no directory separator.
5221 *[\\/]* ) as_myself=$0 ;;
5222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir=.
5227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5233 # We did not find ourselves, most probably we were run as `sh COMMAND'
5234 # in which case we are not to be found in the path.
5235 if test "x$as_myself" = x
; then
5238 if test ! -f "$as_myself"; then
5239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5243 # Unset variables that we do not need and which cause bugs (e.g. in
5244 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5245 # suppresses any "Segmentation fault" message there. '((' could
5246 # trigger a bug in pdksh 5.2.14.
5247 for as_var
in BASH_ENV ENV MAIL MAILPATH
5248 do eval test x\
${$as_var+set} = xset \
5249 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5262 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5265 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5266 # ----------------------------------------
5267 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5268 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5269 # script with STATUS, using 1 if that was 0.
5272 as_status
=$1; test $as_status -eq 0 && as_status
=1
5274 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5275 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5277 $as_echo "$as_me: error: $2" >&2
5278 as_fn_exit
$as_status
5282 # as_fn_set_status STATUS
5283 # -----------------------
5284 # Set $? to STATUS, without forking.
5288 } # as_fn_set_status
5292 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5302 # Portably unset VAR.
5305 { eval $1=; unset $1;}
5307 as_unset
=as_fn_unset
5308 # as_fn_append VAR VALUE
5309 # ----------------------
5310 # Append the text in VALUE to the end of the definition contained in VAR. Take
5311 # advantage of any shell optimizations that allow amortized linear growth over
5312 # repeated appends, instead of the typical quadratic growth present in naive
5314 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5315 eval 'as_fn_append ()
5326 # as_fn_arith ARG...
5327 # ------------------
5328 # Perform arithmetic evaluation on the ARGs, and store the result in the
5329 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5330 # must be portable across $(()) and expr.
5331 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5332 eval 'as_fn_arith ()
5339 as_val
=`expr "$@" || test $? -eq 1`
5344 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5345 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5351 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5352 as_basename
=basename
5357 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5363 as_me
=`$as_basename -- "$0" ||
5364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5365 X"$0" : 'X\(//\)$' \| \
5366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5368 sed '/^.*\/\([^/][^/]*\)\/*$/{
5382 # Avoid depending upon Character Ranges.
5383 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5384 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5385 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5386 as_cr_digits
='0123456789'
5387 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5389 ECHO_C
= ECHO_N
= ECHO_T
=
5390 case `echo -n x` in #(((((
5392 case `echo 'xy\c'` in
5393 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5395 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5402 rm -f conf$$ conf$$.exe conf$$.
file
5403 if test -d conf$$.dir
; then
5404 rm -f conf$$.dir
/conf$$.
file
5407 mkdir conf$$.dir
2>/dev
/null
5409 if (echo >conf$$.
file) 2>/dev
/null
; then
5410 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5412 # ... but there are two gotchas:
5413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5415 # In both cases, we have to default to `cp -pR'.
5416 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
5418 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5426 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5427 rmdir conf$$.dir
2>/dev
/null
5432 # Create "$as_dir" as a directory, including parents if necessary.
5437 -*) as_dir
=.
/$as_dir;;
5439 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
5443 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5444 *) as_qdir
=$as_dir;;
5446 as_dirs
="'$as_qdir' $as_dirs"
5447 as_dir
=`$as_dirname -- "$as_dir" ||
5448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5449 X"$as_dir" : 'X\(//\)[^/]' \| \
5450 X"$as_dir" : 'X\(//\)$' \| \
5451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5452 $as_echo X"$as_dir" |
5453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5470 test -d "$as_dir" && break
5472 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5473 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5477 if mkdir
-p .
2>/dev
/null
; then
5478 as_mkdir_p
='mkdir -p "$as_dir"'
5480 test -d .
/-p && rmdir .
/-p
5485 # as_fn_executable_p FILE
5486 # -----------------------
5487 # Test if FILE is an executable regular file.
5488 as_fn_executable_p
()
5490 test -f "$1" && test -x "$1"
5491 } # as_fn_executable_p
5493 as_executable_p
=as_fn_executable_p
5495 # Sed expression to map a string onto a valid CPP name.
5496 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5498 # Sed expression to map a string onto a valid variable name.
5499 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5503 ## ----------------------------------- ##
5504 ## Main body of $CONFIG_STATUS script. ##
5505 ## ----------------------------------- ##
5507 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5510 # Save the log message, to keep $0 and so on meaningful, and to
5511 # report actual input values of CONFIG_FILES etc. instead of their
5512 # values after options handling.
5514 This file was extended by $as_me, which was
5515 generated by GNU Autoconf 2.69. Invocation command line was
5517 CONFIG_FILES = $CONFIG_FILES
5518 CONFIG_HEADERS = $CONFIG_HEADERS
5519 CONFIG_LINKS = $CONFIG_LINKS
5520 CONFIG_COMMANDS = $CONFIG_COMMANDS
5523 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5528 case $ac_config_files in *"
5529 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5532 case $ac_config_headers in *"
5533 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5538 # Files that config.status was made for.
5539 config_files="$ac_config_files"
5540 config_headers="$ac_config_headers"
5544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5546 \`$as_me' instantiates files and other configuration actions
5547 from templates according to the current configuration. Unless the files
5548 and actions are specified as TAGs, all are instantiated by default.
5550 Usage: $0 [OPTION]... [TAG]...
5552 -h, --help print this help, then exit
5553 -V, --version print version number and configuration settings, then exit
5554 --config print configuration, then exit
5555 -q, --quiet, --silent
5556 do not print progress messages
5557 -d, --debug don't remove temporary files
5558 --recheck update $as_me by reconfiguring in the same conditions
5559 --file=FILE[:TEMPLATE]
5560 instantiate the configuration file FILE
5561 --header=FILE[:TEMPLATE]
5562 instantiate the configuration header FILE
5564 Configuration files:
5567 Configuration headers:
5570 Report bugs to the package provider."
5573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5574 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5577 configured by $0, generated by GNU Autoconf 2.69,
5578 with options \\"\$ac_cs_config\\"
5580 Copyright (C) 2012 Free Software Foundation, Inc.
5581 This config.status script is free software; the Free Software Foundation
5582 gives unlimited permission to copy, distribute and modify it."
5587 test -n "\$AWK" || AWK=awk
5590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5591 # The default lists apply if the user does not specify any file.
5597 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5598 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5602 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5614 # Handling of the options.
5615 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5617 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5618 $as_echo "$ac_cs_version"; exit ;;
5619 --config |
--confi |
--conf |
--con |
--co |
--c )
5620 $as_echo "$ac_cs_config"; exit ;;
5621 --debug |
--debu |
--deb |
--de |
--d |
-d )
5623 --file |
--fil |
--fi |
--f )
5626 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5627 '') as_fn_error $?
"missing file argument" ;;
5629 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5630 ac_need_defaults
=false
;;
5631 --header |
--heade |
--head |
--hea )
5634 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5636 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5637 ac_need_defaults
=false
;;
5639 # Conflict between --help and --header
5640 as_fn_error $?
"ambiguous option: \`$1'
5641 Try \`$0 --help' for more information.";;
5642 --help |
--hel |
-h )
5643 $as_echo "$ac_cs_usage"; exit ;;
5644 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5645 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5649 -*) as_fn_error $?
"unrecognized option: \`$1'
5650 Try \`$0 --help' for more information." ;;
5652 *) as_fn_append ac_config_targets
" $1"
5653 ac_need_defaults
=false
;;
5659 ac_configure_extra_args
=
5661 if $ac_cs_silent; then
5663 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5668 if \$ac_cs_recheck; then
5669 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5672 CONFIG_SHELL='$SHELL'
5678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5683 ## Running $as_me. ##
5689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5694 # Handling of arguments.
5695 for ac_config_target
in $ac_config_targets
5697 case $ac_config_target in
5698 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5699 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5701 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5706 # If the user did not use the arguments to specify the items to instantiate,
5707 # then the envvar interface is used. Set only those that are not.
5708 # We use the long form for the default assignment because of an extremely
5709 # bizarre bug on SunOS 4.1.3.
5710 if $ac_need_defaults; then
5711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5715 # Have a temporary directory for convenience. Make it in the build tree
5716 # simply because there is no reason against having it here, and in addition,
5717 # creating and moving files from /tmp can sometimes cause problems.
5718 # Hook for its removal unless debugging.
5719 # Note that there is a small window in which the directory will not be cleaned:
5720 # after its creation but before its name has been assigned to `$tmp'.
5724 trap 'exit_status=$?
5726 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5728 trap 'as_fn_exit 1' 1 2 13 15
5730 # Create a (secure) tmp directory for tmp files.
5733 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5737 tmp
=.
/conf$$
-$RANDOM
5738 (umask 077 && mkdir
"$tmp")
5739 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5742 # Set up the scripts for CONFIG_FILES section.
5743 # No need to generate them if there are no CONFIG_FILES.
5744 # This happens for instance with `./config.status config.h'.
5745 if test -n "$CONFIG_FILES"; then
5748 ac_cr
=`echo X | tr X '\015'`
5749 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5750 # But we know of no other shell where ac_cr would be empty at this
5751 # point, so we can use a bashism as a fallback.
5752 if test "x$ac_cr" = x
; then
5753 eval ac_cr
=\$
\'\\r
\'
5755 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5756 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5762 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5767 echo "cat >conf$$subs.awk <<_ACEOF" &&
5768 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5771 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5772 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5774 for ac_last_try in false false false false false :; do
5775 . ./conf$$subs.sh ||
5776 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5778 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5779 if test $ac_delim_n = $ac_delim_num; then
5781 elif $ac_last_try; then
5782 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5784 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5790 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5794 s/^/S["/; s
/!.
*/"]=/
5804 s/\(.\{148\}\)..*/\1/
5806 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5811 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5818 s/\(.\{148\}\)..*/\1/
5820 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5824 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5829 ' <conf$$subs.awk | sed '
5834 ' >>$CONFIG_STATUS || ac_write_fail=1
5835 rm -f conf$$subs.awk
5836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5838 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5839 for (key in S) S_is_set[key] = 1
5845 nfields = split(line, field, "@
")
5847 len = length(field[1])
5848 for (i = 2; i < nfields; i++) {
5850 keylen = length(key)
5851 if (S_is_set[key]) {
5853 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5854 len += length(value) + length(field[++i])
5865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5866 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5867 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5870 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5871 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5874 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5875 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5876 # trailing colons and then remove the whole line if VPATH becomes empty
5877 # (actually we leave an empty line to preserve line numbers).
5878 if test "x
$srcdir" = x.; then
5879 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5898 fi # test -n "$CONFIG_FILES"
5900 # Set up the scripts for CONFIG_HEADERS section.
5901 # No need to generate them if there are no CONFIG_HEADERS.
5902 # This happens for instance with `./config.status Makefile'.
5903 if test -n "$CONFIG_HEADERS"; then
5904 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5908 # Transform confdefs.h into an awk script `defines.awk', embedded as
5909 # here-document in config.status, that substitutes the proper values into
5910 # config.h.in to produce config.h.
5912 # Create a delimiter string that does not exist in confdefs.h, to ease
5913 # handling of long lines.
5915 for ac_last_try in false false :; do
5916 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5917 if test -z "$ac_tt"; then
5919 elif $ac_last_try; then
5920 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5922 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5926 # For the awk script, D is an array of macro values keyed by name,
5927 # likewise P contains macro parameters if any. Preserve backslash
5928 # newline sequences.
5930 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5932 s/.\{148\}/&'"$ac_delim"'/g
5935 s/^[ ]*#[ ]*define[ ][ ]*/ /
5942 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5944 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5948 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5949 D["\
1"]=" \
3\\\\\\n
"\\/p
5951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5956 s/.\{148\}/&'"$ac_delim"'/g
5961 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5964 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5966 ' <confdefs.h | sed '
5967 s/'"$ac_delim"'/"\\\
5968 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5971 for (key in D) D_is_set[key] = 1
5974 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5976 split(line, arg, " ")
5977 if (arg[1] == "#") {
5981 defundef
= substr
(arg
[1], 2)
5984 split(mac1
, mac2
, "(") #)
5986 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5987 if (D_is_set
[macro
]) {
5988 # Preserve the white space surrounding the "#".
5989 print prefix
"define", macro P
[macro
] D
[macro
]
5992 # Replace #undef with comments. This is necessary, for example,
5993 # in the case of _POSIX_SOURCE, which is predefined and required
5994 # on some systems where configure will not decide to define it.
5995 if (defundef
== "undef") {
5996 print
"/*", prefix defundef
, macro
, "*/"
6004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6005 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6006 fi # test -n "$CONFIG_HEADERS"
6009 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6014 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6016 case $ac_mode$ac_tag in
6018 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6019 :[FH
]-) ac_tag
=-:-;;
6020 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6037 -) ac_f
="$ac_tmp/stdin";;
6038 *) # Look for the file first in the build tree, then in the source tree
6039 # (if the path is not absolute). The absolute path cannot be DOS-style,
6040 # because $ac_f cannot contain `:'.
6044 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6046 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6048 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6049 as_fn_append ac_file_inputs
" '$ac_f'"
6052 # Let's still pretend it is `configure' which instantiates (i.e., don't
6053 # use $as_me), people would be surprised to read:
6054 # /* config.h. Generated by config.status. */
6055 configure_input
='Generated from '`
6056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6058 if test x
"$ac_file" != x-
; then
6059 configure_input
="$ac_file. $configure_input"
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6061 $as_echo "$as_me: creating $ac_file" >&6;}
6063 # Neutralize special characters interpreted by sed in replacement strings.
6064 case $configure_input in #(
6065 *\
&* |
*\|
* |
*\\* )
6066 ac_sed_conf_input
=`$as_echo "$configure_input" |
6067 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6068 *) ac_sed_conf_input
=$configure_input;;
6072 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6073 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6078 ac_dir
=`$as_dirname -- "$ac_file" ||
6079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6080 X"$ac_file" : 'X\(//\)[^/]' \| \
6081 X"$ac_file" : 'X\(//\)$' \| \
6082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6083 $as_echo X"$ac_file" |
6084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6101 as_dir
="$ac_dir"; as_fn_mkdir_p
6105 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6107 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6108 # A ".." for each directory in $ac_dir_suffix.
6109 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6110 case $ac_top_builddir_sub in
6111 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6112 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6115 ac_abs_top_builddir
=$ac_pwd
6116 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6117 # for backward compatibility:
6118 ac_top_builddir
=$ac_top_build_prefix
6121 .
) # We are building in place.
6123 ac_top_srcdir
=$ac_top_builddir_sub
6124 ac_abs_top_srcdir
=$ac_pwd ;;
6125 [\\/]* | ?
:[\\/]* ) # Absolute name.
6126 ac_srcdir
=$srcdir$ac_dir_suffix;
6127 ac_top_srcdir
=$srcdir
6128 ac_abs_top_srcdir
=$srcdir ;;
6130 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6131 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6132 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6134 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6144 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6145 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6150 # If the template does not know about datarootdir, expand it.
6151 # FIXME: This hack should be removed a few years after 2.60.
6152 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6163 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6164 *datarootdir
*) ac_datarootdir_seen
=yes;;
6165 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6167 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6170 ac_datarootdir_hack='
6171 s&@datadir@&$datadir&g
6172 s&@docdir@&$docdir&g
6173 s&@infodir@&$infodir&g
6174 s&@localedir@&$localedir&g
6175 s&@mandir@&$mandir&g
6176 s&\\\${datarootdir}&$datarootdir&g' ;;
6180 # Neutralize VPATH when `$srcdir' = `.'.
6181 # Shell code in configure.ac might set extrasub.
6182 # FIXME: do we really want to maintain this feature?
6183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6184 ac_sed_extra="$ac_vpsub
6187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6189 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6190 s|@configure_input@|
$ac_sed_conf_input|
;t t
6191 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6192 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6193 s
&@srcdir@
&$ac_srcdir&;t t
6194 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6195 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6196 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6197 s
&@builddir@
&$ac_builddir&;t t
6198 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6199 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6200 s
&@INSTALL@
&$ac_INSTALL&;t t
6201 $ac_datarootdir_hack
6203 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6204 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6206 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6207 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6209 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6211 which seems to be undefined. Please make sure it is defined" >&5
6212 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6213 which seems to be undefined. Please make sure it is defined" >&2;}
6215 rm -f "$ac_tmp/stdin"
6217 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6218 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6226 if test x"$ac_file" != x-; then
6228 $as_echo "/* $configure_input */" \
6229 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6230 } >"$ac_tmp/config.h" \
6231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6232 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6234 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6237 mv "$ac_tmp/config.h" "$ac_file" \
6238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6241 $as_echo "/* $configure_input */" \
6242 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6243 || as_fn_error $? "could not create -" "$LINENO" 5
6255 ac_clean_files=$ac_clean_files_save
6257 test $ac_write_fail = 0 ||
6258 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6261 # configure is writing to config.log, and then calls config.status.
6262 # config.status does its own redirection, appending to config.log.
6263 # Unfortunately, on DOS this fails, as config.log is still kept open
6264 # by configure, so config.status won't be able to
write to it
; its
6265 # output is simply discarded. So we exec the FD to /dev/null,
6266 # effectively closing config.log, so it can be properly (re)opened and
6267 # appended to by config.status. When coming back to configure, we
6268 # need to make the FD available again.
6269 if test "$no_create" != yes; then
6271 ac_config_status_args
=
6272 test "$silent" = yes &&
6273 ac_config_status_args
="$ac_config_status_args --quiet"
6275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6278 # would make configure fail if this is the last instruction.
6279 $ac_cs_success || as_fn_exit
1
6281 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6283 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6287 # End of configure/configure.in