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
="packihx.c"
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
662 program_transform_name
675 enable_option_checking
677 ac_precious_vars
='build_alias
688 # Initialize some variables set by options.
690 ac_init_version
=false
691 ac_unrecognized_opts
=
693 # The variables have the same names as the options, with
694 # dashes changed to underlines.
702 program_transform_name
=s
,x
,x
,
710 # Installation directory options.
711 # These are left unexpanded so users can "make install exec_prefix=/foo"
712 # and all the variables that are supposed to be based on exec_prefix
713 # by default will actually change.
714 # Use braces instead of parens because sh, perl, etc. also accept them.
715 # (The list follows the same order as the GNU Coding Standards.)
716 bindir
='${exec_prefix}/bin'
717 sbindir
='${exec_prefix}/sbin'
718 libexecdir
='${exec_prefix}/libexec'
719 datarootdir
='${prefix}/share'
720 datadir
='${datarootdir}'
721 sysconfdir
='${prefix}/etc'
722 sharedstatedir
='${prefix}/com'
723 localstatedir
='${prefix}/var'
724 runstatedir
='${localstatedir}/run'
725 includedir
='${prefix}/include'
726 oldincludedir
='/usr/include'
727 docdir
='${datarootdir}/doc/${PACKAGE}'
728 infodir
='${datarootdir}/info'
733 libdir
='${exec_prefix}/lib'
734 localedir
='${datarootdir}/locale'
735 mandir
='${datarootdir}/man'
741 # If the previous option needs an argument, assign it.
742 if test -n "$ac_prev"; then
743 eval $ac_prev=\
$ac_option
749 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 # Accept the important Cygnus configure options, so we can diagnose typos.
756 case $ac_dashdash$ac_option in
760 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
762 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
765 -build |
--build |
--buil |
--bui |
--bu)
766 ac_prev
=build_alias
;;
767 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
768 build_alias
=$ac_optarg ;;
770 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
771 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
772 ac_prev
=cache_file
;;
773 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
774 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
775 cache_file
=$ac_optarg ;;
778 cache_file
=config.cache
;;
780 -datadir |
--datadir |
--datadi |
--datad)
782 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
783 datadir
=$ac_optarg ;;
785 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
786 |
--dataroo |
--dataro |
--datar)
787 ac_prev
=datarootdir
;;
788 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
789 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
790 datarootdir
=$ac_optarg ;;
792 -disable-* |
--disable-*)
793 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
794 # Reject names that are not valid shell variable names.
795 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
796 as_fn_error $?
"invalid feature name: $ac_useropt"
797 ac_useropt_orig
=$ac_useropt
798 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
799 case $ac_user_opts in
803 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
804 ac_unrecognized_sep
=', ';;
806 eval enable_
$ac_useropt=no
;;
808 -docdir |
--docdir |
--docdi |
--doc |
--do)
810 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
813 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
815 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
818 -enable-* |
--enable-*)
819 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
822 as_fn_error $?
"invalid feature name: $ac_useropt"
823 ac_useropt_orig
=$ac_useropt
824 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825 case $ac_user_opts in
829 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
830 ac_unrecognized_sep
=', ';;
832 eval enable_
$ac_useropt=\
$ac_optarg ;;
834 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
835 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
836 |
--exec |
--exe |
--ex)
837 ac_prev
=exec_prefix
;;
838 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
839 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
840 |
--exec=* |
--exe=* |
--ex=*)
841 exec_prefix
=$ac_optarg ;;
843 -gas |
--gas |
--ga |
--g)
844 # Obsolete; use --with-gas.
847 -help |
--help |
--hel |
--he |
-h)
849 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
850 ac_init_help
=recursive
;;
851 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
852 ac_init_help
=short
;;
854 -host |
--host |
--hos |
--ho)
855 ac_prev
=host_alias
;;
856 -host=* |
--host=* |
--hos=* |
--ho=*)
857 host_alias
=$ac_optarg ;;
859 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
861 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
863 htmldir
=$ac_optarg ;;
865 -includedir |
--includedir |
--includedi |
--included |
--include \
866 |
--includ |
--inclu |
--incl |
--inc)
867 ac_prev
=includedir
;;
868 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
869 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
870 includedir
=$ac_optarg ;;
872 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
874 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
875 infodir
=$ac_optarg ;;
877 -libdir |
--libdir |
--libdi |
--libd)
879 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
882 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
883 |
--libexe |
--libex |
--libe)
884 ac_prev
=libexecdir
;;
885 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
886 |
--libexe=* |
--libex=* |
--libe=*)
887 libexecdir
=$ac_optarg ;;
889 -localedir |
--localedir |
--localedi |
--localed |
--locale)
891 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
892 localedir
=$ac_optarg ;;
894 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
895 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
896 ac_prev
=localstatedir
;;
897 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
898 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
899 localstatedir
=$ac_optarg ;;
901 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
903 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
907 # Obsolete; use --without-fp.
910 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
911 |
--no-cr |
--no-c |
-n)
914 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
915 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
918 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
919 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
920 |
--oldin |
--oldi |
--old |
--ol |
--o)
921 ac_prev
=oldincludedir
;;
922 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
923 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
924 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
925 oldincludedir
=$ac_optarg ;;
927 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
929 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
932 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
933 |
--program-pre |
--program-pr |
--program-p)
934 ac_prev
=program_prefix
;;
935 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
936 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
937 program_prefix
=$ac_optarg ;;
939 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
940 |
--program-suf |
--program-su |
--program-s)
941 ac_prev
=program_suffix
;;
942 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
943 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
944 program_suffix
=$ac_optarg ;;
946 -program-transform-name |
--program-transform-name \
947 |
--program-transform-nam |
--program-transform-na \
948 |
--program-transform-n |
--program-transform- \
949 |
--program-transform |
--program-transfor \
950 |
--program-transfo |
--program-transf \
951 |
--program-trans |
--program-tran \
952 |
--progr-tra |
--program-tr |
--program-t)
953 ac_prev
=program_transform_name
;;
954 -program-transform-name=* |
--program-transform-name=* \
955 |
--program-transform-nam=* |
--program-transform-na=* \
956 |
--program-transform-n=* |
--program-transform-=* \
957 |
--program-transform=* |
--program-transfor=* \
958 |
--program-transfo=* |
--program-transf=* \
959 |
--program-trans=* |
--program-tran=* \
960 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
961 program_transform_name
=$ac_optarg ;;
963 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
965 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
968 -psdir |
--psdir |
--psdi |
--psd |
--ps)
970 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
973 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
974 |
-silent |
--silent |
--silen |
--sile |
--sil)
977 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
978 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
979 |
--run |
--ru |
--r)
980 ac_prev
=runstatedir
;;
981 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
982 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
983 |
--run=* |
--ru=* |
--r=*)
984 runstatedir
=$ac_optarg ;;
986 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
988 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
990 sbindir
=$ac_optarg ;;
992 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
993 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
994 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
996 ac_prev
=sharedstatedir
;;
997 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
998 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
999 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1001 sharedstatedir
=$ac_optarg ;;
1003 -site |
--site |
--sit)
1005 -site=* |
--site=* |
--sit=*)
1008 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1010 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1011 srcdir
=$ac_optarg ;;
1013 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1014 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1015 ac_prev
=sysconfdir
;;
1016 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1017 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1018 sysconfdir
=$ac_optarg ;;
1020 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1021 ac_prev
=target_alias
;;
1022 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1023 target_alias
=$ac_optarg ;;
1025 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1028 -version |
--version |
--versio |
--versi |
--vers |
-V)
1029 ac_init_version
=: ;;
1032 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1035 as_fn_error $?
"invalid package name: $ac_useropt"
1036 ac_useropt_orig
=$ac_useropt
1037 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1042 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1043 ac_unrecognized_sep
=', ';;
1045 eval with_
$ac_useropt=\
$ac_optarg ;;
1047 -without-* |
--without-*)
1048 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval with_
$ac_useropt=no
;;
1064 # Obsolete; use --with-x.
1067 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1068 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1069 ac_prev
=x_includes
;;
1070 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1071 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1072 x_includes
=$ac_optarg ;;
1074 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1075 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1076 ac_prev
=x_libraries
;;
1077 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1078 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1079 x_libraries
=$ac_optarg ;;
1081 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1082 Try \`$0 --help' for more information"
1086 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1087 # Reject names that are not valid shell variable names.
1088 case $ac_envvar in #(
1089 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1090 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1092 eval $ac_envvar=\
$ac_optarg
1093 export $ac_envvar ;;
1096 # FIXME: should be removed in autoconf 3.0.
1097 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1106 if test -n "$ac_prev"; then
1107 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1108 as_fn_error $?
"missing argument to $ac_option"
1111 if test -n "$ac_unrecognized_opts"; then
1112 case $enable_option_checking in
1114 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1115 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1119 # Check all directory arguments for consistency.
1120 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir runstatedir
1125 eval ac_val
=\$
$ac_var
1126 # Remove trailing slashes.
1129 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1130 eval $ac_var=\
$ac_val;;
1132 # Be sure to have absolute directory names.
1134 [\\/$
]* | ?
:[\\/]* ) continue;;
1135 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1137 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1140 # There might be people who depend on the old broken behavior: `$host'
1141 # used to hold the argument of --host etc.
1142 # FIXME: To remove some day.
1145 target
=$target_alias
1147 # FIXME: To remove some day.
1148 if test "x$host_alias" != x
; then
1149 if test "x$build_alias" = x
; then
1150 cross_compiling
=maybe
1151 elif test "x$build_alias" != "x$host_alias"; then
1157 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1159 test "$silent" = yes && exec 6>/dev
/null
1162 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di
=`ls -di .` &&
1164 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1165 as_fn_error $?
"working directory cannot be determined"
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 as_fn_error $?
"pwd does not report name of working directory"
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted
=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir
=`$as_dirname -- "$as_myself" ||
1175 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$as_myself" : 'X\(//\)[^/]' \| \
1177 X"$as_myself" : 'X\(//\)$' \| \
1178 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1179 $as_echo X"$as_myself" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1202 ac_srcdir_defaulted
=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1206 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1208 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1220 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 for ac_var
in $ac_precious_vars; do
1223 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1225 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1236 \`configure' configures this package to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking ...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1296 if test -n "$ac_init_help"; then
1300 Some influential environment variables
:
1301 CC C compiler
command
1302 CFLAGS C compiler flags
1303 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1304 nonstandard directory
<lib dir
>
1305 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1306 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1307 you have headers
in a nonstandard directory
<include dir
>
1310 Use these variables to override the choices made by
`configure' or to help
1311 it to find libraries and programs with nonstandard names/locations.
1313 Report bugs to the package provider.
1318 if test "$ac_init_help" = "recursive"; then
1319 # If there are subdirs, report their specific --help.
1320 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1321 test -d "$ac_dir" ||
1322 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1330 # A ".." for each directory in $ac_dir_suffix.
1331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1332 case $ac_top_builddir_sub in
1333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1337 ac_abs_top_builddir=$ac_pwd
1338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339 # for backward compatibility:
1340 ac_top_builddir=$ac_top_build_prefix
1343 .) # We are building in place.
1345 ac_top_srcdir=$ac_top_builddir_sub
1346 ac_abs_top_srcdir=$ac_pwd ;;
1347 [\\/]* | ?:[\\/]* ) # Absolute name.
1348 ac_srcdir=$srcdir$ac_dir_suffix;
1349 ac_top_srcdir=$srcdir
1350 ac_abs_top_srcdir=$srcdir ;;
1352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1353 ac_top_srcdir=$ac_top_build_prefix$srcdir
1354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358 cd "$ac_dir" || { ac_status=$?; continue; }
1359 # Check for guested configure.
1360 if test -f "$ac_srcdir/configure.gnu"; then
1362 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1363 elif test -f "$ac_srcdir/configure"; then
1365 $SHELL "$ac_srcdir/configure" --help=recursive
1367 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369 cd "$ac_pwd" || { ac_status=$?; break; }
1373 test -n "$ac_init_help" && exit $ac_status
1374 if $ac_init_version; then
1377 generated by GNU Autoconf 2.69
1379 Copyright (C) 2012 Free Software Foundation, Inc.
1380 This configure script is free software; the Free Software Foundation
1381 gives unlimited permission to copy, distribute and modify it.
1386 ## ------------------------ ##
1387 ## Autoconf initialization. ##
1388 ## ------------------------ ##
1390 # ac_fn_c_try_compile LINENO
1391 # --------------------------
1392 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1393 ac_fn_c_try_compile ()
1395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1396 rm -f conftest.$ac_objext
1397 if { { ac_try="$ac_compile"
1399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1400 *) ac_try_echo
=$ac_try;;
1402 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1403 $as_echo "$ac_try_echo"; } >&5
1404 (eval "$ac_compile") 2>conftest.err
1406 if test -s conftest.err
; then
1407 grep -v '^ *+' conftest.err
>conftest.er1
1408 cat conftest.er1
>&5
1409 mv -f conftest.er1 conftest.err
1411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1412 test $ac_status = 0; } && {
1413 test -z "$ac_c_werror_flag" ||
1414 test ! -s conftest.err
1415 } && test -s conftest.
$ac_objext; then :
1418 $as_echo "$as_me: failed program was:" >&5
1419 sed 's/^/| /' conftest.
$ac_ext >&5
1423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1424 as_fn_set_status
$ac_retval
1426 } # ac_fn_c_try_compile
1428 # ac_fn_c_try_run LINENO
1429 # ----------------------
1430 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1431 # that executables *can* be run.
1434 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1435 if { { ac_try
="$ac_link"
1437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_link") 2>&5
1444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1445 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1446 { { case "(($ac_try" in
1447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1448 *) ac_try_echo
=$ac_try;;
1450 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452 (eval "$ac_try") 2>&5
1454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455 test $ac_status = 0; }; }; then :
1458 $as_echo "$as_me: program exited with status $ac_status" >&5
1459 $as_echo "$as_me: failed program was:" >&5
1460 sed 's/^/| /' conftest.
$ac_ext >&5
1462 ac_retval
=$ac_status
1464 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466 as_fn_set_status
$ac_retval
1470 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1471 # --------------------------------------------
1472 # Tries to find the compile-time value of EXPR in a program that includes
1473 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1475 ac_fn_c_compute_int
()
1477 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1478 if test "$cross_compiling" = yes; then
1479 # Depending upon the size, compute the lo and hi bounds.
1480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1481 /* end confdefs.h. */
1486 static int test_array [1 - 2 * !(($2) >= 0)];
1488 return test_array [0];
1494 if ac_fn_c_try_compile
"$LINENO"; then :
1497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1498 /* end confdefs.h. */
1503 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1505 return test_array [0];
1511 if ac_fn_c_try_compile
"$LINENO"; then :
1512 ac_hi
=$ac_mid; break
1514 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1515 if test $ac_lo -le $ac_mid; then
1519 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1525 /* end confdefs.h. */
1530 static int test_array [1 - 2 * !(($2) < 0)];
1532 return test_array [0];
1538 if ac_fn_c_try_compile
"$LINENO"; then :
1541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1542 /* end confdefs.h. */
1547 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1549 return test_array [0];
1555 if ac_fn_c_try_compile
"$LINENO"; then :
1556 ac_lo
=$ac_mid; break
1558 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1559 if test $ac_mid -le $ac_hi; then
1563 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1573 # Binary search between lo and hi bounds.
1574 while test "x$ac_lo" != "x$ac_hi"; do
1575 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1582 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1584 return test_array [0];
1590 if ac_fn_c_try_compile
"$LINENO"; then :
1593 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1598 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1605 static long int longval () { return $2; }
1606 static unsigned long int ulongval () { return $2; }
1613 FILE *f = fopen ("conftest.val", "w");
1618 long int i = longval ();
1621 fprintf (f, "%ld", i);
1625 unsigned long int i = ulongval ();
1628 fprintf (f, "%lu", i);
1630 /* Do not output a trailing newline, as this causes \r\n confusion
1631 on some platforms. */
1632 return ferror (f) || fclose (f) != 0;
1638 if ac_fn_c_try_run
"$LINENO"; then :
1639 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
1643 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
1644 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status
$ac_retval
1651 } # ac_fn_c_compute_int
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1659 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } > conftest.i && {
1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1707 if ac_fn_c_try_compile "$LINENO"; then :
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_compile
1720 cat >config.log <<_ACEOF
1721 This file contains any messages produced by compilers while
1722 running configure, to aid debugging if configure makes a mistake.
1724 It was created by $as_me, which was
1725 generated by GNU Autoconf 2.69. Invocation command line was
1737 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1738 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1739 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1740 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1741 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1743 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1744 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1746 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1747 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1748 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1749 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1750 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1751 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1752 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 $as_echo "PATH: $as_dir"
1777 # Keep a trace of the command line.
1778 # Strip out --no-create and --no-recursion so they do not pile up.
1779 # Strip out --silent because we don't want to record it for future runs.
1780 # Also quote any args containing shell meta-characters.
1781 # Make two passes to allow for proper duplicate-argument suppression.
1785 ac_must_keep_next=false
1791 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1793 | -silent | --silent | --silen | --sile | --sil)
1796 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1799 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1801 as_fn_append ac_configure_args1 " '$ac_arg'"
1802 if test $ac_must_keep_next = true; then
1803 ac_must_keep_next=false # Got value, back to normal.
1806 *=* | --config-cache | -C | -disable-* | --disable-* \
1807 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1808 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1809 | -with-* | --with-* | -without-* | --without-* | --x)
1810 case "$ac_configure_args0 " in
1811 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1814 -* ) ac_must_keep_next=true ;;
1817 as_fn_append ac_configure_args " '$ac_arg'"
1822 { ac_configure_args0=; unset ac_configure_args0;}
1823 { ac_configure_args1=; unset ac_configure_args1;}
1825 # When interrupted or exit'd, cleanup temporary files, and complete
1826 # config.log. We remove comments because anyway the quotes in there
1827 # would cause problems or look ugly.
1828 # WARNING: Use '\'' to represent an apostrophe within the trap.
1829 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1830 trap 'exit_status=$?
1831 # Save into config.log some information that might help in debugging.
1835 $as_echo "## ---------------- ##
1836 ## Cache variables. ##
1837 ## ---------------- ##"
1839 # The following way of writing the cache mishandles newlines in values,
1841 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1842 eval ac_val=\$$ac_var
1846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1850 _ | IFS | as_nl) ;; #(
1851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1852 *) { eval $ac_var=; unset $ac_var;} ;;
1857 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1858 *${as_nl}ac_space=\ *)
1860 "s/'\''/'\''\\\\'\'''\''/g;
1861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1871 $as_echo "## ----------------- ##
1872 ## Output variables. ##
1873 ## ----------------- ##"
1875 for ac_var in $ac_subst_vars
1877 eval ac_val=\$$ac_var
1879 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881 $as_echo "$ac_var='\''$ac_val'\''"
1885 if test -n "$ac_subst_files"; then
1886 $as_echo "## ------------------- ##
1887 ## File substitutions. ##
1888 ## ------------------- ##"
1890 for ac_var in $ac_subst_files
1892 eval ac_val=\$$ac_var
1894 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 $as_echo "$ac_var='\''$ac_val'\''"
1901 if test -s confdefs.h; then
1902 $as_echo "## ----------- ##
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1925 $as_echo "/* confdefs.h */" > confdefs.h
1927 # Predefined preprocessor variables.
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_NAME "$PACKAGE_NAME"
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_URL "$PACKAGE_URL"
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer an explicitly selected file to automatically selected ones.
1958 if test -n "$CONFIG_SITE"; then
1959 # We do not want a PATH search for config.site.
1960 case $CONFIG_SITE in #((
1961 -*) ac_site_file1=./$CONFIG_SITE;;
1962 */*) ac_site_file1=$CONFIG_SITE;;
1963 *) ac_site_file1=./$CONFIG_SITE;;
1965 elif test "x$prefix" != xNONE; then
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1974 test "x$ac_site_file" = xNONE && continue
1975 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1980 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1982 as_fn_error $? "failed to load site
script $ac_site_file
1983 See \
`config.log' for more details" "$LINENO" 5; }
1987 if test -r "$cache_file"; then
1988 # Some versions of bash will fail to source /dev/null (special files
1989 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1990 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1992 $as_echo "$as_me: loading cache $cache_file" >&6;}
1994 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1995 *) . "./$cache_file";;
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2000 $as_echo "$as_me: creating cache $cache_file" >&6;}
2004 # Check that the precious variables saved in the cache have kept the same
2006 ac_cache_corrupted=false
2007 for ac_var in $ac_precious_vars; do
2008 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2009 eval ac_new_set=\$ac_env_${ac_var}_set
2010 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2011 eval ac_new_val=\$ac_env_${ac_var}_value
2012 case $ac_old_set,$ac_new_set in
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2015 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2019 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2020 ac_cache_corrupted=: ;;
2023 if test "x$ac_old_val" != "x$ac_new_val"; then
2024 # differences in whitespace do not lead to failure.
2025 ac_old_val_w=`echo x
$ac_old_val`
2026 ac_new_val_w=`echo x
$ac_new_val`
2027 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2029 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2030 ac_cache_corrupted=:
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2033 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2034 eval $ac_var=\$ac_old_val
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2037 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2039 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2042 # Pass precious variables to config.status.
2043 if test "$ac_new_set" = set; then
2045 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2046 *) ac_arg=$ac_var=$ac_new_val ;;
2048 case " $ac_configure_args " in
2049 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2050 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2054 if $ac_cache_corrupted; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2058 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2059 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2061 ## -------------------- ##
2062 ## Main body of script. ##
2063 ## -------------------- ##
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072 ac_config_headers="$ac_config_headers config.h:config_in.h"
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2085 $as_echo_n "checking for $ac_word... " >&6; }
2086 if ${ac_cv_prog_CC+:} false; then :
2087 $as_echo_n "(cached) " >&6
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 if test -n "$CC"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2112 $as_echo "$CC" >&6; }
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2115 $as_echo "no" >&6; }
2120 if test -z "$ac_cv_prog_CC"; then
2122 # Extract the first word of "gcc", so it can be a program name with args.
2123 set dummy gcc; ac_word=$2
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2125 $as_echo_n "checking for $ac_word... " >&6; }
2126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2127 $as_echo_n "(cached) " >&6
2129 if test -n "$ac_ct_CC"; then
2130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_ac_ct_CC="gcc"
2140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150 if test -n "$ac_ct_CC"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2152 $as_echo "$ac_ct_CC" >&6; }
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2155 $as_echo "no" >&6; }
2158 if test "x$ac_ct_CC" = x; then
2161 case $cross_compiling:$ac_tool_warned in
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2165 ac_tool_warned=yes ;;
2173 if test -z "$CC"; then
2174 if test -n "$ac_tool_prefix"; then
2175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2176 set dummy ${ac_tool_prefix}cc; ac_word=$2
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2178 $as_echo_n "checking for $ac_word... " >&6; }
2179 if ${ac_cv_prog_CC+:} false; then :
2180 $as_echo_n "(cached) " >&6
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_CC="${ac_tool_prefix}cc"
2193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$CC"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2205 $as_echo "$CC" >&6; }
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2208 $as_echo "no" >&6; }
2214 if test -z "$CC"; then
2215 # Extract the first word of "cc", so it can be a program name with args.
2216 set dummy cc; ac_word=$2
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2218 $as_echo_n "checking for $ac_word... " >&6; }
2219 if ${ac_cv_prog_CC+:} false; then :
2220 $as_echo_n "(cached) " >&6
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2234 ac_prog_rejected=yes
2238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 if test $ac_prog_rejected = yes; then
2246 # We found a bogon in the path, so make sure we never use it.
2247 set dummy $ac_cv_prog_CC
2249 if test $# != 0; then
2250 # We chose a different compiler from the bogus one.
2251 # However, it has the same basename, so the bogon will be chosen
2252 # first if we set CC to just the basename; use the full file name.
2254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2260 if test -n "$CC"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2262 $as_echo "$CC" >&6; }
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2265 $as_echo "no" >&6; }
2270 if test -z "$CC"; then
2271 if test -n "$ac_tool_prefix"; then
2272 for ac_prog in cl.exe
2274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if ${ac_cv_prog_CC+:} false; then :
2279 $as_echo_n "(cached) " >&6
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 if test -n "$CC"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2304 $as_echo "$CC" >&6; }
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2307 $as_echo "no" >&6; }
2311 test -n "$CC" && break
2314 if test -z "$CC"; then
2316 for ac_prog in cl.exe
2318 # Extract the first word of "$ac_prog", so it can be a program name with args.
2319 set dummy $ac_prog; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2323 $as_echo_n "(cached) " >&6
2325 if test -n "$ac_ct_CC"; then
2326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335 ac_cv_prog_ac_ct_CC="$ac_prog"
2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2348 $as_echo "$ac_ct_CC" >&6; }
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351 $as_echo "no" >&6; }
2355 test -n "$ac_ct_CC" && break
2358 if test "x$ac_ct_CC" = x; then
2361 case $cross_compiling:$ac_tool_warned in
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2365 ac_tool_warned=yes ;;
2374 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2377 See \
`config.log' for more details" "$LINENO" 5; }
2379 # Provide some information about the compiler.
2380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2383 for ac_option in --version -v -V -qversion; do
2384 { { ac_try="$ac_compiler $ac_option >&5"
2386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2387 *) ac_try_echo
=$ac_try;;
2389 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390 $as_echo "$ac_try_echo"; } >&5
2391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2393 if test -s conftest.err
; then
2395 ... rest of stderr output deleted ...
2396 10q' conftest.err
>conftest.er1
2397 cat conftest.er1
>&5
2399 rm -f conftest.er1 conftest.err
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; }
2404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2415 ac_clean_files_save
=$ac_clean_files
2416 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2417 # Try to create an executable without -o first, disregard a.out.
2418 # It will help us diagnose broken compilers, and finding out an intuition
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2421 $as_echo_n "checking whether the C compiler works... " >&6; }
2422 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2424 # The possible output files:
2425 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2428 for ac_file
in $ac_files
2431 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2432 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2437 if { { ac_try
="$ac_link_default"
2439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2443 $as_echo "$ac_try_echo"; } >&5
2444 (eval "$ac_link_default") 2>&5
2446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 test $ac_status = 0; }; then :
2448 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2449 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2450 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2451 # so that the user can short-circuit this test for compilers unknown to
2453 for ac_file in $ac_files ''
2455 test -f "$ac_file" || continue
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2460 # We found the default executable, but exeext='' is most
2464 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 # We set ac_cv_exeext here because the later test for it is not
2469 # safe: cross compilers may not add the suffix if given an `-o'
2470 # argument, so we may need to know it at that point already.
2471 # Even if this section looks crufty: it has the advantage of
2478 test "$ac_cv_exeext" = no && ac_cv_exeext=
2483 if test -z "$ac_file"; then :
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 $as_echo "$as_me: failed program was:" >&5
2487 sed 's
/^
/|
/' conftest.$ac_ext >&5
2489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2491 as_fn_error 77 "C compiler cannot create executables
2492 See \`config.log
' for more details" "$LINENO" 5; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2495 $as_echo "yes" >&6; }
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2498 $as_echo_n "checking for C compiler default output file name... " >&6; }
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2500 $as_echo "$ac_file" >&6; }
2501 ac_exeext=$ac_cv_exeext
2503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2504 ac_clean_files=$ac_clean_files_save
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2506 $as_echo_n "checking for suffix of executables... " >&6; }
2507 if { { ac_try="$ac_link"
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513 $as_echo "$ac_try_echo"; } >&5
2514 (eval "$ac_link") 2>&5
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; }; then :
2518 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2519 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2520 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2522 for ac_file
in conftest.exe conftest conftest.
*; do
2523 test -f "$ac_file" ||
continue
2525 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2526 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2535 See \`config.log' for more details" "$LINENO" 5; }
2537 rm -f conftest conftest
$ac_cv_exeext
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2539 $as_echo "$ac_cv_exeext" >&6; }
2541 rm -f conftest.
$ac_ext
2542 EXEEXT
=$ac_cv_exeext
2544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2550 FILE *f = fopen ("conftest.out", "w");
2551 return ferror (f) || fclose (f) != 0;
2557 ac_clean_files
="$ac_clean_files conftest.out"
2558 # Check that the compiler produces executables we can run. If not, either
2559 # the compiler is broken, or we cross compile.
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2561 $as_echo_n "checking whether we are cross compiling... " >&6; }
2562 if test "$cross_compiling" != yes; then
2563 { { ac_try
="$ac_link"
2565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2569 $as_echo "$ac_try_echo"; } >&5
2570 (eval "$ac_link") 2>&5
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; }
2574 if { ac_try='./conftest$ac_cv_exeext'
2575 { { case "(($ac_try" in
2576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2577 *) ac_try_echo
=$ac_try;;
2579 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_try") 2>&5
2583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584 test $ac_status = 0; }; }; then
2587 if test "$cross_compiling" = maybe
; then
2590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 as_fn_error $?
"cannot run C compiled programs.
2593 If you meant to cross compile, use \`--host'.
2594 See \`config.log' for more details" "$LINENO" 5; }
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2599 $as_echo "$cross_compiling" >&6; }
2601 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2602 ac_clean_files
=$ac_clean_files_save
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2604 $as_echo_n "checking for suffix of object files... " >&6; }
2605 if ${ac_cv_objext+:} false
; then :
2606 $as_echo_n "(cached) " >&6
2608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2619 rm -f conftest.o conftest.obj
2620 if { { ac_try
="$ac_compile"
2622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626 $as_echo "$ac_try_echo"; } >&5
2627 (eval "$ac_compile") 2>&5
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; }; then :
2631 for ac_file in conftest.o conftest.obj conftest.*; do
2632 test -f "$ac_file" || continue;
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2646 See \
`config.log' for more details" "$LINENO" 5; }
2648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2651 $as_echo "$ac_cv_objext" >&6; }
2652 OBJEXT=$ac_cv_objext
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2656 if ${ac_cv_c_compiler_gnu+:} false; then :
2657 $as_echo_n "(cached) " >&6
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2673 if ac_fn_c_try_compile "$LINENO"; then :
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2684 if test $ac_compiler_gnu = yes; then
2689 ac_test_CFLAGS=${CFLAGS+set}
2690 ac_save_CFLAGS=$CFLAGS
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2693 if ${ac_cv_prog_cc_g+:} false; then :
2694 $as_echo_n "(cached) " >&6
2696 ac_save_c_werror_flag=$ac_c_werror_flag
2697 ac_c_werror_flag=yes
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2711 if ac_fn_c_try_compile "$LINENO"; then :
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2726 if ac_fn_c_try_compile "$LINENO"; then :
2729 ac_c_werror_flag=$ac_save_c_werror_flag
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2742 if ac_fn_c_try_compile "$LINENO"; then :
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_c_werror_flag=$ac_save_c_werror_flag
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2753 $as_echo "$ac_cv_prog_cc_g" >&6; }
2754 if test "$ac_test_CFLAGS" = set; then
2755 CFLAGS=$ac_save_CFLAGS
2756 elif test $ac_cv_prog_cc_g = yes; then
2757 if test "$GCC" = yes; then
2763 if test "$GCC" = yes; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2771 if ${ac_cv_prog_cc_c89+:} false; then :
2772 $as_echo_n "(cached) " >&6
2774 ac_cv_prog_cc_c89=no
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2782 struct buf { int x; };
2783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2784 static char *e (p, i)
2790 static char *f (char * (*g) (char **, int), char **p, ...)
2795 s = g (p, va_arg (v,int));
2800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2801 function prototypes and stuff, but not '\xHH' hex character constants.
2802 These don't provoke an error unfortunately, instead are silently treated
2803 as 'x'. The following induces an error, until -std is added to get
2804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2805 array size at least. It's necessary to write '\x00'==0 to get something
2806 that's true only with -std. */
2807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2810 inside strings and character constants. */
2812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2814 int test (int i, double x);
2815 struct s1 {int (*f) (int a);};
2816 struct s2 {int (*f) (double a);};
2817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2823 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2831 CC="$ac_save_CC $ac_arg"
2832 if ac_fn_c_try_compile "$LINENO"; then :
2833 ac_cv_prog_cc_c89=$ac_arg
2835 rm -f core conftest.err conftest.$ac_objext
2836 test "x$ac_cv_prog_cc_c89" != "xno" && break
2838 rm -f conftest.$ac_ext
2843 case "x$ac_cv_prog_cc_c89" in
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2846 $as_echo "none needed" >&6; } ;;
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2849 $as_echo "unsupported" >&6; } ;;
2851 CC="$CC $ac_cv_prog_cc_c89"
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2855 if test "x$ac_cv_prog_cc_c89" != xno; then :
2860 ac_cpp='$CPP $CPPFLAGS'
2861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2873 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2874 # On Suns, sometimes $CPP names a directory.
2875 if test -n "$CPP" && test -d "$CPP"; then
2878 if test -z "$CPP"; then
2879 if ${ac_cv_prog_CPP+:} false; then :
2880 $as_echo_n "(cached) " >&6
2882 # Double quotes because CPP needs to be expanded
2883 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2886 for ac_c_preproc_warn_flag in '' yes
2888 # Use a header file that comes with gcc, so configuring glibc
2889 # with a fresh cross-compiler works.
2890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2891 # <limits.h> exists even on freestanding compilers.
2892 # On the NeXT, cc -E runs the code through the compiler's parser,
2893 # not just through cpp. "Syntax error" is here to catch this case.
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2897 # include <limits.h>
2899 # include <assert.h>
2903 if ac_fn_c_try_cpp "$LINENO"; then :
2906 # Broken: fails on valid input.
2909 rm -f conftest.err conftest.i conftest.$ac_ext
2911 # OK, works on sane cases. Now check whether nonexistent headers
2912 # can be detected and how.
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2915 #include <ac_nonexistent.h>
2917 if ac_fn_c_try_cpp "$LINENO"; then :
2918 # Broken: success on invalid input.
2921 # Passes both tests.
2925 rm -f conftest.err conftest.i conftest.$ac_ext
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.i conftest.err conftest.
$ac_ext
2930 if $ac_preproc_ok; then :
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2943 $as_echo "$CPP" >&6; }
2945 for ac_c_preproc_warn_flag
in '' yes
2947 # Use a header file that comes with gcc, so configuring glibc
2948 # with a fresh cross-compiler works.
2949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950 # <limits.h> exists even on freestanding compilers.
2951 # On the NeXT, cc -E runs the code through the compiler's parser,
2952 # not just through cpp. "Syntax error" is here to catch this case.
2953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2956 # include <limits.h>
2958 # include <assert.h>
2962 if ac_fn_c_try_cpp
"$LINENO"; then :
2965 # Broken: fails on valid input.
2968 rm -f conftest.err conftest.i conftest.
$ac_ext
2970 # OK, works on sane cases. Now check whether nonexistent headers
2971 # can be detected and how.
2972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if ac_fn_c_try_cpp
"$LINENO"; then :
2977 # Broken: success on invalid input.
2980 # Passes both tests.
2984 rm -f conftest.err conftest.i conftest.
$ac_ext
2987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988 rm -f conftest.i conftest.err conftest.
$ac_ext
2989 if $ac_preproc_ok; then :
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
2995 See \`config.log' for more details" "$LINENO" 5; }
2999 ac_cpp
='$CPP $CPPFLAGS'
3000 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3006 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3007 if ${ac_cv_path_GREP+:} false
; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -z "$GREP"; then
3011 ac_path_GREP_found
=false
3012 # Loop through the user's path and test for each of PROGNAME-LIST
3013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3017 test -z "$as_dir" && as_dir
=.
3018 for ac_prog
in grep ggrep
; do
3019 for ac_exec_ext
in '' $ac_executable_extensions; do
3020 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3021 as_fn_executable_p
"$ac_path_GREP" ||
continue
3022 # Check for GNU ac_path_GREP and select it if it is found.
3023 # Check for GNU $ac_path_GREP
3024 case `"$ac_path_GREP" --version 2>&1` in
3026 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3029 $as_echo_n 0123456789 >"conftest.in"
3032 cat "conftest.in" "conftest.in" >"conftest.tmp"
3033 mv "conftest.tmp" "conftest.in"
3034 cp "conftest.in" "conftest.nl"
3035 $as_echo 'GREP' >> "conftest.nl"
3036 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3037 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3038 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3039 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3040 # Best one so far, save it but keep looking for a better one
3041 ac_cv_path_GREP
="$ac_path_GREP"
3042 ac_path_GREP_max
=$ac_count
3044 # 10*(2^10) chars as input seems more than enough
3045 test $ac_count -gt 10 && break
3047 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3050 $ac_path_GREP_found && break 3
3055 if test -z "$ac_cv_path_GREP"; then
3056 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3059 ac_cv_path_GREP
=$GREP
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3064 $as_echo "$ac_cv_path_GREP" >&6; }
3065 GREP
="$ac_cv_path_GREP"
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3069 $as_echo_n "checking for egrep... " >&6; }
3070 if ${ac_cv_path_EGREP+:} false
; then :
3071 $as_echo_n "(cached) " >&6
3073 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3074 then ac_cv_path_EGREP
="$GREP -E"
3076 if test -z "$EGREP"; then
3077 ac_path_EGREP_found
=false
3078 # Loop through the user's path and test for each of PROGNAME-LIST
3079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3080 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3083 test -z "$as_dir" && as_dir
=.
3084 for ac_prog
in egrep; do
3085 for ac_exec_ext
in '' $ac_executable_extensions; do
3086 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3087 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3088 # Check for GNU ac_path_EGREP and select it if it is found.
3089 # Check for GNU $ac_path_EGREP
3090 case `"$ac_path_EGREP" --version 2>&1` in
3092 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3095 $as_echo_n 0123456789 >"conftest.in"
3098 cat "conftest.in" "conftest.in" >"conftest.tmp"
3099 mv "conftest.tmp" "conftest.in"
3100 cp "conftest.in" "conftest.nl"
3101 $as_echo 'EGREP' >> "conftest.nl"
3102 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3103 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3104 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3105 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3106 # Best one so far, save it but keep looking for a better one
3107 ac_cv_path_EGREP
="$ac_path_EGREP"
3108 ac_path_EGREP_max
=$ac_count
3110 # 10*(2^10) chars as input seems more than enough
3111 test $ac_count -gt 10 && break
3113 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3116 $ac_path_EGREP_found && break 3
3121 if test -z "$ac_cv_path_EGREP"; then
3122 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3125 ac_cv_path_EGREP
=$EGREP
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3131 $as_echo "$ac_cv_path_EGREP" >&6; }
3132 EGREP
="$ac_cv_path_EGREP"
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3136 $as_echo_n "checking for ANSI C header files... " >&6; }
3137 if ${ac_cv_header_stdc+:} false
; then :
3138 $as_echo_n "(cached) " >&6
3140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3155 if ac_fn_c_try_compile
"$LINENO"; then :
3156 ac_cv_header_stdc
=yes
3158 ac_cv_header_stdc
=no
3160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3162 if test $ac_cv_header_stdc = yes; then
3163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3170 $EGREP "memchr" >/dev
/null
2>&1; then :
3173 ac_cv_header_stdc
=no
3179 if test $ac_cv_header_stdc = yes; then
3180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 $EGREP "free" >/dev
/null
2>&1; then :
3190 ac_cv_header_stdc
=no
3196 if test $ac_cv_header_stdc = yes; then
3197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3198 if test "$cross_compiling" = yes; then :
3201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3205 #if ((' ' & 0x0FF) == 0x020)
3206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3209 # define ISLOWER(c) \
3210 (('a' <= (c) && (c) <= 'i') \
3211 || ('j' <= (c) && (c) <= 'r') \
3212 || ('s' <= (c) && (c) <= 'z'))
3213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3221 for (i = 0; i < 256; i++)
3222 if (XOR (islower (i), ISLOWER (i))
3223 || toupper (i) != TOUPPER (i))
3228 if ac_fn_c_try_run
"$LINENO"; then :
3231 ac_cv_header_stdc
=no
3233 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3234 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3240 $as_echo "$ac_cv_header_stdc" >&6; }
3241 if test $ac_cv_header_stdc = yes; then
3243 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3247 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3248 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3249 inttypes.h stdint.h unistd.h
3251 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3252 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3254 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3255 cat >>confdefs.h
<<_ACEOF
3256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3264 # The cast to long int works around a bug in the HP C Compiler
3265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3267 # This bug is HP SR number 8606223364.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
3269 $as_echo_n "checking size of char... " >&6; }
3270 if ${ac_cv_sizeof_char+:} false
; then :
3271 $as_echo_n "(cached) " >&6
3273 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
3276 if test "$ac_cv_type_char" = yes; then
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error
77 "cannot compute sizeof (char)
3280 See \`config.log' for more details" "$LINENO" 5; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
3288 $as_echo "$ac_cv_sizeof_char" >&6; }
3292 cat >>confdefs.h
<<_ACEOF
3293 #define SIZEOF_CHAR $ac_cv_sizeof_char
3297 # The cast to long int works around a bug in the HP C Compiler
3298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3300 # This bug is HP SR number 8606223364.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
3302 $as_echo_n "checking size of short... " >&6; }
3303 if ${ac_cv_sizeof_short+:} false
; then :
3304 $as_echo_n "(cached) " >&6
3306 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
3309 if test "$ac_cv_type_short" = yes; then
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error
77 "cannot compute sizeof (short)
3313 See \`config.log' for more details" "$LINENO" 5; }
3315 ac_cv_sizeof_short
=0
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
3321 $as_echo "$ac_cv_sizeof_short" >&6; }
3325 cat >>confdefs.h
<<_ACEOF
3326 #define SIZEOF_SHORT $ac_cv_sizeof_short
3330 # The cast to long int works around a bug in the HP C Compiler
3331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3333 # This bug is HP SR number 8606223364.
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
3335 $as_echo_n "checking size of int... " >&6; }
3336 if ${ac_cv_sizeof_int+:} false
; then :
3337 $as_echo_n "(cached) " >&6
3339 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
3342 if test "$ac_cv_type_int" = yes; then
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error
77 "cannot compute sizeof (int)
3346 See \`config.log' for more details" "$LINENO" 5; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
3354 $as_echo "$ac_cv_sizeof_int" >&6; }
3358 cat >>confdefs.h
<<_ACEOF
3359 #define SIZEOF_INT $ac_cv_sizeof_int
3363 # The cast to long int works around a bug in the HP C Compiler
3364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3366 # This bug is HP SR number 8606223364.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
3368 $as_echo_n "checking size of long... " >&6; }
3369 if ${ac_cv_sizeof_long+:} false
; then :
3370 $as_echo_n "(cached) " >&6
3372 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
3375 if test "$ac_cv_type_long" = yes; then
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error
77 "cannot compute sizeof (long)
3379 See \`config.log' for more details" "$LINENO" 5; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
3387 $as_echo "$ac_cv_sizeof_long" >&6; }
3391 cat >>confdefs.h
<<_ACEOF
3392 #define SIZEOF_LONG $ac_cv_sizeof_long
3396 # The cast to long int works around a bug in the HP C Compiler
3397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3399 # This bug is HP SR number 8606223364.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
3401 $as_echo_n "checking size of long long... " >&6; }
3402 if ${ac_cv_sizeof_long_long+:} false
; then :
3403 $as_echo_n "(cached) " >&6
3405 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
3408 if test "$ac_cv_type_long_long" = yes; then
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error
77 "cannot compute sizeof (long long)
3412 See \`config.log' for more details" "$LINENO" 5; }
3414 ac_cv_sizeof_long_long
=0
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
3420 $as_echo "$ac_cv_sizeof_long_long" >&6; }
3424 cat >>confdefs.h
<<_ACEOF
3425 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3432 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev
/null
; then
3436 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev
/null
; then
3440 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev
/null
; then
3444 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev
/null
; then
3448 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev
/null
; then
3455 # Try to append a c99 flag
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3457 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3458 if ${ac_cv_prog_cc_c99+:} false
; then :
3459 $as_echo_n "(cached) " >&6
3461 ac_cv_prog_cc_c99
=no
3463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3466 #include <stdbool.h>
3471 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3472 #define debug(...) fprintf (stderr, __VA_ARGS__)
3473 #define showlist(...) puts (#__VA_ARGS__)
3474 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3476 test_varargs_macros (void)
3481 debug ("X = %d\n", x);
3482 showlist (The first, second, and third items.);
3483 report (x>y, "x is %d but y is %d", x, y);
3486 // Check long long types.
3487 #define BIG64 18446744073709551615ull
3488 #define BIG32 4294967295ul
3489 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3491 your preprocessor is broken;
3495 your preprocessor is broken;
3497 static long long int bignum = -9223372036854775807LL;
3498 static unsigned long long int ubignum = BIG64;
3500 struct incomplete_array
3508 const wchar_t *name;
3512 typedef const char *ccp;
3515 test_restrict (ccp restrict text)
3517 // See if C++-style comments work.
3518 // Iterate through items via the restricted pointer.
3519 // Also check for declarations in for loops.
3520 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3525 // Check varargs and va_copy.
3527 test_varargs (const char *format, ...)
3530 va_start (args, format);
3532 va_copy (args_copy, args);
3543 str = va_arg (args_copy, const char *);
3546 number = va_arg (args_copy, int);
3549 fnumber = va_arg (args_copy, double);
3564 _Bool success = false;
3567 if (test_restrict ("String literal") == 0)
3569 char *restrict newvar = "Another string";
3572 test_varargs ("s, d' f .", "string", 65, 34.234);
3573 test_varargs_macros ();
3575 // Check flexible array members.
3576 struct incomplete_array *ia =
3577 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3579 for (int i = 0; i < ia->datasize; ++i)
3580 ia->data[i] = i * 1.234;
3582 // Check named initializers.
3583 struct named_init ni = {
3585 .name = L"Test wide string",
3586 .average = 543.34343,
3591 int dynamic_array[ni.number];
3592 dynamic_array[ni.number - 1] = 543;
3594 // work around unused variable warnings
3595 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3596 || dynamic_array[ni.number - 1] != 543);
3602 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3604 CC
="$ac_save_CC $ac_arg"
3605 if ac_fn_c_try_compile
"$LINENO"; then :
3606 ac_cv_prog_cc_c99
=$ac_arg
3608 rm -f core conftest.err conftest.
$ac_objext
3609 test "x$ac_cv_prog_cc_c99" != "xno" && break
3611 rm -f conftest.
$ac_ext
3616 case "x$ac_cv_prog_cc_c99" in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3624 CC
="$CC $ac_cv_prog_cc_c99"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3626 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3628 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3633 if test "$ac_cv_prog_cc_c99" != "no"; then
3634 CFLAGS
="$ac_cv_prog_cc_c99 ${CFLAGS}"
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type name for byte" >&5
3638 $as_echo_n "checking type name for byte... " >&6; }
3639 TYPE_BYTE
=`type_name 1`
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TYPE_BYTE" >&5
3641 $as_echo "$TYPE_BYTE" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type name for word" >&5
3643 $as_echo_n "checking type name for word... " >&6; }
3644 TYPE_WORD
=`type_name 2`
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TYPE_WORD" >&5
3646 $as_echo "$TYPE_WORD" >&6; }
3648 cat >>confdefs.h
<<_ACEOF
3649 #define TYPE_BYTE $TYPE_BYTE
3653 cat >>confdefs.h
<<_ACEOF
3654 #define TYPE_WORD $TYPE_WORD
3658 cat >>confdefs.h
<<_ACEOF
3659 #define TYPE_UBYTE unsigned $TYPE_BYTE
3663 cat >>confdefs.h
<<_ACEOF
3664 #define TYPE_UWORD unsigned $TYPE_WORD
3670 ac_config_files
="$ac_config_files Makefile"
3672 cat >confcache
<<\_ACEOF
3673 # This file is a shell script that caches the results of configure
3674 # tests run on this system so they can be shared between configure
3675 # scripts and configure runs, see configure's option --config-cache.
3676 # It is not useful on other systems. If it contains results you don't
3677 # want to keep, you may remove or edit it.
3679 # config.status only pays attention to the cache file if you give it
3680 # the --recheck option to rerun configure.
3682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3688 # The following way of writing the cache mishandles newlines in values,
3689 # but we know of no workaround that is simple, portable, and efficient.
3690 # So, we kill variables containing newlines.
3691 # Ultrix sh set writes to stderr and can't be redirected directly,
3692 # and sets the high bit in the cache file unless we assign to the vars.
3694 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3695 eval ac_val
=\$
$ac_var
3699 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3703 _ | IFS | as_nl
) ;; #(
3704 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
3705 *) { eval $ac_var=; unset $ac_var;} ;;
3711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3712 *${as_nl}ac_space
=\
*)
3713 # `set' does not quote correctly, so add quotes: double-quote
3714 # substitution turns \\\\ into \\, and sed turns \\ into \.
3717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3720 # `set' quotes correctly as required by POSIX, so do not add quotes.
3721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3734 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
3735 if test -w "$cache_file"; then
3736 if test "x$cache_file" != "x/dev/null"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3738 $as_echo "$as_me: updating cache $cache_file" >&6;}
3739 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
3740 cat confcache
>"$cache_file"
3742 case $cache_file in #(
3744 mv -f confcache
"$cache_file"$$
&&
3745 mv -f "$cache_file"$$
"$cache_file" ;; #(
3747 mv -f confcache
"$cache_file" ;;
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3753 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3758 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3759 # Let make expand exec_prefix.
3760 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3762 DEFS
=-DHAVE_CONFIG_H
3767 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
3768 # 1. Remove the extension, and $U if already installed.
3769 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
3770 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
3771 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3772 # will be set to the directory where LIBOBJS objects are built.
3773 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3774 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
3778 LTLIBOBJS
=$ac_ltlibobjs
3782 : "${CONFIG_STATUS=./config.status}"
3784 ac_clean_files_save
=$ac_clean_files
3785 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3787 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3789 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3791 # Generated by $as_me.
3792 # Run this file to recreate the current configuration.
3793 # Compiler output produced by configure, useful for debugging
3794 # configure, is in config.log if it exists.
3800 SHELL=\${CONFIG_SHELL-$SHELL}
3803 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
3804 ## -------------------- ##
3805 ## M4sh Initialization. ##
3806 ## -------------------- ##
3808 # Be more Bourne compatible
3809 DUALCASE
=1; export DUALCASE
# for MKS sh
3810 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
3813 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3814 # is contrary to our usage. Disable this feature.
3815 alias -g '${1+"$@"}'='"$@"'
3816 setopt NO_GLOB_SUBST
3818 case `(set -o) 2>/dev/null` in #(
3830 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3831 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3834 # Prefer a ksh shell builtin over an external printf program on Solaris,
3835 # but without wasting forks for bash or zsh.
3836 if test -z "$BASH_VERSION$ZSH_VERSION" \
3837 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3838 as_echo='print
-r --'
3839 as_echo_n='print
-rn --'
3840 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3841 as_echo='printf %s
\n'
3842 as_echo_n='printf %s
'
3844 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3845 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
3846 as_echo_n='/usr
/ucb
/echo -n'
3848 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3849 as_echo_n_body='eval
3853 expr "X$arg" : "X\\(.*\\)$as_nl";
3854 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3856 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
3858 export as_echo_n_body
3859 as_echo_n='sh
-c $as_echo_n_body as_echo
'
3862 as_echo='sh
-c $as_echo_body as_echo
'
3865 # The user is always right.
3866 if test "${PATH_SEPARATOR+set}" != set; then
3868 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3869 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3876 # We need space, tab and new line, in precisely that order. Quoting is
3877 # there to prevent editors from complaining about space-tab.
3878 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3879 # splitting by setting IFS to empty value.)
3882 # Find who we are. Look in the path if we contain no directory separator.
3885 *[\\/]* ) as_myself=$0 ;;
3886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3897 # We did not find ourselves, most probably we were run as `sh COMMAND'
3898 # in which case we are not to be found in the path.
3899 if test "x$as_myself" = x
; then
3902 if test ! -f "$as_myself"; then
3903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3907 # Unset variables that we do not need and which cause bugs (e.g. in
3908 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3909 # suppresses any "Segmentation fault" message there. '((' could
3910 # trigger a bug in pdksh 5.2.14.
3911 for as_var
in BASH_ENV ENV MAIL MAILPATH
3912 do eval test x\
${$as_var+set} = xset \
3913 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
3926 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
3929 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3930 # ----------------------------------------
3931 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3932 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3933 # script with STATUS, using 1 if that was 0.
3936 as_status
=$1; test $as_status -eq 0 && as_status
=1
3938 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3939 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3941 $as_echo "$as_me: error: $2" >&2
3942 as_fn_exit
$as_status
3946 # as_fn_set_status STATUS
3947 # -----------------------
3948 # Set $? to STATUS, without forking.
3952 } # as_fn_set_status
3956 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3966 # Portably unset VAR.
3969 { eval $1=; unset $1;}
3971 as_unset
=as_fn_unset
3972 # as_fn_append VAR VALUE
3973 # ----------------------
3974 # Append the text in VALUE to the end of the definition contained in VAR. Take
3975 # advantage of any shell optimizations that allow amortized linear growth over
3976 # repeated appends, instead of the typical quadratic growth present in naive
3978 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
3979 eval 'as_fn_append ()
3990 # as_fn_arith ARG...
3991 # ------------------
3992 # Perform arithmetic evaluation on the ARGs, and store the result in the
3993 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3994 # must be portable across $(()) and expr.
3995 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
3996 eval 'as_fn_arith ()
4003 as_val
=`expr "$@" || test $? -eq 1`
4008 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4009 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4015 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4016 as_basename
=basename
4021 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4027 as_me
=`$as_basename -- "$0" ||
4028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4029 X"$0" : 'X\(//\)$' \| \
4030 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4032 sed '/^.*\/\([^/][^/]*\)\/*$/{
4046 # Avoid depending upon Character Ranges.
4047 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4048 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4049 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4050 as_cr_digits
='0123456789'
4051 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4053 ECHO_C
= ECHO_N
= ECHO_T
=
4054 case `echo -n x` in #(((((
4056 case `echo 'xy\c'` in
4057 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4059 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4066 rm -f conf$$ conf$$.exe conf$$.
file
4067 if test -d conf$$.dir
; then
4068 rm -f conf$$.dir
/conf$$.
file
4071 mkdir conf$$.dir
2>/dev
/null
4073 if (echo >conf$$.
file) 2>/dev
/null
; then
4074 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4076 # ... but there are two gotchas:
4077 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4078 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4079 # In both cases, we have to default to `cp -pR'.
4080 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4082 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4090 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4091 rmdir conf$$.dir
2>/dev
/null
4096 # Create "$as_dir" as a directory, including parents if necessary.
4101 -*) as_dir
=.
/$as_dir;;
4103 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4107 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4108 *) as_qdir
=$as_dir;;
4110 as_dirs
="'$as_qdir' $as_dirs"
4111 as_dir
=`$as_dirname -- "$as_dir" ||
4112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4113 X"$as_dir" : 'X\(//\)[^/]' \| \
4114 X"$as_dir" : 'X\(//\)$' \| \
4115 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4116 $as_echo X"$as_dir" |
4117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4134 test -d "$as_dir" && break
4136 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4137 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4141 if mkdir
-p .
2>/dev
/null
; then
4142 as_mkdir_p
='mkdir -p "$as_dir"'
4144 test -d .
/-p && rmdir .
/-p
4149 # as_fn_executable_p FILE
4150 # -----------------------
4151 # Test if FILE is an executable regular file.
4152 as_fn_executable_p
()
4154 test -f "$1" && test -x "$1"
4155 } # as_fn_executable_p
4157 as_executable_p
=as_fn_executable_p
4159 # Sed expression to map a string onto a valid CPP name.
4160 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4162 # Sed expression to map a string onto a valid variable name.
4163 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4167 ## ----------------------------------- ##
4168 ## Main body of $CONFIG_STATUS script. ##
4169 ## ----------------------------------- ##
4171 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4174 # Save the log message, to keep $0 and so on meaningful, and to
4175 # report actual input values of CONFIG_FILES etc. instead of their
4176 # values after options handling.
4178 This file was extended by $as_me, which was
4179 generated by GNU Autoconf 2.69. Invocation command line was
4181 CONFIG_FILES = $CONFIG_FILES
4182 CONFIG_HEADERS = $CONFIG_HEADERS
4183 CONFIG_LINKS = $CONFIG_LINKS
4184 CONFIG_COMMANDS = $CONFIG_COMMANDS
4187 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4192 case $ac_config_files in *"
4193 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4196 case $ac_config_headers in *"
4197 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4202 # Files that config.status was made for.
4203 config_files="$ac_config_files"
4204 config_headers="$ac_config_headers"
4208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4210 \`$as_me' instantiates files and other configuration actions
4211 from templates according to the current configuration. Unless the files
4212 and actions are specified as TAGs, all are instantiated by default.
4214 Usage: $0 [OPTION]... [TAG]...
4216 -h, --help print this help, then exit
4217 -V, --version print version number and configuration settings, then exit
4218 --config print configuration, then exit
4219 -q, --quiet, --silent
4220 do not print progress messages
4221 -d, --debug don't remove temporary files
4222 --recheck update $as_me by reconfiguring in the same conditions
4223 --file=FILE[:TEMPLATE]
4224 instantiate the configuration file FILE
4225 --header=FILE[:TEMPLATE]
4226 instantiate the configuration header FILE
4228 Configuration files:
4231 Configuration headers:
4234 Report bugs to the package provider."
4237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4238 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4241 configured by $0, generated by GNU Autoconf 2.69,
4242 with options \\"\$ac_cs_config\\"
4244 Copyright (C) 2012 Free Software Foundation, Inc.
4245 This config.status script is free software; the Free Software Foundation
4246 gives unlimited permission to copy, distribute and modify it."
4250 test -n "\$AWK" || AWK=awk
4253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4254 # The default lists apply if the user does not specify any file.
4260 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4261 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4265 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4277 # Handling of the options.
4278 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4280 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4281 $as_echo "$ac_cs_version"; exit ;;
4282 --config |
--confi |
--conf |
--con |
--co |
--c )
4283 $as_echo "$ac_cs_config"; exit ;;
4284 --debug |
--debu |
--deb |
--de |
--d |
-d )
4286 --file |
--fil |
--fi |
--f )
4289 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4290 '') as_fn_error $?
"missing file argument" ;;
4292 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4293 ac_need_defaults
=false
;;
4294 --header |
--heade |
--head |
--hea )
4297 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4299 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4300 ac_need_defaults
=false
;;
4302 # Conflict between --help and --header
4303 as_fn_error $?
"ambiguous option: \`$1'
4304 Try \`$0 --help' for more information.";;
4305 --help |
--hel |
-h )
4306 $as_echo "$ac_cs_usage"; exit ;;
4307 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4308 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4312 -*) as_fn_error $?
"unrecognized option: \`$1'
4313 Try \`$0 --help' for more information." ;;
4315 *) as_fn_append ac_config_targets
" $1"
4316 ac_need_defaults
=false
;;
4322 ac_configure_extra_args
=
4324 if $ac_cs_silent; then
4326 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4331 if \$ac_cs_recheck; then
4332 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4335 CONFIG_SHELL='$SHELL'
4341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4346 ## Running $as_me. ##
4352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4357 # Handling of arguments.
4358 for ac_config_target
in $ac_config_targets
4360 case $ac_config_target in
4361 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config_in.h" ;;
4362 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4364 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4369 # If the user did not use the arguments to specify the items to instantiate,
4370 # then the envvar interface is used. Set only those that are not.
4371 # We use the long form for the default assignment because of an extremely
4372 # bizarre bug on SunOS 4.1.3.
4373 if $ac_need_defaults; then
4374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4378 # Have a temporary directory for convenience. Make it in the build tree
4379 # simply because there is no reason against having it here, and in addition,
4380 # creating and moving files from /tmp can sometimes cause problems.
4381 # Hook for its removal unless debugging.
4382 # Note that there is a small window in which the directory will not be cleaned:
4383 # after its creation but before its name has been assigned to `$tmp'.
4387 trap 'exit_status=$?
4389 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4391 trap 'as_fn_exit 1' 1 2 13 15
4393 # Create a (secure) tmp directory for tmp files.
4396 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4400 tmp
=.
/conf$$
-$RANDOM
4401 (umask 077 && mkdir
"$tmp")
4402 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
4405 # Set up the scripts for CONFIG_FILES section.
4406 # No need to generate them if there are no CONFIG_FILES.
4407 # This happens for instance with `./config.status config.h'.
4408 if test -n "$CONFIG_FILES"; then
4411 ac_cr
=`echo X | tr X '\015'`
4412 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4413 # But we know of no other shell where ac_cr would be empty at this
4414 # point, so we can use a bashism as a fallback.
4415 if test "x$ac_cr" = x
; then
4416 eval ac_cr
=\$
\'\\r
\'
4418 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4419 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4425 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4430 echo "cat >conf$$subs.awk <<_ACEOF" &&
4431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4434 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4435 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4437 for ac_last_try in false false false false false :; do
4438 . ./conf$$subs.sh ||
4439 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4441 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
4442 if test $ac_delim_n = $ac_delim_num; then
4444 elif $ac_last_try; then
4445 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4447 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
4452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4453 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
4457 s/^/S["/; s
/!.
*/"]=/
4467 s/\(.\{148\}\)..*/\1/
4469 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
4474 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
4481 s/\(.\{148\}\)..*/\1/
4483 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
4487 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
4492 ' <conf$$subs.awk | sed '
4497 ' >>$CONFIG_STATUS || ac_write_fail=1
4498 rm -f conf$$subs.awk
4499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4501 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
4502 for (key in S) S_is_set[key] = 1
4508 nfields = split(line, field, "@
")
4510 len = length(field[1])
4511 for (i = 2; i < nfields; i++) {
4513 keylen = length(key)
4514 if (S_is_set[key]) {
4516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4517 len += length(value) + length(field[++i])
4528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4529 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4530 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
4533 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
4534 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
4537 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4538 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
4539 # trailing colons and then remove the whole line if VPATH becomes empty
4540 # (actually we leave an empty line to preserve line numbers).
4541 if test "x
$srcdir" = x.; then
4542 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4561 fi # test -n "$CONFIG_FILES"
4563 # Set up the scripts for CONFIG_HEADERS section.
4564 # No need to generate them if there are no CONFIG_HEADERS.
4565 # This happens for instance with `./config.status Makefile'.
4566 if test -n "$CONFIG_HEADERS"; then
4567 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
4571 # Transform confdefs.h into an awk script `defines.awk', embedded as
4572 # here-document in config.status, that substitutes the proper values into
4573 # config.h.in to produce config.h.
4575 # Create a delimiter string that does not exist in confdefs.h, to ease
4576 # handling of long lines.
4578 for ac_last_try in false false :; do
4579 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
4580 if test -z "$ac_tt"; then
4582 elif $ac_last_try; then
4583 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
4585 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
4589 # For the awk script, D is an array of macro values keyed by name,
4590 # likewise P contains macro parameters if any. Preserve backslash
4591 # newline sequences.
4593 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4595 s/.\{148\}/&'"$ac_delim"'/g
4598 s/^[ ]*#[ ]*define[ ][ ]*/ /
4605 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
4607 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
4611 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
4612 D["\
1"]=" \
3\\\\\\n
"\\/p
4614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
4619 s/.\{148\}/&'"$ac_delim"'/g
4624 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
4627 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
4629 ' <confdefs.h | sed '
4630 s/'"$ac_delim"'/"\\\
4631 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4634 for (key in D) D_is_set[key] = 1
4637 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4639 split(line, arg, " ")
4640 if (arg[1] == "#") {
4644 defundef
= substr
(arg
[1], 2)
4647 split(mac1
, mac2
, "(") #)
4649 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
4650 if (D_is_set
[macro
]) {
4651 # Preserve the white space surrounding the "#".
4652 print prefix
"define", macro P
[macro
] D
[macro
]
4655 # Replace #undef with comments. This is necessary, for example,
4656 # in the case of _POSIX_SOURCE, which is predefined and required
4657 # on some systems where configure will not decide to define it.
4658 if (defundef
== "undef") {
4659 print
"/*", prefix defundef
, macro
, "*/"
4667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4668 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
4669 fi # test -n "$CONFIG_HEADERS"
4672 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
4677 :[FHLC
]) ac_mode
=$ac_tag; continue;;
4679 case $ac_mode$ac_tag in
4681 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
4682 :[FH
]-) ac_tag
=-:-;;
4683 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
4700 -) ac_f
="$ac_tmp/stdin";;
4701 *) # Look for the file first in the build tree, then in the source tree
4702 # (if the path is not absolute). The absolute path cannot be DOS-style,
4703 # because $ac_f cannot contain `:'.
4707 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
4709 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4711 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4712 as_fn_append ac_file_inputs
" '$ac_f'"
4715 # Let's still pretend it is `configure' which instantiates (i.e., don't
4716 # use $as_me), people would be surprised to read:
4717 # /* config.h. Generated by config.status. */
4718 configure_input
='Generated from '`
4719 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4721 if test x
"$ac_file" != x-
; then
4722 configure_input
="$ac_file. $configure_input"
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4724 $as_echo "$as_me: creating $ac_file" >&6;}
4726 # Neutralize special characters interpreted by sed in replacement strings.
4727 case $configure_input in #(
4728 *\
&* |
*\|
* |
*\\* )
4729 ac_sed_conf_input
=`$as_echo "$configure_input" |
4730 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4731 *) ac_sed_conf_input
=$configure_input;;
4735 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
4736 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
4741 ac_dir
=`$as_dirname -- "$ac_file" ||
4742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4743 X"$ac_file" : 'X\(//\)[^/]' \| \
4744 X"$ac_file" : 'X\(//\)$' \| \
4745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4746 $as_echo X"$ac_file" |
4747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4764 as_dir
="$ac_dir"; as_fn_mkdir_p
4768 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
4770 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4771 # A ".." for each directory in $ac_dir_suffix.
4772 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4773 case $ac_top_builddir_sub in
4774 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
4775 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
4778 ac_abs_top_builddir
=$ac_pwd
4779 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
4780 # for backward compatibility:
4781 ac_top_builddir
=$ac_top_build_prefix
4784 .
) # We are building in place.
4786 ac_top_srcdir
=$ac_top_builddir_sub
4787 ac_abs_top_srcdir
=$ac_pwd ;;
4788 [\\/]* | ?
:[\\/]* ) # Absolute name.
4789 ac_srcdir
=$srcdir$ac_dir_suffix;
4790 ac_top_srcdir
=$srcdir
4791 ac_abs_top_srcdir
=$srcdir ;;
4793 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
4794 ac_top_srcdir
=$ac_top_build_prefix$srcdir
4795 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
4797 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
4808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4809 # If the template does not know about datarootdir, expand it.
4810 # FIXME: This hack should be removed a few years after 2.60.
4811 ac_datarootdir_hack
=; ac_datarootdir_seen
=
4822 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4823 *datarootdir
*) ac_datarootdir_seen
=yes;;
4824 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4826 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4829 ac_datarootdir_hack='
4830 s&@datadir@&$datadir&g
4831 s&@docdir@&$docdir&g
4832 s&@infodir@&$infodir&g
4833 s&@localedir@&$localedir&g
4834 s&@mandir@&$mandir&g
4835 s&\\\${datarootdir}&$datarootdir&g' ;;
4839 # Neutralize VPATH when `$srcdir' = `.'.
4840 # Shell code in configure.ac might set extrasub.
4841 # FIXME: do we really want to maintain this feature?
4842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4843 ac_sed_extra="$ac_vpsub
4846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4848 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
4849 s|@configure_input@|
$ac_sed_conf_input|
;t t
4850 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
4851 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
4852 s
&@srcdir@
&$ac_srcdir&;t t
4853 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
4854 s
&@top_srcdir@
&$ac_top_srcdir&;t t
4855 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
4856 s
&@builddir@
&$ac_builddir&;t t
4857 s
&@abs_builddir@
&$ac_abs_builddir&;t t
4858 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
4859 $ac_datarootdir_hack
4861 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
4862 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
4864 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4865 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
4866 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4867 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
4869 which seems to be undefined. Please make sure it is defined" >&5
4870 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
4871 which seems to be undefined. Please make sure it is defined" >&2;}
4873 rm -f "$ac_tmp/stdin"
4875 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4876 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4884 if test x"$ac_file" != x-; then
4886 $as_echo "/* $configure_input */" \
4887 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4888 } >"$ac_tmp/config.h" \
4889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4890 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4895 mv "$ac_tmp/config.h" "$ac_file" \
4896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4899 $as_echo "/* $configure_input */" \
4900 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4901 || as_fn_error $? "could not create -" "$LINENO" 5
4913 ac_clean_files=$ac_clean_files_save
4915 test $ac_write_fail = 0 ||
4916 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4919 # configure is writing to config.log, and then calls config.status.
4920 # config.status does its own redirection, appending to config.log.
4921 # Unfortunately, on DOS this fails, as config.log is still kept open
4922 # by configure, so config.status won't be able to
write to it
; its
4923 # output is simply discarded. So we exec the FD to /dev/null,
4924 # effectively closing config.log, so it can be properly (re)opened and
4925 # appended to by config.status. When coming back to configure, we
4926 # need to make the FD available again.
4927 if test "$no_create" != yes; then
4929 ac_config_status_args
=
4930 test "$silent" = yes &&
4931 ac_config_status_args
="$ac_config_status_args --quiet"
4933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
4935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4936 # would make configure fail if this is the last instruction.
4937 $ac_cs_success || as_fn_exit
1
4939 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4941 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}