2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for smenu 1.4.0.
5 # Report bugs to <p.gen.progs@gmail.com>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 e
) case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
152 e) case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 e) exitcode=1; echo positional parameters were not saved. ;;
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
183 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev
/null
192 e
) as_have_required
=no
;;
195 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
199 e
) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
201 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
207 *) as_dir
=$as_dir/ ;;
212 for as_base
in sh bash ksh sh5
; do
213 # Try only shells that exist, to save several forks.
214 as_shell
=$as_dir$as_base
215 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
216 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
218 CONFIG_SHELL
=$as_shell as_have_required
=yes
219 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
233 e
) if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
236 CONFIG_SHELL
=$SHELL as_have_required
=yes
242 if test "x$CONFIG_SHELL" != x
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
251 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
253 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 if test x
$as_have_required = xno
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274 $0: p.gen.progs@gmail.com about your system, including any
275 $0: error possibly output before this message. Then install
276 $0: a modern shell, or manually run the script under such a
277 $0: shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 # Create "$as_dir" as a directory, including parents if necessary.
328 -*) as_dir
=.
/$as_dir;;
330 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
334 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 as_dirs
="'$as_qdir' $as_dirs"
338 as_dir
=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
361 test -d "$as_dir" && break
363 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
364 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p
()
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
384 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
410 as_val
=`expr "$@" || test $? -eq 1`
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
423 as_status
=$1; test $as_status -eq 0 && as_status
=1
425 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit
$as_status
432 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
439 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
451 as_me
=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
470 # Avoid depending upon Character Ranges.
471 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits
='0123456789'
475 as_cr_alnum
=$as_cr_Letters$as_cr_digits
478 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
479 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
500 chmod +x
"$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec
=no
; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
511 # Exit status is that of the last command.
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C
= ECHO_N
= ECHO_T
=
520 case `echo -n x` in #(((((
522 case `echo 'xy\c'` in
523 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo
='printf %s\n'
536 as_echo_n
='printf %s'
538 rm -f conf$$ conf$$.exe conf$$.
file
539 if test -d conf$$.dir
; then
540 rm -f conf$$.dir
/conf$$.
file
543 mkdir conf$$.dir
2>/dev
/null
545 if (echo >conf$$.
file) 2>/dev
/null
; then
546 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
554 elif ln conf$$.
file conf$$
2>/dev
/null
; then
562 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
563 rmdir conf$$.dir
2>/dev
/null
565 if mkdir
-p .
2>/dev
/null
; then
566 as_mkdir_p
='mkdir -p "$as_dir"'
568 test -d .
/-p && rmdir .
/-p
573 as_executable_p
=as_fn_executable_p
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp
="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp
="eval sed '$as_sed_cpp'" # deprecated
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh
="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh
="eval sed '$as_sed_sh'" # deprecated
584 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
595 ac_default_prefix
=/usr
/local
597 ac_config_libobj_dir
=.
604 # Identity of this package.
606 PACKAGE_TARNAME
='smenu'
607 PACKAGE_VERSION
='1.4.0'
608 PACKAGE_STRING
='smenu 1.4.0'
609 PACKAGE_BUGREPORT
='p.gen.progs@gmail.com'
612 ac_unique_file
="smenu.c"
613 # Factoring default headers for most tests.
614 ac_includes_default
="\
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
645 ac_subst_vars
='am__EXEEXT_FALSE
691 INSTALL_STRIP_PROGRAM
734 program_transform_name
748 enable_option_checking
750 enable_dependency_tracking
752 ac_precious_vars
='build_alias
762 # Initialize some variables set by options.
764 ac_init_version
=false
765 ac_unrecognized_opts
=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name
=s
,x
,x
,
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir
='${exec_prefix}/bin'
791 sbindir
='${exec_prefix}/sbin'
792 libexecdir
='${exec_prefix}/libexec'
793 datarootdir
='${prefix}/share'
794 datadir
='${datarootdir}'
795 sysconfdir
='${prefix}/etc'
796 sharedstatedir
='${prefix}/com'
797 localstatedir
='${prefix}/var'
798 runstatedir
='${localstatedir}/run'
799 includedir
='${prefix}/include'
800 oldincludedir
='/usr/include'
801 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir
='${datarootdir}/info'
807 libdir
='${exec_prefix}/lib'
808 localedir
='${datarootdir}/locale'
809 mandir
='${datarootdir}/man'
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\
$ac_option
823 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 case $ac_dashdash$ac_option in
832 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
834 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
837 -build |
--build |
--buil |
--bui |
--bu)
838 ac_prev
=build_alias
;;
839 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
840 build_alias
=$ac_optarg ;;
842 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
843 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
844 ac_prev
=cache_file
;;
845 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
846 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
847 cache_file
=$ac_optarg ;;
850 cache_file
=config.cache
;;
852 -datadir |
--datadir |
--datadi |
--datad)
854 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
855 datadir
=$ac_optarg ;;
857 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
858 |
--dataroo |
--dataro |
--datar)
859 ac_prev
=datarootdir
;;
860 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
861 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
862 datarootdir
=$ac_optarg ;;
864 -disable-* |
--disable-*)
865 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
868 as_fn_error $?
"invalid feature name: '$ac_useropt'"
869 ac_useropt_orig
=$ac_useropt
870 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
875 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep
=', ';;
878 eval enable_
$ac_useropt=no
;;
880 -docdir |
--docdir |
--docdi |
--doc |
--do)
882 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
885 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
887 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
890 -enable-* |
--enable-*)
891 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
894 as_fn_error $?
"invalid feature name: '$ac_useropt'"
895 ac_useropt_orig
=$ac_useropt
896 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
901 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep
=', ';;
904 eval enable_
$ac_useropt=\
$ac_optarg ;;
906 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
907 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
908 |
--exec |
--exe |
--ex)
909 ac_prev
=exec_prefix
;;
910 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
911 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
912 |
--exec=* |
--exe=* |
--ex=*)
913 exec_prefix
=$ac_optarg ;;
915 -gas |
--gas |
--ga |
--g)
916 # Obsolete; use --with-gas.
919 -help |
--help |
--hel |
--he |
-h)
921 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
922 ac_init_help
=recursive
;;
923 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
924 ac_init_help
=short
;;
926 -host |
--host |
--hos |
--ho)
927 ac_prev
=host_alias
;;
928 -host=* |
--host=* |
--hos=* |
--ho=*)
929 host_alias
=$ac_optarg ;;
931 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
933 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
935 htmldir
=$ac_optarg ;;
937 -includedir |
--includedir |
--includedi |
--included |
--include \
938 |
--includ |
--inclu |
--incl |
--inc)
939 ac_prev
=includedir
;;
940 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
941 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
942 includedir
=$ac_optarg ;;
944 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
946 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
947 infodir
=$ac_optarg ;;
949 -libdir |
--libdir |
--libdi |
--libd)
951 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
954 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
955 |
--libexe |
--libex |
--libe)
956 ac_prev
=libexecdir
;;
957 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
958 |
--libexe=* |
--libex=* |
--libe=*)
959 libexecdir
=$ac_optarg ;;
961 -localedir |
--localedir |
--localedi |
--localed |
--locale)
963 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
964 localedir
=$ac_optarg ;;
966 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
967 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
968 ac_prev
=localstatedir
;;
969 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
970 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
971 localstatedir
=$ac_optarg ;;
973 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
975 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
979 # Obsolete; use --without-fp.
982 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
983 |
--no-cr |
--no-c |
-n)
986 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
987 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
990 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
991 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
992 |
--oldin |
--oldi |
--old |
--ol |
--o)
993 ac_prev
=oldincludedir
;;
994 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
995 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
996 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
997 oldincludedir
=$ac_optarg ;;
999 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1001 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1002 prefix
=$ac_optarg ;;
1004 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1005 |
--program-pre |
--program-pr |
--program-p)
1006 ac_prev
=program_prefix
;;
1007 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1008 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1009 program_prefix
=$ac_optarg ;;
1011 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1012 |
--program-suf |
--program-su |
--program-s)
1013 ac_prev
=program_suffix
;;
1014 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1015 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1016 program_suffix
=$ac_optarg ;;
1018 -program-transform-name |
--program-transform-name \
1019 |
--program-transform-nam |
--program-transform-na \
1020 |
--program-transform-n |
--program-transform- \
1021 |
--program-transform |
--program-transfor \
1022 |
--program-transfo |
--program-transf \
1023 |
--program-trans |
--program-tran \
1024 |
--progr-tra |
--program-tr |
--program-t)
1025 ac_prev
=program_transform_name
;;
1026 -program-transform-name=* |
--program-transform-name=* \
1027 |
--program-transform-nam=* |
--program-transform-na=* \
1028 |
--program-transform-n=* |
--program-transform-=* \
1029 |
--program-transform=* |
--program-transfor=* \
1030 |
--program-transfo=* |
--program-transf=* \
1031 |
--program-trans=* |
--program-tran=* \
1032 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1033 program_transform_name
=$ac_optarg ;;
1035 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1037 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1038 pdfdir
=$ac_optarg ;;
1040 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1042 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1045 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1046 |
-silent |
--silent |
--silen |
--sile |
--sil)
1049 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1050 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1051 |
--run |
--ru |
--r)
1052 ac_prev
=runstatedir
;;
1053 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1054 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1055 |
--run=* |
--ru=* |
--r=*)
1056 runstatedir
=$ac_optarg ;;
1058 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1060 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1062 sbindir
=$ac_optarg ;;
1064 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1065 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1066 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1068 ac_prev
=sharedstatedir
;;
1069 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1070 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1071 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1073 sharedstatedir
=$ac_optarg ;;
1075 -site |
--site |
--sit)
1077 -site=* |
--site=* |
--sit=*)
1080 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1082 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1083 srcdir
=$ac_optarg ;;
1085 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1086 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1087 ac_prev
=sysconfdir
;;
1088 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1089 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1090 sysconfdir
=$ac_optarg ;;
1092 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1093 ac_prev
=target_alias
;;
1094 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1095 target_alias
=$ac_optarg ;;
1097 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1100 -version |
--version |
--versio |
--versi |
--vers |
-V)
1101 ac_init_version
=: ;;
1104 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error $?
"invalid package name: '$ac_useropt'"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval with_
$ac_useropt=\
$ac_optarg ;;
1119 -without-* |
--without-*)
1120 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1123 as_fn_error $?
"invalid package name: '$ac_useropt'"
1124 ac_useropt_orig
=$ac_useropt
1125 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep
=', ';;
1133 eval with_
$ac_useropt=no
;;
1136 # Obsolete; use --with-x.
1139 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1140 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1141 ac_prev
=x_includes
;;
1142 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1143 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1144 x_includes
=$ac_optarg ;;
1146 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1147 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1148 ac_prev
=x_libraries
;;
1149 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1150 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1151 x_libraries
=$ac_optarg ;;
1153 -*) as_fn_error $?
"unrecognized option: '$ac_option'
1154 Try '$0 --help' for more information"
1158 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1162 as_fn_error $?
"invalid variable name: '$ac_envvar'" ;;
1164 eval $ac_envvar=\
$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1171 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1178 if test -n "$ac_prev"; then
1179 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error $?
"missing argument to $ac_option"
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1186 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1187 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 # Check all directory arguments for consistency.
1192 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir runstatedir
1197 eval ac_val
=\$
$ac_var
1198 # Remove trailing slashes.
1201 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\
$ac_val;;
1204 # Be sure to have absolute directory names.
1206 [\\/$
]* | ?
:[\\/]* ) continue;;
1207 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1209 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1212 # There might be people who depend on the old broken behavior: '$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1217 target
=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x
; then
1221 if test "x$build_alias" = x
; then
1222 cross_compiling
=maybe
1223 elif test "x$build_alias" != "x$host_alias"; then
1229 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1231 test "$silent" = yes && exec 6>/dev
/null
1234 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di
=`ls -di .` &&
1236 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error $?
"working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error $?
"pwd does not report name of working directory"
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted
=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir
=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 printf "%s\n" X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1274 ac_srcdir_defaulted
=no
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1278 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1280 ac_msg
="sources are in $srcdir, but 'cd $srcdir' does not work"
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1292 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 for ac_var
in $ac_precious_vars; do
1295 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1297 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1302 # Report the --help message.
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1308 'configure' configures smenu 1.4.0 to adapt to many kinds of systems.
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1315 Defaults for the options are specified in brackets.
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print 'checking ...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for '--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or '..']
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 By default, 'make install' will install all the files in
1335 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than '$ac_default_prefix' using '--prefix',
1337 for instance '--prefix=\$HOME'.
1339 For better control, use the options below.
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/smenu]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1367 --program-prefix=PREFIX prepend PREFIX to installed program names
1368 --program-suffix=SUFFIX append SUFFIX to installed program names
1369 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1372 --build=BUILD configure
for building on BUILD
[guessed
]
1373 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive
) echo "Configuration of smenu 1.4.0:";;
1384 --disable-option-checking ignore unrecognized
--enable/--with options
1385 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1386 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1387 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1388 --disable-silent-rules verbose build output
(undo
: "make V=0")
1389 --enable-dependency-tracking
1390 do not reject slow dependency extractors
1391 --disable-dependency-tracking
1392 speeds up one-time build
1394 Some influential environment variables
:
1395 CC C compiler
command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1398 nonstandard directory
<lib dir
>
1399 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1400 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1401 you have headers
in a nonstandard directory
<include dir
>
1403 Use these variables to override the choices made by
'configure' or to
help
1404 it to
find libraries and programs with nonstandard names
/locations.
1406 Report bugs to
<p.gen.progs@gmail.com
>.
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1420 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1422 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1427 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1430 ac_abs_top_builddir
=$ac_pwd
1431 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir
=$ac_top_build_prefix
1436 .
) # We are building in place.
1438 ac_top_srcdir
=$ac_top_builddir_sub
1439 ac_abs_top_srcdir
=$ac_pwd ;;
1440 [\\/]* | ?
:[\\/]* ) # Absolute name.
1441 ac_srcdir
=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir
=$srcdir
1443 ac_abs_top_srcdir
=$srcdir ;;
1445 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1449 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1452 # Check for configure.gnu first; this name is used for a wrapper for
1453 # Metaconfig's "Configure" on case-insensitive file systems.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1461 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1470 smenu configure
1.4.0
1471 generated by GNU Autoconf
2.72
1473 Copyright
(C
) 2023 Free Software Foundation
, Inc.
1474 This configure
script is free software
; the Free Software Foundation
1475 gives unlimited permission to copy
, distribute and modify it.
1480 ## ------------------------ ##
1481 ## Autoconf initialization. ##
1482 ## ------------------------ ##
1484 # ac_fn_c_try_compile LINENO
1485 # --------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_compile
()
1489 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1490 rm -f conftest.
$ac_objext conftest.beam
1491 if { { ac_try
="$ac_compile"
1493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 printf "%s\n" "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.$ac_objext
1513 e) printf "%s\n" "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1522 } # ac_fn_c_try_compile
1524 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1525 # -------------------------------------------------------
1526 # Tests whether HEADER exists and can be compiled using the include files in
1527 # INCLUDES, setting the cache variable VAR accordingly.
1528 ac_fn_c_check_header_compile ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1532 printf %s "checking for $2... " >&6; }
1533 if eval test \${$3+y}
1535 printf %s "(cached) " >&6
1537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538 /* end confdefs.h. */
1542 if ac_fn_c_try_compile "$LINENO"
1549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1554 printf "%s\n" "$ac_res" >&6; }
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 } # ac_fn_c_check_header_compile
1559 # ac_fn_c_try_link LINENO
1560 # -----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1569 *) ac_try_echo
=$ac_try;;
1571 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 printf "%s\n" "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1575 if test -s conftest.err
; then
1576 grep -v '^ *+' conftest.err
>conftest.er1
1577 cat conftest.er1
>&5
1578 mv -f conftest.er1 conftest.err
1580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest
$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 test -x conftest
$ac_exeext
1591 e
) printf "%s\n" "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.
$ac_ext >&5
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status
$ac_retval
1605 } # ac_fn_c_try_link
1607 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1608 # -------------------------------------------
1609 # Tests whether TYPE exists after having included INCLUDES, setting cache
1610 # variable VAR accordingly.
1611 ac_fn_c_check_type
()
1613 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 printf %s
"checking for $2... " >&6; }
1616 if eval test \
${$3+y}
1618 printf %s
"(cached) " >&6
1621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1633 if ac_fn_c_try_compile
"$LINENO"
1635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1647 if ac_fn_c_try_compile
"$LINENO"
1654 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1656 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
1660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 printf "%s\n" "$ac_res" >&6; }
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 } # ac_fn_c_check_type
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1669 # executables *can* be run.
1672 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1673 if { { ac_try
="$ac_link"
1675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 printf "%s\n" "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1686 *) ac_try_echo
=$ac_try;;
1688 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 printf "%s\n" "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }
1697 e
) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1698 printf "%s\n" "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.
$ac_ext >&5
1701 ac_retval
=$ac_status ;;
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status
$ac_retval
1710 # ac_fn_c_check_func LINENO FUNC VAR
1711 # ----------------------------------
1712 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1713 ac_fn_c_check_func
()
1715 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 printf %s
"checking for $2... " >&6; }
1718 if eval test \
${$3+y}
1720 printf %s
"(cached) " >&6
1722 e
) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1726 #define $2 innocuous_$2
1728 /* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char $2 (void); below. */
1734 /* Override any GCC internal prototype to avoid an error.
1735 Use char because int might match the return type of a GCC
1736 builtin and then its argument prototype would still apply. */
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined __stub_$2 || defined __stub___$2
1756 if ac_fn_c_try_link
"$LINENO"
1763 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
1764 conftest
$ac_exeext conftest.
$ac_ext ;;
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 printf "%s\n" "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_func
1773 ac_configure_args_raw
=
1778 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1780 as_fn_append ac_configure_args_raw
" '$ac_arg'"
1783 case $ac_configure_args_raw in
1787 ac_unsafe_z
='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1788 ac_unsafe_a
="$ac_unsafe_z#~"
1789 ac_safe_unquote
="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1790 ac_configure_args_raw
=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1793 cat >config.log
<<_ACEOF
1794 This file contains any messages produced by compilers while
1795 running configure, to aid debugging if configure makes a mistake.
1797 It was created by smenu $as_me 1.4.0, which was
1798 generated by GNU Autoconf 2.72. Invocation command line was
1800 $ $0$ac_configure_args_raw
1810 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1811 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1812 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1813 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1814 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1816 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1817 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1819 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1820 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1821 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1822 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1823 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1824 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1825 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1833 case $as_dir in #(((
1836 *) as_dir
=$as_dir/ ;;
1838 printf "%s\n" "PATH: $as_dir"
1854 # Keep a trace of the command line.
1855 # Strip out --no-create and --no-recursion so they do not pile up.
1856 # Strip out --silent because we don't want to record it for future runs.
1857 # Also quote any args containing shell meta-characters.
1858 # Make two passes to allow for proper duplicate-argument suppression.
1862 ac_must_keep_next
=false
1868 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1869 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1870 |
-silent |
--silent |
--silen |
--sile |
--sil)
1873 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1876 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1878 as_fn_append ac_configure_args1
" '$ac_arg'"
1879 if test $ac_must_keep_next = true
; then
1880 ac_must_keep_next
=false
# Got value, back to normal.
1883 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1884 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1885 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1886 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1887 case "$ac_configure_args0 " in
1888 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1891 -* ) ac_must_keep_next
=true
;;
1894 as_fn_append ac_configure_args
" '$ac_arg'"
1899 { ac_configure_args0
=; unset ac_configure_args0
;}
1900 { ac_configure_args1
=; unset ac_configure_args1
;}
1902 # When interrupted or exit'd, cleanup temporary files, and complete
1903 # config.log. We remove comments because anyway the quotes in there
1904 # would cause problems or look ugly.
1905 # WARNING: Use '\'' to represent an apostrophe within the trap.
1906 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1907 trap 'exit_status=$?
1910 # Save into config.log some information that might help in debugging.
1914 printf "%s\n" "## ---------------- ##
1915 ## Cache variables. ##
1916 ## ---------------- ##"
1918 # The following way of writing the cache mishandles newlines in values,
1920 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1921 eval ac_val=\$$ac_var
1925 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1926 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1929 _ | IFS | as_nl) ;; #(
1930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1931 *) { eval $ac_var=; unset $ac_var;} ;;
1936 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1937 *${as_nl}ac_space=\ *)
1939 "s/'\''/'\''\\\\'\'''\''/g;
1940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1950 printf "%s\n" "## ----------------- ##
1951 ## Output variables. ##
1952 ## ----------------- ##"
1954 for ac_var in $ac_subst_vars
1956 eval ac_val=\$$ac_var
1958 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960 printf "%s\n" "$ac_var='\''$ac_val'\''"
1964 if test -n "$ac_subst_files"; then
1965 printf "%s\n" "## ------------------- ##
1966 ## File substitutions. ##
1967 ## ------------------- ##"
1969 for ac_var
in $ac_subst_files
1971 eval ac_val
=\$
$ac_var
1973 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 printf "%s\n" "$ac_var='\''$ac_val'\''"
1980 if test -s confdefs.h; then
1981 printf "%s\n" "## ----------- ##
1988 test "$ac_signal" != 0 &&
1989 printf "%s\n" "$as_me: caught signal $ac_signal"
1990 printf "%s\n" "$as_me: exit $exit_status"
1992 rm -f core *.core core.conftest.* &&
1993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1996 for ac_signal
in 1 2 13 15; do
1997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2002 rm -f -r conftest
* confdefs.h
2004 printf "%s\n" "/* confdefs.h */" > confdefs.h
2006 # Predefined preprocessor variables.
2008 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2010 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2012 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2014 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2016 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2018 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2021 # Let the site file select an alternate cache file if it wants to.
2022 # Prefer an explicitly selected file to automatically selected ones.
2023 if test -n "$CONFIG_SITE"; then
2024 ac_site_files
="$CONFIG_SITE"
2025 elif test "x$prefix" != xNONE
; then
2026 ac_site_files
="$prefix/share/config.site $prefix/etc/config.site"
2028 ac_site_files
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2031 for ac_site_file
in $ac_site_files
2033 case $ac_site_file in #(
2037 ac_site_file
=.
/$ac_site_file ;;
2039 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2041 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2042 sed 's/^/| /' "$ac_site_file" >&5
2044 ||
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2045 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2046 as_fn_error $?
"failed to load site script $ac_site_file
2047 See 'config.log' for more details" "$LINENO" 5; }
2051 if test -r "$cache_file"; then
2052 # Some versions of bash will fail to source /dev/null (special files
2053 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2054 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2058 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2059 *) .
"./$cache_file";;
2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2068 as_fn_append ac_header_c_list
" stdio.h stdio_h HAVE_STDIO_H"
2069 # Test code for whether the C compiler supports C89 (global declarations)
2070 ac_c_conftest_c89_globals
='
2071 /* Does the compiler advertise C89 conformance?
2072 Do not test the value of __STDC__, because some compilers set it to 0
2073 while being otherwise adequately conformant. */
2074 #if !defined __STDC__
2075 # error "Compiler does not advertise C89 conformance"
2081 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2082 struct buf { int x; };
2083 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2084 static char *e (char **p, int i)
2088 static char *f (char * (*g) (char **, int), char **p, ...)
2093 s = g (p, va_arg (v,int));
2098 /* C89 style stringification. */
2099 #define noexpand_stringify(a) #a
2100 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2102 /* C89 style token pasting. Exercises some of the corner cases that
2103 e.g. old MSVC gets wrong, but not very hard. */
2104 #define noexpand_concat(a,b) a##b
2105 #define expand_concat(a,b) noexpand_concat(a,b)
2110 int *pvA = &expand_concat(v,aye);
2111 int *pvbee = &noexpand_concat(v,bee);
2113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2114 function prototypes and stuff, but not \xHH hex character constants.
2115 These do not provoke an error unfortunately, instead are silently treated
2116 as an "x". The following induces an error, until -std is added to get
2117 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2118 array size at least. It is necessary to write \x00 == 0 to get something
2119 that is true only with -std. */
2120 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2123 inside strings and character constants. */
2124 #define FOO(x) '\''x'\''
2125 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2127 int test (int i, double x);
2128 struct s1 {int (*f) (int a);};
2129 struct s2 {int (*f) (double a);};
2130 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2133 # Test code for whether the C compiler supports C89 (body of main).
2134 ac_c_conftest_c89_main
='
2135 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2138 # Test code for whether the C compiler supports C99 (global declarations)
2139 ac_c_conftest_c99_globals
='
2140 /* Does the compiler advertise C99 conformance? */
2141 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2142 # error "Compiler does not advertise C99 conformance"
2145 // See if C++-style comments work.
2147 #include <stdbool.h>
2148 extern int puts (const char *);
2149 extern int printf (const char *, ...);
2150 extern int dprintf (int, const char *, ...);
2151 extern void *malloc (size_t);
2152 extern void free (void *);
2154 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2155 // dprintf is used instead of fprintf to avoid needing to declare
2157 #define debug(...) dprintf (2, __VA_ARGS__)
2158 #define showlist(...) puts (#__VA_ARGS__)
2159 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2161 test_varargs_macros (void)
2166 debug ("X = %d\n", x);
2167 showlist (The first, second, and third items.);
2168 report (x>y, "x is %d but y is %d", x, y);
2171 // Check long long types.
2172 #define BIG64 18446744073709551615ull
2173 #define BIG32 4294967295ul
2174 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2176 #error "your preprocessor is broken"
2180 #error "your preprocessor is broken"
2182 static long long int bignum = -9223372036854775807LL;
2183 static unsigned long long int ubignum = BIG64;
2185 struct incomplete_array
2193 const wchar_t *name;
2197 typedef const char *ccp;
2200 test_restrict (ccp restrict text)
2202 // Iterate through items via the restricted pointer.
2203 // Also check for declarations in for loops.
2204 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2209 // Check varargs and va_copy.
2211 test_varargs (const char *format, ...)
2214 va_start (args, format);
2216 va_copy (args_copy, args);
2218 const char *str = "";
2226 case '\''s'\'': // string
2227 str = va_arg (args_copy, const char *);
2229 case '\''d'\'': // int
2230 number = va_arg (args_copy, int);
2232 case '\''f'\'': // float
2233 fnumber = va_arg (args_copy, double);
2242 return *str && number && fnumber;
2246 # Test code for whether the C compiler supports C99 (body of main).
2247 ac_c_conftest_c99_main
='
2249 _Bool success = false;
2250 success |= (argc != 0);
2253 if (test_restrict ("String literal") == 0)
2255 char *restrict newvar = "Another string";
2258 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2259 test_varargs_macros ();
2261 // Check flexible array members.
2262 struct incomplete_array *ia =
2263 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2265 for (int i = 0; i < ia->datasize; ++i)
2266 ia->data[i] = i * 1.234;
2267 // Work around memory leak warnings.
2270 // Check named initializers.
2271 struct named_init ni = {
2273 .name = L"Test wide string",
2274 .average = 543.34343,
2279 int dynamic_array[ni.number];
2280 dynamic_array[0] = argv[0][0];
2281 dynamic_array[ni.number - 1] = 543;
2283 // work around unused variable warnings
2284 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2285 || dynamic_array[ni.number - 1] != 543);
2288 # Test code for whether the C compiler supports C11 (global declarations)
2289 ac_c_conftest_c11_globals
='
2290 /* Does the compiler advertise C11 conformance? */
2291 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2292 # error "Compiler does not advertise C11 conformance"
2296 char _Alignas (double) aligned_as_double;
2297 char _Alignas (0) no_special_alignment;
2298 extern char aligned_as_int;
2299 char _Alignas (0) _Alignas (int) aligned_as_int;
2304 int_alignment = _Alignof (int),
2305 int_array_alignment = _Alignof (int[100]),
2306 char_alignment = _Alignof (char)
2308 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2311 int _Noreturn does_not_return (void) { for (;;) continue; }
2313 // Check _Static_assert.
2314 struct test_static_assert
2317 _Static_assert (sizeof (int) <= sizeof (long int),
2318 "_Static_assert does not work in struct");
2322 // Check UTF-8 literals.
2323 #define u8 syntax error!
2324 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2326 // Check duplicate typedefs.
2327 typedef long *long_ptr;
2328 typedef long int *long_ptr;
2329 typedef long_ptr long_ptr;
2331 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2335 struct { int i; int j; };
2336 struct { int k; long int l; } w;
2342 # Test code for whether the C compiler supports C11 (body of main).
2343 ac_c_conftest_c11_main
='
2344 _Static_assert ((offsetof (struct anonymous, i)
2345 == offsetof (struct anonymous, w.k)),
2346 "Anonymous union alignment botch");
2352 # Test code for whether the C compiler supports C11 (complete).
2353 ac_c_conftest_c11_program
="${ac_c_conftest_c89_globals}
2354 ${ac_c_conftest_c99_globals}
2355 ${ac_c_conftest_c11_globals}
2358 main (int argc, char **argv)
2361 ${ac_c_conftest_c89_main}
2362 ${ac_c_conftest_c99_main}
2363 ${ac_c_conftest_c11_main}
2368 # Test code for whether the C compiler supports C99 (complete).
2369 ac_c_conftest_c99_program
="${ac_c_conftest_c89_globals}
2370 ${ac_c_conftest_c99_globals}
2373 main (int argc, char **argv)
2376 ${ac_c_conftest_c89_main}
2377 ${ac_c_conftest_c99_main}
2382 # Test code for whether the C compiler supports C89 (complete).
2383 ac_c_conftest_c89_program
="${ac_c_conftest_c89_globals}
2386 main (int argc, char **argv)
2389 ${ac_c_conftest_c89_main}
2394 as_fn_append ac_header_c_list
" stdlib.h stdlib_h HAVE_STDLIB_H"
2395 as_fn_append ac_header_c_list
" string.h string_h HAVE_STRING_H"
2396 as_fn_append ac_header_c_list
" inttypes.h inttypes_h HAVE_INTTYPES_H"
2397 as_fn_append ac_header_c_list
" stdint.h stdint_h HAVE_STDINT_H"
2398 as_fn_append ac_header_c_list
" strings.h strings_h HAVE_STRINGS_H"
2399 as_fn_append ac_header_c_list
" sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2400 as_fn_append ac_header_c_list
" sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2401 as_fn_append ac_header_c_list
" unistd.h unistd_h HAVE_UNISTD_H"
2402 as_fn_append ac_header_c_list
" wchar.h wchar_h HAVE_WCHAR_H"
2403 as_fn_append ac_header_c_list
" minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2405 # Auxiliary files required by this configure script.
2406 ac_aux_files
="config.guess config.sub compile missing install-sh"
2408 # Locations in which to look for auxiliary files.
2409 ac_aux_dir_candidates
="${srcdir}/build-aux"
2411 # Search for a directory containing all of the required auxiliary files,
2412 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2413 # If we don't find one directory that contains all the files we need,
2414 # we report the set of missing files from the *first* directory in
2415 # $ac_aux_dir_candidates and give up.
2416 ac_missing_aux_files
=""
2417 ac_first_candidate
=:
2418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2421 for as_dir
in $ac_aux_dir_candidates
2424 case $as_dir in #(((
2427 *) as_dir
=$as_dir/ ;;
2431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2432 ac_aux_dir_found
=yes
2434 for ac_aux
in $ac_aux_files
2436 # As a special case, if "install-sh" is required, that requirement
2437 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2438 # and $ac_install_sh is set appropriately for whichever one is found.
2439 if test x
"$ac_aux" = x
"install-sh"
2441 if test -f "${as_dir}install-sh"; then
2442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2443 ac_install_sh
="${as_dir}install-sh -c"
2444 elif test -f "${as_dir}install.sh"; then
2445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2446 ac_install_sh
="${as_dir}install.sh -c"
2447 elif test -f "${as_dir}shtool"; then
2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2449 ac_install_sh
="${as_dir}shtool install -c"
2452 if $ac_first_candidate; then
2453 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2459 if test -f "${as_dir}${ac_aux}"; then
2460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2463 if $ac_first_candidate; then
2464 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2471 if test "$ac_aux_dir_found" = yes; then
2472 ac_aux_dir
="$as_dir"
2475 ac_first_candidate
=false
2484 e
) as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2489 # These three variables are undocumented and unsupported,
2490 # and are intended to be withdrawn in a future Autoconf release.
2491 # They can cause serious problems if a builder's source tree is in a directory
2492 # whose full name contains unusual characters.
2493 if test -f "${ac_aux_dir}config.guess"; then
2494 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2496 if test -f "${ac_aux_dir}config.sub"; then
2497 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2499 if test -f "$ac_aux_dir/configure"; then
2500 ac_configure
="$SHELL ${ac_aux_dir}configure"
2503 # Check that the precious variables saved in the cache have kept the same
2505 ac_cache_corrupted
=false
2506 for ac_var
in $ac_precious_vars; do
2507 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2508 eval ac_new_set
=\
$ac_env_${ac_var}_set
2509 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2510 eval ac_new_val
=\
$ac_env_${ac_var}_value
2511 case $ac_old_set,$ac_new_set in
2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2514 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2515 ac_cache_corrupted
=: ;;
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2518 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2519 ac_cache_corrupted
=: ;;
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w
=`echo x $ac_old_val`
2525 ac_new_val_w
=`echo x $ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2528 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2529 ac_cache_corrupted
=:
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2532 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\
$ac_old_val
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2536 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2538 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2544 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545 *) ac_arg
=$ac_var=$ac_new_val ;;
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2549 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2553 if $ac_cache_corrupted; then
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2555 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2558 as_fn_error $?
"run '${MAKE-make} distclean' and/or 'rm $cache_file'
2559 and start over" "$LINENO" 5
2561 ## -------------------- ##
2562 ## Main body of script. ##
2563 ## -------------------- ##
2566 ac_cpp
='$CPP $CPPFLAGS'
2567 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 ac_config_headers
="$ac_config_headers config.h"
2576 am__api_version
='1.16'
2580 # Find a good install program. We prefer a C program (faster),
2581 # so one script is as good as another. But avoid the broken or
2582 # incompatible versions:
2583 # SysV /etc/install, /usr/sbin/install
2584 # SunOS /usr/etc/install
2585 # IRIX /sbin/install
2587 # AmigaOS /C/install, which installs bootblocks on floppy discs
2588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2591 # OS/2's system install, which has a completely different semantic
2592 # ./install, which can be erroneously created by make from ./install.sh.
2593 # Reject install programs that cannot install multiple files.
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2595 printf %s
"checking for a BSD-compatible install... " >&6; }
2596 if test -z "$INSTALL"; then
2597 if test ${ac_cv_path_install+y}
2599 printf %s
"(cached) " >&6
2601 e
) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2605 case $as_dir in #(((
2608 *) as_dir
=$as_dir/ ;;
2610 # Account for fact that we put trailing slashes in our PATH walk.
2613 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2614 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2617 # OSF1 and SCO ODT 3.0 have their own names for install.
2618 # Don't use installbsd from OSF since it installs stuff as root
2620 for ac_prog
in ginstall scoinst
install; do
2621 for ac_exec_ext
in '' $ac_executable_extensions; do
2622 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
2623 if test $ac_prog = install &&
2624 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2625 # AIX install. It has an incompatible calling convention.
2627 elif test $ac_prog = install &&
2628 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2629 # program-specific install script used by HP pwplus--don't use.
2632 rm -rf conftest.one conftest.two conftest.dir
2633 echo one
> conftest.one
2634 echo two
> conftest.two
2636 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
2637 test -s conftest.one
&& test -s conftest.two
&&
2638 test -s conftest.dir
/conftest.one
&&
2639 test -s conftest.dir
/conftest.two
2641 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
2654 rm -rf conftest.one conftest.two conftest.dir
2658 if test ${ac_cv_path_install+y}; then
2659 INSTALL
=$ac_cv_path_install
2661 # As a last resort, use the slow shell script. Don't cache a
2662 # value for INSTALL within a source directory, because that will
2663 # break other packages using the cache if that directory is
2664 # removed, or if the value is a relative name.
2665 INSTALL
=$ac_install_sh
2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2669 printf "%s\n" "$INSTALL" >&6; }
2671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2672 # It thinks the first close brace ends the variable substitution.
2673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2677 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2680 printf %s
"checking whether build environment is sane... " >&6; }
2681 # Reject unsafe characters in $srcdir or the absolute working directory
2682 # name. Accept space and tab only in the latter.
2686 *[\\\"\
#\$\&\'\`$am_lf]*)
2687 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2690 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2691 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2694 # Do 'set' in a subshell so we don't clobber the current shell's
2695 # arguments. Must try -L first in case configure is actually a
2696 # symlink; some systems play weird games with the mod time of symlinks
2697 # (eg FreeBSD returns the mod time of the symlink's containing
2701 for am_try
in 1 2; do
2702 echo "timestamp, slept: $am_has_slept" > conftest.
file
2703 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2704 if test "$*" = "X"; then
2706 set X
`ls -t "$srcdir/configure" conftest.file`
2708 if test "$*" != "X $srcdir/configure conftest.file" \
2709 && test "$*" != "X conftest.file $srcdir/configure"; then
2711 # If neither matched, then we have a broken ls. This can happen
2712 # if, for instance, CONFIG_SHELL is bash and it inherits a
2713 # broken ls alias from the environment. This has actually
2714 # happened. Such a system could not be considered "sane".
2715 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2716 alias in your environment" "$LINENO" 5
2718 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2725 test "$2" = conftest.
file
2731 as_fn_error $?
"newly created file is older than distributed files!
2732 Check your system clock" "$LINENO" 5
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2735 printf "%s\n" "yes" >&6; }
2736 # If we didn't sleep, we still need to ensure time stamps of config.status and
2737 # generated files are strictly newer.
2739 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2746 test "$program_prefix" != NONE
&&
2747 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2748 # Use a double $ so make ignores it.
2749 test "$program_suffix" != NONE
&&
2750 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2751 # Double any \ or $.
2752 # By default was 's,x,x', remove it if useless.
2753 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2754 program_transform_name
=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2757 # Expand $ac_aux_dir to an absolute path.
2758 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2761 if test x
"${MISSING+set}" != xset
; then
2762 MISSING
="\${SHELL} '$am_aux_dir/missing'"
2764 # Use eval to expand $SHELL
2765 if eval "$MISSING --is-lightweight"; then
2766 am_missing_run
="$MISSING "
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2770 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2773 if test x
"${install_sh+set}" != xset
; then
2776 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2778 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2782 # Installed binaries are usually stripped using 'strip' when the user
2783 # run "make install-strip". However 'strip' might not be the right
2784 # tool to use in cross-compilation environments, therefore Automake
2785 # will honor the 'STRIP' environment variable to overrule this program.
2786 if test "$cross_compiling" != no
; then
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2789 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 printf %s
"checking for $ac_word... " >&6; }
2792 if test ${ac_cv_prog_STRIP+y}
2794 printf %s
"(cached) " >&6
2796 e
) if test -n "$STRIP"; then
2797 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2803 case $as_dir in #(((
2806 *) as_dir
=$as_dir/ ;;
2808 for ac_exec_ext
in '' $ac_executable_extensions; do
2809 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2821 STRIP
=$ac_cv_prog_STRIP
2822 if test -n "$STRIP"; then
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2824 printf "%s\n" "$STRIP" >&6; }
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 printf "%s\n" "no" >&6; }
2832 if test -z "$ac_cv_prog_STRIP"; then
2834 # Extract the first word of "strip", so it can be a program name with args.
2835 set dummy strip
; ac_word
=$2
2836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 printf %s
"checking for $ac_word... " >&6; }
2838 if test ${ac_cv_prog_ac_ct_STRIP+y}
2840 printf %s
"(cached) " >&6
2842 e
) if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2849 case $as_dir in #(((
2852 *) as_dir
=$as_dir/ ;;
2854 for ac_exec_ext
in '' $ac_executable_extensions; do
2855 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_STRIP
="strip"
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2867 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2868 if test -n "$ac_ct_STRIP"; then
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2870 printf "%s\n" "$ac_ct_STRIP" >&6; }
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 printf "%s\n" "no" >&6; }
2876 if test "x$ac_ct_STRIP" = x
; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned
=yes ;;
2888 STRIP
="$ac_cv_prog_STRIP"
2892 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2896 printf %s
"checking for a race-free mkdir -p... " >&6; }
2897 if test -z "$MKDIR_P"; then
2898 if test ${ac_cv_path_mkdir+y}
2900 printf %s
"(cached) " >&6
2902 e
) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2903 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2906 case $as_dir in #(((
2909 *) as_dir
=$as_dir/ ;;
2911 for ac_prog
in mkdir gmkdir
; do
2912 for ac_exec_ext
in '' $ac_executable_extensions; do
2913 as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext" ||
continue
2914 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2915 'mkdir ('*'coreutils) '* | \
2917 'mkdir (fileutils) '4.1*)
2918 ac_cv_path_mkdir
=$as_dir$ac_prog$ac_exec_ext
2929 test -d .
/--version && rmdir .
/--version
2930 if test ${ac_cv_path_mkdir+y}; then
2931 MKDIR_P
="$ac_cv_path_mkdir -p"
2933 # As a last resort, use plain mkdir -p,
2934 # in the hope it doesn't have the bugs of ancient mkdir.
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2939 printf "%s\n" "$MKDIR_P" >&6; }
2941 for ac_prog
in gawk mawk nawk
awk
2943 # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy
$ac_prog; ac_word
=$2
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 printf %s
"checking for $ac_word... " >&6; }
2947 if test ${ac_cv_prog_AWK+y}
2949 printf %s
"(cached) " >&6
2951 e
) if test -n "$AWK"; then
2952 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2958 case $as_dir in #(((
2961 *) as_dir
=$as_dir/ ;;
2963 for ac_exec_ext
in '' $ac_executable_extensions; do
2964 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_AWK
="$ac_prog"
2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2977 if test -n "$AWK"; then
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2979 printf "%s\n" "$AWK" >&6; }
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 printf "%s\n" "no" >&6; }
2986 test -n "$AWK" && break
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2990 printf %s
"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2992 ac_make
=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2993 if eval test \
${ac_cv_prog_make_${ac_make}_set+y}
2995 printf %s
"(cached) " >&6
2997 e
) cat >conftest.
make <<\_ACEOF
3000 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3002 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3005 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3007 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3009 rm -f conftest.
make ;;
3012 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014 printf "%s\n" "yes" >&6; }
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 printf "%s\n" "no" >&6; }
3019 SET_MAKE
="MAKE=${MAKE-make}"
3022 rm -rf .tst
2>/dev
/null
3023 mkdir .tst
2>/dev
/null
3024 if test -d .tst
; then
3029 rmdir .tst
2>/dev
/null
3031 # Check whether --enable-silent-rules was given.
3032 if test ${enable_silent_rules+y}
3034 enableval
=$enable_silent_rules;
3037 case $enable_silent_rules in # (((
3038 yes) AM_DEFAULT_VERBOSITY
=0;;
3039 no
) AM_DEFAULT_VERBOSITY
=1;;
3040 *) AM_DEFAULT_VERBOSITY
=1;;
3042 am_make
=${MAKE-make}
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3044 printf %s
"checking whether $am_make supports nested variables... " >&6; }
3045 if test ${am_cv_make_support_nested_variables+y}
3047 printf %s
"(cached) " >&6
3049 e
) if printf "%s\n" 'TRUE=$(BAR$(V))
3055 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3056 am_cv_make_support_nested_variables
=yes
3058 am_cv_make_support_nested_variables
=no
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3063 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3064 if test $am_cv_make_support_nested_variables = yes; then
3066 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3068 AM_V
=$AM_DEFAULT_VERBOSITY
3069 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3073 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3074 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3075 # is not polluted with repeated "-I."
3076 am__isrc
=' -I$(srcdir)'
3077 # test to see if srcdir already configured
3078 if test -f $srcdir/config.status
; then
3079 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3083 # test whether we have cygpath
3084 if test -z "$CYGPATH_W"; then
3085 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3086 CYGPATH_W
='cygpath -w'
3093 # Define the identity of the package.
3098 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3101 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3103 # Some tools Automake needs.
3105 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3108 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3111 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3114 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3117 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3119 # For better backward compatibility. To be removed once Automake 1.9.x
3120 # dies out for good. For more background, see:
3121 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3122 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3123 mkdir_p
='$(MKDIR_P)'
3125 # We need awk for the "check" target (and possibly the TAP driver). The
3126 # system "awk" is bad on some platforms.
3127 # Always define AMTAR for backward compatibility. Yes, it's still used
3128 # in the wild :-( We should find a proper way to deprecate it ...
3132 # We'll loop over all known methods to create a tar archive until one works.
3133 _am_tools
='gnutar pax cpio none'
3135 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3141 # Variables for tags utilities; see am/tags.am
3142 if test -z "$CTAGS"; then
3146 if test -z "$ETAGS"; then
3150 if test -z "$CSCOPE"; then
3156 # POSIX will say in a future version that running "rm -f" with no argument
3157 # is OK; and we want to be able to make that assumption in our Makefile
3158 # recipes. So use an aggressive probe to check that the usage we want is
3159 # actually supported "in the wild" to an acceptable degree.
3160 # See automake bug#10828.
3161 # To make any issue more visible, cause the running configure to be aborted
3162 # by default if the 'rm' program in use doesn't match our expectations; the
3163 # user can still override this though.
3164 if rm -f && rm -fr && rm -rf; then : OK
; else
3168 Your 'rm' program seems unable to run without file operands specified
3169 on the command line, even when the '-f' option is present. This is contrary
3170 to the behaviour of most rm programs out there, and not conforming with
3171 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3173 Please tell bug-automake@gnu.org about your system, including the value
3174 of your $PATH and any error possibly output before this message. This
3175 can help us improve future automake versions.
3178 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3179 echo 'Configuration will proceed anyway, since you have set the' >&2
3180 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3184 Aborting the configuration process, to ensure you take notice of the issue.
3186 You can download and install GNU coreutils to get an 'rm' implementation
3187 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3189 If you want to complete the configuration process using your problematic
3190 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3191 to "yes", and re-run configure.
3194 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3198 # Check whether --enable-silent-rules was given.
3199 if test ${enable_silent_rules+y}
3201 enableval
=$enable_silent_rules;
3204 case $enable_silent_rules in # (((
3205 yes) AM_DEFAULT_VERBOSITY
=0;;
3206 no
) AM_DEFAULT_VERBOSITY
=1;;
3207 *) AM_DEFAULT_VERBOSITY
=0;;
3209 am_make
=${MAKE-make}
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3211 printf %s
"checking whether $am_make supports nested variables... " >&6; }
3212 if test ${am_cv_make_support_nested_variables+y}
3214 printf %s
"(cached) " >&6
3216 e
) if printf "%s\n" 'TRUE=$(BAR$(V))
3222 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3223 am_cv_make_support_nested_variables
=yes
3225 am_cv_make_support_nested_variables
=no
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3230 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3231 if test $am_cv_make_support_nested_variables = yes; then
3233 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3235 AM_V
=$AM_DEFAULT_VERBOSITY
3236 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3241 # Checks for programs.
3251 DEPDIR="${am__leading_dot}deps"
3253 ac_config_commands="$ac_config_commands depfiles"
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3256 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3257 cat > confinc.mk << 'END
'
3259 @echo this is the am__doit target >confinc.out
3264 # BSD make does it like this.
3265 echo '.include
"confinc.mk" # ignored' > confmf.BSD
3266 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3267 echo 'include confinc.mk # ignored' > confmf.GNU
3269 for s
in GNU BSD
; do
3270 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3271 (${MAKE-make} -f confmf.
$s && cat confinc.out
) >&5 2>&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }
3275 case $?
:`cat confinc.out 2>/dev/null` in #(
3276 '0:this is the am__doit target') :
3279 am__include
='.include' am__quote
='"' ;; #(
3281 am__include
='include' am__quote
='' ;;
3286 if test "$am__include" != "#"; then
3287 _am_result
="yes ($s style)"
3291 rm -f confinc.
* confmf.
*
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3293 printf "%s\n" "${_am_result}" >&6; }
3295 # Check whether --enable-dependency-tracking was given.
3296 if test ${enable_dependency_tracking+y}
3298 enableval
=$enable_dependency_tracking;
3301 if test "x$enable_dependency_tracking" != xno
; then
3302 am_depcomp
="$ac_aux_dir/depcomp"
3306 if test "x$enable_dependency_tracking" != xno; then
3316 ac_cpp
='$CPP $CPPFLAGS'
3317 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3320 if test -n "$ac_tool_prefix"; then
3321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3322 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 printf %s
"checking for $ac_word... " >&6; }
3325 if test ${ac_cv_prog_CC+y}
3327 printf %s
"(cached) " >&6
3329 e
) if test -n "$CC"; then
3330 ac_cv_prog_CC
="$CC" # Let the user override the test.
3332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3336 case $as_dir in #(((
3339 *) as_dir
=$as_dir/ ;;
3341 for ac_exec_ext
in '' $ac_executable_extensions; do
3342 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3355 if test -n "$CC"; then
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 printf "%s\n" "$CC" >&6; }
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 printf "%s\n" "no" >&6; }
3365 if test -z "$ac_cv_prog_CC"; then
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc
; ac_word
=$2
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 printf %s
"checking for $ac_word... " >&6; }
3371 if test ${ac_cv_prog_ac_ct_CC+y}
3373 printf %s
"(cached) " >&6
3375 e
) if test -n "$ac_ct_CC"; then
3376 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 case $as_dir in #(((
3385 *) as_dir
=$as_dir/ ;;
3387 for ac_exec_ext
in '' $ac_executable_extensions; do
3388 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_ac_ct_CC
="gcc"
3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3400 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 printf "%s\n" "$ac_ct_CC" >&6; }
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 printf "%s\n" "no" >&6; }
3409 if test "x$ac_ct_CC" = x
; then
3412 case $cross_compiling:$ac_tool_warned in
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned
=yes ;;
3424 if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3427 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 printf %s
"checking for $ac_word... " >&6; }
3430 if test ${ac_cv_prog_CC+y}
3432 printf %s
"(cached) " >&6
3434 e
) if test -n "$CC"; then
3435 ac_cv_prog_CC
="$CC" # Let the user override the test.
3437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3441 case $as_dir in #(((
3444 *) as_dir
=$as_dir/ ;;
3446 for ac_exec_ext
in '' $ac_executable_extensions; do
3447 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3460 if test -n "$CC"; then
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462 printf "%s\n" "$CC" >&6; }
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 printf "%s\n" "no" >&6; }
3471 if test -z "$CC"; then
3472 # Extract the first word of "cc", so it can be a program name with args.
3473 set dummy cc
; ac_word
=$2
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 printf %s
"checking for $ac_word... " >&6; }
3476 if test ${ac_cv_prog_CC+y}
3478 printf %s
"(cached) " >&6
3480 e
) if test -n "$CC"; then
3481 ac_cv_prog_CC
="$CC" # Let the user override the test.
3484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3488 case $as_dir in #(((
3491 *) as_dir
=$as_dir/ ;;
3493 for ac_exec_ext
in '' $ac_executable_extensions; do
3494 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3495 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3496 ac_prog_rejected
=yes
3500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3507 if test $ac_prog_rejected = yes; then
3508 # We found a bogon in the path, so make sure we never use it.
3509 set dummy
$ac_cv_prog_CC
3511 if test $# != 0; then
3512 # We chose a different compiler from the bogus one.
3513 # However, it has the same basename, so the bogon will be chosen
3514 # first if we set CC to just the basename; use the full file name.
3516 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3523 if test -n "$CC"; then
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 printf "%s\n" "$CC" >&6; }
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 printf "%s\n" "no" >&6; }
3533 if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 for ac_prog
in cl.exe
3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s
"checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_CC+y}
3543 printf %s
"(cached) " >&6
3545 e
) if test -n "$CC"; then
3546 ac_cv_prog_CC
="$CC" # Let the user override the test.
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 case $as_dir in #(((
3555 *) as_dir
=$as_dir/ ;;
3557 for ac_exec_ext
in '' $ac_executable_extensions; do
3558 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3571 if test -n "$CC"; then
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 printf "%s\n" "$CC" >&6; }
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 printf "%s\n" "no" >&6; }
3580 test -n "$CC" && break
3583 if test -z "$CC"; then
3585 for ac_prog
in cl.exe
3587 # Extract the first word of "$ac_prog", so it can be a program name with args.
3588 set dummy
$ac_prog; ac_word
=$2
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 printf %s
"checking for $ac_word... " >&6; }
3591 if test ${ac_cv_prog_ac_ct_CC+y}
3593 printf %s
"(cached) " >&6
3595 e
) if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 case $as_dir in #(((
3605 *) as_dir
=$as_dir/ ;;
3607 for ac_exec_ext
in '' $ac_executable_extensions; do
3608 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC
="$ac_prog"
3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3620 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3621 if test -n "$ac_ct_CC"; then
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3623 printf "%s\n" "$ac_ct_CC" >&6; }
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 printf "%s\n" "no" >&6; }
3630 test -n "$ac_ct_CC" && break
3633 if test "x$ac_ct_CC" = x
; then
3636 case $cross_compiling:$ac_tool_warned in
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3640 ac_tool_warned
=yes ;;
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3650 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 printf %s
"checking for $ac_word... " >&6; }
3653 if test ${ac_cv_prog_CC+y}
3655 printf %s
"(cached) " >&6
3657 e
) if test -n "$CC"; then
3658 ac_cv_prog_CC
="$CC" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 case $as_dir in #(((
3667 *) as_dir
=$as_dir/ ;;
3669 for ac_exec_ext
in '' $ac_executable_extensions; do
3670 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3671 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3683 if test -n "$CC"; then
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 printf "%s\n" "$CC" >&6; }
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 printf "%s\n" "no" >&6; }
3693 if test -z "$ac_cv_prog_CC"; then
3695 # Extract the first word of "clang", so it can be a program name with args.
3696 set dummy clang
; ac_word
=$2
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 printf %s
"checking for $ac_word... " >&6; }
3699 if test ${ac_cv_prog_ac_ct_CC+y}
3701 printf %s
"(cached) " >&6
3703 e
) if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3710 case $as_dir in #(((
3713 *) as_dir
=$as_dir/ ;;
3715 for ac_exec_ext
in '' $ac_executable_extensions; do
3716 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_CC
="clang"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3728 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3729 if test -n "$ac_ct_CC"; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3731 printf "%s\n" "$ac_ct_CC" >&6; }
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3737 if test "x$ac_ct_CC" = x
; then
3740 case $cross_compiling:$ac_tool_warned in
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned
=yes ;;
3755 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3756 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3757 as_fn_error $?
"no acceptable C compiler found in \$PATH
3758 See 'config.log' for more details" "$LINENO" 5; }
3760 # Provide some information about the compiler.
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3764 for ac_option
in --version -v -V -qversion -version; do
3765 { { ac_try
="$ac_compiler $ac_option >&5"
3767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 printf "%s\n" "$ac_try_echo"; } >&5
3772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3774 if test -s conftest.err; then
3776 ... rest of stderr output deleted ...
3777 10q' conftest.err >conftest.er1
3778 cat conftest.er1 >&5
3780 rm -f conftest.er1 conftest.err
3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 ac_clean_files_save=$ac_clean_files
3797 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3798 # Try to create an executable without -o first, disregard a.out.
3799 # It will help us diagnose broken compilers, and finding out an intuition
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3802 printf %s "checking whether the C compiler works... " >&6; }
3803 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3805 # The possible output files:
3806 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3809 for ac_file in $ac_files
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3818 if { { ac_try="$ac_link_default"
3820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3821 *) ac_try_echo
=$ac_try;;
3823 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 printf "%s\n" "$ac_try_echo"; } >&5
3825 (eval "$ac_link_default") 2>&5
3827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }
3830 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3831 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3832 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3833 # so that the user can short-circuit this test for compilers unknown to
3835 for ac_file
in $ac_files ''
3837 test -f "$ac_file" ||
continue
3839 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3842 # We found the default executable, but exeext='' is most
3846 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3848 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3850 # We set ac_cv_exeext here because the later test for it is not
3851 # safe: cross compilers may not add the suffix if given an '-o'
3852 # argument, so we may need to know it at that point already.
3853 # Even if this section looks crufty: it has the advantage of
3860 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3866 if test -z "$ac_file"
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 printf "%s\n" "no" >&6; }
3870 printf "%s\n" "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.
$ac_ext >&5
3873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3874 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3875 as_fn_error
77 "C compiler cannot create executables
3876 See 'config.log' for more details" "$LINENO" 5; }
3878 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 printf "%s\n" "yes" >&6; } ;;
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3883 printf %s
"checking for C compiler default output file name... " >&6; }
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3885 printf "%s\n" "$ac_file" >&6; }
3886 ac_exeext
=$ac_cv_exeext
3888 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3889 ac_clean_files
=$ac_clean_files_save
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3891 printf %s
"checking for suffix of executables... " >&6; }
3892 if { { ac_try
="$ac_link"
3894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 printf "%s\n" "$ac_try_echo"; } >&5
3899 (eval "$ac_link") 2>&5
3901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }
3904 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3905 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3906 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3908 for ac_file in conftest.exe conftest conftest.*; do
3909 test -f "$ac_file" || continue
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3918 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3919 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3921 See 'config.log' for more details" "$LINENO" 5; } ;;
3924 rm -f conftest conftest$ac_cv_exeext
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3926 printf "%s\n" "$ac_cv_exeext" >&6; }
3928 rm -f conftest.$ac_ext
3929 EXEEXT=$ac_cv_exeext
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3937 FILE *f = fopen ("conftest.out", "w");
3940 return ferror (f) || fclose (f) != 0;
3946 ac_clean_files="$ac_clean_files conftest.out"
3947 # Check that the compiler produces executables we can run. If not, either
3948 # the compiler is broken, or we cross compile.
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3950 printf %s "checking whether we are cross compiling... " >&6; }
3951 if test "$cross_compiling" != yes; then
3952 { { ac_try="$ac_link"
3954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3955 *) ac_try_echo
=$ac_try;;
3957 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 printf "%s\n" "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }
3963 if { ac_try
='./conftest$ac_cv_exeext'
3964 { { case "(($ac_try" in
3965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 printf "%s\n" "$ac_try_echo"; } >&5
3970 (eval "$ac_try") 2>&5
3972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; }; then
3976 if test "$cross_compiling" = maybe; then
3979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3980 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3981 as_fn_error 77 "cannot run C compiled programs.
3982 If you meant to cross compile, use '--host'.
3983 See 'config.log' for more details" "$LINENO" 5; }
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3988 printf "%s\n" "$cross_compiling" >&6; }
3990 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3991 conftest.o conftest.obj conftest.out
3992 ac_clean_files=$ac_clean_files_save
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3994 printf %s "checking for suffix of object files... " >&6; }
3995 if test ${ac_cv_objext+y}
3997 printf %s "(cached) " >&6
3999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4014 *) ac_try_echo
=$ac_try;;
4016 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 printf "%s\n" "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }
4023 for ac_file
in conftest.o conftest.obj conftest.
*; do
4024 test -f "$ac_file" ||
continue;
4026 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
4027 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
4032 e
) printf "%s\n" "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.
$ac_ext >&5
4035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4036 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4037 as_fn_error $?
"cannot compute suffix of object files: cannot compile
4038 See 'config.log' for more details" "$LINENO" 5; } ;;
4041 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext ;;
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4045 printf "%s\n" "$ac_cv_objext" >&6; }
4046 OBJEXT
=$ac_cv_objext
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4049 printf %s
"checking whether the compiler supports GNU C... " >&6; }
4050 if test ${ac_cv_c_compiler_gnu+y}
4052 printf %s
"(cached) " >&6
4054 e
) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4068 if ac_fn_c_try_compile
"$LINENO"
4072 e
) ac_compiler_gnu
=no
;;
4075 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4076 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4081 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4082 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4084 if test $ac_compiler_gnu = yes; then
4089 ac_test_CFLAGS
=${CFLAGS+y}
4090 ac_save_CFLAGS
=$CFLAGS
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4092 printf %s
"checking whether $CC accepts -g... " >&6; }
4093 if test ${ac_cv_prog_cc_g+y}
4095 printf %s
"(cached) " >&6
4097 e
) ac_save_c_werror_flag
=$ac_c_werror_flag
4098 ac_c_werror_flag
=yes
4101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_c_try_compile
"$LINENO"
4117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile
"$LINENO"
4132 e
) ac_c_werror_flag
=$ac_save_c_werror_flag
4134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4145 if ac_fn_c_try_compile
"$LINENO"
4149 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
4152 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
4155 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4156 ac_c_werror_flag
=$ac_save_c_werror_flag ;;
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4161 if test $ac_test_CFLAGS; then
4162 CFLAGS
=$ac_save_CFLAGS
4163 elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4170 if test "$GCC" = yes; then
4177 if test x
$ac_prog_cc_stdc = xno
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4180 printf %s
"checking for $CC option to enable C11 features... " >&6; }
4181 if test ${ac_cv_prog_cc_c11+y}
4183 printf %s
"(cached) " >&6
4185 e
) ac_cv_prog_cc_c11
=no
4187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 $ac_c_conftest_c11_program
4191 for ac_arg
in '' -std=gnu11
4193 CC
="$ac_save_CC $ac_arg"
4194 if ac_fn_c_try_compile
"$LINENO"
4196 ac_cv_prog_cc_c11
=$ac_arg
4198 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4199 test "x$ac_cv_prog_cc_c11" != "xno" && break
4201 rm -f conftest.
$ac_ext
4206 if test "x$ac_cv_prog_cc_c11" = xno
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209 printf "%s\n" "unsupported" >&6; }
4211 e
) if test "x$ac_cv_prog_cc_c11" = x
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 printf "%s\n" "none needed" >&6; }
4216 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4217 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4218 CC
="$CC $ac_cv_prog_cc_c11" ;;
4221 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c11
4222 ac_prog_cc_stdc
=c11
;;
4226 if test x
$ac_prog_cc_stdc = xno
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4229 printf %s
"checking for $CC option to enable C99 features... " >&6; }
4230 if test ${ac_cv_prog_cc_c99+y}
4232 printf %s
"(cached) " >&6
4234 e
) ac_cv_prog_cc_c99
=no
4236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 $ac_c_conftest_c99_program
4240 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -qlanglvl=extc1x
-qlanglvl=extc99
-AC99 -D_STDC_C99=
4242 CC
="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile
"$LINENO"
4245 ac_cv_prog_cc_c99
=$ac_arg
4247 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4248 test "x$ac_cv_prog_cc_c99" != "xno" && break
4250 rm -f conftest.
$ac_ext
4255 if test "x$ac_cv_prog_cc_c99" = xno
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 printf "%s\n" "unsupported" >&6; }
4260 e
) if test "x$ac_cv_prog_cc_c99" = x
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 printf "%s\n" "none needed" >&6; }
4265 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4266 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4267 CC
="$CC $ac_cv_prog_cc_c99" ;;
4270 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4271 ac_prog_cc_stdc
=c99
;;
4275 if test x
$ac_prog_cc_stdc = xno
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4278 printf %s
"checking for $CC option to enable C89 features... " >&6; }
4279 if test ${ac_cv_prog_cc_c89+y}
4281 printf %s
"(cached) " >&6
4283 e
) ac_cv_prog_cc_c89
=no
4285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 $ac_c_conftest_c89_program
4289 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4291 CC
="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile
"$LINENO"
4294 ac_cv_prog_cc_c89
=$ac_arg
4296 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4297 test "x$ac_cv_prog_cc_c89" != "xno" && break
4299 rm -f conftest.
$ac_ext
4304 if test "x$ac_cv_prog_cc_c89" = xno
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4307 printf "%s\n" "unsupported" >&6; }
4309 e
) if test "x$ac_cv_prog_cc_c89" = x
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 printf "%s\n" "none needed" >&6; }
4314 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4315 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4316 CC
="$CC $ac_cv_prog_cc_c89" ;;
4319 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4320 ac_prog_cc_stdc
=c89
;;
4326 ac_cpp
='$CPP $CPPFLAGS'
4327 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4333 ac_cpp
='$CPP $CPPFLAGS'
4334 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4338 printf %s
"checking whether $CC understands -c and -o together... " >&6; }
4339 if test ${am_cv_prog_cc_c_o+y}
4341 printf %s
"(cached) " >&6
4343 e
) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4354 # Make sure it works both with $CC and with simple cc.
4355 # Following AC_PROG_CC_C_O, we do the test twice because some
4356 # compilers refuse to overwrite an existing .o file with -o,
4357 # though they will create one.
4358 am_cv_prog_cc_c_o
=yes
4360 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4361 ($CC -c conftest.
$ac_ext -o conftest2.
$ac_objext) >&5 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } \
4365 && test -f conftest2.
$ac_objext; then
4368 am_cv_prog_cc_c_o
=no
4372 rm -f core conftest
*
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4377 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4378 if test "$am_cv_prog_cc_c_o" != yes; then
4379 # Losing compiler, so override with the script.
4380 # FIXME: It is wrong to rewrite CC.
4381 # But if we don't then we get into trouble of one sort or another.
4382 # A longer-term fix would be to have automake use am__CC in this case,
4383 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4384 CC
="$am_aux_dir/compile $CC"
4387 ac_cpp
='$CPP $CPPFLAGS'
4388 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4393 depcc
="$CC" am_compiler_list
=
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4396 printf %s
"checking dependency style of $depcc... " >&6; }
4397 if test ${am_cv_CC_dependencies_compiler_type+y}
4399 printf %s
"(cached) " >&6
4401 e
) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4402 # We make a subdir and do the tests there. Otherwise we can end up
4403 # making bogus files that we don't know about and never remove. For
4404 # instance it was reported that on HP-UX the gcc test will end up
4405 # making a dummy file named 'D' -- because '-MD' means "put the output
4409 # Copy depcomp to subdir because otherwise we won't find it if we're
4410 # using a relative directory.
4411 cp "$am_depcomp" conftest.dir
4413 # We will build objects and dependencies in a subdirectory because
4414 # it helps to detect inapplicable dependency modes. For instance
4415 # both Tru64's cc and ICC support -MD to output dependencies as a
4416 # side effect of compilation, but ICC will put the dependencies in
4417 # the current directory while Tru64 will put them in the object
4421 am_cv_CC_dependencies_compiler_type
=none
4422 if test "$am_compiler_list" = ""; then
4423 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4426 case " $depcc " in #(
4427 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4430 for depmode
in $am_compiler_list; do
4431 # Setup a source with many dependencies, because some compilers
4432 # like to wrap large dependency lists on column 80 (with \), and
4433 # we should not choose a depcomp mode which is confused by this.
4435 # We need to recreate these files for each test, as the compiler may
4436 # overwrite some of them when testing with obscure command lines.
4437 # This happens at least with the AIX C compiler.
4439 for i
in 1 2 3 4 5 6; do
4440 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4441 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4442 # Solaris 10 /bin/sh.
4443 echo '/* dummy */' > sub
/conftst
$i.h
4445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4447 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4448 # mode. It turns out that the SunPro C++ compiler does not properly
4449 # handle '-M -o', and we need to detect this. Also, some Intel
4450 # versions had trouble with output in subdirs.
4451 am__obj
=sub
/conftest.
${OBJEXT-o}
4452 am__minus_obj
="-o $am__obj"
4455 # This depmode causes a compiler race in universal mode.
4456 test "$am__universal" = false ||
continue
4459 # After this tag, mechanisms are not by side-effect, so they'll
4460 # only be used when explicitly requested.
4461 if test "x$enable_dependency_tracking" = xyes
; then
4467 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4468 # This compiler won't grok '-c -o', but also, the minuso test has
4469 # not run yet. These depmodes are late enough in the game, and
4470 # so weak that their functioning should not be impacted.
4471 am__obj
=conftest.
${OBJEXT-o}
4476 if depmode
=$depmode \
4477 source=sub
/conftest.c object
=$am__obj \
4478 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4479 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4480 >/dev
/null
2>conftest.err
&&
4481 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4482 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4483 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4484 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4485 # icc doesn't choke on unknown options, it will just issue warnings
4486 # or remarks (even with -Werror). So we grep stderr for any message
4487 # that says an option was ignored or not supported.
4488 # When given -MP, icc 7.0 and 7.1 complain thusly:
4489 # icc: Command line warning: ignoring option '-M'; no argument required
4490 # The diagnosis changed in icc 8.0:
4491 # icc: Command line remark: option '-MP' not supported
4492 if (grep 'ignoring option' conftest.err ||
4493 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4494 am_cv_CC_dependencies_compiler_type
=$depmode
4503 am_cv_CC_dependencies_compiler_type
=none
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4509 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4510 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4513 test "x$enable_dependency_tracking" != xno \
4514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4516 am__fastdepCC_FALSE
='#'
4518 am__fastdepCC_TRUE
='#'
4519 am__fastdepCC_FALSE
=
4524 ac_header
= ac_cache
=
4525 for ac_item
in $ac_header_c_list
4527 if test $ac_cache; then
4528 ac_fn_c_check_header_compile
"$LINENO" $ac_header ac_cv_header_
$ac_cache "$ac_includes_default"
4529 if eval test \"x\
$ac_cv_header_$ac_cache\" = xyes
; then
4530 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4532 ac_header
= ac_cache
=
4533 elif test $ac_header; then
4547 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4550 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4560 printf %s
"checking whether it is safe to define __EXTENSIONS__... " >&6; }
4561 if test ${ac_cv_safe_to_define___extensions__+y}
4563 printf %s
"(cached) " >&6
4565 e
) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4568 # define __EXTENSIONS__ 1
4569 $ac_includes_default
4578 if ac_fn_c_try_compile
"$LINENO"
4580 ac_cv_safe_to_define___extensions__
=yes
4582 e
) ac_cv_safe_to_define___extensions__
=no
;;
4585 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4589 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4592 printf %s
"checking whether _XOPEN_SOURCE should be defined... " >&6; }
4593 if test ${ac_cv_should_define__xopen_source+y}
4595 printf %s
"(cached) " >&6
4597 e
) ac_cv_should_define__xopen_source
=no
4598 if test $ac_cv_header_wchar_h = yes
4600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4613 if ac_fn_c_try_compile
"$LINENO"
4617 e
) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4620 #define _XOPEN_SOURCE 500
4631 if ac_fn_c_try_compile
"$LINENO"
4633 ac_cv_should_define__xopen_source
=yes
4635 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
4638 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4643 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4645 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4647 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4649 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4651 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4653 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4655 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4657 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4659 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4661 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4663 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4665 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4667 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4669 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4671 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4673 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4675 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4677 if test $ac_cv_header_minix_config_h = yes
4680 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4682 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4684 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4690 if test $ac_cv_safe_to_define___extensions__ = yes
4692 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4695 if test $ac_cv_should_define__xopen_source = yes
4697 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4701 for ac_prog
in gawk mawk nawk
awk
4703 # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy
$ac_prog; ac_word
=$2
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 printf %s
"checking for $ac_word... " >&6; }
4707 if test ${ac_cv_prog_AWK+y}
4709 printf %s
"(cached) " >&6
4711 e
) if test -n "$AWK"; then
4712 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4718 case $as_dir in #(((
4721 *) as_dir
=$as_dir/ ;;
4723 for ac_exec_ext
in '' $ac_executable_extensions; do
4724 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_AWK
="$ac_prog"
4726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4737 if test -n "$AWK"; then
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4739 printf "%s\n" "$AWK" >&6; }
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 printf "%s\n" "no" >&6; }
4746 test -n "$AWK" && break
4750 ac_cpp
='$CPP $CPPFLAGS'
4751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4754 if test -n "$ac_tool_prefix"; then
4755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4756 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 printf %s
"checking for $ac_word... " >&6; }
4759 if test ${ac_cv_prog_CC+y}
4761 printf %s
"(cached) " >&6
4763 e
) if test -n "$CC"; then
4764 ac_cv_prog_CC
="$CC" # Let the user override the test.
4766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4770 case $as_dir in #(((
4773 *) as_dir
=$as_dir/ ;;
4775 for ac_exec_ext
in '' $ac_executable_extensions; do
4776 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4789 if test -n "$CC"; then
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791 printf "%s\n" "$CC" >&6; }
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 printf "%s\n" "no" >&6; }
4799 if test -z "$ac_cv_prog_CC"; then
4801 # Extract the first word of "gcc", so it can be a program name with args.
4802 set dummy gcc
; ac_word
=$2
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 printf %s
"checking for $ac_word... " >&6; }
4805 if test ${ac_cv_prog_ac_ct_CC+y}
4807 printf %s
"(cached) " >&6
4809 e
) if test -n "$ac_ct_CC"; then
4810 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4816 case $as_dir in #(((
4819 *) as_dir
=$as_dir/ ;;
4821 for ac_exec_ext
in '' $ac_executable_extensions; do
4822 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4823 ac_cv_prog_ac_ct_CC
="gcc"
4824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4834 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4835 if test -n "$ac_ct_CC"; then
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4837 printf "%s\n" "$ac_ct_CC" >&6; }
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 printf "%s\n" "no" >&6; }
4843 if test "x$ac_ct_CC" = x
; then
4846 case $cross_compiling:$ac_tool_warned in
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned
=yes ;;
4858 if test -z "$CC"; then
4859 if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4861 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 printf %s
"checking for $ac_word... " >&6; }
4864 if test ${ac_cv_prog_CC+y}
4866 printf %s
"(cached) " >&6
4868 e
) if test -n "$CC"; then
4869 ac_cv_prog_CC
="$CC" # Let the user override the test.
4871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4875 case $as_dir in #(((
4878 *) as_dir
=$as_dir/ ;;
4880 for ac_exec_ext
in '' $ac_executable_extensions; do
4881 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4894 if test -n "$CC"; then
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4896 printf "%s\n" "$CC" >&6; }
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 printf "%s\n" "no" >&6; }
4905 if test -z "$CC"; then
4906 # Extract the first word of "cc", so it can be a program name with args.
4907 set dummy cc
; ac_word
=$2
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 printf %s
"checking for $ac_word... " >&6; }
4910 if test ${ac_cv_prog_CC+y}
4912 printf %s
"(cached) " >&6
4914 e
) if test -n "$CC"; then
4915 ac_cv_prog_CC
="$CC" # Let the user override the test.
4918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4922 case $as_dir in #(((
4925 *) as_dir
=$as_dir/ ;;
4927 for ac_exec_ext
in '' $ac_executable_extensions; do
4928 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4929 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4930 ac_prog_rejected
=yes
4934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4941 if test $ac_prog_rejected = yes; then
4942 # We found a bogon in the path, so make sure we never use it.
4943 set dummy
$ac_cv_prog_CC
4945 if test $# != 0; then
4946 # We chose a different compiler from the bogus one.
4947 # However, it has the same basename, so the bogon will be chosen
4948 # first if we set CC to just the basename; use the full file name.
4950 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
4957 if test -n "$CC"; then
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4959 printf "%s\n" "$CC" >&6; }
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 printf "%s\n" "no" >&6; }
4967 if test -z "$CC"; then
4968 if test -n "$ac_tool_prefix"; then
4969 for ac_prog
in cl.exe
4971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4972 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 printf %s
"checking for $ac_word... " >&6; }
4975 if test ${ac_cv_prog_CC+y}
4977 printf %s
"(cached) " >&6
4979 e
) if test -n "$CC"; then
4980 ac_cv_prog_CC
="$CC" # Let the user override the test.
4982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4986 case $as_dir in #(((
4989 *) as_dir
=$as_dir/ ;;
4991 for ac_exec_ext
in '' $ac_executable_extensions; do
4992 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5005 if test -n "$CC"; then
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5007 printf "%s\n" "$CC" >&6; }
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 printf "%s\n" "no" >&6; }
5014 test -n "$CC" && break
5017 if test -z "$CC"; then
5019 for ac_prog
in cl.exe
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy
$ac_prog; ac_word
=$2
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 printf %s
"checking for $ac_word... " >&6; }
5025 if test ${ac_cv_prog_ac_ct_CC+y}
5027 printf %s
"(cached) " >&6
5029 e
) if test -n "$ac_ct_CC"; then
5030 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5036 case $as_dir in #(((
5039 *) as_dir
=$as_dir/ ;;
5041 for ac_exec_ext
in '' $ac_executable_extensions; do
5042 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5043 ac_cv_prog_ac_ct_CC
="$ac_prog"
5044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5054 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5055 if test -n "$ac_ct_CC"; then
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5057 printf "%s\n" "$ac_ct_CC" >&6; }
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 printf "%s\n" "no" >&6; }
5064 test -n "$ac_ct_CC" && break
5067 if test "x$ac_ct_CC" = x
; then
5070 case $cross_compiling:$ac_tool_warned in
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned
=yes ;;
5081 if test -z "$CC"; then
5082 if test -n "$ac_tool_prefix"; then
5083 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5084 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 printf %s
"checking for $ac_word... " >&6; }
5087 if test ${ac_cv_prog_CC+y}
5089 printf %s
"(cached) " >&6
5091 e
) if test -n "$CC"; then
5092 ac_cv_prog_CC
="$CC" # Let the user override the test.
5094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5098 case $as_dir in #(((
5101 *) as_dir
=$as_dir/ ;;
5103 for ac_exec_ext
in '' $ac_executable_extensions; do
5104 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_CC
="${ac_tool_prefix}clang"
5106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5117 if test -n "$CC"; then
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5119 printf "%s\n" "$CC" >&6; }
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 printf "%s\n" "no" >&6; }
5127 if test -z "$ac_cv_prog_CC"; then
5129 # Extract the first word of "clang", so it can be a program name with args.
5130 set dummy clang
; ac_word
=$2
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 printf %s
"checking for $ac_word... " >&6; }
5133 if test ${ac_cv_prog_ac_ct_CC+y}
5135 printf %s
"(cached) " >&6
5137 e
) if test -n "$ac_ct_CC"; then
5138 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5144 case $as_dir in #(((
5147 *) as_dir
=$as_dir/ ;;
5149 for ac_exec_ext
in '' $ac_executable_extensions; do
5150 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5151 ac_cv_prog_ac_ct_CC
="clang"
5152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5162 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5163 if test -n "$ac_ct_CC"; then
5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5165 printf "%s\n" "$ac_ct_CC" >&6; }
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 printf "%s\n" "no" >&6; }
5171 if test "x$ac_ct_CC" = x
; then
5174 case $cross_compiling:$ac_tool_warned in
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned
=yes ;;
5189 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5190 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5191 as_fn_error $?
"no acceptable C compiler found in \$PATH
5192 See 'config.log' for more details" "$LINENO" 5; }
5194 # Provide some information about the compiler.
5195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5198 for ac_option
in --version -v -V -qversion -version; do
5199 { { ac_try
="$ac_compiler $ac_option >&5"
5201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5205 printf "%s\n" "$ac_try_echo"; } >&5
5206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5208 if test -s conftest.err; then
5210 ... rest of stderr output deleted ...
5211 10q' conftest.err >conftest.er1
5212 cat conftest.er1 >&5
5214 rm -f conftest.er1 conftest.err
5215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216 test $ac_status = 0; }
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5220 printf %s "checking whether the compiler supports GNU C... " >&6; }
5221 if test ${ac_cv_c_compiler_gnu+y}
5223 printf %s "(cached) " >&6
5225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5239 if ac_fn_c_try_compile "$LINENO"
5243 e) ac_compiler_gnu=no ;;
5246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5247 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5252 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255 if test $ac_compiler_gnu = yes; then
5260 ac_test_CFLAGS=${CFLAGS+y}
5261 ac_save_CFLAGS=$CFLAGS
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5263 printf %s "checking whether $CC accepts -g... " >&6; }
5264 if test ${ac_cv_prog_cc_g+y}
5266 printf %s "(cached) " >&6
5268 e) ac_save_c_werror_flag=$ac_c_werror_flag
5269 ac_c_werror_flag=yes
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5283 if ac_fn_c_try_compile "$LINENO"
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5299 if ac_fn_c_try_compile "$LINENO"
5303 e) ac_c_werror_flag=$ac_save_c_werror_flag
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5316 if ac_fn_c_try_compile "$LINENO"
5320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5327 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5331 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5332 if test $ac_test_CFLAGS; then
5333 CFLAGS=$ac_save_CFLAGS
5334 elif test $ac_cv_prog_cc_g = yes; then
5335 if test "$GCC" = yes; then
5341 if test "$GCC" = yes; then
5348 if test x$ac_prog_cc_stdc = xno
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5351 printf %s "checking for $CC option to enable C11 features... " >&6; }
5352 if test ${ac_cv_prog_cc_c11+y}
5354 printf %s "(cached) " >&6
5356 e) ac_cv_prog_cc_c11=no
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 $ac_c_conftest_c11_program
5362 for ac_arg in '' -std=gnu11
5364 CC="$ac_save_CC $ac_arg"
5365 if ac_fn_c_try_compile "$LINENO"
5367 ac_cv_prog_cc_c11=$ac_arg
5369 rm -f core conftest.err conftest.$ac_objext conftest.beam
5370 test "x$ac_cv_prog_cc_c11" != "xno" && break
5372 rm -f conftest.$ac_ext
5377 if test "x$ac_cv_prog_cc_c11" = xno
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5380 printf "%s\n" "unsupported" >&6; }
5382 e) if test "x$ac_cv_prog_cc_c11" = x
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5385 printf "%s\n" "none needed" >&6; }
5387 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5388 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5389 CC="$CC $ac_cv_prog_cc_c11" ;;
5392 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5393 ac_prog_cc_stdc=c11 ;;
5397 if test x$ac_prog_cc_stdc = xno
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5400 printf %s "checking for $CC option to enable C99 features... " >&6; }
5401 if test ${ac_cv_prog_cc_c99+y}
5403 printf %s "(cached) " >&6
5405 e) ac_cv_prog_cc_c99=no
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 $ac_c_conftest_c99_program
5411 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5413 CC="$ac_save_CC $ac_arg"
5414 if ac_fn_c_try_compile "$LINENO"
5416 ac_cv_prog_cc_c99=$ac_arg
5418 rm -f core conftest.err conftest.$ac_objext conftest.beam
5419 test "x$ac_cv_prog_cc_c99" != "xno" && break
5421 rm -f conftest.$ac_ext
5426 if test "x$ac_cv_prog_cc_c99" = xno
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5429 printf "%s\n" "unsupported" >&6; }
5431 e) if test "x$ac_cv_prog_cc_c99" = x
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5434 printf "%s\n" "none needed" >&6; }
5436 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5437 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5438 CC="$CC $ac_cv_prog_cc_c99" ;;
5441 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5442 ac_prog_cc_stdc=c99 ;;
5446 if test x$ac_prog_cc_stdc = xno
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5449 printf %s "checking for $CC option to enable C89 features... " >&6; }
5450 if test ${ac_cv_prog_cc_c89+y}
5452 printf %s "(cached) " >&6
5454 e) ac_cv_prog_cc_c89=no
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 $ac_c_conftest_c89_program
5460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5462 CC="$ac_save_CC $ac_arg"
5463 if ac_fn_c_try_compile "$LINENO"
5465 ac_cv_prog_cc_c89=$ac_arg
5467 rm -f core conftest.err conftest.$ac_objext conftest.beam
5468 test "x$ac_cv_prog_cc_c89" != "xno" && break
5470 rm -f conftest.$ac_ext
5475 if test "x$ac_cv_prog_cc_c89" = xno
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5478 printf "%s\n" "unsupported" >&6; }
5480 e) if test "x$ac_cv_prog_cc_c89" = x
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5483 printf "%s\n" "none needed" >&6; }
5485 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5486 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5487 CC="$CC $ac_cv_prog_cc_c89" ;;
5490 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5491 ac_prog_cc_stdc=c89 ;;
5497 ac_cpp='$CPP $CPPFLAGS'
5498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5509 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5510 if test ${am_cv_prog_cc_c_o+y}
5512 printf %s "(cached) " >&6
5514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5525 # Make sure it works both with $CC and with simple cc.
5526 # Following AC_PROG_CC_C_O, we do the test twice because some
5527 # compilers refuse to overwrite an existing .o file with -o,
5528 # though they will create one.
5529 am_cv_prog_cc_c_o=yes
5531 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5532 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } \
5536 && test -f conftest2.$ac_objext; then
5539 am_cv_prog_cc_c_o=no
5543 rm -f core conftest*
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5548 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5549 if test "$am_cv_prog_cc_c_o" != yes; then
5550 # Losing compiler, so override with the script.
5551 # FIXME: It is wrong to rewrite CC.
5552 # But if we don't then we get into trouble of one sort or another.
5553 # A longer-term fix would be to have automake use am__CC in this case,
5554 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5555 CC="$am_aux_dir/compile $CC"
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564 depcc="$CC" am_compiler_list=
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5567 printf %s "checking dependency style of $depcc... " >&6; }
5568 if test ${am_cv_CC_dependencies_compiler_type+y}
5570 printf %s "(cached) " >&6
5572 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5573 # We make a subdir and do the tests there. Otherwise we can end up
5574 # making bogus files that we don't know about and never remove. For
5575 # instance it was reported that on HP-UX the gcc test will end up
5576 # making a dummy file named 'D' -- because '-MD' means "put the output
5580 # Copy depcomp to subdir because otherwise we won't find it if we're
5581 # using a relative directory.
5582 cp "$am_depcomp" conftest.dir
5584 # We will build objects and dependencies in a subdirectory because
5585 # it helps to detect inapplicable dependency modes. For instance
5586 # both Tru64's cc and ICC support -MD to output dependencies as a
5587 # side effect of compilation, but ICC will put the dependencies in
5588 # the current directory while Tru64 will put them in the object
5592 am_cv_CC_dependencies_compiler_type=none
5593 if test "$am_compiler_list" = ""; then
5594 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5597 case " $depcc " in #(
5598 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5601 for depmode in $am_compiler_list; do
5602 # Setup a source with many dependencies, because some compilers
5603 # like to wrap large dependency lists on column 80 (with \), and
5604 # we should not choose a depcomp mode which is confused by this.
5606 # We need to recreate these files for each test, as the compiler may
5607 # overwrite some of them when testing with obscure command lines.
5608 # This happens at least with the AIX C compiler.
5610 for i in 1 2 3 4 5 6; do
5611 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5612 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5613 # Solaris 10 /bin/sh.
5614 echo '/* dummy */' > sub/conftst$i.h
5616 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5618 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5619 # mode. It turns out that the SunPro C++ compiler does not properly
5620 # handle '-M -o', and we need to detect this. Also, some Intel
5621 # versions had trouble with output in subdirs.
5622 am__obj=sub/conftest.${OBJEXT-o}
5623 am__minus_obj="-o $am__obj"
5626 # This depmode causes a compiler race in universal mode.
5627 test "$am__universal" = false || continue
5630 # After this tag, mechanisms are not by side-effect, so they'll
5631 # only be used when explicitly requested.
5632 if test "x$enable_dependency_tracking" = xyes; then
5638 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5639 # This compiler won't grok '-c -o', but also, the minuso test has
5640 # not run yet. These depmodes are late enough in the game, and
5641 # so weak that their functioning should not be impacted.
5642 am__obj=conftest.${OBJEXT-o}
5647 if depmode=$depmode \
5648 source=sub/conftest.c object=$am__obj \
5649 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5650 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5651 >/dev/null 2>conftest.err &&
5652 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5653 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5654 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5655 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5656 # icc doesn't choke on unknown options, it will just issue warnings
5657 # or remarks (even with -Werror). So we grep stderr for any message
5658 # that says an option was ignored or not supported.
5659 # When given -MP, icc 7.0 and 7.1 complain thusly:
5660 # icc: Command line warning: ignoring option '-M'; no argument required
5661 # The diagnosis changed in icc 8.0:
5662 # icc: Command line remark: option '-MP' not supported
5663 if (grep 'ignoring option' conftest.err ||
5664 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5665 am_cv_CC_dependencies_compiler_type=$depmode
5674 am_cv_CC_dependencies_compiler_type=none
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5680 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5681 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5684 test "x$enable_dependency_tracking" != xno \
5685 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5687 am__fastdepCC_FALSE='#'
5689 am__fastdepCC_TRUE='#'
5690 am__fastdepCC_FALSE=
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5696 printf %s "checking whether ln -s works... " >&6; }
5698 if test "$LN_S" = "ln -s"; then
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700 printf "%s\n" "yes" >&6; }
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5703 printf "%s\n" "no, using $LN_S" >&6; }
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5707 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5709 ac_make=`printf "%s\n" "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5710 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5712 printf %s "(cached) " >&6
5714 e) cat >conftest.make <<\_ACEOF
5717 @echo '@@@%%%=$(MAKE)=@@@%%%'
5719 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5720 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
5722 eval ac_cv_prog_make_${ac_make}_set=yes;;
5724 eval ac_cv_prog_make_${ac_make}_set=no;;
5726 rm -f conftest.make ;;
5729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5731 printf "%s\n" "yes" >&6; }
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 printf "%s\n" "no" >&6; }
5736 SET_MAKE="MAKE=${MAKE-make}"
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
5741 printf %s "checking for library containing tgetent... " >&6; }
5742 if test ${ac_cv_search_tgetent+y}
5744 printf %s "(cached) " >&6
5746 e) ac_func_search_save_LIBS=$LIBS
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5750 /* Override any GCC internal prototype to avoid an error.
5751 Use char because int might match the return type of a GCC
5752 builtin and then its argument prototype would still apply.
5753 The 'extern "C"' is for builds by C++ compilers;
5754 although this is not generally supported in C code supporting it here
5755 has little cost and some practical benefit (sr 110532). */
5759 char tgetent (void);
5768 for ac_lib in '' tinfo curses ncursesw ncurses
5770 if test -z "$ac_lib"; then
5771 ac_res="none required"
5774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5776 if ac_fn_c_try_link "$LINENO"
5778 ac_cv_search_tgetent=$ac_res
5780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5782 if test ${ac_cv_search_tgetent+y}
5787 if test ${ac_cv_search_tgetent+y}
5791 e) ac_cv_search_tgetent=no ;;
5795 LIBS=$ac_func_search_save_LIBS ;;
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
5799 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
5800 ac_res=$ac_cv_search_tgetent
5801 if test "$ac_res" != no
5803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5808 # clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5810 printf %s "checking for library containing clock_gettime... " >&6; }
5811 if test ${ac_cv_search_clock_gettime+y}
5813 printf %s "(cached) " >&6
5815 e) ac_func_search_save_LIBS=$LIBS
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5819 /* Override any GCC internal prototype to avoid an error.
5820 Use char because int might match the return type of a GCC
5821 builtin and then its argument prototype would still apply.
5822 The 'extern "C"' is for builds by C++ compilers;
5823 although this is not generally supported in C code supporting it here
5824 has little cost and some practical benefit (sr 110532). */
5828 char clock_gettime (void);
5832 return clock_gettime ();
5839 if test -z "$ac_lib"; then
5840 ac_res="none required"
5843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5845 if ac_fn_c_try_link "$LINENO"
5847 ac_cv_search_clock_gettime=$ac_res
5849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5851 if test ${ac_cv_search_clock_gettime+y}
5856 if test ${ac_cv_search_clock_gettime+y}
5860 e) ac_cv_search_clock_gettime=no ;;
5864 LIBS=$ac_func_search_save_LIBS ;;
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5868 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
5869 ac_res=$ac_cv_search_clock_gettime
5870 if test "$ac_res" != no
5872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5875 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5880 # Checks for libraries.
5882 # Checks for header files.
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5885 printf %s "checking for grep that handles long lines and -e... " >&6; }
5886 if test ${ac_cv_path_GREP+y}
5888 printf %s "(cached) " >&6
5890 e) if test -z "$GREP"; then
5891 ac_path_GREP_found=false
5892 # Loop through the user's path and test for each of PROGNAME-LIST
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5897 case $as_dir in #(((
5900 *) as_dir=$as_dir/ ;;
5902 for ac_prog in grep ggrep
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5906 as_fn_executable_p "$ac_path_GREP" || continue
5907 # Check for GNU ac_path_GREP and select it if it is found.
5908 # Check for GNU $ac_path_GREP
5909 case `"$ac_path_GREP" --version 2>&1` in #(
5911 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5915 printf %s 0123456789 >"conftest.in"
5918 cat "conftest.in" "conftest.in" >"conftest.tmp"
5919 mv "conftest.tmp" "conftest.in"
5920 cp "conftest.in" "conftest.nl"
5921 printf "%s\n" 'GREP' >> "conftest.nl"
5922 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5924 as_fn_arith $ac_count + 1 && ac_count=$as_val
5925 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5926 # Best one so far, save it but keep looking for a better one
5927 ac_cv_path_GREP="$ac_path_GREP"
5928 ac_path_GREP_max=$ac_count
5930 # 10*(2^10) chars as input seems more than enough
5931 test $ac_count -gt 10 && break
5933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5936 $ac_path_GREP_found && break 3
5941 if test -z "$ac_cv_path_GREP"; then
5942 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5945 ac_cv_path_GREP=$GREP
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5951 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5952 GREP="$ac_cv_path_GREP"
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5956 printf %s "checking for egrep... " >&6; }
5957 if test ${ac_cv_path_EGREP+y}
5959 printf %s "(cached) " >&6
5961 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5962 then ac_cv_path_EGREP="$GREP -E"
5964 if test -z "$EGREP"; then
5965 ac_path_EGREP_found=false
5966 # Loop through the user's path and test for each of PROGNAME-LIST
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5971 case $as_dir in #(((
5974 *) as_dir=$as_dir/ ;;
5976 for ac_prog in egrep
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5980 as_fn_executable_p "$ac_path_EGREP" || continue
5981 # Check for GNU ac_path_EGREP and select it if it is found.
5982 # Check for GNU $ac_path_EGREP
5983 case `"$ac_path_EGREP" --version 2>&1` in #(
5985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5989 printf %s 0123456789 >"conftest.in"
5992 cat "conftest.in" "conftest.in" >"conftest.tmp"
5993 mv "conftest.tmp" "conftest.in"
5994 cp "conftest.in" "conftest.nl"
5995 printf "%s\n" 'EGREP' >> "conftest.nl"
5996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5998 as_fn_arith $ac_count + 1 && ac_count=$as_val
5999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6000 # Best one so far, save it but keep looking for a better one
6001 ac_cv_path_EGREP="$ac_path_EGREP"
6002 ac_path_EGREP_max=$ac_count
6004 # 10*(2^10) chars as input seems more than enough
6005 test $ac_count -gt 10 && break
6007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6010 $ac_path_EGREP_found && break 3
6015 if test -z "$ac_cv_path_EGREP"; then
6016 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6019 ac_cv_path_EGREP=$EGREP
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6026 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6027 EGREP="$ac_cv_path_EGREP"
6029 EGREP_TRADITIONAL=$EGREP
6030 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6033 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
6034 if test "x$ac_cv_header_fcntl_h" = xyes
6036 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
6039 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
6040 if test "x$ac_cv_header_limits_h" = xyes
6042 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
6045 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6046 if test "x$ac_cv_header_langinfo_h" = xyes
6048 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
6051 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
6052 if test "x$ac_cv_header_locale_h" = xyes
6054 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
6057 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6058 if test "x$ac_cv_header_stdint_h" = xyes
6060 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
6063 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6064 if test "x$ac_cv_header_stdlib_h" = xyes
6066 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
6069 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6070 if test "x$ac_cv_header_string_h" = xyes
6072 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
6075 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
6076 if test "x$ac_cv_header_sys_ioctl_h" = xyes
6078 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
6081 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6082 if test "x$ac_cv_header_sys_time_h" = xyes
6084 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
6087 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
6088 if test "x$ac_cv_header_termios_h" = xyes
6090 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
6093 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6094 if test "x$ac_cv_header_unistd_h" = xyes
6096 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
6099 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6100 if test "x$ac_cv_header_wchar_h" = xyes
6102 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
6107 # Checks for typedefs, structures, and compiler characteristics.
6108 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6109 if test "x$ac_cv_type_size_t" = xyes
6114 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
6120 # Checks for library functions.
6123 # Make sure we can run config.sub.
6124 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6125 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6128 printf %s "checking build system type... " >&6; }
6129 if test ${ac_cv_build+y}
6131 printf %s "(cached) " >&6
6133 e) ac_build_alias=$build_alias
6134 test "x$ac_build_alias" = x &&
6135 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6136 test "x$ac_build_alias" = x &&
6137 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6138 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6139 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6144 printf "%s\n" "$ac_cv_build" >&6; }
6145 case $ac_cv_build in
6147 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6150 ac_save_IFS=$IFS; IFS='-'
6156 # Remember, the first character of IFS is used to create $*,
6157 # except with old shells:
6160 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6164 printf %s "checking host system type... " >&6; }
6165 if test ${ac_cv_host+y}
6167 printf %s "(cached) " >&6
6169 e) if test "x$host_alias" = x; then
6170 ac_cv_host=$ac_cv_build
6172 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6173 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6179 printf "%s\n" "$ac_cv_host" >&6; }
6182 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6185 ac_save_IFS=$IFS; IFS='-'
6191 # Remember, the first character of IFS is used to create $*,
6192 # except with old shells:
6195 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6199 printf %s "checking for GNU libc compatible malloc... " >&6; }
6200 if test ${ac_cv_func_malloc_0_nonnull+y}
6202 printf %s "(cached) " >&6
6204 e) if test "$cross_compiling" = yes
6206 case "$host_os" in # ((
6207 # Guess yes on platforms where we know the result.
6208 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
6209 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
6210 ac_cv_func_malloc_0_nonnull=yes ;;
6211 # If we don't know, assume the worst.
6212 *) ac_cv_func_malloc_0_nonnull=no ;;
6215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6222 void *p = malloc (0);
6230 if ac_fn_c_try_run "$LINENO"
6232 ac_cv_func_malloc_0_nonnull=yes
6234 e) ac_cv_func_malloc_0_nonnull=no ;;
6237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6238 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6245 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
6246 if test $ac_cv_func_malloc_0_nonnull = yes
6249 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
6252 e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
6254 case " $LIBOBJS " in
6255 *" malloc.$ac_objext "* ) ;;
6256 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6261 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6268 printf %s "checking for GNU libc compatible realloc... " >&6; }
6269 if test ${ac_cv_func_realloc_0_nonnull+y}
6271 printf %s "(cached) " >&6
6273 e) if test "$cross_compiling" = yes
6275 case "$host_os" in # ((
6276 # Guess yes on platforms where we know the result.
6277 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
6278 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
6279 ac_cv_func_realloc_0_nonnull=yes ;;
6280 # If we don't know, assume the worst.
6281 *) ac_cv_func_realloc_0_nonnull=no ;;
6284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6291 void *p = realloc (0, 0);
6299 if ac_fn_c_try_run "$LINENO"
6301 ac_cv_func_realloc_0_nonnull=yes
6303 e) ac_cv_func_realloc_0_nonnull=no ;;
6306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6307 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6314 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
6315 if test $ac_cv_func_realloc_0_nonnull = yes
6318 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
6321 e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
6323 case " $LIBOBJS " in
6324 *" realloc.$ac_objext "* ) ;;
6325 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6330 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
6336 ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen"
6337 if test "x$ac_cv_func_mblen" = xyes
6339 printf "%s\n" "#define HAVE_MBLEN 1" >>confdefs.h
6342 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
6343 if test "x$ac_cv_func_memset" = xyes
6345 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
6348 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6349 if test "x$ac_cv_func_nl_langinfo" = xyes
6351 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
6354 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
6355 if test "x$ac_cv_func_pathconf" = xyes
6357 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
6360 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
6361 if test "x$ac_cv_func_regcomp" = xyes
6363 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
6366 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
6367 if test "x$ac_cv_func_setlocale" = xyes
6369 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
6373 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
6374 if test "x$ac_cv_func_strchr" = xyes
6376 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
6379 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
6380 if test "x$ac_cv_func_strrchr" = xyes
6382 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
6385 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
6386 if test "x$ac_cv_func_strspn" = xyes
6388 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
6391 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
6392 if test "x$ac_cv_func_strcasecmp" = xyes
6394 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
6401 case "${host_os}" in
6402 *freebsd*|*dragonfly*)
6403 CPPFLAGS="-D__BSD_VISIBLE $CPPFLAGS"
6407 CPPFLAGS="-D_DARWIN_C_SOURCE $CPPFLAGS"
6411 CPPFLAGS="-D_NETBSD_SOURCE $CPPFLAGS"
6415 CPPFLAGS="-D_BSD_SOURCE $CPPFLAGS"
6419 ac_config_files="$ac_config_files Makefile"
6421 cat >confcache <<\_ACEOF
6422 # This file is a shell script that caches the results of configure
6423 # tests run on this system so they can be shared between configure
6424 # scripts and configure runs, see configure's option --config-cache.
6425 # It is not useful on other systems. If it contains results you don't
6426 # want to keep, you may remove or edit it.
6428 # config.status only pays attention to the cache file if you give it
6429 # the --recheck option to rerun configure.
6431 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
6432 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
6437 # The following way of writing the cache mishandles newlines in values,
6438 # but we know of no workaround that is simple, portable, and efficient.
6439 # So, we kill variables containing newlines.
6440 # Ultrix sh set writes to stderr and can't be redirected directly,
6441 # and sets the high bit in the cache file unless we assign to the vars.
6443 for ac_var in `(set) 2>&1 |
sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6444 eval ac_val=\$$ac_var
6448 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6449 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6452 _ | IFS | as_nl) ;; #(
6453 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6454 *) { eval $ac_var=; unset $ac_var;} ;;
6460 case $as_nl`(ac_space
=' '; set) 2>&1` in #(
6461 *${as_nl}ac_space=\ *)
6462 # 'set' does not quote correctly, so add quotes: double-quote
6463 # substitution turns \\\\ into \\, and sed turns \\ into \.
6466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6469 # 'set' quotes correctly as required by POSIX, so do not add quotes.
6470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6479 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6483 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6484 if test -w "$cache_file"; then
6485 if test "x$cache_file" != "x/dev/null"; then
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6487 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6488 if test ! -f "$cache_file" || test -h "$cache_file"; then
6489 cat confcache >"$cache_file"
6491 case $cache_file in #(
6493 mv -f confcache "$cache_file"$$ &&
6494 mv -f "$cache_file"$$ "$cache_file" ;; #(
6496 mv -f confcache "$cache_file" ;;
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6502 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6508 # Let make expand exec_prefix.
6509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6511 DEFS=-DHAVE_CONFIG_H
6516 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6517 # 1. Remove the extension, and $U if already installed.
6518 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6519 ac_i=`printf "%s\n" "$ac_i" |
sed "$ac_script"`
6520 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6521 # will be set to the directory where LIBOBJS objects are built.
6522 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6523 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6527 LTLIBOBJS=$ac_ltlibobjs
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6531 printf %s "checking that generated files are newer than configure... " >&6; }
6532 if test -n "$am_sleep_pid"; then
6533 # Hide warnings about reused PIDs.
6534 wait $am_sleep_pid 2>/dev/null
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6537 printf "%s\n" "done" >&6; }
6538 if test -n "$EXEEXT"; then
6540 am__EXEEXT_FALSE='#'
6546 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6547 as_fn_error $? "conditional \"AMDEP\" was never defined.
6548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6550 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6551 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6554 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6555 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6559 : "${CONFIG_STATUS=./config.status}"
6561 ac_clean_files_save=$ac_clean_files
6562 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6564 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6566 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6568 # Generated by $as_me.
6569 # Run this file to recreate the current configuration.
6570 # Compiler output produced by configure, useful for debugging
6571 # configure, is in config.log if it exists.
6577 SHELL=\${CONFIG_SHELL-$SHELL}
6580 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6581 ## -------------------- ##
6582 ## M4sh Initialization. ##
6583 ## -------------------- ##
6585 # Be more Bourne compatible
6586 DUALCASE=1; export DUALCASE # for MKS sh
6587 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6591 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6592 # is contrary to our usage. Disable this feature.
6593 alias -g '${1+"$@"}'='"$@"'
6594 setopt NO_GLOB_SUBST
6596 e) case `(set -o) 2>/dev
/null
` in #(
6607 # Reset variables that may have inherited troublesome values from
6610 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6611 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6612 # side effect of setting IFS to empty, thus disabling word splitting.)
6613 # Quoting is to prevent editors from complaining about space-tab.
6623 # Ensure predictable behavior from utilities with locale-dependent output.
6629 # We cannot yet rely on "unset" to work, but we need these variables
6630 # to be unset--not just set to an empty or harmless value--now, to
6631 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6632 # also avoids known problems related to "unset" and subshell syntax
6633 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6634 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6635 do eval test \${$as_var+y} \
6636 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6639 # Ensure that fds 0, 1, and 2 are open.
6640 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6641 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6642 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6644 # The user is always right.
6645 if ${PATH_SEPARATOR+false} :; then
6647 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6648 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6654 # Find who we are. Look in the path if we contain no directory separator.
6657 *[\\/]* ) as_myself=$0 ;;
6658 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 case $as_dir in #(((
6665 *) as_dir=$as_dir/ ;;
6667 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6673 # We did not find ourselves, most probably we were run as 'sh COMMAND'
6674 # in which case we are not to be found in the path.
6675 if test "x$as_myself" = x; then
6678 if test ! -f "$as_myself"; then
6679 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6685 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6686 # ----------------------------------------
6687 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6688 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6689 # script with STATUS, using 1 if that was 0.
6692 as_status=$1; test $as_status -eq 0 && as_status=1
6694 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6697 printf "%s\n" "$as_me: error: $2" >&2
6698 as_fn_exit $as_status
6702 # as_fn_set_status STATUS
6703 # -----------------------
6704 # Set $? to STATUS, without forking.
6708 } # as_fn_set_status
6712 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6722 # Portably unset VAR.
6725 { eval $1=; unset $1;}
6727 as_unset=as_fn_unset
6729 # as_fn_append VAR VALUE
6730 # ----------------------
6731 # Append the text in VALUE to the end of the definition contained in VAR. Take
6732 # advantage of any shell optimizations that allow amortized linear growth over
6733 # repeated appends, instead of the typical quadratic growth present in naive
6735 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6737 eval 'as_fn_append ()
6749 # as_fn_arith ARG...
6750 # ------------------
6751 # Perform arithmetic evaluation on the ARGs, and store the result in the
6752 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6753 # must be portable across $(()) and expr.
6754 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6756 eval 'as_fn_arith ()
6763 as_val=`expr "$@" ||
test $?
-eq 1`
6769 if expr a : '\(a\)' >/dev/null 2>&1 &&
6770 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6776 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6777 as_basename=basename
6782 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6788 as_me=`$as_basename -- "$0" ||
6789 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6790 X
"$0" : 'X\(//\)$' \| \
6791 X
"$0" : 'X\(/\)' \| .
2>/dev
/null ||
6792 printf "%s\n" X
/"$0" |
6793 sed '/^.*\/\([^/][^/]*\)\/*$/{
6807 # Avoid depending upon Character Ranges.
6808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6811 as_cr_digits='0123456789'
6812 as_cr_alnum=$as_cr_Letters$as_cr_digits
6815 # Determine whether it's possible to make 'echo' print without a newline.
6816 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6817 # for compatibility with existing Makefiles.
6818 ECHO_C= ECHO_N= ECHO_T=
6819 case `echo -n x
` in #(((((
6821 case `echo 'xy\c'` in
6822 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6824 *) echo `echo ksh88 bug on AIX
6.1` > /dev/null
6831 # For backward compatibility with old third-party macros, we provide
6832 # the shell variables $as_echo and $as_echo_n. New code should use
6833 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6834 as_echo='printf %s\n'
6835 as_echo_n='printf %s'
6837 rm -f conf$$ conf$$.exe conf$$.file
6838 if test -d conf$$.dir; then
6839 rm -f conf$$.dir/conf$$.file
6842 mkdir conf$$.dir 2>/dev/null
6844 if (echo >conf$$.file) 2>/dev/null; then
6845 if ln -s conf$$.file conf$$ 2>/dev/null; then
6847 # ... but there are two gotchas:
6848 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
6849 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
6850 # In both cases, we have to default to 'cp -pR'.
6851 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6853 elif ln conf$$.file conf$$ 2>/dev/null; then
6861 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6862 rmdir conf$$.dir 2>/dev/null
6867 # Create "$as_dir" as a directory, including parents if necessary.
6872 -*) as_dir=./$as_dir;;
6874 test -d "$as_dir" || eval $as_mkdir_p || {
6878 *\'*) as_qdir=`printf "%s\n" "$as_dir" |
sed "s/'/'\\\\\\\\''/g"`;; #'(
6879 *) as_qdir=$as_dir;;
6881 as_dirs="'$as_qdir' $as_dirs"
6882 as_dir=`$as_dirname -- "$as_dir" ||
6883 $as_expr X
"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6884 X
"$as_dir" : 'X\(//\)[^/]' \| \
6885 X
"$as_dir" : 'X\(//\)$' \| \
6886 X
"$as_dir" : 'X\(/\)' \| .
2>/dev
/null ||
6887 printf "%s\n" X
"$as_dir" |
6888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6905 test -d "$as_dir" && break
6907 test -z "$as_dirs" || eval "mkdir $as_dirs"
6908 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6912 if mkdir -p . 2>/dev/null; then
6913 as_mkdir_p='mkdir -p "$as_dir"'
6915 test -d ./-p && rmdir ./-p
6920 # as_fn_executable_p FILE
6921 # -----------------------
6922 # Test if FILE is an executable regular file.
6923 as_fn_executable_p ()
6925 test -f "$1" && test -x "$1"
6926 } # as_fn_executable_p
6928 as_executable_p=as_fn_executable_p
6930 # Sed expression to map a string onto a valid CPP name.
6931 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6932 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
6934 # Sed expression to map a string onto a valid variable name.
6935 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6936 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
6940 ## ----------------------------------- ##
6941 ## Main body of $CONFIG_STATUS script. ##
6942 ## ----------------------------------- ##
6944 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6947 # Save the log message, to keep $0 and so on meaningful, and to
6948 # report actual input values of CONFIG_FILES etc. instead of their
6949 # values after options handling.
6951 This file was extended by smenu $as_me 1.4.0, which was
6952 generated by GNU Autoconf 2.72. Invocation command line was
6954 CONFIG_FILES = $CONFIG_FILES
6955 CONFIG_HEADERS = $CONFIG_HEADERS
6956 CONFIG_LINKS = $CONFIG_LINKS
6957 CONFIG_COMMANDS = $CONFIG_COMMANDS
6960 on `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
6965 case $ac_config_files in *"
6966 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6969 case $ac_config_headers in *"
6970 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6975 # Files that config.status was made for.
6976 config_files="$ac_config_files"
6977 config_headers="$ac_config_headers"
6978 config_commands="$ac_config_commands"
6982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6984 '$as_me' instantiates files and other configuration actions
6985 from templates according to the current configuration. Unless the files
6986 and actions are specified as TAGs, all are instantiated by default.
6988 Usage: $0 [OPTION]... [TAG]...
6990 -h, --help print this help, then exit
6991 -V, --version print version number and configuration settings, then exit
6992 --config print configuration, then exit
6993 -q, --quiet, --silent
6994 do not print progress messages
6995 -d, --debug don't remove temporary files
6996 --recheck update $as_me by reconfiguring in the same conditions
6997 --file=FILE[:TEMPLATE]
6998 instantiate the configuration file FILE
6999 --header=FILE[:TEMPLATE]
7000 instantiate the configuration header FILE
7002 Configuration files:
7005 Configuration headers:
7008 Configuration commands:
7011 Report bugs to <p.gen.progs@gmail.com>."
7014 ac_cs_config=`printf "%s\n" "$ac_configure_args" |
sed "$ac_safe_unquote"`
7015 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" |
sed "s/^ //; s/'/'\\\\\\\\''/g"`
7016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7017 ac_cs_config='$ac_cs_config_escaped'
7019 smenu config.status 1.4.0
7020 configured by $0, generated by GNU Autoconf 2.72,
7021 with options \\"\$ac_cs_config\\"
7023 Copyright (C) 2023 Free Software Foundation, Inc.
7024 This config.status script is free software; the Free Software Foundation
7025 gives unlimited permission to copy, distribute and modify it."
7032 test -n "\$AWK" || AWK=awk
7035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7036 # The default lists apply if the user does not specify any file.
7042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7059 # Handling of the options.
7060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7063 printf "%s\n" "$ac_cs_version"; exit ;;
7064 --config | --confi | --conf | --con | --co | --c )
7065 printf "%s\n" "$ac_cs_config"; exit ;;
7066 --debug | --debu | --deb | --de | --d | -d )
7068 --file | --fil | --fi | --f )
7071 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
7072 '') as_fn_error $? "missing file argument" ;;
7074 as_fn_append CONFIG_FILES " '$ac_optarg'"
7075 ac_need_defaults=false;;
7076 --header | --heade | --head | --hea )
7079 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
7081 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7082 ac_need_defaults=false;;
7084 # Conflict between --help and --header
7085 as_fn_error $? "ambiguous option: '$1'
7086 Try '$0 --help' for more information.";;
7087 --help | --hel | -h )
7088 printf "%s\n" "$ac_cs_usage"; exit ;;
7089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7094 -*) as_fn_error $? "unrecognized option: '$1'
7095 Try '$0 --help' for more information." ;;
7097 *) as_fn_append ac_config_targets " $1"
7098 ac_need_defaults=false ;;
7104 ac_configure_extra_args=
7106 if $ac_cs_silent; then
7108 ac_configure_extra_args="$ac_configure_extra_args --silent"
7112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7113 if \$ac_cs_recheck; then
7114 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7116 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7117 CONFIG_SHELL='$SHELL'
7123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7128 ## Running $as_me. ##
7130 printf "%s\n" "$ac_log"
7134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7138 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7144 # Handling of arguments.
7145 for ac_config_target in $ac_config_targets
7147 case $ac_config_target in
7148 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7149 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7150 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7152 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
7157 # If the user did not use the arguments to specify the items to instantiate,
7158 # then the envvar interface is used. Set only those that are not.
7159 # We use the long form for the default assignment because of an extremely
7160 # bizarre bug on SunOS 4.1.3.
7161 if $ac_need_defaults; then
7162 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7163 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7164 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7167 # Have a temporary directory for convenience. Make it in the build tree
7168 # simply because there is no reason against having it here, and in addition,
7169 # creating and moving files from /tmp can sometimes cause problems.
7170 # Hook for its removal unless debugging.
7171 # Note that there is a small window in which the directory will not be cleaned:
7172 # after its creation but before its name has been assigned to '$tmp'.
7176 trap 'exit_status=$?
7178 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7180 trap 'as_fn_exit 1' 1 2 13 15
7182 # Create a (secure) tmp directory for tmp files.
7185 tmp=`(umask 077 && mktemp
-d "./confXXXXXX") 2>/dev
/null
` &&
7189 tmp=./conf$$-$RANDOM
7190 (umask 077 && mkdir "$tmp")
7191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7194 # Set up the scripts for CONFIG_FILES section.
7195 # No need to generate them if there are no CONFIG_FILES.
7196 # This happens for instance with './config.status config.h'.
7197 if test -n "$CONFIG_FILES"; then
7200 ac_cr=`echo X |
tr X
'\015'`
7201 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7202 # But we know of no other shell where ac_cr would be empty at this
7203 # point, so we can use a bashism as a fallback.
7204 if test "x$ac_cr" = x; then
7205 eval ac_cr=\$\'\\r\'
7207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev
/null
2>/dev
/null
`
7208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7214 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7219 echo "cat >conf$$subs.awk <<_ACEOF" &&
7220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7224 ac_delim_num=`echo "$ac_subst_vars" |
grep -c '^'`
7226 for ac_last_try in false false false false false :; do
7227 . ./conf$$subs.sh ||
7228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$
$subs.
awk |
grep -c X
`
7231 if test $ac_delim_n = $ac_delim_num; then
7233 elif $ac_last_try; then
7234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7242 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7246 s/^/S["/; s/!.*/"]=/
7256 s/\(.\{148\}\)..*/\1/
7258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7270 s/\(.\{148\}\)..*/\1/
7272 s/["\\]/\\&/g; s/^/"/; s/$/"/
7276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7281 ' <conf$$subs.awk | sed '
7286 ' >>$CONFIG_STATUS || ac_write_fail=1
7287 rm -f conf$$subs.awk
7288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7290 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7291 for (key in S) S_is_set[key] = 1
7297 nfields = split(line, field, "@")
7299 len = length(field[1])
7300 for (i = 2; i < nfields; i++) {
7302 keylen = length(key)
7303 if (S_is_set[key]) {
7305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7306 len += length(value) + length(field[++i])
7317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7322 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7323 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7326 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7327 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7328 # trailing colons and then remove the whole line if VPATH becomes empty
7329 # (actually we leave an empty line to preserve line numbers).
7330 if test "x$srcdir" = x.; then
7331 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7350 fi # test -n "$CONFIG_FILES"
7352 # Set up the scripts for CONFIG_HEADERS section.
7353 # No need to generate them if there are no CONFIG_HEADERS.
7354 # This happens for instance with './config.status Makefile'.
7355 if test -n "$CONFIG_HEADERS"; then
7356 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7360 # Transform confdefs.h into an awk script 'defines.awk', embedded as
7361 # here-document in config.status, that substitutes the proper values into
7362 # config.h.in to produce config.h.
7364 # Create a delimiter string that does not exist in confdefs.h, to ease
7365 # handling of long lines.
7367 for ac_last_try in false false :; do
7368 ac_tt=`sed -n "/$ac_delim/p" confdefs.h
`
7369 if test -z "$ac_tt"; then
7371 elif $ac_last_try; then
7372 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7378 # For the awk script, D is an array of macro values keyed by name,
7379 # likewise P contains macro parameters if any. Preserve backslash
7380 # newline sequences.
7382 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7384 s/.\{148\}/&'"$ac_delim"'/g
7387 s/^[ ]*#[ ]*define[ ][ ]*/ /
7394 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7400 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7401 D["\1"]=" \3\\\\\\n"\\/p
7403 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7408 s/.\{148\}/&'"$ac_delim"'/g
7413 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7416 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7418 ' <confdefs.h | sed '
7419 s/'"$ac_delim"'/"\\\
7420 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7423 for (key in D) D_is_set[key] = 1
7426 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7428 split(line, arg, " ")
7429 if (arg[1] == "#") {
7433 defundef = substr(arg[1], 2)
7436 split(mac1, mac2, "(") #)
7438 prefix = substr(line, 1, index(line, defundef) - 1)
7439 if (D_is_set[macro]) {
7440 # Preserve the white space surrounding the "#".
7441 print prefix "define", macro P[macro] D[macro]
7444 # Replace #undef with comments. This is necessary, for example,
7445 # in the case of _POSIX_SOURCE, which is predefined and required
7446 # on some systems where configure will not decide to define it.
7447 if (defundef == "undef") {
7448 print "/*", prefix defundef, macro, "*/"
7456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7457 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7458 fi # test -n "$CONFIG_HEADERS"
7461 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7466 :[FHLC]) ac_mode=$ac_tag; continue;;
7468 case $ac_mode$ac_tag in
7470 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
7471 :[FH]-) ac_tag=-:-;;
7472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7489 -) ac_f="$ac_tmp/stdin";;
7490 *) # Look for the file first in the build tree, then in the source tree
7491 # (if the path is not absolute). The absolute path cannot be DOS-style,
7492 # because $ac_f cannot contain ':'.
7496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7498 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
7500 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" |
sed "s/'/'\\\\\\\\''/g"`;; esac
7501 as_fn_append ac_file_inputs " '$ac_f'"
7504 # Let's still pretend it is 'configure' which instantiates (i.e., don't
7505 # use $as_me), people would be surprised to read:
7506 # /* config.h. Generated by config.status. */
7507 configure_input='Generated from '`
7508 printf "%s\n" "$*" |
sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7510 if test x"$ac_file" != x-; then
7511 configure_input="$ac_file. $configure_input"
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7513 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7515 # Neutralize special characters interpreted by sed in replacement strings.
7516 case $configure_input in #(
7517 *\&* | *\|* | *\\* )
7518 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7519 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7520 *) ac_sed_conf_input=$configure_input;;
7524 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7530 ac_dir=`$as_dirname -- "$ac_file" ||
7531 $as_expr X
"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7532 X
"$ac_file" : 'X\(//\)[^/]' \| \
7533 X
"$ac_file" : 'X\(//\)$' \| \
7534 X
"$ac_file" : 'X\(/\)' \| .
2>/dev
/null ||
7535 printf "%s\n" X
"$ac_file" |
7536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7553 as_dir="$ac_dir"; as_fn_mkdir_p
7557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7559 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
7560 # A ".." for each directory in $ac_dir_suffix.
7561 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
7562 case $ac_top_builddir_sub in
7563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7567 ac_abs_top_builddir=$ac_pwd
7568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7569 # for backward compatibility:
7570 ac_top_builddir=$ac_top_build_prefix
7573 .) # We are building in place.
7575 ac_top_srcdir=$ac_top_builddir_sub
7576 ac_abs_top_srcdir=$ac_pwd ;;
7577 [\\/]* | ?:[\\/]* ) # Absolute name.
7578 ac_srcdir=$srcdir$ac_dir_suffix;
7579 ac_top_srcdir=$srcdir
7580 ac_abs_top_srcdir=$srcdir ;;
7582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7583 ac_top_srcdir=$ac_top_build_prefix$srcdir
7584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7601 [\\/$]* | ?:[\\/]* ) ;;
7602 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7607 # If the template does not know about datarootdir, expand it.
7608 # FIXME: This hack should be removed a few years after 2.60.
7609 ac_datarootdir_hack=; ac_datarootdir_seen=
7620 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7621 *datarootdir*) ac_datarootdir_seen=yes;;
7622 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7624 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7627 ac_datarootdir_hack='
7628 s&@datadir@&$datadir&g
7629 s&@docdir@&$docdir&g
7630 s&@infodir@&$infodir&g
7631 s&@localedir@&$localedir&g
7632 s&@mandir@&$mandir&g
7633 s&\\\${datarootdir}&$datarootdir&g' ;;
7637 # Neutralize VPATH when '$srcdir' = '.'.
7638 # Shell code in configure.ac might set extrasub.
7639 # FIXME: do we really want to maintain this feature?
7640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7641 ac_sed_extra="$ac_vpsub
7644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7647 s|@configure_input@|$ac_sed_conf_input|;t t
7648 s&@top_builddir@&$ac_top_builddir_sub&;t t
7649 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7650 s&@srcdir@&$ac_srcdir&;t t
7651 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7652 s&@top_srcdir@&$ac_top_srcdir&;t t
7653 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7654 s&@builddir@&$ac_builddir&;t t
7655 s&@abs_builddir@&$ac_abs_builddir&;t t
7656 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7657 s&@INSTALL@&$ac_INSTALL&;t t
7658 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7659 $ac_datarootdir_hack
7661 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7667 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7669 which seems to be undefined. Please make sure it is defined" >&5
7670 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7671 which seems to be undefined. Please make sure it is defined" >&2;}
7673 rm -f "$ac_tmp/stdin"
7675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7684 if test x"$ac_file" != x-; then
7686 printf "%s\n" "/* $configure_input */" >&1 \
7687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7688 } >"$ac_tmp/config.h" \
7689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7692 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7695 mv "$ac_tmp/config.h" "$ac_file" \
7696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7699 printf "%s\n" "/* $configure_input */" >&1 \
7700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7701 || as_fn_error $? "could not create -" "$LINENO" 5
7703 # Compute "$ac_file"'s index in $config_headers.
7706 for _am_header in $config_headers :; do
7708 $_am_arg | $_am_arg:* )
7711 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7714 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7715 $as_expr X
"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7716 X
"$_am_arg" : 'X\(//\)[^/]' \| \
7717 X
"$_am_arg" : 'X\(//\)$' \| \
7718 X
"$_am_arg" : 'X\(/\)' \| .
2>/dev
/null ||
7719 printf "%s\n" X
"$_am_arg" |
7720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7736 s/.*/./; q'`/stamp-h$_am_stamp_count
7739 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7740 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7745 case $ac_file$ac_mode in
7746 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7747 # Older Autoconf quotes --file arguments for eval, but not when files
7748 # are listed without --file. Let's play safe and only enable the eval
7749 # if we detect the quoting.
7750 # TODO: see whether this extra hack can be removed once we start
7751 # requiring Autoconf 2.70 or later.
7752 case $CONFIG_FILES in #(
7754 eval set x "$CONFIG_FILES" ;; #(
7756 set x $CONFIG_FILES ;; #(
7761 # Used to flag and report bootstrapping failures.
7765 # Strip MF so we end up with the name of the file.
7766 am_mf=`printf "%s\n" "$am_mf" |
sed -e 's/:.*$//'`
7767 # Check whether this is an Automake generated Makefile which includes
7768 # dependency-tracking related rules and includes.
7769 # Grep'ing the whole file directly is not great: AIX grep has a line
7770 # limit of 2048, but all sed's we know have understand at least 4000.
7771 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7773 am_dirpart=`$as_dirname -- "$am_mf" ||
7774 $as_expr X
"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7775 X
"$am_mf" : 'X\(//\)[^/]' \| \
7776 X
"$am_mf" : 'X\(//\)$' \| \
7777 X
"$am_mf" : 'X\(/\)' \| .
2>/dev
/null ||
7778 printf "%s\n" X
"$am_mf" |
7779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7796 am_filepart=`$as_basename -- "$am_mf" ||
7797 $as_expr X
/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7798 X
"$am_mf" : 'X\(//\)$' \| \
7799 X
"$am_mf" : 'X\(/\)' \| .
2>/dev
/null ||
7800 printf "%s\n" X
/"$am_mf" |
7801 sed '/^.*\/\([^/][^/]*\)\/*$/{
7814 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7815 && sed -e '/# am--include-marker/d' "$am_filepart" \
7816 | $MAKE -f - am--depfiles" >&5
7818 && sed -e '/# am--include-marker/d' "$am_filepart" \
7819 | $MAKE -f - am--depfiles) >&5 2>&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } || am_rc=$?
7824 if test $am_rc -ne 0; then
7825 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7826 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7827 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7828 for automatic dependency tracking. If GNU make was not used, consider
7829 re-running the configure script with MAKE=\"gmake\" (or whatever is
7830 necessary). You can also try re-running configure with the
7831 '--disable-dependency-tracking' option to at least be able to build
7832 the package (albeit without support for automatic dependency tracking).
7833 See 'config.log' for more details" "$LINENO" 5; }
7835 { am_dirpart=; unset am_dirpart;}
7836 { am_filepart=; unset am_filepart;}
7837 { am_mf=; unset am_mf;}
7838 { am_rc=; unset am_rc;}
7839 rm -f conftest-deps.mk
7849 ac_clean_files=$ac_clean_files_save
7851 test $ac_write_fail = 0 ||
7852 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7855 # configure is writing to config.log, and then calls config.status.
7856 # config.status does its own redirection, appending to config.log.
7857 # Unfortunately, on DOS this fails, as config.log is still kept open
7858 # by configure, so config.status won't be able to write to it; its
7859 # output is simply discarded. So we exec the FD to /dev/null,
7860 # effectively closing config.log, so it can be properly (re)opened and
7861 # appended to by config.status. When coming back to configure, we
7862 # need to make the FD available again.
7863 if test "$no_create" != yes; then
7865 ac_config_status_args=
7866 test "$silent" = yes &&
7867 ac_config_status_args="$ac_config_status_args --quiet"
7869 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7871 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7872 # would make configure fail if this is the last instruction.
7873 $ac_cs_success || as_fn_exit 1
7875 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7877 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}