on master help sign in
Bump the version to 0.8.0
commit4f629b8cb36bd03b480edc08b77c9a0187ce2206 authorHarendra Kumar <harendra@composewell.com> dateTue 22 Jun 2021, 13:35 (5 years ago) parent06acb19
8 files changed+1460−1376
Changelog.md+1−1 bin/mk-hscope.sh+2−2 bin/test.sh+4−2 configure+1445−1365 configure.ac+1−1 credits/CONTRIBUTORS.md+4−3 credits/COPYRIGHTS.md+1−1 streamly.cabal+2−1
Changelog.md+1−1
@@ -2,7 +2,7 @@
22
33<!-- See rendered changelog at https://streamly.composewell.com -->
44
5−## Unreleased
5+## 0.8.0
66
77See [API Changelog](docs/API-changelog.txt) for a complete list of signature
88changes and new APIs introduced.
bin/mk-hscope.sh+2−2
@@ -1,7 +1,7 @@
11#!/usr/bin/env bash
22
3−GHC_VERSION=8.8.3
4−STREAMLY_VERSION=0.7.2
3+GHC_VERSION=8.10.4
4+STREAMLY_VERSION=0.8.0
55
66case `uname` in
77 Darwin) SYSTEM=x86_64-osx;;
bin/test.sh+4−2
@@ -1,5 +1,7 @@
11#!/usr/bin/env bash
22
3+STREAMLY_VERSION=0.8.0
4+
35#------------------------------------------------------------------------------
46# Script
57#------------------------------------------------------------------------------
@@ -129,7 +131,7 @@ target_exe_extra_args () {
129131if test "$COVERAGE" -eq "1"
130132then
131133 # Used to determine the hpc tix dir
132− PACKAGE_FULL_NAME=streamly-0.7.2
134+ PACKAGE_FULL_NAME=streamly-$STREAMLY_VERSION
133135 case `uname` in
134136 Linux) SYSTEM=x86_64-linux ;;
135137 *) echo "Unsupported system"; exit 1 ;;
@@ -161,7 +163,7 @@ fi
161163# Run coverage reports
162164#-----------------------------------------------------------------------------
163165
164−PACKAGE_NAME=streamly-0.7.2
166+PACKAGE_NAME=streamly-$STREAMLY_VERSION
165167MIX_DIR=$BUILD_DIR/build/$SYSTEM/ghc-${GHC_VERSION}/$PACKAGE_NAME/hpc/vanilla/mix/$PACKAGE_NAME/
166168ALLTIX=$BUILD_DIR/hpc/all.tix
167169
configure+1445−1365
@@ -1,11 +1,12 @@
11#! /bin/sh
22# Guess values for system-dependent variables and create Makefiles.
3−# Generated by GNU Autoconf 2.69 for streamly 0.7.2.
3+# Generated by GNU Autoconf 2.71 for streamly 0.8.0.
44#
55# Report bugs to <streamly@composewell.com>.
66#
77#
8−# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8+# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9+# Inc.
910#
1011#
1112# This configure script is free software; the Free Software Foundation
@@ -16,14 +17,16 @@
1617
1718# Be more Bourne compatible
1819DUALCASE=1; export DUALCASE # for MKS sh
19−if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20+as_nop=:
21+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22+then :
2023 emulate sh
2124 NULLCMD=:
2225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2326 # is contrary to our usage. Disable this feature.
2427 alias -g '${1+"$@"}'='"$@"'
2528 setopt NO_GLOB_SUBST
26−else
29+else $as_nop
2730 case `(set -o) 2>/dev/null` in #(
2831 *posix*) :
2932 set -o posix ;; #(
@@ -33,46 +36,46 @@ esac
3336fi
3437
3538
39+
40+# Reset variables that may have inherited troublesome values from
41+# the environment.
42+
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.
3647as_nl='
3748'
3849export as_nl
39−# Printing a long string crashes Solaris 7 /usr/bin/printf.
40−as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41−as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42−as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43−# Prefer a ksh shell builtin over an external printf program on Solaris,
44−# but without wasting forks for bash or zsh.
45−if test -z "$BASH_VERSION$ZSH_VERSION" \
46− && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47− as_echo='print -r --'
48− as_echo_n='print -rn --'
49−elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50− as_echo='printf %s\n'
51− as_echo_n='printf %s'
52−else
53− if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54− as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55− as_echo_n='/usr/ucb/echo -n'
56− else
57− as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58− as_echo_n_body='eval
59− arg=$1;
60− case $arg in #(
61− *"$as_nl"*)
62− expr "X$arg" : "X\\(.*\\)$as_nl";
63− arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64− esac;
65− expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66− '
67− export as_echo_n_body
68− as_echo_n='sh -c $as_echo_n_body as_echo'
69− fi
70− export as_echo_body
71− as_echo='sh -c $as_echo_body as_echo'
72−fi
50+IFS=" "" $as_nl"
51+
52+PS1='$ '
53+PS2='> '
54+PS4='+ '
55+
56+# Ensure predictable behavior from utilities with locale-dependent output.
57+LC_ALL=C
58+export LC_ALL
59+LANGUAGE=C
60+export LANGUAGE
61+
62+# We cannot yet rely on "unset" to work, but we need these variables
63+# to be unset--not just set to an empty or harmless value--now, to
64+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65+# also avoids known problems related to "unset" and subshell syntax
66+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68+do eval test \${$as_var+y} \
69+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70+done
71+
72+# Ensure that fds 0, 1, and 2 are open.
73+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7376
7477# The user is always right.
75−if test "${PATH_SEPARATOR+set}" != set; then
78+if ${PATH_SEPARATOR+false} :; then
7679 PATH_SEPARATOR=:
7780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7881 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
@@ -81,13 +84,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
8184fi
8285
8386
84−# IFS
85−# We need space, tab and new line, in precisely that order. Quoting is
86−# there to prevent editors from complaining about space-tab.
87−# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88−# splitting by setting IFS to empty value.)
89−IFS=" "" $as_nl"
90−
9187# Find who we are. Look in the path if we contain no directory separator.
9288as_myself=
9389case $0 in #((
@@ -96,8 +92,12 @@ case $0 in #((
9692for as_dir in $PATH
9793do
9894 IFS=$as_save_IFS
99− test -z "$as_dir" && as_dir=.
100− test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
101101 done
102102IFS=$as_save_IFS
103103
@@ -109,30 +109,10 @@ if test "x$as_myself" = x; then
109109 as_myself=$0
110110fi
111111if test ! -f "$as_myself"; then
112− $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113113 exit 1
114114fi
115115
116−# Unset variables that we do not need and which cause bugs (e.g. in
117−# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118−# suppresses any "Segmentation fault" message there. '((' could
119−# trigger a bug in pdksh 5.2.14.
120−for as_var in BASH_ENV ENV MAIL MAILPATH
121−do eval test x\${$as_var+set} = xset \
122− && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123−done
124−PS1='$ '
125−PS2='> '
126−PS4='+ '
127−
128−# NLS nuisances.
129−LC_ALL=C
130−export LC_ALL
131−LANGUAGE=C
132−export LANGUAGE
133−
134−# CDPATH.
135−(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136116
137117# Use a proper internal environment variable to ensure we don't fall
138118 # into an infinite loop, continuously re-executing ourselves.
@@ -154,20 +134,22 @@ esac
154134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155135# Admittedly, this is quite paranoid, since all the known shells bail
156136# out after a failed `exec'.
157−$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158−as_fn_exit 255
137+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138+exit 255
159139 fi
160140 # We don't want this to propagate to other subprocesses.
161141 { _as_can_reexec=; unset _as_can_reexec;}
162142if test "x$CONFIG_SHELL" = x; then
163− as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143+ as_bourne_compatible="as_nop=:
144+if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145+then :
164146 emulate sh
165147 NULLCMD=:
166148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167149 # is contrary to our usage. Disable this feature.
168150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169151 setopt NO_GLOB_SUBST
170−else
152+else \$as_nop
171153 case \`(set -o) 2>/dev/null\` in #(
172154 *posix*) :
173155 set -o posix ;; #(
@@ -187,42 +169,52 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190−if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172+if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173+then :
191174
192−else
175+else \$as_nop
193176 exitcode=1; echo positional parameters were not saved.
194177fi
195178test x\$exitcode = x0 || exit 1
179+blah=\$(echo \$(echo blah))
180+test x\"\$blah\" = xblah || exit 1
196181test -x / || exit 1"
197182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200− test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201−test \$(( 1 + 1 )) = 2 || exit 1"
202− if (eval "$as_required") 2>/dev/null; then :
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
187+then :
203188 as_have_required=yes
204−else
189+else $as_nop
205190 as_have_required=no
206191fi
207− if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193+then :
208194
209−else
195+else $as_nop
210196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211197as_found=false
212198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213199do
214200 IFS=$as_save_IFS
215− test -z "$as_dir" && as_dir=.
201+ case $as_dir in #(((
202+ '') as_dir=./ ;;
203+ */) ;;
204+ *) as_dir=$as_dir/ ;;
205+ esac
216206 as_found=:
217207 case $as_dir in #(
218208 /*)
219209 for as_base in sh bash ksh sh5; do
220210 # Try only shells that exist, to save several forks.
221− as_shell=$as_dir/$as_base
211+ as_shell=$as_dir$as_base
222212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223− { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
213+ as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214+then :
224215 CONFIG_SHELL=$as_shell as_have_required=yes
225− if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
216+ if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217+then :
226218 break 2
227219fi
228220fi
@@ -230,14 +222,21 @@ fi
230222 esac
231223 as_found=false
232224done
233−$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234− { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235− CONFIG_SHELL=$SHELL as_have_required=yes
236−fi; }
237225IFS=$as_save_IFS
226+if $as_found
227+then :
228+
229+else $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
232+then :
233+ CONFIG_SHELL=$SHELL as_have_required=yes
234+fi
235+fi
238236
239237
240− if test "x$CONFIG_SHELL" != x; then :
238+ if test "x$CONFIG_SHELL" != x
239+then :
241240 export CONFIG_SHELL
242241 # We cannot yet assume a decent shell, so we have to provide a
243242# neutralization value for shells without unset; and this also
@@ -255,18 +254,19 @@ esac
255254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256255# Admittedly, this is quite paranoid, since all the known shells bail
257256# out after a failed `exec'.
258−$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259258exit 255
260259fi
261260
262− if test x$as_have_required = xno; then :
263− $as_echo "$0: This script requires a shell more modern than all"
264− $as_echo "$0: the shells that I found on your system."
265− if test x${ZSH_VERSION+set} = xset ; then
266− $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267− $as_echo "$0: be upgraded to zsh 4.3.4 or later."
261+ if test x$as_have_required = xno
262+then :
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."
268268 else
269− $as_echo "$0: Please tell bug-autoconf@gnu.org and
269+ printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270270$0: streamly@composewell.com about your system, including
271271$0: any error possibly output before this message. Then
272272$0: install a modern shell, or manually run the script
@@ -294,6 +294,7 @@ as_fn_unset ()
294294}
295295as_unset=as_fn_unset
296296
297+
297298# as_fn_set_status STATUS
298299# -----------------------
299300# Set $? to STATUS, without forking.
@@ -311,6 +312,14 @@ as_fn_exit ()
311312 as_fn_set_status $1
312313 exit $1
313314} # as_fn_exit
315+# as_fn_nop
316+# ---------
317+# Do nothing but, unlike ":", preserve the value of $?.
318+as_fn_nop ()
319+{
320+ return $?
321+}
322+as_nop=as_fn_nop
314323
315324# as_fn_mkdir_p
316325# -------------
@@ -325,7 +334,7 @@ as_fn_mkdir_p ()
325334 as_dirs=
326335 while :; do
327336 case $as_dir in #(
328− *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329338 *) as_qdir=$as_dir;;
330339 esac
331340 as_dirs="'$as_qdir' $as_dirs"
@@ -334,7 +343,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334343 X"$as_dir" : 'X\(//\)[^/]' \| \
335344 X"$as_dir" : 'X\(//\)$' \| \
336345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337−$as_echo X"$as_dir" |
346+printf "%s\n" X"$as_dir" |
338347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339348 s//\1/
340349 q
@@ -373,12 +382,13 @@ as_fn_executable_p ()
373382# advantage of any shell optimizations that allow amortized linear growth over
374383# repeated appends, instead of the typical quadratic growth present in naive
375384# implementations.
376−if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386+then :
377387 eval 'as_fn_append ()
378388 {
379389 eval $1+=\$2
380390 }'
381−else
391+else $as_nop
382392 as_fn_append ()
383393 {
384394 eval $1=\$$1\$2
@@ -390,18 +400,27 @@ fi # as_fn_append
390400# Perform arithmetic evaluation on the ARGs, and store the result in the
391401# global $as_val. Take advantage of shells that can avoid forks. The arguments
392402# must be portable across $(()) and expr.
393−if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404+then :
394405 eval 'as_fn_arith ()
395406 {
396407 as_val=$(( $* ))
397408 }'
398−else
409+else $as_nop
399410 as_fn_arith ()
400411 {
401412 as_val=`expr "$@" || test $? -eq 1`
402413 }
403414fi # as_fn_arith
404415
416+# as_fn_nop
417+# ---------
418+# Do nothing but, unlike ":", preserve the value of $?.
419+as_fn_nop ()
420+{
421+ return $?
422+}
423+as_nop=as_fn_nop
405424
406425# as_fn_error STATUS ERROR [LINENO LOG_FD]
407426# ----------------------------------------
@@ -413,9 +432,9 @@ as_fn_error ()
413432 as_status=$1; test $as_status -eq 0 && as_status=1
414433 if test "$4"; then
415434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416− $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417436 fi
418− $as_echo "$as_me: error: $2" >&2
437+ printf "%s\n" "$as_me: error: $2" >&2
419438 as_fn_exit $as_status
420439} # as_fn_error
421440
@@ -442,7 +461,7 @@ as_me=`$as_basename -- "$0" ||
442461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443462 X"$0" : 'X\(//\)$' \| \
444463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445−$as_echo X/"$0" |
464+printf "%s\n" X/"$0" |
446465 sed '/^.*\/\([^/][^/]*\)\/*$/{
447466 s//\1/
448467 q
@@ -486,7 +505,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
486505 s/-\n.*//
487506 ' >$as_me.lineno &&
488507 chmod +x "$as_me.lineno" ||
489− { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508+ { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490509
491510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492511 # already done that, so ensure we don't try to do so again and fall
@@ -500,6 +519,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
500519 exit
501520}
502521
522+
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.
503526ECHO_C= ECHO_N= ECHO_T=
504527case `echo -n x` in #(((((
505528-n*)
@@ -513,6 +536,13 @@ case `echo -n x` in #(((((
513536 ECHO_N='-n';;
514537esac
515538
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.
542+as_echo='printf %s\n'
543+as_echo_n='printf %s'
544+
545+
516546rm -f conf$$ conf$$.exe conf$$.file
517547if test -d conf$$.dir; then
518548 rm -f conf$$.dir/conf$$.file
@@ -580,52 +610,45 @@ MAKEFLAGS=
580610# Identity of this package.
581611PACKAGE_NAME='streamly'
582612PACKAGE_TARNAME='streamly'
583−PACKAGE_VERSION='0.7.2'
584−PACKAGE_STRING='streamly 0.7.2'
613+PACKAGE_VERSION='0.8.0'
614+PACKAGE_STRING='streamly 0.8.0'
585615PACKAGE_BUGREPORT='streamly@composewell.com'
586−PACKAGE_URL=''
616+PACKAGE_URL='https://streamly.composewell.com'
587617
588618# Factoring default headers for most tests.
589619ac_includes_default="\
590−#include <stdio.h>
591−#ifdef HAVE_SYS_TYPES_H
592−# include <sys/types.h>
593−#endif
594−#ifdef HAVE_SYS_STAT_H
595−# include <sys/stat.h>
620+#include <stddef.h>
621+#ifdef HAVE_STDIO_H
622+# include <stdio.h>
596623#endif
597−#ifdef STDC_HEADERS
624+#ifdef HAVE_STDLIB_H
598625# include <stdlib.h>
599−# include <stddef.h>
600−#else
601−# ifdef HAVE_STDLIB_H
602−# include <stdlib.h>
603−# endif
604626#endif
605627#ifdef HAVE_STRING_H
606−# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607−# include <memory.h>
608−# endif
609628# include <string.h>
610629#endif
611−#ifdef HAVE_STRINGS_H
612−# include <strings.h>
613−#endif
614630#ifdef HAVE_INTTYPES_H
615631# include <inttypes.h>
616632#endif
617633#ifdef HAVE_STDINT_H
618634# include <stdint.h>
619635#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
620645#ifdef HAVE_UNISTD_H
621646# include <unistd.h>
622647#endif"
623648
649+ac_header_c_list=
624650ac_subst_vars='LTLIBOBJS
625651LIBOBJS
626−EGREP
627−GREP
628−CPP
629652OBJEXT
630653EXEEXT
631654ac_ct_CC
@@ -684,8 +707,7 @@ CC
684707CFLAGS
685708LDFLAGS
686709LIBS
687−CPPFLAGS
688−CPP'
710+CPPFLAGS'
689711
690712
691713# Initialize some variables set by options.
@@ -754,8 +776,6 @@ do
754776 *) ac_optarg=yes ;;
755777 esac
756778
757− # Accept the important Cygnus configure options, so we can diagnose typos.
758−
759779 case $ac_dashdash$ac_option in
760780 --)
761781 ac_dashdash=yes ;;
@@ -796,9 +816,9 @@ do
796816 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
797817 # Reject names that are not valid shell variable names.
798818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799− as_fn_error $? "invalid feature name: $ac_useropt"
819+ as_fn_error $? "invalid feature name: \`$ac_useropt'"
800820 ac_useropt_orig=$ac_useropt
801− ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
802822 case $ac_user_opts in
803823 *"
804824"enable_$ac_useropt"
@@ -822,9 +842,9 @@ do
822842 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
823843 # Reject names that are not valid shell variable names.
824844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825− as_fn_error $? "invalid feature name: $ac_useropt"
845+ as_fn_error $? "invalid feature name: \`$ac_useropt'"
826846 ac_useropt_orig=$ac_useropt
827− ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
828848 case $ac_user_opts in
829849 *"
830850"enable_$ac_useropt"
@@ -1035,9 +1055,9 @@ do
10351055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10361056 # Reject names that are not valid shell variable names.
10371057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038− as_fn_error $? "invalid package name: $ac_useropt"
1058+ as_fn_error $? "invalid package name: \`$ac_useropt'"
10391059 ac_useropt_orig=$ac_useropt
1040− ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
10411061 case $ac_user_opts in
10421062 *"
10431063"with_$ac_useropt"
@@ -1051,9 +1071,9 @@ do
10511071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10521072 # Reject names that are not valid shell variable names.
10531073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054− as_fn_error $? "invalid package name: $ac_useropt"
1074+ as_fn_error $? "invalid package name: \`$ac_useropt'"
10551075 ac_useropt_orig=$ac_useropt
1056− ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
10571077 case $ac_user_opts in
10581078 *"
10591079"with_$ac_useropt"
@@ -1097,9 +1117,9 @@ Try \`$0 --help' for more information"
10971117
10981118 *)
10991119 # FIXME: should be removed in autoconf 3.0.
1100− $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120+ printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
11011121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102− $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122+ printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
11031123 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11041124 ;;
11051125
@@ -1115,7 +1135,7 @@ if test -n "$ac_unrecognized_opts"; then
11151135 case $enable_option_checking in
11161136 no) ;;
11171137 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1118− *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1138+ *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11191139 esac
11201140fi
11211141
@@ -1179,7 +1199,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11791199 X"$as_myself" : 'X\(//\)[^/]' \| \
11801200 X"$as_myself" : 'X\(//\)$' \| \
11811201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1182−$as_echo X"$as_myself" |
1202+printf "%s\n" X"$as_myself" |
11831203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11841204 s//\1/
11851205 q
@@ -1236,7 +1256,7 @@ if test "$ac_init_help" = "long"; then
12361256 # Omit some internal or obsolete options to make the list less imposing.
12371257 # This message is too long to be a string in the A/UX 3.1 sh.
12381258 cat <<_ACEOF
1239−\`configure' configures streamly 0.7.2 to adapt to many kinds of systems.
1259+\`configure' configures streamly 0.8.0 to adapt to many kinds of systems.
12401260
12411261Usage: $0 [OPTION]... [VAR=VALUE]...
12421262
@@ -1298,7 +1318,7 @@ fi
12981318
12991319if test -n "$ac_init_help"; then
13001320 case $ac_init_help in
1301− short | recursive ) echo "Configuration of streamly 0.7.2:";;
1321+ short | recursive ) echo "Configuration of streamly 0.8.0:";;
13021322 esac
13031323 cat <<\_ACEOF
13041324
@@ -1315,12 +1335,12 @@ Some influential environment variables:
13151335 LIBS libraries to pass to the linker, e.g. -l<library>
13161336 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13171337 you have headers in a nonstandard directory <include dir>
1318− CPP C preprocessor
13191338
13201339Use these variables to override the choices made by `configure' or to help
13211340it to find libraries and programs with nonstandard names/locations.
13221341
13231342Report bugs to <streamly@composewell.com>.
1343+streamly home page: <https://streamly.composewell.com>.
13241344_ACEOF
13251345ac_status=$?
13261346fi
@@ -1336,9 +1356,9 @@ if test "$ac_init_help" = "recursive"; then
13361356case "$ac_dir" in
13371357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13381358*)
1339− ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1359+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13401360 # A ".." for each directory in $ac_dir_suffix.
1341− ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1361+ ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13421362 case $ac_top_builddir_sub in
13431363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13441364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
@@ -1366,7 +1386,8 @@ esac
13661386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13671387
13681388 cd "$ac_dir" || { ac_status=$?; continue; }
1369− # Check for guested configure.
1389+ # Check for configure.gnu first; this name is used for a wrapper for
1390+ # Metaconfig's "Configure" on case-insensitive file systems.
13701391 if test -f "$ac_srcdir/configure.gnu"; then
13711392 echo &&
13721393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
@@ -1374,7 +1395,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13741395 echo &&
13751396 $SHELL "$ac_srcdir/configure" --help=recursive
13761397 else
1377− $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1398+ printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
13781399 fi || ac_status=$?
13791400 cd "$ac_pwd" || { ac_status=$?; break; }
13801401 done
@@ -1383,10 +1404,10 @@ fi
13831404test -n "$ac_init_help" && exit $ac_status
13841405if $ac_init_version; then
13851406 cat <<\_ACEOF
1386−streamly configure 0.7.2
1387−generated by GNU Autoconf 2.69
1407+streamly configure 0.8.0
1408+generated by GNU Autoconf 2.71
13881409
1389−Copyright (C) 2012 Free Software Foundation, Inc.
1410+Copyright (C) 2021 Free Software Foundation, Inc.
13901411This configure script is free software; the Free Software Foundation
13911412gives unlimited permission to copy, distribute and modify it.
13921413_ACEOF
@@ -1403,14 +1424,14 @@ fi
14031424ac_fn_c_try_compile ()
14041425{
14051426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1406− rm -f conftest.$ac_objext
1427+ rm -f conftest.$ac_objext conftest.beam
14071428 if { { ac_try="$ac_compile"
14081429case "(($ac_try" in
14091430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101431 *) ac_try_echo=$ac_try;;
14111432esac
14121433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1413−$as_echo "$ac_try_echo"; } >&5
1434+printf "%s\n" "$ac_try_echo"; } >&5
14141435 (eval "$ac_compile") 2>conftest.err
14151436 ac_status=$?
14161437 if test -s conftest.err; then
@@ -1418,14 +1439,15 @@ $as_echo "$ac_try_echo"; } >&5
14181439 cat conftest.er1 >&5
14191440 mv -f conftest.er1 conftest.err
14201441 fi
1421− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14221443 test $ac_status = 0; } && {
14231444 test -z "$ac_c_werror_flag" ||
14241445 test ! -s conftest.err
1425− } && test -s conftest.$ac_objext; then :
1446+ } && test -s conftest.$ac_objext
1447+then :
14261448 ac_retval=0
1427−else
1428− $as_echo "$as_me: failed program was:" >&5
1449+else $as_nop
1450+ printf "%s\n" "$as_me: failed program was:" >&5
14291451sed 's/^/| /' conftest.$ac_ext >&5
14301452
14311453 ac_retval=1
@@ -1435,25 +1457,28 @@ fi
14351457
14361458} # ac_fn_c_try_compile
14371459
1438−# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1439−# ---------------------------------------------
1460+# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1461+# ------------------------------------------------------------------
14401462# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1441−# accordingly.
1442−ac_fn_c_check_decl ()
1463+# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1464+ac_fn_check_decl ()
14431465{
14441466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14451467 as_decl_name=`echo $2|sed 's/ *(.*//'`
1468+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1469+printf %s "checking whether $as_decl_name is declared... " >&6; }
1470+if eval test \${$3+y}
1471+then :
1472+ printf %s "(cached) " >&6
1473+else $as_nop
14461474 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1447− { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1448−$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1449−if eval \${$3+:} false; then :
1450− $as_echo_n "(cached) " >&6
1451−else
1475+ eval ac_save_FLAGS=\$$6
1476+ as_fn_append $6 " $5"
14521477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531478/* end confdefs.h. */
14541479$4
14551480int
1456−main ()
1481+main (void)
14571482{
14581483#ifndef $as_decl_name
14591484#ifdef __cplusplus
@@ -1467,189 +1492,22 @@ main ()
14671492 return 0;
14681493}
14691494_ACEOF
1470−if ac_fn_c_try_compile "$LINENO"; then :
1495+if ac_fn_c_try_compile "$LINENO"
1496+then :
14711497 eval "$3=yes"
1472−else
1498+else $as_nop
14731499 eval "$3=no"
14741500fi
1475−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1476−fi
1477−eval ac_res=\$$3
1478− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1479−$as_echo "$ac_res" >&6; }
1480− eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481−
1482−} # ac_fn_c_check_decl
1483−
1484−# ac_fn_c_try_cpp LINENO
1485−# ----------------------
1486−# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1487−ac_fn_c_try_cpp ()
1488−{
1489− as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490− if { { ac_try="$ac_cpp conftest.$ac_ext"
1491−case "(($ac_try" in
1492− *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493− *) ac_try_echo=$ac_try;;
1494−esac
1495−eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496−$as_echo "$ac_try_echo"; } >&5
1497− (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1498− ac_status=$?
1499− if test -s conftest.err; then
1500− grep -v '^ *+' conftest.err >conftest.er1
1501− cat conftest.er1 >&5
1502− mv -f conftest.er1 conftest.err
1503− fi
1504− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505− test $ac_status = 0; } > conftest.i && {
1506− test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1507− test ! -s conftest.err
1508− }; then :
1509− ac_retval=0
1510−else
1511− $as_echo "$as_me: failed program was:" >&5
1512−sed 's/^/| /' conftest.$ac_ext >&5
1513−
1514− ac_retval=1
1515−fi
1516− eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517− as_fn_set_status $ac_retval
1518−
1519−} # ac_fn_c_try_cpp
1520−
1521−# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1522−# -------------------------------------------------------
1523−# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1524−# the include files in INCLUDES and setting the cache variable VAR
1525−# accordingly.
1526−ac_fn_c_check_header_mongrel ()
1527−{
1528− as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529− if eval \${$3+:} false; then :
1530− { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1531−$as_echo_n "checking for $2... " >&6; }
1532−if eval \${$3+:} false; then :
1533− $as_echo_n "(cached) " >&6
1534−fi
1535−eval ac_res=\$$3
1536− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1537−$as_echo "$ac_res" >&6; }
1538−else
1539− # Is the header compilable?
1540−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1541−$as_echo_n "checking $2 usability... " >&6; }
1542−cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1543−/* end confdefs.h. */
1544−$4
1545−#include <$2>
1546−_ACEOF
1547−if ac_fn_c_try_compile "$LINENO"; then :
1548− ac_header_compiler=yes
1549−else
1550− ac_header_compiler=no
1551−fi
1552−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1553−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1554−$as_echo "$ac_header_compiler" >&6; }
1501+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1502+ eval $6=\$ac_save_FLAGS
15551503
1556−# Is the header present?
1557−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1558−$as_echo_n "checking $2 presence... " >&6; }
1559−cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1560−/* end confdefs.h. */
1561−#include <$2>
1562−_ACEOF
1563−if ac_fn_c_try_cpp "$LINENO"; then :
1564− ac_header_preproc=yes
1565−else
1566− ac_header_preproc=no
1567−fi
1568−rm -f conftest.err conftest.i conftest.$ac_ext
1569−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1570−$as_echo "$ac_header_preproc" >&6; }
1571−
1572−# So? What about this header?
1573−case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1574− yes:no: )
1575− { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1576−$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1577− { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1578−$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1579− ;;
1580− no:yes:* )
1581− { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1582−$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1583− { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1584−$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1585− { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1586−$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1587− { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1588−$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1589− { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1590−$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1591−( $as_echo "## --------------------------------------- ##
1592−## Report this to streamly@composewell.com ##
1593−## --------------------------------------- ##"
1594− ) | sed "s/^/$as_me: WARNING: /" >&2
1595− ;;
1596−esac
1597− { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598−$as_echo_n "checking for $2... " >&6; }
1599−if eval \${$3+:} false; then :
1600− $as_echo_n "(cached) " >&6
1601−else
1602− eval "$3=\$ac_header_compiler"
16031504fi
16041505eval ac_res=\$$3
1605− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606−$as_echo "$ac_res" >&6; }
1607−fi
1608− eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609−
1610−} # ac_fn_c_check_header_mongrel
1611−
1612−# ac_fn_c_try_run LINENO
1613−# ----------------------
1614−# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615−# that executables *can* be run.
1616−ac_fn_c_try_run ()
1617−{
1618− as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619− if { { ac_try="$ac_link"
1620−case "(($ac_try" in
1621− *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622− *) ac_try_echo=$ac_try;;
1623−esac
1624−eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625−$as_echo "$ac_try_echo"; } >&5
1626− (eval "$ac_link") 2>&5
1627− ac_status=$?
1628− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629− test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630− { { case "(($ac_try" in
1631− *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632− *) ac_try_echo=$ac_try;;
1633−esac
1634−eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635−$as_echo "$ac_try_echo"; } >&5
1636− (eval "$ac_try") 2>&5
1637− ac_status=$?
1638− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639− test $ac_status = 0; }; }; then :
1640− ac_retval=0
1641−else
1642− $as_echo "$as_me: program exited with status $ac_status" >&5
1643− $as_echo "$as_me: failed program was:" >&5
1644−sed 's/^/| /' conftest.$ac_ext >&5
1645−
1646− ac_retval=$ac_status
1647−fi
1648− rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1506+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1507+printf "%s\n" "$ac_res" >&6; }
16491508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650− as_fn_set_status $ac_retval
16511509
1652−} # ac_fn_c_try_run
1510+} # ac_fn_check_decl
16531511
16541512# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16551513# -------------------------------------------------------
@@ -1658,26 +1516,28 @@ fi
16581516ac_fn_c_check_header_compile ()
16591517{
16601518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661− { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662−$as_echo_n "checking for $2... " >&6; }
1663−if eval \${$3+:} false; then :
1664− $as_echo_n "(cached) " >&6
1665−else
1519+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1520+printf %s "checking for $2... " >&6; }
1521+if eval test \${$3+y}
1522+then :
1523+ printf %s "(cached) " >&6
1524+else $as_nop
16661525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671526/* end confdefs.h. */
16681527$4
16691528#include <$2>
16701529_ACEOF
1671−if ac_fn_c_try_compile "$LINENO"; then :
1530+if ac_fn_c_try_compile "$LINENO"
1531+then :
16721532 eval "$3=yes"
1673−else
1533+else $as_nop
16741534 eval "$3=no"
16751535fi
1676−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1536+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16771537fi
16781538eval ac_res=\$$3
1679− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680−$as_echo "$ac_res" >&6; }
1539+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1540+printf "%s\n" "$ac_res" >&6; }
16811541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16821542
16831543} # ac_fn_c_check_header_compile
@@ -1688,14 +1548,14 @@ $as_echo "$ac_res" >&6; }
16881548ac_fn_c_try_link ()
16891549{
16901550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691− rm -f conftest.$ac_objext conftest$ac_exeext
1551+ rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16921552 if { { ac_try="$ac_link"
16931553case "(($ac_try" in
16941554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951555 *) ac_try_echo=$ac_try;;
16961556esac
16971557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698−$as_echo "$ac_try_echo"; } >&5
1558+printf "%s\n" "$ac_try_echo"; } >&5
16991559 (eval "$ac_link") 2>conftest.err
17001560 ac_status=$?
17011561 if test -s conftest.err; then
@@ -1703,17 +1563,18 @@ $as_echo "$ac_try_echo"; } >&5
17031563 cat conftest.er1 >&5
17041564 mv -f conftest.er1 conftest.err
17051565 fi
1706− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17071567 test $ac_status = 0; } && {
17081568 test -z "$ac_c_werror_flag" ||
17091569 test ! -s conftest.err
17101570 } && test -s conftest$ac_exeext && {
17111571 test "$cross_compiling" = yes ||
17121572 test -x conftest$ac_exeext
1713− }; then :
1573+ }
1574+then :
17141575 ac_retval=0
1715−else
1716− $as_echo "$as_me: failed program was:" >&5
1576+else $as_nop
1577+ printf "%s\n" "$as_me: failed program was:" >&5
17171578sed 's/^/| /' conftest.$ac_ext >&5
17181579
17191580 ac_retval=1
@@ -1734,11 +1595,12 @@ fi
17341595ac_fn_c_check_func ()
17351596{
17361597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737− { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738−$as_echo_n "checking for $2... " >&6; }
1739−if eval \${$3+:} false; then :
1740− $as_echo_n "(cached) " >&6
1741−else
1598+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599+printf %s "checking for $2... " >&6; }
1600+if eval test \${$3+y}
1601+then :
1602+ printf %s "(cached) " >&6
1603+else $as_nop
17421604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431605/* end confdefs.h. */
17441606/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
@@ -1746,16 +1608,9 @@ else
17461608#define $2 innocuous_$2
17471609
17481610/* System header to define __stub macros and hopefully few prototypes,
1749− which can conflict with char $2 (); below.
1750− Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1751− <limits.h> exists even on freestanding compilers. */
1752−
1753−#ifdef __STDC__
1754−# include <limits.h>
1755−#else
1756−# include <assert.h>
1757−#endif
1611+ which can conflict with char $2 (); below. */
17581612
1613+#include <limits.h>
17591614#undef $2
17601615
17611616/* Override any GCC internal prototype to avoid an error.
@@ -1773,35 +1628,56 @@ choke me
17731628#endif
17741629
17751630int
1776−main ()
1631+main (void)
17771632{
17781633return $2 ();
17791634 ;
17801635 return 0;
17811636}
17821637_ACEOF
1783−if ac_fn_c_try_link "$LINENO"; then :
1638+if ac_fn_c_try_link "$LINENO"
1639+then :
17841640 eval "$3=yes"
1785−else
1641+else $as_nop
17861642 eval "$3=no"
17871643fi
1788−rm -f core conftest.err conftest.$ac_objext \
1644+rm -f core conftest.err conftest.$ac_objext conftest.beam \
17891645 conftest$ac_exeext conftest.$ac_ext
17901646fi
17911647eval ac_res=\$$3
1792− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793−$as_echo "$ac_res" >&6; }
1648+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649+printf "%s\n" "$ac_res" >&6; }
17941650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17951651
17961652} # ac_fn_c_check_func
1653+ac_configure_args_raw=
1654+for ac_arg
1655+do
1656+ case $ac_arg in
1657+ *\'*)
1658+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659+ esac
1660+ as_fn_append ac_configure_args_raw " '$ac_arg'"
1661+done
1662+
1663+case $ac_configure_args_raw in
1664+ *$as_nl*)
1665+ ac_safe_unquote= ;;
1666+ *)
1667+ ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1668+ ac_unsafe_a="$ac_unsafe_z#~"
1669+ ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1670+ ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1671+esac
1672+
17971673cat >config.log <<_ACEOF
17981674This file contains any messages produced by compilers while
17991675running configure, to aid debugging if configure makes a mistake.
18001676
1801−It was created by streamly $as_me 0.7.2, which was
1802−generated by GNU Autoconf 2.69. Invocation command line was
1677+It was created by streamly $as_me 0.8.0, which was
1678+generated by GNU Autoconf 2.71. Invocation command line was
18031679
1804− $ $0 $@
1680+ $ $0$ac_configure_args_raw
18051681
18061682_ACEOF
18071683exec 5>>config.log
@@ -1834,8 +1710,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18341710for as_dir in $PATH
18351711do
18361712 IFS=$as_save_IFS
1837− test -z "$as_dir" && as_dir=.
1838− $as_echo "PATH: $as_dir"
1713+ case $as_dir in #(((
1714+ '') as_dir=./ ;;
1715+ */) ;;
1716+ *) as_dir=$as_dir/ ;;
1717+ esac
1718+ printf "%s\n" "PATH: $as_dir"
18391719 done
18401720IFS=$as_save_IFS
18411721
@@ -1870,7 +1750,7 @@ do
18701750 | -silent | --silent | --silen | --sile | --sil)
18711751 continue ;;
18721752 *\'*)
1873− ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18741754 esac
18751755 case $ac_pass in
18761756 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
@@ -1905,11 +1785,13 @@ done
19051785# WARNING: Use '\'' to represent an apostrophe within the trap.
19061786# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
19071787trap 'exit_status=$?
1788+ # Sanitize IFS.
1789+ IFS=" "" $as_nl"
19081790 # Save into config.log some information that might help in debugging.
19091791 {
19101792 echo
19111793
1912− $as_echo "## ---------------- ##
1794+ printf "%s\n" "## ---------------- ##
19131795## Cache variables. ##
19141796## ---------------- ##"
19151797 echo
@@ -1920,8 +1802,8 @@ trap 'exit_status=$?
19201802 case $ac_val in #(
19211803 *${as_nl}*)
19221804 case $ac_var in #(
1923− *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924−$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1805+ *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1806+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19251807 esac
19261808 case $ac_var in #(
19271809 _ | IFS | as_nl) ;; #(
@@ -1945,7 +1827,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19451827)
19461828 echo
19471829
1948− $as_echo "## ----------------- ##
1830+ printf "%s\n" "## ----------------- ##
19491831## Output variables. ##
19501832## ----------------- ##"
19511833 echo
@@ -1953,14 +1835,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19531835 do
19541836 eval ac_val=\$$ac_var
19551837 case $ac_val in
1956− *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838+ *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19571839 esac
1958− $as_echo "$ac_var='\''$ac_val'\''"
1840+ printf "%s\n" "$ac_var='\''$ac_val'\''"
19591841 done | sort
19601842 echo
19611843
19621844 if test -n "$ac_subst_files"; then
1963− $as_echo "## ------------------- ##
1845+ printf "%s\n" "## ------------------- ##
19641846## File substitutions. ##
19651847## ------------------- ##"
19661848 echo
@@ -1968,15 +1850,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19681850 do
19691851 eval ac_val=\$$ac_var
19701852 case $ac_val in
1971− *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853+ *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19721854 esac
1973− $as_echo "$ac_var='\''$ac_val'\''"
1855+ printf "%s\n" "$ac_var='\''$ac_val'\''"
19741856 done | sort
19751857 echo
19761858 fi
19771859
19781860 if test -s confdefs.h; then
1979− $as_echo "## ----------- ##
1861+ printf "%s\n" "## ----------- ##
19801862## confdefs.h. ##
19811863## ----------- ##"
19821864 echo
@@ -1984,8 +1866,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19841866 echo
19851867 fi
19861868 test "$ac_signal" != 0 &&
1987− $as_echo "$as_me: caught signal $ac_signal"
1988− $as_echo "$as_me: exit $exit_status"
1869+ printf "%s\n" "$as_me: caught signal $ac_signal"
1870+ printf "%s\n" "$as_me: exit $exit_status"
19891871 } >&5
19901872 rm -f core *.core core.conftest.* &&
19911873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
@@ -1999,63 +1881,48 @@ ac_signal=0
19991881# confdefs.h avoids OS command line length limits that DEFS can exceed.
20001882rm -f -r conftest* confdefs.h
20011883
2002−$as_echo "/* confdefs.h */" > confdefs.h
1884+printf "%s\n" "/* confdefs.h */" > confdefs.h
20031885
20041886# Predefined preprocessor variables.
20051887
2006−cat >>confdefs.h <<_ACEOF
2007−#define PACKAGE_NAME "$PACKAGE_NAME"
2008−_ACEOF
1888+printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
20091889
2010−cat >>confdefs.h <<_ACEOF
2011−#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2012−_ACEOF
1890+printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
20131891
2014−cat >>confdefs.h <<_ACEOF
2015−#define PACKAGE_VERSION "$PACKAGE_VERSION"
2016−_ACEOF
1892+printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
20171893
2018−cat >>confdefs.h <<_ACEOF
2019−#define PACKAGE_STRING "$PACKAGE_STRING"
2020−_ACEOF
1894+printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
20211895
2022−cat >>confdefs.h <<_ACEOF
2023−#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2024−_ACEOF
1896+printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
20251897
2026−cat >>confdefs.h <<_ACEOF
2027−#define PACKAGE_URL "$PACKAGE_URL"
2028−_ACEOF
1898+printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
20291899
20301900
20311901# Let the site file select an alternate cache file if it wants to.
20321902# Prefer an explicitly selected file to automatically selected ones.
2033−ac_site_file1=NONE
2034−ac_site_file2=NONE
20351903if test -n "$CONFIG_SITE"; then
2036− # We do not want a PATH search for config.site.
2037− case $CONFIG_SITE in #((
2038− -*) ac_site_file1=./$CONFIG_SITE;;
2039− */*) ac_site_file1=$CONFIG_SITE;;
2040− *) ac_site_file1=./$CONFIG_SITE;;
2041− esac
1904+ ac_site_files="$CONFIG_SITE"
20421905elif test "x$prefix" != xNONE; then
2043− ac_site_file1=$prefix/share/config.site
2044− ac_site_file2=$prefix/etc/config.site
1906+ ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
20451907else
2046− ac_site_file1=$ac_default_prefix/share/config.site
2047− ac_site_file2=$ac_default_prefix/etc/config.site
1908+ ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
20481909fi
2049−for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1910+
1911+for ac_site_file in $ac_site_files
20501912do
2051− test "x$ac_site_file" = xNONE && continue
2052− if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2053− { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054−$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1913+ case $ac_site_file in #(
1914+ */*) :
1915+ ;; #(
1916+ *) :
1917+ ac_site_file=./$ac_site_file ;;
1918+esac
1919+ if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1920+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1921+printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
20551922 sed 's/^/| /' "$ac_site_file" >&5
20561923 . "$ac_site_file" \
2057− || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2058−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1924+ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1925+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20591926as_fn_error $? "failed to load site script $ac_site_file
20601927See \`config.log' for more details" "$LINENO" 5; }
20611928 fi
@@ -2065,97 +1932,425 @@ if test -r "$cache_file"; then
20651932 # Some versions of bash will fail to source /dev/null (special files
20661933 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
20671934 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2068− { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2069−$as_echo "$as_me: loading cache $cache_file" >&6;}
1935+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1936+printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
20701937 case $cache_file in
20711938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
20721939 *) . "./$cache_file";;
20731940 esac
20741941 fi
20751942else
2076− { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2077−$as_echo "$as_me: creating cache $cache_file" >&6;}
1943+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1944+printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
20781945 >$cache_file
20791946fi
20801947
2081−# Check that the precious variables saved in the cache have kept the same
2082−# value.
2083−ac_cache_corrupted=false
2084−for ac_var in $ac_precious_vars; do
2085− eval ac_old_set=\$ac_cv_env_${ac_var}_set
2086− eval ac_new_set=\$ac_env_${ac_var}_set
2087− eval ac_old_val=\$ac_cv_env_${ac_var}_value
2088− eval ac_new_val=\$ac_env_${ac_var}_value
2089− case $ac_old_set,$ac_new_set in
2090− set,)
2091− { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2092−$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2093− ac_cache_corrupted=: ;;
2094− ,set)
2095− { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2096−$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2097− ac_cache_corrupted=: ;;
2098− ,);;
2099− *)
2100− if test "x$ac_old_val" != "x$ac_new_val"; then
2101− # differences in whitespace do not lead to failure.
2102− ac_old_val_w=`echo x $ac_old_val`
2103− ac_new_val_w=`echo x $ac_new_val`
2104− if test "$ac_old_val_w" != "$ac_new_val_w"; then
2105− { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2106−$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2107− ac_cache_corrupted=:
2108− else
2109− { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2110−$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2111− eval $ac_var=\$ac_old_val
2112− fi
2113− { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2114−$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2115− { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2116−$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2117− fi;;
2118− esac
2119− # Pass precious variables to config.status.
2120− if test "$ac_new_set" = set; then
2121− case $ac_new_val in
2122− *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2123− *) ac_arg=$ac_var=$ac_new_val ;;
2124− esac
2125− case " $ac_configure_args " in
2126− *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2127− *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2128− esac
2129− fi
2130−done
2131−if $ac_cache_corrupted; then
2132− { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2133−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134− { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2135−$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2136− as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2137−fi
2138−## -------------------- ##
2139−## Main body of script. ##
2140−## -------------------- ##
1948+# Test code for whether the C compiler supports C89 (global declarations)
1949+ac_c_conftest_c89_globals='
1950+/* Does the compiler advertise C89 conformance?
1951+ Do not test the value of __STDC__, because some compilers set it to 0
1952+ while being otherwise adequately conformant. */
1953+#if !defined __STDC__
1954+# error "Compiler does not advertise C89 conformance"
1955+#endif
21411956
2142−ac_ext=c
2143−ac_cpp='$CPP $CPPFLAGS'
2144−ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145−ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146−ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957+#include <stddef.h>
1958+#include <stdarg.h>
1959+struct stat;
1960+/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1961+struct buf { int x; };
1962+struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1963+static char *e (p, i)
1964+ char **p;
1965+ int i;
1966+{
1967+ return p[i];
1968+}
1969+static char *f (char * (*g) (char **, int), char **p, ...)
1970+{
1971+ char *s;
1972+ va_list v;
1973+ va_start (v,p);
1974+ s = g (p, va_arg (v,int));
1975+ va_end (v);
1976+ return s;
1977+}
1978+
1979+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1980+ function prototypes and stuff, but not \xHH hex character constants.
1981+ These do not provoke an error unfortunately, instead are silently treated
1982+ as an "x". The following induces an error, until -std is added to get
1983+ proper ANSI mode. Curiously \x00 != x always comes out true, for an
1984+ array size at least. It is necessary to write \x00 == 0 to get something
1985+ that is true only with -std. */
1986+int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1987+
1988+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1989+ inside strings and character constants. */
1990+#define FOO(x) '\''x'\''
1991+int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1992+
1993+int test (int i, double x);
1994+struct s1 {int (*f) (int a);};
1995+struct s2 {int (*f) (double a);};
1996+int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1997+ int, int);'
1998+
1999+# Test code for whether the C compiler supports C89 (body of main).
2000+ac_c_conftest_c89_main='
2001+ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2002+'
2003+
2004+# Test code for whether the C compiler supports C99 (global declarations)
2005+ac_c_conftest_c99_globals='
2006+// Does the compiler advertise C99 conformance?
2007+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2008+# error "Compiler does not advertise C99 conformance"
2009+#endif
2010+
2011+#include <stdbool.h>
2012+extern int puts (const char *);
2013+extern int printf (const char *, ...);
2014+extern int dprintf (int, const char *, ...);
2015+extern void *malloc (size_t);
2016+
2017+// Check varargs macros. These examples are taken from C99 6.10.3.5.
2018+// dprintf is used instead of fprintf to avoid needing to declare
2019+// FILE and stderr.
2020+#define debug(...) dprintf (2, __VA_ARGS__)
2021+#define showlist(...) puts (#__VA_ARGS__)
2022+#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2023+static void
2024+test_varargs_macros (void)
2025+{
2026+ int x = 1234;
2027+ int y = 5678;
2028+ debug ("Flag");
2029+ debug ("X = %d\n", x);
2030+ showlist (The first, second, and third items.);
2031+ report (x>y, "x is %d but y is %d", x, y);
2032+}
2033+
2034+// Check long long types.
2035+#define BIG64 18446744073709551615ull
2036+#define BIG32 4294967295ul
2037+#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2038+#if !BIG_OK
2039+ #error "your preprocessor is broken"
2040+#endif
2041+#if BIG_OK
2042+#else
2043+ #error "your preprocessor is broken"
2044+#endif
2045+static long long int bignum = -9223372036854775807LL;
2046+static unsigned long long int ubignum = BIG64;
2047+
2048+struct incomplete_array
2049+{
2050+ int datasize;
2051+ double data[];
2052+};
2053+
2054+struct named_init {
2055+ int number;
2056+ const wchar_t *name;
2057+ double average;
2058+};
2059+
2060+typedef const char *ccp;
2061+
2062+static inline int
2063+test_restrict (ccp restrict text)
2064+{
2065+ // See if C++-style comments work.
2066+ // Iterate through items via the restricted pointer.
2067+ // Also check for declarations in for loops.
2068+ for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2069+ continue;
2070+ return 0;
2071+}
2072+
2073+// Check varargs and va_copy.
2074+static bool
2075+test_varargs (const char *format, ...)
2076+{
2077+ va_list args;
2078+ va_start (args, format);
2079+ va_list args_copy;
2080+ va_copy (args_copy, args);
2081+
2082+ const char *str = "";
2083+ int number = 0;
2084+ float fnumber = 0;
2085+
2086+ while (*format)
2087+ {
2088+ switch (*format++)
2089+ {
2090+ case '\''s'\'': // string
2091+ str = va_arg (args_copy, const char *);
2092+ break;
2093+ case '\''d'\'': // int
2094+ number = va_arg (args_copy, int);
2095+ break;
2096+ case '\''f'\'': // float
2097+ fnumber = va_arg (args_copy, double);
2098+ break;
2099+ default:
2100+ break;
2101+ }
2102+ }
2103+ va_end (args_copy);
2104+ va_end (args);
2105+
2106+ return *str && number && fnumber;
2107+}
2108+'
2109+
2110+# Test code for whether the C compiler supports C99 (body of main).
2111+ac_c_conftest_c99_main='
2112+ // Check bool.
2113+ _Bool success = false;
2114+ success |= (argc != 0);
2115+
2116+ // Check restrict.
2117+ if (test_restrict ("String literal") == 0)
2118+ success = true;
2119+ char *restrict newvar = "Another string";
2120+
2121+ // Check varargs.
2122+ success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2123+ test_varargs_macros ();
2124+
2125+ // Check flexible array members.
2126+ struct incomplete_array *ia =
2127+ malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2128+ ia->datasize = 10;
2129+ for (int i = 0; i < ia->datasize; ++i)
2130+ ia->data[i] = i * 1.234;
2131+
2132+ // Check named initializers.
2133+ struct named_init ni = {
2134+ .number = 34,
2135+ .name = L"Test wide string",
2136+ .average = 543.34343,
2137+ };
2138+
2139+ ni.number = 58;
2140+
2141+ int dynamic_array[ni.number];
2142+ dynamic_array[0] = argv[0][0];
2143+ dynamic_array[ni.number - 1] = 543;
2144+
2145+ // work around unused variable warnings
2146+ ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2147+ || dynamic_array[ni.number - 1] != 543);
2148+'
2149+
2150+# Test code for whether the C compiler supports C11 (global declarations)
2151+ac_c_conftest_c11_globals='
2152+// Does the compiler advertise C11 conformance?
2153+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2154+# error "Compiler does not advertise C11 conformance"
2155+#endif
2156+
2157+// Check _Alignas.
2158+char _Alignas (double) aligned_as_double;
2159+char _Alignas (0) no_special_alignment;
2160+extern char aligned_as_int;
2161+char _Alignas (0) _Alignas (int) aligned_as_int;
2162+
2163+// Check _Alignof.
2164+enum
2165+{
2166+ int_alignment = _Alignof (int),
2167+ int_array_alignment = _Alignof (int[100]),
2168+ char_alignment = _Alignof (char)
2169+};
2170+_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2171+
2172+// Check _Noreturn.
2173+int _Noreturn does_not_return (void) { for (;;) continue; }
2174+
2175+// Check _Static_assert.
2176+struct test_static_assert
2177+{
2178+ int x;
2179+ _Static_assert (sizeof (int) <= sizeof (long int),
2180+ "_Static_assert does not work in struct");
2181+ long int y;
2182+};
2183+
2184+// Check UTF-8 literals.
2185+#define u8 syntax error!
2186+char const utf8_literal[] = u8"happens to be ASCII" "another string";
2187+
2188+// Check duplicate typedefs.
2189+typedef long *long_ptr;
2190+typedef long int *long_ptr;
2191+typedef long_ptr long_ptr;
2192+
2193+// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2194+struct anonymous
2195+{
2196+ union {
2197+ struct { int i; int j; };
2198+ struct { int k; long int l; } w;
2199+ };
2200+ int m;
2201+} v1;
2202+'
2203+
2204+# Test code for whether the C compiler supports C11 (body of main).
2205+ac_c_conftest_c11_main='
2206+ _Static_assert ((offsetof (struct anonymous, i)
2207+ == offsetof (struct anonymous, w.k)),
2208+ "Anonymous union alignment botch");
2209+ v1.i = 2;
2210+ v1.w.k = 5;
2211+ ok |= v1.i != 5;
2212+'
2213+
2214+# Test code for whether the C compiler supports C11 (complete).
2215+ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2216+${ac_c_conftest_c99_globals}
2217+${ac_c_conftest_c11_globals}
2218+
2219+int
2220+main (int argc, char **argv)
2221+{
2222+ int ok = 0;
2223+ ${ac_c_conftest_c89_main}
2224+ ${ac_c_conftest_c99_main}
2225+ ${ac_c_conftest_c11_main}
2226+ return ok;
2227+}
2228+"
2229+
2230+# Test code for whether the C compiler supports C99 (complete).
2231+ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2232+${ac_c_conftest_c99_globals}
2233+
2234+int
2235+main (int argc, char **argv)
2236+{
2237+ int ok = 0;
2238+ ${ac_c_conftest_c89_main}
2239+ ${ac_c_conftest_c99_main}
2240+ return ok;
2241+}
2242+"
2243+
2244+# Test code for whether the C compiler supports C89 (complete).
2245+ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2246+
2247+int
2248+main (int argc, char **argv)
2249+{
2250+ int ok = 0;
2251+ ${ac_c_conftest_c89_main}
2252+ return ok;
2253+}
2254+"
2255+
2256+as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2257+as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2258+as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2259+as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2260+as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2261+as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2262+as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2263+as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2264+as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2265+# Check that the precious variables saved in the cache have kept the same
2266+# value.
2267+ac_cache_corrupted=false
2268+for ac_var in $ac_precious_vars; do
2269+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
2270+ eval ac_new_set=\$ac_env_${ac_var}_set
2271+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
2272+ eval ac_new_val=\$ac_env_${ac_var}_value
2273+ case $ac_old_set,$ac_new_set in
2274+ set,)
2275+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2276+printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2277+ ac_cache_corrupted=: ;;
2278+ ,set)
2279+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2280+printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2281+ ac_cache_corrupted=: ;;
2282+ ,);;
2283+ *)
2284+ if test "x$ac_old_val" != "x$ac_new_val"; then
2285+ # differences in whitespace do not lead to failure.
2286+ ac_old_val_w=`echo x $ac_old_val`
2287+ ac_new_val_w=`echo x $ac_new_val`
2288+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
2289+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2290+printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2291+ ac_cache_corrupted=:
2292+ else
2293+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2294+printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2295+ eval $ac_var=\$ac_old_val
2296+ fi
2297+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2298+printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2299+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2300+printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2301+ fi;;
2302+ esac
2303+ # Pass precious variables to config.status.
2304+ if test "$ac_new_set" = set; then
2305+ case $ac_new_val in
2306+ *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2307+ *) ac_arg=$ac_var=$ac_new_val ;;
2308+ esac
2309+ case " $ac_configure_args " in
2310+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2311+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2312+ esac
2313+ fi
2314+done
2315+if $ac_cache_corrupted; then
2316+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2318+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2319+printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2320+ as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2321+ and start over" "$LINENO" 5
2322+fi
2323+## -------------------- ##
2324+## Main body of script. ##
2325+## -------------------- ##
2326+
2327+ac_ext=c
2328+ac_cpp='$CPP $CPPFLAGS'
2329+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331+ac_compiler_gnu=$ac_cv_c_compiler_gnu
21472332
21482333
21492334
21502335# To suppress "WARNING: unrecognized options: --with-compiler"
21512336
21522337# Check whether --with-compiler was given.
2153−if test "${with_compiler+set}" = set; then :
2338+if test ${with_compiler+y}
2339+then :
21542340 withval=$with_compiler;
21552341fi
21562342
21572343
21582344# XXX Do this only for linux
2345+
2346+
2347+
2348+
2349+
2350+
2351+
2352+
2353+
21592354ac_ext=c
21602355ac_cpp='$CPP $CPPFLAGS'
21612356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -2164,11 +2359,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
21642359if test -n "$ac_tool_prefix"; then
21652360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
21662361set dummy ${ac_tool_prefix}gcc; ac_word=$2
2167−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2168−$as_echo_n "checking for $ac_word... " >&6; }
2169−if ${ac_cv_prog_CC+:} false; then :
2170− $as_echo_n "(cached) " >&6
2171−else
2362+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363+printf %s "checking for $ac_word... " >&6; }
2364+if test ${ac_cv_prog_CC+y}
2365+then :
2366+ printf %s "(cached) " >&6
2367+else $as_nop
21722368 if test -n "$CC"; then
21732369 ac_cv_prog_CC="$CC" # Let the user override the test.
21742370else
@@ -2176,11 +2372,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762372for as_dir in $PATH
21772373do
21782374 IFS=$as_save_IFS
2179− test -z "$as_dir" && as_dir=.
2375+ case $as_dir in #(((
2376+ '') as_dir=./ ;;
2377+ */) ;;
2378+ *) as_dir=$as_dir/ ;;
2379+ esac
21802380 for ac_exec_ext in '' $ac_executable_extensions; do
2181− if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21822382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2183− $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2383+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21842384 break 2
21852385 fi
21862386done
@@ -2191,11 +2391,11 @@ fi
21912391fi
21922392CC=$ac_cv_prog_CC
21932393if test -n "$CC"; then
2194− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2195−$as_echo "$CC" >&6; }
2394+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2395+printf "%s\n" "$CC" >&6; }
21962396else
2197− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2198−$as_echo "no" >&6; }
2397+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2398+printf "%s\n" "no" >&6; }
21992399fi
22002400
22012401
@@ -2204,11 +2404,12 @@ if test -z "$ac_cv_prog_CC"; then
22042404 ac_ct_CC=$CC
22052405 # Extract the first word of "gcc", so it can be a program name with args.
22062406set dummy gcc; ac_word=$2
2207−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2208−$as_echo_n "checking for $ac_word... " >&6; }
2209−if ${ac_cv_prog_ac_ct_CC+:} false; then :
2210− $as_echo_n "(cached) " >&6
2211−else
2407+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408+printf %s "checking for $ac_word... " >&6; }
2409+if test ${ac_cv_prog_ac_ct_CC+y}
2410+then :
2411+ printf %s "(cached) " >&6
2412+else $as_nop
22122413 if test -n "$ac_ct_CC"; then
22132414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22142415else
@@ -2216,11 +2417,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22162417for as_dir in $PATH
22172418do
22182419 IFS=$as_save_IFS
2219− test -z "$as_dir" && as_dir=.
2420+ case $as_dir in #(((
2421+ '') as_dir=./ ;;
2422+ */) ;;
2423+ *) as_dir=$as_dir/ ;;
2424+ esac
22202425 for ac_exec_ext in '' $ac_executable_extensions; do
2221− if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22222427 ac_cv_prog_ac_ct_CC="gcc"
2223− $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22242429 break 2
22252430 fi
22262431done
@@ -2231,11 +2436,11 @@ fi
22312436fi
22322437ac_ct_CC=$ac_cv_prog_ac_ct_CC
22332438if test -n "$ac_ct_CC"; then
2234− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2235−$as_echo "$ac_ct_CC" >&6; }
2439+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2440+printf "%s\n" "$ac_ct_CC" >&6; }
22362441else
2237− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2238−$as_echo "no" >&6; }
2442+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443+printf "%s\n" "no" >&6; }
22392444fi
22402445
22412446 if test "x$ac_ct_CC" = x; then
@@ -2243,8 +2448,8 @@ fi
22432448 else
22442449 case $cross_compiling:$ac_tool_warned in
22452450yes:)
2246−{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2247−$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2451+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2452+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22482453ac_tool_warned=yes ;;
22492454esac
22502455 CC=$ac_ct_CC
@@ -2257,11 +2462,12 @@ if test -z "$CC"; then
22572462 if test -n "$ac_tool_prefix"; then
22582463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22592464set dummy ${ac_tool_prefix}cc; ac_word=$2
2260−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2261−$as_echo_n "checking for $ac_word... " >&6; }
2262−if ${ac_cv_prog_CC+:} false; then :
2263− $as_echo_n "(cached) " >&6
2264−else
2465+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466+printf %s "checking for $ac_word... " >&6; }
2467+if test ${ac_cv_prog_CC+y}
2468+then :
2469+ printf %s "(cached) " >&6
2470+else $as_nop
22652471 if test -n "$CC"; then
22662472 ac_cv_prog_CC="$CC" # Let the user override the test.
22672473else
@@ -2269,11 +2475,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22692475for as_dir in $PATH
22702476do
22712477 IFS=$as_save_IFS
2272− test -z "$as_dir" && as_dir=.
2478+ case $as_dir in #(((
2479+ '') as_dir=./ ;;
2480+ */) ;;
2481+ *) as_dir=$as_dir/ ;;
2482+ esac
22732483 for ac_exec_ext in '' $ac_executable_extensions; do
2274− if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22752485 ac_cv_prog_CC="${ac_tool_prefix}cc"
2276− $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22772487 break 2
22782488 fi
22792489done
@@ -2284,11 +2494,11 @@ fi
22842494fi
22852495CC=$ac_cv_prog_CC
22862496if test -n "$CC"; then
2287− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2288−$as_echo "$CC" >&6; }
2497+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2498+printf "%s\n" "$CC" >&6; }
22892499else
2290− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2291−$as_echo "no" >&6; }
2500+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501+printf "%s\n" "no" >&6; }
22922502fi
22932503
22942504
@@ -2297,11 +2507,12 @@ fi
22972507if test -z "$CC"; then
22982508 # Extract the first word of "cc", so it can be a program name with args.
22992509set dummy cc; ac_word=$2
2300−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2301−$as_echo_n "checking for $ac_word... " >&6; }
2302−if ${ac_cv_prog_CC+:} false; then :
2303− $as_echo_n "(cached) " >&6
2304−else
2510+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511+printf %s "checking for $ac_word... " >&6; }
2512+if test ${ac_cv_prog_CC+y}
2513+then :
2514+ printf %s "(cached) " >&6
2515+else $as_nop
23052516 if test -n "$CC"; then
23062517 ac_cv_prog_CC="$CC" # Let the user override the test.
23072518else
@@ -2310,15 +2521,19 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23102521for as_dir in $PATH
23112522do
23122523 IFS=$as_save_IFS
2313− test -z "$as_dir" && as_dir=.
2524+ case $as_dir in #(((
2525+ '') as_dir=./ ;;
2526+ */) ;;
2527+ *) as_dir=$as_dir/ ;;
2528+ esac
23142529 for ac_exec_ext in '' $ac_executable_extensions; do
2315− if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316− if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2530+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2531+ if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
23172532 ac_prog_rejected=yes
23182533 continue
23192534 fi
23202535 ac_cv_prog_CC="cc"
2321− $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23222537 break 2
23232538 fi
23242539done
@@ -2334,18 +2549,18 @@ if test $ac_prog_rejected = yes; then
23342549 # However, it has the same basename, so the bogon will be chosen
23352550 # first if we set CC to just the basename; use the full file name.
23362551 shift
2337− ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2552+ ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
23382553 fi
23392554fi
23402555fi
23412556fi
23422557CC=$ac_cv_prog_CC
23432558if test -n "$CC"; then
2344− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2345−$as_echo "$CC" >&6; }
2559+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2560+printf "%s\n" "$CC" >&6; }
23462561else
2347− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348−$as_echo "no" >&6; }
2562+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563+printf "%s\n" "no" >&6; }
23492564fi
23502565
23512566
@@ -2356,11 +2571,12 @@ if test -z "$CC"; then
23562571 do
23572572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23582573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2359−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2360−$as_echo_n "checking for $ac_word... " >&6; }
2361−if ${ac_cv_prog_CC+:} false; then :
2362− $as_echo_n "(cached) " >&6
2363−else
2574+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575+printf %s "checking for $ac_word... " >&6; }
2576+if test ${ac_cv_prog_CC+y}
2577+then :
2578+ printf %s "(cached) " >&6
2579+else $as_nop
23642580 if test -n "$CC"; then
23652581 ac_cv_prog_CC="$CC" # Let the user override the test.
23662582else
@@ -2368,11 +2584,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23682584for as_dir in $PATH
23692585do
23702586 IFS=$as_save_IFS
2371− test -z "$as_dir" && as_dir=.
2587+ case $as_dir in #(((
2588+ '') as_dir=./ ;;
2589+ */) ;;
2590+ *) as_dir=$as_dir/ ;;
2591+ esac
23722592 for ac_exec_ext in '' $ac_executable_extensions; do
2373− if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23742594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2375− $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23762596 break 2
23772597 fi
23782598done
@@ -2383,11 +2603,11 @@ fi
23832603fi
23842604CC=$ac_cv_prog_CC
23852605if test -n "$CC"; then
2386− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2387−$as_echo "$CC" >&6; }
2606+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607+printf "%s\n" "$CC" >&6; }
23882608else
2389− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2390−$as_echo "no" >&6; }
2609+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610+printf "%s\n" "no" >&6; }
23912611fi
23922612
23932613
@@ -2400,11 +2620,12 @@ if test -z "$CC"; then
24002620do
24012621 # Extract the first word of "$ac_prog", so it can be a program name with args.
24022622set dummy $ac_prog; ac_word=$2
2403−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2404−$as_echo_n "checking for $ac_word... " >&6; }
2405−if ${ac_cv_prog_ac_ct_CC+:} false; then :
2406− $as_echo_n "(cached) " >&6
2407−else
2623+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624+printf %s "checking for $ac_word... " >&6; }
2625+if test ${ac_cv_prog_ac_ct_CC+y}
2626+then :
2627+ printf %s "(cached) " >&6
2628+else $as_nop
24082629 if test -n "$ac_ct_CC"; then
24092630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24102631else
@@ -2412,11 +2633,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24122633for as_dir in $PATH
24132634do
24142635 IFS=$as_save_IFS
2415− test -z "$as_dir" && as_dir=.
2636+ case $as_dir in #(((
2637+ '') as_dir=./ ;;
2638+ */) ;;
2639+ *) as_dir=$as_dir/ ;;
2640+ esac
24162641 for ac_exec_ext in '' $ac_executable_extensions; do
2417− if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24182643 ac_cv_prog_ac_ct_CC="$ac_prog"
2419− $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24202645 break 2
24212646 fi
24222647done
@@ -2427,11 +2652,11 @@ fi
24272652fi
24282653ac_ct_CC=$ac_cv_prog_ac_ct_CC
24292654if test -n "$ac_ct_CC"; then
2430− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2431−$as_echo "$ac_ct_CC" >&6; }
2655+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2656+printf "%s\n" "$ac_ct_CC" >&6; }
24322657else
2433− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2434−$as_echo "no" >&6; }
2658+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659+printf "%s\n" "no" >&6; }
24352660fi
24362661
24372662
@@ -2443,8 +2668,8 @@ done
24432668 else
24442669 case $cross_compiling:$ac_tool_warned in
24452670yes:)
2446−{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2447−$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2672+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24482673ac_tool_warned=yes ;;
24492674esac
24502675 CC=$ac_ct_CC
@@ -2452,25 +2677,129 @@ esac
24522677fi
24532678
24542679fi
2680+if test -z "$CC"; then
2681+ if test -n "$ac_tool_prefix"; then
2682+ # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2683+set dummy ${ac_tool_prefix}clang; ac_word=$2
2684+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685+printf %s "checking for $ac_word... " >&6; }
2686+if test ${ac_cv_prog_CC+y}
2687+then :
2688+ printf %s "(cached) " >&6
2689+else $as_nop
2690+ if test -n "$CC"; then
2691+ ac_cv_prog_CC="$CC" # Let the user override the test.
2692+else
2693+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694+for as_dir in $PATH
2695+do
2696+ IFS=$as_save_IFS
2697+ case $as_dir in #(((
2698+ '') as_dir=./ ;;
2699+ */) ;;
2700+ *) as_dir=$as_dir/ ;;
2701+ esac
2702+ for ac_exec_ext in '' $ac_executable_extensions; do
2703+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2704+ ac_cv_prog_CC="${ac_tool_prefix}clang"
2705+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2706+ break 2
2707+ fi
2708+done
2709+ done
2710+IFS=$as_save_IFS
2711+
2712+fi
2713+fi
2714+CC=$ac_cv_prog_CC
2715+if test -n "$CC"; then
2716+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717+printf "%s\n" "$CC" >&6; }
2718+else
2719+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720+printf "%s\n" "no" >&6; }
2721+fi
2722+
2723+
2724+fi
2725+if test -z "$ac_cv_prog_CC"; then
2726+ ac_ct_CC=$CC
2727+ # Extract the first word of "clang", so it can be a program name with args.
2728+set dummy clang; ac_word=$2
2729+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730+printf %s "checking for $ac_word... " >&6; }
2731+if test ${ac_cv_prog_ac_ct_CC+y}
2732+then :
2733+ printf %s "(cached) " >&6
2734+else $as_nop
2735+ if test -n "$ac_ct_CC"; then
2736+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737+else
2738+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739+for as_dir in $PATH
2740+do
2741+ IFS=$as_save_IFS
2742+ case $as_dir in #(((
2743+ '') as_dir=./ ;;
2744+ */) ;;
2745+ *) as_dir=$as_dir/ ;;
2746+ esac
2747+ for ac_exec_ext in '' $ac_executable_extensions; do
2748+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2749+ ac_cv_prog_ac_ct_CC="clang"
2750+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2751+ break 2
2752+ fi
2753+done
2754+ done
2755+IFS=$as_save_IFS
24552756
2757+fi
2758+fi
2759+ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760+if test -n "$ac_ct_CC"; then
2761+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762+printf "%s\n" "$ac_ct_CC" >&6; }
2763+else
2764+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765+printf "%s\n" "no" >&6; }
2766+fi
24562767
2457−test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768+ if test "x$ac_ct_CC" = x; then
2769+ CC=""
2770+ else
2771+ case $cross_compiling:$ac_tool_warned in
2772+yes:)
2773+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775+ac_tool_warned=yes ;;
2776+esac
2777+ CC=$ac_ct_CC
2778+ fi
2779+else
2780+ CC="$ac_cv_prog_CC"
2781+fi
2782+
2783+fi
2784+
2785+
2786+test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2787+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24592788as_fn_error $? "no acceptable C compiler found in \$PATH
24602789See \`config.log' for more details" "$LINENO" 5; }
24612790
24622791# Provide some information about the compiler.
2463−$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2792+printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
24642793set X $ac_compile
24652794ac_compiler=$2
2466−for ac_option in --version -v -V -qversion; do
2795+for ac_option in --version -v -V -qversion -version; do
24672796 { { ac_try="$ac_compiler $ac_option >&5"
24682797case "(($ac_try" in
24692798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702799 *) ac_try_echo=$ac_try;;
24712800esac
24722801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2473−$as_echo "$ac_try_echo"; } >&5
2802+printf "%s\n" "$ac_try_echo"; } >&5
24742803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
24752804 ac_status=$?
24762805 if test -s conftest.err; then
@@ -2480,7 +2809,7 @@ $as_echo "$ac_try_echo"; } >&5
24802809 cat conftest.er1 >&5
24812810 fi
24822811 rm -f conftest.er1 conftest.err
2483− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24842813 test $ac_status = 0; }
24852814done
24862815
@@ -2488,7 +2817,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24882817/* end confdefs.h. */
24892818
24902819int
2491−main ()
2820+main (void)
24922821{
24932822
24942823 ;
@@ -2500,9 +2829,9 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
25002829# Try to create an executable without -o first, disregard a.out.
25012830# It will help us diagnose broken compilers, and finding out an intuition
25022831# of exeext.
2503−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2504−$as_echo_n "checking whether the C compiler works... " >&6; }
2505−ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2832+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2833+printf %s "checking whether the C compiler works... " >&6; }
2834+ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
25062835
25072836# The possible output files:
25082837ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
@@ -2523,11 +2852,12 @@ case "(($ac_try" in
25232852 *) ac_try_echo=$ac_try;;
25242853esac
25252854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526−$as_echo "$ac_try_echo"; } >&5
2855+printf "%s\n" "$ac_try_echo"; } >&5
25272856 (eval "$ac_link_default") 2>&5
25282857 ac_status=$?
2529− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530− test $ac_status = 0; }; then :
2858+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859+ test $ac_status = 0; }
2860+then :
25312861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
25322862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
25332863# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -2544,7 +2874,7 @@ do
25442874 # certainly right.
25452875 break;;
25462876 *.* )
2547− if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2877+ if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
25482878 then :; else
25492879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
25502880 fi
@@ -2560,44 +2890,46 @@ do
25602890done
25612891test "$ac_cv_exeext" = no && ac_cv_exeext=
25622892
2563−else
2893+else $as_nop
25642894 ac_file=''
25652895fi
2566−if test -z "$ac_file"; then :
2567− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568−$as_echo "no" >&6; }
2569−$as_echo "$as_me: failed program was:" >&5
2896+if test -z "$ac_file"
2897+then :
2898+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899+printf "%s\n" "no" >&6; }
2900+printf "%s\n" "$as_me: failed program was:" >&5
25702901sed 's/^/| /' conftest.$ac_ext >&5
25712902
2572−{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25742905as_fn_error 77 "C compiler cannot create executables
25752906See \`config.log' for more details" "$LINENO" 5; }
2576−else
2577− { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578−$as_echo "yes" >&6; }
2579−fi
2580−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2581−$as_echo_n "checking for C compiler default output file name... " >&6; }
2582−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2583−$as_echo "$ac_file" >&6; }
2907+else $as_nop
2908+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909+printf "%s\n" "yes" >&6; }
2910+fi
2911+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2912+printf %s "checking for C compiler default output file name... " >&6; }
2913+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2914+printf "%s\n" "$ac_file" >&6; }
25842915ac_exeext=$ac_cv_exeext
25852916
25862917rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
25872918ac_clean_files=$ac_clean_files_save
2588−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2589−$as_echo_n "checking for suffix of executables... " >&6; }
2919+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2920+printf %s "checking for suffix of executables... " >&6; }
25902921if { { ac_try="$ac_link"
25912922case "(($ac_try" in
25922923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25932924 *) ac_try_echo=$ac_try;;
25942925esac
25952926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2596−$as_echo "$ac_try_echo"; } >&5
2927+printf "%s\n" "$ac_try_echo"; } >&5
25972928 (eval "$ac_link") 2>&5
25982929 ac_status=$?
2599− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2600− test $ac_status = 0; }; then :
2930+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931+ test $ac_status = 0; }
2932+then :
26012933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
26022934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
26032935# work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -2611,15 +2943,15 @@ for ac_file in conftest.exe conftest conftest.*; do
26112943 * ) break;;
26122944 esac
26132945done
2614−else
2615− { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946+else $as_nop
2947+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26172949as_fn_error $? "cannot compute suffix of executables: cannot compile and link
26182950See \`config.log' for more details" "$LINENO" 5; }
26192951fi
26202952rm -f conftest conftest$ac_cv_exeext
2621−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2622−$as_echo "$ac_cv_exeext" >&6; }
2953+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2954+printf "%s\n" "$ac_cv_exeext" >&6; }
26232955
26242956rm -f conftest.$ac_ext
26252957EXEEXT=$ac_cv_exeext
@@ -2628,7 +2960,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282960/* end confdefs.h. */
26292961#include <stdio.h>
26302962int
2631−main ()
2963+main (void)
26322964{
26332965FILE *f = fopen ("conftest.out", "w");
26342966 return ferror (f) || fclose (f) != 0;
@@ -2640,8 +2972,8 @@ _ACEOF
26402972ac_clean_files="$ac_clean_files conftest.out"
26412973# Check that the compiler produces executables we can run. If not, either
26422974# the compiler is broken, or we cross compile.
2643−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2644−$as_echo_n "checking whether we are cross compiling... " >&6; }
2975+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2976+printf %s "checking whether we are cross compiling... " >&6; }
26452977if test "$cross_compiling" != yes; then
26462978 { { ac_try="$ac_link"
26472979case "(($ac_try" in
@@ -2649,10 +2981,10 @@ case "(($ac_try" in
26492981 *) ac_try_echo=$ac_try;;
26502982esac
26512983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652−$as_echo "$ac_try_echo"; } >&5
2984+printf "%s\n" "$ac_try_echo"; } >&5
26532985 (eval "$ac_link") 2>&5
26542986 ac_status=$?
2655− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26562988 test $ac_status = 0; }
26572989 if { ac_try='./conftest$ac_cv_exeext'
26582990 { { case "(($ac_try" in
@@ -2660,39 +2992,40 @@ $as_echo "$ac_try_echo"; } >&5
26602992 *) ac_try_echo=$ac_try;;
26612993esac
26622994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663−$as_echo "$ac_try_echo"; } >&5
2995+printf "%s\n" "$ac_try_echo"; } >&5
26642996 (eval "$ac_try") 2>&5
26652997 ac_status=$?
2666− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26672999 test $ac_status = 0; }; }; then
26683000 cross_compiling=no
26693001 else
26703002 if test "$cross_compiling" = maybe; then
26713003 cross_compiling=yes
26723004 else
2673− { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675−as_fn_error $? "cannot run C compiled programs.
3005+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3007+as_fn_error 77 "cannot run C compiled programs.
26763008If you meant to cross compile, use \`--host'.
26773009See \`config.log' for more details" "$LINENO" 5; }
26783010 fi
26793011 fi
26803012fi
2681−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2682−$as_echo "$cross_compiling" >&6; }
3013+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3014+printf "%s\n" "$cross_compiling" >&6; }
26833015
26843016rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
26853017ac_clean_files=$ac_clean_files_save
2686−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2687−$as_echo_n "checking for suffix of object files... " >&6; }
2688−if ${ac_cv_objext+:} false; then :
2689− $as_echo_n "(cached) " >&6
2690−else
3018+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3019+printf %s "checking for suffix of object files... " >&6; }
3020+if test ${ac_cv_objext+y}
3021+then :
3022+ printf %s "(cached) " >&6
3023+else $as_nop
26913024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26923025/* end confdefs.h. */
26933026
26943027int
2695−main ()
3028+main (void)
26963029{
26973030
26983031 ;
@@ -2706,11 +3039,12 @@ case "(($ac_try" in
27063039 *) ac_try_echo=$ac_try;;
27073040esac
27083041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709−$as_echo "$ac_try_echo"; } >&5
3042+printf "%s\n" "$ac_try_echo"; } >&5
27103043 (eval "$ac_compile") 2>&5
27113044 ac_status=$?
2712− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713− test $ac_status = 0; }; then :
3045+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3046+ test $ac_status = 0; }
3047+then :
27143048 for ac_file in conftest.o conftest.obj conftest.*; do
27153049 test -f "$ac_file" || continue;
27163050 case $ac_file in
@@ -2719,31 +3053,32 @@ $as_echo "$ac_try_echo"; } >&5
27193053 break;;
27203054 esac
27213055done
2722−else
2723− $as_echo "$as_me: failed program was:" >&5
3056+else $as_nop
3057+ printf "%s\n" "$as_me: failed program was:" >&5
27243058sed 's/^/| /' conftest.$ac_ext >&5
27253059
2726−{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
27283062as_fn_error $? "cannot compute suffix of object files: cannot compile
27293063See \`config.log' for more details" "$LINENO" 5; }
27303064fi
27313065rm -f conftest.$ac_cv_objext conftest.$ac_ext
27323066fi
2733−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2734−$as_echo "$ac_cv_objext" >&6; }
3067+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3068+printf "%s\n" "$ac_cv_objext" >&6; }
27353069OBJEXT=$ac_cv_objext
27363070ac_objext=$OBJEXT
2737−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2738−$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2739−if ${ac_cv_c_compiler_gnu+:} false; then :
2740− $as_echo_n "(cached) " >&6
2741−else
3071+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3072+printf %s "checking whether the compiler supports GNU C... " >&6; }
3073+if test ${ac_cv_c_compiler_gnu+y}
3074+then :
3075+ printf %s "(cached) " >&6
3076+else $as_nop
27423077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27433078/* end confdefs.h. */
27443079
27453080int
2746−main ()
3081+main (void)
27473082{
27483083#ifndef __GNUC__
27493084 choke me
@@ -2753,29 +3088,33 @@ main ()
27533088 return 0;
27543089}
27553090_ACEOF
2756−if ac_fn_c_try_compile "$LINENO"; then :
3091+if ac_fn_c_try_compile "$LINENO"
3092+then :
27573093 ac_compiler_gnu=yes
2758−else
3094+else $as_nop
27593095 ac_compiler_gnu=no
27603096fi
2761−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27623098ac_cv_c_compiler_gnu=$ac_compiler_gnu
27633099
27643100fi
2765−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2766−$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3101+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3102+printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3103+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104+
27673105if test $ac_compiler_gnu = yes; then
27683106 GCC=yes
27693107else
27703108 GCC=
27713109fi
2772−ac_test_CFLAGS=${CFLAGS+set}
3110+ac_test_CFLAGS=${CFLAGS+y}
27733111ac_save_CFLAGS=$CFLAGS
2774−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2775−$as_echo_n "checking whether $CC accepts -g... " >&6; }
2776−if ${ac_cv_prog_cc_g+:} false; then :
2777− $as_echo_n "(cached) " >&6
2778−else
3112+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3113+printf %s "checking whether $CC accepts -g... " >&6; }
3114+if test ${ac_cv_prog_cc_g+y}
3115+then :
3116+ printf %s "(cached) " >&6
3117+else $as_nop
27793118 ac_save_c_werror_flag=$ac_c_werror_flag
27803119 ac_c_werror_flag=yes
27813120 ac_cv_prog_cc_g=no
@@ -2784,373 +3123,212 @@ else
27843123/* end confdefs.h. */
27853124
27863125int
2787−main ()
3126+main (void)
27883127{
27893128
27903129 ;
27913130 return 0;
27923131}
27933132_ACEOF
2794−if ac_fn_c_try_compile "$LINENO"; then :
3133+if ac_fn_c_try_compile "$LINENO"
3134+then :
27953135 ac_cv_prog_cc_g=yes
2796−else
3136+else $as_nop
27973137 CFLAGS=""
2798− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799−/* end confdefs.h. */
2800−
2801−int
2802−main ()
2803−{
2804−
2805− ;
2806− return 0;
2807−}
2808−_ACEOF
2809−if ac_fn_c_try_compile "$LINENO"; then :
2810−
2811−else
2812− ac_c_werror_flag=$ac_save_c_werror_flag
2813− CFLAGS="-g"
2814− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815−/* end confdefs.h. */
2816−
2817−int
2818−main ()
2819−{
2820−
2821− ;
2822− return 0;
2823−}
2824−_ACEOF
2825−if ac_fn_c_try_compile "$LINENO"; then :
2826− ac_cv_prog_cc_g=yes
2827−fi
2828−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829−fi
2830−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831−fi
2832−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833− ac_c_werror_flag=$ac_save_c_werror_flag
2834−fi
2835−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2836−$as_echo "$ac_cv_prog_cc_g" >&6; }
2837−if test "$ac_test_CFLAGS" = set; then
2838− CFLAGS=$ac_save_CFLAGS
2839−elif test $ac_cv_prog_cc_g = yes; then
2840− if test "$GCC" = yes; then
2841− CFLAGS="-g -O2"
2842− else
2843− CFLAGS="-g"
2844− fi
2845−else
2846− if test "$GCC" = yes; then
2847− CFLAGS="-O2"
2848− else
2849− CFLAGS=
2850− fi
2851−fi
2852−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2853−$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2854−if ${ac_cv_prog_cc_c89+:} false; then :
2855− $as_echo_n "(cached) " >&6
2856−else
2857− ac_cv_prog_cc_c89=no
2858−ac_save_CC=$CC
2859−cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860−/* end confdefs.h. */
2861−#include <stdarg.h>
2862−#include <stdio.h>
2863−struct stat;
2864−/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2865−struct buf { int x; };
2866−FILE * (*rcsopen) (struct buf *, struct stat *, int);
2867−static char *e (p, i)
2868− char **p;
2869− int i;
2870−{
2871− return p[i];
2872−}
2873−static char *f (char * (*g) (char **, int), char **p, ...)
2874−{
2875− char *s;
2876− va_list v;
2877− va_start (v,p);
2878− s = g (p, va_arg (v,int));
2879− va_end (v);
2880− return s;
2881−}
2882−
2883−/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2884− function prototypes and stuff, but not '\xHH' hex character constants.
2885− These don't provoke an error unfortunately, instead are silently treated
2886− as 'x'. The following induces an error, until -std is added to get
2887− proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2888− array size at least. It's necessary to write '\x00'==0 to get something
2889− that's true only with -std. */
2890−int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2891−
2892−/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2893− inside strings and character constants. */
2894−#define FOO(x) 'x'
2895−int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2896−
2897−int test (int i, double x);
2898−struct s1 {int (*f) (int a);};
2899−struct s2 {int (*f) (double a);};
2900−int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2901−int argc;
2902−char **argv;
2903−int
2904−main ()
2905−{
2906−return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2907− ;
2908− return 0;
2909−}
2910−_ACEOF
2911−for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2912− -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2913−do
2914− CC="$ac_save_CC $ac_arg"
2915− if ac_fn_c_try_compile "$LINENO"; then :
2916− ac_cv_prog_cc_c89=$ac_arg
2917−fi
2918−rm -f core conftest.err conftest.$ac_objext
2919− test "x$ac_cv_prog_cc_c89" != "xno" && break
2920−done
2921−rm -f conftest.$ac_ext
2922−CC=$ac_save_CC
2923−
2924−fi
2925−# AC_CACHE_VAL
2926−case "x$ac_cv_prog_cc_c89" in
2927− x)
2928− { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2929−$as_echo "none needed" >&6; } ;;
2930− xno)
2931− { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2932−$as_echo "unsupported" >&6; } ;;
2933− *)
2934− CC="$CC $ac_cv_prog_cc_c89"
2935− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2936−$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2937−esac
2938−if test "x$ac_cv_prog_cc_c89" != xno; then :
2939−
2940−fi
2941−
2942−ac_ext=c
2943−ac_cpp='$CPP $CPPFLAGS'
2944−ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945−ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946−ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947−
2948−
2949−ac_fn_c_check_decl "$LINENO" "IN_MASK_CREATE" "ac_cv_have_decl_IN_MASK_CREATE" "#include <sys/inotify.h>
2950−"
2951−if test "x$ac_cv_have_decl_IN_MASK_CREATE" = xyes; then :
2952− ac_have_decl=1
2953−else
2954− ac_have_decl=0
2955−fi
2956−
2957−cat >>confdefs.h <<_ACEOF
2958−#define HAVE_DECL_IN_MASK_CREATE $ac_have_decl
2959−_ACEOF
2960−
2961−ac_fn_c_check_decl "$LINENO" "IN_EXCL_UNLINK" "ac_cv_have_decl_IN_EXCL_UNLINK" "#include <sys/inotify.h>
2962−"
2963−if test "x$ac_cv_have_decl_IN_EXCL_UNLINK" = xyes; then :
2964− ac_have_decl=1
2965−else
2966− ac_have_decl=0
2967−fi
2968−
2969−cat >>confdefs.h <<_ACEOF
2970−#define HAVE_DECL_IN_EXCL_UNLINK $ac_have_decl
2971−_ACEOF
2972−
2973−
2974−# XXX Do this only for macOS
2975−ac_fn_c_check_decl "$LINENO" "kFSEventStreamCreateFlagFileEvents" "ac_cv_have_decl_kFSEventStreamCreateFlagFileEvents" "#include <CoreServices/CoreServices.h>
2976−"
2977−if test "x$ac_cv_have_decl_kFSEventStreamCreateFlagFileEvents" = xyes; then :
2978− ac_have_decl=1
2979−else
2980− ac_have_decl=0
2981−fi
2982−
2983−cat >>confdefs.h <<_ACEOF
2984−#define HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFILEEVENTS $ac_have_decl
2985−_ACEOF
2986−
2987−ac_fn_c_check_decl "$LINENO" "kFSEventStreamCreateFlagFullHistory" "ac_cv_have_decl_kFSEventStreamCreateFlagFullHistory" "#include <CoreServices/CoreServices.h>
2988−"
2989−if test "x$ac_cv_have_decl_kFSEventStreamCreateFlagFullHistory" = xyes; then :
2990− ac_have_decl=1
2991−else
2992− ac_have_decl=0
2993−fi
2994−
2995−cat >>confdefs.h <<_ACEOF
2996−#define HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFULLHISTORY $ac_have_decl
2997−_ACEOF
2998−
2999−ac_fn_c_check_decl "$LINENO" "kFSEventStreamEventFlagItemCloned" "ac_cv_have_decl_kFSEventStreamEventFlagItemCloned" "#include <CoreServices/CoreServices.h>
3000−"
3001−if test "x$ac_cv_have_decl_kFSEventStreamEventFlagItemCloned" = xyes; then :
3002− ac_have_decl=1
3003−else
3004− ac_have_decl=0
3005−fi
3006−
3007−cat >>confdefs.h <<_ACEOF
3008−#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMCLONED $ac_have_decl
3009−_ACEOF
3010−
3011−ac_fn_c_check_decl "$LINENO" "kFSEventStreamEventFlagItemIsHardlink" "ac_cv_have_decl_kFSEventStreamEventFlagItemIsHardlink" "#include <CoreServices/CoreServices.h>
3012−"
3013−if test "x$ac_cv_have_decl_kFSEventStreamEventFlagItemIsHardlink" = xyes; then :
3014− ac_have_decl=1
3015−else
3016− ac_have_decl=0
3017−fi
3138+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139+/* end confdefs.h. */
30183140
3019−cat >>confdefs.h <<_ACEOF
3020−#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMISHARDLINK $ac_have_decl
3021−_ACEOF
3141+int
3142+main (void)
3143+{
30223144
3145+ ;
3146+ return 0;
3147+}
3148+_ACEOF
3149+if ac_fn_c_try_compile "$LINENO"
3150+then :
30233151
3024−# Check headers and functions required
3025−ac_ext=c
3026−ac_cpp='$CPP $CPPFLAGS'
3027−ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028−ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029−ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3031−$as_echo_n "checking how to run the C preprocessor... " >&6; }
3032−# On Suns, sometimes $CPP names a directory.
3033−if test -n "$CPP" && test -d "$CPP"; then
3034− CPP=
3035−fi
3036−if test -z "$CPP"; then
3037− if ${ac_cv_prog_CPP+:} false; then :
3038− $as_echo_n "(cached) " >&6
3039−else
3040− # Double quotes because CPP needs to be expanded
3041− for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3042− do
3043− ac_preproc_ok=false
3044−for ac_c_preproc_warn_flag in '' yes
3045−do
3046− # Use a header file that comes with gcc, so configuring glibc
3047− # with a fresh cross-compiler works.
3048− # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3049− # <limits.h> exists even on freestanding compilers.
3050− # On the NeXT, cc -E runs the code through the compiler's parser,
3051− # not just through cpp. "Syntax error" is here to catch this case.
3052− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152+else $as_nop
3153+ ac_c_werror_flag=$ac_save_c_werror_flag
3154+ CFLAGS="-g"
3155+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30533156/* end confdefs.h. */
3054−#ifdef __STDC__
3055−# include <limits.h>
3056−#else
3057−# include <assert.h>
3058−#endif
3059− Syntax error
3060−_ACEOF
3061−if ac_fn_c_try_cpp "$LINENO"; then :
30623157
3063−else
3064− # Broken: fails on valid input.
3065−continue
3066−fi
3067−rm -f conftest.err conftest.i conftest.$ac_ext
3158+int
3159+main (void)
3160+{
30683161
3069− # OK, works on sane cases. Now check whether nonexistent headers
3070− # can be detected and how.
3071− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072−/* end confdefs.h. */
3073−#include <ac_nonexistent.h>
3162+ ;
3163+ return 0;
3164+}
30743165_ACEOF
3075−if ac_fn_c_try_cpp "$LINENO"; then :
3076− # Broken: success on invalid input.
3077−continue
3078−else
3079− # Passes both tests.
3080−ac_preproc_ok=:
3081−break
3166+if ac_fn_c_try_compile "$LINENO"
3167+then :
3168+ ac_cv_prog_cc_g=yes
30823169fi
3083−rm -f conftest.err conftest.i conftest.$ac_ext
3084−
3085−done
3086−# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087−rm -f conftest.i conftest.err conftest.$ac_ext
3088−if $ac_preproc_ok; then :
3089− break
3170+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30903171fi
3091−
3092− done
3093− ac_cv_prog_CPP=$CPP
3094−
3172+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3173+fi
3174+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3175+ ac_c_werror_flag=$ac_save_c_werror_flag
30953176fi
3096− CPP=$ac_cv_prog_CPP
3177+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3178+printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3179+if test $ac_test_CFLAGS; then
3180+ CFLAGS=$ac_save_CFLAGS
3181+elif test $ac_cv_prog_cc_g = yes; then
3182+ if test "$GCC" = yes; then
3183+ CFLAGS="-g -O2"
3184+ else
3185+ CFLAGS="-g"
3186+ fi
30973187else
3098− ac_cv_prog_CPP=$CPP
3188+ if test "$GCC" = yes; then
3189+ CFLAGS="-O2"
3190+ else
3191+ CFLAGS=
3192+ fi
30993193fi
3100−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3101−$as_echo "$CPP" >&6; }
3102−ac_preproc_ok=false
3103−for ac_c_preproc_warn_flag in '' yes
3104−do
3105− # Use a header file that comes with gcc, so configuring glibc
3106− # with a fresh cross-compiler works.
3107− # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3108− # <limits.h> exists even on freestanding compilers.
3109− # On the NeXT, cc -E runs the code through the compiler's parser,
3110− # not just through cpp. "Syntax error" is here to catch this case.
3111− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194+ac_prog_cc_stdc=no
3195+if test x$ac_prog_cc_stdc = xno
3196+then :
3197+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3198+printf %s "checking for $CC option to enable C11 features... " >&6; }
3199+if test ${ac_cv_prog_cc_c11+y}
3200+then :
3201+ printf %s "(cached) " >&6
3202+else $as_nop
3203+ ac_cv_prog_cc_c11=no
3204+ac_save_CC=$CC
3205+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31123206/* end confdefs.h. */
3113−#ifdef __STDC__
3114−# include <limits.h>
3115−#else
3116−# include <assert.h>
3117−#endif
3118− Syntax error
3207+$ac_c_conftest_c11_program
31193208_ACEOF
3120−if ac_fn_c_try_cpp "$LINENO"; then :
3121−
3122−else
3123− # Broken: fails on valid input.
3124−continue
3209+for ac_arg in '' -std=gnu11
3210+do
3211+ CC="$ac_save_CC $ac_arg"
3212+ if ac_fn_c_try_compile "$LINENO"
3213+then :
3214+ ac_cv_prog_cc_c11=$ac_arg
3215+fi
3216+rm -f core conftest.err conftest.$ac_objext conftest.beam
3217+ test "x$ac_cv_prog_cc_c11" != "xno" && break
3218+done
3219+rm -f conftest.$ac_ext
3220+CC=$ac_save_CC
31253221fi
3126−rm -f conftest.err conftest.i conftest.$ac_ext
31273222
3128− # OK, works on sane cases. Now check whether nonexistent headers
3129− # can be detected and how.
3130− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223+if test "x$ac_cv_prog_cc_c11" = xno
3224+then :
3225+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3226+printf "%s\n" "unsupported" >&6; }
3227+else $as_nop
3228+ if test "x$ac_cv_prog_cc_c11" = x
3229+then :
3230+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3231+printf "%s\n" "none needed" >&6; }
3232+else $as_nop
3233+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3234+printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3235+ CC="$CC $ac_cv_prog_cc_c11"
3236+fi
3237+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3238+ ac_prog_cc_stdc=c11
3239+fi
3240+fi
3241+if test x$ac_prog_cc_stdc = xno
3242+then :
3243+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3244+printf %s "checking for $CC option to enable C99 features... " >&6; }
3245+if test ${ac_cv_prog_cc_c99+y}
3246+then :
3247+ printf %s "(cached) " >&6
3248+else $as_nop
3249+ ac_cv_prog_cc_c99=no
3250+ac_save_CC=$CC
3251+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31313252/* end confdefs.h. */
3132−#include <ac_nonexistent.h>
3253+$ac_c_conftest_c99_program
31333254_ACEOF
3134−if ac_fn_c_try_cpp "$LINENO"; then :
3135− # Broken: success on invalid input.
3136−continue
3137−else
3138− # Passes both tests.
3139−ac_preproc_ok=:
3140−break
3255+for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3256+do
3257+ CC="$ac_save_CC $ac_arg"
3258+ if ac_fn_c_try_compile "$LINENO"
3259+then :
3260+ ac_cv_prog_cc_c99=$ac_arg
3261+fi
3262+rm -f core conftest.err conftest.$ac_objext conftest.beam
3263+ test "x$ac_cv_prog_cc_c99" != "xno" && break
3264+done
3265+rm -f conftest.$ac_ext
3266+CC=$ac_save_CC
31413267fi
3142−rm -f conftest.err conftest.i conftest.$ac_ext
31433268
3269+if test "x$ac_cv_prog_cc_c99" = xno
3270+then :
3271+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3272+printf "%s\n" "unsupported" >&6; }
3273+else $as_nop
3274+ if test "x$ac_cv_prog_cc_c99" = x
3275+then :
3276+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3277+printf "%s\n" "none needed" >&6; }
3278+else $as_nop
3279+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3280+printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3281+ CC="$CC $ac_cv_prog_cc_c99"
3282+fi
3283+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3284+ ac_prog_cc_stdc=c99
3285+fi
3286+fi
3287+if test x$ac_prog_cc_stdc = xno
3288+then :
3289+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3290+printf %s "checking for $CC option to enable C89 features... " >&6; }
3291+if test ${ac_cv_prog_cc_c89+y}
3292+then :
3293+ printf %s "(cached) " >&6
3294+else $as_nop
3295+ ac_cv_prog_cc_c89=no
3296+ac_save_CC=$CC
3297+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298+/* end confdefs.h. */
3299+$ac_c_conftest_c89_program
3300+_ACEOF
3301+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3302+do
3303+ CC="$ac_save_CC $ac_arg"
3304+ if ac_fn_c_try_compile "$LINENO"
3305+then :
3306+ ac_cv_prog_cc_c89=$ac_arg
3307+fi
3308+rm -f core conftest.err conftest.$ac_objext conftest.beam
3309+ test "x$ac_cv_prog_cc_c89" != "xno" && break
31443310done
3145−# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146−rm -f conftest.i conftest.err conftest.$ac_ext
3147−if $ac_preproc_ok; then :
3311+rm -f conftest.$ac_ext
3312+CC=$ac_save_CC
3313+fi
31483314
3149−else
3150− { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152−as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3153−See \`config.log' for more details" "$LINENO" 5; }
3315+if test "x$ac_cv_prog_cc_c89" = xno
3316+then :
3317+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3318+printf "%s\n" "unsupported" >&6; }
3319+else $as_nop
3320+ if test "x$ac_cv_prog_cc_c89" = x
3321+then :
3322+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3323+printf "%s\n" "none needed" >&6; }
3324+else $as_nop
3325+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3326+printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3327+ CC="$CC $ac_cv_prog_cc_c89"
3328+fi
3329+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3330+ ac_prog_cc_stdc=c89
3331+fi
31543332fi
31553333
31563334ac_ext=c
@@ -3160,287 +3338,192 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
31603338ac_compiler_gnu=$ac_cv_c_compiler_gnu
31613339
31623340
3163−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3164−$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3165−if ${ac_cv_path_GREP+:} false; then :
3166− $as_echo_n "(cached) " >&6
3167−else
3168− if test -z "$GREP"; then
3169− ac_path_GREP_found=false
3170− # Loop through the user's path and test for each of PROGNAME-LIST
3171− as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172−for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3173−do
3174− IFS=$as_save_IFS
3175− test -z "$as_dir" && as_dir=.
3176− for ac_prog in grep ggrep; do
3177− for ac_exec_ext in '' $ac_executable_extensions; do
3178− ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3179− as_fn_executable_p "$ac_path_GREP" || continue
3180−# Check for GNU ac_path_GREP and select it if it is found.
3181− # Check for GNU $ac_path_GREP
3182−case `"$ac_path_GREP" --version 2>&1` in
3183−*GNU*)
3184− ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3185−*)
3186− ac_count=0
3187− $as_echo_n 0123456789 >"conftest.in"
3188− while :
3189− do
3190− cat "conftest.in" "conftest.in" >"conftest.tmp"
3191− mv "conftest.tmp" "conftest.in"
3192− cp "conftest.in" "conftest.nl"
3193− $as_echo 'GREP' >> "conftest.nl"
3194− "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3195− diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3196− as_fn_arith $ac_count + 1 && ac_count=$as_val
3197− if test $ac_count -gt ${ac_path_GREP_max-0}; then
3198− # Best one so far, save it but keep looking for a better one
3199− ac_cv_path_GREP="$ac_path_GREP"
3200− ac_path_GREP_max=$ac_count
3201− fi
3202− # 10*(2^10) chars as input seems more than enough
3203− test $ac_count -gt 10 && break
3204− done
3205− rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3206−esac
3207−
3208− $ac_path_GREP_found && break 3
3209− done
3210− done
3211− done
3212−IFS=$as_save_IFS
3213− if test -z "$ac_cv_path_GREP"; then
3214− as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3215− fi
3216−else
3217− ac_cv_path_GREP=$GREP
3218−fi
3219−
3220−fi
3221−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3222−$as_echo "$ac_cv_path_GREP" >&6; }
3223− GREP="$ac_cv_path_GREP"
3224−
3225−
3226−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3227−$as_echo_n "checking for egrep... " >&6; }
3228−if ${ac_cv_path_EGREP+:} false; then :
3229− $as_echo_n "(cached) " >&6
3230−else
3231− if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3232− then ac_cv_path_EGREP="$GREP -E"
3233− else
3234− if test -z "$EGREP"; then
3235− ac_path_EGREP_found=false
3236− # Loop through the user's path and test for each of PROGNAME-LIST
3237− as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238−for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3239−do
3240− IFS=$as_save_IFS
3241− test -z "$as_dir" && as_dir=.
3242− for ac_prog in egrep; do
3243− for ac_exec_ext in '' $ac_executable_extensions; do
3244− ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3245− as_fn_executable_p "$ac_path_EGREP" || continue
3246−# Check for GNU ac_path_EGREP and select it if it is found.
3247− # Check for GNU $ac_path_EGREP
3248−case `"$ac_path_EGREP" --version 2>&1` in
3249−*GNU*)
3250− ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3251−*)
3252− ac_count=0
3253− $as_echo_n 0123456789 >"conftest.in"
3254− while :
3255− do
3256− cat "conftest.in" "conftest.in" >"conftest.tmp"
3257− mv "conftest.tmp" "conftest.in"
3258− cp "conftest.in" "conftest.nl"
3259− $as_echo 'EGREP' >> "conftest.nl"
3260− "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3261− diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3262− as_fn_arith $ac_count + 1 && ac_count=$as_val
3263− if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3264− # Best one so far, save it but keep looking for a better one
3265− ac_cv_path_EGREP="$ac_path_EGREP"
3266− ac_path_EGREP_max=$ac_count
3267− fi
3268− # 10*(2^10) chars as input seems more than enough
3269− test $ac_count -gt 10 && break
3270− done
3271− rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3272−esac
3273−
3274− $ac_path_EGREP_found && break 3
3275− done
3276− done
3277− done
3278−IFS=$as_save_IFS
3279− if test -z "$ac_cv_path_EGREP"; then
3280− as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3281− fi
3282−else
3283− ac_cv_path_EGREP=$EGREP
3284−fi
3285−
3286− fi
3287−fi
3288−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3289−$as_echo "$ac_cv_path_EGREP" >&6; }
3290− EGREP="$ac_cv_path_EGREP"
3291−
3341+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3342+printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3343+if test ${ac_cv_c_undeclared_builtin_options+y}
3344+then :
3345+ printf %s "(cached) " >&6
3346+else $as_nop
3347+ ac_save_CFLAGS=$CFLAGS
3348+ ac_cv_c_undeclared_builtin_options='cannot detect'
3349+ for ac_arg in '' -fno-builtin; do
3350+ CFLAGS="$ac_save_CFLAGS $ac_arg"
3351+ # This test program should *not* compile successfully.
3352+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353+/* end confdefs.h. */
32923354
3293−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3294−$as_echo_n "checking for ANSI C header files... " >&6; }
3295−if ${ac_cv_header_stdc+:} false; then :
3296− $as_echo_n "(cached) " >&6
3297−else
3298− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355+int
3356+main (void)
3357+{
3358+(void) strchr;
3359+ ;
3360+ return 0;
3361+}
3362+_ACEOF
3363+if ac_fn_c_try_compile "$LINENO"
3364+then :
3365+
3366+else $as_nop
3367+ # This test program should compile successfully.
3368+ # No library function is consistently available on
3369+ # freestanding implementations, so test against a dummy
3370+ # declaration. Include always-available headers on the
3371+ # off chance that they somehow elicit warnings.
3372+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32993373/* end confdefs.h. */
3300−#include <stdlib.h>
3301−#include <stdarg.h>
3302−#include <string.h>
33033374#include <float.h>
3375+#include <limits.h>
3376+#include <stdarg.h>
3377+#include <stddef.h>
3378+extern void ac_decl (int, char *);
33043379
33053380int
3306−main ()
3381+main (void)
33073382{
3383+(void) ac_decl (0, (char *) 0);
3384+ (void) ac_decl;
33083385
33093386 ;
33103387 return 0;
33113388}
33123389_ACEOF
3313−if ac_fn_c_try_compile "$LINENO"; then :
3314− ac_cv_header_stdc=yes
3315−else
3316− ac_cv_header_stdc=no
3390+if ac_fn_c_try_compile "$LINENO"
3391+then :
3392+ if test x"$ac_arg" = x
3393+then :
3394+ ac_cv_c_undeclared_builtin_options='none needed'
3395+else $as_nop
3396+ ac_cv_c_undeclared_builtin_options=$ac_arg
33173397fi
3318−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319−
3320−if test $ac_cv_header_stdc = yes; then
3321− # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3322− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323−/* end confdefs.h. */
3324−#include <string.h>
3325−
3326−_ACEOF
3327−if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328− $EGREP "memchr" >/dev/null 2>&1; then :
3398+ break
3399+fi
3400+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3401+fi
3402+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3403+ done
3404+ CFLAGS=$ac_save_CFLAGS
3405+
3406+fi
3407+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
3408+printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
3409+ case $ac_cv_c_undeclared_builtin_options in #(
3410+ 'cannot detect') :
3411+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3413+as_fn_error $? "cannot make $CC report undeclared builtins
3414+See \`config.log' for more details" "$LINENO" 5; } ;; #(
3415+ 'none needed') :
3416+ ac_c_undeclared_builtin_options='' ;; #(
3417+ *) :
3418+ ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
3419+esac
33293420
3330−else
3331− ac_cv_header_stdc=no
3421+ac_fn_check_decl "$LINENO" "IN_MASK_CREATE" "ac_cv_have_decl_IN_MASK_CREATE" "#include <sys/inotify.h>
3422+" "$ac_c_undeclared_builtin_options" "CFLAGS"
3423+if test "x$ac_cv_have_decl_IN_MASK_CREATE" = xyes
3424+then :
3425+ ac_have_decl=1
3426+else $as_nop
3427+ ac_have_decl=0
33323428fi
3333−rm -f conftest*
3429+printf "%s\n" "#define HAVE_DECL_IN_MASK_CREATE $ac_have_decl" >>confdefs.h
33343430
3431+ac_fn_check_decl "$LINENO" "IN_EXCL_UNLINK" "ac_cv_have_decl_IN_EXCL_UNLINK" "#include <sys/inotify.h>
3432+" "$ac_c_undeclared_builtin_options" "CFLAGS"
3433+if test "x$ac_cv_have_decl_IN_EXCL_UNLINK" = xyes
3434+then :
3435+ ac_have_decl=1
3436+else $as_nop
3437+ ac_have_decl=0
33353438fi
3439+printf "%s\n" "#define HAVE_DECL_IN_EXCL_UNLINK $ac_have_decl" >>confdefs.h
33363440
3337−if test $ac_cv_header_stdc = yes; then
3338− # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3339− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340−/* end confdefs.h. */
3341−#include <stdlib.h>
33423441
3343−_ACEOF
3344−if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345− $EGREP "free" >/dev/null 2>&1; then :
3442+# XXX Do this only for macOS
3443+ac_fn_check_decl "$LINENO" "kFSEventStreamCreateFlagFileEvents" "ac_cv_have_decl_kFSEventStreamCreateFlagFileEvents" "#include <CoreServices/CoreServices.h>
3444+" "$ac_c_undeclared_builtin_options" "CFLAGS"
3445+if test "x$ac_cv_have_decl_kFSEventStreamCreateFlagFileEvents" = xyes
3446+then :
3447+ ac_have_decl=1
3448+else $as_nop
3449+ ac_have_decl=0
3450+fi
3451+printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFILEEVENTS $ac_have_decl" >>confdefs.h
33463452
3347−else
3348− ac_cv_header_stdc=no
3453+ac_fn_check_decl "$LINENO" "kFSEventStreamCreateFlagFullHistory" "ac_cv_have_decl_kFSEventStreamCreateFlagFullHistory" "#include <CoreServices/CoreServices.h>
3454+" "$ac_c_undeclared_builtin_options" "CFLAGS"
3455+if test "x$ac_cv_have_decl_kFSEventStreamCreateFlagFullHistory" = xyes
3456+then :
3457+ ac_have_decl=1
3458+else $as_nop
3459+ ac_have_decl=0
33493460fi
3350−rm -f conftest*
3461+printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFULLHISTORY $ac_have_decl" >>confdefs.h
33513462
3463+ac_fn_check_decl "$LINENO" "kFSEventStreamEventFlagItemCloned" "ac_cv_have_decl_kFSEventStreamEventFlagItemCloned" "#include <CoreServices/CoreServices.h>
3464+" "$ac_c_undeclared_builtin_options" "CFLAGS"
3465+if test "x$ac_cv_have_decl_kFSEventStreamEventFlagItemCloned" = xyes
3466+then :
3467+ ac_have_decl=1
3468+else $as_nop
3469+ ac_have_decl=0
33523470fi
3471+printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMCLONED $ac_have_decl" >>confdefs.h
33533472
3354−if test $ac_cv_header_stdc = yes; then
3355− # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3356− if test "$cross_compiling" = yes; then :
3357− :
3358−else
3359− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360−/* end confdefs.h. */
3361−#include <ctype.h>
3362−#include <stdlib.h>
3363−#if ((' ' & 0x0FF) == 0x020)
3364−# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3365−# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3366−#else
3367−# define ISLOWER(c) \
3368− (('a' <= (c) && (c) <= 'i') \
3369− || ('j' <= (c) && (c) <= 'r') \
3370− || ('s' <= (c) && (c) <= 'z'))
3371−# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3372−#endif
3473+ac_fn_check_decl "$LINENO" "kFSEventStreamEventFlagItemIsHardlink" "ac_cv_have_decl_kFSEventStreamEventFlagItemIsHardlink" "#include <CoreServices/CoreServices.h>
3474+" "$ac_c_undeclared_builtin_options" "CFLAGS"
3475+if test "x$ac_cv_have_decl_kFSEventStreamEventFlagItemIsHardlink" = xyes
3476+then :
3477+ ac_have_decl=1
3478+else $as_nop
3479+ ac_have_decl=0
3480+fi
3481+printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMISHARDLINK $ac_have_decl" >>confdefs.h
33733482
3374−#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3375−int
3376−main ()
3377−{
3378− int i;
3379− for (i = 0; i < 256; i++)
3380− if (XOR (islower (i), ISLOWER (i))
3381− || toupper (i) != TOUPPER (i))
3382− return 2;
3383− return 0;
3384−}
3385−_ACEOF
3386−if ac_fn_c_try_run "$LINENO"; then :
33873483
3388−else
3389− ac_cv_header_stdc=no
3390−fi
3391−rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3392− conftest.$ac_objext conftest.beam conftest.$ac_ext
3393−fi
3484+# Check headers and functions required
3485+ac_header= ac_cache=
3486+for ac_item in $ac_header_c_list
3487+do
3488+ if test $ac_cache; then
3489+ ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3490+ if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3491+ printf "%s\n" "#define $ac_item 1" >> confdefs.h
3492+ fi
3493+ ac_header= ac_cache=
3494+ elif test $ac_header; then
3495+ ac_cache=$ac_item
3496+ else
3497+ ac_header=$ac_item
3498+ fi
3499+done
33943500
3395−fi
3396−fi
3397−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3398−$as_echo "$ac_cv_header_stdc" >&6; }
3399−if test $ac_cv_header_stdc = yes; then
34003501
3401−$as_echo "#define STDC_HEADERS 1" >>confdefs.h
34023502
3403−fi
34043503
3405−# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3406−for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3407− inttypes.h stdint.h unistd.h
3408−do :
3409− as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3410−ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3411−"
3412−if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3413− cat >>confdefs.h <<_ACEOF
3414−#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3415−_ACEOF
34163504
3417−fi
34183505
3419−done
34203506
34213507
3422−for ac_header in time.h
3423−do :
3424− ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
3425−if test "x$ac_cv_header_time_h" = xyes; then :
3426− cat >>confdefs.h <<_ACEOF
3427−#define HAVE_TIME_H 1
3428−_ACEOF
3508+if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3509+then :
3510+
3511+printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
34293512
34303513fi
3514+ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
3515+if test "x$ac_cv_header_time_h" = xyes
3516+then :
3517+ printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
34313518
3432−done
3519+fi
34333520
3434−for ac_func in clock_gettime
3435−do :
3436− ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
3437−if test "x$ac_cv_func_clock_gettime" = xyes; then :
3438− cat >>confdefs.h <<_ACEOF
3439−#define HAVE_CLOCK_GETTIME 1
3440−_ACEOF
3521+ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
3522+if test "x$ac_cv_func_clock_gettime" = xyes
3523+then :
3524+ printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
34413525
34423526fi
3443−done
34443527
34453528
34463529# Output
@@ -3473,8 +3556,8 @@ _ACEOF
34733556 case $ac_val in #(
34743557 *${as_nl}*)
34753558 case $ac_var in #(
3476− *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3477−$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3559+ *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3560+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34783561 esac
34793562 case $ac_var in #(
34803563 _ | IFS | as_nl) ;; #(
@@ -3504,15 +3587,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35043587 /^ac_cv_env_/b end
35053588 t clear
35063589 :clear
3507− s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3590+ s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
35083591 t end
35093592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35103593 :end' >>confcache
35113594if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35123595 if test -w "$cache_file"; then
35133596 if test "x$cache_file" != "x/dev/null"; then
3514− { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3515−$as_echo "$as_me: updating cache $cache_file" >&6;}
3597+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3598+printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
35163599 if test ! -f "$cache_file" || test -h "$cache_file"; then
35173600 cat confcache >"$cache_file"
35183601 else
@@ -3526,8 +3609,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;}
35263609 fi
35273610 fi
35283611 else
3529− { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3530−$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3612+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3613+printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
35313614 fi
35323615fi
35333616rm -f confcache
@@ -3544,7 +3627,7 @@ U=
35443627for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35453628 # 1. Remove the extension, and $U if already installed.
35463629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3547− ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3630+ ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
35483631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35493632 # will be set to the directory where LIBOBJS objects are built.
35503633 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
@@ -3560,8 +3643,8 @@ LTLIBOBJS=$ac_ltlibobjs
35603643ac_write_fail=0
35613644ac_clean_files_save=$ac_clean_files
35623645ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3563−{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3564−$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3646+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3647+printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
35653648as_write_fail=0
35663649cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35673650#! $SHELL
@@ -3584,14 +3667,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35843667
35853668# Be more Bourne compatible
35863669DUALCASE=1; export DUALCASE # for MKS sh
3587−if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3670+as_nop=:
3671+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
3672+then :
35883673 emulate sh
35893674 NULLCMD=:
35903675 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35913676 # is contrary to our usage. Disable this feature.
35923677 alias -g '${1+"$@"}'='"$@"'
35933678 setopt NO_GLOB_SUBST
3594−else
3679+else $as_nop
35953680 case `(set -o) 2>/dev/null` in #(
35963681 *posix*) :
35973682 set -o posix ;; #(
@@ -3601,46 +3686,46 @@ esac
36013686fi
36023687
36033688
3689+
3690+# Reset variables that may have inherited troublesome values from
3691+# the environment.
3692+
3693+# IFS needs to be set, to space, tab, and newline, in precisely that order.
3694+# (If _AS_PATH_WALK were called with IFS unset, it would have the
3695+# side effect of setting IFS to empty, thus disabling word splitting.)
3696+# Quoting is to prevent editors from complaining about space-tab.
36043697as_nl='
36053698'
36063699export as_nl
3607−# Printing a long string crashes Solaris 7 /usr/bin/printf.
3608−as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3609−as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3610−as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3611−# Prefer a ksh shell builtin over an external printf program on Solaris,
3612−# but without wasting forks for bash or zsh.
3613−if test -z "$BASH_VERSION$ZSH_VERSION" \
3614− && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3615− as_echo='print -r --'
3616− as_echo_n='print -rn --'
3617−elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3618− as_echo='printf %s\n'
3619− as_echo_n='printf %s'
3620−else
3621− if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3622− as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3623− as_echo_n='/usr/ucb/echo -n'
3624− else
3625− as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3626− as_echo_n_body='eval
3627− arg=$1;
3628− case $arg in #(
3629− *"$as_nl"*)
3630− expr "X$arg" : "X\\(.*\\)$as_nl";
3631− arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3632− esac;
3633− expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3634− '
3635− export as_echo_n_body
3636− as_echo_n='sh -c $as_echo_n_body as_echo'
3637− fi
3638− export as_echo_body
3639− as_echo='sh -c $as_echo_body as_echo'
3640−fi
3700+IFS=" "" $as_nl"
3701+
3702+PS1='$ '
3703+PS2='> '
3704+PS4='+ '
3705+
3706+# Ensure predictable behavior from utilities with locale-dependent output.
3707+LC_ALL=C
3708+export LC_ALL
3709+LANGUAGE=C
3710+export LANGUAGE
3711+
3712+# We cannot yet rely on "unset" to work, but we need these variables
3713+# to be unset--not just set to an empty or harmless value--now, to
3714+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
3715+# also avoids known problems related to "unset" and subshell syntax
3716+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3717+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3718+do eval test \${$as_var+y} \
3719+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3720+done
3721+
3722+# Ensure that fds 0, 1, and 2 are open.
3723+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3724+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3725+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
36413726
36423727# The user is always right.
3643−if test "${PATH_SEPARATOR+set}" != set; then
3728+if ${PATH_SEPARATOR+false} :; then
36443729 PATH_SEPARATOR=:
36453730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36463731 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
@@ -3649,13 +3734,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
36493734fi
36503735
36513736
3652−# IFS
3653−# We need space, tab and new line, in precisely that order. Quoting is
3654−# there to prevent editors from complaining about space-tab.
3655−# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3656−# splitting by setting IFS to empty value.)
3657−IFS=" "" $as_nl"
3658−
36593737# Find who we are. Look in the path if we contain no directory separator.
36603738as_myself=
36613739case $0 in #((
@@ -3664,8 +3742,12 @@ case $0 in #((
36643742for as_dir in $PATH
36653743do
36663744 IFS=$as_save_IFS
3667− test -z "$as_dir" && as_dir=.
3668− test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3745+ case $as_dir in #(((
3746+ '') as_dir=./ ;;
3747+ */) ;;
3748+ *) as_dir=$as_dir/ ;;
3749+ esac
3750+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break
36693751 done
36703752IFS=$as_save_IFS
36713753
@@ -3677,30 +3759,10 @@ if test "x$as_myself" = x; then
36773759 as_myself=$0
36783760fi
36793761if test ! -f "$as_myself"; then
3680− $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3762+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36813763 exit 1
36823764fi
36833765
3684−# Unset variables that we do not need and which cause bugs (e.g. in
3685−# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3686−# suppresses any "Segmentation fault" message there. '((' could
3687−# trigger a bug in pdksh 5.2.14.
3688−for as_var in BASH_ENV ENV MAIL MAILPATH
3689−do eval test x\${$as_var+set} = xset \
3690− && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3691−done
3692−PS1='$ '
3693−PS2='> '
3694−PS4='+ '
3695−
3696−# NLS nuisances.
3697−LC_ALL=C
3698−export LC_ALL
3699−LANGUAGE=C
3700−export LANGUAGE
3701−
3702−# CDPATH.
3703−(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37043766
37053767
37063768# as_fn_error STATUS ERROR [LINENO LOG_FD]
@@ -3713,13 +3775,14 @@ as_fn_error ()
37133775 as_status=$1; test $as_status -eq 0 && as_status=1
37143776 if test "$4"; then
37153777 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3716− $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3778+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37173779 fi
3718− $as_echo "$as_me: error: $2" >&2
3780+ printf "%s\n" "$as_me: error: $2" >&2
37193781 as_fn_exit $as_status
37203782} # as_fn_error
37213783
37223784
3785+
37233786# as_fn_set_status STATUS
37243787# -----------------------
37253788# Set $? to STATUS, without forking.
@@ -3746,18 +3809,20 @@ as_fn_unset ()
37463809 { eval $1=; unset $1;}
37473810}
37483811as_unset=as_fn_unset
3812+
37493813# as_fn_append VAR VALUE
37503814# ----------------------
37513815# Append the text in VALUE to the end of the definition contained in VAR. Take
37523816# advantage of any shell optimizations that allow amortized linear growth over
37533817# repeated appends, instead of the typical quadratic growth present in naive
37543818# implementations.
3755−if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3819+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3820+then :
37563821 eval 'as_fn_append ()
37573822 {
37583823 eval $1+=\$2
37593824 }'
3760−else
3825+else $as_nop
37613826 as_fn_append ()
37623827 {
37633828 eval $1=\$$1\$2
@@ -3769,12 +3834,13 @@ fi # as_fn_append
37693834# Perform arithmetic evaluation on the ARGs, and store the result in the
37703835# global $as_val. Take advantage of shells that can avoid forks. The arguments
37713836# must be portable across $(()) and expr.
3772−if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3837+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
3838+then :
37733839 eval 'as_fn_arith ()
37743840 {
37753841 as_val=$(( $* ))
37763842 }'
3777−else
3843+else $as_nop
37783844 as_fn_arith ()
37793845 {
37803846 as_val=`expr "$@" || test $? -eq 1`
@@ -3805,7 +3871,7 @@ as_me=`$as_basename -- "$0" ||
38053871$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38063872 X"$0" : 'X\(//\)$' \| \
38073873 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3808−$as_echo X/"$0" |
3874+printf "%s\n" X/"$0" |
38093875 sed '/^.*\/\([^/][^/]*\)\/*$/{
38103876 s//\1/
38113877 q
@@ -3827,6 +3893,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38273893as_cr_digits='0123456789'
38283894as_cr_alnum=$as_cr_Letters$as_cr_digits
38293895
3896+
3897+# Determine whether it's possible to make 'echo' print without a newline.
3898+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3899+# for compatibility with existing Makefiles.
38303900ECHO_C= ECHO_N= ECHO_T=
38313901case `echo -n x` in #(((((
38323902-n*)
@@ -3840,6 +3910,12 @@ case `echo -n x` in #(((((
38403910 ECHO_N='-n';;
38413911esac
38423912
3913+# For backward compatibility with old third-party macros, we provide
3914+# the shell variables $as_echo and $as_echo_n. New code should use
3915+# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
3916+as_echo='printf %s\n'
3917+as_echo_n='printf %s'
3918+
38433919rm -f conf$$ conf$$.exe conf$$.file
38443920if test -d conf$$.dir; then
38453921 rm -f conf$$.dir/conf$$.file
@@ -3881,7 +3957,7 @@ as_fn_mkdir_p ()
38813957 as_dirs=
38823958 while :; do
38833959 case $as_dir in #(
3884− *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3960+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38853961 *) as_qdir=$as_dir;;
38863962 esac
38873963 as_dirs="'$as_qdir' $as_dirs"
@@ -3890,7 +3966,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38903966 X"$as_dir" : 'X\(//\)[^/]' \| \
38913967 X"$as_dir" : 'X\(//\)$' \| \
38923968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3893−$as_echo X"$as_dir" |
3969+printf "%s\n" X"$as_dir" |
38943970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38953971 s//\1/
38963972 q
@@ -3952,8 +4028,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39524028# report actual input values of CONFIG_FILES etc. instead of their
39534029# values after options handling.
39544030ac_log="
3955−This file was extended by streamly $as_me 0.7.2, which was
3956−generated by GNU Autoconf 2.69. Invocation command line was
4031+This file was extended by streamly $as_me 0.8.0, which was
4032+generated by GNU Autoconf 2.71. Invocation command line was
39574033
39584034 CONFIG_FILES = $CONFIG_FILES
39594035 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -3999,17 +4075,20 @@ Usage: $0 [OPTION]... [TAG]...
39994075Configuration headers:
40004076$config_headers
40014077
4002−Report bugs to <streamly@composewell.com>."
4078+Report bugs to <streamly@composewell.com>.
4079+streamly home page: <https://streamly.composewell.com>."
40034080
40044081_ACEOF
4082+ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4083+ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
40054084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4006−ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4085+ac_cs_config='$ac_cs_config_escaped'
40074086ac_cs_version="\\
4008−streamly config.status 0.7.2
4009−configured by $0, generated by GNU Autoconf 2.69,
4087+streamly config.status 0.8.0
4088+configured by $0, generated by GNU Autoconf 2.71,
40104089 with options \\"\$ac_cs_config\\"
40114090
4012−Copyright (C) 2012 Free Software Foundation, Inc.
4091+Copyright (C) 2021 Free Software Foundation, Inc.
40134092This config.status script is free software; the Free Software Foundation
40144093gives unlimited permission to copy, distribute and modify it."
40154094
@@ -4046,15 +4125,15 @@ do
40464125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40474126 ac_cs_recheck=: ;;
40484127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4049− $as_echo "$ac_cs_version"; exit ;;
4128+ printf "%s\n" "$ac_cs_version"; exit ;;
40504129 --config | --confi | --conf | --con | --co | --c )
4051− $as_echo "$ac_cs_config"; exit ;;
4130+ printf "%s\n" "$ac_cs_config"; exit ;;
40524131 --debug | --debu | --deb | --de | --d | -d )
40534132 debug=: ;;
40544133 --header | --heade | --head | --hea )
40554134 $ac_shift
40564135 case $ac_optarg in
4057− *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4136+ *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40584137 esac
40594138 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40604139 ac_need_defaults=false;;
@@ -4063,7 +4142,7 @@ do
40634142 as_fn_error $? "ambiguous option: \`$1'
40644143Try \`$0 --help' for more information.";;
40654144 --help | --hel | -h )
4066− $as_echo "$ac_cs_usage"; exit ;;
4145+ printf "%s\n" "$ac_cs_usage"; exit ;;
40674146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40684147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40694148 ac_cs_silent=: ;;
@@ -4091,7 +4170,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40914170if \$ac_cs_recheck; then
40924171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40934172 shift
4094− \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4173+ \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
40954174 CONFIG_SHELL='$SHELL'
40964175 export CONFIG_SHELL
40974176 exec "\$@"
@@ -4105,7 +4184,7 @@ exec 5>>config.log
41054184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41064185## Running $as_me. ##
41074186_ASBOX
4108− $as_echo "$ac_log"
4187+ printf "%s\n" "$ac_log"
41094188} >&5
41104189
41114190_ACEOF
@@ -4130,7 +4209,7 @@ done
41304209# We use the long form for the default assignment because of an extremely
41314210# bizarre bug on SunOS 4.1.3.
41324211if $ac_need_defaults; then
4133− test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4212+ test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
41344213fi
41354214
41364215# Have a temporary directory for convenience. Make it in the build tree
@@ -4308,7 +4387,7 @@ do
43084387 esac ||
43094388 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43104389 esac
4311− case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4390+ case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43124391 as_fn_append ac_file_inputs " '$ac_f'"
43134392 done
43144393
@@ -4316,17 +4395,17 @@ do
43164395 # use $as_me), people would be surprised to read:
43174396 # /* config.h. Generated by config.status. */
43184397 configure_input='Generated from '`
4319− $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4398+ printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43204399 `' by configure.'
43214400 if test x"$ac_file" != x-; then
43224401 configure_input="$ac_file. $configure_input"
4323− { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4324−$as_echo "$as_me: creating $ac_file" >&6;}
4402+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4403+printf "%s\n" "$as_me: creating $ac_file" >&6;}
43254404 fi
43264405 # Neutralize special characters interpreted by sed in replacement strings.
43274406 case $configure_input in #(
43284407 *\&* | *\|* | *\\* )
4329− ac_sed_conf_input=`$as_echo "$configure_input" |
4408+ ac_sed_conf_input=`printf "%s\n" "$configure_input" |
43304409 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43314410 *) ac_sed_conf_input=$configure_input;;
43324411 esac
@@ -4343,7 +4422,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43434422 X"$ac_file" : 'X\(//\)[^/]' \| \
43444423 X"$ac_file" : 'X\(//\)$' \| \
43454424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4346−$as_echo X"$ac_file" |
4425+printf "%s\n" X"$ac_file" |
43474426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43484427 s//\1/
43494428 q
@@ -4367,9 +4446,9 @@ $as_echo X"$ac_file" |
43674446case "$ac_dir" in
43684447.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43694448*)
4370− ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4449+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
43714450 # A ".." for each directory in $ac_dir_suffix.
4372− ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4451+ ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43734452 case $ac_top_builddir_sub in
43744453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43754454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
@@ -4405,20 +4484,20 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44054484 #
44064485 if test x"$ac_file" != x-; then
44074486 {
4408− $as_echo "/* $configure_input */" \
4487+ printf "%s\n" "/* $configure_input */" >&1 \
44094488 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
44104489 } >"$ac_tmp/config.h" \
44114490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44124491 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4413− { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4414−$as_echo "$as_me: $ac_file is unchanged" >&6;}
4492+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4493+printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
44154494 else
44164495 rm -f "$ac_file"
44174496 mv "$ac_tmp/config.h" "$ac_file" \
44184497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44194498 fi
44204499 else
4421− $as_echo "/* $configure_input */" \
4500+ printf "%s\n" "/* $configure_input */" >&1 \
44224501 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
44234502 || as_fn_error $? "could not create -" "$LINENO" 5
44244503 fi
@@ -4459,7 +4538,8 @@ if test "$no_create" != yes; then
44594538 $ac_cs_success || as_fn_exit 1
44604539fi
44614540if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4462− { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4463−$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4541+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4542+printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44644543fi
44654544
4545+
configure.ac+1−1
@@ -3,7 +3,7 @@
33# See https://www.gnu.org/software/autoconf/manual/autoconf.html for help on
44# the macros used in this file.
55
6−AC_INIT([streamly], [0.7.2], [streamly@composewell.com], [streamly])
6+AC_INIT([streamly], [0.8.0], [streamly@composewell.com], [streamly], [https://streamly.composewell.com])
77
88# To suppress "WARNING: unrecognized options: --with-compiler"
99AC_ARG_WITH([compiler], [GHC])
credits/CONTRIBUTORS.md+4−3
@@ -4,21 +4,22 @@ please see https://github.com/composewell/streamly/issues.
44Use `git shortlog -sn tag1...tag2` on the git repository to get a list of
55contributors between two repository tags.
66
7−## HEAD
7+## 0.8.0
88
99* Harendra Kumar
1010* Adithya Kumar
1111* Pranay Sashank
12+* Ranjeet Kumar Ranjan
1213* Anurag Hooda
1314* Ahmed Zaheer Dadarkar
14−* Ranjeet Ranjan
1515* Shruti Umat
16+* Joseph Koshy (Google LLC.)
1617* Sanchayan Maity
1718* Kirill Elagin
1819* Shlok Datye
1920* Julian Ospald
21+* George Thomas
2022* endgame
21−* Google LLC.
2223
2324## 0.7.3
2425
credits/COPYRIGHTS.md+1−1
@@ -3,7 +3,7 @@ currently shipped with the package. To find parts of the code where the
33original or modified code has been included please search for the copyright
44notices in the individual files.
55
6−## Unreleased
6+## 0.8.0
77
88* macOS FS Event handling C code adapted from hfsevents package:
99 * Copyright (c) 2012, Luite Stegeman
streamly.cabal+2−1
@@ -1,6 +1,6 @@
11cabal-version: 2.2
22name: streamly
3−version: 0.7.2
3+version: 0.8.0
44synopsis: Dataflow programming and declarative concurrency
55description:
66 Browse the documentation at https://streamly.composewell.com.
@@ -36,6 +36,7 @@ tested-with: GHC==8.0.2
3636 , GHC==8.6.5
3737 , GHC==8.8.4
3838 , GHC==8.10.4
39+ , GHC==9.0.1
3940author: Composewell Technologies
4041maintainer: streamly@composewell.com
4142copyright: 2017 Composewell Technologies