2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for d2x 0.2.6.
5 # Report bugs to <https://github.com/btb/d2x/issues>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 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 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 *) as_dir=$as_dir/ ;;
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: https://github.com/btb/d2x/issues about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
280 SHELL=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir=./$as_dir;;
334 test -d "$as_dir" || eval $as_mkdir_p || {
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 as_val=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status=$1; test $as_status -eq 0 && as_status=1
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
552 mkdir conf$$.dir 2>/dev/null
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 elif ln conf$$.file conf$$ 2>/dev/null; then
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
577 test -d ./-p && rmdir ./-p
582 as_executable_p=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" || exec 7<&0 </dev/null
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602 ac_default_prefix=/usr/local
604 ac_config_libobj_dir=.
611 # Identity of this package.
613 PACKAGE_TARNAME='d2x'
614 PACKAGE_VERSION='0.2.6'
615 PACKAGE_STRING='d2x 0.2.6'
616 PACKAGE_BUGREPORT='https://github.com/btb/d2x/issues'
619 # Factoring default headers for most tests.
620 ac_includes_default="\
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
651 ac_subst_vars='am__EXEEXT_FALSE
657 am__fastdepCCAS_FALSE
715 MAINTAINER_MODE_FALSE
729 INSTALL_STRIP_PROGRAM
784 program_transform_name
798 enable_option_checking
800 enable_maintainer_mode
801 enable_dependency_tracking
818 ac_precious_vars='build_alias
837 # Initialize some variables set by options.
839 ac_init_version=false
840 ac_unrecognized_opts=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
851 program_transform_name=s,x,x,
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 runstatedir='${localstatedir}/run'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 case $ac_dashdash$ac_option in
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: \`$ac_useropt'"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: \`$ac_useropt'"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
994 -help | --help | --hel | --he | -h)
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1124 -runstatedir | --runstatedir | --runstatedi | --runstated \
1125 | --runstate | --runstat | --runsta | --runst | --runs \
1126 | --run | --ru | --r)
1127 ac_prev=runstatedir ;;
1128 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130 | --run=* | --ru=* | --r=*)
1131 runstatedir=$ac_optarg ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1152 -site=* | --site=* | --sit=*)
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: \`$ac_useropt'"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: \`$ac_useropt'"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1208 eval with_$ac_useropt=no ;;
1211 # Obsolete; use --with-x.
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir runstatedir
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1279 # Be sure to have absolute directory names.
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 printf "%s\n" X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures d2x 0.2.6 to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/d2x]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of d2x 0.2.6:";;
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-silent-rules less verbose build output (undo: "make V=1")
1464 --disable-silent-rules verbose build output (undo: "make V=0")
1465 --enable-maintainer-mode
1466 enable make rules and dependencies not useful (and
1467 sometimes confusing) to the casual installer
1468 --enable-dependency-tracking
1469 do not reject slow dependency extractors
1470 --disable-dependency-tracking
1471 speeds up one-time build
1472 --enable-editor Build editor? (not functional)
1473 --enable-macdata Build for mac datafiles
1474 --disable-debug Take out debug symbols, Asserts, Int3, etc
1475 --enable-release Release build. Removes debug/editor things
1476 --enable-linuxjoy do not use the SDL Joystick. (eg for MS Sidewinder)
1477 --disable-fastfileio Disable fast file i/o.
1478 --disable-sdltest Do not try to compile and run a test SDL program
1479 --disable-network Do not build network/serial support
1480 --disable-kalinix Disable the KaliNix driver (unix-only)
1481 --disable-assembler Do not use assembler optimization
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-sharepath=DIR Use DIR for shared game data (unix only) [DATADIR/games/d2x]
1487 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1488 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1489 --with-opengl Build OpenGL support
1490 --with-svga Build SVGALib support
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 PKG_CONFIG path to pkg-config utility
1502 directories to add to pkg-config's search path
1504 path overriding pkg-config's built-in search path
1506 C compiler flags for SDLMIXER, overriding pkg-config
1508 linker flags for SDLMIXER, overriding pkg-config
1510 C compiler flags for PHYSFS, overriding pkg-config
1511 PHYSFS_LIBS linker flags for PHYSFS, overriding pkg-config
1512 CCAS assembler compiler command (defaults to CC)
1513 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1518 Report bugs to <https://github.com/btb/d2x/issues>.
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for configure.gnu first; this name is used for a wrapper for
1565 # Metaconfig's "Configure" on case-insensitive file systems.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1583 generated by GNU Autoconf 2.71
1585 Copyright (C) 2021 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest.beam
1603 if { { ac_try="$ac_compile"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 printf "%s\n" "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext
1625 printf "%s\n" "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1633 } # ac_fn_c_try_compile
1635 # ac_fn_c_try_link LINENO
1636 # -----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded.
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1642 if { { ac_try="$ac_link"
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 printf "%s\n" "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>conftest.err
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest$ac_exeext && {
1661 test "$cross_compiling" = yes ||
1662 test -x conftest$ac_exeext
1667 printf "%s\n" "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674 # interfere with the next link command; also delete a directory that is
1675 # left behind by Apple's compiler. We do this before executing the actions.
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1680 } # ac_fn_c_try_link
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1685 # executables *can* be run.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 printf "%s\n" "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 printf "%s\n" "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }
1713 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1714 printf "%s\n" "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 ac_retval=$ac_status
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 printf %s "checking for $2... " >&6; }
1734 if eval test \${$3+y}
1736 printf %s "(cached) " >&6
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1743 if ac_fn_c_try_compile "$LINENO"
1749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 printf "%s\n" "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_compile
1758 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1759 # --------------------------------------------
1760 # Tries to find the compile-time value of EXPR in a program that includes
1761 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1763 ac_fn_c_compute_int ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if test "$cross_compiling" = yes; then
1767 # Depending upon the size, compute the lo and hi bounds.
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1774 static int test_array [1 - 2 * !(($2) >= 0)];
1776 return test_array [0];
1782 if ac_fn_c_try_compile "$LINENO"
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1792 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1794 return test_array [0];
1800 if ac_fn_c_try_compile "$LINENO"
1802 ac_hi=$ac_mid; break
1804 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1805 if test $ac_lo -le $ac_mid; then
1809 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1820 static int test_array [1 - 2 * !(($2) < 0)];
1822 return test_array [0];
1828 if ac_fn_c_try_compile "$LINENO"
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1838 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1840 return test_array [0];
1846 if ac_fn_c_try_compile "$LINENO"
1848 ac_lo=$ac_mid; break
1850 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1851 if test $ac_mid -le $ac_hi; then
1855 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1865 # Binary search between lo and hi bounds.
1866 while test "x$ac_lo" != "x$ac_hi"; do
1867 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1874 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1876 return test_array [0];
1882 if ac_fn_c_try_compile "$LINENO"
1886 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1891 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1898 static long int longval (void) { return $2; }
1899 static unsigned long int ulongval (void) { return $2; }
1906 FILE *f = fopen ("conftest.val", "w");
1911 long int i = longval ();
1914 fprintf (f, "%ld", i);
1918 unsigned long int i = ulongval ();
1921 fprintf (f, "%lu", i);
1923 /* Do not output a trailing newline, as this causes \r\n confusion
1924 on some platforms. */
1925 return ferror (f) || fclose (f) != 0;
1931 if ac_fn_c_try_run "$LINENO"
1933 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1938 conftest.$ac_objext conftest.beam conftest.$ac_ext
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1945 } # ac_fn_c_compute_int
1947 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1948 # ------------------------------------------------------------------
1949 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1950 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 as_decl_name=`echo $2|sed 's/ *(.*//'`
1955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1956 printf %s "checking whether $as_decl_name is declared... " >&6; }
1957 if eval test \${$3+y}
1959 printf %s "(cached) " >&6
1961 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1962 eval ac_save_FLAGS=\$$6
1963 as_fn_append $6 " $5"
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1970 #ifndef $as_decl_name
1972 (void) $as_decl_use;
1974 (void) $as_decl_name;
1982 if ac_fn_c_try_compile "$LINENO"
1988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1989 eval $6=\$ac_save_FLAGS
1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 printf "%s\n" "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_check_decl
1999 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2000 # -------------------------------------------
2001 # Tests whether TYPE exists after having included INCLUDES, setting cache
2002 # variable VAR accordingly.
2003 ac_fn_c_check_type ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 printf %s "checking for $2... " >&6; }
2008 if eval test \${$3+y}
2010 printf %s "(cached) " >&6
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2025 if ac_fn_c_try_compile "$LINENO"
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"
2045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 printf "%s\n" "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_type
2055 ac_configure_args_raw=
2060 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 as_fn_append ac_configure_args_raw " '$ac_arg'"
2065 case $ac_configure_args_raw in
2069 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2070 ac_unsafe_a="$ac_unsafe_z#~"
2071 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2072 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2075 cat >config.log <<_ACEOF
2076 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake.
2079 It was created by d2x $as_me 0.2.6, which was
2080 generated by GNU Autoconf 2.71. Invocation command line was
2082 $ $0$ac_configure_args_raw
2092 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2098 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2101 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2102 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2103 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2105 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2106 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2107 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 case $as_dir in #(((
2118 *) as_dir=$as_dir/ ;;
2120 printf "%s\n" "PATH: $as_dir"
2136 # Keep a trace of the command line.
2137 # Strip out --no-create and --no-recursion so they do not pile up.
2138 # Strip out --silent because we don't want to record it for future runs.
2139 # Also quote any args containing shell meta-characters.
2140 # Make two passes to allow for proper duplicate-argument suppression.
2144 ac_must_keep_next=false
2150 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152 | -silent | --silent | --silen | --sile | --sil)
2155 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2158 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160 as_fn_append ac_configure_args1 " '$ac_arg'"
2161 if test $ac_must_keep_next = true; then
2162 ac_must_keep_next=false # Got value, back to normal.
2165 *=* | --config-cache | -C | -disable-* | --disable-* \
2166 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168 | -with-* | --with-* | -without-* | --without-* | --x)
2169 case "$ac_configure_args0 " in
2170 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2173 -* ) ac_must_keep_next=true ;;
2176 as_fn_append ac_configure_args " '$ac_arg'"
2181 { ac_configure_args0=; unset ac_configure_args0;}
2182 { ac_configure_args1=; unset ac_configure_args1;}
2184 # When interrupted or exit'd, cleanup temporary files, and complete
2185 # config.log. We remove comments because anyway the quotes in there
2186 # would cause problems or look ugly.
2187 # WARNING: Use '\'' to represent an apostrophe within the trap.
2188 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2189 trap 'exit_status=$?
2192 # Save into config.log some information that might help in debugging.
2196 printf "%s\n" "## ---------------- ##
2197 ## Cache variables. ##
2198 ## ---------------- ##"
2200 # The following way of writing the cache mishandles newlines in values,
2202 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2203 eval ac_val=\$$ac_var
2207 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2208 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2211 _ | IFS | as_nl) ;; #(
2212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2213 *) { eval $ac_var=; unset $ac_var;} ;;
2218 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2219 *${as_nl}ac_space=\ *)
2221 "s/'\''/'\''\\\\'\'''\''/g;
2222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2232 printf "%s\n" "## ----------------- ##
2233 ## Output variables. ##
2234 ## ----------------- ##"
2236 for ac_var in $ac_subst_vars
2238 eval ac_val=\$$ac_var
2240 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 printf "%s\n" "$ac_var='\''$ac_val'\''"
2246 if test -n "$ac_subst_files"; then
2247 printf "%s\n" "## ------------------- ##
2248 ## File substitutions. ##
2249 ## ------------------- ##"
2251 for ac_var in $ac_subst_files
2253 eval ac_val=\$$ac_var
2255 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 printf "%s\n" "$ac_var='\''$ac_val'\''"
2262 if test -s confdefs.h; then
2263 printf "%s\n" "## ----------- ##
2270 test "$ac_signal" != 0 &&
2271 printf "%s\n" "$as_me: caught signal $ac_signal"
2272 printf "%s\n" "$as_me: exit $exit_status"
2274 rm -f core *.core core.conftest.* &&
2275 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2278 for ac_signal in 1 2 13 15; do
2279 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2284 rm -f -r conftest* confdefs.h
2286 printf "%s\n" "/* confdefs.h */" > confdefs.h
2288 # Predefined preprocessor variables.
2290 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2292 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2294 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2296 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2298 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2300 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2303 # Let the site file select an alternate cache file if it wants to.
2304 # Prefer an explicitly selected file to automatically selected ones.
2305 if test -n "$CONFIG_SITE"; then
2306 ac_site_files="$CONFIG_SITE"
2307 elif test "x$prefix" != xNONE; then
2308 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2310 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2313 for ac_site_file in $ac_site_files
2315 case $ac_site_file in #(
2319 ac_site_file=./$ac_site_file ;;
2321 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2324 sed 's/^/| /' "$ac_site_file" >&5
2326 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2328 as_fn_error $? "failed to load site script $ac_site_file
2329 See \`config.log' for more details" "$LINENO" 5; }
2333 if test -r "$cache_file"; then
2334 # Some versions of bash will fail to source /dev/null (special files
2335 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2336 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2338 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2340 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2341 *) . "./$cache_file";;
2345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2346 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2350 # Test code for whether the C compiler supports C89 (global declarations)
2351 ac_c_conftest_c89_globals='
2352 /* Does the compiler advertise C89 conformance?
2353 Do not test the value of __STDC__, because some compilers set it to 0
2354 while being otherwise adequately conformant. */
2355 #if !defined __STDC__
2356 # error "Compiler does not advertise C89 conformance"
2362 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2363 struct buf { int x; };
2364 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2365 static char *e (p, i)
2371 static char *f (char * (*g) (char **, int), char **p, ...)
2376 s = g (p, va_arg (v,int));
2381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2382 function prototypes and stuff, but not \xHH hex character constants.
2383 These do not provoke an error unfortunately, instead are silently treated
2384 as an "x". The following induces an error, until -std is added to get
2385 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2386 array size at least. It is necessary to write \x00 == 0 to get something
2387 that is true only with -std. */
2388 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2391 inside strings and character constants. */
2392 #define FOO(x) '\''x'\''
2393 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2395 int test (int i, double x);
2396 struct s1 {int (*f) (int a);};
2397 struct s2 {int (*f) (double a);};
2398 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2401 # Test code for whether the C compiler supports C89 (body of main).
2402 ac_c_conftest_c89_main='
2403 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2406 # Test code for whether the C compiler supports C99 (global declarations)
2407 ac_c_conftest_c99_globals='
2408 // Does the compiler advertise C99 conformance?
2409 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2410 # error "Compiler does not advertise C99 conformance"
2413 #include <stdbool.h>
2414 extern int puts (const char *);
2415 extern int printf (const char *, ...);
2416 extern int dprintf (int, const char *, ...);
2417 extern void *malloc (size_t);
2419 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2420 // dprintf is used instead of fprintf to avoid needing to declare
2422 #define debug(...) dprintf (2, __VA_ARGS__)
2423 #define showlist(...) puts (#__VA_ARGS__)
2424 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2426 test_varargs_macros (void)
2431 debug ("X = %d\n", x);
2432 showlist (The first, second, and third items.);
2433 report (x>y, "x is %d but y is %d", x, y);
2436 // Check long long types.
2437 #define BIG64 18446744073709551615ull
2438 #define BIG32 4294967295ul
2439 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2441 #error "your preprocessor is broken"
2445 #error "your preprocessor is broken"
2447 static long long int bignum = -9223372036854775807LL;
2448 static unsigned long long int ubignum = BIG64;
2450 struct incomplete_array
2458 const wchar_t *name;
2462 typedef const char *ccp;
2465 test_restrict (ccp restrict text)
2467 // See if C++-style comments work.
2468 // Iterate through items via the restricted pointer.
2469 // Also check for declarations in for loops.
2470 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2475 // Check varargs and va_copy.
2477 test_varargs (const char *format, ...)
2480 va_start (args, format);
2482 va_copy (args_copy, args);
2484 const char *str = "";
2492 case '\''s'\'': // string
2493 str = va_arg (args_copy, const char *);
2495 case '\''d'\'': // int
2496 number = va_arg (args_copy, int);
2498 case '\''f'\'': // float
2499 fnumber = va_arg (args_copy, double);
2508 return *str && number && fnumber;
2512 # Test code for whether the C compiler supports C99 (body of main).
2513 ac_c_conftest_c99_main='
2515 _Bool success = false;
2516 success |= (argc != 0);
2519 if (test_restrict ("String literal") == 0)
2521 char *restrict newvar = "Another string";
2524 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2525 test_varargs_macros ();
2527 // Check flexible array members.
2528 struct incomplete_array *ia =
2529 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2531 for (int i = 0; i < ia->datasize; ++i)
2532 ia->data[i] = i * 1.234;
2534 // Check named initializers.
2535 struct named_init ni = {
2537 .name = L"Test wide string",
2538 .average = 543.34343,
2543 int dynamic_array[ni.number];
2544 dynamic_array[0] = argv[0][0];
2545 dynamic_array[ni.number - 1] = 543;
2547 // work around unused variable warnings
2548 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2549 || dynamic_array[ni.number - 1] != 543);
2552 # Test code for whether the C compiler supports C11 (global declarations)
2553 ac_c_conftest_c11_globals='
2554 // Does the compiler advertise C11 conformance?
2555 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2556 # error "Compiler does not advertise C11 conformance"
2560 char _Alignas (double) aligned_as_double;
2561 char _Alignas (0) no_special_alignment;
2562 extern char aligned_as_int;
2563 char _Alignas (0) _Alignas (int) aligned_as_int;
2568 int_alignment = _Alignof (int),
2569 int_array_alignment = _Alignof (int[100]),
2570 char_alignment = _Alignof (char)
2572 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2575 int _Noreturn does_not_return (void) { for (;;) continue; }
2577 // Check _Static_assert.
2578 struct test_static_assert
2581 _Static_assert (sizeof (int) <= sizeof (long int),
2582 "_Static_assert does not work in struct");
2586 // Check UTF-8 literals.
2587 #define u8 syntax error!
2588 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2590 // Check duplicate typedefs.
2591 typedef long *long_ptr;
2592 typedef long int *long_ptr;
2593 typedef long_ptr long_ptr;
2595 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2599 struct { int i; int j; };
2600 struct { int k; long int l; } w;
2606 # Test code for whether the C compiler supports C11 (body of main).
2607 ac_c_conftest_c11_main='
2608 _Static_assert ((offsetof (struct anonymous, i)
2609 == offsetof (struct anonymous, w.k)),
2610 "Anonymous union alignment botch");
2616 # Test code for whether the C compiler supports C11 (complete).
2617 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2618 ${ac_c_conftest_c99_globals}
2619 ${ac_c_conftest_c11_globals}
2622 main (int argc, char **argv)
2625 ${ac_c_conftest_c89_main}
2626 ${ac_c_conftest_c99_main}
2627 ${ac_c_conftest_c11_main}
2632 # Test code for whether the C compiler supports C99 (complete).
2633 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2634 ${ac_c_conftest_c99_globals}
2637 main (int argc, char **argv)
2640 ${ac_c_conftest_c89_main}
2641 ${ac_c_conftest_c99_main}
2646 # Test code for whether the C compiler supports C89 (complete).
2647 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2650 main (int argc, char **argv)
2653 ${ac_c_conftest_c89_main}
2658 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2659 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2660 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2661 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2662 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2663 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2664 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2665 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2666 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2668 # Auxiliary files required by this configure script.
2669 ac_aux_files="compile missing install-sh config.guess config.sub"
2671 # Locations in which to look for auxiliary files.
2672 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2674 # Search for a directory containing all of the required auxiliary files,
2675 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2676 # If we don't find one directory that contains all the files we need,
2677 # we report the set of missing files from the *first* directory in
2678 # $ac_aux_dir_candidates and give up.
2679 ac_missing_aux_files=""
2680 ac_first_candidate=:
2681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $ac_aux_dir_candidates
2687 case $as_dir in #(((
2690 *) as_dir=$as_dir/ ;;
2694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2695 ac_aux_dir_found=yes
2697 for ac_aux in $ac_aux_files
2699 # As a special case, if "install-sh" is required, that requirement
2700 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2701 # and $ac_install_sh is set appropriately for whichever one is found.
2702 if test x"$ac_aux" = x"install-sh"
2704 if test -f "${as_dir}install-sh"; then
2705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2706 ac_install_sh="${as_dir}install-sh -c"
2707 elif test -f "${as_dir}install.sh"; then
2708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2709 ac_install_sh="${as_dir}install.sh -c"
2710 elif test -f "${as_dir}shtool"; then
2711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2712 ac_install_sh="${as_dir}shtool install -c"
2715 if $ac_first_candidate; then
2716 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2722 if test -f "${as_dir}${ac_aux}"; then
2723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2726 if $ac_first_candidate; then
2727 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2734 if test "$ac_aux_dir_found" = yes; then
2735 ac_aux_dir="$as_dir"
2738 ac_first_candidate=false
2747 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2751 # These three variables are undocumented and unsupported,
2752 # and are intended to be withdrawn in a future Autoconf release.
2753 # They can cause serious problems if a builder's source tree is in a directory
2754 # whose full name contains unusual characters.
2755 if test -f "${ac_aux_dir}config.guess"; then
2756 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2758 if test -f "${ac_aux_dir}config.sub"; then
2759 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2761 if test -f "$ac_aux_dir/configure"; then
2762 ac_configure="$SHELL ${ac_aux_dir}configure"
2765 # Check that the precious variables saved in the cache have kept the same
2767 ac_cache_corrupted=false
2768 for ac_var in $ac_precious_vars; do
2769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2770 eval ac_new_set=\$ac_env_${ac_var}_set
2771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2772 eval ac_new_val=\$ac_env_${ac_var}_value
2773 case $ac_old_set,$ac_new_set in
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2776 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2777 ac_cache_corrupted=: ;;
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2780 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2781 ac_cache_corrupted=: ;;
2784 if test "x$ac_old_val" != "x$ac_new_val"; then
2785 # differences in whitespace do not lead to failure.
2786 ac_old_val_w=`echo x $ac_old_val`
2787 ac_new_val_w=`echo x $ac_new_val`
2788 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2790 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2791 ac_cache_corrupted=:
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2794 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2795 eval $ac_var=\$ac_old_val
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2798 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2800 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2803 # Pass precious variables to config.status.
2804 if test "$ac_new_set" = set; then
2806 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2807 *) ac_arg=$ac_var=$ac_new_val ;;
2809 case " $ac_configure_args " in
2810 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2811 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2815 if $ac_cache_corrupted; then
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2819 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2820 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2821 and start over" "$LINENO" 5
2823 ## -------------------- ##
2824 ## Main body of script. ##
2825 ## -------------------- ##
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 # Make sure we can run config.sub.
2840 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2841 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2844 printf %s "checking build system type... " >&6; }
2845 if test ${ac_cv_build+y}
2847 printf %s "(cached) " >&6
2849 ac_build_alias=$build_alias
2850 test "x$ac_build_alias" = x &&
2851 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2852 test "x$ac_build_alias" = x &&
2853 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2854 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2855 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2859 printf "%s\n" "$ac_cv_build" >&6; }
2860 case $ac_cv_build in
2862 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2865 ac_save_IFS=$IFS; IFS='-'
2871 # Remember, the first character of IFS is used to create $*,
2872 # except with old shells:
2875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2879 printf %s "checking host system type... " >&6; }
2880 if test ${ac_cv_host+y}
2882 printf %s "(cached) " >&6
2884 if test "x$host_alias" = x; then
2885 ac_cv_host=$ac_cv_build
2887 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2888 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2893 printf "%s\n" "$ac_cv_host" >&6; }
2896 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2899 ac_save_IFS=$IFS; IFS='-'
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2913 printf %s "checking target system type... " >&6; }
2914 if test ${ac_cv_target+y}
2916 printf %s "(cached) " >&6
2918 if test "x$target_alias" = x; then
2919 ac_cv_target=$ac_cv_host
2921 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2922 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2927 printf "%s\n" "$ac_cv_target" >&6; }
2928 case $ac_cv_target in
2930 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2932 target=$ac_cv_target
2933 ac_save_IFS=$IFS; IFS='-'
2939 # Remember, the first character of IFS is used to create $*,
2940 # except with old shells:
2943 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2946 # The aliases save the names the user supplied, while $host etc.
2947 # will get canonicalized.
2948 test -n "$target_alias" &&
2949 test "$program_prefix$program_suffix$program_transform_name" = \
2951 program_prefix=${target_alias}-
2953 am__api_version='1.16'
2956 # Find a good install program. We prefer a C program (faster),
2957 # so one script is as good as another. But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 # Reject install programs that cannot install multiple files.
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2971 printf %s "checking for a BSD-compatible install... " >&6; }
2972 if test -z "$INSTALL"; then
2973 if test ${ac_cv_path_install+y}
2975 printf %s "(cached) " >&6
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 case $as_dir in #(((
2984 *) as_dir=$as_dir/ ;;
2986 # Account for fact that we put trailing slashes in our PATH walk.
2989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2990 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2993 # OSF1 and SCO ODT 3.0 have their own names for install.
2994 # Don't use installbsd from OSF since it installs stuff as root
2996 for ac_prog in ginstall scoinst install; do
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2999 if test $ac_prog = install &&
3000 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3001 # AIX install. It has an incompatible calling convention.
3003 elif test $ac_prog = install &&
3004 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3005 # program-specific install script used by HP pwplus--don't use.
3008 rm -rf conftest.one conftest.two conftest.dir
3009 echo one > conftest.one
3010 echo two > conftest.two
3012 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3013 test -s conftest.one && test -s conftest.two &&
3014 test -s conftest.dir/conftest.one &&
3015 test -s conftest.dir/conftest.two
3017 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3030 rm -rf conftest.one conftest.two conftest.dir
3033 if test ${ac_cv_path_install+y}; then
3034 INSTALL=$ac_cv_path_install
3036 # As a last resort, use the slow shell script. Don't cache a
3037 # value for INSTALL within a source directory, because that will
3038 # break other packages using the cache if that directory is
3039 # removed, or if the value is a relative name.
3040 INSTALL=$ac_install_sh
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3044 printf "%s\n" "$INSTALL" >&6; }
3046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3047 # It thinks the first close brace ends the variable substitution.
3048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3055 printf %s "checking whether build environment is sane... " >&6; }
3056 # Reject unsafe characters in $srcdir or the absolute working directory
3057 # name. Accept space and tab only in the latter.
3061 *[\\\"\#\$\&\'\`$am_lf]*)
3062 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3065 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3066 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3069 # Do 'set' in a subshell so we don't clobber the current shell's
3070 # arguments. Must try -L first in case configure is actually a
3071 # symlink; some systems play weird games with the mod time of symlinks
3072 # (eg FreeBSD returns the mod time of the symlink's containing
3076 for am_try in 1 2; do
3077 echo "timestamp, slept: $am_has_slept" > conftest.file
3078 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3079 if test "$*" = "X"; then
3081 set X `ls -t "$srcdir/configure" conftest.file`
3083 if test "$*" != "X $srcdir/configure conftest.file" \
3084 && test "$*" != "X conftest.file $srcdir/configure"; then
3086 # If neither matched, then we have a broken ls. This can happen
3087 # if, for instance, CONFIG_SHELL is bash and it inherits a
3088 # broken ls alias from the environment. This has actually
3089 # happened. Such a system could not be considered "sane".
3090 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3091 alias in your environment" "$LINENO" 5
3093 if test "$2" = conftest.file || test $am_try -eq 2; then
3100 test "$2" = conftest.file
3106 as_fn_error $? "newly created file is older than distributed files!
3107 Check your system clock" "$LINENO" 5
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 printf "%s\n" "yes" >&6; }
3111 # If we didn't sleep, we still need to ensure time stamps of config.status and
3112 # generated files are strictly newer.
3114 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3121 test "$program_prefix" != NONE &&
3122 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3123 # Use a double $ so make ignores it.
3124 test "$program_suffix" != NONE &&
3125 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3126 # Double any \ or $.
3127 # By default was `s,x,x', remove it if useless.
3128 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3129 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3132 # Expand $ac_aux_dir to an absolute path.
3133 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3136 if test x"${MISSING+set}" != xset; then
3137 MISSING="\${SHELL} '$am_aux_dir/missing'"
3139 # Use eval to expand $SHELL
3140 if eval "$MISSING --is-lightweight"; then
3141 am_missing_run="$MISSING "
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3145 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3148 if test x"${install_sh+set}" != xset; then
3151 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3153 install_sh="\${SHELL} $am_aux_dir/install-sh"
3157 # Installed binaries are usually stripped using 'strip' when the user
3158 # run "make install-strip". However 'strip' might not be the right
3159 # tool to use in cross-compilation environments, therefore Automake
3160 # will honor the 'STRIP' environment variable to overrule this program.
3161 if test "$cross_compiling" != no; then
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}strip; ac_word=$2
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 printf %s "checking for $ac_word... " >&6; }
3167 if test ${ac_cv_prog_STRIP+y}
3169 printf %s "(cached) " >&6
3171 if test -n "$STRIP"; then
3172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 case $as_dir in #(((
3181 *) as_dir=$as_dir/ ;;
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3195 STRIP=$ac_cv_prog_STRIP
3196 if test -n "$STRIP"; then
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3198 printf "%s\n" "$STRIP" >&6; }
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 printf "%s\n" "no" >&6; }
3206 if test -z "$ac_cv_prog_STRIP"; then
3208 # Extract the first word of "strip", so it can be a program name with args.
3209 set dummy strip; ac_word=$2
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 printf %s "checking for $ac_word... " >&6; }
3212 if test ${ac_cv_prog_ac_ct_STRIP+y}
3214 printf %s "(cached) " >&6
3216 if test -n "$ac_ct_STRIP"; then
3217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 case $as_dir in #(((
3226 *) as_dir=$as_dir/ ;;
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_ac_ct_STRIP="strip"
3231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3240 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3241 if test -n "$ac_ct_STRIP"; then
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3243 printf "%s\n" "$ac_ct_STRIP" >&6; }
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 printf "%s\n" "no" >&6; }
3249 if test "x$ac_ct_STRIP" = x; then
3252 case $cross_compiling:$ac_tool_warned in
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256 ac_tool_warned=yes ;;
3261 STRIP="$ac_cv_prog_STRIP"
3265 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3269 printf %s "checking for a race-free mkdir -p... " >&6; }
3270 if test -z "$MKDIR_P"; then
3271 if test ${ac_cv_path_mkdir+y}
3273 printf %s "(cached) " >&6
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3279 case $as_dir in #(((
3282 *) as_dir=$as_dir/ ;;
3284 for ac_prog in mkdir gmkdir; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3287 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3288 'mkdir ('*'coreutils) '* | \
3290 'mkdir (fileutils) '4.1*)
3291 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3301 test -d ./--version && rmdir ./--version
3302 if test ${ac_cv_path_mkdir+y}; then
3303 MKDIR_P="$ac_cv_path_mkdir -p"
3305 # As a last resort, use the slow shell script. Don't cache a
3306 # value for MKDIR_P within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the value is a relative name.
3309 MKDIR_P="$ac_install_sh -d"
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3313 printf "%s\n" "$MKDIR_P" >&6; }
3315 for ac_prog in gawk mawk nawk awk
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 printf %s "checking for $ac_word... " >&6; }
3321 if test ${ac_cv_prog_AWK+y}
3323 printf %s "(cached) " >&6
3325 if test -n "$AWK"; then
3326 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 case $as_dir in #(((
3335 *) as_dir=$as_dir/ ;;
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_AWK="$ac_prog"
3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3350 if test -n "$AWK"; then
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3352 printf "%s\n" "$AWK" >&6; }
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 printf "%s\n" "no" >&6; }
3359 test -n "$AWK" && break
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3363 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3365 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3366 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3368 printf %s "(cached) " >&6
3370 cat >conftest.make <<\_ACEOF
3373 @echo '@@@%%%=$(MAKE)=@@@%%%'
3375 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3378 eval ac_cv_prog_make_${ac_make}_set=yes;;
3380 eval ac_cv_prog_make_${ac_make}_set=no;;
3384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 printf "%s\n" "yes" >&6; }
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 printf "%s\n" "no" >&6; }
3391 SET_MAKE="MAKE=${MAKE-make}"
3394 rm -rf .tst 2>/dev/null
3395 mkdir .tst 2>/dev/null
3396 if test -d .tst; then
3401 rmdir .tst 2>/dev/null
3403 # Check whether --enable-silent-rules was given.
3404 if test ${enable_silent_rules+y}
3406 enableval=$enable_silent_rules;
3409 case $enable_silent_rules in # (((
3410 yes) AM_DEFAULT_VERBOSITY=0;;
3411 no) AM_DEFAULT_VERBOSITY=1;;
3412 *) AM_DEFAULT_VERBOSITY=1;;
3414 am_make=${MAKE-make}
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3416 printf %s "checking whether $am_make supports nested variables... " >&6; }
3417 if test ${am_cv_make_support_nested_variables+y}
3419 printf %s "(cached) " >&6
3421 if printf "%s\n" 'TRUE=$(BAR$(V))
3427 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3428 am_cv_make_support_nested_variables=yes
3430 am_cv_make_support_nested_variables=no
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3434 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3435 if test $am_cv_make_support_nested_variables = yes; then
3437 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3439 AM_V=$AM_DEFAULT_VERBOSITY
3440 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3444 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3445 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3446 # is not polluted with repeated "-I."
3447 am__isrc=' -I$(srcdir)'
3448 # test to see if srcdir already configured
3449 if test -f $srcdir/config.status; then
3450 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3454 # test whether we have cygpath
3455 if test -z "$CYGPATH_W"; then
3456 if (cygpath --version) >/dev/null 2>/dev/null; then
3457 CYGPATH_W='cygpath -w'
3464 # Define the identity of the package.
3469 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3472 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3474 # Some tools Automake needs.
3476 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3479 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3482 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3485 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3488 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3490 # For better backward compatibility. To be removed once Automake 1.9.x
3491 # dies out for good. For more background, see:
3492 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3493 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3494 mkdir_p='$(MKDIR_P)'
3496 # We need awk for the "check" target (and possibly the TAP driver). The
3497 # system "awk" is bad on some platforms.
3498 # Always define AMTAR for backward compatibility. Yes, it's still used
3499 # in the wild :-( We should find a proper way to deprecate it ...
3503 # We'll loop over all known methods to create a tar archive until one works.
3504 _am_tools='gnutar pax cpio none'
3506 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3513 # POSIX will say in a future version that running "rm -f" with no argument
3514 # is OK; and we want to be able to make that assumption in our Makefile
3515 # recipes. So use an aggressive probe to check that the usage we want is
3516 # actually supported "in the wild" to an acceptable degree.
3517 # See automake bug#10828.
3518 # To make any issue more visible, cause the running configure to be aborted
3519 # by default if the 'rm' program in use doesn't match our expectations; the
3520 # user can still override this though.
3521 if rm -f && rm -fr && rm -rf; then : OK; else
3525 Your 'rm' program seems unable to run without file operands specified
3526 on the command line, even when the '-f' option is present. This is contrary
3527 to the behaviour of most rm programs out there, and not conforming with
3528 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3530 Please tell bug-automake@gnu.org about your system, including the value
3531 of your $PATH and any error possibly output before this message. This
3532 can help us improve future automake versions.
3535 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3536 echo 'Configuration will proceed anyway, since you have set the' >&2
3537 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3541 Aborting the configuration process, to ensure you take notice of the issue.
3543 You can download and install GNU coreutils to get an 'rm' implementation
3544 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3546 If you want to complete the configuration process using your problematic
3547 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3548 to "yes", and re-run configure.
3551 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3556 ac_config_headers="$ac_config_headers conf.h"
3560 printf "%s\n" "#define D2XMAJOR 0" >>confdefs.h
3563 printf "%s\n" "#define D2XMINOR 2" >>confdefs.h
3566 printf "%s\n" "#define D2XMICRO 6" >>confdefs.h
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3571 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3572 # Check whether --enable-maintainer-mode was given.
3573 if test ${enable_maintainer_mode+y}
3575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3577 USE_MAINTAINER_MODE=no
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3581 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3582 if test $USE_MAINTAINER_MODE = yes; then
3583 MAINTAINER_MODE_TRUE=
3584 MAINTAINER_MODE_FALSE='#'
3586 MAINTAINER_MODE_TRUE='#'
3587 MAINTAINER_MODE_FALSE=
3590 MAINT=$MAINTAINER_MODE_TRUE
3594 #kludge to keep autoconf from adding -g -O2
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3599 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3601 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3602 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3604 printf %s "(cached) " >&6
3606 cat >conftest.make <<\_ACEOF
3609 @echo '@@@%%%=$(MAKE)=@@@%%%'
3611 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3612 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3614 eval ac_cv_prog_make_${ac_make}_set=yes;;
3616 eval ac_cv_prog_make_${ac_make}_set=no;;
3620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3622 printf "%s\n" "yes" >&6; }
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 printf "%s\n" "no" >&6; }
3627 SET_MAKE="MAKE=${MAKE-make}"
3639 DEPDIR="${am__leading_dot}deps"
3641 ac_config_commands="$ac_config_commands depfiles"
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3644 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3645 cat > confinc.mk << 'END'
3647 @echo this is the am__doit target >confinc.out
3652 # BSD make does it like this.
3653 echo '.include "confinc.mk" # ignored' > confmf.BSD
3654 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3655 echo 'include confinc.mk # ignored' > confmf.GNU
3657 for s in GNU BSD; do
3658 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3659 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }
3663 case $?:`cat confinc.out 2>/dev/null` in #(
3664 '0:this is the am__doit target') :
3667 am__include='.include' am__quote='"' ;; #(
3669 am__include='include' am__quote='' ;;
3674 if test "$am__include" != "#"; then
3675 _am_result="yes ($s style)"
3679 rm -f confinc.* confmf.*
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3681 printf "%s\n" "${_am_result}" >&6; }
3683 # Check whether --enable-dependency-tracking was given.
3684 if test ${enable_dependency_tracking+y}
3686 enableval=$enable_dependency_tracking;
3689 if test "x$enable_dependency_tracking" != xno; then
3690 am_depcomp="$ac_aux_dir/depcomp"
3694 if test "x$enable_dependency_tracking" != xno; then
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 printf %s "checking for $ac_word... " >&6; }
3713 if test ${ac_cv_prog_CC+y}
3715 printf %s "(cached) " >&6
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 case $as_dir in #(((
3727 *) as_dir=$as_dir/ ;;
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3742 if test -n "$CC"; then
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 printf "%s\n" "$CC" >&6; }
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 printf "%s\n" "no" >&6; }
3752 if test -z "$ac_cv_prog_CC"; then
3754 # Extract the first word of "gcc", so it can be a program name with args.
3755 set dummy gcc; ac_word=$2
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 printf %s "checking for $ac_word... " >&6; }
3758 if test ${ac_cv_prog_ac_ct_CC+y}
3760 printf %s "(cached) " >&6
3762 if test -n "$ac_ct_CC"; then
3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 case $as_dir in #(((
3772 *) as_dir=$as_dir/ ;;
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_CC="gcc"
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3787 if test -n "$ac_ct_CC"; then
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3789 printf "%s\n" "$ac_ct_CC" >&6; }
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 printf "%s\n" "no" >&6; }
3795 if test "x$ac_ct_CC" = x; then
3798 case $cross_compiling:$ac_tool_warned in
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3810 if test -z "$CC"; then
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}cc; ac_word=$2
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 printf %s "checking for $ac_word... " >&6; }
3816 if test ${ac_cv_prog_CC+y}
3818 printf %s "(cached) " >&6
3820 if test -n "$CC"; then
3821 ac_cv_prog_CC="$CC" # Let the user override the test.
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 case $as_dir in #(((
3830 *) as_dir=$as_dir/ ;;
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_CC="${ac_tool_prefix}cc"
3835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3845 if test -n "$CC"; then
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847 printf "%s\n" "$CC" >&6; }
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 printf "%s\n" "no" >&6; }
3856 if test -z "$CC"; then
3857 # Extract the first word of "cc", so it can be a program name with args.
3858 set dummy cc; ac_word=$2
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 printf %s "checking for $ac_word... " >&6; }
3861 if test ${ac_cv_prog_CC+y}
3863 printf %s "(cached) " >&6
3865 if test -n "$CC"; then
3866 ac_cv_prog_CC="$CC" # Let the user override the test.
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 case $as_dir in #(((
3876 *) as_dir=$as_dir/ ;;
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3880 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3881 ac_prog_rejected=yes
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3892 if test $ac_prog_rejected = yes; then
3893 # We found a bogon in the path, so make sure we never use it.
3894 set dummy $ac_cv_prog_CC
3896 if test $# != 0; then
3897 # We chose a different compiler from the bogus one.
3898 # However, it has the same basename, so the bogon will be chosen
3899 # first if we set CC to just the basename; use the full file name.
3901 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3907 if test -n "$CC"; then
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 printf "%s\n" "$CC" >&6; }
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 printf "%s\n" "no" >&6; }
3917 if test -z "$CC"; then
3918 if test -n "$ac_tool_prefix"; then
3919 for ac_prog in cl.exe
3921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 printf %s "checking for $ac_word... " >&6; }
3925 if test ${ac_cv_prog_CC+y}
3927 printf %s "(cached) " >&6
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 case $as_dir in #(((
3939 *) as_dir=$as_dir/ ;;
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3954 if test -n "$CC"; then
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956 printf "%s\n" "$CC" >&6; }
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3963 test -n "$CC" && break
3966 if test -z "$CC"; then
3968 for ac_prog in cl.exe
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy $ac_prog; ac_word=$2
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 printf %s "checking for $ac_word... " >&6; }
3974 if test ${ac_cv_prog_ac_ct_CC+y}
3976 printf %s "(cached) " >&6
3978 if test -n "$ac_ct_CC"; then
3979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 case $as_dir in #(((
3988 *) as_dir=$as_dir/ ;;
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3992 ac_cv_prog_ac_ct_CC="$ac_prog"
3993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4003 if test -n "$ac_ct_CC"; then
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4005 printf "%s\n" "$ac_ct_CC" >&6; }
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 printf "%s\n" "no" >&6; }
4012 test -n "$ac_ct_CC" && break
4015 if test "x$ac_ct_CC" = x; then
4018 case $cross_compiling:$ac_tool_warned in
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4029 if test -z "$CC"; then
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}clang; ac_word=$2
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 printf %s "checking for $ac_word... " >&6; }
4035 if test ${ac_cv_prog_CC+y}
4037 printf %s "(cached) " >&6
4039 if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 case $as_dir in #(((
4049 *) as_dir=$as_dir/ ;;
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_CC="${ac_tool_prefix}clang"
4054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4064 if test -n "$CC"; then
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 printf "%s\n" "$CC" >&6; }
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 printf "%s\n" "no" >&6; }
4074 if test -z "$ac_cv_prog_CC"; then
4076 # Extract the first word of "clang", so it can be a program name with args.
4077 set dummy clang; ac_word=$2
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 printf %s "checking for $ac_word... " >&6; }
4080 if test ${ac_cv_prog_ac_ct_CC+y}
4082 printf %s "(cached) " >&6
4084 if test -n "$ac_ct_CC"; then
4085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 case $as_dir in #(((
4094 *) as_dir=$as_dir/ ;;
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC="clang"
4099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111 printf "%s\n" "$ac_ct_CC" >&6; }
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 printf "%s\n" "no" >&6; }
4117 if test "x$ac_ct_CC" = x; then
4120 case $cross_compiling:$ac_tool_warned in
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124 ac_tool_warned=yes ;;
4135 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "no acceptable C compiler found in \$PATH
4138 See \`config.log' for more details" "$LINENO" 5; }
4140 # Provide some information about the compiler.
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4144 for ac_option in --version -v -V -qversion -version; do
4145 { { ac_try="$ac_compiler $ac_option >&5"
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 printf "%s\n" "$ac_try_echo"; } >&5
4152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4154 if test -s conftest.err; then
4156 ... rest of stderr output deleted ...
4157 10q' conftest.err >conftest.er1
4158 cat conftest.er1 >&5
4160 rm -f conftest.er1 conftest.err
4161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162 test $ac_status = 0; }
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4176 ac_clean_files_save=$ac_clean_files
4177 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4178 # Try to create an executable without -o first, disregard a.out.
4179 # It will help us diagnose broken compilers, and finding out an intuition
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4182 printf %s "checking whether the C compiler works... " >&6; }
4183 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4185 # The possible output files:
4186 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4189 for ac_file in $ac_files
4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4193 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4198 if { { ac_try="$ac_link_default"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 printf "%s\n" "$ac_try_echo"; } >&5
4205 (eval "$ac_link_default") 2>&5
4207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4210 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4212 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4213 # so that the user can short-circuit this test for compilers unknown to
4215 for ac_file in $ac_files ''
4217 test -f "$ac_file" || continue
4219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4222 # We found the default executable, but exeext='' is most
4226 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4228 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4230 # We set ac_cv_exeext here because the later test for it is not
4231 # safe: cross compilers may not add the suffix if given an `-o'
4232 # argument, so we may need to know it at that point already.
4233 # Even if this section looks crufty: it has the advantage of
4240 test "$ac_cv_exeext" = no && ac_cv_exeext=
4245 if test -z "$ac_file"
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 printf "%s\n" "no" >&6; }
4249 printf "%s\n" "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error 77 "C compiler cannot create executables
4255 See \`config.log' for more details" "$LINENO" 5; }
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4258 printf "%s\n" "yes" >&6; }
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4261 printf %s "checking for C compiler default output file name... " >&6; }
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4263 printf "%s\n" "$ac_file" >&6; }
4264 ac_exeext=$ac_cv_exeext
4266 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4267 ac_clean_files=$ac_clean_files_save
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4269 printf %s "checking for suffix of executables... " >&6; }
4270 if { { ac_try="$ac_link"
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 printf "%s\n" "$ac_try_echo"; } >&5
4277 (eval "$ac_link") 2>&5
4279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280 test $ac_status = 0; }
4282 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4283 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4284 # work properly (i.e., refer to `conftest.exe'), while it won't with
4286 for ac_file in conftest.exe conftest conftest.*; do
4287 test -f "$ac_file" || continue
4289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4290 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4296 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4299 See \`config.log' for more details" "$LINENO" 5; }
4301 rm -f conftest conftest$ac_cv_exeext
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4303 printf "%s\n" "$ac_cv_exeext" >&6; }
4305 rm -f conftest.$ac_ext
4306 EXEEXT=$ac_cv_exeext
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4314 FILE *f = fopen ("conftest.out", "w");
4315 return ferror (f) || fclose (f) != 0;
4321 ac_clean_files="$ac_clean_files conftest.out"
4322 # Check that the compiler produces executables we can run. If not, either
4323 # the compiler is broken, or we cross compile.
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4325 printf %s "checking whether we are cross compiling... " >&6; }
4326 if test "$cross_compiling" != yes; then
4327 { { ac_try="$ac_link"
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 printf "%s\n" "$ac_try_echo"; } >&5
4334 (eval "$ac_link") 2>&5
4336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }
4338 if { ac_try='./conftest$ac_cv_exeext'
4339 { { case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344 printf "%s\n" "$ac_try_echo"; } >&5
4345 (eval "$ac_try") 2>&5
4347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348 test $ac_status = 0; }; }; then
4351 if test "$cross_compiling" = maybe; then
4354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4356 as_fn_error 77 "cannot run C compiled programs.
4357 If you meant to cross compile, use \`--host'.
4358 See \`config.log' for more details" "$LINENO" 5; }
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4363 printf "%s\n" "$cross_compiling" >&6; }
4365 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4366 ac_clean_files=$ac_clean_files_save
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4368 printf %s "checking for suffix of object files... " >&6; }
4369 if test ${ac_cv_objext+y}
4371 printf %s "(cached) " >&6
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4384 rm -f conftest.o conftest.obj
4385 if { { ac_try="$ac_compile"
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 printf "%s\n" "$ac_try_echo"; } >&5
4392 (eval "$ac_compile") 2>&5
4394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }
4397 for ac_file in conftest.o conftest.obj conftest.*; do
4398 test -f "$ac_file" || continue;
4400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4401 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4406 printf "%s\n" "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error $? "cannot compute suffix of object files: cannot compile
4412 See \`config.log' for more details" "$LINENO" 5; }
4414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4417 printf "%s\n" "$ac_cv_objext" >&6; }
4418 OBJEXT=$ac_cv_objext
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4421 printf %s "checking whether the compiler supports GNU C... " >&6; }
4422 if test ${ac_cv_c_compiler_gnu+y}
4424 printf %s "(cached) " >&6
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4440 if ac_fn_c_try_compile "$LINENO"
4446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4451 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 if test $ac_compiler_gnu = yes; then
4459 ac_test_CFLAGS=${CFLAGS+y}
4460 ac_save_CFLAGS=$CFLAGS
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4462 printf %s "checking whether $CC accepts -g... " >&6; }
4463 if test ${ac_cv_prog_cc_g+y}
4465 printf %s "(cached) " >&6
4467 ac_save_c_werror_flag=$ac_c_werror_flag
4468 ac_c_werror_flag=yes
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4482 if ac_fn_c_try_compile "$LINENO"
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4498 if ac_fn_c_try_compile "$LINENO"
4502 ac_c_werror_flag=$ac_save_c_werror_flag
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4515 if ac_fn_c_try_compile "$LINENO"
4519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4524 ac_c_werror_flag=$ac_save_c_werror_flag
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4527 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4528 if test $ac_test_CFLAGS; then
4529 CFLAGS=$ac_save_CFLAGS
4530 elif test $ac_cv_prog_cc_g = yes; then
4531 if test "$GCC" = yes; then
4537 if test "$GCC" = yes; then
4544 if test x$ac_prog_cc_stdc = xno
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4547 printf %s "checking for $CC option to enable C11 features... " >&6; }
4548 if test ${ac_cv_prog_cc_c11+y}
4550 printf %s "(cached) " >&6
4552 ac_cv_prog_cc_c11=no
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 $ac_c_conftest_c11_program
4558 for ac_arg in '' -std=gnu11
4560 CC="$ac_save_CC $ac_arg"
4561 if ac_fn_c_try_compile "$LINENO"
4563 ac_cv_prog_cc_c11=$ac_arg
4565 rm -f core conftest.err conftest.$ac_objext conftest.beam
4566 test "x$ac_cv_prog_cc_c11" != "xno" && break
4568 rm -f conftest.$ac_ext
4572 if test "x$ac_cv_prog_cc_c11" = xno
4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4575 printf "%s\n" "unsupported" >&6; }
4577 if test "x$ac_cv_prog_cc_c11" = x
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4580 printf "%s\n" "none needed" >&6; }
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4583 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4584 CC="$CC $ac_cv_prog_cc_c11"
4586 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4590 if test x$ac_prog_cc_stdc = xno
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4593 printf %s "checking for $CC option to enable C99 features... " >&6; }
4594 if test ${ac_cv_prog_cc_c99+y}
4596 printf %s "(cached) " >&6
4598 ac_cv_prog_cc_c99=no
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 $ac_c_conftest_c99_program
4604 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4606 CC="$ac_save_CC $ac_arg"
4607 if ac_fn_c_try_compile "$LINENO"
4609 ac_cv_prog_cc_c99=$ac_arg
4611 rm -f core conftest.err conftest.$ac_objext conftest.beam
4612 test "x$ac_cv_prog_cc_c99" != "xno" && break
4614 rm -f conftest.$ac_ext
4618 if test "x$ac_cv_prog_cc_c99" = xno
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4621 printf "%s\n" "unsupported" >&6; }
4623 if test "x$ac_cv_prog_cc_c99" = x
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4626 printf "%s\n" "none needed" >&6; }
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4629 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4630 CC="$CC $ac_cv_prog_cc_c99"
4632 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4636 if test x$ac_prog_cc_stdc = xno
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4639 printf %s "checking for $CC option to enable C89 features... " >&6; }
4640 if test ${ac_cv_prog_cc_c89+y}
4642 printf %s "(cached) " >&6
4644 ac_cv_prog_cc_c89=no
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 $ac_c_conftest_c89_program
4650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4652 CC="$ac_save_CC $ac_arg"
4653 if ac_fn_c_try_compile "$LINENO"
4655 ac_cv_prog_cc_c89=$ac_arg
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam
4658 test "x$ac_cv_prog_cc_c89" != "xno" && break
4660 rm -f conftest.$ac_ext
4664 if test "x$ac_cv_prog_cc_c89" = xno
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4667 printf "%s\n" "unsupported" >&6; }
4669 if test "x$ac_cv_prog_cc_c89" = x
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4672 printf "%s\n" "none needed" >&6; }
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4675 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4676 CC="$CC $ac_cv_prog_cc_c89"
4678 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691 ac_cpp='$CPP $CPPFLAGS'
4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4696 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4697 if test ${am_cv_prog_cc_c_o+y}
4699 printf %s "(cached) " >&6
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4712 # Make sure it works both with $CC and with simple cc.
4713 # Following AC_PROG_CC_C_O, we do the test twice because some
4714 # compilers refuse to overwrite an existing .o file with -o,
4715 # though they will create one.
4716 am_cv_prog_cc_c_o=yes
4718 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4719 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } \
4723 && test -f conftest2.$ac_objext; then
4726 am_cv_prog_cc_c_o=no
4730 rm -f core conftest*
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4734 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4735 if test "$am_cv_prog_cc_c_o" != yes; then
4736 # Losing compiler, so override with the script.
4737 # FIXME: It is wrong to rewrite CC.
4738 # But if we don't then we get into trouble of one sort or another.
4739 # A longer-term fix would be to have automake use am__CC in this case,
4740 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4741 CC="$am_aux_dir/compile $CC"
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750 depcc="$CC" am_compiler_list=
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4753 printf %s "checking dependency style of $depcc... " >&6; }
4754 if test ${am_cv_CC_dependencies_compiler_type+y}
4756 printf %s "(cached) " >&6
4758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759 # We make a subdir and do the tests there. Otherwise we can end up
4760 # making bogus files that we don't know about and never remove. For
4761 # instance it was reported that on HP-UX the gcc test will end up
4762 # making a dummy file named 'D' -- because '-MD' means "put the output
4766 # Copy depcomp to subdir because otherwise we won't find it if we're
4767 # using a relative directory.
4768 cp "$am_depcomp" conftest.dir
4770 # We will build objects and dependencies in a subdirectory because
4771 # it helps to detect inapplicable dependency modes. For instance
4772 # both Tru64's cc and ICC support -MD to output dependencies as a
4773 # side effect of compilation, but ICC will put the dependencies in
4774 # the current directory while Tru64 will put them in the object
4778 am_cv_CC_dependencies_compiler_type=none
4779 if test "$am_compiler_list" = ""; then
4780 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4783 case " $depcc " in #(
4784 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4787 for depmode in $am_compiler_list; do
4788 # Setup a source with many dependencies, because some compilers
4789 # like to wrap large dependency lists on column 80 (with \), and
4790 # we should not choose a depcomp mode which is confused by this.
4792 # We need to recreate these files for each test, as the compiler may
4793 # overwrite some of them when testing with obscure command lines.
4794 # This happens at least with the AIX C compiler.
4796 for i in 1 2 3 4 5 6; do
4797 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4798 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4799 # Solaris 10 /bin/sh.
4800 echo '/* dummy */' > sub/conftst$i.h
4802 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4804 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4805 # mode. It turns out that the SunPro C++ compiler does not properly
4806 # handle '-M -o', and we need to detect this. Also, some Intel
4807 # versions had trouble with output in subdirs.
4808 am__obj=sub/conftest.${OBJEXT-o}
4809 am__minus_obj="-o $am__obj"
4812 # This depmode causes a compiler race in universal mode.
4813 test "$am__universal" = false || continue
4816 # After this tag, mechanisms are not by side-effect, so they'll
4817 # only be used when explicitly requested.
4818 if test "x$enable_dependency_tracking" = xyes; then
4824 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4825 # This compiler won't grok '-c -o', but also, the minuso test has
4826 # not run yet. These depmodes are late enough in the game, and
4827 # so weak that their functioning should not be impacted.
4828 am__obj=conftest.${OBJEXT-o}
4833 if depmode=$depmode \
4834 source=sub/conftest.c object=$am__obj \
4835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4836 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4837 >/dev/null 2>conftest.err &&
4838 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4839 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4840 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4841 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4842 # icc doesn't choke on unknown options, it will just issue warnings
4843 # or remarks (even with -Werror). So we grep stderr for any message
4844 # that says an option was ignored or not supported.
4845 # When given -MP, icc 7.0 and 7.1 complain thusly:
4846 # icc: Command line warning: ignoring option '-M'; no argument required
4847 # The diagnosis changed in icc 8.0:
4848 # icc: Command line remark: option '-MP' not supported
4849 if (grep 'ignoring option' conftest.err ||
4850 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4851 am_cv_CC_dependencies_compiler_type=$depmode
4860 am_cv_CC_dependencies_compiler_type=none
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4865 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4866 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4869 test "x$enable_dependency_tracking" != xno \
4870 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4872 am__fastdepCC_FALSE='#'
4874 am__fastdepCC_TRUE='#'
4875 am__fastdepCC_FALSE=
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4881 printf %s "checking for library containing strerror... " >&6; }
4882 if test ${ac_cv_search_strerror+y}
4884 printf %s "(cached) " >&6
4886 ac_func_search_save_LIBS=$LIBS
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4890 /* Override any GCC internal prototype to avoid an error.
4891 Use char because int might match the return type of a GCC
4892 builtin and then its argument prototype would still apply. */
4902 for ac_lib in '' cposix
4904 if test -z "$ac_lib"; then
4905 ac_res="none required"
4908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4910 if ac_fn_c_try_link "$LINENO"
4912 ac_cv_search_strerror=$ac_res
4914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4916 if test ${ac_cv_search_strerror+y}
4921 if test ${ac_cv_search_strerror+y}
4925 ac_cv_search_strerror=no
4928 LIBS=$ac_func_search_save_LIBS
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4931 printf "%s\n" "$ac_cv_search_strerror" >&6; }
4932 ac_res=$ac_cv_search_strerror
4933 if test "$ac_res" != no
4935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4939 if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 printf %s "checking for $ac_word... " >&6; }
4944 if test ${ac_cv_prog_CC+y}
4946 printf %s "(cached) " >&6
4948 if test -n "$CC"; then
4949 ac_cv_prog_CC="$CC" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 case $as_dir in #(((
4958 *) as_dir=$as_dir/ ;;
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4973 if test -n "$CC"; then
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4975 printf "%s\n" "$CC" >&6; }
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 printf "%s\n" "no" >&6; }
4983 if test -z "$ac_cv_prog_CC"; then
4985 # Extract the first word of "gcc", so it can be a program name with args.
4986 set dummy gcc; ac_word=$2
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 printf %s "checking for $ac_word... " >&6; }
4989 if test ${ac_cv_prog_ac_ct_CC+y}
4991 printf %s "(cached) " >&6
4993 if test -n "$ac_ct_CC"; then
4994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 case $as_dir in #(((
5003 *) as_dir=$as_dir/ ;;
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_ac_ct_CC="gcc"
5008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5018 if test -n "$ac_ct_CC"; then
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5020 printf "%s\n" "$ac_ct_CC" >&6; }
5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 printf "%s\n" "no" >&6; }
5026 if test "x$ac_ct_CC" = x; then
5029 case $cross_compiling:$ac_tool_warned in
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5033 ac_tool_warned=yes ;;
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 printf %s "checking for $ac_word... " >&6; }
5046 if test ${ac_cv_prog_RANLIB+y}
5048 printf %s "(cached) " >&6
5050 if test -n "$RANLIB"; then
5051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 case $as_dir in #(((
5060 *) as_dir=$as_dir/ ;;
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5074 RANLIB=$ac_cv_prog_RANLIB
5075 if test -n "$RANLIB"; then
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5077 printf "%s\n" "$RANLIB" >&6; }
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 printf "%s\n" "no" >&6; }
5085 if test -z "$ac_cv_prog_RANLIB"; then
5086 ac_ct_RANLIB=$RANLIB
5087 # Extract the first word of "ranlib", so it can be a program name with args.
5088 set dummy ranlib; ac_word=$2
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 printf %s "checking for $ac_word... " >&6; }
5091 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5093 printf %s "(cached) " >&6
5095 if test -n "$ac_ct_RANLIB"; then
5096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 case $as_dir in #(((
5105 *) as_dir=$as_dir/ ;;
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_ac_ct_RANLIB="ranlib"
5110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5120 if test -n "$ac_ct_RANLIB"; then
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5122 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 printf "%s\n" "no" >&6; }
5128 if test "x$ac_ct_RANLIB" = x; then
5131 case $cross_compiling:$ac_tool_warned in
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135 ac_tool_warned=yes ;;
5137 RANLIB=$ac_ct_RANLIB
5140 RANLIB="$ac_cv_prog_RANLIB"
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}strip; ac_word=$2
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 printf %s "checking for $ac_word... " >&6; }
5148 if test ${ac_cv_prog_STRIP+y}
5150 printf %s "(cached) " >&6
5152 if test -n "$STRIP"; then
5153 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 case $as_dir in #(((
5162 *) as_dir=$as_dir/ ;;
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5176 STRIP=$ac_cv_prog_STRIP
5177 if test -n "$STRIP"; then
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5179 printf "%s\n" "$STRIP" >&6; }
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 printf "%s\n" "no" >&6; }
5187 if test -z "$ac_cv_prog_STRIP"; then
5189 # Extract the first word of "strip", so it can be a program name with args.
5190 set dummy strip; ac_word=$2
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 printf %s "checking for $ac_word... " >&6; }
5193 if test ${ac_cv_prog_ac_ct_STRIP+y}
5195 printf %s "(cached) " >&6
5197 if test -n "$ac_ct_STRIP"; then
5198 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 case $as_dir in #(((
5207 *) as_dir=$as_dir/ ;;
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_STRIP="strip"
5212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5222 if test -n "$ac_ct_STRIP"; then
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5224 printf "%s\n" "$ac_ct_STRIP" >&6; }
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 printf "%s\n" "no" >&6; }
5230 if test "x$ac_ct_STRIP" = x; then
5233 case $cross_compiling:$ac_tool_warned in
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237 ac_tool_warned=yes ;;
5242 STRIP="$ac_cv_prog_STRIP"
5245 if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5247 set dummy ${ac_tool_prefix}ar; ac_word=$2
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 printf %s "checking for $ac_word... " >&6; }
5250 if test ${ac_cv_prog_AR+y}
5252 printf %s "(cached) " >&6
5254 if test -n "$AR"; then
5255 ac_cv_prog_AR="$AR" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 case $as_dir in #(((
5264 *) as_dir=$as_dir/ ;;
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_AR="${ac_tool_prefix}ar"
5269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5279 if test -n "$AR"; then
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5281 printf "%s\n" "$AR" >&6; }
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 printf "%s\n" "no" >&6; }
5289 if test -z "$ac_cv_prog_AR"; then
5291 # Extract the first word of "ar", so it can be a program name with args.
5292 set dummy ar; ac_word=$2
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 printf %s "checking for $ac_word... " >&6; }
5295 if test ${ac_cv_prog_ac_ct_AR+y}
5297 printf %s "(cached) " >&6
5299 if test -n "$ac_ct_AR"; then
5300 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 case $as_dir in #(((
5309 *) as_dir=$as_dir/ ;;
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_AR="ar"
5314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5323 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5324 if test -n "$ac_ct_AR"; then
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5326 printf "%s\n" "$ac_ct_AR" >&6; }
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 printf "%s\n" "no" >&6; }
5332 if test "x$ac_ct_AR" = x; then
5335 case $cross_compiling:$ac_tool_warned in
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352 if test -n "$ac_tool_prefix"; then
5353 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 printf %s "checking for $ac_word... " >&6; }
5357 if test ${ac_cv_prog_CC+y}
5359 printf %s "(cached) " >&6
5361 if test -n "$CC"; then
5362 ac_cv_prog_CC="$CC" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 case $as_dir in #(((
5371 *) as_dir=$as_dir/ ;;
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5386 if test -n "$CC"; then
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5388 printf "%s\n" "$CC" >&6; }
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 printf "%s\n" "no" >&6; }
5396 if test -z "$ac_cv_prog_CC"; then
5398 # Extract the first word of "gcc", so it can be a program name with args.
5399 set dummy gcc; ac_word=$2
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 printf %s "checking for $ac_word... " >&6; }
5402 if test ${ac_cv_prog_ac_ct_CC+y}
5404 printf %s "(cached) " >&6
5406 if test -n "$ac_ct_CC"; then
5407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 case $as_dir in #(((
5416 *) as_dir=$as_dir/ ;;
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_ac_ct_CC="gcc"
5421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5431 if test -n "$ac_ct_CC"; then
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5433 printf "%s\n" "$ac_ct_CC" >&6; }
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 printf "%s\n" "no" >&6; }
5439 if test "x$ac_ct_CC" = x; then
5442 case $cross_compiling:$ac_tool_warned in
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446 ac_tool_warned=yes ;;
5454 if test -z "$CC"; then
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}cc; ac_word=$2
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 printf %s "checking for $ac_word... " >&6; }
5460 if test ${ac_cv_prog_CC+y}
5462 printf %s "(cached) " >&6
5464 if test -n "$CC"; then
5465 ac_cv_prog_CC="$CC" # Let the user override the test.
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 case $as_dir in #(((
5474 *) as_dir=$as_dir/ ;;
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_CC="${ac_tool_prefix}cc"
5479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5489 if test -n "$CC"; then
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5491 printf "%s\n" "$CC" >&6; }
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 printf "%s\n" "no" >&6; }
5500 if test -z "$CC"; then
5501 # Extract the first word of "cc", so it can be a program name with args.
5502 set dummy cc; ac_word=$2
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 printf %s "checking for $ac_word... " >&6; }
5505 if test ${ac_cv_prog_CC+y}
5507 printf %s "(cached) " >&6
5509 if test -n "$CC"; then
5510 ac_cv_prog_CC="$CC" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 case $as_dir in #(((
5520 *) as_dir=$as_dir/ ;;
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5524 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5525 ac_prog_rejected=yes
5529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5536 if test $ac_prog_rejected = yes; then
5537 # We found a bogon in the path, so make sure we never use it.
5538 set dummy $ac_cv_prog_CC
5540 if test $# != 0; then
5541 # We chose a different compiler from the bogus one.
5542 # However, it has the same basename, so the bogon will be chosen
5543 # first if we set CC to just the basename; use the full file name.
5545 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5551 if test -n "$CC"; then
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5553 printf "%s\n" "$CC" >&6; }
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 printf "%s\n" "no" >&6; }
5561 if test -z "$CC"; then
5562 if test -n "$ac_tool_prefix"; then
5563 for ac_prog in cl.exe
5565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 printf %s "checking for $ac_word... " >&6; }
5569 if test ${ac_cv_prog_CC+y}
5571 printf %s "(cached) " >&6
5573 if test -n "$CC"; then
5574 ac_cv_prog_CC="$CC" # Let the user override the test.
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 case $as_dir in #(((
5583 *) as_dir=$as_dir/ ;;
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5598 if test -n "$CC"; then
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5600 printf "%s\n" "$CC" >&6; }
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 printf "%s\n" "no" >&6; }
5607 test -n "$CC" && break
5610 if test -z "$CC"; then
5612 for ac_prog in cl.exe
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 printf %s "checking for $ac_word... " >&6; }
5618 if test ${ac_cv_prog_ac_ct_CC+y}
5620 printf %s "(cached) " >&6
5622 if test -n "$ac_ct_CC"; then
5623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 case $as_dir in #(((
5632 *) as_dir=$as_dir/ ;;
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_ac_ct_CC="$ac_prog"
5637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5647 if test -n "$ac_ct_CC"; then
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5649 printf "%s\n" "$ac_ct_CC" >&6; }
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 printf "%s\n" "no" >&6; }
5656 test -n "$ac_ct_CC" && break
5659 if test "x$ac_ct_CC" = x; then
5662 case $cross_compiling:$ac_tool_warned in
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5673 if test -z "$CC"; then
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}clang; ac_word=$2
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 printf %s "checking for $ac_word... " >&6; }
5679 if test ${ac_cv_prog_CC+y}
5681 printf %s "(cached) " >&6
5683 if test -n "$CC"; then
5684 ac_cv_prog_CC="$CC" # Let the user override the test.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 case $as_dir in #(((
5693 *) as_dir=$as_dir/ ;;
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_CC="${ac_tool_prefix}clang"
5698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5708 if test -n "$CC"; then
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5710 printf "%s\n" "$CC" >&6; }
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 printf "%s\n" "no" >&6; }
5718 if test -z "$ac_cv_prog_CC"; then
5720 # Extract the first word of "clang", so it can be a program name with args.
5721 set dummy clang; ac_word=$2
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 printf %s "checking for $ac_word... " >&6; }
5724 if test ${ac_cv_prog_ac_ct_CC+y}
5726 printf %s "(cached) " >&6
5728 if test -n "$ac_ct_CC"; then
5729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 case $as_dir in #(((
5738 *) as_dir=$as_dir/ ;;
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5742 ac_cv_prog_ac_ct_CC="clang"
5743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5753 if test -n "$ac_ct_CC"; then
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5755 printf "%s\n" "$ac_ct_CC" >&6; }
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 printf "%s\n" "no" >&6; }
5761 if test "x$ac_ct_CC" = x; then
5764 case $cross_compiling:$ac_tool_warned in
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768 ac_tool_warned=yes ;;
5779 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5780 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5781 as_fn_error $? "no acceptable C compiler found in \$PATH
5782 See \`config.log' for more details" "$LINENO" 5; }
5784 # Provide some information about the compiler.
5785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5788 for ac_option in --version -v -V -qversion -version; do
5789 { { ac_try="$ac_compiler $ac_option >&5"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5795 printf "%s\n" "$ac_try_echo"; } >&5
5796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5798 if test -s conftest.err; then
5800 ... rest of stderr output deleted ...
5801 10q' conftest.err >conftest.er1
5802 cat conftest.er1 >&5
5804 rm -f conftest.er1 conftest.err
5805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806 test $ac_status = 0; }
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5810 printf %s "checking whether the compiler supports GNU C... " >&6; }
5811 if test ${ac_cv_c_compiler_gnu+y}
5813 printf %s "(cached) " >&6
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5829 if ac_fn_c_try_compile "$LINENO"
5835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5840 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843 if test $ac_compiler_gnu = yes; then
5848 ac_test_CFLAGS=${CFLAGS+y}
5849 ac_save_CFLAGS=$CFLAGS
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5851 printf %s "checking whether $CC accepts -g... " >&6; }
5852 if test ${ac_cv_prog_cc_g+y}
5854 printf %s "(cached) " >&6
5856 ac_save_c_werror_flag=$ac_c_werror_flag
5857 ac_c_werror_flag=yes
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5871 if ac_fn_c_try_compile "$LINENO"
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5887 if ac_fn_c_try_compile "$LINENO"
5891 ac_c_werror_flag=$ac_save_c_werror_flag
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5904 if ac_fn_c_try_compile "$LINENO"
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5913 ac_c_werror_flag=$ac_save_c_werror_flag
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5916 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5917 if test $ac_test_CFLAGS; then
5918 CFLAGS=$ac_save_CFLAGS
5919 elif test $ac_cv_prog_cc_g = yes; then
5920 if test "$GCC" = yes; then
5926 if test "$GCC" = yes; then
5933 if test x$ac_prog_cc_stdc = xno
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5936 printf %s "checking for $CC option to enable C11 features... " >&6; }
5937 if test ${ac_cv_prog_cc_c11+y}
5939 printf %s "(cached) " >&6
5941 ac_cv_prog_cc_c11=no
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 $ac_c_conftest_c11_program
5947 for ac_arg in '' -std=gnu11
5949 CC="$ac_save_CC $ac_arg"
5950 if ac_fn_c_try_compile "$LINENO"
5952 ac_cv_prog_cc_c11=$ac_arg
5954 rm -f core conftest.err conftest.$ac_objext conftest.beam
5955 test "x$ac_cv_prog_cc_c11" != "xno" && break
5957 rm -f conftest.$ac_ext
5961 if test "x$ac_cv_prog_cc_c11" = xno
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5964 printf "%s\n" "unsupported" >&6; }
5966 if test "x$ac_cv_prog_cc_c11" = x
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5969 printf "%s\n" "none needed" >&6; }
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5972 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5973 CC="$CC $ac_cv_prog_cc_c11"
5975 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5979 if test x$ac_prog_cc_stdc = xno
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5982 printf %s "checking for $CC option to enable C99 features... " >&6; }
5983 if test ${ac_cv_prog_cc_c99+y}
5985 printf %s "(cached) " >&6
5987 ac_cv_prog_cc_c99=no
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991 $ac_c_conftest_c99_program
5993 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5995 CC="$ac_save_CC $ac_arg"
5996 if ac_fn_c_try_compile "$LINENO"
5998 ac_cv_prog_cc_c99=$ac_arg
6000 rm -f core conftest.err conftest.$ac_objext conftest.beam
6001 test "x$ac_cv_prog_cc_c99" != "xno" && break
6003 rm -f conftest.$ac_ext
6007 if test "x$ac_cv_prog_cc_c99" = xno
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6010 printf "%s\n" "unsupported" >&6; }
6012 if test "x$ac_cv_prog_cc_c99" = x
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6015 printf "%s\n" "none needed" >&6; }
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6018 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6019 CC="$CC $ac_cv_prog_cc_c99"
6021 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6025 if test x$ac_prog_cc_stdc = xno
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6028 printf %s "checking for $CC option to enable C89 features... " >&6; }
6029 if test ${ac_cv_prog_cc_c89+y}
6031 printf %s "(cached) " >&6
6033 ac_cv_prog_cc_c89=no
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 $ac_c_conftest_c89_program
6039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6041 CC="$ac_save_CC $ac_arg"
6042 if ac_fn_c_try_compile "$LINENO"
6044 ac_cv_prog_cc_c89=$ac_arg
6046 rm -f core conftest.err conftest.$ac_objext conftest.beam
6047 test "x$ac_cv_prog_cc_c89" != "xno" && break
6049 rm -f conftest.$ac_ext
6053 if test "x$ac_cv_prog_cc_c89" = xno
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6056 printf "%s\n" "unsupported" >&6; }
6058 if test "x$ac_cv_prog_cc_c89" = x
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6061 printf "%s\n" "none needed" >&6; }
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6064 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6065 CC="$CC $ac_cv_prog_cc_c89"
6067 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6073 ac_cpp='$CPP $CPPFLAGS'
6074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6085 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6086 if test ${am_cv_prog_cc_c_o+y}
6088 printf %s "(cached) " >&6
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6101 # Make sure it works both with $CC and with simple cc.
6102 # Following AC_PROG_CC_C_O, we do the test twice because some
6103 # compilers refuse to overwrite an existing .o file with -o,
6104 # though they will create one.
6105 am_cv_prog_cc_c_o=yes
6107 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6108 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } \
6112 && test -f conftest2.$ac_objext; then
6115 am_cv_prog_cc_c_o=no
6119 rm -f core conftest*
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6123 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6124 if test "$am_cv_prog_cc_c_o" != yes; then
6125 # Losing compiler, so override with the script.
6126 # FIXME: It is wrong to rewrite CC.
6127 # But if we don't then we get into trouble of one sort or another.
6128 # A longer-term fix would be to have automake use am__CC in this case,
6129 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6130 CC="$am_aux_dir/compile $CC"
6133 ac_cpp='$CPP $CPPFLAGS'
6134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139 depcc="$CC" am_compiler_list=
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6142 printf %s "checking dependency style of $depcc... " >&6; }
6143 if test ${am_cv_CC_dependencies_compiler_type+y}
6145 printf %s "(cached) " >&6
6147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6148 # We make a subdir and do the tests there. Otherwise we can end up
6149 # making bogus files that we don't know about and never remove. For
6150 # instance it was reported that on HP-UX the gcc test will end up
6151 # making a dummy file named 'D' -- because '-MD' means "put the output
6155 # Copy depcomp to subdir because otherwise we won't find it if we're
6156 # using a relative directory.
6157 cp "$am_depcomp" conftest.dir
6159 # We will build objects and dependencies in a subdirectory because
6160 # it helps to detect inapplicable dependency modes. For instance
6161 # both Tru64's cc and ICC support -MD to output dependencies as a
6162 # side effect of compilation, but ICC will put the dependencies in
6163 # the current directory while Tru64 will put them in the object
6167 am_cv_CC_dependencies_compiler_type=none
6168 if test "$am_compiler_list" = ""; then
6169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6172 case " $depcc " in #(
6173 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6176 for depmode in $am_compiler_list; do
6177 # Setup a source with many dependencies, because some compilers
6178 # like to wrap large dependency lists on column 80 (with \), and
6179 # we should not choose a depcomp mode which is confused by this.
6181 # We need to recreate these files for each test, as the compiler may
6182 # overwrite some of them when testing with obscure command lines.
6183 # This happens at least with the AIX C compiler.
6185 for i in 1 2 3 4 5 6; do
6186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6187 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6188 # Solaris 10 /bin/sh.
6189 echo '/* dummy */' > sub/conftst$i.h
6191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6193 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6194 # mode. It turns out that the SunPro C++ compiler does not properly
6195 # handle '-M -o', and we need to detect this. Also, some Intel
6196 # versions had trouble with output in subdirs.
6197 am__obj=sub/conftest.${OBJEXT-o}
6198 am__minus_obj="-o $am__obj"
6201 # This depmode causes a compiler race in universal mode.
6202 test "$am__universal" = false || continue
6205 # After this tag, mechanisms are not by side-effect, so they'll
6206 # only be used when explicitly requested.
6207 if test "x$enable_dependency_tracking" = xyes; then
6213 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6214 # This compiler won't grok '-c -o', but also, the minuso test has
6215 # not run yet. These depmodes are late enough in the game, and
6216 # so weak that their functioning should not be impacted.
6217 am__obj=conftest.${OBJEXT-o}
6222 if depmode=$depmode \
6223 source=sub/conftest.c object=$am__obj \
6224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6225 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6226 >/dev/null 2>conftest.err &&
6227 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6229 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6231 # icc doesn't choke on unknown options, it will just issue warnings
6232 # or remarks (even with -Werror). So we grep stderr for any message
6233 # that says an option was ignored or not supported.
6234 # When given -MP, icc 7.0 and 7.1 complain thusly:
6235 # icc: Command line warning: ignoring option '-M'; no argument required
6236 # The diagnosis changed in icc 8.0:
6237 # icc: Command line remark: option '-MP' not supported
6238 if (grep 'ignoring option' conftest.err ||
6239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6240 am_cv_CC_dependencies_compiler_type=$depmode
6249 am_cv_CC_dependencies_compiler_type=none
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6254 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6258 test "x$enable_dependency_tracking" != xno \
6259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6261 am__fastdepCC_FALSE='#'
6263 am__fastdepCC_TRUE='#'
6264 am__fastdepCC_FALSE=
6268 for ac_prog in nasm nasmw
6270 # Extract the first word of "$ac_prog", so it can be a program name with args.
6271 set dummy $ac_prog; ac_word=$2
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 printf %s "checking for $ac_word... " >&6; }
6274 if test ${ac_cv_path_NASM+y}
6276 printf %s "(cached) " >&6
6280 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 case $as_dir in #(((
6290 *) as_dir=$as_dir/ ;;
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6294 ac_cv_path_NASM="$as_dir$ac_word$ac_exec_ext"
6295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6305 NASM=$ac_cv_path_NASM
6306 if test -n "$NASM"; then
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
6308 printf "%s\n" "$NASM" >&6; }
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 printf "%s\n" "no" >&6; }
6315 test -n "$NASM" && break
6317 test -n "$NASM" || NASM="no"
6319 ac_header= ac_cache=
6320 for ac_item in $ac_header_c_list
6322 if test $ac_cache; then
6323 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6324 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6325 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6327 ac_header= ac_cache=
6328 elif test $ac_header; then
6342 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6345 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6349 printf %s "checking whether byte ordering is bigendian... " >&6; }
6350 if test ${ac_cv_c_bigendian+y}
6352 printf %s "(cached) " >&6
6354 ac_cv_c_bigendian=unknown
6355 # See if we're dealing with a universal compiler.
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 #ifndef __APPLE_CC__
6359 not a universal capable compiler
6364 if ac_fn_c_try_compile "$LINENO"
6367 # Check for potential -arch flags. It is not universal unless
6368 # there are at least two -arch flags with different values.
6371 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6372 if test -n "$ac_prev"; then
6374 i?86 | x86_64 | ppc | ppc64)
6375 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6378 ac_cv_c_bigendian=universal
6384 elif test "x$ac_word" = "x-arch"; then
6389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6390 if test $ac_cv_c_bigendian = unknown; then
6391 # See if sys/param.h defines the BYTE_ORDER macro.
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 #include <sys/types.h>
6395 #include <sys/param.h>
6400 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6401 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6410 if ac_fn_c_try_compile "$LINENO"
6412 # It does; now see whether it defined to BIG_ENDIAN or not.
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 #include <sys/types.h>
6416 #include <sys/param.h>
6421 #if BYTE_ORDER != BIG_ENDIAN
6429 if ac_fn_c_try_compile "$LINENO"
6431 ac_cv_c_bigendian=yes
6433 ac_cv_c_bigendian=no
6435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6439 if test $ac_cv_c_bigendian = unknown; then
6440 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6448 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6456 if ac_fn_c_try_compile "$LINENO"
6458 # It does; now see whether it defined to _BIG_ENDIAN or not.
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6474 if ac_fn_c_try_compile "$LINENO"
6476 ac_cv_c_bigendian=yes
6478 ac_cv_c_bigendian=no
6480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6484 if test $ac_cv_c_bigendian = unknown; then
6485 # Compile a test program.
6486 if test "$cross_compiling" = yes
6488 # Try to guess by grepping values from an object file.
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 unsigned short int ascii_mm[] =
6492 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6493 unsigned short int ascii_ii[] =
6494 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6495 int use_ascii (int i) {
6496 return ascii_mm[i] + ascii_ii[i];
6498 unsigned short int ebcdic_ii[] =
6499 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6500 unsigned short int ebcdic_mm[] =
6501 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6502 int use_ebcdic (int i) {
6503 return ebcdic_mm[i] + ebcdic_ii[i];
6510 return use_ascii (foo) == use_ebcdic (foo);
6515 if ac_fn_c_try_compile "$LINENO"
6517 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6518 ac_cv_c_bigendian=yes
6520 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6521 if test "$ac_cv_c_bigendian" = unknown; then
6522 ac_cv_c_bigendian=no
6524 # finding both strings is unlikely to happen, but who knows?
6525 ac_cv_c_bigendian=unknown
6529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 $ac_includes_default
6538 /* Are we little or big endian? From Harbison&Steele. */
6542 char c[sizeof (long int)];
6545 return u.c[sizeof (long int) - 1] == 1;
6551 if ac_fn_c_try_run "$LINENO"
6553 ac_cv_c_bigendian=no
6555 ac_cv_c_bigendian=yes
6557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6558 conftest.$ac_objext conftest.beam conftest.$ac_ext
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6564 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
6565 case $ac_cv_c_bigendian in #(
6567 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6573 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6577 as_fn_error $? "unknown endianness
6578 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6581 # The cast to long int works around a bug in the HP C Compiler
6582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6584 # This bug is HP SR number 8606223364.
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6586 printf %s "checking size of void *... " >&6; }
6587 if test ${ac_cv_sizeof_void_p+y}
6589 printf %s "(cached) " >&6
6591 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
6595 if test "$ac_cv_type_void_p" = yes; then
6596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6598 as_fn_error 77 "cannot compute sizeof (void *)
6599 See \`config.log' for more details" "$LINENO" 5; }
6601 ac_cv_sizeof_void_p=0
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6607 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
6611 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
6618 printf "%s\n" "#define WORDS_NEED_ALIGNMENT /**/" >>confdefs.h
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cygwin found, setting -mno-cygwin" >&5
6626 printf "%s\n" "$as_me: WARNING: Cygwin found, setting -mno-cygwin" >&2;}
6627 CFLAGS="-mno-cygwin $CFLAGS"
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5
6636 printf %s "checking whether C compiler accepts -no-cpp-precomp... " >&6; }
6637 if test ${ax_cv_check_cflags___no_cpp_precomp+y}
6639 printf %s "(cached) " >&6
6642 ax_check_save_flags=$CFLAGS
6643 CFLAGS="$CFLAGS -no-cpp-precomp"
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6655 if ac_fn_c_try_compile "$LINENO"
6657 ax_cv_check_cflags___no_cpp_precomp=yes
6659 ax_cv_check_cflags___no_cpp_precomp=no
6661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6662 CFLAGS=$ax_check_save_flags
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___no_cpp_precomp" >&5
6665 printf "%s\n" "$ax_cv_check_cflags___no_cpp_precomp" >&6; }
6666 if test "x$ax_cv_check_cflags___no_cpp_precomp" = xyes
6668 CFLAGS="$CFLAGS -no-cpp-precomp"
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
6680 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
6681 if test ${ac_cv_c_undeclared_builtin_options+y}
6683 printf %s "(cached) " >&6
6685 ac_save_CFLAGS=$CFLAGS
6686 ac_cv_c_undeclared_builtin_options='cannot detect'
6687 for ac_arg in '' -fno-builtin; do
6688 CFLAGS="$ac_save_CFLAGS $ac_arg"
6689 # This test program should *not* compile successfully.
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6701 if ac_fn_c_try_compile "$LINENO"
6705 # This test program should compile successfully.
6706 # No library function is consistently available on
6707 # freestanding implementations, so test against a dummy
6708 # declaration. Include always-available headers on the
6709 # off chance that they somehow elicit warnings.
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6716 extern void ac_decl (int, char *);
6721 (void) ac_decl (0, (char *) 0);
6728 if ac_fn_c_try_compile "$LINENO"
6730 if test x"$ac_arg" = x
6732 ac_cv_c_undeclared_builtin_options='none needed'
6734 ac_cv_c_undeclared_builtin_options=$ac_arg
6738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6742 CFLAGS=$ac_save_CFLAGS
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6746 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6747 case $ac_cv_c_undeclared_builtin_options in #(
6749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6750 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6751 as_fn_error $? "cannot make $CC report undeclared builtins
6752 See \`config.log' for more details" "$LINENO" 5; } ;; #(
6754 ac_c_undeclared_builtin_options='' ;; #(
6756 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6759 ac_fn_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h>
6760 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6761 if test "x$ac_cv_have_decl_nanosleep" = xyes
6767 printf "%s\n" "#define HAVE_DECL_NANOSLEEP $ac_have_decl" >>confdefs.h
6769 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/time.h>
6771 if test "x$ac_cv_type_struct_timespec" = xyes
6774 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
6778 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "#include <sys/time.h>
6780 if test "x$ac_cv_type_struct_timeval" = xyes
6783 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
6789 if test x$MINGW32 = xyes; then
6798 if test x$MACOSX = xyes; then
6807 if test x$MSDOS = xyes; then
6816 test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
6817 test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}"
6819 default_sharepath="$datadir/games/$PACKAGE"
6821 CFLAGS="-Wall -Werror -Wno-deprecated-declarations -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Wno-unused-value -Wno-address $CFLAGS"
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-ignored-attributes" >&5
6823 printf %s "checking whether C compiler accepts -Wno-ignored-attributes... " >&6; }
6824 if test ${ax_cv_check_cflags___Wno_ignored_attributes+y}
6826 printf %s "(cached) " >&6
6829 ax_check_save_flags=$CFLAGS
6830 CFLAGS="$CFLAGS -Wno-ignored-attributes"
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6842 if ac_fn_c_try_compile "$LINENO"
6844 ax_cv_check_cflags___Wno_ignored_attributes=yes
6846 ax_cv_check_cflags___Wno_ignored_attributes=no
6848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6849 CFLAGS=$ax_check_save_flags
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_ignored_attributes" >&5
6852 printf "%s\n" "$ax_cv_check_cflags___Wno_ignored_attributes" >&6; }
6853 if test "x$ax_cv_check_cflags___Wno_ignored_attributes" = xyes
6855 CFLAGS="$CFLAGS -Wno-ignored-attributes"
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-unused-but-set-variable" >&5
6861 printf %s "checking whether C compiler accepts -Wno-unused-but-set-variable... " >&6; }
6862 if test ${ax_cv_check_cflags___Wno_unused_but_set_variable+y}
6864 printf %s "(cached) " >&6
6867 ax_check_save_flags=$CFLAGS
6868 CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6880 if ac_fn_c_try_compile "$LINENO"
6882 ax_cv_check_cflags___Wno_unused_but_set_variable=yes
6884 ax_cv_check_cflags___Wno_unused_but_set_variable=no
6886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6887 CFLAGS=$ax_check_save_flags
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_unused_but_set_variable" >&5
6890 printf "%s\n" "$ax_cv_check_cflags___Wno_unused_but_set_variable" >&6; }
6891 if test "x$ax_cv_check_cflags___Wno_unused_but_set_variable" = xyes
6893 CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-address-of-packed-member" >&5
6899 printf %s "checking whether C compiler accepts -Wno-address-of-packed-member... " >&6; }
6900 if test ${ax_cv_check_cflags___Wno_address_of_packed_member+y}
6902 printf %s "(cached) " >&6
6905 ax_check_save_flags=$CFLAGS
6906 CFLAGS="$CFLAGS -Wno-address-of-packed-member"
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6918 if ac_fn_c_try_compile "$LINENO"
6920 ax_cv_check_cflags___Wno_address_of_packed_member=yes
6922 ax_cv_check_cflags___Wno_address_of_packed_member=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6925 CFLAGS=$ax_check_save_flags
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_address_of_packed_member" >&5
6928 printf "%s\n" "$ax_cv_check_cflags___Wno_address_of_packed_member" >&6; }
6929 if test "x$ax_cv_check_cflags___Wno_address_of_packed_member" = xyes
6931 CFLAGS="$CFLAGS -Wno-address-of-packed-member"
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-stringop-truncation" >&5
6937 printf %s "checking whether C compiler accepts -Wno-stringop-truncation... " >&6; }
6938 if test ${ax_cv_check_cflags___Wno_stringop_truncation+y}
6940 printf %s "(cached) " >&6
6943 ax_check_save_flags=$CFLAGS
6944 CFLAGS="$CFLAGS -Wno-stringop-truncation"
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6956 if ac_fn_c_try_compile "$LINENO"
6958 ax_cv_check_cflags___Wno_stringop_truncation=yes
6960 ax_cv_check_cflags___Wno_stringop_truncation=no
6962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6963 CFLAGS=$ax_check_save_flags
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_stringop_truncation" >&5
6966 printf "%s\n" "$ax_cv_check_cflags___Wno_stringop_truncation" >&6; }
6967 if test "x$ax_cv_check_cflags___Wno_stringop_truncation" = xyes
6969 CFLAGS="$CFLAGS -Wno-stringop-truncation"
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-truncation" >&5
6975 printf %s "checking whether C compiler accepts -Wno-format-truncation... " >&6; }
6976 if test ${ax_cv_check_cflags___Wno_format_truncation+y}
6978 printf %s "(cached) " >&6
6981 ax_check_save_flags=$CFLAGS
6982 CFLAGS="$CFLAGS -Wno-format-truncation"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6994 if ac_fn_c_try_compile "$LINENO"
6996 ax_cv_check_cflags___Wno_format_truncation=yes
6998 ax_cv_check_cflags___Wno_format_truncation=no
7000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7001 CFLAGS=$ax_check_save_flags
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_format_truncation" >&5
7004 printf "%s\n" "$ax_cv_check_cflags___Wno_format_truncation" >&6; }
7005 if test "x$ax_cv_check_cflags___Wno_format_truncation" = xyes
7007 CFLAGS="$CFLAGS -Wno-format-truncation"
7013 # Check whether --enable-editor was given.
7014 if test ${enable_editor+y}
7016 enableval=$enable_editor;
7020 # Check whether --enable-macdata was given.
7021 if test ${enable_macdata+y}
7023 enableval=$enable_macdata;
7026 if test x$enable_macdata = xyes; then
7028 printf "%s\n" "#define MACDATA /**/" >>confdefs.h
7030 D2X_FEATURES="macdata ${D2X_FEATURES}"
7032 if test x$enable_macdata = xyes; then
7041 # Check whether --enable-debug was given.
7042 if test ${enable_debug+y}
7044 enableval=$enable_debug;
7047 if test x$enable_debug = xno; then
7049 printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
7051 CFLAGS="-O2 $CFLAGS"
7054 D2X_FEATURES="debug ${D2X_FEATURES}"
7057 # Check whether --enable-release was given.
7058 if test ${enable_release+y}
7060 enableval=$enable_release;
7063 if test x$enable_release = xyes; then
7065 printf "%s\n" "#define RELEASE /**/" >>confdefs.h
7067 D2X_FEATURES="release ${D2X_FEATURES}"
7070 # Check whether --enable-linuxjoy was given.
7071 if test ${enable_linuxjoy+y}
7073 enableval=$enable_linuxjoy;
7076 if test x$enable_linuxjoy = xyes; then
7078 printf "%s\n" "#define USE_LINUX_JOY /**/" >>confdefs.h
7080 D2X_FEATURES="linuxjoy ${D2X_FEATURES}"
7082 if test x$enable_linuxjoy = xyes; then
7084 USE_LINUX_JOY_FALSE='#'
7086 USE_LINUX_JOY_TRUE='#'
7087 USE_LINUX_JOY_FALSE=
7091 # Check whether --enable-fastfileio was given.
7092 if test ${enable_fastfileio+y}
7094 enableval=$enable_fastfileio;
7097 if test x$enable_fastfileio != xno; then
7098 if test x$ac_cv_c_bigendian = xyes; then
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: big-endian cpu detected. disabling fastfileio" >&5
7100 printf "%s\n" "$as_me: WARNING: big-endian cpu detected. disabling fastfileio" >&2;}
7101 enable_fastfileio="no";
7103 if test $ac_cv_sizeof_void_p != 4; then
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pointers not 32 bits. disabling fastfileio" >&5
7105 printf "%s\n" "$as_me: WARNING: pointers not 32 bits. disabling fastfileio" >&2;}
7106 enable_fastfileio="no";
7109 if test x$enable_fastfileio != xno; then
7111 printf "%s\n" "#define FAST_FILE_IO /**/" >>confdefs.h
7113 D2X_FEATURES="fastfileio ${D2X_FEATURES}"
7117 # Check whether --with-sharepath was given.
7118 if test ${with_sharepath+y}
7120 withval=$with_sharepath; sharepath=$withval
7125 if test "x$sharepath" = "xauto" -o "x$sharepath" = "xyes" -o "x$sharepath" = "x"; then
7126 sharepath="$default_sharepath"
7129 eval sharepath=$sharepath
7130 eval sharepath=$sharepath
7132 printf "%s\n" "#define SHAREPATH \"$sharepath\"" >>confdefs.h
7138 if test x$MSDOS = xyes; then
7139 TARGETS="d2x$ac_cv_exeext $TARGETS"
7140 if test x$enable_editor = xyes; then
7141 TARGETS="miner$ac_cv_exeext $TARGETS"
7145 CFLAGS="-pipe $CFLAGS"
7148 # Check whether --with-sdl-prefix was given.
7149 if test ${with_sdl_prefix+y}
7151 withval=$with_sdl_prefix; sdl_prefix="$withval"
7157 # Check whether --with-sdl-exec-prefix was given.
7158 if test ${with_sdl_exec_prefix+y}
7160 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7165 # Check whether --enable-sdltest was given.
7166 if test ${enable_sdltest+y}
7168 enableval=$enable_sdltest;
7174 if test x$sdl_exec_prefix != x ; then
7175 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7176 if test x${SDL_CONFIG+set} != xset ; then
7177 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7180 if test x$sdl_prefix != x ; then
7181 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
7182 if test x${SDL_CONFIG+set} != xset ; then
7183 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7187 as_save_PATH="$PATH"
7188 if test "x$prefix" != xNONE; then
7189 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7191 # Extract the first word of "sdl-config", so it can be a program name with args.
7192 set dummy sdl-config; ac_word=$2
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 printf %s "checking for $ac_word... " >&6; }
7195 if test ${ac_cv_path_SDL_CONFIG+y}
7197 printf %s "(cached) " >&6
7201 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 case $as_dir in #(((
7211 *) as_dir=$as_dir/ ;;
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7215 ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
7216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7223 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7227 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7228 if test -n "$SDL_CONFIG"; then
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
7230 printf "%s\n" "$SDL_CONFIG" >&6; }
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 printf "%s\n" "no" >&6; }
7237 PATH="$as_save_PATH"
7238 min_sdl_version=1.1.0
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
7240 printf %s "checking for SDL - version >= $min_sdl_version... " >&6; }
7242 if test "$SDL_CONFIG" = "no" ; then
7245 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
7246 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
7248 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
7249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7250 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
7251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7252 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7253 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7254 if test "x$enable_sdltest" = "xyes" ; then
7255 ac_save_CFLAGS="$CFLAGS"
7256 ac_save_CXXFLAGS="$CXXFLAGS"
7257 ac_save_LIBS="$LIBS"
7258 CFLAGS="$CFLAGS $SDL_CFLAGS"
7259 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7260 LIBS="$LIBS $SDL_LIBS"
7262 if test "$cross_compiling" = yes
7264 echo $ac_n "cross compiling; assumed OK... $ac_c"
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7275 my_strdup (char *str)
7281 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7282 strcpy (new_str, str);
7290 int main (int argc, char *argv[])
7292 int major, minor, micro;
7295 /* This hangs on some systems (?)
7296 system ("touch conf.sdltest");
7298 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7300 /* HP/UX 9 (%@#!) writes to sscanf strings */
7301 tmp_version = my_strdup("$min_sdl_version");
7302 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7303 printf("%s, bad version string\n", "$min_sdl_version");
7307 if (($sdl_major_version > major) ||
7308 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7309 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7315 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7316 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7317 printf("*** best to upgrade to the required version.\n");
7318 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7319 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7320 printf("*** config.cache before re-running configure\n");
7327 if ac_fn_c_try_run "$LINENO"
7333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7334 conftest.$ac_objext conftest.beam conftest.$ac_ext
7337 CFLAGS="$ac_save_CFLAGS"
7338 CXXFLAGS="$ac_save_CXXFLAGS"
7339 LIBS="$ac_save_LIBS"
7342 if test "x$no_sdl" = x ; then
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7344 printf "%s\n" "yes" >&6; }
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 printf "%s\n" "no" >&6; }
7349 if test "$SDL_CONFIG" = "no" ; then
7350 echo "*** The sdl-config script installed by SDL could not be found"
7351 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7352 echo "*** your path, or set the SDL_CONFIG environment variable to the"
7353 echo "*** full path to sdl-config."
7355 if test -f conf.sdltest ; then
7358 echo "*** Could not run SDL test program, checking why..."
7359 CFLAGS="$CFLAGS $SDL_CFLAGS"
7360 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7361 LIBS="$LIBS $SDL_LIBS"
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7368 int main(int argc, char *argv[])
7371 #define main K_and_R_C_main
7381 if ac_fn_c_try_link "$LINENO"
7383 echo "*** The test program compiled, but did not run. This usually means"
7384 echo "*** that the run-time linker is not finding SDL or finding the wrong"
7385 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7386 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7387 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7388 echo "*** is required on your system"
7390 echo "*** If you have an old version installed, it is best to remove it, although"
7391 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7393 echo "*** The test program failed to compile or link. See the file config.log for the"
7394 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7395 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7396 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7399 conftest$ac_exeext conftest.$ac_ext
7400 CFLAGS="$ac_save_CFLAGS"
7401 CXXFLAGS="$ac_save_CXXFLAGS"
7402 LIBS="$ac_save_LIBS"
7407 as_fn_error or specify with --with-sdl-prefix "SDL not found. Make sure sdl-config is in your PATH" "$LINENO" 5
7415 TARGETS="d2x-sdl$ac_cv_exeext $TARGETS"
7416 if test x$enable_editor = xyes; then
7417 TARGETS="miner-sdl$ac_cv_exeext $TARGETS"
7420 ac_fn_c_check_header_compile "$LINENO" "netipx/ipx.h" "ac_cv_header_netipx_ipx_h" "$ac_includes_default"
7421 if test "x$ac_cv_header_netipx_ipx_h" = xyes
7423 printf "%s\n" "#define HAVE_NETIPX_IPX_H 1" >>confdefs.h
7428 # Check for SDL_image
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IMG_ReadXPMFromArray in -lSDL_image" >&5
7430 printf %s "checking for IMG_ReadXPMFromArray in -lSDL_image... " >&6; }
7431 if test ${ac_cv_lib_SDL_image_IMG_ReadXPMFromArray+y}
7433 printf %s "(cached) " >&6
7435 ac_check_lib_save_LIBS=$LIBS
7436 LIBS="-lSDL_image $LIBS"
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7440 /* Override any GCC internal prototype to avoid an error.
7441 Use char because int might match the return type of a GCC
7442 builtin and then its argument prototype would still apply. */
7443 char IMG_ReadXPMFromArray ();
7447 return IMG_ReadXPMFromArray ();
7452 if ac_fn_c_try_link "$LINENO"
7454 ac_cv_lib_SDL_image_IMG_ReadXPMFromArray=yes
7456 ac_cv_lib_SDL_image_IMG_ReadXPMFromArray=no
7458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7459 conftest$ac_exeext conftest.$ac_ext
7460 LIBS=$ac_check_lib_save_LIBS
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" >&5
7463 printf "%s\n" "$ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" >&6; }
7464 if test "x$ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" = xyes
7466 SDLIMAGE_LIBS="-lSDL_image"
7468 printf "%s\n" "#define SDL_IMAGE /**/" >>confdefs.h
7474 # Check for SDL_mixer
7482 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 printf %s "checking for $ac_word... " >&6; }
7488 if test ${ac_cv_path_PKG_CONFIG+y}
7490 printf %s "(cached) " >&6
7494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 case $as_dir in #(((
7504 *) as_dir=$as_dir/ ;;
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7508 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7519 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7520 if test -n "$PKG_CONFIG"; then
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7522 printf "%s\n" "$PKG_CONFIG" >&6; }
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 printf "%s\n" "no" >&6; }
7530 if test -z "$ac_cv_path_PKG_CONFIG"; then
7531 ac_pt_PKG_CONFIG=$PKG_CONFIG
7532 # Extract the first word of "pkg-config", so it can be a program name with args.
7533 set dummy pkg-config; ac_word=$2
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 printf %s "checking for $ac_word... " >&6; }
7536 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
7538 printf %s "(cached) " >&6
7540 case $ac_pt_PKG_CONFIG in
7542 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 case $as_dir in #(((
7552 *) as_dir=$as_dir/ ;;
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7556 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7567 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7568 if test -n "$ac_pt_PKG_CONFIG"; then
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7570 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 printf "%s\n" "no" >&6; }
7576 if test "x$ac_pt_PKG_CONFIG" = x; then
7579 case $cross_compiling:$ac_tool_warned in
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583 ac_tool_warned=yes ;;
7585 PKG_CONFIG=$ac_pt_PKG_CONFIG
7588 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7592 if test -n "$PKG_CONFIG"; then
7593 _pkg_min_version=0.9.0
7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7595 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7596 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7598 printf "%s\n" "yes" >&6; }
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 printf "%s\n" "no" >&6; }
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDLMIXER" >&5
7608 printf %s "checking for SDLMIXER... " >&6; }
7610 if test -n "$SDLMIXER_CFLAGS"; then
7611 pkg_cv_SDLMIXER_CFLAGS="$SDLMIXER_CFLAGS"
7612 elif test -n "$PKG_CONFIG"; then
7613 if test -n "$PKG_CONFIG" && \
7614 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
7615 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
7617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618 test $ac_status = 0; }; then
7619 pkg_cv_SDLMIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL_mixer" 2>/dev/null`
7620 test "x$?" != "x0" && pkg_failed=yes
7627 if test -n "$SDLMIXER_LIBS"; then
7628 pkg_cv_SDLMIXER_LIBS="$SDLMIXER_LIBS"
7629 elif test -n "$PKG_CONFIG"; then
7630 if test -n "$PKG_CONFIG" && \
7631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
7632 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
7634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7635 test $ac_status = 0; }; then
7636 pkg_cv_SDLMIXER_LIBS=`$PKG_CONFIG --libs "SDL_mixer" 2>/dev/null`
7637 test "x$?" != "x0" && pkg_failed=yes
7647 if test $pkg_failed = yes; then
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 printf "%s\n" "no" >&6; }
7651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7652 _pkg_short_errors_supported=yes
7654 _pkg_short_errors_supported=no
7656 if test $_pkg_short_errors_supported = yes; then
7657 SDLMIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_mixer" 2>&1`
7659 SDLMIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_mixer" 2>&1`
7661 # Put the nasty error message in config.log where it belongs
7662 echo "$SDLMIXER_PKG_ERRORS" >&5
7664 as_fn_error $? "Package requirements (SDL_mixer) were not met:
7666 $SDLMIXER_PKG_ERRORS
7668 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7669 installed software in a non-standard prefix.
7671 Alternatively, you may set the environment variables SDLMIXER_CFLAGS
7672 and SDLMIXER_LIBS to avoid the need to call pkg-config.
7673 See the pkg-config man page for more details." "$LINENO" 5
7674 elif test $pkg_failed = untried; then
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 printf "%s\n" "no" >&6; }
7677 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7678 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7679 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7680 is in your PATH or set the PKG_CONFIG environment variable to the full
7683 Alternatively, you may set the environment variables SDLMIXER_CFLAGS
7684 and SDLMIXER_LIBS to avoid the need to call pkg-config.
7685 See the pkg-config man page for more details.
7687 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7688 See \`config.log' for more details" "$LINENO" 5; }
7690 SDLMIXER_CFLAGS=$pkg_cv_SDLMIXER_CFLAGS
7691 SDLMIXER_LIBS=$pkg_cv_SDLMIXER_LIBS
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7693 printf "%s\n" "yes" >&6; }
7701 #PKG_CHECK_MODULES(LIBPNG, libpng,
7702 # AC_DEFINE(HAVE_LIBPNG,,[Define if you have libpng])
7704 # LIBS="$LIBPNG_LIBS $LIBS",
7705 # AC_MSG_WARN([libpng not found. disabling png replacement texture support])
7707 if test x$have_libpng = xyes; then
7709 USE_LIBPNG_FALSE='#'
7716 # Check for PhysicsFS
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PHYSFS" >&5
7720 printf %s "checking for PHYSFS... " >&6; }
7722 if test -n "$PHYSFS_CFLAGS"; then
7723 pkg_cv_PHYSFS_CFLAGS="$PHYSFS_CFLAGS"
7724 elif test -n "$PKG_CONFIG"; then
7725 if test -n "$PKG_CONFIG" && \
7726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"physfs\""; } >&5
7727 ($PKG_CONFIG --exists --print-errors "physfs") 2>&5
7729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 pkg_cv_PHYSFS_CFLAGS=`$PKG_CONFIG --cflags "physfs" 2>/dev/null`
7732 test "x$?" != "x0" && pkg_failed=yes
7739 if test -n "$PHYSFS_LIBS"; then
7740 pkg_cv_PHYSFS_LIBS="$PHYSFS_LIBS"
7741 elif test -n "$PKG_CONFIG"; then
7742 if test -n "$PKG_CONFIG" && \
7743 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"physfs\""; } >&5
7744 ($PKG_CONFIG --exists --print-errors "physfs") 2>&5
7746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; }; then
7748 pkg_cv_PHYSFS_LIBS=`$PKG_CONFIG --libs "physfs" 2>/dev/null`
7749 test "x$?" != "x0" && pkg_failed=yes
7759 if test $pkg_failed = yes; then
7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 printf "%s\n" "no" >&6; }
7763 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7764 _pkg_short_errors_supported=yes
7766 _pkg_short_errors_supported=no
7768 if test $_pkg_short_errors_supported = yes; then
7769 PHYSFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "physfs" 2>&1`
7771 PHYSFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "physfs" 2>&1`
7773 # Put the nasty error message in config.log where it belongs
7774 echo "$PHYSFS_PKG_ERRORS" >&5
7776 for ac_header in physfs.h
7778 ac_fn_c_check_header_compile "$LINENO" "physfs.h" "ac_cv_header_physfs_h" "$ac_includes_default"
7779 if test "x$ac_cv_header_physfs_h" = xyes
7781 printf "%s\n" "#define HAVE_PHYSFS_H 1" >>confdefs.h
7784 as_fn_error $? "physfs.h required" "$LINENO" 5
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PHYSFS_init in -lphysfs" >&5
7789 printf %s "checking for PHYSFS_init in -lphysfs... " >&6; }
7790 if test ${ac_cv_lib_physfs_PHYSFS_init+y}
7792 printf %s "(cached) " >&6
7794 ac_check_lib_save_LIBS=$LIBS
7795 LIBS="-lphysfs $LIBS"
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7799 /* Override any GCC internal prototype to avoid an error.
7800 Use char because int might match the return type of a GCC
7801 builtin and then its argument prototype would still apply. */
7802 char PHYSFS_init ();
7806 return PHYSFS_init ();
7811 if ac_fn_c_try_link "$LINENO"
7813 ac_cv_lib_physfs_PHYSFS_init=yes
7815 ac_cv_lib_physfs_PHYSFS_init=no
7817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7818 conftest$ac_exeext conftest.$ac_ext
7819 LIBS=$ac_check_lib_save_LIBS
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_physfs_PHYSFS_init" >&5
7822 printf "%s\n" "$ac_cv_lib_physfs_PHYSFS_init" >&6; }
7823 if test "x$ac_cv_lib_physfs_PHYSFS_init" = xyes
7825 PHYSFS_LIBS="-lphysfs"
7827 as_fn_error $? "physfs library required" "$LINENO" 5
7831 elif test $pkg_failed = untried; then
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 printf "%s\n" "no" >&6; }
7834 for ac_header in physfs.h
7836 ac_fn_c_check_header_compile "$LINENO" "physfs.h" "ac_cv_header_physfs_h" "$ac_includes_default"
7837 if test "x$ac_cv_header_physfs_h" = xyes
7839 printf "%s\n" "#define HAVE_PHYSFS_H 1" >>confdefs.h
7842 as_fn_error $? "physfs.h required" "$LINENO" 5
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PHYSFS_init in -lphysfs" >&5
7847 printf %s "checking for PHYSFS_init in -lphysfs... " >&6; }
7848 if test ${ac_cv_lib_physfs_PHYSFS_init+y}
7850 printf %s "(cached) " >&6
7852 ac_check_lib_save_LIBS=$LIBS
7853 LIBS="-lphysfs $LIBS"
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7857 /* Override any GCC internal prototype to avoid an error.
7858 Use char because int might match the return type of a GCC
7859 builtin and then its argument prototype would still apply. */
7860 char PHYSFS_init ();
7864 return PHYSFS_init ();
7869 if ac_fn_c_try_link "$LINENO"
7871 ac_cv_lib_physfs_PHYSFS_init=yes
7873 ac_cv_lib_physfs_PHYSFS_init=no
7875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7876 conftest$ac_exeext conftest.$ac_ext
7877 LIBS=$ac_check_lib_save_LIBS
7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_physfs_PHYSFS_init" >&5
7880 printf "%s\n" "$ac_cv_lib_physfs_PHYSFS_init" >&6; }
7881 if test "x$ac_cv_lib_physfs_PHYSFS_init" = xyes
7883 PHYSFS_LIBS="-lphysfs"
7885 as_fn_error $? "physfs library required" "$LINENO" 5
7890 PHYSFS_CFLAGS=$pkg_cv_PHYSFS_CFLAGS
7891 PHYSFS_LIBS=$pkg_cv_PHYSFS_LIBS
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893 printf "%s\n" "yes" >&6; }
7894 CFLAGS="$CFLAGS -D__EXPORT__=PHYSFS_DECL"
7901 # Check whether --with-opengl was given.
7902 if test ${with_opengl+y}
7904 withval=$with_opengl;
7907 if test x$with_opengl = xyes; then
7908 TARGETS="d2x-gl$ac_cv_exeext $TARGETS"
7909 if test x$enable_editor = xyes; then
7910 TARGETS="miner-gl$ac_cv_exeext $TARGETS"
7916 # Check whether --with-svga was given.
7917 if test ${with_svga+y}
7922 if test x$with_svga = xyes; then
7923 TARGETS="d2x-svga$ac_cv_exeext $TARGETS"
7924 if test x$enable_editor = xyes; then
7925 TARGETS="miner-svga$ac_cv_exeext $TARGETS"
7931 # Check whether --enable-network was given.
7932 if test ${enable_network+y}
7934 enableval=$enable_network;
7937 if test x$enable_network != xno; then
7939 cygwin* | mingw* | msdos* | linux*)
7940 enable_native_ipx="yes";
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: d2x does not support native ipx on this host. disabling native ipx" >&5
7944 printf "%s\n" "$as_me: WARNING: d2x does not support native ipx on this host. disabling native ipx" >&2;}
7945 enable_native_ipx="no";
7949 cygwin* | mingw* | msdos*)
7950 enable_kalinix="no";
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7956 printf %s "checking for socket in -lsocket... " >&6; }
7957 if test ${ac_cv_lib_socket_socket+y}
7959 printf %s "(cached) " >&6
7961 ac_check_lib_save_LIBS=$LIBS
7962 LIBS="-lsocket $LIBS"
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7966 /* Override any GCC internal prototype to avoid an error.
7967 Use char because int might match the return type of a GCC
7968 builtin and then its argument prototype would still apply. */
7978 if ac_fn_c_try_link "$LINENO"
7980 ac_cv_lib_socket_socket=yes
7982 ac_cv_lib_socket_socket=no
7984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7985 conftest$ac_exeext conftest.$ac_ext
7986 LIBS=$ac_check_lib_save_LIBS
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7989 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
7990 if test "x$ac_cv_lib_socket_socket" = xyes
7992 LIBS="${LIBS} -lsocket"
7994 as_fn_error $? "socket lib required for net support on solaris not found" "$LINENO" 5
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
7998 printf %s "checking for inet_addr in -lnsl... " >&6; }
7999 if test ${ac_cv_lib_nsl_inet_addr+y}
8001 printf %s "(cached) " >&6
8003 ac_check_lib_save_LIBS=$LIBS
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8008 /* Override any GCC internal prototype to avoid an error.
8009 Use char because int might match the return type of a GCC
8010 builtin and then its argument prototype would still apply. */
8015 return inet_addr ();
8020 if ac_fn_c_try_link "$LINENO"
8022 ac_cv_lib_nsl_inet_addr=yes
8024 ac_cv_lib_nsl_inet_addr=no
8026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8027 conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
8031 printf "%s\n" "$ac_cv_lib_nsl_inet_addr" >&6; }
8032 if test "x$ac_cv_lib_nsl_inet_addr" = xyes
8034 LIBS="${LIBS} -lnsl"
8036 as_fn_error $? "nsl lib required for net support on solaris not found" "$LINENO" 5
8042 # Check whether --enable-kalinix was given.
8043 if test ${enable_kalinix+y}
8045 enableval=$enable_kalinix;
8048 if test x$enable_network != xno; then
8049 if test x$enable_native_ipx != xno; then
8050 D2X_FEATURES="ipx ${D2X_FEATURES}"
8052 printf "%s\n" "#define NATIVE_IPX /**/" >>confdefs.h
8055 if test x$enable_kalinix != xno; then
8056 D2X_FEATURES="kalinix ${D2X_FEATURES}"
8058 printf "%s\n" "#define KALINIX /**/" >>confdefs.h
8062 printf "%s\n" "#define NETWORK /**/" >>confdefs.h
8064 D2X_FEATURES="network ${D2X_FEATURES}"
8066 if test x$enable_network != xno; then
8068 USE_NETWORK_FALSE='#'
8070 USE_NETWORK_TRUE='#'
8074 if test x$enable_native_ipx != xno; then
8075 USE_NATIVE_IPX_TRUE=
8076 USE_NATIVE_IPX_FALSE='#'
8078 USE_NATIVE_IPX_TRUE='#'
8079 USE_NATIVE_IPX_FALSE=
8082 if test x$enable_kalinix != xno; then
8084 USE_KALINIX_FALSE='#'
8086 USE_KALINIX_TRUE='#'
8091 # Check whether --enable-assembler was given.
8092 if test ${enable_assembler+y}
8094 enableval=$enable_assembler;
8097 if test x$enable_assembler != xno; then
8098 if test x$NASM = xno; then
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nasm not found. disabling assembler" >&5
8100 printf "%s\n" "$as_me: WARNING: nasm not found. disabling assembler" >&2;}
8101 enable_assembler="no"
8103 NASMFLAGS="-i\$(srcdir)/ $NASMFLAGS"
8106 NASMFLAGS="-f win32 $NASMFLAGS"
8109 NASMFLAGS="-f coff $NASMFLAGS"
8112 NASMFLAGS="-f elf -d__ELF__ $NASMFLAGS"
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nasm not supported for this OS. disabling assembler" >&5
8116 printf "%s\n" "$as_me: WARNING: nasm not supported for this OS. disabling assembler" >&2;}
8117 enable_assembler="no"
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nasm not supported for this cpu. disabling assembler" >&5
8123 printf "%s\n" "$as_me: WARNING: nasm not supported for this cpu. disabling assembler" >&2;}
8124 enable_assembler="no"
8129 if test x$enable_assembler = xno; then
8131 printf "%s\n" "#define NO_ASM /**/" >>confdefs.h
8133 D2X_FEATURES="no_asm ${D2X_FEATURES}"
8135 if test x$enable_assembler != xno; then
8146 # By default we simply use the C compiler to build assembly code.
8148 test "${CCAS+set}" = set || CCAS=$CC
8149 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8153 depcc="$CCAS" am_compiler_list=
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8156 printf %s "checking dependency style of $depcc... " >&6; }
8157 if test ${am_cv_CCAS_dependencies_compiler_type+y}
8159 printf %s "(cached) " >&6
8161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8162 # We make a subdir and do the tests there. Otherwise we can end up
8163 # making bogus files that we don't know about and never remove. For
8164 # instance it was reported that on HP-UX the gcc test will end up
8165 # making a dummy file named 'D' -- because '-MD' means "put the output
8169 # Copy depcomp to subdir because otherwise we won't find it if we're
8170 # using a relative directory.
8171 cp "$am_depcomp" conftest.dir
8173 # We will build objects and dependencies in a subdirectory because
8174 # it helps to detect inapplicable dependency modes. For instance
8175 # both Tru64's cc and ICC support -MD to output dependencies as a
8176 # side effect of compilation, but ICC will put the dependencies in
8177 # the current directory while Tru64 will put them in the object
8181 am_cv_CCAS_dependencies_compiler_type=none
8182 if test "$am_compiler_list" = ""; then
8183 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8188 for depmode in $am_compiler_list; do
8189 # Setup a source with many dependencies, because some compilers
8190 # like to wrap large dependency lists on column 80 (with \), and
8191 # we should not choose a depcomp mode which is confused by this.
8193 # We need to recreate these files for each test, as the compiler may
8194 # overwrite some of them when testing with obscure command lines.
8195 # This happens at least with the AIX C compiler.
8197 for i in 1 2 3 4 5 6; do
8198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8199 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8200 # Solaris 10 /bin/sh.
8201 echo '/* dummy */' > sub/conftst$i.h
8203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8205 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8206 # mode. It turns out that the SunPro C++ compiler does not properly
8207 # handle '-M -o', and we need to detect this. Also, some Intel
8208 # versions had trouble with output in subdirs.
8209 am__obj=sub/conftest.${OBJEXT-o}
8210 am__minus_obj="-o $am__obj"
8213 # This depmode causes a compiler race in universal mode.
8214 test "$am__universal" = false || continue
8217 # After this tag, mechanisms are not by side-effect, so they'll
8218 # only be used when explicitly requested.
8219 if test "x$enable_dependency_tracking" = xyes; then
8225 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8226 # This compiler won't grok '-c -o', but also, the minuso test has
8227 # not run yet. These depmodes are late enough in the game, and
8228 # so weak that their functioning should not be impacted.
8229 am__obj=conftest.${OBJEXT-o}
8234 if depmode=$depmode \
8235 source=sub/conftest.c object=$am__obj \
8236 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8237 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8238 >/dev/null 2>conftest.err &&
8239 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8240 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8241 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8242 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8243 # icc doesn't choke on unknown options, it will just issue warnings
8244 # or remarks (even with -Werror). So we grep stderr for any message
8245 # that says an option was ignored or not supported.
8246 # When given -MP, icc 7.0 and 7.1 complain thusly:
8247 # icc: Command line warning: ignoring option '-M'; no argument required
8248 # The diagnosis changed in icc 8.0:
8249 # icc: Command line remark: option '-MP' not supported
8250 if (grep 'ignoring option' conftest.err ||
8251 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8252 am_cv_CCAS_dependencies_compiler_type=$depmode
8261 am_cv_CCAS_dependencies_compiler_type=none
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8266 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8267 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8270 test "x$enable_dependency_tracking" != xno \
8271 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8272 am__fastdepCCAS_TRUE=
8273 am__fastdepCCAS_FALSE='#'
8275 am__fastdepCCAS_TRUE='#'
8276 am__fastdepCCAS_FALSE=
8287 ac_config_files="$ac_config_files Makefile debian/changelog rpm/d2x.spec"
8289 cat >confcache <<\_ACEOF
8290 # This file is a shell script that caches the results of configure
8291 # tests run on this system so they can be shared between configure
8292 # scripts and configure runs, see configure's option --config-cache.
8293 # It is not useful on other systems. If it contains results you don't
8294 # want to keep, you may remove or edit it.
8296 # config.status only pays attention to the cache file if you give it
8297 # the --recheck option to rerun configure.
8299 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8300 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8305 # The following way of writing the cache mishandles newlines in values,
8306 # but we know of no workaround that is simple, portable, and efficient.
8307 # So, we kill variables containing newlines.
8308 # Ultrix sh set writes to stderr and can't be redirected directly,
8309 # and sets the high bit in the cache file unless we assign to the vars.
8311 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8312 eval ac_val=\$$ac_var
8316 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8317 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8320 _ | IFS | as_nl) ;; #(
8321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8322 *) { eval $ac_var=; unset $ac_var;} ;;
8328 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8329 *${as_nl}ac_space=\ *)
8330 # `set' does not quote correctly, so add quotes: double-quote
8331 # substitution turns \\\\ into \\, and sed turns \\ into \.
8334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8337 # `set' quotes correctly as required by POSIX, so do not add quotes.
8338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8347 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8351 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8352 if test -w "$cache_file"; then
8353 if test "x$cache_file" != "x/dev/null"; then
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8355 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8356 if test ! -f "$cache_file" || test -h "$cache_file"; then
8357 cat confcache >"$cache_file"
8359 case $cache_file in #(
8361 mv -f confcache "$cache_file"$$ &&
8362 mv -f "$cache_file"$$ "$cache_file" ;; #(
8364 mv -f confcache "$cache_file" ;;
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8370 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8375 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8376 # Let make expand exec_prefix.
8377 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8379 DEFS=-DHAVE_CONFIG_H
8384 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8385 # 1. Remove the extension, and $U if already installed.
8386 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8387 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8388 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8389 # will be set to the directory where LIBOBJS objects are built.
8390 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8391 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8395 LTLIBOBJS=$ac_ltlibobjs
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8399 printf %s "checking that generated files are newer than configure... " >&6; }
8400 if test -n "$am_sleep_pid"; then
8401 # Hide warnings about reused PIDs.
8402 wait $am_sleep_pid 2>/dev/null
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
8405 printf "%s\n" "done" >&6; }
8406 if test -n "$EXEEXT"; then
8408 am__EXEEXT_FALSE='#'
8414 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8415 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8418 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8419 as_fn_error $? "conditional \"AMDEP\" was never defined.
8420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8422 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8423 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8427 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8431 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
8432 as_fn_error $? "conditional \"MINGW32\" was never defined.
8433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8435 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
8436 as_fn_error $? "conditional \"MACOSX\" was never defined.
8437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8439 if test -z "${MSDOS_TRUE}" && test -z "${MSDOS_FALSE}"; then
8440 as_fn_error $? "conditional \"MSDOS\" was never defined.
8441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8443 if test -z "${MACDATA_TRUE}" && test -z "${MACDATA_FALSE}"; then
8444 as_fn_error $? "conditional \"MACDATA\" was never defined.
8445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8447 if test -z "${USE_LINUX_JOY_TRUE}" && test -z "${USE_LINUX_JOY_FALSE}"; then
8448 as_fn_error $? "conditional \"USE_LINUX_JOY\" was never defined.
8449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8451 if test -z "${USE_LIBPNG_TRUE}" && test -z "${USE_LIBPNG_FALSE}"; then
8452 as_fn_error $? "conditional \"USE_LIBPNG\" was never defined.
8453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8455 if test -z "${USE_NETWORK_TRUE}" && test -z "${USE_NETWORK_FALSE}"; then
8456 as_fn_error $? "conditional \"USE_NETWORK\" was never defined.
8457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8459 if test -z "${USE_NATIVE_IPX_TRUE}" && test -z "${USE_NATIVE_IPX_FALSE}"; then
8460 as_fn_error $? "conditional \"USE_NATIVE_IPX\" was never defined.
8461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8463 if test -z "${USE_KALINIX_TRUE}" && test -z "${USE_KALINIX_FALSE}"; then
8464 as_fn_error $? "conditional \"USE_KALINIX\" was never defined.
8465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8467 if test -z "${USE_ASM_TRUE}" && test -z "${USE_ASM_FALSE}"; then
8468 as_fn_error $? "conditional \"USE_ASM\" was never defined.
8469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8471 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
8472 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
8473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8476 : "${CONFIG_STATUS=./config.status}"
8478 ac_clean_files_save=$ac_clean_files
8479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8481 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8485 # Generated by $as_me.
8486 # Run this file to recreate the current configuration.
8487 # Compiler output produced by configure, useful for debugging
8488 # configure, is in config.log if it exists.
8494 SHELL=\${CONFIG_SHELL-$SHELL}
8497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8498 ## -------------------- ##
8499 ## M4sh Initialization. ##
8500 ## -------------------- ##
8502 # Be more Bourne compatible
8503 DUALCASE=1; export DUALCASE # for MKS sh
8505 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8509 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8510 # is contrary to our usage. Disable this feature.
8511 alias -g '${1+"$@"}'='"$@"'
8512 setopt NO_GLOB_SUBST
8514 case `(set -o) 2>/dev/null` in #(
8524 # Reset variables that may have inherited troublesome values from
8527 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8528 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8529 # side effect of setting IFS to empty, thus disabling word splitting.)
8530 # Quoting is to prevent editors from complaining about space-tab.
8540 # Ensure predictable behavior from utilities with locale-dependent output.
8546 # We cannot yet rely on "unset" to work, but we need these variables
8547 # to be unset--not just set to an empty or harmless value--now, to
8548 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8549 # also avoids known problems related to "unset" and subshell syntax
8550 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8551 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8552 do eval test \${$as_var+y} \
8553 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8556 # Ensure that fds 0, 1, and 2 are open.
8557 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8558 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8559 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8561 # The user is always right.
8562 if ${PATH_SEPARATOR+false} :; then
8564 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8565 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8571 # Find who we are. Look in the path if we contain no directory separator.
8574 *[\\/]* ) as_myself=$0 ;;
8575 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 case $as_dir in #(((
8582 *) as_dir=$as_dir/ ;;
8584 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8590 # We did not find ourselves, most probably we were run as `sh COMMAND'
8591 # in which case we are not to be found in the path.
8592 if test "x$as_myself" = x; then
8595 if test ! -f "$as_myself"; then
8596 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8602 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8603 # ----------------------------------------
8604 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8605 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8606 # script with STATUS, using 1 if that was 0.
8609 as_status=$1; test $as_status -eq 0 && as_status=1
8611 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8614 printf "%s\n" "$as_me: error: $2" >&2
8615 as_fn_exit $as_status
8620 # as_fn_set_status STATUS
8621 # -----------------------
8622 # Set $? to STATUS, without forking.
8626 } # as_fn_set_status
8630 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8640 # Portably unset VAR.
8643 { eval $1=; unset $1;}
8645 as_unset=as_fn_unset
8647 # as_fn_append VAR VALUE
8648 # ----------------------
8649 # Append the text in VALUE to the end of the definition contained in VAR. Take
8650 # advantage of any shell optimizations that allow amortized linear growth over
8651 # repeated appends, instead of the typical quadratic growth present in naive
8653 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8655 eval 'as_fn_append ()
8666 # as_fn_arith ARG...
8667 # ------------------
8668 # Perform arithmetic evaluation on the ARGs, and store the result in the
8669 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8670 # must be portable across $(()) and expr.
8671 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8673 eval 'as_fn_arith ()
8680 as_val=`expr "$@" || test $? -eq 1`
8685 if expr a : '\(a\)' >/dev/null 2>&1 &&
8686 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8692 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8693 as_basename=basename
8698 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8704 as_me=`$as_basename -- "$0" ||
8705 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8706 X"$0" : 'X\(//\)$' \| \
8707 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8708 printf "%s\n" X/"$0" |
8709 sed '/^.*\/\([^/][^/]*\)\/*$/{
8723 # Avoid depending upon Character Ranges.
8724 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8725 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8726 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8727 as_cr_digits='0123456789'
8728 as_cr_alnum=$as_cr_Letters$as_cr_digits
8731 # Determine whether it's possible to make 'echo' print without a newline.
8732 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8733 # for compatibility with existing Makefiles.
8734 ECHO_C= ECHO_N= ECHO_T=
8735 case `echo -n x` in #(((((
8737 case `echo 'xy\c'` in
8738 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8740 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8747 # For backward compatibility with old third-party macros, we provide
8748 # the shell variables $as_echo and $as_echo_n. New code should use
8749 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8750 as_echo='printf %s\n'
8751 as_echo_n='printf %s'
8753 rm -f conf$$ conf$$.exe conf$$.file
8754 if test -d conf$$.dir; then
8755 rm -f conf$$.dir/conf$$.file
8758 mkdir conf$$.dir 2>/dev/null
8760 if (echo >conf$$.file) 2>/dev/null; then
8761 if ln -s conf$$.file conf$$ 2>/dev/null; then
8763 # ... but there are two gotchas:
8764 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8765 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8766 # In both cases, we have to default to `cp -pR'.
8767 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8769 elif ln conf$$.file conf$$ 2>/dev/null; then
8777 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8778 rmdir conf$$.dir 2>/dev/null
8783 # Create "$as_dir" as a directory, including parents if necessary.
8788 -*) as_dir=./$as_dir;;
8790 test -d "$as_dir" || eval $as_mkdir_p || {
8794 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8795 *) as_qdir=$as_dir;;
8797 as_dirs="'$as_qdir' $as_dirs"
8798 as_dir=`$as_dirname -- "$as_dir" ||
8799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8800 X"$as_dir" : 'X\(//\)[^/]' \| \
8801 X"$as_dir" : 'X\(//\)$' \| \
8802 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8803 printf "%s\n" X"$as_dir" |
8804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8821 test -d "$as_dir" && break
8823 test -z "$as_dirs" || eval "mkdir $as_dirs"
8824 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8828 if mkdir -p . 2>/dev/null; then
8829 as_mkdir_p='mkdir -p "$as_dir"'
8831 test -d ./-p && rmdir ./-p
8836 # as_fn_executable_p FILE
8837 # -----------------------
8838 # Test if FILE is an executable regular file.
8839 as_fn_executable_p ()
8841 test -f "$1" && test -x "$1"
8842 } # as_fn_executable_p
8844 as_executable_p=as_fn_executable_p
8846 # Sed expression to map a string onto a valid CPP name.
8847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8849 # Sed expression to map a string onto a valid variable name.
8850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8854 ## ----------------------------------- ##
8855 ## Main body of $CONFIG_STATUS script. ##
8856 ## ----------------------------------- ##
8858 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8861 # Save the log message, to keep $0 and so on meaningful, and to
8862 # report actual input values of CONFIG_FILES etc. instead of their
8863 # values after options handling.
8865 This file was extended by d2x $as_me 0.2.6, which was
8866 generated by GNU Autoconf 2.71. Invocation command line was
8868 CONFIG_FILES = $CONFIG_FILES
8869 CONFIG_HEADERS = $CONFIG_HEADERS
8870 CONFIG_LINKS = $CONFIG_LINKS
8871 CONFIG_COMMANDS = $CONFIG_COMMANDS
8874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8879 case $ac_config_files in *"
8880 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8883 case $ac_config_headers in *"
8884 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8889 # Files that config.status was made for.
8890 config_files="$ac_config_files"
8891 config_headers="$ac_config_headers"
8892 config_commands="$ac_config_commands"
8896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8898 \`$as_me' instantiates files and other configuration actions
8899 from templates according to the current configuration. Unless the files
8900 and actions are specified as TAGs, all are instantiated by default.
8902 Usage: $0 [OPTION]... [TAG]...
8904 -h, --help print this help, then exit
8905 -V, --version print version number and configuration settings, then exit
8906 --config print configuration, then exit
8907 -q, --quiet, --silent
8908 do not print progress messages
8909 -d, --debug don't remove temporary files
8910 --recheck update $as_me by reconfiguring in the same conditions
8911 --file=FILE[:TEMPLATE]
8912 instantiate the configuration file FILE
8913 --header=FILE[:TEMPLATE]
8914 instantiate the configuration header FILE
8916 Configuration files:
8919 Configuration headers:
8922 Configuration commands:
8925 Report bugs to <https://github.com/btb/d2x/issues>."
8928 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8929 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8931 ac_cs_config='$ac_cs_config_escaped'
8933 d2x config.status 0.2.6
8934 configured by $0, generated by GNU Autoconf 2.71,
8935 with options \\"\$ac_cs_config\\"
8937 Copyright (C) 2021 Free Software Foundation, Inc.
8938 This config.status script is free software; the Free Software Foundation
8939 gives unlimited permission to copy, distribute and modify it."
8946 test -n "\$AWK" || AWK=awk
8949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8950 # The default lists apply if the user does not specify any file.
8956 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8957 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8973 # Handling of the options.
8974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8976 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8977 printf "%s\n" "$ac_cs_version"; exit ;;
8978 --config | --confi | --conf | --con | --co | --c )
8979 printf "%s\n" "$ac_cs_config"; exit ;;
8980 --debug | --debu | --deb | --de | --d | -d )
8982 --file | --fil | --fi | --f )
8985 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8986 '') as_fn_error $? "missing file argument" ;;
8988 as_fn_append CONFIG_FILES " '$ac_optarg'"
8989 ac_need_defaults=false;;
8990 --header | --heade | --head | --hea )
8993 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8995 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8996 ac_need_defaults=false;;
8998 # Conflict between --help and --header
8999 as_fn_error $? "ambiguous option: \`$1'
9000 Try \`$0 --help' for more information.";;
9001 --help | --hel | -h )
9002 printf "%s\n" "$ac_cs_usage"; exit ;;
9003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9004 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9008 -*) as_fn_error $? "unrecognized option: \`$1'
9009 Try \`$0 --help' for more information." ;;
9011 *) as_fn_append ac_config_targets " $1"
9012 ac_need_defaults=false ;;
9018 ac_configure_extra_args=
9020 if $ac_cs_silent; then
9022 ac_configure_extra_args="$ac_configure_extra_args --silent"
9026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9027 if \$ac_cs_recheck; then
9028 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9030 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9031 CONFIG_SHELL='$SHELL'
9037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9042 ## Running $as_me. ##
9044 printf "%s\n" "$ac_log"
9048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9052 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
9056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9058 # Handling of arguments.
9059 for ac_config_target in $ac_config_targets
9061 case $ac_config_target in
9062 "conf.h") CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;;
9063 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9064 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9065 "debian/changelog") CONFIG_FILES="$CONFIG_FILES debian/changelog" ;;
9066 "rpm/d2x.spec") CONFIG_FILES="$CONFIG_FILES rpm/d2x.spec" ;;
9068 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9073 # If the user did not use the arguments to specify the items to instantiate,
9074 # then the envvar interface is used. Set only those that are not.
9075 # We use the long form for the default assignment because of an extremely
9076 # bizarre bug on SunOS 4.1.3.
9077 if $ac_need_defaults; then
9078 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9079 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9080 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
9083 # Have a temporary directory for convenience. Make it in the build tree
9084 # simply because there is no reason against having it here, and in addition,
9085 # creating and moving files from /tmp can sometimes cause problems.
9086 # Hook for its removal unless debugging.
9087 # Note that there is a small window in which the directory will not be cleaned:
9088 # after its creation but before its name has been assigned to `$tmp'.
9092 trap 'exit_status=$?
9094 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9096 trap 'as_fn_exit 1' 1 2 13 15
9098 # Create a (secure) tmp directory for tmp files.
9101 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9105 tmp=./conf$$-$RANDOM
9106 (umask 077 && mkdir "$tmp")
9107 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9110 # Set up the scripts for CONFIG_FILES section.
9111 # No need to generate them if there are no CONFIG_FILES.
9112 # This happens for instance with `./config.status config.h'.
9113 if test -n "$CONFIG_FILES"; then
9116 ac_cr=`echo X | tr X '\015'`
9117 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9118 # But we know of no other shell where ac_cr would be empty at this
9119 # point, so we can use a bashism as a fallback.
9120 if test "x$ac_cr" = x; then
9121 eval ac_cr=\$\'\\r\'
9123 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9124 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9130 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9135 echo "cat >conf$$subs.awk <<_ACEOF" &&
9136 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9140 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9142 for ac_last_try in false false false false false :; do
9143 . ./conf$$subs.sh ||
9144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9146 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9147 if test $ac_delim_n = $ac_delim_num; then
9149 elif $ac_last_try; then
9150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9158 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9162 s/^/S["/; s/!.*/"]=/
9172 s/\(.\{148\}\)..*/\1/
9174 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9179 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9186 s/\(.\{148\}\)..*/\1/
9188 s/["\\]/\\&/g; s/^/"/; s/$/"/
9192 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9197 ' <conf$$subs.awk | sed '
9202 ' >>$CONFIG_STATUS || ac_write_fail=1
9203 rm -f conf$$subs.awk
9204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9206 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9207 for (key in S) S_is_set[key] = 1
9213 nfields = split(line, field, "@")
9215 len = length(field[1])
9216 for (i = 2; i < nfields; i++) {
9218 keylen = length(key)
9219 if (S_is_set[key]) {
9221 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9222 len += length(value) + length(field[++i])
9233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9234 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9235 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9238 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9239 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9242 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9243 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9244 # trailing colons and then remove the whole line if VPATH becomes empty
9245 # (actually we leave an empty line to preserve line numbers).
9246 if test "x$srcdir" = x.; then
9247 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9266 fi # test -n "$CONFIG_FILES"
9268 # Set up the scripts for CONFIG_HEADERS section.
9269 # No need to generate them if there are no CONFIG_HEADERS.
9270 # This happens for instance with `./config.status Makefile'.
9271 if test -n "$CONFIG_HEADERS"; then
9272 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9276 # Transform confdefs.h into an awk script `defines.awk', embedded as
9277 # here-document in config.status, that substitutes the proper values into
9278 # config.h.in to produce config.h.
9280 # Create a delimiter string that does not exist in confdefs.h, to ease
9281 # handling of long lines.
9283 for ac_last_try in false false :; do
9284 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9285 if test -z "$ac_tt"; then
9287 elif $ac_last_try; then
9288 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9294 # For the awk script, D is an array of macro values keyed by name,
9295 # likewise P contains macro parameters if any. Preserve backslash
9296 # newline sequences.
9298 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9300 s/.\{148\}/&'"$ac_delim"'/g
9303 s/^[ ]*#[ ]*define[ ][ ]*/ /
9310 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9312 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9316 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9317 D["\1"]=" \3\\\\\\n"\\/p
9319 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9324 s/.\{148\}/&'"$ac_delim"'/g
9329 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9332 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9334 ' <confdefs.h | sed '
9335 s/'"$ac_delim"'/"\\\
9336 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9339 for (key in D) D_is_set[key] = 1
9342 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9344 split(line, arg, " ")
9345 if (arg[1] == "#") {
9349 defundef = substr(arg[1], 2)
9352 split(mac1, mac2, "(") #)
9354 prefix = substr(line, 1, index(line, defundef) - 1)
9355 if (D_is_set[macro]) {
9356 # Preserve the white space surrounding the "#".
9357 print prefix "define", macro P[macro] D[macro]
9360 # Replace #undef with comments. This is necessary, for example,
9361 # in the case of _POSIX_SOURCE, which is predefined and required
9362 # on some systems where configure will not decide to define it.
9363 if (defundef == "undef") {
9364 print "/*", prefix defundef, macro, "*/"
9372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9373 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9374 fi # test -n "$CONFIG_HEADERS"
9377 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9382 :[FHLC]) ac_mode=$ac_tag; continue;;
9384 case $ac_mode$ac_tag in
9386 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9387 :[FH]-) ac_tag=-:-;;
9388 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9405 -) ac_f="$ac_tmp/stdin";;
9406 *) # Look for the file first in the build tree, then in the source tree
9407 # (if the path is not absolute). The absolute path cannot be DOS-style,
9408 # because $ac_f cannot contain `:'.
9412 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9414 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9416 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9417 as_fn_append ac_file_inputs " '$ac_f'"
9420 # Let's still pretend it is `configure' which instantiates (i.e., don't
9421 # use $as_me), people would be surprised to read:
9422 # /* config.h. Generated by config.status. */
9423 configure_input='Generated from '`
9424 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9426 if test x"$ac_file" != x-; then
9427 configure_input="$ac_file. $configure_input"
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9429 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9431 # Neutralize special characters interpreted by sed in replacement strings.
9432 case $configure_input in #(
9433 *\&* | *\|* | *\\* )
9434 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9435 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9436 *) ac_sed_conf_input=$configure_input;;
9440 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9446 ac_dir=`$as_dirname -- "$ac_file" ||
9447 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9448 X"$ac_file" : 'X\(//\)[^/]' \| \
9449 X"$ac_file" : 'X\(//\)$' \| \
9450 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9451 printf "%s\n" X"$ac_file" |
9452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9469 as_dir="$ac_dir"; as_fn_mkdir_p
9473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9475 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9476 # A ".." for each directory in $ac_dir_suffix.
9477 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9478 case $ac_top_builddir_sub in
9479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9483 ac_abs_top_builddir=$ac_pwd
9484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9485 # for backward compatibility:
9486 ac_top_builddir=$ac_top_build_prefix
9489 .) # We are building in place.
9491 ac_top_srcdir=$ac_top_builddir_sub
9492 ac_abs_top_srcdir=$ac_pwd ;;
9493 [\\/]* | ?:[\\/]* ) # Absolute name.
9494 ac_srcdir=$srcdir$ac_dir_suffix;
9495 ac_top_srcdir=$srcdir
9496 ac_abs_top_srcdir=$srcdir ;;
9498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9499 ac_top_srcdir=$ac_top_build_prefix$srcdir
9500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9513 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9517 [\\/$]* | ?:[\\/]* ) ;;
9518 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9523 # If the template does not know about datarootdir, expand it.
9524 # FIXME: This hack should be removed a few years after 2.60.
9525 ac_datarootdir_hack=; ac_datarootdir_seen=
9536 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9537 *datarootdir*) ac_datarootdir_seen=yes;;
9538 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9540 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9543 ac_datarootdir_hack='
9544 s&@datadir@&$datadir&g
9545 s&@docdir@&$docdir&g
9546 s&@infodir@&$infodir&g
9547 s&@localedir@&$localedir&g
9548 s&@mandir@&$mandir&g
9549 s&\\\${datarootdir}&$datarootdir&g' ;;
9553 # Neutralize VPATH when `$srcdir' = `.'.
9554 # Shell code in configure.ac might set extrasub.
9555 # FIXME: do we really want to maintain this feature?
9556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9557 ac_sed_extra="$ac_vpsub
9560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9563 s|@configure_input@|$ac_sed_conf_input|;t t
9564 s&@top_builddir@&$ac_top_builddir_sub&;t t
9565 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9566 s&@srcdir@&$ac_srcdir&;t t
9567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9568 s&@top_srcdir@&$ac_top_srcdir&;t t
9569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9570 s&@builddir@&$ac_builddir&;t t
9571 s&@abs_builddir@&$ac_abs_builddir&;t t
9572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9573 s&@INSTALL@&$ac_INSTALL&;t t
9574 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9575 $ac_datarootdir_hack
9577 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9578 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9580 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9581 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9583 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9585 which seems to be undefined. Please make sure it is defined" >&5
9586 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9587 which seems to be undefined. Please make sure it is defined" >&2;}
9589 rm -f "$ac_tmp/stdin"
9591 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9592 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9600 if test x"$ac_file" != x-; then
9602 printf "%s\n" "/* $configure_input */" >&1 \
9603 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9604 } >"$ac_tmp/config.h" \
9605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9606 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9608 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9611 mv "$ac_tmp/config.h" "$ac_file" \
9612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9615 printf "%s\n" "/* $configure_input */" >&1 \
9616 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9617 || as_fn_error $? "could not create -" "$LINENO" 5
9619 # Compute "$ac_file"'s index in $config_headers.
9622 for _am_header in $config_headers :; do
9624 $_am_arg | $_am_arg:* )
9627 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9630 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9631 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9632 X"$_am_arg" : 'X\(//\)[^/]' \| \
9633 X"$_am_arg" : 'X\(//\)$' \| \
9634 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9635 printf "%s\n" X"$_am_arg" |
9636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9652 s/.*/./; q'`/stamp-h$_am_stamp_count
9655 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9656 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9661 case $ac_file$ac_mode in
9662 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9663 # Older Autoconf quotes --file arguments for eval, but not when files
9664 # are listed without --file. Let's play safe and only enable the eval
9665 # if we detect the quoting.
9666 # TODO: see whether this extra hack can be removed once we start
9667 # requiring Autoconf 2.70 or later.
9668 case $CONFIG_FILES in #(
9670 eval set x "$CONFIG_FILES" ;; #(
9672 set x $CONFIG_FILES ;; #(
9677 # Used to flag and report bootstrapping failures.
9681 # Strip MF so we end up with the name of the file.
9682 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
9683 # Check whether this is an Automake generated Makefile which includes
9684 # dependency-tracking related rules and includes.
9685 # Grep'ing the whole file directly is not great: AIX grep has a line
9686 # limit of 2048, but all sed's we know have understand at least 4000.
9687 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9689 am_dirpart=`$as_dirname -- "$am_mf" ||
9690 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9691 X"$am_mf" : 'X\(//\)[^/]' \| \
9692 X"$am_mf" : 'X\(//\)$' \| \
9693 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9694 printf "%s\n" X"$am_mf" |
9695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9712 am_filepart=`$as_basename -- "$am_mf" ||
9713 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9714 X"$am_mf" : 'X\(//\)$' \| \
9715 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9716 printf "%s\n" X/"$am_mf" |
9717 sed '/^.*\/\([^/][^/]*\)\/*$/{
9730 { echo "$as_me:$LINENO: cd "$am_dirpart" \
9731 && sed -e '/# am--include-marker/d' "$am_filepart" \
9732 | $MAKE -f - am--depfiles" >&5
9734 && sed -e '/# am--include-marker/d' "$am_filepart" \
9735 | $MAKE -f - am--depfiles) >&5 2>&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } || am_rc=$?
9740 if test $am_rc -ne 0; then
9741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9742 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9743 as_fn_error $? "Something went wrong bootstrapping makefile fragments
9744 for automatic dependency tracking. If GNU make was not used, consider
9745 re-running the configure script with MAKE=\"gmake\" (or whatever is
9746 necessary). You can also try re-running configure with the
9747 '--disable-dependency-tracking' option to at least be able to build
9748 the package (albeit without support for automatic dependency tracking).
9749 See \`config.log' for more details" "$LINENO" 5; }
9751 { am_dirpart=; unset am_dirpart;}
9752 { am_filepart=; unset am_filepart;}
9753 { am_mf=; unset am_mf;}
9754 { am_rc=; unset am_rc;}
9755 rm -f conftest-deps.mk
9765 ac_clean_files=$ac_clean_files_save
9767 test $ac_write_fail = 0 ||
9768 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9771 # configure is writing to config.log, and then calls config.status.
9772 # config.status does its own redirection, appending to config.log.
9773 # Unfortunately, on DOS this fails, as config.log is still kept open
9774 # by configure, so config.status won't be able to write to it; its
9775 # output is simply discarded. So we exec the FD to /dev/null,
9776 # effectively closing config.log, so it can be properly (re)opened and
9777 # appended to by config.status. When coming back to configure, we
9778 # need to make the FD available again.
9779 if test "$no_create" != yes; then
9781 ac_config_status_args=
9782 test "$silent" = yes &&
9783 ac_config_status_args="$ac_config_status_args --quiet"
9785 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9787 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9788 # would make configure fail if this is the last instruction.
9789 $ac_cs_success || as_fn_exit 1
9791 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9793 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
9798 d2x has been configured successfully.
9801 Features: $D2X_FEATURES
9803 Shared game data directory (unix only): $sharepath
9806 d2x has been configured successfully.
9809 Features: $D2X_FEATURES
9811 Shared game data directory (unix only): $sharepath