2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmowgli-2 2.1.0.
5 # Report bugs to <https://github.com/atheme/libmowgli-2>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://github.com/atheme/libmowgli-2 about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir -p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='libmowgli-2'
582 PACKAGE_TARNAME
='libmowgli-2'
583 PACKAGE_VERSION
='2.1.0'
584 PACKAGE_STRING
='libmowgli-2 2.1.0'
585 PACKAGE_BUGREPORT
='https://github.com/atheme/libmowgli-2'
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
641 LIBMOWGLI_MODULE_BUILD
642 LIBMOWGLI_STATIC_MODULES
643 LIBMOWGLI_SHARED_MODULES
719 program_transform_name
732 enable_option_checking
738 ac_precious_vars
='build_alias
749 # Initialize some variables set by options.
751 ac_init_version
=false
752 ac_unrecognized_opts
=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 -build | --build | --buil | --bui | --bu)
826 ac_prev
=build_alias
;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias
=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev
=cache_file
;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file
=$ac_optarg ;;
838 cache_file
=config.cache
;;
840 -datadir | --datadir | --datadi | --datad)
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir
=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev
=datarootdir
;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir
=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
856 as_fn_error $?
"invalid feature name: $ac_useropt"
857 ac_useropt_orig
=$ac_useropt
858 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep
=', ';;
866 eval enable_
$ac_useropt=no
;;
868 -docdir | --docdir | --docdi | --doc | --do)
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 -enable-* | --enable-*)
879 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
882 as_fn_error $?
"invalid feature name: $ac_useropt"
883 ac_useropt_orig
=$ac_useropt
884 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
889 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep
=', ';;
892 eval enable_
$ac_useropt=\
$ac_optarg ;;
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev
=exec_prefix
;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix
=$ac_optarg ;;
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
907 -help | --help | --hel | --he | -h)
909 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
910 ac_init_help
=recursive
;;
911 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
912 ac_init_help
=short
;;
914 -host | --host | --hos | --ho)
915 ac_prev
=host_alias
;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias
=$ac_optarg ;;
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 htmldir
=$ac_optarg ;;
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev
=includedir
;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir
=$ac_optarg ;;
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir
=$ac_optarg ;;
937 -libdir | --libdir | --libdi | --libd)
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev
=libexecdir
;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir
=$ac_optarg ;;
949 -localedir | --localedir | --localedi | --localed | --locale)
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir
=$ac_optarg ;;
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev
=localstatedir
;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir
=$ac_optarg ;;
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 # Obsolete; use --without-fp.
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev
=oldincludedir
;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir
=$ac_optarg ;;
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev
=program_prefix
;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix
=$ac_optarg ;;
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev
=program_suffix
;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix
=$ac_optarg ;;
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev
=program_transform_name
;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name
=$ac_optarg ;;
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir
=$ac_optarg ;;
1028 -psdir | --psdir | --psdi | --psd | --ps)
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 sbindir
=$ac_optarg ;;
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1047 ac_prev
=sharedstatedir
;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 sharedstatedir
=$ac_optarg ;;
1054 -site | --site | --sit)
1056 -site=* | --site=* | --sit=*)
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir
=$ac_optarg ;;
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev
=sysconfdir
;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir
=$ac_optarg ;;
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev
=target_alias
;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias
=$ac_optarg ;;
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version
=: ;;
1083 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1086 as_fn_error $?
"invalid package name: $ac_useropt"
1087 ac_useropt_orig
=$ac_useropt
1088 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1093 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep
=', ';;
1096 eval with_
$ac_useropt=\
$ac_optarg ;;
1098 -without-* | --without-*)
1099 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1102 as_fn_error $?
"invalid package name: $ac_useropt"
1103 ac_useropt_orig
=$ac_useropt
1104 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep
=', ';;
1112 eval with_
$ac_useropt=no
;;
1115 # Obsolete; use --with-x.
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev
=x_includes
;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes
=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev
=x_libraries
;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries
=$ac_optarg ;;
1132 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information"
1137 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1143 eval $ac_envvar=\
$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1157 if test -n "$ac_prev"; then
1158 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $?
"missing argument to $ac_option"
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1165 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 # Check all directory arguments for consistency.
1171 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1176 eval ac_val
=\$
$ac_var
1177 # Remove trailing slashes.
1180 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\
$ac_val;;
1183 # Be sure to have absolute directory names.
1185 [\\/$
]* | ?
:[\\/]* ) continue;;
1186 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1188 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1196 target
=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x
; then
1200 if test "x$build_alias" = x
; then
1201 cross_compiling
=maybe
1202 elif test "x$build_alias" != "x$host_alias"; then
1208 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1210 test "$silent" = yes && exec 6>/dev
/null
1213 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di
=`ls -di .` &&
1215 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1216 as_fn_error $?
"working directory cannot be determined"
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 as_fn_error $?
"pwd does not report name of working directory"
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted
=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir
=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1253 ac_srcdir_defaulted
=no
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1257 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1259 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1271 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 for ac_var
in $ac_precious_vars; do
1274 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1275 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1276 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1277 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1281 # Report the --help message.
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1287 \`configure' configures libmowgli-2 2.1.0 to adapt to many kinds of systems.
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1294 Defaults for the options are specified in brackets.
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking ...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1318 For better control, use the options below.
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --libdir=DIR object code libraries [EPREFIX/lib]
1328 --includedir=DIR C header files [PREFIX/include]
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1332 --infodir=DIR info documentation [DATAROOTDIR/info]
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1334 --mandir=DIR man documentation [DATAROOTDIR/man]
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/libmowgli-2]
1336 --htmldir=DIR html documentation [DOCDIR]
1337 --dvidir=DIR dvi documentation [DOCDIR]
1338 --pdfdir=DIR pdf documentation [DOCDIR]
1339 --psdir=DIR ps documentation [DOCDIR]
1345 --build=BUILD configure
for building on BUILD
[guessed
]
1346 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1347 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1351 if test -n "$ac_init_help"; then
1352 case $ac_init_help in
1353 short
| recursive
) echo "Configuration of libmowgli-2 2.1.0:";;
1358 --disable-option-checking ignore unrecognized
--enable/--with options
1359 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1360 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1361 --disable-shared do not build shared library
1362 --enable-static build static library
1363 --enable-examples build examples
1366 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1367 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1368 --with-openssl=DIR root of the OpenSSL directory
1370 Some influential environment variables
:
1371 CC C compiler
command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1374 nonstandard directory
<lib dir
>
1375 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1376 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1377 you have headers
in a nonstandard directory
<include dir
>
1380 Use these variables to override the choices made by
`configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1383 Report bugs to <https://github.com/atheme/libmowgli-2>.
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" ||
1392 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1413 .) # We are building in place.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1437 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1446 libmowgli-2 configure 2.1.0
1447 generated by GNU Autoconf 2.69
1449 Copyright (C) 2012 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1456 ## ------------------------ ##
1457 ## Autoconf initialization. ##
1458 ## ------------------------ ##
1460 # ac_fn_c_try_compile LINENO
1461 # --------------------------
1462 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1463 ac_fn_c_try_compile ()
1465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 rm -f conftest.$ac_objext
1467 if { { ac_try="$ac_compile"
1469 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1470 *) ac_try_echo
=$ac_try;;
1472 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 $as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_compile") 2>conftest.err
1476 if test -s conftest.err
; then
1477 grep -v '^ *+' conftest.err
>conftest.er1
1478 cat conftest.er1
>&5
1479 mv -f conftest.er1 conftest.err
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } && {
1483 test -z "$ac_c_werror_flag" ||
1484 test ! -s conftest.err
1485 } && test -s conftest.
$ac_objext; then :
1488 $as_echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.
$ac_ext >&5
1493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1494 as_fn_set_status
$ac_retval
1496 } # ac_fn_c_try_compile
1498 # ac_fn_c_try_cpp LINENO
1499 # ----------------------
1500 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1504 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1506 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } > conftest.i && {
1520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531 as_fn_set_status $ac_retval
1535 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1536 # -------------------------------------------------------
1537 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1538 # the include files in INCLUDES and setting the cache variable VAR
1540 ac_fn_c_check_header_mongrel ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if eval \${$3+:} false; then :
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545 $as_echo_n "checking for $2... " >&6; }
1546 if eval \${$3+:} false; then :
1547 $as_echo_n "(cached) " >&6
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1551 $as_echo "$ac_res" >&6; }
1553 # Is the header compilable?
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1555 $as_echo_n "checking $2 usability... " >&6; }
1556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557 /* end confdefs.h. */
1561 if ac_fn_c_try_compile "$LINENO"; then :
1562 ac_header_compiler=yes
1564 ac_header_compiler=no
1566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1568 $as_echo "$ac_header_compiler" >&6; }
1570 # Is the header present?
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1572 $as_echo_n "checking $2 presence... " >&6; }
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1577 if ac_fn_c_try_cpp "$LINENO"; then :
1578 ac_header_preproc=yes
1580 ac_header_preproc=no
1582 rm -f conftest.err conftest.i conftest.$ac_ext
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1584 $as_echo "$ac_header_preproc" >&6; }
1586 # So? What about this header?
1587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1590 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1592 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1596 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1598 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1600 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1602 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1604 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1605 ( $as_echo "## ---------------------------------------------------- ##
1606 ## Report this to https://github.com/atheme/libmowgli-2 ##
1607 ## ---------------------------------------------------- ##"
1608 ) | sed "s/^/$as_me: WARNING: /" >&2
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \${$3+:} false; then :
1614 $as_echo_n "(cached) " >&6
1616 eval "$3=\$ac_header_compiler"
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 } # ac_fn_c_check_header_mongrel
1626 # ac_fn_c_try_run LINENO
1627 # ----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1629 # that executables *can* be run.
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_link"
1635 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1636 *) ac_try_echo
=$ac_try;;
1638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>&5
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1644 { { case "(($ac_try" in
1645 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_try") 2>&5
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; }; }; then :
1656 $as_echo "$as_me: program exited with status $ac_status" >&5
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1660 ac_retval=$ac_status
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1685 if ac_fn_c_try_compile "$LINENO"; then :
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 } # ac_fn_c_check_header_compile
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1708 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1709 *) ac_try_echo
=$ac_try;;
1711 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1715 if test -s conftest.err
; then
1716 grep -v '^ *+' conftest.err
>conftest.er1
1717 cat conftest.er1
>&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest
$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 test -x conftest
$ac_exeext
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.
$ac_ext >&5
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status
$ac_retval
1743 } # ac_fn_c_try_link
1745 # ac_fn_c_check_func LINENO FUNC VAR
1746 # ----------------------------------
1747 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1748 ac_fn_c_check_func
()
1750 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \
${$3+:} false
; then :
1754 $as_echo_n "(cached) " >&6
1756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1760 #define $2 innocuous_$2
1762 /* System header to define __stub macros and hopefully few prototypes,
1763 which can conflict with char $2 (); below.
1764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1765 <limits.h> exists even on freestanding compilers. */
1768 # include <limits.h>
1770 # include <assert.h>
1775 /* Override any GCC internal prototype to avoid an error.
1776 Use char because int might match the return type of a GCC
1777 builtin and then its argument prototype would still apply. */
1782 /* The GNU C library defines this for functions which it implements
1783 to always fail with ENOSYS. Some functions are actually named
1784 something starting with __ and the normal name is an alias. */
1785 #if defined __stub_$2 || defined __stub___$2
1797 if ac_fn_c_try_link
"$LINENO"; then :
1802 rm -f core conftest.err conftest.
$ac_objext \
1803 conftest
$ac_exeext conftest.
$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 } # ac_fn_c_check_func
1811 cat >config.log
<<_ACEOF
1812 This file contains any messages produced by compilers while
1813 running configure, to aid debugging if configure makes a mistake.
1815 It was created by libmowgli-2 $as_me 2.1.0, which was
1816 generated by GNU Autoconf 2.69. Invocation command line was
1828 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1829 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1830 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1831 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1832 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1834 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1835 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1837 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1838 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1839 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1840 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1841 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1842 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1843 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1851 test -z "$as_dir" && as_dir
=.
1852 $as_echo "PATH: $as_dir"
1868 # Keep a trace of the command line.
1869 # Strip out --no-create and --no-recursion so they do not pile up.
1870 # Strip out --silent because we don't want to record it for future runs.
1871 # Also quote any args containing shell meta-characters.
1872 # Make two passes to allow for proper duplicate-argument suppression.
1876 ac_must_keep_next
=false
1882 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1884 | -silent | --silent | --silen | --sile | --sil)
1887 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1892 as_fn_append ac_configure_args1
" '$ac_arg'"
1893 if test $ac_must_keep_next = true
; then
1894 ac_must_keep_next
=false
# Got value, back to normal.
1897 *=* | --config-cache | -C | -disable-* | --disable-* \
1898 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1899 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1900 | -with-* | --with-* | -without-* | --without-* | --x)
1901 case "$ac_configure_args0 " in
1902 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1905 -* ) ac_must_keep_next
=true
;;
1908 as_fn_append ac_configure_args
" '$ac_arg'"
1913 { ac_configure_args0
=; unset ac_configure_args0
;}
1914 { ac_configure_args1
=; unset ac_configure_args1
;}
1916 # When interrupted or exit'd, cleanup temporary files, and complete
1917 # config.log. We remove comments because anyway the quotes in there
1918 # would cause problems or look ugly.
1919 # WARNING: Use '\'' to represent an apostrophe within the trap.
1920 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1921 trap 'exit_status=$?
1922 # Save into config.log some information that might help in debugging.
1926 $as_echo "## ---------------- ##
1927 ## Cache variables. ##
1928 ## ---------------- ##"
1930 # The following way of writing the cache mishandles newlines in values,
1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933 eval ac_val=\$$ac_var
1937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1941 _ | IFS | as_nl) ;; #(
1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943 *) { eval $ac_var=; unset $ac_var;} ;;
1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949 *${as_nl}ac_space=\ *)
1951 "s/'\''/'\''\\\\'\'''\''/g;
1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1962 $as_echo "## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##"
1966 for ac_var in $ac_subst_vars
1968 eval ac_val=\$$ac_var
1970 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 $as_echo "$ac_var='\''$ac_val'\''"
1976 if test -n "$ac_subst_files"; then
1977 $as_echo "## ------------------- ##
1978 ## File substitutions. ##
1979 ## ------------------- ##"
1981 for ac_var
in $ac_subst_files
1983 eval ac_val
=\$
$ac_var
1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 $as_echo "$ac_var='\''$ac_val'\''"
1992 if test -s confdefs.h; then
1993 $as_echo "## ----------- ##
2000 test "$ac_signal" != 0 &&
2001 $as_echo "$as_me: caught signal $ac_signal"
2002 $as_echo "$as_me: exit $exit_status"
2004 rm -f core *.core core.conftest.* &&
2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2008 for ac_signal
in 1 2 13 15; do
2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2014 rm -f -r conftest
* confdefs.h
2016 $as_echo "/* confdefs.h */" > confdefs.h
2018 # Predefined preprocessor variables.
2020 cat >>confdefs.h
<<_ACEOF
2021 #define PACKAGE_NAME "$PACKAGE_NAME"
2024 cat >>confdefs.h
<<_ACEOF
2025 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2028 cat >>confdefs.h
<<_ACEOF
2029 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2032 cat >>confdefs.h
<<_ACEOF
2033 #define PACKAGE_STRING "$PACKAGE_STRING"
2036 cat >>confdefs.h
<<_ACEOF
2037 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2040 cat >>confdefs.h
<<_ACEOF
2041 #define PACKAGE_URL "$PACKAGE_URL"
2045 # Let the site file select an alternate cache file if it wants to.
2046 # Prefer an explicitly selected file to automatically selected ones.
2049 if test -n "$CONFIG_SITE"; then
2050 # We do not want a PATH search for config.site.
2051 case $CONFIG_SITE in #((
2052 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2053 */*) ac_site_file1
=$CONFIG_SITE;;
2054 *) ac_site_file1
=.
/$CONFIG_SITE;;
2056 elif test "x$prefix" != xNONE
; then
2057 ac_site_file1
=$prefix/share
/config.site
2058 ac_site_file2
=$prefix/etc
/config.site
2060 ac_site_file1
=$ac_default_prefix/share
/config.site
2061 ac_site_file2
=$ac_default_prefix/etc
/config.site
2063 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2065 test "x$ac_site_file" = xNONE
&& continue
2066 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2069 sed 's/^/| /' "$ac_site_file" >&5
2071 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073 as_fn_error $?
"failed to load site script $ac_site_file
2074 See \`config.log' for more details" "$LINENO" 5; }
2078 if test -r "$cache_file"; then
2079 # Some versions of bash will fail to source /dev/null (special files
2080 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2081 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2083 $as_echo "$as_me: loading cache $cache_file" >&6;}
2085 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2086 *) .
"./$cache_file";;
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2091 $as_echo "$as_me: creating cache $cache_file" >&6;}
2095 # Check that the precious variables saved in the cache have kept the same
2097 ac_cache_corrupted
=false
2098 for ac_var
in $ac_precious_vars; do
2099 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2100 eval ac_new_set
=\
$ac_env_${ac_var}_set
2101 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2102 eval ac_new_val
=\
$ac_env_${ac_var}_value
2103 case $ac_old_set,$ac_new_set in
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2106 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2107 ac_cache_corrupted
=: ;;
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2110 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2111 ac_cache_corrupted
=: ;;
2114 if test "x$ac_old_val" != "x$ac_new_val"; then
2115 # differences in whitespace do not lead to failure.
2116 ac_old_val_w
=`echo x $ac_old_val`
2117 ac_new_val_w
=`echo x $ac_new_val`
2118 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2120 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2121 ac_cache_corrupted
=:
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2124 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2125 eval $ac_var=\
$ac_old_val
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2128 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2130 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2133 # Pass precious variables to config.status.
2134 if test "$ac_new_set" = set; then
2136 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 *) ac_arg
=$ac_var=$ac_new_val ;;
2139 case " $ac_configure_args " in
2140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2141 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2145 if $ac_cache_corrupted; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2149 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2150 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2152 ## -------------------- ##
2153 ## Main body of script. ##
2154 ## -------------------- ##
2157 ac_cpp
='$CPP $CPPFLAGS'
2158 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2164 ac_config_headers
="$ac_config_headers src/libmowgli/platform/autoconf.h"
2168 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2169 if test -f "$ac_dir/install-sh"; then
2171 ac_install_sh
="$ac_aux_dir/install-sh -c"
2173 elif test -f "$ac_dir/install.sh"; then
2175 ac_install_sh
="$ac_aux_dir/install.sh -c"
2177 elif test -f "$ac_dir/shtool"; then
2179 ac_install_sh
="$ac_aux_dir/shtool install -c"
2183 if test -z "$ac_aux_dir"; then
2184 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2187 # These three variables are undocumented and unsupported,
2188 # and are intended to be withdrawn in a future Autoconf release.
2189 # They can cause serious problems if a builder's source tree is in a directory
2190 # whose full name contains unusual characters.
2191 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2192 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2193 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2196 # Make sure we can run config.sub.
2197 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2198 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2201 $as_echo_n "checking build system type... " >&6; }
2202 if ${ac_cv_build+:} false
; then :
2203 $as_echo_n "(cached) " >&6
2205 ac_build_alias
=$build_alias
2206 test "x$ac_build_alias" = x
&&
2207 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2208 test "x$ac_build_alias" = x
&&
2209 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2210 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2211 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2215 $as_echo "$ac_cv_build" >&6; }
2216 case $ac_cv_build in
2218 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2221 ac_save_IFS
=$IFS; IFS
='-'
2227 # Remember, the first character of IFS is used to create $*,
2228 # except with old shells:
2231 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2235 $as_echo_n "checking host system type... " >&6; }
2236 if ${ac_cv_host+:} false
; then :
2237 $as_echo_n "(cached) " >&6
2239 if test "x$host_alias" = x
; then
2240 ac_cv_host
=$ac_cv_build
2242 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2243 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2248 $as_echo "$ac_cv_host" >&6; }
2251 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2254 ac_save_IFS
=$IFS; IFS
='-'
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2264 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2268 $as_echo_n "checking target system type... " >&6; }
2269 if ${ac_cv_target+:} false
; then :
2270 $as_echo_n "(cached) " >&6
2272 if test "x$target_alias" = x
; then
2273 ac_cv_target
=$ac_cv_host
2275 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2276 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2281 $as_echo "$ac_cv_target" >&6; }
2282 case $ac_cv_target in
2284 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2286 target
=$ac_cv_target
2287 ac_save_IFS
=$IFS; IFS
='-'
2293 # Remember, the first character of IFS is used to create $*,
2294 # except with old shells:
2297 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2300 # The aliases save the names the user supplied, while $host etc.
2301 # will get canonicalized.
2302 test -n "$target_alias" &&
2303 test "$program_prefix$program_suffix$program_transform_name" = \
2305 program_prefix
=${target_alias}-
2308 ac_cpp
='$CPP $CPPFLAGS'
2309 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2314 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2316 $as_echo_n "checking for $ac_word... " >&6; }
2317 if ${ac_cv_prog_CC+:} false
; then :
2318 $as_echo_n "(cached) " >&6
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC
="$CC" # Let the user override the test.
2323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2327 test -z "$as_dir" && as_dir
=.
2328 for ac_exec_ext
in '' $ac_executable_extensions; do
2329 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 if test -n "$CC"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2343 $as_echo "$CC" >&6; }
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2346 $as_echo "no" >&6; }
2351 if test -z "$ac_cv_prog_CC"; then
2353 # Extract the first word of "gcc", so it can be a program name with args.
2354 set dummy gcc
; ac_word
=$2
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2358 $as_echo_n "(cached) " >&6
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir
=.
2368 for ac_exec_ext
in '' $ac_executable_extensions; do
2369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_ac_ct_CC
="gcc"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2383 $as_echo "$ac_ct_CC" >&6; }
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386 $as_echo "no" >&6; }
2389 if test "x$ac_ct_CC" = x
; then
2392 case $cross_compiling:$ac_tool_warned in
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2396 ac_tool_warned
=yes ;;
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2407 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if ${ac_cv_prog_CC+:} false
; then :
2411 $as_echo_n "(cached) " >&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC
="$CC" # Let the user override the test.
2416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir
=.
2421 for ac_exec_ext
in '' $ac_executable_extensions; do
2422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 if test -n "$CC"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436 $as_echo "$CC" >&6; }
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439 $as_echo "no" >&6; }
2445 if test -z "$CC"; then
2446 # Extract the first word of "cc", so it can be a program name with args.
2447 set dummy cc
; ac_word
=$2
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if ${ac_cv_prog_CC+:} false
; then :
2451 $as_echo_n "(cached) " >&6
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC
="$CC" # Let the user override the test.
2457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir
=.
2462 for ac_exec_ext
in '' $ac_executable_extensions; do
2463 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2465 ac_prog_rejected
=yes
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 if test $ac_prog_rejected = yes; then
2477 # We found a bogon in the path, so make sure we never use it.
2478 set dummy
$ac_cv_prog_CC
2480 if test $# != 0; then
2481 # We chose a different compiler from the bogus one.
2482 # However, it has the same basename, so the bogon will be chosen
2483 # first if we set CC to just the basename; use the full file name.
2485 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2491 if test -n "$CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2493 $as_echo "$CC" >&6; }
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2501 if test -z "$CC"; then
2502 if test -n "$ac_tool_prefix"; then
2503 for ac_prog
in cl.exe
2505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2506 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_CC+:} false
; then :
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC
="$CC" # Let the user override the test.
2515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir
=.
2520 for ac_exec_ext
in '' $ac_executable_extensions; do
2521 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2542 test -n "$CC" && break
2545 if test -z "$CC"; then
2547 for ac_prog
in cl.exe
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy
$ac_prog; ac_word
=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2554 $as_echo_n "(cached) " >&6
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir
=.
2564 for ac_exec_ext
in '' $ac_executable_extensions; do
2565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_ac_ct_CC
="$ac_prog"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2579 $as_echo "$ac_ct_CC" >&6; }
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2586 test -n "$ac_ct_CC" && break
2589 if test "x$ac_ct_CC" = x
; then
2592 case $cross_compiling:$ac_tool_warned in
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596 ac_tool_warned
=yes ;;
2605 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 as_fn_error $?
"no acceptable C compiler found in \$PATH
2608 See \`config.log' for more details" "$LINENO" 5; }
2610 # Provide some information about the compiler.
2611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2614 for ac_option
in --version -v -V -qversion; do
2615 { { ac_try
="$ac_compiler $ac_option >&5"
2617 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2624 if test -s conftest.err; then
2626 ... rest of stderr output deleted ...
2627 10q' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2630 rm -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; }
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2646 ac_clean_files_save=$ac_clean_files
2647 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2648 # Try to create an executable without -o first, disregard a.out.
2649 # It will help us diagnose broken compilers, and finding out an intuition
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2652 $as_echo_n "checking whether the C compiler works... " >&6; }
2653 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2655 # The possible output files:
2656 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2659 for ac_file in $ac_files
2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2663 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2668 if { { ac_try="$ac_link_default"
2670 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2671 *) ac_try_echo
=$ac_try;;
2673 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2674 $as_echo "$ac_try_echo"; } >&5
2675 (eval "$ac_link_default") 2>&5
2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678 test $ac_status = 0; }; then :
2679 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2680 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2681 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2682 # so that the user can short-circuit this test for compilers unknown to
2684 for ac_file
in $ac_files ''
2686 test -f "$ac_file" || continue
2688 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
2691 # We found the default executable, but exeext='' is most
2695 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2697 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2699 # We set ac_cv_exeext here because the later test for it is not
2700 # safe: cross compilers may not add the suffix if given an `-o'
2701 # argument, so we may need to know it at that point already.
2702 # Even if this section looks crufty: it has the advantage of
2709 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2714 if test -z "$ac_file"; then :
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 $as_echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.
$ac_ext >&5
2720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722 as_fn_error
77 "C compiler cannot create executables
2723 See \`config.log' for more details" "$LINENO" 5; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726 $as_echo "yes" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2729 $as_echo_n "checking for C compiler default output file name... " >&6; }
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2731 $as_echo "$ac_file" >&6; }
2732 ac_exeext
=$ac_cv_exeext
2734 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2735 ac_clean_files
=$ac_clean_files_save
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2737 $as_echo_n "checking for suffix of executables... " >&6; }
2738 if { { ac_try
="$ac_link"
2740 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744 $as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_link") 2>&5
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; then :
2749 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2750 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2751 # work properly (i.e., refer to `conftest.exe'), while it won't with
2753 for ac_file
in conftest.exe conftest conftest.
*; do
2754 test -f "$ac_file" || continue
2756 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2757 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2766 See \`config.log' for more details" "$LINENO" 5; }
2768 rm -f conftest conftest
$ac_cv_exeext
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2770 $as_echo "$ac_cv_exeext" >&6; }
2772 rm -f conftest.
$ac_ext
2773 EXEEXT
=$ac_cv_exeext
2775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2781 FILE *f = fopen ("conftest.out", "w");
2782 return ferror (f) || fclose (f) != 0;
2788 ac_clean_files
="$ac_clean_files conftest.out"
2789 # Check that the compiler produces executables we can run. If not, either
2790 # the compiler is broken, or we cross compile.
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2792 $as_echo_n "checking whether we are cross compiling... " >&6; }
2793 if test "$cross_compiling" != yes; then
2794 { { ac_try
="$ac_link"
2796 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_link") 2>&5
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }
2805 if { ac_try='./conftest$ac_cv_exeext'
2806 { { case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2808 *) ac_try_echo
=$ac_try;;
2810 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811 $as_echo "$ac_try_echo"; } >&5
2812 (eval "$ac_try") 2>&5
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }; }; then
2818 if test "$cross_compiling" = maybe
; then
2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823 as_fn_error $?
"cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details" "$LINENO" 5; }
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2830 $as_echo "$cross_compiling" >&6; }
2832 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2833 ac_clean_files
=$ac_clean_files_save
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2835 $as_echo_n "checking for suffix of object files... " >&6; }
2836 if ${ac_cv_objext+:} false
; then :
2837 $as_echo_n "(cached) " >&6
2839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h. */
2850 rm -f conftest.o conftest.obj
2851 if { { ac_try
="$ac_compile"
2853 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2857 $as_echo "$ac_try_echo"; } >&5
2858 (eval "$ac_compile") 2>&5
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; }; then :
2862 for ac_file in conftest.o conftest.obj conftest.*; do
2863 test -f "$ac_file" || continue;
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2871 $as_echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2877 See \
`config.log' for more details" "$LINENO" 5; }
2879 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2882 $as_echo "$ac_cv_objext" >&6; }
2883 OBJEXT=$ac_cv_objext
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2886 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2887 if ${ac_cv_c_compiler_gnu+:} false; then :
2888 $as_echo_n "(cached) " >&6
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891 /* end confdefs.h. */
2904 if ac_fn_c_try_compile "$LINENO"; then :
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2914 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2915 if test $ac_compiler_gnu = yes; then
2920 ac_test_CFLAGS=${CFLAGS+set}
2921 ac_save_CFLAGS=$CFLAGS
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2923 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2924 if ${ac_cv_prog_cc_g+:} false; then :
2925 $as_echo_n "(cached) " >&6
2927 ac_save_c_werror_flag=$ac_c_werror_flag
2928 ac_c_werror_flag=yes
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2942 if ac_fn_c_try_compile "$LINENO"; then :
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2957 if ac_fn_c_try_compile "$LINENO"; then :
2960 ac_c_werror_flag=$ac_save_c_werror_flag
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2973 if ac_fn_c_try_compile "$LINENO"; then :
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_c_werror_flag=$ac_save_c_werror_flag
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2984 $as_echo "$ac_cv_prog_cc_g" >&6; }
2985 if test "$ac_test_CFLAGS" = set; then
2986 CFLAGS=$ac_save_CFLAGS
2987 elif test $ac_cv_prog_cc_g = yes; then
2988 if test "$GCC" = yes; then
2994 if test "$GCC" = yes; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3001 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3002 if ${ac_cv_prog_cc_c89+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 ac_cv_prog_cc_c89=no
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3013 struct buf { int x; };
3014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3015 static char *e (p, i)
3021 static char *f (char * (*g) (char **, int), char **p, ...)
3026 s = g (p, va_arg (v,int));
3031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3032 function prototypes and stuff, but not '\xHH' hex character constants.
3033 These don't provoke an error unfortunately, instead are silently treated
3034 as 'x'. The following induces an error, until -std is added to get
3035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3036 array size at least. It's necessary to write '\x00'==0 to get something
3037 that's true only with -std. */
3038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3041 inside strings and character constants. */
3043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3045 int test (int i, double x);
3046 struct s1 {int (*f) (int a);};
3047 struct s2 {int (*f) (double a);};
3048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3054 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062 CC="$ac_save_CC $ac_arg"
3063 if ac_fn_c_try_compile "$LINENO"; then :
3064 ac_cv_prog_cc_c89=$ac_arg
3066 rm -f core conftest.err conftest.$ac_objext
3067 test "x$ac_cv_prog_cc_c89" != "xno" && break
3069 rm -f conftest.$ac_ext
3074 case "x$ac_cv_prog_cc_c89" in
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3077 $as_echo "none needed" >&6; } ;;
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3080 $as_echo "unsupported" >&6; } ;;
3082 CC="$CC $ac_cv_prog_cc_c89"
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3084 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3086 if test "x$ac_cv_prog_cc_c89" != xno; then :
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3102 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3103 # On Suns, sometimes $CPP names a directory.
3104 if test -n "$CPP" && test -d "$CPP"; then
3107 if test -z "$CPP"; then
3108 if ${ac_cv_prog_CPP+:} false; then :
3109 $as_echo_n "(cached) " >&6
3111 # Double quotes because CPP needs to be expanded
3112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3115 for ac_c_preproc_warn_flag in '' yes
3117 # Use a header file that comes with gcc, so configuring glibc
3118 # with a fresh cross-compiler works.
3119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3120 # <limits.h> exists even on freestanding compilers.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp. "Syntax error" is here to catch this case.
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3126 # include <limits.h>
3128 # include <assert.h>
3132 if ac_fn_c_try_cpp "$LINENO"; then :
3135 # Broken: fails on valid input.
3138 rm -f conftest.err conftest.i conftest.$ac_ext
3140 # OK, works on sane cases. Now check whether nonexistent headers
3141 # can be detected and how.
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3144 #include <ac_nonexistent.h>
3146 if ac_fn_c_try_cpp "$LINENO"; then :
3147 # Broken: success on invalid input.
3150 # Passes both tests.
3154 rm -f conftest.err conftest.i conftest.$ac_ext
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.i conftest.err conftest.
$ac_ext
3159 if $ac_preproc_ok; then :
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3172 $as_echo "$CPP" >&6; }
3174 for ac_c_preproc_warn_flag
in '' yes
3176 # Use a header file that comes with gcc, so configuring glibc
3177 # with a fresh cross-compiler works.
3178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3179 # <limits.h> exists even on freestanding compilers.
3180 # On the NeXT, cc -E runs the code through the compiler's parser,
3181 # not just through cpp. "Syntax error" is here to catch this case.
3182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3185 # include <limits.h>
3187 # include <assert.h>
3191 if ac_fn_c_try_cpp
"$LINENO"; then :
3194 # Broken: fails on valid input.
3197 rm -f conftest.err conftest.i conftest.
$ac_ext
3199 # OK, works on sane cases. Now check whether nonexistent headers
3200 # can be detected and how.
3201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203 #include <ac_nonexistent.h>
3205 if ac_fn_c_try_cpp
"$LINENO"; then :
3206 # Broken: success on invalid input.
3209 # Passes both tests.
3213 rm -f conftest.err conftest.i conftest.
$ac_ext
3216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3217 rm -f conftest.i conftest.err conftest.
$ac_ext
3218 if $ac_preproc_ok; then :
3221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3224 See \`config.log' for more details" "$LINENO" 5; }
3228 ac_cpp
='$CPP $CPPFLAGS'
3229 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3233 # Find a good install program. We prefer a C program (faster),
3234 # so one script is as good as another. But avoid the broken or
3235 # incompatible versions:
3236 # SysV /etc/install, /usr/sbin/install
3237 # SunOS /usr/etc/install
3238 # IRIX /sbin/install
3240 # AmigaOS /C/install, which installs bootblocks on floppy discs
3241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3244 # OS/2's system install, which has a completely different semantic
3245 # ./install, which can be erroneously created by make from ./install.sh.
3246 # Reject install programs that cannot install multiple files.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3248 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3249 if test -z "$INSTALL"; then
3250 if ${ac_cv_path_install+:} false
; then :
3251 $as_echo_n "(cached) " >&6
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 # Account for people who put trailing slashes in PATH elements.
3259 case $as_dir/ in #((
3260 .
/ | .
// | /[cC
]/* | \
3261 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3262 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3265 # OSF1 and SCO ODT 3.0 have their own names for install.
3266 # Don't use installbsd from OSF since it installs stuff as root
3268 for ac_prog
in ginstall scoinst
install; do
3269 for ac_exec_ext
in '' $ac_executable_extensions; do
3270 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3271 if test $ac_prog = install &&
3272 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3273 # AIX install. It has an incompatible calling convention.
3275 elif test $ac_prog = install &&
3276 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3277 # program-specific install script used by HP pwplus--don't use.
3280 rm -rf conftest.one conftest.two conftest.dir
3281 echo one
> conftest.one
3282 echo two
> conftest.two
3284 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3285 test -s conftest.one
&& test -s conftest.two
&&
3286 test -s conftest.dir
/conftest.one
&&
3287 test -s conftest.dir
/conftest.two
3289 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3302 rm -rf conftest.one conftest.two conftest.dir
3305 if test "${ac_cv_path_install+set}" = set; then
3306 INSTALL
=$ac_cv_path_install
3308 # As a last resort, use the slow shell script. Don't cache a
3309 # value for INSTALL within a source directory, because that will
3310 # break other packages using the cache if that directory is
3311 # removed, or if the value is a relative name.
3312 INSTALL
=$ac_install_sh
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3316 $as_echo "$INSTALL" >&6; }
3318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3319 # It thinks the first close brace ends the variable substitution.
3320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3324 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3327 $as_echo_n "checking whether ln -s works... " >&6; }
3329 if test "$LN_S" = "ln -s"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3334 $as_echo "no, using $LN_S" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3339 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3340 if ${ac_cv_prog_cc_c99+:} false
; then :
3341 $as_echo_n "(cached) " >&6
3343 ac_cv_prog_cc_c99
=no
3345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3348 #include <stdbool.h>
3353 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3354 #define debug(...) fprintf (stderr, __VA_ARGS__)
3355 #define showlist(...) puts (#__VA_ARGS__)
3356 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3358 test_varargs_macros (void)
3363 debug ("X = %d\n", x);
3364 showlist (The first, second, and third items.);
3365 report (x>y, "x is %d but y is %d", x, y);
3368 // Check long long types.
3369 #define BIG64 18446744073709551615ull
3370 #define BIG32 4294967295ul
3371 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3373 your preprocessor is broken;
3377 your preprocessor is broken;
3379 static long long int bignum = -9223372036854775807LL;
3380 static unsigned long long int ubignum = BIG64;
3382 struct incomplete_array
3390 const wchar_t *name;
3394 typedef const char *ccp;
3397 test_restrict (ccp restrict text)
3399 // See if C++-style comments work.
3400 // Iterate through items via the restricted pointer.
3401 // Also check for declarations in for loops.
3402 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3407 // Check varargs and va_copy.
3409 test_varargs (const char *format, ...)
3412 va_start (args, format);
3414 va_copy (args_copy, args);
3425 str = va_arg (args_copy, const char *);
3428 number = va_arg (args_copy, int);
3431 fnumber = va_arg (args_copy, double);
3446 _Bool success = false;
3449 if (test_restrict ("String literal") == 0)
3451 char *restrict newvar = "Another string";
3454 test_varargs ("s, d' f .", "string", 65, 34.234);
3455 test_varargs_macros ();
3457 // Check flexible array members.
3458 struct incomplete_array *ia =
3459 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3461 for (int i = 0; i < ia->datasize; ++i)
3462 ia->data[i] = i * 1.234;
3464 // Check named initializers.
3465 struct named_init ni = {
3467 .name = L"Test wide string",
3468 .average = 543.34343,
3473 int dynamic_array[ni.number];
3474 dynamic_array[ni.number - 1] = 543;
3476 // work around unused variable warnings
3477 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3478 || dynamic_array[ni.number - 1] != 543);
3484 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3486 CC
="$ac_save_CC $ac_arg"
3487 if ac_fn_c_try_compile
"$LINENO"; then :
3488 ac_cv_prog_cc_c99
=$ac_arg
3490 rm -f core conftest.err conftest.
$ac_objext
3491 test "x$ac_cv_prog_cc_c99" != "xno" && break
3493 rm -f conftest.
$ac_ext
3498 case "x$ac_cv_prog_cc_c99" in
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3501 $as_echo "none needed" >&6; } ;;
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3504 $as_echo "unsupported" >&6; } ;;
3506 CC
="$CC $ac_cv_prog_cc_c99"
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3508 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3510 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3515 if test "x$ac_cv_prog_cc_c99" = "xno"; then :
3517 as_fn_error
1 "C compiler does not support C99" "$LINENO" 5
3521 MORECFLAGS
="-pipe -Wall -Wextra -Wno-unused-value -Wno-unused-parameter -Wno-missing-field-initializers"
3522 if test "x$GCC" = "xyes"; then :
3524 CFLAGS
="$CFLAGS $MORECFLAGS"
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3531 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3532 if ${ac_cv_path_GREP+:} false
; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -z "$GREP"; then
3536 ac_path_GREP_found
=false
3537 # Loop through the user's path and test for each of PROGNAME-LIST
3538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3539 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3542 test -z "$as_dir" && as_dir
=.
3543 for ac_prog
in grep ggrep
; do
3544 for ac_exec_ext
in '' $ac_executable_extensions; do
3545 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3546 as_fn_executable_p
"$ac_path_GREP" || continue
3547 # Check for GNU ac_path_GREP and select it if it is found.
3548 # Check for GNU $ac_path_GREP
3549 case `"$ac_path_GREP" --version 2>&1` in
3551 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3554 $as_echo_n 0123456789 >"conftest.in"
3557 cat "conftest.in" "conftest.in" >"conftest.tmp"
3558 mv "conftest.tmp" "conftest.in"
3559 cp "conftest.in" "conftest.nl"
3560 $as_echo 'GREP' >> "conftest.nl"
3561 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3562 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3563 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3564 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3565 # Best one so far, save it but keep looking for a better one
3566 ac_cv_path_GREP
="$ac_path_GREP"
3567 ac_path_GREP_max
=$ac_count
3569 # 10*(2^10) chars as input seems more than enough
3570 test $ac_count -gt 10 && break
3572 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3575 $ac_path_GREP_found && break 3
3580 if test -z "$ac_cv_path_GREP"; then
3581 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3584 ac_cv_path_GREP
=$GREP
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3589 $as_echo "$ac_cv_path_GREP" >&6; }
3590 GREP
="$ac_cv_path_GREP"
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3594 $as_echo_n "checking for egrep... " >&6; }
3595 if ${ac_cv_path_EGREP+:} false
; then :
3596 $as_echo_n "(cached) " >&6
3598 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3599 then ac_cv_path_EGREP
="$GREP -E"
3601 if test -z "$EGREP"; then
3602 ac_path_EGREP_found
=false
3603 # Loop through the user's path and test for each of PROGNAME-LIST
3604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3605 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3608 test -z "$as_dir" && as_dir
=.
3609 for ac_prog
in egrep; do
3610 for ac_exec_ext
in '' $ac_executable_extensions; do
3611 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3612 as_fn_executable_p
"$ac_path_EGREP" || continue
3613 # Check for GNU ac_path_EGREP and select it if it is found.
3614 # Check for GNU $ac_path_EGREP
3615 case `"$ac_path_EGREP" --version 2>&1` in
3617 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3620 $as_echo_n 0123456789 >"conftest.in"
3623 cat "conftest.in" "conftest.in" >"conftest.tmp"
3624 mv "conftest.tmp" "conftest.in"
3625 cp "conftest.in" "conftest.nl"
3626 $as_echo 'EGREP' >> "conftest.nl"
3627 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3628 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3629 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3630 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3631 # Best one so far, save it but keep looking for a better one
3632 ac_cv_path_EGREP
="$ac_path_EGREP"
3633 ac_path_EGREP_max
=$ac_count
3635 # 10*(2^10) chars as input seems more than enough
3636 test $ac_count -gt 10 && break
3638 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3641 $ac_path_EGREP_found && break 3
3646 if test -z "$ac_cv_path_EGREP"; then
3647 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3650 ac_cv_path_EGREP
=$EGREP
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3656 $as_echo "$ac_cv_path_EGREP" >&6; }
3657 EGREP
="$ac_cv_path_EGREP"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3661 $as_echo_n "checking for ANSI C header files... " >&6; }
3662 if ${ac_cv_header_stdc+:} false
; then :
3663 $as_echo_n "(cached) " >&6
3665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3680 if ac_fn_c_try_compile
"$LINENO"; then :
3681 ac_cv_header_stdc
=yes
3683 ac_cv_header_stdc
=no
3685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3687 if test $ac_cv_header_stdc = yes; then
3688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 $EGREP "memchr" >/dev
/null
2>&1; then :
3698 ac_cv_header_stdc
=no
3704 if test $ac_cv_header_stdc = yes; then
3705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712 $EGREP "free" >/dev
/null
2>&1; then :
3715 ac_cv_header_stdc
=no
3721 if test $ac_cv_header_stdc = yes; then
3722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3723 if test "$cross_compiling" = yes; then :
3726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3730 #if ((' ' & 0x0FF) == 0x020)
3731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3734 # define ISLOWER(c) \
3735 (('a' <= (c) && (c) <= 'i') \
3736 || ('j' <= (c) && (c) <= 'r') \
3737 || ('s' <= (c) && (c) <= 'z'))
3738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3746 for (i = 0; i < 256; i++)
3747 if (XOR (islower (i), ISLOWER (i))
3748 || toupper (i) != TOUPPER (i))
3753 if ac_fn_c_try_run
"$LINENO"; then :
3756 ac_cv_header_stdc
=no
3758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3759 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3765 $as_echo "$ac_cv_header_stdc" >&6; }
3766 if test $ac_cv_header_stdc = yes; then
3768 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3772 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3773 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3774 inttypes.h stdint.h unistd.h
3776 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3777 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3779 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3780 cat >>confdefs.h
<<_ACEOF
3781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3789 for ac_header
in poll.h winsock2.h sys
/epoll.h sys
/select.h sys
/pstat.h sys
/prctl.h
3791 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3792 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3793 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3794 cat >>confdefs.h
<<_ACEOF
3795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3802 for ac_func
in fcntl kqueue mmap
select dispatch_block port_create setproctitle pstat
3804 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3805 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
3806 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
3807 cat >>confdefs.h
<<_ACEOF
3808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
3816 $as_echo_n "checking for PS_STRINGS... " >&6; }
3817 if ${pgac_cv_var_PS_STRINGS+:} false
; then :
3818 $as_echo_n "(cached) " >&6
3820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <machine/vmparam.h>
3823 #include <sys/exec.h>
3828 PS_STRINGS->ps_nargvstr = 1;
3829 PS_STRINGS->ps_argvstr = "foo";
3834 if ac_fn_c_try_link
"$LINENO"; then :
3835 pgac_cv_var_PS_STRINGS
=yes
3837 pgac_cv_var_PS_STRINGS
=no
3839 rm -f core conftest.err conftest.
$ac_objext \
3840 conftest
$ac_exeext conftest.
$ac_ext
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
3843 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
3844 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
3846 $as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h
3850 # Extract the first word of "ar", so it can be a program name with args.
3851 set dummy
ar; ac_word
=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_path_AR+:} false
; then :
3855 $as_echo_n "(cached) " >&6
3859 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
3862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir
=.
3867 for ac_exec_ext
in '' $ac_executable_extensions; do
3868 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$AR"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3883 $as_echo "$AR" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3890 # Extract the first word of "ranlib", so it can be a program name with args.
3891 set dummy ranlib
; ac_word
=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_path_RANLIB+:} false
; then :
3895 $as_echo_n "(cached) " >&6
3899 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a path.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_path_RANLIB
="$as_dir/$ac_word$ac_exec_ext"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 RANLIB
=$ac_cv_path_RANLIB
3921 if test -n "$RANLIB"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3923 $as_echo "$RANLIB" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3931 LIBMOWGLI_MODULES
="core base container dns eventloop ext linebuf module object platform thread vio"
3934 LIBMOWGLI_MODULE_BUILD
="$(echo && echo x)"
3935 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
3937 LIBMOWGLI_SHARED_MODULES
=""
3938 # Check whether --enable-shared was given.
3939 if test "${enable_shared+set}" = set; then :
3940 enableval
=$enable_shared;
3943 if test x
"$enable_shared" != x
"no"; then :
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library system" >&5
3948 $as_echo_n "checking for shared library system... " >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
3952 $as_echo "Darwin" >&6; }
3953 LIB_CFLAGS
='-fPIC -DPIC'
3954 LIB_LDFLAGS
='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -install_name ${libdir}/$$(i=${SHARED_LIB}; echo $${i%.dylib}).${LIB_MAJOR}.dylib'
3957 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
3958 PLUGIN_CFLAGS
='-fPIC -DPIC'
3959 PLUGIN_LDFLAGS
='-bundle -undefined dynamic_lookup'
3960 PLUGIN_SUFFIX
='.bundle'
3961 INSTALL_LIB
='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
3962 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
3967 $as_echo "Solaris" >&6; }
3968 LIB_CFLAGS
='-fPIC -DPIC'
3969 LIB_LDFLAGS
='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}.${LIB_MINOR}'
3972 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
3973 PLUGIN_CFLAGS
='-fPIC -DPIC'
3974 PLUGIN_LDFLAGS
='-shared'
3976 INSTALL_LIB
='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
3977 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
3982 $as_echo "OpenBSD" >&6; }
3983 LIB_CFLAGS
='-fPIC -DPIC'
3984 LIB_LDFLAGS
='-shared'
3986 LIB_SUFFIX
='.so.${LIB_MAJOR}.${LIB_MINOR}'
3987 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
3988 PLUGIN_CFLAGS
='-fPIC -DPIC'
3989 PLUGIN_LDFLAGS
='-shared'
3991 INSTALL_LIB
='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
3992 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${libdir}/$$i'
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
3997 $as_echo "Win32" >&6; }
3999 LIB_LDFLAGS
='-shared -Wl,--out-implib,${SHARED_LIB}.a'
4002 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
4004 PLUGIN_LDFLAGS
='-shared'
4005 PLUGIN_SUFFIX
='.dll'
4006 INSTALL_LIB
='&& ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
4007 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
4008 CLEAN_LIB
='${SHARED_LIB}.a'
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
4012 $as_echo "GNU" >&6; }
4013 LIB_CFLAGS
='-fPIC -DPIC'
4014 LIB_LDFLAGS
='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}'
4017 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
4018 PLUGIN_CFLAGS
='-fPIC -DPIC'
4019 PLUGIN_LDFLAGS
='-shared'
4021 INSTALL_LIB
='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
4022 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need an implib" >&5
4042 $as_echo_n "checking whether we need an implib... " >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4046 $as_echo "yes" >&6; }
4047 PROG_IMPLIB_NEEDED
='yes'
4048 PROG_IMPLIB_LDFLAGS
='-Wl,-export-all-symbols,--out-implib,lib${PROG}.a'
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 PROG_IMPLIB_NEEDED
='no'
4054 PROG_IMPLIB_LDFLAGS
=''
4061 LIBMOWGLI_SHARED_LIB
=${LIB_PREFIX}mowgli
-2${LIB_SUFFIX}
4064 for i
in $LIBMOWGLI_MODULES
4066 UPPER
="$(echo $i | tr '[:lower:]' '[:upper:]')"
4067 LIBMOWGLI_SHARED_MODULES
="$LIBMOWGLI_SHARED_MODULES $i/mowgli.$i.lib.a"
4068 LIBMOWGLI_MODULE_BUILD
="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_SHARED_$UPPER = mowgli.$i.lib.a && echo x)"
4069 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
4074 LIBMOWGLI_STATIC_MODULES
=""
4075 # Check whether --enable-static was given.
4076 if test "${enable_static+set}" = set; then :
4077 enableval
=$enable_static;
4080 if test x
"$enable_static" = x
"yes" -o x
"$enable_shared" = x
"no"; then :
4082 LIBMOWGLI_STATIC_LIB
=libmowgli
-2.a
4085 for i
in $LIBMOWGLI_MODULES
4087 UPPER
="$(echo $i | tr '[:lower:]' '[:upper:]')"
4088 LIBMOWGLI_STATIC_MODULES
="$LIBMOWGLI_STATIC_MODULES $i/mowgli.$i.a"
4089 LIBMOWGLI_MODULE_BUILD
="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_STATIC_$UPPER = mowgli.$i.a && echo x)"
4090 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS type" >&5
4096 $as_echo_n "checking OS type... " >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: win32" >&5
4100 $as_echo "win32" >&6; }
4101 LIBMOWGLI_OS
="win32"
4103 LIBS
="$LIBS -lwsock32 -lws2_32"
4105 if test x
"$LIBMOWGLI_SHARED_MODULES" != x
""; then :
4107 LIBMOWGLI_SHARED_MODULES
="$LIBMOWGLI_SHARED_MODULES platform/win32/mowgli.platform.win32.lib.a"
4108 LIBMOWGLI_MODULE_BUILD
="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_SHARED_PLATFORM_WIN32 = mowgli.platform.win32.lib.a && echo x)"
4109 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
4113 if test x
"$LIBMOWGLI_STATIC_MODULES" != x
""; then :
4115 LIBMOWGLI_STATIC_MODULES
="$LIBMOWGLI_STATIC_MODULES platform/win32/mowgli.platform.win32.a"
4116 LIBMOWGLI_MODULE_BUILD
="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_STATIC_PLATFORM_WIN32 = mowgli.platform.win32.a && echo x)"
4117 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: posix" >&5
4123 $as_echo "posix" >&6; }
4124 LIBMOWGLI_OS
="posix"
4130 # We used to check for pthread.h first, but this fails if pthread.h
4131 # requires special compiler flags (e.g. on True64 or Sequent).
4132 # It gets checked for in the link test anyway.
4134 # First of all, check if the user has set any of the PTHREAD_LIBS,
4135 # etcetera environment variables, and if threads linking works using
4137 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
4138 save_CFLAGS
="$CFLAGS"
4139 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4141 LIBS
="$PTHREAD_LIBS $LIBS"
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4143 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
4144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4147 /* Override any GCC internal prototype to avoid an error.
4148 Use char because int might match the return type of a GCC
4149 builtin and then its argument prototype would still apply. */
4153 char pthread_join ();
4157 return pthread_join ();
4162 if ac_fn_c_try_link
"$LINENO"; then :
4165 rm -f core conftest.err conftest.
$ac_objext \
4166 conftest
$ac_exeext conftest.
$ac_ext
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4168 $as_echo "$acx_pthread_ok" >&6; }
4169 if test x
"$acx_pthread_ok" = xno
; then
4174 CFLAGS
="$save_CFLAGS"
4177 # We must check for the threads library under a number of different
4178 # names; the ordering is very important because some systems
4179 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4180 # libraries is broken (non-POSIX).
4182 # Create a list of thread flags to try. Items starting with a "-" are
4183 # C compiler flags, and other items are library names, except for "none"
4184 # which indicates that we try without any flags at all, and "pthread-config"
4185 # which is a program returning the flags for the Pth emulation library.
4187 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4189 # The ordering *is* (sometimes) important. Some notes on the
4190 # individual items follow:
4192 # pthreads: AIX (must check this before -lpthread)
4193 # none: in case threads are in libc; should be tried before -Kthread and
4194 # other compiler flags to prevent continual compiler warnings
4195 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4196 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4197 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4198 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4199 # -pthreads: Solaris/gcc
4200 # -mthreads: Mingw32/gcc, Lynx/gcc
4201 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4202 # doesn't hurt to check since this sometimes defines pthreads too;
4203 # also defines -D_REENTRANT)
4204 # ... -mt is also the pthreads flag for HP/aCC
4205 # pthread: Linux, etcetera
4206 # --thread-safe: KAI C++
4207 # pthread-config: use pthread-config program (for GNU Pth library)
4209 case "${host_cpu}-${host_os}" in
4212 # On Solaris (at least, for some versions), libc contains stubbed
4213 # (non-functional) versions of the pthreads routines, so link-based
4214 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4215 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4216 # a function called by this macro, so we could check for that, but
4217 # who knows whether they'll stub that too in a future libc.) So,
4218 # we'll just look for -pthreads and -lpthread first:
4220 acx_pthread_flags
="-pthreads pthread -mt -pthread $acx_pthread_flags"
4224 if test x
"$acx_pthread_ok" = xno
; then
4225 for flag
in $acx_pthread_flags; do
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4230 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4235 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
4236 PTHREAD_CFLAGS
="$flag"
4237 PTHREAD_LIBS
="$flag"
4241 # Extract the first word of "pthread-config", so it can be a program name with args.
4242 set dummy pthread
-config; ac_word
=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_acx_pthread_config+:} false
; then :
4246 $as_echo_n "(cached) " >&6
4248 if test -n "$acx_pthread_config"; then
4249 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
4251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir
=.
4256 for ac_exec_ext
in '' $ac_executable_extensions; do
4257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_acx_pthread_config
="yes"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
4269 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
4270 if test -n "$acx_pthread_config"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
4272 $as_echo "$acx_pthread_config" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4279 if test x
"$acx_pthread_config" = xno
; then continue; fi
4280 PTHREAD_CFLAGS
="`pthread-config --cflags`"
4281 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4286 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4287 PTHREAD_LIBS
="-l$flag"
4292 save_CFLAGS
="$CFLAGS"
4293 LIBS
="$PTHREAD_LIBS $LIBS"
4294 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4296 # Check for various functions. We must include pthread.h,
4297 # since some functions may be macros. (On the Sequent, we
4298 # need a special flag -Kthread to make this header compile.)
4299 # We check for pthread_join because it is in -lpthread on IRIX
4300 # while pthread_create is in libc. We check for pthread_attr_init
4301 # due to DEC craziness with -lpthreads. We check for
4302 # pthread_cleanup_push because it is one of the few pthread
4303 # functions on Solaris that doesn't have a non-functional libc stub.
4304 # We try pthread_create on general principles.
4305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <pthread.h>
4311 pthread_t th; pthread_join(th, 0);
4312 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4313 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4318 if ac_fn_c_try_link
"$LINENO"; then :
4321 rm -f core conftest.err conftest.
$ac_objext \
4322 conftest
$ac_exeext conftest.
$ac_ext
4325 CFLAGS
="$save_CFLAGS"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4328 $as_echo "$acx_pthread_ok" >&6; }
4329 if test "x$acx_pthread_ok" = xyes
; then
4338 # Various other checks:
4339 if test "x$acx_pthread_ok" = xyes
; then
4341 LIBS
="$PTHREAD_LIBS $LIBS"
4342 save_CFLAGS
="$CFLAGS"
4343 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4345 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4347 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4349 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
4350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <pthread.h>
4356 int attr=$attr; return attr;
4361 if ac_fn_c_try_link
"$LINENO"; then :
4362 attr_name
=$attr; break
4364 rm -f core conftest.err conftest.
$ac_objext \
4365 conftest
$ac_exeext conftest.
$ac_ext
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4368 $as_echo "$attr_name" >&6; }
4369 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
4371 cat >>confdefs.h
<<_ACEOF
4372 #define PTHREAD_CREATE_JOINABLE $attr_name
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4378 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4380 case "${host_cpu}-${host_os}" in
4381 *-aix* | *-freebsd* | *-darwin*) flag
="-D_THREAD_SAFE";;
4382 *solaris
* | *-osf* | *-hpux*) flag
="-D_REENTRANT";;
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
4385 $as_echo "${flag}" >&6; }
4386 if test "x$flag" != xno
; then
4387 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
4391 CFLAGS
="$save_CFLAGS"
4397 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4398 if test x
"$acx_pthread_ok" = xyes
; then
4400 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
4408 CPPFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4409 LIBS
="$PTHREAD_LIBS $LIBS"
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4411 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4412 if ${ac_cv_lib_dl_dlopen+:} false
; then :
4413 $as_echo_n "(cached) " >&6
4415 ac_check_lib_save_LIBS
=$LIBS
4417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4420 /* Override any GCC internal prototype to avoid an error.
4421 Use char because int might match the return type of a GCC
4422 builtin and then its argument prototype would still apply. */
4435 if ac_fn_c_try_link
"$LINENO"; then :
4436 ac_cv_lib_dl_dlopen
=yes
4438 ac_cv_lib_dl_dlopen
=no
4440 rm -f core conftest.err conftest.
$ac_objext \
4441 conftest
$ac_exeext conftest.
$ac_ext
4442 LIBS
=$ac_check_lib_save_LIBS
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4445 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4446 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
4451 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
4452 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
4453 $as_echo_n "(cached) " >&6
4455 ac_check_lib_save_LIBS
=$LIBS
4457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4460 /* Override any GCC internal prototype to avoid an error.
4461 Use char because int might match the return type of a GCC
4462 builtin and then its argument prototype would still apply. */
4466 char clock_gettime ();
4470 return clock_gettime ();
4475 if ac_fn_c_try_link
"$LINENO"; then :
4476 ac_cv_lib_rt_clock_gettime
=yes
4478 ac_cv_lib_rt_clock_gettime
=no
4480 rm -f core conftest.err conftest.
$ac_objext \
4481 conftest
$ac_exeext conftest.
$ac_ext
4482 LIBS
=$ac_check_lib_save_LIBS
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
4485 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
4486 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
4501 # Check whether --with-openssl was given.
4502 if test "${with_openssl+set}" = set; then :
4503 withval
=$with_openssl;
4505 "" | y
| ye
| yes | n
| no
)
4506 as_fn_error $?
"Invalid --with-openssl value" "$LINENO" 5
4508 *) ssldirs
="$withval"
4514 # if pkg-config is installed and openssl has installed a .pc file,
4515 # then use that information and don't search ssldirs
4516 # Extract the first word of "pkg-config", so it can be a program name with args.
4517 set dummy pkg
-config; ac_word
=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
4521 $as_echo_n "(cached) " >&6
4525 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir
=.
4533 for ac_exec_ext
in '' $ac_executable_extensions; do
4534 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4547 if test -n "$PKG_CONFIG"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4549 $as_echo "$PKG_CONFIG" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4556 if test x
"$PKG_CONFIG" != x
""; then
4557 OPENSSL_LDFLAGS
=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
4558 if test $?
= 0; then
4559 OPENSSL_LIBS
=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
4560 OPENSSL_INCLUDES
=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
4565 # no such luck; use some default ssldirs
4567 ssldirs
="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
4575 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
4576 # an 'openssl' subdirectory
4580 for ssldir
in $ssldirs; do
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
4582 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
4583 if test -f "$ssldir/include/openssl/ssl.h"; then
4584 OPENSSL_INCLUDES
="-I$ssldir/include"
4585 OPENSSL_LDFLAGS
="-L$ssldir/lib"
4586 OPENSSL_LIBS
="-lssl -lcrypto"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589 $as_echo "yes" >&6; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4597 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
4598 # it will just work!
4601 # try the preprocessor and linker with our new flags,
4602 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
4605 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
4606 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
4607 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
4610 save_LDFLAGS
="$LDFLAGS"
4611 save_CPPFLAGS
="$CPPFLAGS"
4612 LDFLAGS
="$LDFLAGS $OPENSSL_LDFLAGS"
4613 LIBS
="$OPENSSL_LIBS $LIBS"
4614 CPPFLAGS
="$OPENSSL_INCLUDES $CPPFLAGS"
4615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <openssl/ssl.h>
4626 if ac_fn_c_try_link
"$LINENO"; then :
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629 $as_echo "yes" >&6; }
4633 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4644 rm -f core conftest.err conftest.
$ac_objext \
4645 conftest
$ac_exeext conftest.
$ac_ext
4646 CPPFLAGS
="$save_CPPFLAGS"
4647 LDFLAGS
="$save_LDFLAGS"
4654 if test x
"$OPENSSL" = x
"yes"; then :
4656 LIBS
="$LIBS $OPENSSL_LIBS"
4657 LDFLAGS
="$LDFLAGS $OPENSSL_LDFLAGS"
4658 CPPFLAGS
="$CPPFLAGS $OPENSSL_INCLUDES"
4664 # Check whether --enable-examples was given.
4665 if test "${enable_examples+set}" = set; then :
4666 enableval
=$enable_examples;
4669 if test x
"$enable_examples" = x
"yes"; then :
4671 EXAMPLES_BUILD
="examples"
4679 # Extract the first word of "tput", so it can be a program name with args.
4680 set dummy
tput; ac_word
=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_path_TPUT+:} false
; then :
4684 $as_echo_n "(cached) " >&6
4688 ac_cv_path_TPUT
="$TPUT" # Let the user override the test with a path.
4691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir
=.
4696 for ac_exec_ext
in '' $ac_executable_extensions; do
4697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_path_TPUT
="$as_dir/$ac_word$ac_exec_ext"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 TPUT
=$ac_cv_path_TPUT
4710 if test -n "$TPUT"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPUT" >&5
4712 $as_echo "$TPUT" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4720 if test x
"$TPUT" != x
""; then :
4722 if x
=$($TPUT el 2>/dev/null); then
4726 TERM_EL
="$($TPUT ce 2>/dev/null)"
4730 if x
=$($TPUT sgr0 2>/dev/null); then
4734 TERM_SGR0
="$($TPUT me 2>/dev/null)"
4738 if x
=$($TPUT bold 2>/dev/null); then
4742 TERM_BOLD
="$($TPUT md 2>/dev/null)"
4746 if x
=$($TPUT setaf 1 2>/dev/null); then
4749 TERM_SETAF2
="$($TPUT setaf 2 2>/dev/null)"
4751 TERM_SETAF3
="$($TPUT setaf 3 2>/dev/null)"
4753 TERM_SETAF4
="$($TPUT setaf 4 2>/dev/null)"
4755 TERM_SETAF6
="$($TPUT setaf 6 2>/dev/null)"
4758 TERM_SETAF1
="$($TPUT AF 1 2>/dev/null)"
4760 TERM_SETAF2
="$($TPUT AF 2 2>/dev/null)"
4762 TERM_SETAF3
="$($TPUT AF 3 2>/dev/null)"
4764 TERM_SETAF4
="$($TPUT AF 4 2>/dev/null)"
4766 TERM_SETAF6
="$($TPUT AF 6 2>/dev/null)"
4774 TERM_SGR0
='\033\133m'
4776 TERM_BOLD
='\033\1331m'
4778 TERM_SETAF1
='\033\13331m'
4780 TERM_SETAF2
='\033\13332m'
4782 TERM_SETAF3
='\033\13333m'
4784 TERM_SETAF4
='\033\13334m'
4786 TERM_SETAF6
='\033\13336m'
4792 ${as_echo:="echo"} ${as_me:="configure"}": touching .deps files"
4793 for i
in $(find . -name Makefile); do
4794 DEPSFILE
="$(dirname $i)/.deps"
4795 test -f "$DEPSFILE" && rm "$DEPSFILE"
4796 touch -t 0001010000 "$DEPSFILE"
4800 ac_config_files
="$ac_config_files buildsys.mk extra.mk libmowgli-2.pc"
4802 cat >confcache
<<\_ACEOF
4803 # This file is a shell script that caches the results of configure
4804 # tests run on this system so they can be shared between configure
4805 # scripts and configure runs, see configure's option --config-cache.
4806 # It is not useful on other systems. If it contains results you don't
4807 # want to keep, you may remove or edit it.
4809 # config.status only pays attention to the cache file if you give it
4810 # the --recheck option to rerun configure.
4812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4818 # The following way of writing the cache mishandles newlines in values,
4819 # but we know of no workaround that is simple, portable, and efficient.
4820 # So, we kill variables containing newlines.
4821 # Ultrix sh set writes to stderr and can't be redirected directly,
4822 # and sets the high bit in the cache file unless we assign to the vars.
4824 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4825 eval ac_val
=\$
$ac_var
4829 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4833 _
| IFS
| as_nl
) ;; #(
4834 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
4835 *) { eval $ac_var=; unset $ac_var;} ;;
4841 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4842 *${as_nl}ac_space
=\
*)
4843 # `set' does not quote correctly, so add quotes: double-quote
4844 # substitution turns \\\\ into \\, and sed turns \\ into \.
4847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4850 # `set' quotes correctly as required by POSIX, so do not add quotes.
4851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4862 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4864 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4865 if test -w "$cache_file"; then
4866 if test "x$cache_file" != "x/dev/null"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4868 $as_echo "$as_me: updating cache $cache_file" >&6;}
4869 if test ! -f "$cache_file" || test -h "$cache_file"; then
4870 cat confcache
>"$cache_file"
4872 case $cache_file in #(
4874 mv -f confcache
"$cache_file"$$
&&
4875 mv -f "$cache_file"$$
"$cache_file" ;; #(
4877 mv -f confcache
"$cache_file" ;;
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4883 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4888 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4889 # Let make expand exec_prefix.
4890 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4892 DEFS
=-DHAVE_CONFIG_H
4897 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4898 # 1. Remove the extension, and $U if already installed.
4899 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4900 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4902 # will be set to the directory where LIBOBJS objects are built.
4903 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4904 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4908 LTLIBOBJS
=$ac_ltlibobjs
4912 : "${CONFIG_STATUS=./config.status}"
4914 ac_clean_files_save
=$ac_clean_files
4915 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4917 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4919 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4921 # Generated by $as_me.
4922 # Run this file to recreate the current configuration.
4923 # Compiler output produced by configure, useful for debugging
4924 # configure, is in config.log if it exists.
4930 SHELL=\${CONFIG_SHELL-$SHELL}
4933 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
4934 ## -------------------- ##
4935 ## M4sh Initialization. ##
4936 ## -------------------- ##
4938 # Be more Bourne compatible
4939 DUALCASE
=1; export DUALCASE
# for MKS sh
4940 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4943 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4944 # is contrary to our usage. Disable this feature.
4945 alias -g '${1+"$@"}'='"$@"'
4946 setopt NO_GLOB_SUBST
4948 case `(set -o) 2>/dev/null` in #(
4960 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4961 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4962 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4963 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4964 # Prefer a ksh shell builtin over an external printf program on Solaris,
4965 # but without wasting forks for bash or zsh.
4966 if test -z "$BASH_VERSION$ZSH_VERSION" \
4967 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4968 as_echo='print
-r --'
4969 as_echo_n='print
-rn --'
4970 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4971 as_echo='printf %s
\n'
4972 as_echo_n='printf %s
'
4974 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4975 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4976 as_echo_n='/usr
/ucb
/echo -n'
4978 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4979 as_echo_n_body='eval
4983 expr "X$arg" : "X\\(.*\\)$as_nl";
4984 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4986 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4988 export as_echo_n_body
4989 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4992 as_echo='sh
-c $as_echo_body as_echo
'
4995 # The user is always right.
4996 if test "${PATH_SEPARATOR+set}" != set; then
4998 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4999 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5006 # We need space, tab and new line, in precisely that order. Quoting is
5007 # there to prevent editors from complaining about space-tab.
5008 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5009 # splitting by setting IFS to empty value.)
5012 # Find who we are. Look in the path if we contain no directory separator.
5015 *[\\/]* ) as_myself=$0 ;;
5016 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5027 # We did not find ourselves, most probably we were run as `sh COMMAND'
5028 # in which case we are not to be found in the path.
5029 if test "x$as_myself" = x
; then
5032 if test ! -f "$as_myself"; then
5033 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5037 # Unset variables that we do not need and which cause bugs (e.g. in
5038 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5039 # suppresses any "Segmentation fault" message there. '((' could
5040 # trigger a bug in pdksh 5.2.14.
5041 for as_var
in BASH_ENV ENV MAIL MAILPATH
5042 do eval test x\
${$as_var+set} = xset \
5043 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
5056 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5059 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5060 # ----------------------------------------
5061 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5062 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5063 # script with STATUS, using 1 if that was 0.
5066 as_status
=$1; test $as_status -eq 0 && as_status
=1
5068 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5069 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5071 $as_echo "$as_me: error: $2" >&2
5072 as_fn_exit
$as_status
5076 # as_fn_set_status STATUS
5077 # -----------------------
5078 # Set $? to STATUS, without forking.
5082 } # as_fn_set_status
5086 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5096 # Portably unset VAR.
5099 { eval $1=; unset $1;}
5101 as_unset
=as_fn_unset
5102 # as_fn_append VAR VALUE
5103 # ----------------------
5104 # Append the text in VALUE to the end of the definition contained in VAR. Take
5105 # advantage of any shell optimizations that allow amortized linear growth over
5106 # repeated appends, instead of the typical quadratic growth present in naive
5108 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5109 eval 'as_fn_append ()
5120 # as_fn_arith ARG...
5121 # ------------------
5122 # Perform arithmetic evaluation on the ARGs, and store the result in the
5123 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5124 # must be portable across $(()) and expr.
5125 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5126 eval 'as_fn_arith ()
5133 as_val
=`expr "$@" || test $? -eq 1`
5138 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5139 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5145 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5146 as_basename
=basename
5151 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5157 as_me
=`$as_basename -- "$0" ||
5158 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5159 X"$0" : 'X\(//\)$' \| \
5160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5162 sed '/^.*\/\([^/][^/]*\)\/*$/{
5176 # Avoid depending upon Character Ranges.
5177 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5178 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5179 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5180 as_cr_digits
='0123456789'
5181 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5183 ECHO_C
= ECHO_N
= ECHO_T
=
5184 case `echo -n x` in #(((((
5186 case `echo 'xy\c'` in
5187 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5189 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5196 rm -f conf$$ conf$$.exe conf$$.
file
5197 if test -d conf$$.dir
; then
5198 rm -f conf$$.dir
/conf$$.
file
5201 mkdir conf$$.dir
2>/dev
/null
5203 if (echo >conf$$.
file) 2>/dev
/null
; then
5204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5206 # ... but there are two gotchas:
5207 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5208 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5209 # In both cases, we have to default to `cp -pR'.
5210 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
5212 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5220 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5221 rmdir conf$$.dir
2>/dev
/null
5226 # Create "$as_dir" as a directory, including parents if necessary.
5231 -*) as_dir
=.
/$as_dir;;
5233 test -d "$as_dir" || eval $as_mkdir_p || {
5237 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5238 *) as_qdir
=$as_dir;;
5240 as_dirs
="'$as_qdir' $as_dirs"
5241 as_dir
=`$as_dirname -- "$as_dir" ||
5242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5243 X"$as_dir" : 'X\(//\)[^/]' \| \
5244 X"$as_dir" : 'X\(//\)$' \| \
5245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5246 $as_echo X"$as_dir" |
5247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5264 test -d "$as_dir" && break
5266 test -z "$as_dirs" || eval "mkdir $as_dirs"
5267 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5271 if mkdir -p .
2>/dev
/null
; then
5272 as_mkdir_p
='mkdir -p "$as_dir"'
5274 test -d .
/-p && rmdir .
/-p
5279 # as_fn_executable_p FILE
5280 # -----------------------
5281 # Test if FILE is an executable regular file.
5282 as_fn_executable_p
()
5284 test -f "$1" && test -x "$1"
5285 } # as_fn_executable_p
5287 as_executable_p
=as_fn_executable_p
5289 # Sed expression to map a string onto a valid CPP name.
5290 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5292 # Sed expression to map a string onto a valid variable name.
5293 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5297 ## ----------------------------------- ##
5298 ## Main body of $CONFIG_STATUS script. ##
5299 ## ----------------------------------- ##
5301 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5303 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5304 # Save the log message, to keep $0 and so on meaningful, and to
5305 # report actual input values of CONFIG_FILES etc. instead of their
5306 # values after options handling.
5308 This file was extended by libmowgli-2 $as_me 2.1.0, which was
5309 generated by GNU Autoconf 2.69. Invocation command line was
5311 CONFIG_FILES = $CONFIG_FILES
5312 CONFIG_HEADERS = $CONFIG_HEADERS
5313 CONFIG_LINKS = $CONFIG_LINKS
5314 CONFIG_COMMANDS = $CONFIG_COMMANDS
5317 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5322 case $ac_config_files in *"
5323 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5326 case $ac_config_headers in *"
5327 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5332 # Files that config.status was made for.
5333 config_files="$ac_config_files"
5334 config_headers="$ac_config_headers"
5338 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5340 \`$as_me' instantiates files and other configuration actions
5341 from templates according to the current configuration. Unless the files
5342 and actions are specified as TAGs, all are instantiated by default.
5344 Usage: $0 [OPTION]... [TAG]...
5346 -h, --help print this help, then exit
5347 -V, --version print version number and configuration settings, then exit
5348 --config print configuration, then exit
5349 -q, --quiet, --silent
5350 do not print progress messages
5351 -d, --debug don't remove temporary files
5352 --recheck update $as_me by reconfiguring in the same conditions
5353 --file=FILE[:TEMPLATE]
5354 instantiate the configuration file FILE
5355 --header=FILE[:TEMPLATE]
5356 instantiate the configuration header FILE
5358 Configuration files:
5361 Configuration headers:
5364 Report bugs to <https://github.com/atheme/libmowgli-2>."
5367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5368 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5370 libmowgli-2 config.status 2.1.0
5371 configured by $0, generated by GNU Autoconf 2.69,
5372 with options \\"\$ac_cs_config\\"
5374 Copyright (C) 2012 Free Software Foundation, Inc.
5375 This config.status script is free software; the Free Software Foundation
5376 gives unlimited permission to copy, distribute and modify it."
5381 test -n "\$AWK" || AWK=awk
5384 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5385 # The default lists apply if the user does not specify any file.
5391 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5392 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5396 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5408 # Handling of the options.
5409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5411 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5412 $as_echo "$ac_cs_version"; exit ;;
5413 --config | --confi | --conf | --con | --co | --c )
5414 $as_echo "$ac_cs_config"; exit ;;
5415 --debug | --debu | --deb | --de | --d | -d )
5417 --file | --fil | --fi | --f )
5420 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5421 '') as_fn_error $?
"missing file argument" ;;
5423 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5424 ac_need_defaults
=false
;;
5425 --header | --heade | --head | --hea )
5428 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5430 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5431 ac_need_defaults
=false
;;
5433 # Conflict between --help and --header
5434 as_fn_error $?
"ambiguous option: \`$1'
5435 Try \`$0 --help' for more information.";;
5436 --help | --hel | -h )
5437 $as_echo "$ac_cs_usage"; exit ;;
5438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5443 -*) as_fn_error $?
"unrecognized option: \`$1'
5444 Try \`$0 --help' for more information." ;;
5446 *) as_fn_append ac_config_targets
" $1"
5447 ac_need_defaults
=false
;;
5453 ac_configure_extra_args
=
5455 if $ac_cs_silent; then
5457 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5462 if \$ac_cs_recheck; then
5463 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5465 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5466 CONFIG_SHELL='$SHELL'
5472 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5477 ## Running $as_me. ##
5483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5486 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5488 # Handling of arguments.
5489 for ac_config_target
in $ac_config_targets
5491 case $ac_config_target in
5492 "src/libmowgli/platform/autoconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/libmowgli/platform/autoconf.h" ;;
5493 "buildsys.mk") CONFIG_FILES
="$CONFIG_FILES buildsys.mk" ;;
5494 "extra.mk") CONFIG_FILES
="$CONFIG_FILES extra.mk" ;;
5495 "libmowgli-2.pc") CONFIG_FILES
="$CONFIG_FILES libmowgli-2.pc" ;;
5497 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5502 # If the user did not use the arguments to specify the items to instantiate,
5503 # then the envvar interface is used. Set only those that are not.
5504 # We use the long form for the default assignment because of an extremely
5505 # bizarre bug on SunOS 4.1.3.
5506 if $ac_need_defaults; then
5507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5511 # Have a temporary directory for convenience. Make it in the build tree
5512 # simply because there is no reason against having it here, and in addition,
5513 # creating and moving files from /tmp can sometimes cause problems.
5514 # Hook for its removal unless debugging.
5515 # Note that there is a small window in which the directory will not be cleaned:
5516 # after its creation but before its name has been assigned to `$tmp'.
5520 trap 'exit_status=$?
5522 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5524 trap 'as_fn_exit 1' 1 2 13 15
5526 # Create a (secure) tmp directory for tmp files.
5529 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5533 tmp
=.
/conf$$
-$RANDOM
5534 (umask 077 && mkdir "$tmp")
5535 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5538 # Set up the scripts for CONFIG_FILES section.
5539 # No need to generate them if there are no CONFIG_FILES.
5540 # This happens for instance with `./config.status config.h'.
5541 if test -n "$CONFIG_FILES"; then
5544 ac_cr
=`echo X | tr X '\015'`
5545 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5546 # But we know of no other shell where ac_cr would be empty at this
5547 # point, so we can use a bashism as a fallback.
5548 if test "x$ac_cr" = x
; then
5549 eval ac_cr
=\$
\'\\r
\'
5551 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5552 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5558 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5563 echo "cat >conf$$subs.awk <<_ACEOF" &&
5564 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5567 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5568 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5570 for ac_last_try in false false false false false :; do
5571 . ./conf$$subs.sh ||
5572 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5574 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5575 if test $ac_delim_n = $ac_delim_num; then
5577 elif $ac_last_try; then
5578 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5580 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5586 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5590 s/^/S["/; s
/!.
*/"]=/
5600 s/\(.\{148\}\)..*/\1/
5602 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5607 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5614 s/\(.\{148\}\)..*/\1/
5616 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5620 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5625 ' <conf$$subs.awk | sed '
5630 ' >>$CONFIG_STATUS || ac_write_fail=1
5631 rm -f conf$$subs.awk
5632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5634 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5635 for (key in S) S_is_set[key] = 1
5641 nfields = split(line, field, "@
")
5643 len = length(field[1])
5644 for (i = 2; i < nfields; i++) {
5646 keylen = length(key)
5647 if (S_is_set[key]) {
5649 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5650 len += length(value) + length(field[++i])
5661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5662 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5663 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5666 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5667 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5670 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5671 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5672 # trailing colons and then remove the whole line if VPATH becomes empty
5673 # (actually we leave an empty line to preserve line numbers).
5674 if test "x
$srcdir" = x.; then
5675 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5694 fi # test -n "$CONFIG_FILES"
5696 # Set up the scripts for CONFIG_HEADERS section.
5697 # No need to generate them if there are no CONFIG_HEADERS.
5698 # This happens for instance with `./config.status Makefile'.
5699 if test -n "$CONFIG_HEADERS"; then
5700 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5704 # Transform confdefs.h into an awk script `defines.awk', embedded as
5705 # here-document in config.status, that substitutes the proper values into
5706 # config.h.in to produce config.h.
5708 # Create a delimiter string that does not exist in confdefs.h, to ease
5709 # handling of long lines.
5711 for ac_last_try in false false :; do
5712 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5713 if test -z "$ac_tt"; then
5715 elif $ac_last_try; then
5716 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5718 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5722 # For the awk script, D is an array of macro values keyed by name,
5723 # likewise P contains macro parameters if any. Preserve backslash
5724 # newline sequences.
5726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5728 s/.\{148\}/&'"$ac_delim"'/g
5731 s/^[ ]*#[ ]*define[ ][ ]*/ /
5738 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5740 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5745 D["\
1"]=" \
3\\\\\\n
"\\/p
5747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5752 s/.\{148\}/&'"$ac_delim"'/g
5757 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5760 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5762 ' <confdefs.h | sed '
5763 s/'"$ac_delim"'/"\\\
5764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5767 for (key in D) D_is_set[key] = 1
5770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5772 split(line, arg, " ")
5773 if (arg[1] == "#") {
5777 defundef
= substr
(arg
[1], 2)
5780 split(mac1
, mac2
, "(") #)
5782 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5783 if (D_is_set
[macro
]) {
5784 # Preserve the white space surrounding the "#".
5785 print prefix
"define", macro P
[macro
] D
[macro
]
5788 # Replace #undef with comments. This is necessary, for example,
5789 # in the case of _POSIX_SOURCE, which is predefined and required
5790 # on some systems where configure will not decide to define it.
5791 if (defundef
== "undef") {
5792 print
"/*", prefix defundef
, macro
, "*/"
5800 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5801 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5802 fi # test -n "$CONFIG_HEADERS"
5805 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5810 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5812 case $ac_mode$ac_tag in
5814 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5815 :[FH
]-) ac_tag
=-:-;;
5816 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5833 -) ac_f
="$ac_tmp/stdin";;
5834 *) # Look for the file first in the build tree, then in the source tree
5835 # (if the path is not absolute). The absolute path cannot be DOS-style,
5836 # because $ac_f cannot contain `:'.
5840 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5842 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5844 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5845 as_fn_append ac_file_inputs
" '$ac_f'"
5848 # Let's still pretend it is `configure' which instantiates (i.e., don't
5849 # use $as_me), people would be surprised to read:
5850 # /* config.h. Generated by config.status. */
5851 configure_input
='Generated from '`
5852 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5854 if test x
"$ac_file" != x
-; then
5855 configure_input
="$ac_file. $configure_input"
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5857 $as_echo "$as_me: creating $ac_file" >&6;}
5859 # Neutralize special characters interpreted by sed in replacement strings.
5860 case $configure_input in #(
5861 *\
&* | *\
|* | *\\* )
5862 ac_sed_conf_input
=`$as_echo "$configure_input" |
5863 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5864 *) ac_sed_conf_input
=$configure_input;;
5868 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5869 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5874 ac_dir
=`$as_dirname -- "$ac_file" ||
5875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5876 X"$ac_file" : 'X\(//\)[^/]' \| \
5877 X"$ac_file" : 'X\(//\)$' \| \
5878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5879 $as_echo X"$ac_file" |
5880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5897 as_dir
="$ac_dir"; as_fn_mkdir_p
5901 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5903 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5904 # A ".." for each directory in $ac_dir_suffix.
5905 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5906 case $ac_top_builddir_sub in
5907 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5908 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5911 ac_abs_top_builddir
=$ac_pwd
5912 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5913 # for backward compatibility:
5914 ac_top_builddir
=$ac_top_build_prefix
5917 .
) # We are building in place.
5919 ac_top_srcdir
=$ac_top_builddir_sub
5920 ac_abs_top_srcdir
=$ac_pwd ;;
5921 [\\/]* | ?
:[\\/]* ) # Absolute name.
5922 ac_srcdir
=$srcdir$ac_dir_suffix;
5923 ac_top_srcdir
=$srcdir
5924 ac_abs_top_srcdir
=$srcdir ;;
5926 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5927 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5928 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5930 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5940 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5941 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5945 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5946 # If the template does not know about datarootdir, expand it.
5947 # FIXME: This hack should be removed a few years after 2.60.
5948 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5959 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5960 *datarootdir
*) ac_datarootdir_seen
=yes;;
5961 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5963 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5966 ac_datarootdir_hack='
5967 s&@datadir@&$datadir&g
5968 s&@docdir@&$docdir&g
5969 s&@infodir@&$infodir&g
5970 s&@localedir@&$localedir&g
5971 s&@mandir@&$mandir&g
5972 s&\\\${datarootdir}&$datarootdir&g' ;;
5976 # Neutralize VPATH when `$srcdir' = `.'.
5977 # Shell code in configure.ac might set extrasub.
5978 # FIXME: do we really want to maintain this feature?
5979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5980 ac_sed_extra="$ac_vpsub
5983 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5985 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
5986 s
|@configure_input@
|$ac_sed_conf_input|;t t
5987 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5988 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5989 s
&@srcdir@
&$ac_srcdir&;t t
5990 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5991 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5992 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5993 s
&@builddir@
&$ac_builddir&;t t
5994 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5995 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5996 s
&@INSTALL@
&$ac_INSTALL&;t t
5997 $ac_datarootdir_hack
5999 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6000 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6002 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6003 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6005 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6007 which seems to be undefined. Please make sure it is defined" >&5
6008 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6009 which seems to be undefined. Please make sure it is defined" >&2;}
6011 rm -f "$ac_tmp/stdin"
6013 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6014 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6022 if test x"$ac_file" != x-; then
6024 $as_echo "/* $configure_input */" \
6025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6026 } >"$ac_tmp/config.h" \
6027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6028 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6030 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6033 mv "$ac_tmp/config.h" "$ac_file" \
6034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6037 $as_echo "/* $configure_input */" \
6038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6039 || as_fn_error $? "could not create -" "$LINENO" 5
6051 ac_clean_files=$ac_clean_files_save
6053 test $ac_write_fail = 0 ||
6054 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6057 # configure is writing to config.log, and then calls config.status.
6058 # config.status does its own redirection, appending to config.log.
6059 # Unfortunately, on DOS this fails, as config.log is still kept open
6060 # by configure, so config.status won't be able to
write to it
; its
6061 # output is simply discarded. So we exec the FD to /dev/null,
6062 # effectively closing config.log, so it can be properly (re)opened and
6063 # appended to by config.status. When coming back to configure, we
6064 # need to make the FD available again.
6065 if test "$no_create" != yes; then
6067 ac_config_status_args
=
6068 test "$silent" = yes &&
6069 ac_config_status_args
="$ac_config_status_args --quiet"
6071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6074 # would make configure fail if this is the last instruction.
6075 $ac_cs_success || as_fn_exit
1
6077 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6079 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6086 OpenSSL support: ${OPENSSL}
6087 Examples: ${EXAMPLES}
6089 Now type "make" to build, and "make install" to install.
6090 Thank you for using libmowgli.