on master help sign in
streamly/core/configure
4349 lines 126 kB history raw
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for streamly-core 0.2.2.
4#
5# Report bugs to <streamly@composewell.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
40# Reset variables that may have inherited troublesome values from
41# the environment.
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
49export as_nl
50IFS=" "" $as_nl"
52PS1='$ '
53PS2='> '
54PS4='+ '
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
87# Find who we are. Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102IFS=$as_save_IFS
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
117# Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158esac
159fi
161 as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
175else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev/null
187then :
188 as_have_required=yes
189else $as_nop
190 as_have_required=no
191fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193then :
195else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197as_found=false
198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217then :
218 break 2
219fi
220fi
221 done;;
222 esac
223 as_found=false
224done
225IFS=$as_save_IFS
226if $as_found
227then :
229else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi
235fi
238 if test "x$CONFIG_SHELL" != x
239then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
261 if test x$as_have_required = xno
262then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270$0: streamly@composewell.com about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
293 { eval $1=; unset $1;}
295as_unset=as_fn_unset
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
303 return $1
304} # as_fn_set_status
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315# as_fn_nop
316# ---------
317# Do nothing but, unlike ":", preserve the value of $?.
318as_fn_nop ()
320 return $?
322as_nop=as_fn_nop
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370} # as_fn_mkdir_p
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else $as_nop
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409else $as_nop
410 as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 }
414fi # as_fn_arith
416# as_fn_nop
417# ---------
418# Do nothing but, unlike ":", preserve the value of $?.
419as_fn_nop ()
421 return $?
423as_nop=as_fn_nop
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439} # as_fn_error
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444else
445 as_expr=false
446fi
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450else
451 as_basename=false
452fi
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456else
457 as_dirname=false
458fi
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
523# Determine whether it's possible to make 'echo' print without a newline.
524# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525# for compatibility with existing Makefiles.
526ECHO_C= ECHO_N= ECHO_T=
527case `echo -n x` in #(((((
528-n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
535*)
536 ECHO_N='-n';;
537esac
539# For backward compatibility with old third-party macros, we provide
540# the shell variables $as_echo and $as_echo_n. New code should use
541# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542as_echo='printf %s\n'
543as_echo_n='printf %s'
546rm -f conf$$ conf$$.exe conf$$.file
547if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552fi
553if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567else
568 as_ln_s='cp -pR'
569fi
570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571rmdir conf$$.dir 2>/dev/null
573if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578fi
580as_test_x='test -x'
581as_executable_p=as_fn_executable_p
583# Sed expression to map a string onto a valid CPP name.
584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586# Sed expression to map a string onto a valid variable name.
587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590test -n "$DJDIR" || exec 7<&0 </dev/null
591exec 6>&1
593# Name of the host.
594# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595# so uname gets run too.
596ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599# Initializations.
601ac_default_prefix=/usr/local
602ac_clean_files=
603ac_config_libobj_dir=.
604LIBOBJS=
605cross_compiling=no
606subdirs=
607MFLAGS=
608MAKEFLAGS=
610# Identity of this package.
611PACKAGE_NAME='streamly-core'
612PACKAGE_TARNAME='streamly-core'
613PACKAGE_VERSION='0.2.2'
614PACKAGE_STRING='streamly-core 0.2.2'
615PACKAGE_BUGREPORT='streamly@composewell.com'
616PACKAGE_URL='https://streamly.composewell.com'
618# Factoring default headers for most tests.
619ac_includes_default="\
620#include <stddef.h>
621#ifdef HAVE_STDIO_H
622# include <stdio.h>
623#endif
624#ifdef HAVE_STDLIB_H
625# include <stdlib.h>
626#endif
627#ifdef HAVE_STRING_H
628# include <string.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_STRINGS_H
637# include <strings.h>
638#endif
639#ifdef HAVE_SYS_TYPES_H
640# include <sys/types.h>
641#endif
642#ifdef HAVE_SYS_STAT_H
643# include <sys/stat.h>
644#endif
645#ifdef HAVE_UNISTD_H
646# include <unistd.h>
647#endif"
649ac_header_c_list=
650ac_subst_vars='LTLIBOBJS
651LIBOBJS
652OBJEXT
653EXEEXT
654ac_ct_CC
655CPPFLAGS
656LDFLAGS
657CFLAGS
658CC
659target_alias
660host_alias
661build_alias
662LIBS
663ECHO_T
664ECHO_N
665ECHO_C
666DEFS
667mandir
668localedir
669libdir
670psdir
671pdfdir
672dvidir
673htmldir
674infodir
675docdir
676oldincludedir
677includedir
678runstatedir
679localstatedir
680sharedstatedir
681sysconfdir
682datadir
683datarootdir
684libexecdir
685sbindir
686bindir
687program_transform_name
688prefix
689exec_prefix
690PACKAGE_URL
691PACKAGE_BUGREPORT
692PACKAGE_STRING
693PACKAGE_VERSION
694PACKAGE_TARNAME
695PACKAGE_NAME
696PATH_SEPARATOR
697SHELL'
698ac_subst_files=''
699ac_user_opts='
700enable_option_checking
701with_compiler
703 ac_precious_vars='build_alias
704host_alias
705target_alias
706CC
707CFLAGS
708LDFLAGS
709LIBS
710CPPFLAGS'
713# Initialize some variables set by options.
714ac_init_help=
715ac_init_version=false
716ac_unrecognized_opts=
717ac_unrecognized_sep=
718# The variables have the same names as the options, with
719# dashes changed to underlines.
720cache_file=/dev/null
721exec_prefix=NONE
722no_create=
723no_recursion=
724prefix=NONE
725program_prefix=NONE
726program_suffix=NONE
727program_transform_name=s,x,x,
728silent=
729site=
730srcdir=
731verbose=
732x_includes=NONE
733x_libraries=NONE
735# Installation directory options.
736# These are left unexpanded so users can "make install exec_prefix=/foo"
737# and all the variables that are supposed to be based on exec_prefix
738# by default will actually change.
739# Use braces instead of parens because sh, perl, etc. also accept them.
740# (The list follows the same order as the GNU Coding Standards.)
741bindir='${exec_prefix}/bin'
742sbindir='${exec_prefix}/sbin'
743libexecdir='${exec_prefix}/libexec'
744datarootdir='${prefix}/share'
745datadir='${datarootdir}'
746sysconfdir='${prefix}/etc'
747sharedstatedir='${prefix}/com'
748localstatedir='${prefix}/var'
749runstatedir='${localstatedir}/run'
750includedir='${prefix}/include'
751oldincludedir='/usr/include'
752docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753infodir='${datarootdir}/info'
754htmldir='${docdir}'
755dvidir='${docdir}'
756pdfdir='${docdir}'
757psdir='${docdir}'
758libdir='${exec_prefix}/lib'
759localedir='${datarootdir}/locale'
760mandir='${datarootdir}/man'
762ac_prev=
763ac_dashdash=
764for ac_option
765do
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
768 eval $ac_prev=\$ac_option
769 ac_prev=
770 continue
771 fi
773 case $ac_option in
774 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 *=) ac_optarg= ;;
776 *) ac_optarg=yes ;;
777 esac
779 case $ac_dashdash$ac_option in
780 --)
781 ac_dashdash=yes ;;
783 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 ac_prev=bindir ;;
785 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 bindir=$ac_optarg ;;
788 -build | --build | --buil | --bui | --bu)
789 ac_prev=build_alias ;;
790 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
791 build_alias=$ac_optarg ;;
793 -cache-file | --cache-file | --cache-fil | --cache-fi \
794 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
795 ac_prev=cache_file ;;
796 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
797 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
798 cache_file=$ac_optarg ;;
800 --config-cache | -C)
801 cache_file=config.cache ;;
803 -datadir | --datadir | --datadi | --datad)
804 ac_prev=datadir ;;
805 -datadir=* | --datadir=* | --datadi=* | --datad=*)
806 datadir=$ac_optarg ;;
808 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
809 | --dataroo | --dataro | --datar)
810 ac_prev=datarootdir ;;
811 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
812 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
813 datarootdir=$ac_optarg ;;
815 -disable-* | --disable-*)
816 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
819 as_fn_error $? "invalid feature name: \`$ac_useropt'"
820 ac_useropt_orig=$ac_useropt
821 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
822 case $ac_user_opts in
823 *"
824"enable_$ac_useropt"
825"*) ;;
826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
827 ac_unrecognized_sep=', ';;
828 esac
829 eval enable_$ac_useropt=no ;;
831 -docdir | --docdir | --docdi | --doc | --do)
832 ac_prev=docdir ;;
833 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 docdir=$ac_optarg ;;
836 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 ac_prev=dvidir ;;
838 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 dvidir=$ac_optarg ;;
841 -enable-* | --enable-*)
842 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error $? "invalid feature name: \`$ac_useropt'"
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
849 *"
850"enable_$ac_useropt"
851"*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
854 esac
855 eval enable_$ac_useropt=\$ac_optarg ;;
857 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
858 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
859 | --exec | --exe | --ex)
860 ac_prev=exec_prefix ;;
861 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
862 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
863 | --exec=* | --exe=* | --ex=*)
864 exec_prefix=$ac_optarg ;;
866 -gas | --gas | --ga | --g)
867 # Obsolete; use --with-gas.
868 with_gas=yes ;;
870 -help | --help | --hel | --he | -h)
871 ac_init_help=long ;;
872 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
873 ac_init_help=recursive ;;
874 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
875 ac_init_help=short ;;
877 -host | --host | --hos | --ho)
878 ac_prev=host_alias ;;
879 -host=* | --host=* | --hos=* | --ho=*)
880 host_alias=$ac_optarg ;;
882 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
883 ac_prev=htmldir ;;
884 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
885 | --ht=*)
886 htmldir=$ac_optarg ;;
888 -includedir | --includedir | --includedi | --included | --include \
889 | --includ | --inclu | --incl | --inc)
890 ac_prev=includedir ;;
891 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
892 | --includ=* | --inclu=* | --incl=* | --inc=*)
893 includedir=$ac_optarg ;;
895 -infodir | --infodir | --infodi | --infod | --info | --inf)
896 ac_prev=infodir ;;
897 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
898 infodir=$ac_optarg ;;
900 -libdir | --libdir | --libdi | --libd)
901 ac_prev=libdir ;;
902 -libdir=* | --libdir=* | --libdi=* | --libd=*)
903 libdir=$ac_optarg ;;
905 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
906 | --libexe | --libex | --libe)
907 ac_prev=libexecdir ;;
908 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
909 | --libexe=* | --libex=* | --libe=*)
910 libexecdir=$ac_optarg ;;
912 -localedir | --localedir | --localedi | --localed | --locale)
913 ac_prev=localedir ;;
914 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
915 localedir=$ac_optarg ;;
917 -localstatedir | --localstatedir | --localstatedi | --localstated \
918 | --localstate | --localstat | --localsta | --localst | --locals)
919 ac_prev=localstatedir ;;
920 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
921 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
922 localstatedir=$ac_optarg ;;
924 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
925 ac_prev=mandir ;;
926 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
927 mandir=$ac_optarg ;;
929 -nfp | --nfp | --nf)
930 # Obsolete; use --without-fp.
931 with_fp=no ;;
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c | -n)
935 no_create=yes ;;
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
939 no_recursion=yes ;;
941 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
942 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
943 | --oldin | --oldi | --old | --ol | --o)
944 ac_prev=oldincludedir ;;
945 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
946 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
947 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
948 oldincludedir=$ac_optarg ;;
950 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
951 ac_prev=prefix ;;
952 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
953 prefix=$ac_optarg ;;
955 -program-prefix | --program-prefix | --program-prefi | --program-pref \
956 | --program-pre | --program-pr | --program-p)
957 ac_prev=program_prefix ;;
958 -program-prefix=* | --program-prefix=* | --program-prefi=* \
959 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
960 program_prefix=$ac_optarg ;;
962 -program-suffix | --program-suffix | --program-suffi | --program-suff \
963 | --program-suf | --program-su | --program-s)
964 ac_prev=program_suffix ;;
965 -program-suffix=* | --program-suffix=* | --program-suffi=* \
966 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
967 program_suffix=$ac_optarg ;;
969 -program-transform-name | --program-transform-name \
970 | --program-transform-nam | --program-transform-na \
971 | --program-transform-n | --program-transform- \
972 | --program-transform | --program-transfor \
973 | --program-transfo | --program-transf \
974 | --program-trans | --program-tran \
975 | --progr-tra | --program-tr | --program-t)
976 ac_prev=program_transform_name ;;
977 -program-transform-name=* | --program-transform-name=* \
978 | --program-transform-nam=* | --program-transform-na=* \
979 | --program-transform-n=* | --program-transform-=* \
980 | --program-transform=* | --program-transfor=* \
981 | --program-transfo=* | --program-transf=* \
982 | --program-trans=* | --program-tran=* \
983 | --progr-tra=* | --program-tr=* | --program-t=*)
984 program_transform_name=$ac_optarg ;;
986 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
987 ac_prev=pdfdir ;;
988 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
989 pdfdir=$ac_optarg ;;
991 -psdir | --psdir | --psdi | --psd | --ps)
992 ac_prev=psdir ;;
993 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
994 psdir=$ac_optarg ;;
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
998 silent=yes ;;
1000 -runstatedir | --runstatedir | --runstatedi | --runstated \
1001 | --runstate | --runstat | --runsta | --runst | --runs \
1002 | --run | --ru | --r)
1003 ac_prev=runstatedir ;;
1004 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1005 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1006 | --run=* | --ru=* | --r=*)
1007 runstatedir=$ac_optarg ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid package name: \`$ac_useropt'"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063"with_$ac_useropt"
1064"*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval with_$ac_useropt=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: \`$ac_useropt'"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079"with_$ac_useropt"
1080"*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1105Try \`$0 --help' for more information"
1106 ;;
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' | [0-9]* | *[!_$as_cr_alnum]* )
1113 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1114 esac
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1118 *)
1119 # FIXME: should be removed in autoconf 3.0.
1120 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1124 ;;
1126 esac
1127done
1129if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error $? "missing argument to $ac_option"
1134if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1136 no) ;;
1137 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1138 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 esac
1142# Check all directory arguments for consistency.
1143for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir runstatedir
1148 eval ac_val=\$$ac_var
1149 # Remove trailing slashes.
1150 case $ac_val in
1151 */ )
1152 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\$ac_val;;
1154 esac
1155 # Be sure to have absolute directory names.
1156 case $ac_val in
1157 [\\/$]* | ?:[\\/]* ) continue;;
1158 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159 esac
1160 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1161done
1163# There might be people who depend on the old broken behavior: `$host'
1164# used to hold the argument of --host etc.
1165# FIXME: To remove some day.
1166build=$build_alias
1167host=$host_alias
1168target=$target_alias
1170# FIXME: To remove some day.
1171if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 elif test "x$build_alias" != "x$host_alias"; then
1175 cross_compiling=yes
1176 fi
1179ac_tool_prefix=
1180test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182test "$silent" = yes && exec 6>/dev/null
1185ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186ac_ls_di=`ls -di .` &&
1187ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error $? "working directory cannot be determined"
1189test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error $? "pwd does not report name of working directory"
1193# Find the source files, if location was not specified.
1194if test -z "$srcdir"; then
1195 ac_srcdir_defaulted=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir=`$as_dirname -- "$as_myself" ||
1198$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202printf "%s\n" X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 s//\1/
1207 /^X\(\/\/\)[^/].*/{
1208 s//\1/
1211 /^X\(\/\/\)$/{
1212 s//\1/
1215 /^X\(\/\).*/{
1216 s//\1/
1219 s/.*/./; q'`
1220 srcdir=$ac_confdir
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 srcdir=..
1223 fi
1224else
1225 ac_srcdir_defaulted=no
1227if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1229 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1231ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232ac_abs_confdir=`(
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1234 pwd)`
1235# When building in place, set srcdir=.
1236if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239# Remove unnecessary trailing slashes from srcdir.
1240# Double slashes in file names in object file debugging info
1241# mess up M-x gdb in Emacs.
1242case $srcdir in
1243*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244esac
1245for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250done
1253# Report the --help message.
1255if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259\`configure' configures streamly-core 0.2.2 to adapt to many kinds of systems.
1261Usage: $0 [OPTION]... [VAR=VALUE]...
1263To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264VAR=VALUE. See below for descriptions of some of the useful variables.
1266Defaults for the options are specified in brackets.
1268Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking ...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285By default, \`make install' will install all the files in
1286\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288for instance \`--prefix=\$HOME'.
1290For better control, use the options below.
1292Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/streamly-core]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1313_ACEOF
1315 cat <<\_ACEOF
1316_ACEOF
1319if test -n "$ac_init_help"; then
1320 case $ac_init_help in
1321 short | recursive ) echo "Configuration of streamly-core 0.2.2:";;
1322 esac
1323 cat <<\_ACEOF
1325Optional Packages:
1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328GHC
1330Some influential environment variables:
1331 CC C compiler command
1332 CFLAGS C compiler flags
1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334 nonstandard directory <lib dir>
1335 LIBS libraries to pass to the linker, e.g. -l<library>
1336 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1337 you have headers in a nonstandard directory <include dir>
1339Use these variables to override the choices made by `configure' or to help
1340it to find libraries and programs with nonstandard names/locations.
1342Report bugs to <streamly@composewell.com>.
1343streamly-core home page: <https://streamly.composewell.com>.
1344_ACEOF
1345ac_status=$?
1348if test "$ac_init_help" = "recursive"; then
1349 # If there are subdirs, report their specific --help.
1350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351 test -d "$ac_dir" ||
1352 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1353 continue
1354 ac_builddir=.
1356case "$ac_dir" in
1357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1360 # A ".." for each directory in $ac_dir_suffix.
1361 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1362 case $ac_top_builddir_sub in
1363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1365 esac ;;
1366esac
1367ac_abs_top_builddir=$ac_pwd
1368ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369# for backward compatibility:
1370ac_top_builddir=$ac_top_build_prefix
1372case $srcdir in
1373 .) # We are building in place.
1374 ac_srcdir=.
1375 ac_top_srcdir=$ac_top_builddir_sub
1376 ac_abs_top_srcdir=$ac_pwd ;;
1377 [\\/]* | ?:[\\/]* ) # Absolute name.
1378 ac_srcdir=$srcdir$ac_dir_suffix;
1379 ac_top_srcdir=$srcdir
1380 ac_abs_top_srcdir=$srcdir ;;
1381 *) # Relative name.
1382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383 ac_top_srcdir=$ac_top_build_prefix$srcdir
1384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1385esac
1386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388 cd "$ac_dir" || { ac_status=$?; continue; }
1389 # Check for configure.gnu first; this name is used for a wrapper for
1390 # Metaconfig's "Configure" on case-insensitive file systems.
1391 if test -f "$ac_srcdir/configure.gnu"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394 elif test -f "$ac_srcdir/configure"; then
1395 echo &&
1396 $SHELL "$ac_srcdir/configure" --help=recursive
1397 else
1398 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399 fi || ac_status=$?
1400 cd "$ac_pwd" || { ac_status=$?; break; }
1401 done
1404test -n "$ac_init_help" && exit $ac_status
1405if $ac_init_version; then
1406 cat <<\_ACEOF
1407streamly-core configure 0.2.2
1408generated by GNU Autoconf 2.71
1410Copyright (C) 2021 Free Software Foundation, Inc.
1411This configure script is free software; the Free Software Foundation
1412gives unlimited permission to copy, distribute and modify it.
1413_ACEOF
1414 exit
1417## ------------------------ ##
1418## Autoconf initialization. ##
1419## ------------------------ ##
1421# ac_fn_c_try_compile LINENO
1422# --------------------------
1423# Try to compile conftest.$ac_ext, and return whether this succeeded.
1424ac_fn_c_try_compile ()
1426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1427 rm -f conftest.$ac_objext conftest.beam
1428 if { { ac_try="$ac_compile"
1429case "(($ac_try" in
1430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1431 *) ac_try_echo=$ac_try;;
1432esac
1433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1434printf "%s\n" "$ac_try_echo"; } >&5
1435 (eval "$ac_compile") 2>conftest.err
1436 ac_status=$?
1437 if test -s conftest.err; then
1438 grep -v '^ *+' conftest.err >conftest.er1
1439 cat conftest.er1 >&5
1440 mv -f conftest.er1 conftest.err
1441 fi
1442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1443 test $ac_status = 0; } && {
1444 test -z "$ac_c_werror_flag" ||
1445 test ! -s conftest.err
1446 } && test -s conftest.$ac_objext
1447then :
1448 ac_retval=0
1449else $as_nop
1450 printf "%s\n" "$as_me: failed program was:" >&5
1451sed 's/^/| /' conftest.$ac_ext >&5
1453 ac_retval=1
1455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1456 as_fn_set_status $ac_retval
1458} # ac_fn_c_try_compile
1460# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1461# -------------------------------------------------------
1462# Tests whether HEADER exists and can be compiled using the include files in
1463# INCLUDES, setting the cache variable VAR accordingly.
1464ac_fn_c_check_header_compile ()
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1468printf %s "checking for $2... " >&6; }
1469if eval test \${$3+y}
1470then :
1471 printf %s "(cached) " >&6
1472else $as_nop
1473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1474/* end confdefs.h. */
1476#include <$2>
1477_ACEOF
1478if ac_fn_c_try_compile "$LINENO"
1479then :
1480 eval "$3=yes"
1481else $as_nop
1482 eval "$3=no"
1484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1486eval ac_res=\$$3
1487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1488printf "%s\n" "$ac_res" >&6; }
1489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1491} # ac_fn_c_check_header_compile
1493# ac_fn_c_try_link LINENO
1494# -----------------------
1495# Try to link conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_link ()
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1500 if { { ac_try="$ac_link"
1501case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506printf "%s\n" "$ac_try_echo"; } >&5
1507 (eval "$ac_link") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest$ac_exeext && {
1519 test "$cross_compiling" = yes ||
1520 test -x conftest$ac_exeext
1522then :
1523 ac_retval=0
1524else $as_nop
1525 printf "%s\n" "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
1528 ac_retval=1
1530 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1531 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1532 # interfere with the next link command; also delete a directory that is
1533 # left behind by Apple's compiler. We do this before executing the actions.
1534 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1538} # ac_fn_c_try_link
1540# ac_fn_c_check_func LINENO FUNC VAR
1541# ----------------------------------
1542# Tests whether FUNC exists, setting the cache variable VAR accordingly
1543ac_fn_c_check_func ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547printf %s "checking for $2... " >&6; }
1548if eval test \${$3+y}
1549then :
1550 printf %s "(cached) " >&6
1551else $as_nop
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553/* end confdefs.h. */
1554/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1556#define $2 innocuous_$2
1558/* System header to define __stub macros and hopefully few prototypes,
1559 which can conflict with char $2 (); below. */
1561#include <limits.h>
1562#undef $2
1564/* Override any GCC internal prototype to avoid an error.
1565 Use char because int might match the return type of a GCC
1566 builtin and then its argument prototype would still apply. */
1567#ifdef __cplusplus
1568extern "C"
1569#endif
1570char $2 ();
1571/* The GNU C library defines this for functions which it implements
1572 to always fail with ENOSYS. Some functions are actually named
1573 something starting with __ and the normal name is an alias. */
1574#if defined __stub_$2 || defined __stub___$2
1575choke me
1576#endif
1578int
1579main (void)
1581return $2 ();
1583 return 0;
1585_ACEOF
1586if ac_fn_c_try_link "$LINENO"
1587then :
1588 eval "$3=yes"
1589else $as_nop
1590 eval "$3=no"
1592rm -f core conftest.err conftest.$ac_objext conftest.beam \
1593 conftest$ac_exeext conftest.$ac_ext
1595eval ac_res=\$$3
1596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597printf "%s\n" "$ac_res" >&6; }
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600} # ac_fn_c_check_func
1601ac_configure_args_raw=
1602for ac_arg
1604 case $ac_arg in
1605 *\'*)
1606 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607 esac
1608 as_fn_append ac_configure_args_raw " '$ac_arg'"
1609done
1611case $ac_configure_args_raw in
1612 *$as_nl*)
1613 ac_safe_unquote= ;;
1614 *)
1615 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1616 ac_unsafe_a="$ac_unsafe_z#~"
1617 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1618 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1619esac
1621cat >config.log <<_ACEOF
1622This file contains any messages produced by compilers while
1623running configure, to aid debugging if configure makes a mistake.
1625It was created by streamly-core $as_me 0.2.2, which was
1626generated by GNU Autoconf 2.71. Invocation command line was
1628 $ $0$ac_configure_args_raw
1630_ACEOF
1631exec 5>>config.log
1633cat <<_ASUNAME
1634## --------- ##
1635## Platform. ##
1636## --------- ##
1638hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1639uname -m = `(uname -m) 2>/dev/null || echo unknown`
1640uname -r = `(uname -r) 2>/dev/null || echo unknown`
1641uname -s = `(uname -s) 2>/dev/null || echo unknown`
1642uname -v = `(uname -v) 2>/dev/null || echo unknown`
1644/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1645/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1647/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1648/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1649/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1650/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1651/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1652/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1653/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1655_ASUNAME
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1660 IFS=$as_save_IFS
1661 case $as_dir in #(((
1662 '') as_dir=./ ;;
1663 */) ;;
1664 *) as_dir=$as_dir/ ;;
1665 esac
1666 printf "%s\n" "PATH: $as_dir"
1667 done
1668IFS=$as_save_IFS
1670} >&5
1672cat >&5 <<_ACEOF
1675## ----------- ##
1676## Core tests. ##
1677## ----------- ##
1679_ACEOF
1682# Keep a trace of the command line.
1683# Strip out --no-create and --no-recursion so they do not pile up.
1684# Strip out --silent because we don't want to record it for future runs.
1685# Also quote any args containing shell meta-characters.
1686# Make two passes to allow for proper duplicate-argument suppression.
1687ac_configure_args=
1688ac_configure_args0=
1689ac_configure_args1=
1690ac_must_keep_next=false
1691for ac_pass in 1 2
1693 for ac_arg
1694 do
1695 case $ac_arg in
1696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1698 | -silent | --silent | --silen | --sile | --sil)
1699 continue ;;
1700 *\'*)
1701 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1702 esac
1703 case $ac_pass in
1704 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1705 2)
1706 as_fn_append ac_configure_args1 " '$ac_arg'"
1707 if test $ac_must_keep_next = true; then
1708 ac_must_keep_next=false # Got value, back to normal.
1709 else
1710 case $ac_arg in
1711 *=* | --config-cache | -C | -disable-* | --disable-* \
1712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1714 | -with-* | --with-* | -without-* | --without-* | --x)
1715 case "$ac_configure_args0 " in
1716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1717 esac
1718 ;;
1719 -* ) ac_must_keep_next=true ;;
1720 esac
1721 fi
1722 as_fn_append ac_configure_args " '$ac_arg'"
1723 ;;
1724 esac
1725 done
1726done
1727{ ac_configure_args0=; unset ac_configure_args0;}
1728{ ac_configure_args1=; unset ac_configure_args1;}
1730# When interrupted or exit'd, cleanup temporary files, and complete
1731# config.log. We remove comments because anyway the quotes in there
1732# would cause problems or look ugly.
1733# WARNING: Use '\'' to represent an apostrophe within the trap.
1734# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1735trap 'exit_status=$?
1736 # Sanitize IFS.
1737 IFS=" "" $as_nl"
1738 # Save into config.log some information that might help in debugging.
1740 echo
1742 printf "%s\n" "## ---------------- ##
1743## Cache variables. ##
1744## ---------------- ##"
1745 echo
1746 # The following way of writing the cache mishandles newlines in values,
1748 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in #(
1751 *${as_nl}*)
1752 case $ac_var in #(
1753 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1754printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1755 esac
1756 case $ac_var in #(
1757 _ | IFS | as_nl) ;; #(
1758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1759 *) { eval $ac_var=; unset $ac_var;} ;;
1760 esac ;;
1761 esac
1762 done
1763 (set) 2>&1 |
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1766 sed -n \
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769 ;; #(
1770 *)
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772 ;;
1773 esac |
1774 sort
1776 echo
1778 printf "%s\n" "## ----------------- ##
1779## Output variables. ##
1780## ----------------- ##"
1781 echo
1782 for ac_var in $ac_subst_vars
1783 do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in
1786 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 esac
1788 printf "%s\n" "$ac_var='\''$ac_val'\''"
1789 done | sort
1790 echo
1792 if test -n "$ac_subst_files"; then
1793 printf "%s\n" "## ------------------- ##
1794## File substitutions. ##
1795## ------------------- ##"
1796 echo
1797 for ac_var in $ac_subst_files
1798 do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in
1801 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 esac
1803 printf "%s\n" "$ac_var='\''$ac_val'\''"
1804 done | sort
1805 echo
1806 fi
1808 if test -s confdefs.h; then
1809 printf "%s\n" "## ----------- ##
1810## confdefs.h. ##
1811## ----------- ##"
1812 echo
1813 cat confdefs.h
1814 echo
1815 fi
1816 test "$ac_signal" != 0 &&
1817 printf "%s\n" "$as_me: caught signal $ac_signal"
1818 printf "%s\n" "$as_me: exit $exit_status"
1819 } >&5
1820 rm -f core *.core core.conftest.* &&
1821 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1822 exit $exit_status
1823' 0
1824for ac_signal in 1 2 13 15; do
1825 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1826done
1827ac_signal=0
1829# confdefs.h avoids OS command line length limits that DEFS can exceed.
1830rm -f -r conftest* confdefs.h
1832printf "%s\n" "/* confdefs.h */" > confdefs.h
1834# Predefined preprocessor variables.
1836printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1838printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1840printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1842printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1844printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1846printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1849# Let the site file select an alternate cache file if it wants to.
1850# Prefer an explicitly selected file to automatically selected ones.
1851if test -n "$CONFIG_SITE"; then
1852 ac_site_files="$CONFIG_SITE"
1853elif test "x$prefix" != xNONE; then
1854 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1855else
1856 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1859for ac_site_file in $ac_site_files
1861 case $ac_site_file in #(
1862 */*) :
1863 ;; #(
1864 *) :
1865 ac_site_file=./$ac_site_file ;;
1866esac
1867 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1869printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1870 sed 's/^/| /' "$ac_site_file" >&5
1871 . "$ac_site_file" \
1872 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1873printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1874as_fn_error $? "failed to load site script $ac_site_file
1875See \`config.log' for more details" "$LINENO" 5; }
1876 fi
1877done
1879if test -r "$cache_file"; then
1880 # Some versions of bash will fail to source /dev/null (special files
1881 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1882 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1884printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1885 case $cache_file in
1886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887 *) . "./$cache_file";;
1888 esac
1889 fi
1890else
1891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1892printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1893 >$cache_file
1896# Test code for whether the C compiler supports C89 (global declarations)
1897ac_c_conftest_c89_globals='
1898/* Does the compiler advertise C89 conformance?
1899 Do not test the value of __STDC__, because some compilers set it to 0
1900 while being otherwise adequately conformant. */
1901#if !defined __STDC__
1902# error "Compiler does not advertise C89 conformance"
1903#endif
1905#include <stddef.h>
1906#include <stdarg.h>
1907struct stat;
1908/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1909struct buf { int x; };
1910struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1911static char *e (p, i)
1912 char **p;
1913 int i;
1915 return p[i];
1917static char *f (char * (*g) (char **, int), char **p, ...)
1919 char *s;
1920 va_list v;
1921 va_start (v,p);
1922 s = g (p, va_arg (v,int));
1923 va_end (v);
1924 return s;
1927/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1928 function prototypes and stuff, but not \xHH hex character constants.
1929 These do not provoke an error unfortunately, instead are silently treated
1930 as an "x". The following induces an error, until -std is added to get
1931 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1932 array size at least. It is necessary to write \x00 == 0 to get something
1933 that is true only with -std. */
1934int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1936/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1937 inside strings and character constants. */
1938#define FOO(x) '\''x'\''
1939int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1941int test (int i, double x);
1942struct s1 {int (*f) (int a);};
1943struct s2 {int (*f) (double a);};
1944int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1945 int, int);'
1947# Test code for whether the C compiler supports C89 (body of main).
1948ac_c_conftest_c89_main='
1949ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1952# Test code for whether the C compiler supports C99 (global declarations)
1953ac_c_conftest_c99_globals='
1954// Does the compiler advertise C99 conformance?
1955#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1956# error "Compiler does not advertise C99 conformance"
1957#endif
1959#include <stdbool.h>
1960extern int puts (const char *);
1961extern int printf (const char *, ...);
1962extern int dprintf (int, const char *, ...);
1963extern void *malloc (size_t);
1965// Check varargs macros. These examples are taken from C99 6.10.3.5.
1966// dprintf is used instead of fprintf to avoid needing to declare
1967// FILE and stderr.
1968#define debug(...) dprintf (2, __VA_ARGS__)
1969#define showlist(...) puts (#__VA_ARGS__)
1970#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1971static void
1972test_varargs_macros (void)
1974 int x = 1234;
1975 int y = 5678;
1976 debug ("Flag");
1977 debug ("X = %d\n", x);
1978 showlist (The first, second, and third items.);
1979 report (x>y, "x is %d but y is %d", x, y);
1982// Check long long types.
1983#define BIG64 18446744073709551615ull
1984#define BIG32 4294967295ul
1985#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1986#if !BIG_OK
1987 #error "your preprocessor is broken"
1988#endif
1989#if BIG_OK
1990#else
1991 #error "your preprocessor is broken"
1992#endif
1993static long long int bignum = -9223372036854775807LL;
1994static unsigned long long int ubignum = BIG64;
1996struct incomplete_array
1998 int datasize;
1999 double data[];
2002struct named_init {
2003 int number;
2004 const wchar_t *name;
2005 double average;
2008typedef const char *ccp;
2010static inline int
2011test_restrict (ccp restrict text)
2013 // See if C++-style comments work.
2014 // Iterate through items via the restricted pointer.
2015 // Also check for declarations in for loops.
2016 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2017 continue;
2018 return 0;
2021// Check varargs and va_copy.
2022static bool
2023test_varargs (const char *format, ...)
2025 va_list args;
2026 va_start (args, format);
2027 va_list args_copy;
2028 va_copy (args_copy, args);
2030 const char *str = "";
2031 int number = 0;
2032 float fnumber = 0;
2034 while (*format)
2036 switch (*format++)
2038 case '\''s'\'': // string
2039 str = va_arg (args_copy, const char *);
2040 break;
2041 case '\''d'\'': // int
2042 number = va_arg (args_copy, int);
2043 break;
2044 case '\''f'\'': // float
2045 fnumber = va_arg (args_copy, double);
2046 break;
2047 default:
2048 break;
2051 va_end (args_copy);
2052 va_end (args);
2054 return *str && number && fnumber;
2058# Test code for whether the C compiler supports C99 (body of main).
2059ac_c_conftest_c99_main='
2060 // Check bool.
2061 _Bool success = false;
2062 success |= (argc != 0);
2064 // Check restrict.
2065 if (test_restrict ("String literal") == 0)
2066 success = true;
2067 char *restrict newvar = "Another string";
2069 // Check varargs.
2070 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2071 test_varargs_macros ();
2073 // Check flexible array members.
2074 struct incomplete_array *ia =
2075 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2076 ia->datasize = 10;
2077 for (int i = 0; i < ia->datasize; ++i)
2078 ia->data[i] = i * 1.234;
2080 // Check named initializers.
2081 struct named_init ni = {
2082 .number = 34,
2083 .name = L"Test wide string",
2084 .average = 543.34343,
2085 };
2087 ni.number = 58;
2089 int dynamic_array[ni.number];
2090 dynamic_array[0] = argv[0][0];
2091 dynamic_array[ni.number - 1] = 543;
2093 // work around unused variable warnings
2094 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2095 || dynamic_array[ni.number - 1] != 543);
2098# Test code for whether the C compiler supports C11 (global declarations)
2099ac_c_conftest_c11_globals='
2100// Does the compiler advertise C11 conformance?
2101#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2102# error "Compiler does not advertise C11 conformance"
2103#endif
2105// Check _Alignas.
2106char _Alignas (double) aligned_as_double;
2107char _Alignas (0) no_special_alignment;
2108extern char aligned_as_int;
2109char _Alignas (0) _Alignas (int) aligned_as_int;
2111// Check _Alignof.
2112enum
2114 int_alignment = _Alignof (int),
2115 int_array_alignment = _Alignof (int[100]),
2116 char_alignment = _Alignof (char)
2118_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2120// Check _Noreturn.
2121int _Noreturn does_not_return (void) { for (;;) continue; }
2123// Check _Static_assert.
2124struct test_static_assert
2126 int x;
2127 _Static_assert (sizeof (int) <= sizeof (long int),
2128 "_Static_assert does not work in struct");
2129 long int y;
2132// Check UTF-8 literals.
2133#define u8 syntax error!
2134char const utf8_literal[] = u8"happens to be ASCII" "another string";
2136// Check duplicate typedefs.
2137typedef long *long_ptr;
2138typedef long int *long_ptr;
2139typedef long_ptr long_ptr;
2141// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2142struct anonymous
2144 union {
2145 struct { int i; int j; };
2146 struct { int k; long int l; } w;
2147 };
2148 int m;
2149} v1;
2152# Test code for whether the C compiler supports C11 (body of main).
2153ac_c_conftest_c11_main='
2154 _Static_assert ((offsetof (struct anonymous, i)
2155 == offsetof (struct anonymous, w.k)),
2156 "Anonymous union alignment botch");
2157 v1.i = 2;
2158 v1.w.k = 5;
2159 ok |= v1.i != 5;
2162# Test code for whether the C compiler supports C11 (complete).
2163ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2164${ac_c_conftest_c99_globals}
2165${ac_c_conftest_c11_globals}
2167int
2168main (int argc, char **argv)
2170 int ok = 0;
2171 ${ac_c_conftest_c89_main}
2172 ${ac_c_conftest_c99_main}
2173 ${ac_c_conftest_c11_main}
2174 return ok;
2178# Test code for whether the C compiler supports C99 (complete).
2179ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2180${ac_c_conftest_c99_globals}
2182int
2183main (int argc, char **argv)
2185 int ok = 0;
2186 ${ac_c_conftest_c89_main}
2187 ${ac_c_conftest_c99_main}
2188 return ok;
2192# Test code for whether the C compiler supports C89 (complete).
2193ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2195int
2196main (int argc, char **argv)
2198 int ok = 0;
2199 ${ac_c_conftest_c89_main}
2200 return ok;
2204as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2205as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2206as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2207as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2208as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2209as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2210as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2211as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2212as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2213# Check that the precious variables saved in the cache have kept the same
2214# value.
2215ac_cache_corrupted=false
2216for ac_var in $ac_precious_vars; do
2217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2218 eval ac_new_set=\$ac_env_${ac_var}_set
2219 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2220 eval ac_new_val=\$ac_env_${ac_var}_value
2221 case $ac_old_set,$ac_new_set in
2222 set,)
2223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2224printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2225 ac_cache_corrupted=: ;;
2226 ,set)
2227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2228printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2229 ac_cache_corrupted=: ;;
2230 ,);;
2231 *)
2232 if test "x$ac_old_val" != "x$ac_new_val"; then
2233 # differences in whitespace do not lead to failure.
2234 ac_old_val_w=`echo x $ac_old_val`
2235 ac_new_val_w=`echo x $ac_new_val`
2236 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2238printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2239 ac_cache_corrupted=:
2240 else
2241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2242printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2243 eval $ac_var=\$ac_old_val
2244 fi
2245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2246printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2248printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2249 fi;;
2250 esac
2251 # Pass precious variables to config.status.
2252 if test "$ac_new_set" = set; then
2253 case $ac_new_val in
2254 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2255 *) ac_arg=$ac_var=$ac_new_val ;;
2256 esac
2257 case " $ac_configure_args " in
2258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2259 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2260 esac
2261 fi
2262done
2263if $ac_cache_corrupted; then
2264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2267printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2268 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2269 and start over" "$LINENO" 5
2271## -------------------- ##
2272## Main body of script. ##
2273## -------------------- ##
2275ac_ext=c
2276ac_cpp='$CPP $CPPFLAGS'
2277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283# To suppress "WARNING: unrecognized options: --with-compiler"
2285# Check whether --with-compiler was given.
2286if test ${with_compiler+y}
2287then :
2288 withval=$with_compiler;
2292# Check headers and functions required
2302ac_ext=c
2303ac_cpp='$CPP $CPPFLAGS'
2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2309set dummy ${ac_tool_prefix}gcc; ac_word=$2
2310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311printf %s "checking for $ac_word... " >&6; }
2312if test ${ac_cv_prog_CC+y}
2313then :
2314 printf %s "(cached) " >&6
2315else $as_nop
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2322 IFS=$as_save_IFS
2323 case $as_dir in #(((
2324 '') as_dir=./ ;;
2325 */) ;;
2326 *) as_dir=$as_dir/ ;;
2327 esac
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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334done
2335 done
2336IFS=$as_save_IFS
2340CC=$ac_cv_prog_CC
2341if test -n "$CC"; then
2342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2343printf "%s\n" "$CC" >&6; }
2344else
2345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2346printf "%s\n" "no" >&6; }
2351if test -z "$ac_cv_prog_CC"; then
2352 ac_ct_CC=$CC
2353 # Extract the first word of "gcc", so it can be a program name with args.
2354set dummy gcc; ac_word=$2
2355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356printf %s "checking for $ac_word... " >&6; }
2357if test ${ac_cv_prog_ac_ct_CC+y}
2358then :
2359 printf %s "(cached) " >&6
2360else $as_nop
2361 if test -n "$ac_ct_CC"; then
2362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2363else
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2367 IFS=$as_save_IFS
2368 case $as_dir in #(((
2369 '') as_dir=./ ;;
2370 */) ;;
2371 *) as_dir=$as_dir/ ;;
2372 esac
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2375 ac_cv_prog_ac_ct_CC="gcc"
2376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379done
2380 done
2381IFS=$as_save_IFS
2385ac_ct_CC=$ac_cv_prog_ac_ct_CC
2386if test -n "$ac_ct_CC"; then
2387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2388printf "%s\n" "$ac_ct_CC" >&6; }
2389else
2390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2391printf "%s\n" "no" >&6; }
2394 if test "x$ac_ct_CC" = x; then
2395 CC=""
2396 else
2397 case $cross_compiling:$ac_tool_warned in
2398yes:)
2399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2400printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2401ac_tool_warned=yes ;;
2402esac
2403 CC=$ac_ct_CC
2404 fi
2405else
2406 CC="$ac_cv_prog_CC"
2409if test -z "$CC"; then
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2412set dummy ${ac_tool_prefix}cc; ac_word=$2
2413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414printf %s "checking for $ac_word... " >&6; }
2415if test ${ac_cv_prog_CC+y}
2416then :
2417 printf %s "(cached) " >&6
2418else $as_nop
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2425 IFS=$as_save_IFS
2426 case $as_dir in #(((
2427 '') as_dir=./ ;;
2428 */) ;;
2429 *) as_dir=$as_dir/ ;;
2430 esac
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_CC="${ac_tool_prefix}cc"
2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437done
2438 done
2439IFS=$as_save_IFS
2443CC=$ac_cv_prog_CC
2444if test -n "$CC"; then
2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2446printf "%s\n" "$CC" >&6; }
2447else
2448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449printf "%s\n" "no" >&6; }
2453 fi
2455if test -z "$CC"; then
2456 # Extract the first word of "cc", so it can be a program name with args.
2457set dummy cc; ac_word=$2
2458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459printf %s "checking for $ac_word... " >&6; }
2460if test ${ac_cv_prog_CC+y}
2461then :
2462 printf %s "(cached) " >&6
2463else $as_nop
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466else
2467 ac_prog_rejected=no
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2471 IFS=$as_save_IFS
2472 case $as_dir in #(((
2473 '') as_dir=./ ;;
2474 */) ;;
2475 *) as_dir=$as_dir/ ;;
2476 esac
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2479 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2480 ac_prog_rejected=yes
2481 continue
2482 fi
2483 ac_cv_prog_CC="cc"
2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487done
2488 done
2489IFS=$as_save_IFS
2491if test $ac_prog_rejected = yes; then
2492 # We found a bogon in the path, so make sure we never use it.
2493 set dummy $ac_cv_prog_CC
2494 shift
2495 if test $# != 0; then
2496 # We chose a different compiler from the bogus one.
2497 # However, it has the same basename, so the bogon will be chosen
2498 # first if we set CC to just the basename; use the full file name.
2499 shift
2500 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2501 fi
2505CC=$ac_cv_prog_CC
2506if test -n "$CC"; then
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2508printf "%s\n" "$CC" >&6; }
2509else
2510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511printf "%s\n" "no" >&6; }
2516if test -z "$CC"; then
2517 if test -n "$ac_tool_prefix"; then
2518 for ac_prog in cl.exe
2519 do
2520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523printf %s "checking for $ac_word... " >&6; }
2524if test ${ac_cv_prog_CC+y}
2525then :
2526 printf %s "(cached) " >&6
2527else $as_nop
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2534 IFS=$as_save_IFS
2535 case $as_dir in #(((
2536 '') as_dir=./ ;;
2537 */) ;;
2538 *) as_dir=$as_dir/ ;;
2539 esac
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546done
2547 done
2548IFS=$as_save_IFS
2552CC=$ac_cv_prog_CC
2553if test -n "$CC"; then
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555printf "%s\n" "$CC" >&6; }
2556else
2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558printf "%s\n" "no" >&6; }
2562 test -n "$CC" && break
2563 done
2565if test -z "$CC"; then
2566 ac_ct_CC=$CC
2567 for ac_prog in cl.exe
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
2571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572printf %s "checking for $ac_word... " >&6; }
2573if test ${ac_cv_prog_ac_ct_CC+y}
2574then :
2575 printf %s "(cached) " >&6
2576else $as_nop
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 case $as_dir in #(((
2585 '') as_dir=./ ;;
2586 */) ;;
2587 *) as_dir=$as_dir/ ;;
2588 esac
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_ac_ct_CC="$ac_prog"
2592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596 done
2597IFS=$as_save_IFS
2601ac_ct_CC=$ac_cv_prog_ac_ct_CC
2602if test -n "$ac_ct_CC"; then
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2604printf "%s\n" "$ac_ct_CC" >&6; }
2605else
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607printf "%s\n" "no" >&6; }
2611 test -n "$ac_ct_CC" && break
2612done
2614 if test "x$ac_ct_CC" = x; then
2615 CC=""
2616 else
2617 case $cross_compiling:$ac_tool_warned in
2618yes:)
2619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621ac_tool_warned=yes ;;
2622esac
2623 CC=$ac_ct_CC
2624 fi
2628if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2631set dummy ${ac_tool_prefix}clang; ac_word=$2
2632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633printf %s "checking for $ac_word... " >&6; }
2634if test ${ac_cv_prog_CC+y}
2635then :
2636 printf %s "(cached) " >&6
2637else $as_nop
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2644 IFS=$as_save_IFS
2645 case $as_dir in #(((
2646 '') as_dir=./ ;;
2647 */) ;;
2648 *) as_dir=$as_dir/ ;;
2649 esac
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_CC="${ac_tool_prefix}clang"
2653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656done
2657 done
2658IFS=$as_save_IFS
2662CC=$ac_cv_prog_CC
2663if test -n "$CC"; then
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665printf "%s\n" "$CC" >&6; }
2666else
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668printf "%s\n" "no" >&6; }
2673if test -z "$ac_cv_prog_CC"; then
2674 ac_ct_CC=$CC
2675 # Extract the first word of "clang", so it can be a program name with args.
2676set dummy clang; ac_word=$2
2677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678printf %s "checking for $ac_word... " >&6; }
2679if test ${ac_cv_prog_ac_ct_CC+y}
2680then :
2681 printf %s "(cached) " >&6
2682else $as_nop
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 case $as_dir in #(((
2691 '') as_dir=./ ;;
2692 */) ;;
2693 *) as_dir=$as_dir/ ;;
2694 esac
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_ac_ct_CC="clang"
2698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701done
2702 done
2703IFS=$as_save_IFS
2707ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708if test -n "$ac_ct_CC"; then
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2710printf "%s\n" "$ac_ct_CC" >&6; }
2711else
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713printf "%s\n" "no" >&6; }
2716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720yes:)
2721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2722printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723ac_tool_warned=yes ;;
2724esac
2725 CC=$ac_ct_CC
2726 fi
2727else
2728 CC="$ac_cv_prog_CC"
2734test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2735printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2736as_fn_error $? "no acceptable C compiler found in \$PATH
2737See \`config.log' for more details" "$LINENO" 5; }
2739# Provide some information about the compiler.
2740printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2741set X $ac_compile
2742ac_compiler=$2
2743for ac_option in --version -v -V -qversion -version; do
2744 { { ac_try="$ac_compiler $ac_option >&5"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2750printf "%s\n" "$ac_try_echo"; } >&5
2751 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2752 ac_status=$?
2753 if test -s conftest.err; then
2754 sed '10a\
2755... rest of stderr output deleted ...
2756 10q' conftest.err >conftest.er1
2757 cat conftest.er1 >&5
2758 fi
2759 rm -f conftest.er1 conftest.err
2760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2761 test $ac_status = 0; }
2762done
2764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765/* end confdefs.h. */
2767int
2768main (void)
2772 return 0;
2774_ACEOF
2775ac_clean_files_save=$ac_clean_files
2776ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2777# Try to create an executable without -o first, disregard a.out.
2778# It will help us diagnose broken compilers, and finding out an intuition
2779# of exeext.
2780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2781printf %s "checking whether the C compiler works... " >&6; }
2782ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2784# The possible output files:
2785ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2787ac_rmfiles=
2788for ac_file in $ac_files
2790 case $ac_file in
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793 esac
2794done
2795rm -f $ac_rmfiles
2797if { { ac_try="$ac_link_default"
2798case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801esac
2802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2803printf "%s\n" "$ac_try_echo"; } >&5
2804 (eval "$ac_link_default") 2>&5
2805 ac_status=$?
2806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2807 test $ac_status = 0; }
2808then :
2809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2810# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2811# in a Makefile. We should not override ac_cv_exeext if it was cached,
2812# so that the user can short-circuit this test for compilers unknown to
2813# Autoconf.
2814for ac_file in $ac_files ''
2816 test -f "$ac_file" || continue
2817 case $ac_file in
2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2819 ;;
2820 [ab].out )
2821 # We found the default executable, but exeext='' is most
2822 # certainly right.
2823 break;;
2824 *.* )
2825 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2826 then :; else
2827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 fi
2829 # We set ac_cv_exeext here because the later test for it is not
2830 # safe: cross compilers may not add the suffix if given an `-o'
2831 # argument, so we may need to know it at that point already.
2832 # Even if this section looks crufty: it has the advantage of
2833 # actually working.
2834 break;;
2835 * )
2836 break;;
2837 esac
2838done
2839test "$ac_cv_exeext" = no && ac_cv_exeext=
2841else $as_nop
2842 ac_file=''
2844if test -z "$ac_file"
2845then :
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847printf "%s\n" "no" >&6; }
2848printf "%s\n" "$as_me: failed program was:" >&5
2849sed 's/^/| /' conftest.$ac_ext >&5
2851{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2853as_fn_error 77 "C compiler cannot create executables
2854See \`config.log' for more details" "$LINENO" 5; }
2855else $as_nop
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857printf "%s\n" "yes" >&6; }
2859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2860printf %s "checking for C compiler default output file name... " >&6; }
2861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2862printf "%s\n" "$ac_file" >&6; }
2863ac_exeext=$ac_cv_exeext
2865rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2866ac_clean_files=$ac_clean_files_save
2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2868printf %s "checking for suffix of executables... " >&6; }
2869if { { ac_try="$ac_link"
2870case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873esac
2874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875printf "%s\n" "$ac_try_echo"; } >&5
2876 (eval "$ac_link") 2>&5
2877 ac_status=$?
2878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; }
2880then :
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883# work properly (i.e., refer to `conftest.exe'), while it won't with
2884# `rm'.
2885for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 break;;
2891 * ) break;;
2892 esac
2893done
2894else $as_nop
2895 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2897as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2898See \`config.log' for more details" "$LINENO" 5; }
2900rm -f conftest conftest$ac_cv_exeext
2901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2902printf "%s\n" "$ac_cv_exeext" >&6; }
2904rm -f conftest.$ac_ext
2905EXEEXT=$ac_cv_exeext
2906ac_exeext=$EXEEXT
2907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h. */
2909#include <stdio.h>
2910int
2911main (void)
2913FILE *f = fopen ("conftest.out", "w");
2914 return ferror (f) || fclose (f) != 0;
2917 return 0;
2919_ACEOF
2920ac_clean_files="$ac_clean_files conftest.out"
2921# Check that the compiler produces executables we can run. If not, either
2922# the compiler is broken, or we cross compile.
2923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2924printf %s "checking whether we are cross compiling... " >&6; }
2925if test "$cross_compiling" != yes; then
2926 { { ac_try="$ac_link"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932printf "%s\n" "$ac_try_echo"; } >&5
2933 (eval "$ac_link") 2>&5
2934 ac_status=$?
2935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }
2937 if { ac_try='./conftest$ac_cv_exeext'
2938 { { case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943printf "%s\n" "$ac_try_echo"; } >&5
2944 (eval "$ac_try") 2>&5
2945 ac_status=$?
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }; }; then
2948 cross_compiling=no
2949 else
2950 if test "$cross_compiling" = maybe; then
2951 cross_compiling=yes
2952 else
2953 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2955as_fn_error 77 "cannot run C compiled programs.
2956If you meant to cross compile, use \`--host'.
2957See \`config.log' for more details" "$LINENO" 5; }
2958 fi
2959 fi
2961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2962printf "%s\n" "$cross_compiling" >&6; }
2964rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2965ac_clean_files=$ac_clean_files_save
2966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2967printf %s "checking for suffix of object files... " >&6; }
2968if test ${ac_cv_objext+y}
2969then :
2970 printf %s "(cached) " >&6
2971else $as_nop
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973/* end confdefs.h. */
2975int
2976main (void)
2980 return 0;
2982_ACEOF
2983rm -f conftest.o conftest.obj
2984if { { ac_try="$ac_compile"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990printf "%s\n" "$ac_try_echo"; } >&5
2991 (eval "$ac_compile") 2>&5
2992 ac_status=$?
2993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }
2995then :
2996 for ac_file in conftest.o conftest.obj conftest.*; do
2997 test -f "$ac_file" || continue;
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3001 break;;
3002 esac
3003done
3004else $as_nop
3005 printf "%s\n" "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
3008{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3010as_fn_error $? "cannot compute suffix of object files: cannot compile
3011See \`config.log' for more details" "$LINENO" 5; }
3013rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3016printf "%s\n" "$ac_cv_objext" >&6; }
3017OBJEXT=$ac_cv_objext
3018ac_objext=$OBJEXT
3019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3020printf %s "checking whether the compiler supports GNU C... " >&6; }
3021if test ${ac_cv_c_compiler_gnu+y}
3022then :
3023 printf %s "(cached) " >&6
3024else $as_nop
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026/* end confdefs.h. */
3028int
3029main (void)
3031#ifndef __GNUC__
3032 choke me
3033#endif
3036 return 0;
3038_ACEOF
3039if ac_fn_c_try_compile "$LINENO"
3040then :
3041 ac_compiler_gnu=yes
3042else $as_nop
3043 ac_compiler_gnu=no
3045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3046ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3050printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3051ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053if test $ac_compiler_gnu = yes; then
3054 GCC=yes
3055else
3056 GCC=
3058ac_test_CFLAGS=${CFLAGS+y}
3059ac_save_CFLAGS=$CFLAGS
3060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3061printf %s "checking whether $CC accepts -g... " >&6; }
3062if test ${ac_cv_prog_cc_g+y}
3063then :
3064 printf %s "(cached) " >&6
3065else $as_nop
3066 ac_save_c_werror_flag=$ac_c_werror_flag
3067 ac_c_werror_flag=yes
3068 ac_cv_prog_cc_g=no
3069 CFLAGS="-g"
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h. */
3073int
3074main (void)
3078 return 0;
3080_ACEOF
3081if ac_fn_c_try_compile "$LINENO"
3082then :
3083 ac_cv_prog_cc_g=yes
3084else $as_nop
3085 CFLAGS=""
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087/* end confdefs.h. */
3089int
3090main (void)
3094 return 0;
3096_ACEOF
3097if ac_fn_c_try_compile "$LINENO"
3098then :
3100else $as_nop
3101 ac_c_werror_flag=$ac_save_c_werror_flag
3102 CFLAGS="-g"
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h. */
3106int
3107main (void)
3111 return 0;
3113_ACEOF
3114if ac_fn_c_try_compile "$LINENO"
3115then :
3116 ac_cv_prog_cc_g=yes
3118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3123 ac_c_werror_flag=$ac_save_c_werror_flag
3125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3126printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3127if test $ac_test_CFLAGS; then
3128 CFLAGS=$ac_save_CFLAGS
3129elif test $ac_cv_prog_cc_g = yes; then
3130 if test "$GCC" = yes; then
3131 CFLAGS="-g -O2"
3132 else
3133 CFLAGS="-g"
3134 fi
3135else
3136 if test "$GCC" = yes; then
3137 CFLAGS="-O2"
3138 else
3139 CFLAGS=
3140 fi
3142ac_prog_cc_stdc=no
3143if test x$ac_prog_cc_stdc = xno
3144then :
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3146printf %s "checking for $CC option to enable C11 features... " >&6; }
3147if test ${ac_cv_prog_cc_c11+y}
3148then :
3149 printf %s "(cached) " >&6
3150else $as_nop
3151 ac_cv_prog_cc_c11=no
3152ac_save_CC=$CC
3153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h. */
3155$ac_c_conftest_c11_program
3156_ACEOF
3157for ac_arg in '' -std=gnu11
3159 CC="$ac_save_CC $ac_arg"
3160 if ac_fn_c_try_compile "$LINENO"
3161then :
3162 ac_cv_prog_cc_c11=$ac_arg
3164rm -f core conftest.err conftest.$ac_objext conftest.beam
3165 test "x$ac_cv_prog_cc_c11" != "xno" && break
3166done
3167rm -f conftest.$ac_ext
3168CC=$ac_save_CC
3171if test "x$ac_cv_prog_cc_c11" = xno
3172then :
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3174printf "%s\n" "unsupported" >&6; }
3175else $as_nop
3176 if test "x$ac_cv_prog_cc_c11" = x
3177then :
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3179printf "%s\n" "none needed" >&6; }
3180else $as_nop
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3182printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3183 CC="$CC $ac_cv_prog_cc_c11"
3185 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3186 ac_prog_cc_stdc=c11
3189if test x$ac_prog_cc_stdc = xno
3190then :
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3192printf %s "checking for $CC option to enable C99 features... " >&6; }
3193if test ${ac_cv_prog_cc_c99+y}
3194then :
3195 printf %s "(cached) " >&6
3196else $as_nop
3197 ac_cv_prog_cc_c99=no
3198ac_save_CC=$CC
3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200/* end confdefs.h. */
3201$ac_c_conftest_c99_program
3202_ACEOF
3203for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3205 CC="$ac_save_CC $ac_arg"
3206 if ac_fn_c_try_compile "$LINENO"
3207then :
3208 ac_cv_prog_cc_c99=$ac_arg
3210rm -f core conftest.err conftest.$ac_objext conftest.beam
3211 test "x$ac_cv_prog_cc_c99" != "xno" && break
3212done
3213rm -f conftest.$ac_ext
3214CC=$ac_save_CC
3217if test "x$ac_cv_prog_cc_c99" = xno
3218then :
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3220printf "%s\n" "unsupported" >&6; }
3221else $as_nop
3222 if test "x$ac_cv_prog_cc_c99" = x
3223then :
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3225printf "%s\n" "none needed" >&6; }
3226else $as_nop
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3228printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3229 CC="$CC $ac_cv_prog_cc_c99"
3231 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3232 ac_prog_cc_stdc=c99
3235if test x$ac_prog_cc_stdc = xno
3236then :
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3238printf %s "checking for $CC option to enable C89 features... " >&6; }
3239if test ${ac_cv_prog_cc_c89+y}
3240then :
3241 printf %s "(cached) " >&6
3242else $as_nop
3243 ac_cv_prog_cc_c89=no
3244ac_save_CC=$CC
3245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h. */
3247$ac_c_conftest_c89_program
3248_ACEOF
3249for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3251 CC="$ac_save_CC $ac_arg"
3252 if ac_fn_c_try_compile "$LINENO"
3253then :
3254 ac_cv_prog_cc_c89=$ac_arg
3256rm -f core conftest.err conftest.$ac_objext conftest.beam
3257 test "x$ac_cv_prog_cc_c89" != "xno" && break
3258done
3259rm -f conftest.$ac_ext
3260CC=$ac_save_CC
3263if test "x$ac_cv_prog_cc_c89" = xno
3264then :
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3266printf "%s\n" "unsupported" >&6; }
3267else $as_nop
3268 if test "x$ac_cv_prog_cc_c89" = x
3269then :
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3271printf "%s\n" "none needed" >&6; }
3272else $as_nop
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3274printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3275 CC="$CC $ac_cv_prog_cc_c89"
3277 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3278 ac_prog_cc_stdc=c89
3282ac_ext=c
3283ac_cpp='$CPP $CPPFLAGS'
3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289ac_header= ac_cache=
3290for ac_item in $ac_header_c_list
3292 if test $ac_cache; then
3293 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3294 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3295 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3296 fi
3297 ac_header= ac_cache=
3298 elif test $ac_header; then
3299 ac_cache=$ac_item
3300 else
3301 ac_header=$ac_item
3302 fi
3303done
3312if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3313then :
3315printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3318ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
3319if test "x$ac_cv_header_time_h" = xyes
3320then :
3321 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
3325ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
3326if test "x$ac_cv_func_clock_gettime" = xyes
3327then :
3328 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
3333# Output
3334ac_config_headers="$ac_config_headers src/config.h"
3336cat >confcache <<\_ACEOF
3337# This file is a shell script that caches the results of configure
3338# tests run on this system so they can be shared between configure
3339# scripts and configure runs, see configure's option --config-cache.
3340# It is not useful on other systems. If it contains results you don't
3341# want to keep, you may remove or edit it.
3343# config.status only pays attention to the cache file if you give it
3344# the --recheck option to rerun configure.
3346# `ac_cv_env_foo' variables (set or unset) will be overridden when
3347# loading this file, other *unset* `ac_cv_foo' will be assigned the
3348# following values.
3350_ACEOF
3352# The following way of writing the cache mishandles newlines in values,
3353# but we know of no workaround that is simple, portable, and efficient.
3354# So, we kill variables containing newlines.
3355# Ultrix sh set writes to stderr and can't be redirected directly,
3356# and sets the high bit in the cache file unless we assign to the vars.
3358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3359 eval ac_val=\$$ac_var
3360 case $ac_val in #(
3361 *${as_nl}*)
3362 case $ac_var in #(
3363 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3364printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3365 esac
3366 case $ac_var in #(
3367 _ | IFS | as_nl) ;; #(
3368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3369 *) { eval $ac_var=; unset $ac_var;} ;;
3370 esac ;;
3371 esac
3372 done
3374 (set) 2>&1 |
3375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3376 *${as_nl}ac_space=\ *)
3377 # `set' does not quote correctly, so add quotes: double-quote
3378 # substitution turns \\\\ into \\, and sed turns \\ into \.
3379 sed -n \
3380 "s/'/'\\\\''/g;
3381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3382 ;; #(
3383 *)
3384 # `set' quotes correctly as required by POSIX, so do not add quotes.
3385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3386 ;;
3387 esac |
3388 sort
3389) |
3390 sed '
3391 /^ac_cv_env_/b end
3392 t clear
3393 :clear
3394 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3395 t end
3396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3397 :end' >>confcache
3398if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3399 if test -w "$cache_file"; then
3400 if test "x$cache_file" != "x/dev/null"; then
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3402printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
3403 if test ! -f "$cache_file" || test -h "$cache_file"; then
3404 cat confcache >"$cache_file"
3405 else
3406 case $cache_file in #(
3407 */* | ?:*)
3408 mv -f confcache "$cache_file"$$ &&
3409 mv -f "$cache_file"$$ "$cache_file" ;; #(
3410 *)
3411 mv -f confcache "$cache_file" ;;
3412 esac
3413 fi
3414 fi
3415 else
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3417printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
3418 fi
3420rm -f confcache
3422test "x$prefix" = xNONE && prefix=$ac_default_prefix
3423# Let make expand exec_prefix.
3424test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3426DEFS=-DHAVE_CONFIG_H
3428ac_libobjs=
3429ac_ltlibobjs=
3431for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3432 # 1. Remove the extension, and $U if already installed.
3433 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3434 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
3435 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3436 # will be set to the directory where LIBOBJS objects are built.
3437 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3438 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3439done
3440LIBOBJS=$ac_libobjs
3442LTLIBOBJS=$ac_ltlibobjs
3446: "${CONFIG_STATUS=./config.status}"
3447ac_write_fail=0
3448ac_clean_files_save=$ac_clean_files
3449ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3451printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3452as_write_fail=0
3453cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3454#! $SHELL
3455# Generated by $as_me.
3456# Run this file to recreate the current configuration.
3457# Compiler output produced by configure, useful for debugging
3458# configure, is in config.log if it exists.
3460debug=false
3461ac_cs_recheck=false
3462ac_cs_silent=false
3464SHELL=\${CONFIG_SHELL-$SHELL}
3465export SHELL
3466_ASEOF
3467cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3468## -------------------- ##
3469## M4sh Initialization. ##
3470## -------------------- ##
3472# Be more Bourne compatible
3473DUALCASE=1; export DUALCASE # for MKS sh
3474as_nop=:
3475if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
3476then :
3477 emulate sh
3478 NULLCMD=:
3479 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3480 # is contrary to our usage. Disable this feature.
3481 alias -g '${1+"$@"}'='"$@"'
3482 setopt NO_GLOB_SUBST
3483else $as_nop
3484 case `(set -o) 2>/dev/null` in #(
3485 *posix*) :
3486 set -o posix ;; #(
3487 *) :
3488 ;;
3489esac
3494# Reset variables that may have inherited troublesome values from
3495# the environment.
3497# IFS needs to be set, to space, tab, and newline, in precisely that order.
3498# (If _AS_PATH_WALK were called with IFS unset, it would have the
3499# side effect of setting IFS to empty, thus disabling word splitting.)
3500# Quoting is to prevent editors from complaining about space-tab.
3501as_nl='
3503export as_nl
3504IFS=" "" $as_nl"
3506PS1='$ '
3507PS2='> '
3508PS4='+ '
3510# Ensure predictable behavior from utilities with locale-dependent output.
3511LC_ALL=C
3512export LC_ALL
3513LANGUAGE=C
3514export LANGUAGE
3516# We cannot yet rely on "unset" to work, but we need these variables
3517# to be unset--not just set to an empty or harmless value--now, to
3518# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
3519# also avoids known problems related to "unset" and subshell syntax
3520# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3521for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3522do eval test \${$as_var+y} \
3523 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3524done
3526# Ensure that fds 0, 1, and 2 are open.
3527if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3528if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3529if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
3531# The user is always right.
3532if ${PATH_SEPARATOR+false} :; then
3533 PATH_SEPARATOR=:
3534 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3535 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3536 PATH_SEPARATOR=';'
3541# Find who we are. Look in the path if we contain no directory separator.
3542as_myself=
3543case $0 in #((
3544 *[\\/]* ) as_myself=$0 ;;
3545 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 case $as_dir in #(((
3550 '') as_dir=./ ;;
3551 */) ;;
3552 *) as_dir=$as_dir/ ;;
3553 esac
3554 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3555 done
3556IFS=$as_save_IFS
3558 ;;
3559esac
3560# We did not find ourselves, most probably we were run as `sh COMMAND'
3561# in which case we are not to be found in the path.
3562if test "x$as_myself" = x; then
3563 as_myself=$0
3565if test ! -f "$as_myself"; then
3566 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3567 exit 1
3572# as_fn_error STATUS ERROR [LINENO LOG_FD]
3573# ----------------------------------------
3574# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3575# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3576# script with STATUS, using 1 if that was 0.
3577as_fn_error ()
3579 as_status=$1; test $as_status -eq 0 && as_status=1
3580 if test "$4"; then
3581 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3583 fi
3584 printf "%s\n" "$as_me: error: $2" >&2
3585 as_fn_exit $as_status
3586} # as_fn_error
3590# as_fn_set_status STATUS
3591# -----------------------
3592# Set $? to STATUS, without forking.
3593as_fn_set_status ()
3595 return $1
3596} # as_fn_set_status
3598# as_fn_exit STATUS
3599# -----------------
3600# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3601as_fn_exit ()
3603 set +e
3604 as_fn_set_status $1
3605 exit $1
3606} # as_fn_exit
3608# as_fn_unset VAR
3609# ---------------
3610# Portably unset VAR.
3611as_fn_unset ()
3613 { eval $1=; unset $1;}
3615as_unset=as_fn_unset
3617# as_fn_append VAR VALUE
3618# ----------------------
3619# Append the text in VALUE to the end of the definition contained in VAR. Take
3620# advantage of any shell optimizations that allow amortized linear growth over
3621# repeated appends, instead of the typical quadratic growth present in naive
3622# implementations.
3623if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3624then :
3625 eval 'as_fn_append ()
3627 eval $1+=\$2
3628 }'
3629else $as_nop
3630 as_fn_append ()
3632 eval $1=\$$1\$2
3634fi # as_fn_append
3636# as_fn_arith ARG...
3637# ------------------
3638# Perform arithmetic evaluation on the ARGs, and store the result in the
3639# global $as_val. Take advantage of shells that can avoid forks. The arguments
3640# must be portable across $(()) and expr.
3641if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
3642then :
3643 eval 'as_fn_arith ()
3645 as_val=$(( $* ))
3646 }'
3647else $as_nop
3648 as_fn_arith ()
3650 as_val=`expr "$@" || test $? -eq 1`
3652fi # as_fn_arith
3655if expr a : '\(a\)' >/dev/null 2>&1 &&
3656 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3657 as_expr=expr
3658else
3659 as_expr=false
3662if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3663 as_basename=basename
3664else
3665 as_basename=false
3668if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3669 as_dirname=dirname
3670else
3671 as_dirname=false
3674as_me=`$as_basename -- "$0" ||
3675$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3676 X"$0" : 'X\(//\)$' \| \
3677 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3678printf "%s\n" X/"$0" |
3679 sed '/^.*\/\([^/][^/]*\)\/*$/{
3680 s//\1/
3683 /^X\/\(\/\/\)$/{
3684 s//\1/
3687 /^X\/\(\/\).*/{
3688 s//\1/
3691 s/.*/./; q'`
3693# Avoid depending upon Character Ranges.
3694as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3695as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3696as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3697as_cr_digits='0123456789'
3698as_cr_alnum=$as_cr_Letters$as_cr_digits
3701# Determine whether it's possible to make 'echo' print without a newline.
3702# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3703# for compatibility with existing Makefiles.
3704ECHO_C= ECHO_N= ECHO_T=
3705case `echo -n x` in #(((((
3706-n*)
3707 case `echo 'xy\c'` in
3708 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3709 xy) ECHO_C='\c';;
3710 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3711 ECHO_T=' ';;
3712 esac;;
3714 ECHO_N='-n';;
3715esac
3717# For backward compatibility with old third-party macros, we provide
3718# the shell variables $as_echo and $as_echo_n. New code should use
3719# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
3720as_echo='printf %s\n'
3721as_echo_n='printf %s'
3723rm -f conf$$ conf$$.exe conf$$.file
3724if test -d conf$$.dir; then
3725 rm -f conf$$.dir/conf$$.file
3726else
3727 rm -f conf$$.dir
3728 mkdir conf$$.dir 2>/dev/null
3730if (echo >conf$$.file) 2>/dev/null; then
3731 if ln -s conf$$.file conf$$ 2>/dev/null; then
3732 as_ln_s='ln -s'
3733 # ... but there are two gotchas:
3734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3736 # In both cases, we have to default to `cp -pR'.
3737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3738 as_ln_s='cp -pR'
3739 elif ln conf$$.file conf$$ 2>/dev/null; then
3740 as_ln_s=ln
3741 else
3742 as_ln_s='cp -pR'
3743 fi
3744else
3745 as_ln_s='cp -pR'
3747rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3748rmdir conf$$.dir 2>/dev/null
3751# as_fn_mkdir_p
3752# -------------
3753# Create "$as_dir" as a directory, including parents if necessary.
3754as_fn_mkdir_p ()
3757 case $as_dir in #(
3758 -*) as_dir=./$as_dir;;
3759 esac
3760 test -d "$as_dir" || eval $as_mkdir_p || {
3761 as_dirs=
3762 while :; do
3763 case $as_dir in #(
3764 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3765 *) as_qdir=$as_dir;;
3766 esac
3767 as_dirs="'$as_qdir' $as_dirs"
3768 as_dir=`$as_dirname -- "$as_dir" ||
3769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3770 X"$as_dir" : 'X\(//\)[^/]' \| \
3771 X"$as_dir" : 'X\(//\)$' \| \
3772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3773printf "%s\n" X"$as_dir" |
3774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3775 s//\1/
3778 /^X\(\/\/\)[^/].*/{
3779 s//\1/
3782 /^X\(\/\/\)$/{
3783 s//\1/
3786 /^X\(\/\).*/{
3787 s//\1/
3790 s/.*/./; q'`
3791 test -d "$as_dir" && break
3792 done
3793 test -z "$as_dirs" || eval "mkdir $as_dirs"
3794 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3797} # as_fn_mkdir_p
3798if mkdir -p . 2>/dev/null; then
3799 as_mkdir_p='mkdir -p "$as_dir"'
3800else
3801 test -d ./-p && rmdir ./-p
3802 as_mkdir_p=false
3806# as_fn_executable_p FILE
3807# -----------------------
3808# Test if FILE is an executable regular file.
3809as_fn_executable_p ()
3811 test -f "$1" && test -x "$1"
3812} # as_fn_executable_p
3813as_test_x='test -x'
3814as_executable_p=as_fn_executable_p
3816# Sed expression to map a string onto a valid CPP name.
3817as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3819# Sed expression to map a string onto a valid variable name.
3820as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3823exec 6>&1
3824## ----------------------------------- ##
3825## Main body of $CONFIG_STATUS script. ##
3826## ----------------------------------- ##
3827_ASEOF
3828test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3831# Save the log message, to keep $0 and so on meaningful, and to
3832# report actual input values of CONFIG_FILES etc. instead of their
3833# values after options handling.
3834ac_log="
3835This file was extended by streamly-core $as_me 0.2.2, which was
3836generated by GNU Autoconf 2.71. Invocation command line was
3838 CONFIG_FILES = $CONFIG_FILES
3839 CONFIG_HEADERS = $CONFIG_HEADERS
3840 CONFIG_LINKS = $CONFIG_LINKS
3841 CONFIG_COMMANDS = $CONFIG_COMMANDS
3842 $ $0 $@
3844on `(hostname || uname -n) 2>/dev/null | sed 1q`
3847_ACEOF
3850case $ac_config_headers in *"
3851"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3852esac
3855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3856# Files that config.status was made for.
3857config_headers="$ac_config_headers"
3859_ACEOF
3861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3862ac_cs_usage="\
3863\`$as_me' instantiates files and other configuration actions
3864from templates according to the current configuration. Unless the files
3865and actions are specified as TAGs, all are instantiated by default.
3867Usage: $0 [OPTION]... [TAG]...
3869 -h, --help print this help, then exit
3870 -V, --version print version number and configuration settings, then exit
3871 --config print configuration, then exit
3872 -q, --quiet, --silent
3873 do not print progress messages
3874 -d, --debug don't remove temporary files
3875 --recheck update $as_me by reconfiguring in the same conditions
3876 --header=FILE[:TEMPLATE]
3877 instantiate the configuration header FILE
3879Configuration headers:
3880$config_headers
3882Report bugs to <streamly@composewell.com>.
3883streamly-core home page: <https://streamly.composewell.com>."
3885_ACEOF
3886ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
3887ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
3888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3889ac_cs_config='$ac_cs_config_escaped'
3890ac_cs_version="\\
3891streamly-core config.status 0.2.2
3892configured by $0, generated by GNU Autoconf 2.71,
3893 with options \\"\$ac_cs_config\\"
3895Copyright (C) 2021 Free Software Foundation, Inc.
3896This config.status script is free software; the Free Software Foundation
3897gives unlimited permission to copy, distribute and modify it."
3899ac_pwd='$ac_pwd'
3900srcdir='$srcdir'
3901test -n "\$AWK" || AWK=awk
3902_ACEOF
3904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3905# The default lists apply if the user does not specify any file.
3906ac_need_defaults=:
3907while test $# != 0
3909 case $1 in
3910 --*=?*)
3911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3912 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3913 ac_shift=:
3914 ;;
3915 --*=)
3916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3917 ac_optarg=
3918 ac_shift=:
3919 ;;
3920 *)
3921 ac_option=$1
3922 ac_optarg=$2
3923 ac_shift=shift
3924 ;;
3925 esac
3927 case $ac_option in
3928 # Handling of the options.
3929 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3930 ac_cs_recheck=: ;;
3931 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3932 printf "%s\n" "$ac_cs_version"; exit ;;
3933 --config | --confi | --conf | --con | --co | --c )
3934 printf "%s\n" "$ac_cs_config"; exit ;;
3935 --debug | --debu | --deb | --de | --d | -d )
3936 debug=: ;;
3937 --header | --heade | --head | --hea )
3938 $ac_shift
3939 case $ac_optarg in
3940 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3941 esac
3942 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3943 ac_need_defaults=false;;
3944 --he | --h)
3945 # Conflict between --help and --header
3946 as_fn_error $? "ambiguous option: \`$1'
3947Try \`$0 --help' for more information.";;
3948 --help | --hel | -h )
3949 printf "%s\n" "$ac_cs_usage"; exit ;;
3950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3952 ac_cs_silent=: ;;
3954 # This is an error.
3955 -*) as_fn_error $? "unrecognized option: \`$1'
3956Try \`$0 --help' for more information." ;;
3958 *) as_fn_append ac_config_targets " $1"
3959 ac_need_defaults=false ;;
3961 esac
3962 shift
3963done
3965ac_configure_extra_args=
3967if $ac_cs_silent; then
3968 exec 6>/dev/null
3969 ac_configure_extra_args="$ac_configure_extra_args --silent"
3972_ACEOF
3973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3974if \$ac_cs_recheck; then
3975 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3976 shift
3977 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
3978 CONFIG_SHELL='$SHELL'
3979 export CONFIG_SHELL
3980 exec "\$@"
3983_ACEOF
3984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3985exec 5>>config.log
3987 echo
3988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3989## Running $as_me. ##
3990_ASBOX
3991 printf "%s\n" "$ac_log"
3992} >&5
3994_ACEOF
3995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3996_ACEOF
3998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4000# Handling of arguments.
4001for ac_config_target in $ac_config_targets
4003 case $ac_config_target in
4004 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
4006 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4007 esac
4008done
4011# If the user did not use the arguments to specify the items to instantiate,
4012# then the envvar interface is used. Set only those that are not.
4013# We use the long form for the default assignment because of an extremely
4014# bizarre bug on SunOS 4.1.3.
4015if $ac_need_defaults; then
4016 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
4019# Have a temporary directory for convenience. Make it in the build tree
4020# simply because there is no reason against having it here, and in addition,
4021# creating and moving files from /tmp can sometimes cause problems.
4022# Hook for its removal unless debugging.
4023# Note that there is a small window in which the directory will not be cleaned:
4024# after its creation but before its name has been assigned to `$tmp'.
4025$debug ||
4027 tmp= ac_tmp=
4028 trap 'exit_status=$?
4029 : "${ac_tmp:=$tmp}"
4030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4031' 0
4032 trap 'as_fn_exit 1' 1 2 13 15
4034# Create a (secure) tmp directory for tmp files.
4037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4038 test -d "$tmp"
4039} ||
4041 tmp=./conf$$-$RANDOM
4042 (umask 077 && mkdir "$tmp")
4043} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4044ac_tmp=$tmp
4046# Set up the scripts for CONFIG_HEADERS section.
4047# No need to generate them if there are no CONFIG_HEADERS.
4048# This happens for instance with `./config.status Makefile'.
4049if test -n "$CONFIG_HEADERS"; then
4050cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4051BEGIN {
4052_ACEOF
4054# Transform confdefs.h into an awk script `defines.awk', embedded as
4055# here-document in config.status, that substitutes the proper values into
4056# config.h.in to produce config.h.
4058# Create a delimiter string that does not exist in confdefs.h, to ease
4059# handling of long lines.
4060ac_delim='%!_!# '
4061for ac_last_try in false false :; do
4062 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4063 if test -z "$ac_tt"; then
4064 break
4065 elif $ac_last_try; then
4066 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4067 else
4068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4069 fi
4070done
4072# For the awk script, D is an array of macro values keyed by name,
4073# likewise P contains macro parameters if any. Preserve backslash
4074# newline sequences.
4076ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4077sed -n '
4078s/.\{148\}/&'"$ac_delim"'/g
4079t rset
4080:rset
4081s/^[ ]*#[ ]*define[ ][ ]*/ /
4082t def
4084:def
4085s/\\$//
4086t bsnl
4087s/["\\]/\\&/g
4088s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4089D["\1"]=" \3"/p
4090s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4092:bsnl
4093s/["\\]/\\&/g
4094s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4095D["\1"]=" \3\\\\\\n"\\/p
4096t cont
4097s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4098t cont
4100:cont
4102s/.\{148\}/&'"$ac_delim"'/g
4103t clear
4104:clear
4105s/\\$//
4106t bsnlc
4107s/["\\]/\\&/g; s/^/"/; s/$/"/p
4109:bsnlc
4110s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4111b cont
4112' <confdefs.h | sed '
4113s/'"$ac_delim"'/"\\\
4114"/g' >>$CONFIG_STATUS || ac_write_fail=1
4116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4117 for (key in D) D_is_set[key] = 1
4118 FS = ""
4120/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4121 line = \$ 0
4122 split(line, arg, " ")
4123 if (arg[1] == "#") {
4124 defundef = arg[2]
4125 mac1 = arg[3]
4126 } else {
4127 defundef = substr(arg[1], 2)
4128 mac1 = arg[2]
4130 split(mac1, mac2, "(") #)
4131 macro = mac2[1]
4132 prefix = substr(line, 1, index(line, defundef) - 1)
4133 if (D_is_set[macro]) {
4134 # Preserve the white space surrounding the "#".
4135 print prefix "define", macro P[macro] D[macro]
4136 next
4137 } else {
4138 # Replace #undef with comments. This is necessary, for example,
4139 # in the case of _POSIX_SOURCE, which is predefined and required
4140 # on some systems where configure will not decide to define it.
4141 if (defundef == "undef") {
4142 print "/*", prefix defundef, macro, "*/"
4143 next
4147{ print }
4148_ACAWK
4149_ACEOF
4150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4151 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4152fi # test -n "$CONFIG_HEADERS"
4155eval set X " :H $CONFIG_HEADERS "
4156shift
4157for ac_tag
4159 case $ac_tag in
4160 :[FHLC]) ac_mode=$ac_tag; continue;;
4161 esac
4162 case $ac_mode$ac_tag in
4163 :[FHL]*:*);;
4164 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4165 :[FH]-) ac_tag=-:-;;
4166 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4167 esac
4168 ac_save_IFS=$IFS
4169 IFS=:
4170 set x $ac_tag
4171 IFS=$ac_save_IFS
4172 shift
4173 ac_file=$1
4174 shift
4176 case $ac_mode in
4177 :L) ac_source=$1;;
4178 :[FH])
4179 ac_file_inputs=
4180 for ac_f
4181 do
4182 case $ac_f in
4183 -) ac_f="$ac_tmp/stdin";;
4184 *) # Look for the file first in the build tree, then in the source tree
4185 # (if the path is not absolute). The absolute path cannot be DOS-style,
4186 # because $ac_f cannot contain `:'.
4187 test -f "$ac_f" ||
4188 case $ac_f in
4189 [\\/$]*) false;;
4190 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4191 esac ||
4192 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4193 esac
4194 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4195 as_fn_append ac_file_inputs " '$ac_f'"
4196 done
4198 # Let's still pretend it is `configure' which instantiates (i.e., don't
4199 # use $as_me), people would be surprised to read:
4200 # /* config.h. Generated by config.status. */
4201 configure_input='Generated from '`
4202 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4203 `' by configure.'
4204 if test x"$ac_file" != x-; then
4205 configure_input="$ac_file. $configure_input"
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4207printf "%s\n" "$as_me: creating $ac_file" >&6;}
4208 fi
4209 # Neutralize special characters interpreted by sed in replacement strings.
4210 case $configure_input in #(
4211 *\&* | *\|* | *\\* )
4212 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
4213 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4214 *) ac_sed_conf_input=$configure_input;;
4215 esac
4217 case $ac_tag in
4218 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4220 esac
4221 ;;
4222 esac
4224 ac_dir=`$as_dirname -- "$ac_file" ||
4225$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4226 X"$ac_file" : 'X\(//\)[^/]' \| \
4227 X"$ac_file" : 'X\(//\)$' \| \
4228 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4229printf "%s\n" X"$ac_file" |
4230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4231 s//\1/
4234 /^X\(\/\/\)[^/].*/{
4235 s//\1/
4238 /^X\(\/\/\)$/{
4239 s//\1/
4242 /^X\(\/\).*/{
4243 s//\1/
4246 s/.*/./; q'`
4247 as_dir="$ac_dir"; as_fn_mkdir_p
4248 ac_builddir=.
4250case "$ac_dir" in
4251.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4253 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
4254 # A ".." for each directory in $ac_dir_suffix.
4255 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4256 case $ac_top_builddir_sub in
4257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4259 esac ;;
4260esac
4261ac_abs_top_builddir=$ac_pwd
4262ac_abs_builddir=$ac_pwd$ac_dir_suffix
4263# for backward compatibility:
4264ac_top_builddir=$ac_top_build_prefix
4266case $srcdir in
4267 .) # We are building in place.
4268 ac_srcdir=.
4269 ac_top_srcdir=$ac_top_builddir_sub
4270 ac_abs_top_srcdir=$ac_pwd ;;
4271 [\\/]* | ?:[\\/]* ) # Absolute name.
4272 ac_srcdir=$srcdir$ac_dir_suffix;
4273 ac_top_srcdir=$srcdir
4274 ac_abs_top_srcdir=$srcdir ;;
4275 *) # Relative name.
4276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4277 ac_top_srcdir=$ac_top_build_prefix$srcdir
4278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4279esac
4280ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4283 case $ac_mode in
4285 :H)
4287 # CONFIG_HEADER
4289 if test x"$ac_file" != x-; then
4291 printf "%s\n" "/* $configure_input */" >&1 \
4292 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4293 } >"$ac_tmp/config.h" \
4294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4295 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4297printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
4298 else
4299 rm -f "$ac_file"
4300 mv "$ac_tmp/config.h" "$ac_file" \
4301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4302 fi
4303 else
4304 printf "%s\n" "/* $configure_input */" >&1 \
4305 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4306 || as_fn_error $? "could not create -" "$LINENO" 5
4307 fi
4308 ;;
4311 esac
4313done # for ac_tag
4316as_fn_exit 0
4317_ACEOF
4318ac_clean_files=$ac_clean_files_save
4320test $ac_write_fail = 0 ||
4321 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4324# configure is writing to config.log, and then calls config.status.
4325# config.status does its own redirection, appending to config.log.
4326# Unfortunately, on DOS this fails, as config.log is still kept open
4327# by configure, so config.status won't be able to write to it; its
4328# output is simply discarded. So we exec the FD to /dev/null,
4329# effectively closing config.log, so it can be properly (re)opened and
4330# appended to by config.status. When coming back to configure, we
4331# need to make the FD available again.
4332if test "$no_create" != yes; then
4333 ac_cs_success=:
4334 ac_config_status_args=
4335 test "$silent" = yes &&
4336 ac_config_status_args="$ac_config_status_args --quiet"
4337 exec 5>/dev/null
4338 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4339 exec 5>>config.log
4340 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4341 # would make configure fail if this is the last instruction.
4342 $ac_cs_success || as_fn_exit 1
4344if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4346printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}