on master help sign in
Bump the version to 0.8.0
4f629b8Harendra Kumar
Changelog.md+1−1
@@ -2,7 +2,7 @@
2
2
3<!-- See rendered changelog at https://streamly.composewell.com -->
3<!-- See rendered changelog at https://streamly.composewell.com -->
4
4
5−## Unreleased
5+## 0.8.0
6
6
7See [API Changelog](docs/API-changelog.txt) for a complete list of signature
7See [API Changelog](docs/API-changelog.txt) for a complete list of signature
8changes and new APIs introduced.
8changes and new APIs introduced.
bin/mk-hscope.sh+2−2
@@ -1,7 +1,7 @@
1#!/usr/bin/env bash
1#!/usr/bin/env bash
2
2
3−GHC_VERSION=8.8.3
3+GHC_VERSION=8.10.4
4−STREAMLY_VERSION=0.7.2
4+STREAMLY_VERSION=0.8.0
5
5
6case `uname` in
6case `uname` in
7 Darwin) SYSTEM=x86_64-osx;;
7 Darwin) SYSTEM=x86_64-osx;;
bin/test.sh+4−2
@@ -1,5 +1,7 @@
1#!/usr/bin/env bash
1#!/usr/bin/env bash
2
2
3+STREAMLY_VERSION=0.8.0
4+
3#------------------------------------------------------------------------------
5#------------------------------------------------------------------------------
4# Script
6# Script
5#------------------------------------------------------------------------------
7#------------------------------------------------------------------------------
@@ -129,7 +131,7 @@ target_exe_extra_args () {
129if test "$COVERAGE" -eq "1"
131if test "$COVERAGE" -eq "1"
130then
132then
131 # Used to determine the hpc tix dir
133 # Used to determine the hpc tix dir
132− PACKAGE_FULL_NAME=streamly-0.7.2
134+ PACKAGE_FULL_NAME=streamly-$STREAMLY_VERSION
133 case `uname` in
135 case `uname` in
134 Linux) SYSTEM=x86_64-linux ;;
136 Linux) SYSTEM=x86_64-linux ;;
135 *) echo "Unsupported system"; exit 1 ;;
137 *) echo "Unsupported system"; exit 1 ;;
@@ -161,7 +163,7 @@ fi
161# Run coverage reports
163# Run coverage reports
162#-----------------------------------------------------------------------------
164#-----------------------------------------------------------------------------
163
165
164−PACKAGE_NAME=streamly-0.7.2
166+PACKAGE_NAME=streamly-$STREAMLY_VERSION
165MIX_DIR=$BUILD_DIR/build/$SYSTEM/ghc-${GHC_VERSION}/$PACKAGE_NAME/hpc/vanilla/mix/$PACKAGE_NAME/
167MIX_DIR=$BUILD_DIR/build/$SYSTEM/ghc-${GHC_VERSION}/$PACKAGE_NAME/hpc/vanilla/mix/$PACKAGE_NAME/
166ALLTIX=$BUILD_DIR/hpc/all.tix
168ALLTIX=$BUILD_DIR/hpc/all.tix
167
169
configure+1445−1365
@@ -1,11 +1,12 @@
1#! /bin/sh
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
2# 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.
4#
4#
5# Report bugs to <streamly@composewell.com>.
5# Report bugs to <streamly@composewell.com>.
6#
6#
7#
7#
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.
9#
10#
10#
11#
11# This configure script is free software; the Free Software Foundation
12# This configure script is free software; the Free Software Foundation
@@ -16,14 +17,16 @@
16
17
17# Be more Bourne compatible
18# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19DUALCASE=1; export DUALCASE # for MKS sh
20+as_nop=:
19−if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22+then :
20 emulate sh
23 emulate sh
21 NULLCMD=:
24 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
26 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
28 setopt NO_GLOB_SUBST
26−else
29+else $as_nop
27 case `(set -o) 2>/dev/null` in #(
30 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
31 *posix*) :
29 set -o posix ;; #(
32 set -o posix ;; #(
@@ -33,46 +36,46 @@ esac
33fi
36fi
34
37
35
38
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.
36as_nl='
47as_nl='
37'
48'
38export as_nl
49export as_nl
39−# Printing a long string crashes Solaris 7 /usr/bin/printf.
50+IFS=" "" $as_nl"
40−as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
51+
41−as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
52+PS1='$ '
42−as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
53+PS2='> '
43−# Prefer a ksh shell builtin over an external printf program on Solaris,
54+PS4='+ '
44−# but without wasting forks for bash or zsh.
55+
45−if test -z "$BASH_VERSION$ZSH_VERSION" \
56+# Ensure predictable behavior from utilities with locale-dependent output.
46− && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
57+LC_ALL=C
47− as_echo='print -r --'
58+export LC_ALL
48− as_echo_n='print -rn --'
59+LANGUAGE=C
49−elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
60+export LANGUAGE
50− as_echo='printf %s\n'
61+
51− as_echo_n='printf %s'
62+# We cannot yet rely on "unset" to work, but we need these variables
52−else
63+# to be unset--not just set to an empty or harmless value--now, to
53− if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
64+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
54− as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
65+# also avoids known problems related to "unset" and subshell syntax
55− as_echo_n='/usr/ucb/echo -n'
66+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
56− else
67+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
57− as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
68+do eval test \${$as_var+y} \
58− as_echo_n_body='eval
69+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
59− arg=$1;
70+done
60− case $arg in #(
71+
61− *"$as_nl"*)
72+# Ensure that fds 0, 1, and 2 are open.
62− expr "X$arg" : "X\\(.*\\)$as_nl";
73+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
63− arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
74+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
64− esac;
75+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
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
73
76
74# The user is always right.
77# The user is always right.
75−if test "${PATH_SEPARATOR+set}" != set; then
78+if ${PATH_SEPARATOR+false} :; then
76 PATH_SEPARATOR=:
79 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
@@ -81,13 +84,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
81fi
84fi
82
85
83
86
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−
91# Find who we are. Look in the path if we contain no directory separator.
87# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
88as_myself=
93case $0 in #((
89case $0 in #((
@@ -96,8 +92,12 @@ case $0 in #((
96for as_dir in $PATH
92for as_dir in $PATH
97do
93do
98 IFS=$as_save_IFS
94 IFS=$as_save_IFS
95+ case $as_dir in #(((
99− test -z "$as_dir" && as_dir=.
96+ '') as_dir=./ ;;
97+ */) ;;
98+ *) as_dir=$as_dir/ ;;
99+ esac
100− test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
101 done
102IFS=$as_save_IFS
102IFS=$as_save_IFS
103
103
@@ -109,30 +109,10 @@ if test "x$as_myself" = x; then
109 as_myself=$0
109 as_myself=$0
110fi
110fi
111if test ! -f "$as_myself"; then
111if 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
113 exit 1
113 exit 1
114fi
114fi
115
115
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
136
116
137# Use a proper internal environment variable to ensure we don't fall
117# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
118 # into an infinite loop, continuously re-executing ourselves.
@@ -154,20 +134,22 @@ esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
135# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
136# out after a failed `exec'.
157−$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
137+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
158−as_fn_exit 255
138+exit 255
159 fi
139 fi
160 # We don't want this to propagate to other subprocesses.
140 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
141 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
142if test "x$CONFIG_SHELL" = x; then
143+ as_bourne_compatible="as_nop=:
163− as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144+if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145+then :
164 emulate sh
146 emulate sh
165 NULLCMD=:
147 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
149 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
151 setopt NO_GLOB_SUBST
170−else
152+else \$as_nop
171 case \`(set -o) 2>/dev/null\` in #(
153 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
154 *posix*) :
173 set -o posix ;; #(
155 set -o posix ;; #(
@@ -187,42 +169,52 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171as_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 :
191
174
192−else
175+else \$as_nop
193 exitcode=1; echo positional parameters were not saved.
176 exitcode=1; echo positional parameters were not saved.
194fi
177fi
195test x\$exitcode = x0 || exit 1
178test x\$exitcode = x0 || exit 1
179+blah=\$(echo \$(echo blah))
180+test x\"\$blah\" = xblah || exit 1
196test -x / || exit 1"
181test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 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
185+ 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 :
186+ if (eval "$as_required") 2>/dev/null
187+then :
203 as_have_required=yes
188 as_have_required=yes
204−else
189+else $as_nop
205 as_have_required=no
190 as_have_required=no
206fi
191fi
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 :
208
194
209−else
195+else $as_nop
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
197as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
199do
214 IFS=$as_save_IFS
200 IFS=$as_save_IFS
201+ case $as_dir in #(((
215− test -z "$as_dir" && as_dir=.
202+ '') as_dir=./ ;;
203+ */) ;;
204+ *) as_dir=$as_dir/ ;;
205+ esac
216 as_found=:
206 as_found=:
217 case $as_dir in #(
207 case $as_dir in #(
218 /*)
208 /*)
219 for as_base in sh bash ksh sh5; do
209 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
210 # Try only shells that exist, to save several forks.
221− as_shell=$as_dir/$as_base
211+ as_shell=$as_dir$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 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 :
224 CONFIG_SHELL=$as_shell as_have_required=yes
215 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 :
226 break 2
218 break 2
227fi
219fi
228fi
220fi
@@ -230,14 +222,21 @@ fi
230 esac
222 esac
231 as_found=false
223 as_found=false
232done
224done
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; }
237IFS=$as_save_IFS
225IFS=$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
238
236
239
237
240− if test "x$CONFIG_SHELL" != x; then :
238+ if test "x$CONFIG_SHELL" != x
239+then :
241 export CONFIG_SHELL
240 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
241 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
242# neutralization value for shells without unset; and this also
@@ -255,18 +254,19 @@ esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
255# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
256# 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
259exit 255
258exit 255
260fi
259fi
261
260
262− if test x$as_have_required = xno; then :
261+ if test x$as_have_required = xno
262+then :
263− $as_echo "$0: This script requires a shell more modern than all"
263+ printf "%s\n" "$0: This script requires a shell more modern than all"
264− $as_echo "$0: the shells that I found on your system."
264+ printf "%s\n" "$0: the shells that I found on your system."
265− if test x${ZSH_VERSION+set} = xset ; then
265+ if test ${ZSH_VERSION+y} ; then
266− $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266+ printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267− $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267+ printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
268 else
269− $as_echo "$0: Please tell bug-autoconf@gnu.org and
269+ printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270$0: streamly@composewell.com about your system, including
270$0: streamly@composewell.com about your system, including
271$0: any error possibly output before this message. Then
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
272$0: install a modern shell, or manually run the script
@@ -294,6 +294,7 @@ as_fn_unset ()
294}
294}
295as_unset=as_fn_unset
295as_unset=as_fn_unset
296
296
297+
297# as_fn_set_status STATUS
298# as_fn_set_status STATUS
298# -----------------------
299# -----------------------
299# Set $? to STATUS, without forking.
300# Set $? to STATUS, without forking.
@@ -311,6 +312,14 @@ as_fn_exit ()
311 as_fn_set_status $1
312 as_fn_set_status $1
312 exit $1
313 exit $1
313} # as_fn_exit
314} # 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
314
323
315# as_fn_mkdir_p
324# as_fn_mkdir_p
316# -------------
325# -------------
@@ -325,7 +334,7 @@ as_fn_mkdir_p ()
325 as_dirs=
334 as_dirs=
326 while :; do
335 while :; do
327 case $as_dir in #(
336 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"`;; #'(
329 *) as_qdir=$as_dir;;
338 *) as_qdir=$as_dir;;
330 esac
339 esac
331 as_dirs="'$as_qdir' $as_dirs"
340 as_dirs="'$as_qdir' $as_dirs"
@@ -334,7 +343,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337−$as_echo X"$as_dir" |
346+printf "%s\n" X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
348 s//\1/
340 q
349 q
@@ -373,12 +382,13 @@ as_fn_executable_p ()
373# advantage of any shell optimizations that allow amortized linear growth over
382# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
383# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
384# 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 :
377 eval 'as_fn_append ()
387 eval 'as_fn_append ()
378 {
388 {
379 eval $1+=\$2
389 eval $1+=\$2
380 }'
390 }'
381−else
391+else $as_nop
382 as_fn_append ()
392 as_fn_append ()
383 {
393 {
384 eval $1=\$$1\$2
394 eval $1=\$$1\$2
@@ -390,18 +400,27 @@ fi # as_fn_append
390# Perform arithmetic evaluation on the ARGs, and store the result in the
400# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
402# 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 :
394 eval 'as_fn_arith ()
405 eval 'as_fn_arith ()
395 {
406 {
396 as_val=$(( $* ))
407 as_val=$(( $* ))
397 }'
408 }'
398−else
409+else $as_nop
399 as_fn_arith ()
410 as_fn_arith ()
400 {
411 {
401 as_val=`expr "$@" || test $? -eq 1`
412 as_val=`expr "$@" || test $? -eq 1`
402 }
413 }
403fi # as_fn_arith
414fi # as_fn_arith
404
415
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
405
424
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
426# ----------------------------------------
@@ -413,9 +432,9 @@ as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
432 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
433 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 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
417 fi
436 fi
418− $as_echo "$as_me: error: $2" >&2
437+ printf "%s\n" "$as_me: error: $2" >&2
419 as_fn_exit $as_status
438 as_fn_exit $as_status
420} # as_fn_error
439} # as_fn_error
421
440
@@ -442,7 +461,7 @@ as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445−$as_echo X/"$0" |
464+printf "%s\n" X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
466 s//\1/
448 q
467 q
@@ -486,7 +505,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
486 s/-\n.*//
505 s/-\n.*//
487 ' >$as_me.lineno &&
506 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
507 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; }
490
509
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
511 # 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
500 exit
519 exit
501}
520}
502
521
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.
503ECHO_C= ECHO_N= ECHO_T=
526ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
527case `echo -n x` in #(((((
505-n*)
528-n*)
@@ -513,6 +536,13 @@ case `echo -n x` in #(((((
513 ECHO_N='-n';;
536 ECHO_N='-n';;
514esac
537esac
515
538
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+
516rm -f conf$$ conf$$.exe conf$$.file
546rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
547if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
548 rm -f conf$$.dir/conf$$.file
@@ -580,52 +610,45 @@ MAKEFLAGS=
580# Identity of this package.
610# Identity of this package.
581PACKAGE_NAME='streamly'
611PACKAGE_NAME='streamly'
582PACKAGE_TARNAME='streamly'
612PACKAGE_TARNAME='streamly'
583−PACKAGE_VERSION='0.7.2'
613+PACKAGE_VERSION='0.8.0'
584−PACKAGE_STRING='streamly 0.7.2'
614+PACKAGE_STRING='streamly 0.8.0'
585PACKAGE_BUGREPORT='streamly@composewell.com'
615PACKAGE_BUGREPORT='streamly@composewell.com'
586−PACKAGE_URL=''
616+PACKAGE_URL='https://streamly.composewell.com'
587
617
588# Factoring default headers for most tests.
618# Factoring default headers for most tests.
589ac_includes_default="\
619ac_includes_default="\
590−#include <stdio.h>
620+#include <stddef.h>
591−#ifdef HAVE_SYS_TYPES_H
621+#ifdef HAVE_STDIO_H
592−# include <sys/types.h>
622+# include <stdio.h>
593−#endif
594−#ifdef HAVE_SYS_STAT_H
595−# include <sys/stat.h>
596#endif
623#endif
597−#ifdef STDC_HEADERS
624+#ifdef HAVE_STDLIB_H
598# include <stdlib.h>
625# include <stdlib.h>
599−# include <stddef.h>
600−#else
601−# ifdef HAVE_STDLIB_H
602−# include <stdlib.h>
603−# endif
604#endif
626#endif
605#ifdef HAVE_STRING_H
627#ifdef HAVE_STRING_H
606−# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607−# include <memory.h>
608−# endif
609# include <string.h>
628# include <string.h>
610#endif
629#endif
611−#ifdef HAVE_STRINGS_H
612−# include <strings.h>
613−#endif
614#ifdef HAVE_INTTYPES_H
630#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
631# include <inttypes.h>
616#endif
632#endif
617#ifdef HAVE_STDINT_H
633#ifdef HAVE_STDINT_H
618# include <stdint.h>
634# include <stdint.h>
619#endif
635#endif
636+#ifdef HAVE_STRINGS_H
637+# include <strings.h>
638+#endif
639+#ifdef HAVE_SYS_TYPES_H
640+# include <sys/types.h>
641+#endif
642+#ifdef HAVE_SYS_STAT_H
643+# include <sys/stat.h>
644+#endif
620#ifdef HAVE_UNISTD_H
645#ifdef HAVE_UNISTD_H
621# include <unistd.h>
646# include <unistd.h>
622#endif"
647#endif"
623
648
649+ac_header_c_list=
624ac_subst_vars='LTLIBOBJS
650ac_subst_vars='LTLIBOBJS
625LIBOBJS
651LIBOBJS
626−EGREP
627−GREP
628−CPP
629OBJEXT
652OBJEXT
630EXEEXT
653EXEEXT
631ac_ct_CC
654ac_ct_CC
@@ -684,8 +707,7 @@ CC
684CFLAGS
707CFLAGS
685LDFLAGS
708LDFLAGS
686LIBS
709LIBS
687−CPPFLAGS
710+CPPFLAGS'
688−CPP'
689
711
690
712
691# Initialize some variables set by options.
713# Initialize some variables set by options.
@@ -754,8 +776,6 @@ do
754 *) ac_optarg=yes ;;
776 *) ac_optarg=yes ;;
755 esac
777 esac
756
778
757− # Accept the important Cygnus configure options, so we can diagnose typos.
758−
759 case $ac_dashdash$ac_option in
779 case $ac_dashdash$ac_option in
760 --)
780 --)
761 ac_dashdash=yes ;;
781 ac_dashdash=yes ;;
@@ -796,9 +816,9 @@ do
796 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
816 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
797 # Reject names that are not valid shell variable names.
817 # Reject names that are not valid shell variable names.
798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818 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'"
800 ac_useropt_orig=$ac_useropt
820 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'`
802 case $ac_user_opts in
822 case $ac_user_opts in
803 *"
823 *"
804"enable_$ac_useropt"
824"enable_$ac_useropt"
@@ -822,9 +842,9 @@ do
822 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
842 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
823 # Reject names that are not valid shell variable names.
843 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844 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'"
826 ac_useropt_orig=$ac_useropt
846 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'`
828 case $ac_user_opts in
848 case $ac_user_opts in
829 *"
849 *"
830"enable_$ac_useropt"
850"enable_$ac_useropt"
@@ -1035,9 +1055,9 @@ do
1035 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1056 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 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'"
1039 ac_useropt_orig=$ac_useropt
1059 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'`
1041 case $ac_user_opts in
1061 case $ac_user_opts in
1042 *"
1062 *"
1043"with_$ac_useropt"
1063"with_$ac_useropt"
@@ -1051,9 +1071,9 @@ do
1051 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1072 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 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'"
1055 ac_useropt_orig=$ac_useropt
1075 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'`
1057 case $ac_user_opts in
1077 case $ac_user_opts in
1058 *"
1078 *"
1059"with_$ac_useropt"
1079"with_$ac_useropt"
@@ -1097,9 +1117,9 @@ Try \`$0 --help' for more information"
1097
1117
1098 *)
1118 *)
1099 # FIXME: should be removed in autoconf 3.0.
1119 # 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
1101 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 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
1103 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1123 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1104 ;;
1124 ;;
1105
1125
@@ -1115,7 +1135,7 @@ if test -n "$ac_unrecognized_opts"; then
1115 case $enable_option_checking in
1135 case $enable_option_checking in
1116 no) ;;
1136 no) ;;
1117 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1137 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 ;;
1119 esac
1139 esac
1120fi
1140fi
1121
1141
@@ -1179,7 +1199,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1180 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1181 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1182−$as_echo X"$as_myself" |
1202+printf "%s\n" X"$as_myself" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1204 s//\1/
1185 q
1205 q
@@ -1236,7 +1256,7 @@ if test "$ac_init_help" = "long"; then
1236 # Omit some internal or obsolete options to make the list less imposing.
1256 # Omit some internal or obsolete options to make the list less imposing.
1237 # This message is too long to be a string in the A/UX 3.1 sh.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1238 cat <<_ACEOF
1258 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.
1240
1260
1241Usage: $0 [OPTION]... [VAR=VALUE]...
1261Usage: $0 [OPTION]... [VAR=VALUE]...
1242
1262
@@ -1298,7 +1318,7 @@ fi
1298
1318
1299if test -n "$ac_init_help"; then
1319if test -n "$ac_init_help"; then
1300 case $ac_init_help in
1320 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:";;
1302 esac
1322 esac
1303 cat <<\_ACEOF
1323 cat <<\_ACEOF
1304
1324
@@ -1315,12 +1335,12 @@ Some influential environment variables:
1315 LIBS libraries to pass to the linker, e.g. -l<library>
1335 LIBS libraries to pass to the linker, e.g. -l<library>
1316 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1336 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1317 you have headers in a nonstandard directory <include dir>
1337 you have headers in a nonstandard directory <include dir>
1318− CPP C preprocessor
1319
1338
1320Use these variables to override the choices made by `configure' or to help
1339Use these variables to override the choices made by `configure' or to help
1321it to find libraries and programs with nonstandard names/locations.
1340it to find libraries and programs with nonstandard names/locations.
1322
1341
1323Report bugs to <streamly@composewell.com>.
1342Report bugs to <streamly@composewell.com>.
1343+streamly home page: <https://streamly.composewell.com>.
1324_ACEOF
1344_ACEOF
1325ac_status=$?
1345ac_status=$?
1326fi
1346fi
@@ -1336,9 +1356,9 @@ if test "$ac_init_help" = "recursive"; then
1336case "$ac_dir" in
1356case "$ac_dir" in
1337.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338*)
1358*)
1339− ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1359+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1340 # A ".." for each directory in $ac_dir_suffix.
1360 # 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|/||'`
1342 case $ac_top_builddir_sub in
1362 case $ac_top_builddir_sub in
1343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
@@ -1366,7 +1386,8 @@ esac
1366ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1367
1387
1368 cd "$ac_dir" || { ac_status=$?; continue; }
1388 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.
1370 if test -f "$ac_srcdir/configure.gnu"; then
1391 if test -f "$ac_srcdir/configure.gnu"; then
1371 echo &&
1392 echo &&
1372 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
@@ -1374,7 +1395,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1374 echo &&
1395 echo &&
1375 $SHELL "$ac_srcdir/configure" --help=recursive
1396 $SHELL "$ac_srcdir/configure" --help=recursive
1376 else
1397 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
1378 fi || ac_status=$?
1399 fi || ac_status=$?
1379 cd "$ac_pwd" || { ac_status=$?; break; }
1400 cd "$ac_pwd" || { ac_status=$?; break; }
1380 done
1401 done
@@ -1383,10 +1404,10 @@ fi
1383test -n "$ac_init_help" && exit $ac_status
1404test -n "$ac_init_help" && exit $ac_status
1384if $ac_init_version; then
1405if $ac_init_version; then
1385 cat <<\_ACEOF
1406 cat <<\_ACEOF
1386−streamly configure 0.7.2
1407+streamly configure 0.8.0
1387−generated by GNU Autoconf 2.69
1408+generated by GNU Autoconf 2.71
1388
1409
1389−Copyright (C) 2012 Free Software Foundation, Inc.
1410+Copyright (C) 2021 Free Software Foundation, Inc.
1390This configure script is free software; the Free Software Foundation
1411This configure script is free software; the Free Software Foundation
1391gives unlimited permission to copy, distribute and modify it.
1412gives unlimited permission to copy, distribute and modify it.
1392_ACEOF
1413_ACEOF
@@ -1403,14 +1424,14 @@ fi
1403ac_fn_c_try_compile ()
1424ac_fn_c_try_compile ()
1404{
1425{
1405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1426 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
1407 if { { ac_try="$ac_compile"
1428 if { { ac_try="$ac_compile"
1408case "(($ac_try" in
1429case "(($ac_try" in
1409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1410 *) ac_try_echo=$ac_try;;
1431 *) ac_try_echo=$ac_try;;
1411esac
1432esac
1412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433eval 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
1414 (eval "$ac_compile") 2>conftest.err
1435 (eval "$ac_compile") 2>conftest.err
1415 ac_status=$?
1436 ac_status=$?
1416 if test -s conftest.err; then
1437 if test -s conftest.err; then
@@ -1418,14 +1439,15 @@ $as_echo "$ac_try_echo"; } >&5
1418 cat conftest.er1 >&5
1439 cat conftest.er1 >&5
1419 mv -f conftest.er1 conftest.err
1440 mv -f conftest.er1 conftest.err
1420 fi
1441 fi
1421− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1422 test $ac_status = 0; } && {
1443 test $ac_status = 0; } && {
1423 test -z "$ac_c_werror_flag" ||
1444 test -z "$ac_c_werror_flag" ||
1424 test ! -s conftest.err
1445 test ! -s conftest.err
1425− } && test -s conftest.$ac_objext; then :
1446+ } && test -s conftest.$ac_objext
1447+then :
1426 ac_retval=0
1448 ac_retval=0
1427−else
1449+else $as_nop
1428− $as_echo "$as_me: failed program was:" >&5
1450+ printf "%s\n" "$as_me: failed program was:" >&5
1429sed 's/^/| /' conftest.$ac_ext >&5
1451sed 's/^/| /' conftest.$ac_ext >&5
1430
1452
1431 ac_retval=1
1453 ac_retval=1
@@ -1435,25 +1457,28 @@ fi
1435
1457
1436} # ac_fn_c_try_compile
1458} # ac_fn_c_try_compile
1437
1459
1438−# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1460+# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1439−# ---------------------------------------------
1461+# ------------------------------------------------------------------
1440# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1462# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1441−# accordingly.
1463+# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1442−ac_fn_c_check_decl ()
1464+ac_fn_check_decl ()
1443{
1465{
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 as_decl_name=`echo $2|sed 's/ *(.*//'`
1467 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
1446 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1474 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
1475+ eval ac_save_FLAGS=\$$6
1448−$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1476+ as_fn_append $6 " $5"
1449−if eval \${$3+:} false; then :
1450− $as_echo_n "(cached) " >&6
1451−else
1452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1453/* end confdefs.h. */
1478/* end confdefs.h. */
1454$4
1479$4
1455int
1480int
1456−main ()
1481+main (void)
1457{
1482{
1458#ifndef $as_decl_name
1483#ifndef $as_decl_name
1459#ifdef __cplusplus
1484#ifdef __cplusplus
@@ -1467,189 +1492,22 @@ main ()
1467 return 0;
1492 return 0;
1468}
1493}
1469_ACEOF
1494_ACEOF
1470−if ac_fn_c_try_compile "$LINENO"; then :
1495+if ac_fn_c_try_compile "$LINENO"
1496+then :
1471 eval "$3=yes"
1497 eval "$3=yes"
1472−else
1498+else $as_nop
1473 eval "$3=no"
1499 eval "$3=no"
1474fi
1500fi
1475−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1501+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1476−fi
1502+ eval $6=\$ac_save_FLAGS
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; }
1555
1503
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"
1603fi
1504fi
1604eval ac_res=\$$3
1505eval ac_res=\$$3
1605− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1506+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606−$as_echo "$ac_res" >&6; }
1507+printf "%s\n" "$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
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650− as_fn_set_status $ac_retval
1651
1509
1652−} # ac_fn_c_try_run
1510+} # ac_fn_check_decl
1653
1511
1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1512# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1513# -------------------------------------------------------
@@ -1658,26 +1516,28 @@ fi
1658ac_fn_c_check_header_compile ()
1516ac_fn_c_check_header_compile ()
1659{
1517{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 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
1519+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662−$as_echo_n "checking for $2... " >&6; }
1520+printf %s "checking for $2... " >&6; }
1663−if eval \${$3+:} false; then :
1521+if eval test \${$3+y}
1522+then :
1664− $as_echo_n "(cached) " >&6
1523+ printf %s "(cached) " >&6
1665−else
1524+else $as_nop
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1526/* end confdefs.h. */
1668$4
1527$4
1669#include <$2>
1528#include <$2>
1670_ACEOF
1529_ACEOF
1671−if ac_fn_c_try_compile "$LINENO"; then :
1530+if ac_fn_c_try_compile "$LINENO"
1531+then :
1672 eval "$3=yes"
1532 eval "$3=yes"
1673−else
1533+else $as_nop
1674 eval "$3=no"
1534 eval "$3=no"
1675fi
1535fi
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
1677fi
1537fi
1678eval ac_res=\$$3
1538eval ac_res=\$$3
1679− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1539+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680−$as_echo "$ac_res" >&6; }
1540+printf "%s\n" "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1542
1683} # ac_fn_c_check_header_compile
1543} # ac_fn_c_check_header_compile
@@ -1688,14 +1548,14 @@ $as_echo "$ac_res" >&6; }
1688ac_fn_c_try_link ()
1548ac_fn_c_try_link ()
1689{
1549{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 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
1692 if { { ac_try="$ac_link"
1552 if { { ac_try="$ac_link"
1693case "(($ac_try" in
1553case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1696esac
1556esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557eval 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
1699 (eval "$ac_link") 2>conftest.err
1559 (eval "$ac_link") 2>conftest.err
1700 ac_status=$?
1560 ac_status=$?
1701 if test -s conftest.err; then
1561 if test -s conftest.err; then
@@ -1703,17 +1563,18 @@ $as_echo "$ac_try_echo"; } >&5
1703 cat conftest.er1 >&5
1563 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1564 mv -f conftest.er1 conftest.err
1705 fi
1565 fi
1706− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1567 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1568 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1569 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1570 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1571 test "$cross_compiling" = yes ||
1712 test -x conftest$ac_exeext
1572 test -x conftest$ac_exeext
1573+ }
1713− }; then :
1574+then :
1714 ac_retval=0
1575 ac_retval=0
1715−else
1576+else $as_nop
1716− $as_echo "$as_me: failed program was:" >&5
1577+ printf "%s\n" "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1578sed 's/^/| /' conftest.$ac_ext >&5
1718
1579
1719 ac_retval=1
1580 ac_retval=1
@@ -1734,11 +1595,12 @@ fi
1734ac_fn_c_check_func ()
1595ac_fn_c_check_func ()
1735{
1596{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 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
1598+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738−$as_echo_n "checking for $2... " >&6; }
1599+printf %s "checking for $2... " >&6; }
1739−if eval \${$3+:} false; then :
1600+if eval test \${$3+y}
1601+then :
1740− $as_echo_n "(cached) " >&6
1602+ printf %s "(cached) " >&6
1741−else
1603+else $as_nop
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h. */
1605/* end confdefs.h. */
1744/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1606/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
@@ -1746,16 +1608,9 @@ else
1746#define $2 innocuous_$2
1608#define $2 innocuous_$2
1747
1609
1748/* System header to define __stub macros and hopefully few prototypes,
1610/* System header to define __stub macros and hopefully few prototypes,
1749− which can conflict with char $2 (); below.
1611+ 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
1758
1612
1613+#include <limits.h>
1759#undef $2
1614#undef $2
1760
1615
1761/* Override any GCC internal prototype to avoid an error.
1616/* Override any GCC internal prototype to avoid an error.
@@ -1773,35 +1628,56 @@ choke me
1773#endif
1628#endif
1774
1629
1775int
1630int
1776−main ()
1631+main (void)
1777{
1632{
1778return $2 ();
1633return $2 ();
1779 ;
1634 ;
1780 return 0;
1635 return 0;
1781}
1636}
1782_ACEOF
1637_ACEOF
1783−if ac_fn_c_try_link "$LINENO"; then :
1638+if ac_fn_c_try_link "$LINENO"
1639+then :
1784 eval "$3=yes"
1640 eval "$3=yes"
1785−else
1641+else $as_nop
1786 eval "$3=no"
1642 eval "$3=no"
1787fi
1643fi
1788−rm -f core conftest.err conftest.$ac_objext \
1644+rm -f core conftest.err conftest.$ac_objext conftest.beam \
1789 conftest$ac_exeext conftest.$ac_ext
1645 conftest$ac_exeext conftest.$ac_ext
1790fi
1646fi
1791eval ac_res=\$$3
1647eval ac_res=\$$3
1792− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793−$as_echo "$ac_res" >&6; }
1649+printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1651
1796} # ac_fn_c_check_func
1652} # 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+
1797cat >config.log <<_ACEOF
1673cat >config.log <<_ACEOF
1798This file contains any messages produced by compilers while
1674This file contains any messages produced by compilers while
1799running configure, to aid debugging if configure makes a mistake.
1675running configure, to aid debugging if configure makes a mistake.
1800
1676
1801−It was created by streamly $as_me 0.7.2, which was
1677+It was created by streamly $as_me 0.8.0, which was
1802−generated by GNU Autoconf 2.69. Invocation command line was
1678+generated by GNU Autoconf 2.71. Invocation command line was
1803
1679
1804− $ $0 $@
1680+ $ $0$ac_configure_args_raw
1805
1681
1806_ACEOF
1682_ACEOF
1807exec 5>>config.log
1683exec 5>>config.log
@@ -1834,8 +1710,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1710for as_dir in $PATH
1835do
1711do
1836 IFS=$as_save_IFS
1712 IFS=$as_save_IFS
1713+ case $as_dir in #(((
1837− test -z "$as_dir" && as_dir=.
1714+ '') as_dir=./ ;;
1715+ */) ;;
1716+ *) as_dir=$as_dir/ ;;
1717+ esac
1838− $as_echo "PATH: $as_dir"
1718+ printf "%s\n" "PATH: $as_dir"
1839 done
1719 done
1840IFS=$as_save_IFS
1720IFS=$as_save_IFS
1841
1721
@@ -1870,7 +1750,7 @@ do
1870 | -silent | --silent | --silen | --sile | --sil)
1750 | -silent | --silent | --silen | --sile | --sil)
1871 continue ;;
1751 continue ;;
1872 *\'*)
1752 *\'*)
1873− ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1874 esac
1754 esac
1875 case $ac_pass in
1755 case $ac_pass in
1876 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1756 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
@@ -1905,11 +1785,13 @@ done
1905# WARNING: Use '\'' to represent an apostrophe within the trap.
1785# WARNING: Use '\'' to represent an apostrophe within the trap.
1906# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1786# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1907trap 'exit_status=$?
1787trap 'exit_status=$?
1788+ # Sanitize IFS.
1789+ IFS=" "" $as_nl"
1908 # Save into config.log some information that might help in debugging.
1790 # Save into config.log some information that might help in debugging.
1909 {
1791 {
1910 echo
1792 echo
1911
1793
1912− $as_echo "## ---------------- ##
1794+ printf "%s\n" "## ---------------- ##
1913## Cache variables. ##
1795## Cache variables. ##
1914## ---------------- ##"
1796## ---------------- ##"
1915 echo
1797 echo
@@ -1920,8 +1802,8 @@ trap 'exit_status=$?
1920 case $ac_val in #(
1802 case $ac_val in #(
1921 *${as_nl}*)
1803 *${as_nl}*)
1922 case $ac_var in #(
1804 case $ac_var in #(
1923− *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1805+ *_cv_*) { printf "%s\n" "$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;} ;;
1806+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1925 esac
1807 esac
1926 case $ac_var in #(
1808 case $ac_var in #(
1927 _ | IFS | as_nl) ;; #(
1809 _ | IFS | as_nl) ;; #(
@@ -1945,7 +1827,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1945)
1827)
1946 echo
1828 echo
1947
1829
1948− $as_echo "## ----------------- ##
1830+ printf "%s\n" "## ----------------- ##
1949## Output variables. ##
1831## Output variables. ##
1950## ----------------- ##"
1832## ----------------- ##"
1951 echo
1833 echo
@@ -1953,14 +1835,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 do
1835 do
1954 eval ac_val=\$$ac_var
1836 eval ac_val=\$$ac_var
1955 case $ac_val in
1837 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"`;;
1957 esac
1839 esac
1958− $as_echo "$ac_var='\''$ac_val'\''"
1840+ printf "%s\n" "$ac_var='\''$ac_val'\''"
1959 done | sort
1841 done | sort
1960 echo
1842 echo
1961
1843
1962 if test -n "$ac_subst_files"; then
1844 if test -n "$ac_subst_files"; then
1963− $as_echo "## ------------------- ##
1845+ printf "%s\n" "## ------------------- ##
1964## File substitutions. ##
1846## File substitutions. ##
1965## ------------------- ##"
1847## ------------------- ##"
1966 echo
1848 echo
@@ -1968,15 +1850,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968 do
1850 do
1969 eval ac_val=\$$ac_var
1851 eval ac_val=\$$ac_var
1970 case $ac_val in
1852 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"`;;
1972 esac
1854 esac
1973− $as_echo "$ac_var='\''$ac_val'\''"
1855+ printf "%s\n" "$ac_var='\''$ac_val'\''"
1974 done | sort
1856 done | sort
1975 echo
1857 echo
1976 fi
1858 fi
1977
1859
1978 if test -s confdefs.h; then
1860 if test -s confdefs.h; then
1979− $as_echo "## ----------- ##
1861+ printf "%s\n" "## ----------- ##
1980## confdefs.h. ##
1862## confdefs.h. ##
1981## ----------- ##"
1863## ----------- ##"
1982 echo
1864 echo
@@ -1984,8 +1866,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1984 echo
1866 echo
1985 fi
1867 fi
1986 test "$ac_signal" != 0 &&
1868 test "$ac_signal" != 0 &&
1987− $as_echo "$as_me: caught signal $ac_signal"
1869+ printf "%s\n" "$as_me: caught signal $ac_signal"
1988− $as_echo "$as_me: exit $exit_status"
1870+ printf "%s\n" "$as_me: exit $exit_status"
1989 } >&5
1871 } >&5
1990 rm -f core *.core core.conftest.* &&
1872 rm -f core *.core core.conftest.* &&
1991 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
@@ -1999,63 +1881,48 @@ ac_signal=0
1999# confdefs.h avoids OS command line length limits that DEFS can exceed.
1881# confdefs.h avoids OS command line length limits that DEFS can exceed.
2000rm -f -r conftest* confdefs.h
1882rm -f -r conftest* confdefs.h
2001
1883
2002−$as_echo "/* confdefs.h */" > confdefs.h
1884+printf "%s\n" "/* confdefs.h */" > confdefs.h
2003
1885
2004# Predefined preprocessor variables.
1886# Predefined preprocessor variables.
2005
1887
2006−cat >>confdefs.h <<_ACEOF
1888+printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2007−#define PACKAGE_NAME "$PACKAGE_NAME"
2008−_ACEOF
2009
1889
2010−cat >>confdefs.h <<_ACEOF
1890+printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2011−#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2012−_ACEOF
2013
1891
2014−cat >>confdefs.h <<_ACEOF
1892+printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2015−#define PACKAGE_VERSION "$PACKAGE_VERSION"
2016−_ACEOF
2017
1893
2018−cat >>confdefs.h <<_ACEOF
1894+printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2019−#define PACKAGE_STRING "$PACKAGE_STRING"
2020−_ACEOF
2021
1895
2022−cat >>confdefs.h <<_ACEOF
1896+printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2023−#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2024−_ACEOF
2025
1897
2026−cat >>confdefs.h <<_ACEOF
1898+printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2027−#define PACKAGE_URL "$PACKAGE_URL"
2028−_ACEOF
2029
1899
2030
1900
2031# Let the site file select an alternate cache file if it wants to.
1901# Let the site file select an alternate cache file if it wants to.
2032# Prefer an explicitly selected file to automatically selected ones.
1902# Prefer an explicitly selected file to automatically selected ones.
2033−ac_site_file1=NONE
2034−ac_site_file2=NONE
2035if test -n "$CONFIG_SITE"; then
1903if 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;;
1904+ ac_site_files="$CONFIG_SITE"
2041− esac
2042elif test "x$prefix" != xNONE; then
1905elif test "x$prefix" != xNONE; then
2043− ac_site_file1=$prefix/share/config.site
1906+ ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2044− ac_site_file2=$prefix/etc/config.site
2045else
1907else
2046− ac_site_file1=$ac_default_prefix/share/config.site
1908+ ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2047− ac_site_file2=$ac_default_prefix/etc/config.site
2048fi
1909fi
1910+
2049−for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1911+for ac_site_file in $ac_site_files
2050do
1912do
2051− test "x$ac_site_file" = xNONE && continue
1913+ case $ac_site_file in #(
1914+ */*) :
1915+ ;; #(
1916+ *) :
1917+ ac_site_file=./$ac_site_file ;;
1918+esac
2052− if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1919+ if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2053− { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1920+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054−$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1921+printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2055 sed 's/^/| /' "$ac_site_file" >&5
1922 sed 's/^/| /' "$ac_site_file" >&5
2056 . "$ac_site_file" \
1923 . "$ac_site_file" \
2057− || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1924+ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2058−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1925+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2059as_fn_error $? "failed to load site script $ac_site_file
1926as_fn_error $? "failed to load site script $ac_site_file
2060See \`config.log' for more details" "$LINENO" 5; }
1927See \`config.log' for more details" "$LINENO" 5; }
2061 fi
1928 fi
@@ -2065,97 +1932,425 @@ if test -r "$cache_file"; then
2065 # Some versions of bash will fail to source /dev/null (special files
1932 # Some versions of bash will fail to source /dev/null (special files
2066 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1933 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2067 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1934 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2068− { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1935+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2069−$as_echo "$as_me: loading cache $cache_file" >&6;}
1936+printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2070 case $cache_file in
1937 case $cache_file in
2071 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2072 *) . "./$cache_file";;
1939 *) . "./$cache_file";;
2073 esac
1940 esac
2074 fi
1941 fi
2075else
1942else
2076− { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1943+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2077−$as_echo "$as_me: creating cache $cache_file" >&6;}
1944+printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2078 >$cache_file
1945 >$cache_file
2079fi
1946fi
2080
1947
2081−# Check that the precious variables saved in the cache have kept the same
1948+# Test code for whether the C compiler supports C89 (global declarations)
2082−# value.
1949+ac_c_conftest_c89_globals='
2083−ac_cache_corrupted=false
1950+/* Does the compiler advertise C89 conformance?
2084−for ac_var in $ac_precious_vars; do
1951+ Do not test the value of __STDC__, because some compilers set it to 0
2085− eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952+ while being otherwise adequately conformant. */
2086− eval ac_new_set=\$ac_env_${ac_var}_set
1953+#if !defined __STDC__
2087− eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954+# error "Compiler does not advertise C89 conformance"
2088− eval ac_new_val=\$ac_env_${ac_var}_value
1955+#endif
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−## -------------------- ##
2141
1956
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+
2142−ac_ext=c
2327+ac_ext=c
2143−ac_cpp='$CPP $CPPFLAGS'
2328+ac_cpp='$CPP $CPPFLAGS'
2144−ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329+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'
2330+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146−ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331+ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147
2332
2148
2333
2149
2334
2150# To suppress "WARNING: unrecognized options: --with-compiler"
2335# To suppress "WARNING: unrecognized options: --with-compiler"
2151
2336
2152# Check whether --with-compiler was given.
2337# Check whether --with-compiler was given.
2153−if test "${with_compiler+set}" = set; then :
2338+if test ${with_compiler+y}
2339+then :
2154 withval=$with_compiler;
2340 withval=$with_compiler;
2155fi
2341fi
2156
2342
2157
2343
2158# XXX Do this only for linux
2344# XXX Do this only for linux
2345+
2346+
2347+
2348+
2349+
2350+
2351+
2352+
2353+
2159ac_ext=c
2354ac_ext=c
2160ac_cpp='$CPP $CPPFLAGS'
2355ac_cpp='$CPP $CPPFLAGS'
2161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -2164,11 +2359,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164if test -n "$ac_tool_prefix"; then
2359if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2166set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361set dummy ${ac_tool_prefix}gcc; ac_word=$2
2167−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2168−$as_echo_n "checking for $ac_word... " >&6; }
2363+printf %s "checking for $ac_word... " >&6; }
2169−if ${ac_cv_prog_CC+:} false; then :
2364+if test ${ac_cv_prog_CC+y}
2365+then :
2170− $as_echo_n "(cached) " >&6
2366+ printf %s "(cached) " >&6
2171−else
2367+else $as_nop
2172 if test -n "$CC"; then
2368 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2174else
2370else
@@ -2176,11 +2372,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2372for as_dir in $PATH
2177do
2373do
2178 IFS=$as_save_IFS
2374 IFS=$as_save_IFS
2375+ case $as_dir in #(((
2179− test -z "$as_dir" && as_dir=.
2376+ '') as_dir=./ ;;
2377+ */) ;;
2378+ *) as_dir=$as_dir/ ;;
2379+ esac
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2380 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
2182 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2382 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
2184 break 2
2384 break 2
2185 fi
2385 fi
2186done
2386done
@@ -2191,11 +2391,11 @@ fi
2191fi
2391fi
2192CC=$ac_cv_prog_CC
2392CC=$ac_cv_prog_CC
2193if test -n "$CC"; then
2393if test -n "$CC"; then
2194− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2394+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2195−$as_echo "$CC" >&6; }
2395+printf "%s\n" "$CC" >&6; }
2196else
2396else
2197− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2198−$as_echo "no" >&6; }
2398+printf "%s\n" "no" >&6; }
2199fi
2399fi
2200
2400
2201
2401
@@ -2204,11 +2404,12 @@ if test -z "$ac_cv_prog_CC"; then
2204 ac_ct_CC=$CC
2404 ac_ct_CC=$CC
2205 # Extract the first word of "gcc", so it can be a program name with args.
2405 # Extract the first word of "gcc", so it can be a program name with args.
2206set dummy gcc; ac_word=$2
2406set dummy gcc; ac_word=$2
2207−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2208−$as_echo_n "checking for $ac_word... " >&6; }
2408+printf %s "checking for $ac_word... " >&6; }
2209−if ${ac_cv_prog_ac_ct_CC+:} false; then :
2409+if test ${ac_cv_prog_ac_ct_CC+y}
2410+then :
2210− $as_echo_n "(cached) " >&6
2411+ printf %s "(cached) " >&6
2211−else
2412+else $as_nop
2212 if test -n "$ac_ct_CC"; then
2413 if test -n "$ac_ct_CC"; then
2213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2214else
2415else
@@ -2216,11 +2417,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2417for as_dir in $PATH
2217do
2418do
2218 IFS=$as_save_IFS
2419 IFS=$as_save_IFS
2420+ case $as_dir in #(((
2219− test -z "$as_dir" && as_dir=.
2421+ '') as_dir=./ ;;
2422+ */) ;;
2423+ *) as_dir=$as_dir/ ;;
2424+ esac
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2425 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
2222 ac_cv_prog_ac_ct_CC="gcc"
2427 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
2224 break 2
2429 break 2
2225 fi
2430 fi
2226done
2431done
@@ -2231,11 +2436,11 @@ fi
2231fi
2436fi
2232ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233if test -n "$ac_ct_CC"; then
2438if test -n "$ac_ct_CC"; then
2234− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2439+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2235−$as_echo "$ac_ct_CC" >&6; }
2440+printf "%s\n" "$ac_ct_CC" >&6; }
2236else
2441else
2237− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2238−$as_echo "no" >&6; }
2443+printf "%s\n" "no" >&6; }
2239fi
2444fi
2240
2445
2241 if test "x$ac_ct_CC" = x; then
2446 if test "x$ac_ct_CC" = x; then
@@ -2243,8 +2448,8 @@ fi
2243 else
2448 else
2244 case $cross_compiling:$ac_tool_warned in
2449 case $cross_compiling:$ac_tool_warned in
2245yes:)
2450yes:)
2246−{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2451+{ printf "%s\n" "$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;}
2452+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2248ac_tool_warned=yes ;;
2453ac_tool_warned=yes ;;
2249esac
2454esac
2250 CC=$ac_ct_CC
2455 CC=$ac_ct_CC
@@ -2257,11 +2462,12 @@ if test -z "$CC"; then
2257 if test -n "$ac_tool_prefix"; then
2462 if test -n "$ac_tool_prefix"; then
2258 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2259set dummy ${ac_tool_prefix}cc; ac_word=$2
2464set dummy ${ac_tool_prefix}cc; ac_word=$2
2260−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2261−$as_echo_n "checking for $ac_word... " >&6; }
2466+printf %s "checking for $ac_word... " >&6; }
2262−if ${ac_cv_prog_CC+:} false; then :
2467+if test ${ac_cv_prog_CC+y}
2468+then :
2263− $as_echo_n "(cached) " >&6
2469+ printf %s "(cached) " >&6
2264−else
2470+else $as_nop
2265 if test -n "$CC"; then
2471 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2267else
2473else
@@ -2269,11 +2475,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2475for as_dir in $PATH
2270do
2476do
2271 IFS=$as_save_IFS
2477 IFS=$as_save_IFS
2478+ case $as_dir in #(((
2272− test -z "$as_dir" && as_dir=.
2479+ '') as_dir=./ ;;
2480+ */) ;;
2481+ *) as_dir=$as_dir/ ;;
2482+ esac
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2483 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
2275 ac_cv_prog_CC="${ac_tool_prefix}cc"
2485 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
2277 break 2
2487 break 2
2278 fi
2488 fi
2279done
2489done
@@ -2284,11 +2494,11 @@ fi
2284fi
2494fi
2285CC=$ac_cv_prog_CC
2495CC=$ac_cv_prog_CC
2286if test -n "$CC"; then
2496if test -n "$CC"; then
2287− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2497+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2288−$as_echo "$CC" >&6; }
2498+printf "%s\n" "$CC" >&6; }
2289else
2499else
2290− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2291−$as_echo "no" >&6; }
2501+printf "%s\n" "no" >&6; }
2292fi
2502fi
2293
2503
2294
2504
@@ -2297,11 +2507,12 @@ fi
2297if test -z "$CC"; then
2507if test -z "$CC"; then
2298 # Extract the first word of "cc", so it can be a program name with args.
2508 # Extract the first word of "cc", so it can be a program name with args.
2299set dummy cc; ac_word=$2
2509set dummy cc; ac_word=$2
2300−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2301−$as_echo_n "checking for $ac_word... " >&6; }
2511+printf %s "checking for $ac_word... " >&6; }
2302−if ${ac_cv_prog_CC+:} false; then :
2512+if test ${ac_cv_prog_CC+y}
2513+then :
2303− $as_echo_n "(cached) " >&6
2514+ printf %s "(cached) " >&6
2304−else
2515+else $as_nop
2305 if test -n "$CC"; then
2516 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2307else
2518else
@@ -2310,15 +2521,19 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2521for as_dir in $PATH
2311do
2522do
2312 IFS=$as_save_IFS
2523 IFS=$as_save_IFS
2524+ case $as_dir in #(((
2313− test -z "$as_dir" && as_dir=.
2525+ '') as_dir=./ ;;
2526+ */) ;;
2527+ *) as_dir=$as_dir/ ;;
2528+ esac
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2315− if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530+ 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
2531+ if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2317 ac_prog_rejected=yes
2532 ac_prog_rejected=yes
2318 continue
2533 continue
2319 fi
2534 fi
2320 ac_cv_prog_CC="cc"
2535 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
2322 break 2
2537 break 2
2323 fi
2538 fi
2324done
2539done
@@ -2334,18 +2549,18 @@ if test $ac_prog_rejected = yes; then
2334 # However, it has the same basename, so the bogon will be chosen
2549 # However, it has the same basename, so the bogon will be chosen
2335 # first if we set CC to just the basename; use the full file name.
2550 # first if we set CC to just the basename; use the full file name.
2336 shift
2551 shift
2337− ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2552+ ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2338 fi
2553 fi
2339fi
2554fi
2340fi
2555fi
2341fi
2556fi
2342CC=$ac_cv_prog_CC
2557CC=$ac_cv_prog_CC
2343if test -n "$CC"; then
2558if test -n "$CC"; then
2344− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2559+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2345−$as_echo "$CC" >&6; }
2560+printf "%s\n" "$CC" >&6; }
2346else
2561else
2347− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348−$as_echo "no" >&6; }
2563+printf "%s\n" "no" >&6; }
2349fi
2564fi
2350
2565
2351
2566
@@ -2356,11 +2571,12 @@ if test -z "$CC"; then
2356 do
2571 do
2357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2359−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2360−$as_echo_n "checking for $ac_word... " >&6; }
2575+printf %s "checking for $ac_word... " >&6; }
2361−if ${ac_cv_prog_CC+:} false; then :
2576+if test ${ac_cv_prog_CC+y}
2577+then :
2362− $as_echo_n "(cached) " >&6
2578+ printf %s "(cached) " >&6
2363−else
2579+else $as_nop
2364 if test -n "$CC"; then
2580 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2366else
2582else
@@ -2368,11 +2584,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH
2584for as_dir in $PATH
2369do
2585do
2370 IFS=$as_save_IFS
2586 IFS=$as_save_IFS
2587+ case $as_dir in #(((
2371− test -z "$as_dir" && as_dir=.
2588+ '') as_dir=./ ;;
2589+ */) ;;
2590+ *) as_dir=$as_dir/ ;;
2591+ esac
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2592 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
2374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594 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
2376 break 2
2596 break 2
2377 fi
2597 fi
2378done
2598done
@@ -2383,11 +2603,11 @@ fi
2383fi
2603fi
2384CC=$ac_cv_prog_CC
2604CC=$ac_cv_prog_CC
2385if test -n "$CC"; then
2605if test -n "$CC"; then
2386− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2606+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2387−$as_echo "$CC" >&6; }
2607+printf "%s\n" "$CC" >&6; }
2388else
2608else
2389− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2390−$as_echo "no" >&6; }
2610+printf "%s\n" "no" >&6; }
2391fi
2611fi
2392
2612
2393
2613
@@ -2400,11 +2620,12 @@ if test -z "$CC"; then
2400do
2620do
2401 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2402set dummy $ac_prog; ac_word=$2
2622set dummy $ac_prog; ac_word=$2
2403−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2404−$as_echo_n "checking for $ac_word... " >&6; }
2624+printf %s "checking for $ac_word... " >&6; }
2405−if ${ac_cv_prog_ac_ct_CC+:} false; then :
2625+if test ${ac_cv_prog_ac_ct_CC+y}
2626+then :
2406− $as_echo_n "(cached) " >&6
2627+ printf %s "(cached) " >&6
2407−else
2628+else $as_nop
2408 if test -n "$ac_ct_CC"; then
2629 if test -n "$ac_ct_CC"; then
2409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410else
2631else
@@ -2412,11 +2633,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2633for as_dir in $PATH
2413do
2634do
2414 IFS=$as_save_IFS
2635 IFS=$as_save_IFS
2636+ case $as_dir in #(((
2415− test -z "$as_dir" && as_dir=.
2637+ '') as_dir=./ ;;
2638+ */) ;;
2639+ *) as_dir=$as_dir/ ;;
2640+ esac
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2641 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
2418 ac_cv_prog_ac_ct_CC="$ac_prog"
2643 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
2420 break 2
2645 break 2
2421 fi
2646 fi
2422done
2647done
@@ -2427,11 +2652,11 @@ fi
2427fi
2652fi
2428ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429if test -n "$ac_ct_CC"; then
2654if test -n "$ac_ct_CC"; then
2430− { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2655+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2431−$as_echo "$ac_ct_CC" >&6; }
2656+printf "%s\n" "$ac_ct_CC" >&6; }
2432else
2657else
2433− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2434−$as_echo "no" >&6; }
2659+printf "%s\n" "no" >&6; }
2435fi
2660fi
2436
2661
2437
2662
@@ -2443,8 +2668,8 @@ done
2443 else
2668 else
2444 case $cross_compiling:$ac_tool_warned in
2669 case $cross_compiling:$ac_tool_warned in
2445yes:)
2670yes:)
2446−{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2671+{ printf "%s\n" "$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;}
2672+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2448ac_tool_warned=yes ;;
2673ac_tool_warned=yes ;;
2449esac
2674esac
2450 CC=$ac_ct_CC
2675 CC=$ac_ct_CC
@@ -2452,25 +2677,129 @@ esac
2452fi
2677fi
2453
2678
2454fi
2679fi
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
2455
2756
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
2456
2767
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+
2457−test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786+test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2459as_fn_error $? "no acceptable C compiler found in \$PATH
2788as_fn_error $? "no acceptable C compiler found in \$PATH
2460See \`config.log' for more details" "$LINENO" 5; }
2789See \`config.log' for more details" "$LINENO" 5; }
2461
2790
2462# Provide some information about the compiler.
2791# 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
2464set X $ac_compile
2793set X $ac_compile
2465ac_compiler=$2
2794ac_compiler=$2
2466−for ac_option in --version -v -V -qversion; do
2795+for ac_option in --version -v -V -qversion -version; do
2467 { { ac_try="$ac_compiler $ac_option >&5"
2796 { { ac_try="$ac_compiler $ac_option >&5"
2468case "(($ac_try" in
2797case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2471esac
2800esac
2472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801eval 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
2474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2475 ac_status=$?
2804 ac_status=$?
2476 if test -s conftest.err; then
2805 if test -s conftest.err; then
@@ -2480,7 +2809,7 @@ $as_echo "$ac_try_echo"; } >&5
2480 cat conftest.er1 >&5
2809 cat conftest.er1 >&5
2481 fi
2810 fi
2482 rm -f conftest.er1 conftest.err
2811 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
2484 test $ac_status = 0; }
2813 test $ac_status = 0; }
2485done
2814done
2486
2815
@@ -2488,7 +2817,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488/* end confdefs.h. */
2817/* end confdefs.h. */
2489
2818
2490int
2819int
2491−main ()
2820+main (void)
2492{
2821{
2493
2822
2494 ;
2823 ;
@@ -2500,9 +2829,9 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2500# Try to create an executable without -o first, disregard a.out.
2829# Try to create an executable without -o first, disregard a.out.
2501# It will help us diagnose broken compilers, and finding out an intuition
2830# It will help us diagnose broken compilers, and finding out an intuition
2502# of exeext.
2831# of exeext.
2503−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2832+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2504−$as_echo_n "checking whether the C compiler works... " >&6; }
2833+printf %s "checking whether the C compiler works... " >&6; }
2505−ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2834+ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2506
2835
2507# The possible output files:
2836# The possible output files:
2508ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2837ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
@@ -2523,11 +2852,12 @@ case "(($ac_try" in
2523 *) ac_try_echo=$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2524esac
2853esac
2525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854eval 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
2527 (eval "$ac_link_default") 2>&5
2856 (eval "$ac_link_default") 2>&5
2528 ac_status=$?
2857 ac_status=$?
2529− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530− test $ac_status = 0; }; then :
2859+ test $ac_status = 0; }
2860+then :
2531 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2532# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2533# in a Makefile. We should not override ac_cv_exeext if it was cached,
2863# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -2544,7 +2874,7 @@ do
2544 # certainly right.
2874 # certainly right.
2545 break;;
2875 break;;
2546 *.* )
2876 *.* )
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;
2548 then :; else
2878 then :; else
2549 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 fi
2880 fi
@@ -2560,44 +2890,46 @@ do
2560done
2890done
2561test "$ac_cv_exeext" = no && ac_cv_exeext=
2891test "$ac_cv_exeext" = no && ac_cv_exeext=
2562
2892
2563−else
2893+else $as_nop
2564 ac_file=''
2894 ac_file=''
2565fi
2895fi
2566−if test -z "$ac_file"; then :
2896+if test -z "$ac_file"
2897+then :
2567− { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568−$as_echo "no" >&6; }
2899+printf "%s\n" "no" >&6; }
2569−$as_echo "$as_me: failed program was:" >&5
2900+printf "%s\n" "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2901sed 's/^/| /' conftest.$ac_ext >&5
2571
2902
2572−{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2903+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2904+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2574as_fn_error 77 "C compiler cannot create executables
2905as_fn_error 77 "C compiler cannot create executables
2575See \`config.log' for more details" "$LINENO" 5; }
2906See \`config.log' for more details" "$LINENO" 5; }
2576−else
2907+else $as_nop
2577− { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2908+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578−$as_echo "yes" >&6; }
2909+printf "%s\n" "yes" >&6; }
2579−fi
2910+fi
2580−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2911+{ printf "%s\n" "$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; }
2912+printf %s "checking for C compiler default output file name... " >&6; }
2582−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2913+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2583−$as_echo "$ac_file" >&6; }
2914+printf "%s\n" "$ac_file" >&6; }
2584ac_exeext=$ac_cv_exeext
2915ac_exeext=$ac_cv_exeext
2585
2916
2586rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2917rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2587ac_clean_files=$ac_clean_files_save
2918ac_clean_files=$ac_clean_files_save
2588−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2919+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2589−$as_echo_n "checking for suffix of executables... " >&6; }
2920+printf %s "checking for suffix of executables... " >&6; }
2590if { { ac_try="$ac_link"
2921if { { ac_try="$ac_link"
2591case "(($ac_try" in
2922case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2594esac
2925esac
2595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926eval 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
2597 (eval "$ac_link") 2>&5
2928 (eval "$ac_link") 2>&5
2598 ac_status=$?
2929 ac_status=$?
2599− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2930+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2600− test $ac_status = 0; }; then :
2931+ test $ac_status = 0; }
2932+then :
2601 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2602# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2603# work properly (i.e., refer to `conftest.exe'), while it won't with
2935# 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
2611 * ) break;;
2943 * ) break;;
2612 esac
2944 esac
2613done
2945done
2614−else
2946+else $as_nop
2615− { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2617as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2949as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2618See \`config.log' for more details" "$LINENO" 5; }
2950See \`config.log' for more details" "$LINENO" 5; }
2619fi
2951fi
2620rm -f conftest conftest$ac_cv_exeext
2952rm -f conftest conftest$ac_cv_exeext
2621−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2953+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2622−$as_echo "$ac_cv_exeext" >&6; }
2954+printf "%s\n" "$ac_cv_exeext" >&6; }
2623
2955
2624rm -f conftest.$ac_ext
2956rm -f conftest.$ac_ext
2625EXEEXT=$ac_cv_exeext
2957EXEEXT=$ac_cv_exeext
@@ -2628,7 +2960,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h. */
2960/* end confdefs.h. */
2629#include <stdio.h>
2961#include <stdio.h>
2630int
2962int
2631−main ()
2963+main (void)
2632{
2964{
2633FILE *f = fopen ("conftest.out", "w");
2965FILE *f = fopen ("conftest.out", "w");
2634 return ferror (f) || fclose (f) != 0;
2966 return ferror (f) || fclose (f) != 0;
@@ -2640,8 +2972,8 @@ _ACEOF
2640ac_clean_files="$ac_clean_files conftest.out"
2972ac_clean_files="$ac_clean_files conftest.out"
2641# Check that the compiler produces executables we can run. If not, either
2973# Check that the compiler produces executables we can run. If not, either
2642# the compiler is broken, or we cross compile.
2974# the compiler is broken, or we cross compile.
2643−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2975+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2644−$as_echo_n "checking whether we are cross compiling... " >&6; }
2976+printf %s "checking whether we are cross compiling... " >&6; }
2645if test "$cross_compiling" != yes; then
2977if test "$cross_compiling" != yes; then
2646 { { ac_try="$ac_link"
2978 { { ac_try="$ac_link"
2647case "(($ac_try" in
2979case "(($ac_try" in
@@ -2649,10 +2981,10 @@ case "(($ac_try" in
2649 *) ac_try_echo=$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2650esac
2982esac
2651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983eval 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
2653 (eval "$ac_link") 2>&5
2985 (eval "$ac_link") 2>&5
2654 ac_status=$?
2986 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
2656 test $ac_status = 0; }
2988 test $ac_status = 0; }
2657 if { ac_try='./conftest$ac_cv_exeext'
2989 if { ac_try='./conftest$ac_cv_exeext'
2658 { { case "(($ac_try" in
2990 { { case "(($ac_try" in
@@ -2660,39 +2992,40 @@ $as_echo "$ac_try_echo"; } >&5
2660 *) ac_try_echo=$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2661esac
2993esac
2662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994eval 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
2664 (eval "$ac_try") 2>&5
2996 (eval "$ac_try") 2>&5
2665 ac_status=$?
2997 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
2667 test $ac_status = 0; }; }; then
2999 test $ac_status = 0; }; }; then
2668 cross_compiling=no
3000 cross_compiling=no
2669 else
3001 else
2670 if test "$cross_compiling" = maybe; then
3002 if test "$cross_compiling" = maybe; then
2671 cross_compiling=yes
3003 cross_compiling=yes
2672 else
3004 else
2673− { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2675−as_fn_error $? "cannot run C compiled programs.
3007+as_fn_error 77 "cannot run C compiled programs.
2676If you meant to cross compile, use \`--host'.
3008If you meant to cross compile, use \`--host'.
2677See \`config.log' for more details" "$LINENO" 5; }
3009See \`config.log' for more details" "$LINENO" 5; }
2678 fi
3010 fi
2679 fi
3011 fi
2680fi
3012fi
2681−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3013+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2682−$as_echo "$cross_compiling" >&6; }
3014+printf "%s\n" "$cross_compiling" >&6; }
2683
3015
2684rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3016rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2685ac_clean_files=$ac_clean_files_save
3017ac_clean_files=$ac_clean_files_save
2686−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3018+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2687−$as_echo_n "checking for suffix of object files... " >&6; }
3019+printf %s "checking for suffix of object files... " >&6; }
2688−if ${ac_cv_objext+:} false; then :
3020+if test ${ac_cv_objext+y}
3021+then :
2689− $as_echo_n "(cached) " >&6
3022+ printf %s "(cached) " >&6
2690−else
3023+else $as_nop
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692/* end confdefs.h. */
3025/* end confdefs.h. */
2693
3026
2694int
3027int
2695−main ()
3028+main (void)
2696{
3029{
2697
3030
2698 ;
3031 ;
@@ -2706,11 +3039,12 @@ case "(($ac_try" in
2706 *) ac_try_echo=$ac_try;;
3039 *) ac_try_echo=$ac_try;;
2707esac
3040esac
2708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041eval 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
2710 (eval "$ac_compile") 2>&5
3043 (eval "$ac_compile") 2>&5
2711 ac_status=$?
3044 ac_status=$?
2712− $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713− test $ac_status = 0; }; then :
3046+ test $ac_status = 0; }
3047+then :
2714 for ac_file in conftest.o conftest.obj conftest.*; do
3048 for ac_file in conftest.o conftest.obj conftest.*; do
2715 test -f "$ac_file" || continue;
3049 test -f "$ac_file" || continue;
2716 case $ac_file in
3050 case $ac_file in
@@ -2719,31 +3053,32 @@ $as_echo "$ac_try_echo"; } >&5
2719 break;;
3053 break;;
2720 esac
3054 esac
2721done
3055done
2722−else
3056+else $as_nop
2723− $as_echo "$as_me: failed program was:" >&5
3057+ printf "%s\n" "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
2725
3059
2726−{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3060+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3061+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2728as_fn_error $? "cannot compute suffix of object files: cannot compile
3062as_fn_error $? "cannot compute suffix of object files: cannot compile
2729See \`config.log' for more details" "$LINENO" 5; }
3063See \`config.log' for more details" "$LINENO" 5; }
2730fi
3064fi
2731rm -f conftest.$ac_cv_objext conftest.$ac_ext
3065rm -f conftest.$ac_cv_objext conftest.$ac_ext
2732fi
3066fi
2733−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3067+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2734−$as_echo "$ac_cv_objext" >&6; }
3068+printf "%s\n" "$ac_cv_objext" >&6; }
2735OBJEXT=$ac_cv_objext
3069OBJEXT=$ac_cv_objext
2736ac_objext=$OBJEXT
3070ac_objext=$OBJEXT
2737−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3071+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
2738−$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3072+printf %s "checking whether the compiler supports GNU C... " >&6; }
2739−if ${ac_cv_c_compiler_gnu+:} false; then :
3073+if test ${ac_cv_c_compiler_gnu+y}
3074+then :
2740− $as_echo_n "(cached) " >&6
3075+ printf %s "(cached) " >&6
2741−else
3076+else $as_nop
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743/* end confdefs.h. */
3078/* end confdefs.h. */
2744
3079
2745int
3080int
2746−main ()
3081+main (void)
2747{
3082{
2748#ifndef __GNUC__
3083#ifndef __GNUC__
2749 choke me
3084 choke me
@@ -2753,29 +3088,33 @@ main ()
2753 return 0;
3088 return 0;
2754}
3089}
2755_ACEOF
3090_ACEOF
2756−if ac_fn_c_try_compile "$LINENO"; then :
3091+if ac_fn_c_try_compile "$LINENO"
3092+then :
2757 ac_compiler_gnu=yes
3093 ac_compiler_gnu=yes
2758−else
3094+else $as_nop
2759 ac_compiler_gnu=no
3095 ac_compiler_gnu=no
2760fi
3096fi
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
2762ac_cv_c_compiler_gnu=$ac_compiler_gnu
3098ac_cv_c_compiler_gnu=$ac_compiler_gnu
2763
3099
2764fi
3100fi
2765−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3101+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2766−$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3102+printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3103+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104+
2767if test $ac_compiler_gnu = yes; then
3105if test $ac_compiler_gnu = yes; then
2768 GCC=yes
3106 GCC=yes
2769else
3107else
2770 GCC=
3108 GCC=
2771fi
3109fi
2772−ac_test_CFLAGS=${CFLAGS+set}
3110+ac_test_CFLAGS=${CFLAGS+y}
2773ac_save_CFLAGS=$CFLAGS
3111ac_save_CFLAGS=$CFLAGS
2774−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3112+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2775−$as_echo_n "checking whether $CC accepts -g... " >&6; }
3113+printf %s "checking whether $CC accepts -g... " >&6; }
2776−if ${ac_cv_prog_cc_g+:} false; then :
3114+if test ${ac_cv_prog_cc_g+y}
3115+then :
2777− $as_echo_n "(cached) " >&6
3116+ printf %s "(cached) " >&6
2778−else
3117+else $as_nop
2779 ac_save_c_werror_flag=$ac_c_werror_flag
3118 ac_save_c_werror_flag=$ac_c_werror_flag
2780 ac_c_werror_flag=yes
3119 ac_c_werror_flag=yes
2781 ac_cv_prog_cc_g=no
3120 ac_cv_prog_cc_g=no
@@ -2784,373 +3123,212 @@ else
2784/* end confdefs.h. */
3123/* end confdefs.h. */
2785
3124
2786int
3125int
2787−main ()
3126+main (void)
2788{
3127{
2789
3128
2790 ;
3129 ;
2791 return 0;
3130 return 0;
2792}
3131}
2793_ACEOF
3132_ACEOF
2794−if ac_fn_c_try_compile "$LINENO"; then :
3133+if ac_fn_c_try_compile "$LINENO"
3134+then :
2795 ac_cv_prog_cc_g=yes
3135 ac_cv_prog_cc_g=yes
2796−else
3136+else $as_nop
2797 CFLAGS=""
3137 CFLAGS=""
2798− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799−/* end confdefs.h. */
3139+/* 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
3018
3140
3019−cat >>confdefs.h <<_ACEOF
3141+int
3020−#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMISHARDLINK $ac_have_decl
3142+main (void)
3021−_ACEOF
3143+{
3022
3144
3145+ ;
3146+ return 0;
3147+}
3148+_ACEOF
3149+if ac_fn_c_try_compile "$LINENO"
3150+then :
3023
3151
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
3152+else $as_nop
3040− # Double quotes because CPP needs to be expanded
3153+ ac_c_werror_flag=$ac_save_c_werror_flag
3041− for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3154+ CFLAGS="-g"
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
3155+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053/* end confdefs.h. */
3156/* 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 :
3062
3157
3063−else
3158+int
3064− # Broken: fails on valid input.
3159+main (void)
3065−continue
3160+{
3066−fi
3067−rm -f conftest.err conftest.i conftest.$ac_ext
3068
3161
3069− # OK, works on sane cases. Now check whether nonexistent headers
3162+ ;
3070− # can be detected and how.
3163+ return 0;
3071− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164+}
3072−/* end confdefs.h. */
3073−#include <ac_nonexistent.h>
3074_ACEOF
3165_ACEOF
3075−if ac_fn_c_try_cpp "$LINENO"; then :
3166+if ac_fn_c_try_compile "$LINENO"
3076− # Broken: success on invalid input.
3167+then :
3077−continue
3168+ ac_cv_prog_cc_g=yes
3078−else
3079− # Passes both tests.
3080−ac_preproc_ok=:
3081−break
3082fi
3169fi
3083−rm -f conftest.err conftest.i conftest.$ac_ext
3170+rm -f core conftest.err conftest.$ac_objext conftest.beam 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
3090fi
3171fi
3091−
3172+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3092− done
3173+fi
3093− ac_cv_prog_CPP=$CPP
3174+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3094−
3175+ ac_c_werror_flag=$ac_save_c_werror_flag
3095fi
3176fi
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
3097else
3187else
3098− ac_cv_prog_CPP=$CPP
3188+ if test "$GCC" = yes; then
3189+ CFLAGS="-O2"
3190+ else
3191+ CFLAGS=
3192+ fi
3099fi
3193fi
3194+ac_prog_cc_stdc=no
3195+if test x$ac_prog_cc_stdc = xno
3196+then :
3100−{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3197+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3101−$as_echo "$CPP" >&6; }
3198+printf %s "checking for $CC option to enable C11 features... " >&6; }
3102−ac_preproc_ok=false
3199+if test ${ac_cv_prog_cc_c11+y}
3103−for ac_c_preproc_warn_flag in '' yes
3200+then :
3104−do
3201+ printf %s "(cached) " >&6
3105− # Use a header file that comes with gcc, so configuring glibc
3202+else $as_nop
3106− # with a fresh cross-compiler works.
3203+ ac_cv_prog_cc_c11=no
3107− # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3204+ac_save_CC=$CC
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
3205+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112/* end confdefs.h. */
3206/* end confdefs.h. */
3113−#ifdef __STDC__
3207+$ac_c_conftest_c11_program
3114−# include <limits.h>
3115−#else
3116−# include <assert.h>
3117−#endif
3118− Syntax error
3119_ACEOF
3208_ACEOF
3120−if ac_fn_c_try_cpp "$LINENO"; then :
3209+for ac_arg in '' -std=gnu11
3121−
3210+do
3122−else
3211+ CC="$ac_save_CC $ac_arg"
3123− # Broken: fails on valid input.
3212+ if ac_fn_c_try_compile "$LINENO"
3124−continue
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
3125fi
3221fi
3126−rm -f conftest.err conftest.i conftest.$ac_ext
3127
3222
3128− # OK, works on sane cases. Now check whether nonexistent headers
3223+if test "x$ac_cv_prog_cc_c11" = xno
3129− # can be detected and how.
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
3130− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131/* end confdefs.h. */
3252/* end confdefs.h. */
3132−#include <ac_nonexistent.h>
3253+$ac_c_conftest_c99_program
3133_ACEOF
3254_ACEOF
3134−if ac_fn_c_try_cpp "$LINENO"; then :
3255+for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3135− # Broken: success on invalid input.
3256+do
3136−continue
3257+ CC="$ac_save_CC $ac_arg"
3137−else
3258+ if ac_fn_c_try_compile "$LINENO"
3138− # Passes both tests.
3259+then :
3139−ac_preproc_ok=:
3260+ ac_cv_prog_cc_c99=$ac_arg
3140−break
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
3141fi
3267fi
3142−rm -f conftest.err conftest.i conftest.$ac_ext
3143
3268
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
3144done
3310done
3145−# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146−rm -f conftest.i conftest.err conftest.$ac_ext
3311+rm -f conftest.$ac_ext
3147−if $ac_preproc_ok; then :
3312+CC=$ac_save_CC
3313+fi
3148
3314
3149−else
3315+if test "x$ac_cv_prog_cc_c89" = xno
3316+then :
3150− { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3151−$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318+printf "%s\n" "unsupported" >&6; }
3152−as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3319+else $as_nop
3153−See \`config.log' for more details" "$LINENO" 5; }
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
3154fi
3332fi
3155
3333
3156ac_ext=c
3334ac_ext=c
@@ -3160,287 +3338,192 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
3160ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161
3339
3162
3340
3163−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3341+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3164−$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3342+printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3165−if ${ac_cv_path_GREP+:} false; then :
3343+if test ${ac_cv_c_undeclared_builtin_options+y}
3344+then :
3166− $as_echo_n "(cached) " >&6
3345+ printf %s "(cached) " >&6
3167−else
3346+else $as_nop
3168− if test -z "$GREP"; then
3347+ ac_save_CFLAGS=$CFLAGS
3169− ac_path_GREP_found=false
3348+ ac_cv_c_undeclared_builtin_options='cannot detect'
3170− # Loop through the user's path and test for each of PROGNAME-LIST
3349+ for ac_arg in '' -fno-builtin; do
3171− as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350+ CFLAGS="$ac_save_CFLAGS $ac_arg"
3172−for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3351+ # This test program should *not* compile successfully.
3173−do
3352+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174− IFS=$as_save_IFS
3353+/* end confdefs.h. */
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−
3292
3354
3293−{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3355+int
3294−$as_echo_n "checking for ANSI C header files... " >&6; }
3356+main (void)
3295−if ${ac_cv_header_stdc+:} false; then :
3357+{
3296− $as_echo_n "(cached) " >&6
3358+(void) strchr;
3359+ ;
3360+ return 0;
3361+}
3362+_ACEOF
3363+if ac_fn_c_try_compile "$LINENO"
3364+then :
3365+
3297−else
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.
3298− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h. */
3373/* end confdefs.h. */
3300−#include <stdlib.h>
3301−#include <stdarg.h>
3302−#include <string.h>
3303#include <float.h>
3374#include <float.h>
3375+#include <limits.h>
3376+#include <stdarg.h>
3377+#include <stddef.h>
3378+extern void ac_decl (int, char *);
3304
3379
3305int
3380int
3306−main ()
3381+main (void)
3307{
3382{
3383+(void) ac_decl (0, (char *) 0);
3384+ (void) ac_decl;
3308
3385
3309 ;
3386 ;
3310 return 0;
3387 return 0;
3311}
3388}
3312_ACEOF
3389_ACEOF
3313−if ac_fn_c_try_compile "$LINENO"; then :
3390+if ac_fn_c_try_compile "$LINENO"
3314− ac_cv_header_stdc=yes
3391+then :
3392+ if test x"$ac_arg" = x
3393+then :
3394+ ac_cv_c_undeclared_builtin_options='none needed'
3315−else
3395+else $as_nop
3316− ac_cv_header_stdc=no
3396+ ac_cv_c_undeclared_builtin_options=$ac_arg
3317fi
3397fi
3318−rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398+ break
3319−
3399+fi
3320−if test $ac_cv_header_stdc = yes; then
3400+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3321− # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3401+fi
3322− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3323−/* end confdefs.h. */
3403+ done
3324−#include <string.h>
3404+ CFLAGS=$ac_save_CFLAGS
3325−
3405+
3326−_ACEOF
3406+fi
3327−if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
3328− $EGREP "memchr" >/dev/null 2>&1; then :
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
3329
3420
3330−else
3421+ac_fn_check_decl "$LINENO" "IN_MASK_CREATE" "ac_cv_have_decl_IN_MASK_CREATE" "#include <sys/inotify.h>
3331− ac_cv_header_stdc=no
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
3332fi
3428fi
3333−rm -f conftest*
3429+printf "%s\n" "#define HAVE_DECL_IN_MASK_CREATE $ac_have_decl" >>confdefs.h
3334
3430
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
3335fi
3438fi
3439+printf "%s\n" "#define HAVE_DECL_IN_EXCL_UNLINK $ac_have_decl" >>confdefs.h
3336
3440
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>
3342
3441
3343−_ACEOF
3442+# XXX Do this only for macOS
3344−if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443+ac_fn_check_decl "$LINENO" "kFSEventStreamCreateFlagFileEvents" "ac_cv_have_decl_kFSEventStreamCreateFlagFileEvents" "#include <CoreServices/CoreServices.h>
3345− $EGREP "free" >/dev/null 2>&1; then :
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
3346
3452
3347−else
3453+ac_fn_check_decl "$LINENO" "kFSEventStreamCreateFlagFullHistory" "ac_cv_have_decl_kFSEventStreamCreateFlagFullHistory" "#include <CoreServices/CoreServices.h>
3348− ac_cv_header_stdc=no
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
3349fi
3460fi
3350−rm -f conftest*
3461+printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFULLHISTORY $ac_have_decl" >>confdefs.h
3351
3462
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
3352fi
3470fi
3471+printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMCLONED $ac_have_decl" >>confdefs.h
3353
3472
3354−if test $ac_cv_header_stdc = yes; then
3473+ac_fn_check_decl "$LINENO" "kFSEventStreamEventFlagItemIsHardlink" "ac_cv_have_decl_kFSEventStreamEventFlagItemIsHardlink" "#include <CoreServices/CoreServices.h>
3355− # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3474+" "$ac_c_undeclared_builtin_options" "CFLAGS"
3356− if test "$cross_compiling" = yes; then :
3475+if test "x$ac_cv_have_decl_kFSEventStreamEventFlagItemIsHardlink" = xyes
3357− :
3476+then :
3358−else
3477+ ac_have_decl=1
3359− cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478+else $as_nop
3360−/* end confdefs.h. */
3479+ ac_have_decl=0
3361−#include <ctype.h>
3480+fi
3362−#include <stdlib.h>
3481+printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMISHARDLINK $ac_have_decl" >>confdefs.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
3373
3482
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 :
3387
3483
3388−else
3484+# Check headers and functions required
3389− ac_cv_header_stdc=no
3485+ac_header= ac_cache=
3390−fi
3486+for ac_item in $ac_header_c_list
3391−rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3487+do
3392− conftest.$ac_objext conftest.beam conftest.$ac_ext
3488+ if test $ac_cache; then
3393−fi
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
3394
3500
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
3400
3501
3401−$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3402
3502
3403−fi
3404
3503
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
3416
3504
3417−fi
3418
3505
3419−done
3420
3506
3421
3507
3422−for ac_header in time.h
3508+if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3423−do :
3509+then :
3424− ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
3510+
3425−if test "x$ac_cv_header_time_h" = xyes; then :
3511+printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3426− cat >>confdefs.h <<_ACEOF
3427−#define HAVE_TIME_H 1
3428−_ACEOF
3429
3512
3430fi
3513fi
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
3431
3518
3432−done
3519+fi
3433
3520
3434−for ac_func in clock_gettime
3521+ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
3435−do :
3522+if test "x$ac_cv_func_clock_gettime" = xyes
3436− ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
3523+then :
3437−if test "x$ac_cv_func_clock_gettime" = xyes; then :
3524+ printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
3438− cat >>confdefs.h <<_ACEOF
3439−#define HAVE_CLOCK_GETTIME 1
3440−_ACEOF
3441
3525
3442fi
3526fi
3443−done
3444
3527
3445
3528
3446# Output
3529# Output
@@ -3473,8 +3556,8 @@ _ACEOF
3473 case $ac_val in #(
3556 case $ac_val in #(
3474 *${as_nl}*)
3557 *${as_nl}*)
3475 case $ac_var in #(
3558 case $ac_var in #(
3476− *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3559+ *_cv_*) { printf "%s\n" "$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;} ;;
3560+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3478 esac
3561 esac
3479 case $ac_var in #(
3562 case $ac_var in #(
3480 _ | IFS | as_nl) ;; #(
3563 _ | IFS | as_nl) ;; #(
@@ -3504,15 +3587,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3504 /^ac_cv_env_/b end
3587 /^ac_cv_env_/b end
3505 t clear
3588 t clear
3506 :clear
3589 :clear
3507− s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3590+ s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3508 t end
3591 t end
3509 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3510 :end' >>confcache
3593 :end' >>confcache
3511if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3594if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3512 if test -w "$cache_file"; then
3595 if test -w "$cache_file"; then
3513 if test "x$cache_file" != "x/dev/null"; then
3596 if test "x$cache_file" != "x/dev/null"; then
3514− { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3597+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3515−$as_echo "$as_me: updating cache $cache_file" >&6;}
3598+printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
3516 if test ! -f "$cache_file" || test -h "$cache_file"; then
3599 if test ! -f "$cache_file" || test -h "$cache_file"; then
3517 cat confcache >"$cache_file"
3600 cat confcache >"$cache_file"
3518 else
3601 else
@@ -3526,8 +3609,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;}
3526 fi
3609 fi
3527 fi
3610 fi
3528 else
3611 else
3529− { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3612+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3530−$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3613+printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
3531 fi
3614 fi
3532fi
3615fi
3533rm -f confcache
3616rm -f confcache
@@ -3544,7 +3627,7 @@ U=
3544for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3627for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3545 # 1. Remove the extension, and $U if already installed.
3628 # 1. Remove the extension, and $U if already installed.
3546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3629 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"`
3548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3549 # will be set to the directory where LIBOBJS objects are built.
3632 # will be set to the directory where LIBOBJS objects are built.
3550 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3633 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
@@ -3560,8 +3643,8 @@ LTLIBOBJS=$ac_ltlibobjs
3560ac_write_fail=0
3643ac_write_fail=0
3561ac_clean_files_save=$ac_clean_files
3644ac_clean_files_save=$ac_clean_files
3562ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3645ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3563−{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3646+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3564−$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3647+printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3565as_write_fail=0
3648as_write_fail=0
3566cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3649cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3567#! $SHELL
3650#! $SHELL
@@ -3584,14 +3667,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3584
3667
3585# Be more Bourne compatible
3668# Be more Bourne compatible
3586DUALCASE=1; export DUALCASE # for MKS sh
3669DUALCASE=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 :
3588 emulate sh
3673 emulate sh
3589 NULLCMD=:
3674 NULLCMD=:
3590 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3675 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3591 # is contrary to our usage. Disable this feature.
3676 # is contrary to our usage. Disable this feature.
3592 alias -g '${1+"$@"}'='"$@"'
3677 alias -g '${1+"$@"}'='"$@"'
3593 setopt NO_GLOB_SUBST
3678 setopt NO_GLOB_SUBST
3594−else
3679+else $as_nop
3595 case `(set -o) 2>/dev/null` in #(
3680 case `(set -o) 2>/dev/null` in #(
3596 *posix*) :
3681 *posix*) :
3597 set -o posix ;; #(
3682 set -o posix ;; #(
@@ -3601,46 +3686,46 @@ esac
3601fi
3686fi
3602
3687
3603
3688
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.
3604as_nl='
3697as_nl='
3605'
3698'
3606export as_nl
3699export as_nl
3607−# Printing a long string crashes Solaris 7 /usr/bin/printf.
3700+IFS=" "" $as_nl"
3608−as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3701+
3609−as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3702+PS1='$ '
3610−as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3703+PS2='> '
3611−# Prefer a ksh shell builtin over an external printf program on Solaris,
3704+PS4='+ '
3612−# but without wasting forks for bash or zsh.
3705+
3613−if test -z "$BASH_VERSION$ZSH_VERSION" \
3706+# Ensure predictable behavior from utilities with locale-dependent output.
3614− && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3707+LC_ALL=C
3615− as_echo='print -r --'
3708+export LC_ALL
3616− as_echo_n='print -rn --'
3709+LANGUAGE=C
3617−elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3710+export LANGUAGE
3618− as_echo='printf %s\n'
3711+
3619− as_echo_n='printf %s'
3712+# We cannot yet rely on "unset" to work, but we need these variables
3620−else
3713+# to be unset--not just set to an empty or harmless value--now, to
3621− if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3714+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
3622− as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3715+# also avoids known problems related to "unset" and subshell syntax
3623− as_echo_n='/usr/ucb/echo -n'
3716+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3624− else
3717+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3625− as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3718+do eval test \${$as_var+y} \
3626− as_echo_n_body='eval
3719+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3627− arg=$1;
3720+done
3628− case $arg in #(
3721+
3629− *"$as_nl"*)
3722+# Ensure that fds 0, 1, and 2 are open.
3630− expr "X$arg" : "X\\(.*\\)$as_nl";
3723+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3631− arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3724+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3632− esac;
3725+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
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
3641
3726
3642# The user is always right.
3727# The user is always right.
3643−if test "${PATH_SEPARATOR+set}" != set; then
3728+if ${PATH_SEPARATOR+false} :; then
3644 PATH_SEPARATOR=:
3729 PATH_SEPARATOR=:
3645 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3646 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3731 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
@@ -3649,13 +3734,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
3649fi
3734fi
3650
3735
3651
3736
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−
3659# Find who we are. Look in the path if we contain no directory separator.
3737# Find who we are. Look in the path if we contain no directory separator.
3660as_myself=
3738as_myself=
3661case $0 in #((
3739case $0 in #((
@@ -3664,8 +3742,12 @@ case $0 in #((
3664for as_dir in $PATH
3742for as_dir in $PATH
3665do
3743do
3666 IFS=$as_save_IFS
3744 IFS=$as_save_IFS
3667− test -z "$as_dir" && as_dir=.
3745+ case $as_dir in #(((
3668− test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3746+ '') as_dir=./ ;;
3747+ */) ;;
3748+ *) as_dir=$as_dir/ ;;
3749+ esac
3750+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3669 done
3751 done
3670IFS=$as_save_IFS
3752IFS=$as_save_IFS
3671
3753
@@ -3677,30 +3759,10 @@ if test "x$as_myself" = x; then
3677 as_myself=$0
3759 as_myself=$0
3678fi
3760fi
3679if test ! -f "$as_myself"; then
3761if 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
3681 exit 1
3763 exit 1
3682fi
3764fi
3683
3765
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
3704
3766
3705
3767
3706# as_fn_error STATUS ERROR [LINENO LOG_FD]
3768# as_fn_error STATUS ERROR [LINENO LOG_FD]
@@ -3713,13 +3775,14 @@ as_fn_error ()
3713 as_status=$1; test $as_status -eq 0 && as_status=1
3775 as_status=$1; test $as_status -eq 0 && as_status=1
3714 if test "$4"; then
3776 if test "$4"; then
3715 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3777 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
3717 fi
3779 fi
3718− $as_echo "$as_me: error: $2" >&2
3780+ printf "%s\n" "$as_me: error: $2" >&2
3719 as_fn_exit $as_status
3781 as_fn_exit $as_status
3720} # as_fn_error
3782} # as_fn_error
3721
3783
3722
3784
3785+
3723# as_fn_set_status STATUS
3786# as_fn_set_status STATUS
3724# -----------------------
3787# -----------------------
3725# Set $? to STATUS, without forking.
3788# Set $? to STATUS, without forking.
@@ -3746,18 +3809,20 @@ as_fn_unset ()
3746 { eval $1=; unset $1;}
3809 { eval $1=; unset $1;}
3747}
3810}
3748as_unset=as_fn_unset
3811as_unset=as_fn_unset
3812+
3749# as_fn_append VAR VALUE
3813# as_fn_append VAR VALUE
3750# ----------------------
3814# ----------------------
3751# Append the text in VALUE to the end of the definition contained in VAR. Take
3815# Append the text in VALUE to the end of the definition contained in VAR. Take
3752# advantage of any shell optimizations that allow amortized linear growth over
3816# advantage of any shell optimizations that allow amortized linear growth over
3753# repeated appends, instead of the typical quadratic growth present in naive
3817# repeated appends, instead of the typical quadratic growth present in naive
3754# implementations.
3818# 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 :
3756 eval 'as_fn_append ()
3821 eval 'as_fn_append ()
3757 {
3822 {
3758 eval $1+=\$2
3823 eval $1+=\$2
3759 }'
3824 }'
3760−else
3825+else $as_nop
3761 as_fn_append ()
3826 as_fn_append ()
3762 {
3827 {
3763 eval $1=\$$1\$2
3828 eval $1=\$$1\$2
@@ -3769,12 +3834,13 @@ fi # as_fn_append
3769# Perform arithmetic evaluation on the ARGs, and store the result in the
3834# Perform arithmetic evaluation on the ARGs, and store the result in the
3770# global $as_val. Take advantage of shells that can avoid forks. The arguments
3835# global $as_val. Take advantage of shells that can avoid forks. The arguments
3771# must be portable across $(()) and expr.
3836# 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 :
3773 eval 'as_fn_arith ()
3839 eval 'as_fn_arith ()
3774 {
3840 {
3775 as_val=$(( $* ))
3841 as_val=$(( $* ))
3776 }'
3842 }'
3777−else
3843+else $as_nop
3778 as_fn_arith ()
3844 as_fn_arith ()
3779 {
3845 {
3780 as_val=`expr "$@" || test $? -eq 1`
3846 as_val=`expr "$@" || test $? -eq 1`
@@ -3805,7 +3871,7 @@ as_me=`$as_basename -- "$0" ||
3805$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3871$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3806 X"$0" : 'X\(//\)$' \| \
3872 X"$0" : 'X\(//\)$' \| \
3807 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3873 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3808−$as_echo X/"$0" |
3874+printf "%s\n" X/"$0" |
3809 sed '/^.*\/\([^/][^/]*\)\/*$/{
3875 sed '/^.*\/\([^/][^/]*\)\/*$/{
3810 s//\1/
3876 s//\1/
3811 q
3877 q
@@ -3827,6 +3893,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3827as_cr_digits='0123456789'
3893as_cr_digits='0123456789'
3828as_cr_alnum=$as_cr_Letters$as_cr_digits
3894as_cr_alnum=$as_cr_Letters$as_cr_digits
3829
3895
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.
3830ECHO_C= ECHO_N= ECHO_T=
3900ECHO_C= ECHO_N= ECHO_T=
3831case `echo -n x` in #(((((
3901case `echo -n x` in #(((((
3832-n*)
3902-n*)
@@ -3840,6 +3910,12 @@ case `echo -n x` in #(((((
3840 ECHO_N='-n';;
3910 ECHO_N='-n';;
3841esac
3911esac
3842
3912
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+
3843rm -f conf$$ conf$$.exe conf$$.file
3919rm -f conf$$ conf$$.exe conf$$.file
3844if test -d conf$$.dir; then
3920if test -d conf$$.dir; then
3845 rm -f conf$$.dir/conf$$.file
3921 rm -f conf$$.dir/conf$$.file
@@ -3881,7 +3957,7 @@ as_fn_mkdir_p ()
3881 as_dirs=
3957 as_dirs=
3882 while :; do
3958 while :; do
3883 case $as_dir in #(
3959 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"`;; #'(
3885 *) as_qdir=$as_dir;;
3961 *) as_qdir=$as_dir;;
3886 esac
3962 esac
3887 as_dirs="'$as_qdir' $as_dirs"
3963 as_dirs="'$as_qdir' $as_dirs"
@@ -3890,7 +3966,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3890 X"$as_dir" : 'X\(//\)[^/]' \| \
3966 X"$as_dir" : 'X\(//\)[^/]' \| \
3891 X"$as_dir" : 'X\(//\)$' \| \
3967 X"$as_dir" : 'X\(//\)$' \| \
3892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3893−$as_echo X"$as_dir" |
3969+printf "%s\n" X"$as_dir" |
3894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3895 s//\1/
3971 s//\1/
3896 q
3972 q
@@ -3952,8 +4028,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3952# report actual input values of CONFIG_FILES etc. instead of their
4028# report actual input values of CONFIG_FILES etc. instead of their
3953# values after options handling.
4029# values after options handling.
3954ac_log="
4030ac_log="
3955−This file was extended by streamly $as_me 0.7.2, which was
4031+This file was extended by streamly $as_me 0.8.0, which was
3956−generated by GNU Autoconf 2.69. Invocation command line was
4032+generated by GNU Autoconf 2.71. Invocation command line was
3957
4033
3958 CONFIG_FILES = $CONFIG_FILES
4034 CONFIG_FILES = $CONFIG_FILES
3959 CONFIG_HEADERS = $CONFIG_HEADERS
4035 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -3999,17 +4075,20 @@ Usage: $0 [OPTION]... [TAG]...
3999Configuration headers:
4075Configuration headers:
4000$config_headers
4076$config_headers
4001
4077
4002−Report bugs to <streamly@composewell.com>."
4078+Report bugs to <streamly@composewell.com>.
4079+streamly home page: <https://streamly.composewell.com>."
4003
4080
4004_ACEOF
4081_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"`
4005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4084cat >>$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'
4007ac_cs_version="\\
4086ac_cs_version="\\
4008−streamly config.status 0.7.2
4087+streamly config.status 0.8.0
4009−configured by $0, generated by GNU Autoconf 2.69,
4088+configured by $0, generated by GNU Autoconf 2.71,
4010 with options \\"\$ac_cs_config\\"
4089 with options \\"\$ac_cs_config\\"
4011
4090
4012−Copyright (C) 2012 Free Software Foundation, Inc.
4091+Copyright (C) 2021 Free Software Foundation, Inc.
4013This config.status script is free software; the Free Software Foundation
4092This config.status script is free software; the Free Software Foundation
4014gives unlimited permission to copy, distribute and modify it."
4093gives unlimited permission to copy, distribute and modify it."
4015
4094
@@ -4046,15 +4125,15 @@ do
4046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4047 ac_cs_recheck=: ;;
4126 ac_cs_recheck=: ;;
4048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4049− $as_echo "$ac_cs_version"; exit ;;
4128+ printf "%s\n" "$ac_cs_version"; exit ;;
4050 --config | --confi | --conf | --con | --co | --c )
4129 --config | --confi | --conf | --con | --co | --c )
4051− $as_echo "$ac_cs_config"; exit ;;
4130+ printf "%s\n" "$ac_cs_config"; exit ;;
4052 --debug | --debu | --deb | --de | --d | -d )
4131 --debug | --debu | --deb | --de | --d | -d )
4053 debug=: ;;
4132 debug=: ;;
4054 --header | --heade | --head | --hea )
4133 --header | --heade | --head | --hea )
4055 $ac_shift
4134 $ac_shift
4056 case $ac_optarg in
4135 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"` ;;
4058 esac
4137 esac
4059 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4138 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4060 ac_need_defaults=false;;
4139 ac_need_defaults=false;;
@@ -4063,7 +4142,7 @@ do
4063 as_fn_error $? "ambiguous option: \`$1'
4142 as_fn_error $? "ambiguous option: \`$1'
4064Try \`$0 --help' for more information.";;
4143Try \`$0 --help' for more information.";;
4065 --help | --hel | -h )
4144 --help | --hel | -h )
4066− $as_echo "$ac_cs_usage"; exit ;;
4145+ printf "%s\n" "$ac_cs_usage"; exit ;;
4067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4069 ac_cs_silent=: ;;
4148 ac_cs_silent=: ;;
@@ -4091,7 +4170,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4091if \$ac_cs_recheck; then
4170if \$ac_cs_recheck; then
4092 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4093 shift
4172 shift
4094− \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4173+ \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
4095 CONFIG_SHELL='$SHELL'
4174 CONFIG_SHELL='$SHELL'
4096 export CONFIG_SHELL
4175 export CONFIG_SHELL
4097 exec "\$@"
4176 exec "\$@"
@@ -4105,7 +4184,7 @@ exec 5>>config.log
4105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4106## Running $as_me. ##
4185## Running $as_me. ##
4107_ASBOX
4186_ASBOX
4108− $as_echo "$ac_log"
4187+ printf "%s\n" "$ac_log"
4109} >&5
4188} >&5
4110
4189
4111_ACEOF
4190_ACEOF
@@ -4130,7 +4209,7 @@ done
4130# We use the long form for the default assignment because of an extremely
4209# We use the long form for the default assignment because of an extremely
4131# bizarre bug on SunOS 4.1.3.
4210# bizarre bug on SunOS 4.1.3.
4132if $ac_need_defaults; then
4211if $ac_need_defaults; then
4133− test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4212+ test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
4134fi
4213fi
4135
4214
4136# Have a temporary directory for convenience. Make it in the build tree
4215# Have a temporary directory for convenience. Make it in the build tree
@@ -4308,7 +4387,7 @@ do
4308 esac ||
4387 esac ||
4309 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4388 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4310 esac
4389 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
4312 as_fn_append ac_file_inputs " '$ac_f'"
4391 as_fn_append ac_file_inputs " '$ac_f'"
4313 done
4392 done
4314
4393
@@ -4316,17 +4395,17 @@ do
4316 # use $as_me), people would be surprised to read:
4395 # use $as_me), people would be surprised to read:
4317 # /* config.h. Generated by config.status. */
4396 # /* config.h. Generated by config.status. */
4318 configure_input='Generated from '`
4397 configure_input='Generated from '`
4319− $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4398+ printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4320 `' by configure.'
4399 `' by configure.'
4321 if test x"$ac_file" != x-; then
4400 if test x"$ac_file" != x-; then
4322 configure_input="$ac_file. $configure_input"
4401 configure_input="$ac_file. $configure_input"
4323− { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4402+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4324−$as_echo "$as_me: creating $ac_file" >&6;}
4403+printf "%s\n" "$as_me: creating $ac_file" >&6;}
4325 fi
4404 fi
4326 # Neutralize special characters interpreted by sed in replacement strings.
4405 # Neutralize special characters interpreted by sed in replacement strings.
4327 case $configure_input in #(
4406 case $configure_input in #(
4328 *\&* | *\|* | *\\* )
4407 *\&* | *\|* | *\\* )
4329− ac_sed_conf_input=`$as_echo "$configure_input" |
4408+ ac_sed_conf_input=`printf "%s\n" "$configure_input" |
4330 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4409 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4331 *) ac_sed_conf_input=$configure_input;;
4410 *) ac_sed_conf_input=$configure_input;;
4332 esac
4411 esac
@@ -4343,7 +4422,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4343 X"$ac_file" : 'X\(//\)[^/]' \| \
4422 X"$ac_file" : 'X\(//\)[^/]' \| \
4344 X"$ac_file" : 'X\(//\)$' \| \
4423 X"$ac_file" : 'X\(//\)$' \| \
4345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4346−$as_echo X"$ac_file" |
4425+printf "%s\n" X"$ac_file" |
4347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4348 s//\1/
4427 s//\1/
4349 q
4428 q
@@ -4367,9 +4446,9 @@ $as_echo X"$ac_file" |
4367case "$ac_dir" in
4446case "$ac_dir" in
4368.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4447.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4369*)
4448*)
4370− ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4449+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
4371 # A ".." for each directory in $ac_dir_suffix.
4450 # 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|/||'`
4373 case $ac_top_builddir_sub in
4452 case $ac_top_builddir_sub in
4374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
@@ -4405,20 +4484,20 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4405 #
4484 #
4406 if test x"$ac_file" != x-; then
4485 if test x"$ac_file" != x-; then
4407 {
4486 {
4408− $as_echo "/* $configure_input */" \
4487+ printf "%s\n" "/* $configure_input */" >&1 \
4409 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4488 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4410 } >"$ac_tmp/config.h" \
4489 } >"$ac_tmp/config.h" \
4411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4412 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4491 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
4492+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4414−$as_echo "$as_me: $ac_file is unchanged" >&6;}
4493+printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
4415 else
4494 else
4416 rm -f "$ac_file"
4495 rm -f "$ac_file"
4417 mv "$ac_tmp/config.h" "$ac_file" \
4496 mv "$ac_tmp/config.h" "$ac_file" \
4418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4419 fi
4498 fi
4420 else
4499 else
4421− $as_echo "/* $configure_input */" \
4500+ printf "%s\n" "/* $configure_input */" >&1 \
4422 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4501 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4423 || as_fn_error $? "could not create -" "$LINENO" 5
4502 || as_fn_error $? "could not create -" "$LINENO" 5
4424 fi
4503 fi
@@ -4459,7 +4538,8 @@ if test "$no_create" != yes; then
4459 $ac_cs_success || as_fn_exit 1
4538 $ac_cs_success || as_fn_exit 1
4460fi
4539fi
4461if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4540if 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
4541+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4463−$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4542+printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4464fi
4543fi
4465
4544
4545+
configure.ac+1−1
@@ -3,7 +3,7 @@
3# See https://www.gnu.org/software/autoconf/manual/autoconf.html for help on
3# See https://www.gnu.org/software/autoconf/manual/autoconf.html for help on
4# the macros used in this file.
4# the macros used in this file.
5
5
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])
7
7
8# To suppress "WARNING: unrecognized options: --with-compiler"
8# To suppress "WARNING: unrecognized options: --with-compiler"
9AC_ARG_WITH([compiler], [GHC])
9AC_ARG_WITH([compiler], [GHC])
credits/CONTRIBUTORS.md+4−3
@@ -4,21 +4,22 @@ please see https://github.com/composewell/streamly/issues.
4Use `git shortlog -sn tag1...tag2` on the git repository to get a list of
4Use `git shortlog -sn tag1...tag2` on the git repository to get a list of
5contributors between two repository tags.
5contributors between two repository tags.
6
6
7−## HEAD
7+## 0.8.0
8
8
9* Harendra Kumar
9* Harendra Kumar
10* Adithya Kumar
10* Adithya Kumar
11* Pranay Sashank
11* Pranay Sashank
12+* Ranjeet Kumar Ranjan
12* Anurag Hooda
13* Anurag Hooda
13* Ahmed Zaheer Dadarkar
14* Ahmed Zaheer Dadarkar
14−* Ranjeet Ranjan
15* Shruti Umat
15* Shruti Umat
16+* Joseph Koshy (Google LLC.)
16* Sanchayan Maity
17* Sanchayan Maity
17* Kirill Elagin
18* Kirill Elagin
18* Shlok Datye
19* Shlok Datye
19* Julian Ospald
20* Julian Ospald
21+* George Thomas
20* endgame
22* endgame
21−* Google LLC.
22
23
23## 0.7.3
24## 0.7.3
24
25
credits/COPYRIGHTS.md+1−1
@@ -3,7 +3,7 @@ currently shipped with the package. To find parts of the code where the
3original or modified code has been included please search for the copyright
3original or modified code has been included please search for the copyright
4notices in the individual files.
4notices in the individual files.
5
5
6−## Unreleased
6+## 0.8.0
7
7
8* macOS FS Event handling C code adapted from hfsevents package:
8* macOS FS Event handling C code adapted from hfsevents package:
9 * Copyright (c) 2012, Luite Stegeman
9 * Copyright (c) 2012, Luite Stegeman
streamly.cabal+2−1
@@ -1,6 +1,6 @@
1cabal-version: 2.2
1cabal-version: 2.2
2name: streamly
2name: streamly
3−version: 0.7.2
3+version: 0.8.0
4synopsis: Dataflow programming and declarative concurrency
4synopsis: Dataflow programming and declarative concurrency
5description:
5description:
6 Browse the documentation at https://streamly.composewell.com.
6 Browse the documentation at https://streamly.composewell.com.
@@ -36,6 +36,7 @@ tested-with: GHC==8.0.2
36 , GHC==8.6.5
36 , GHC==8.6.5
37 , GHC==8.8.4
37 , GHC==8.8.4
38 , GHC==8.10.4
38 , GHC==8.10.4
39+ , GHC==9.0.1
39author: Composewell Technologies
40author: Composewell Technologies
40maintainer: streamly@composewell.com
41maintainer: streamly@composewell.com
41copyright: 2017 Composewell Technologies
42copyright: 2017 Composewell Technologies