ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.9 by root, Wed Dec 1 07:30:38 2010 UTC vs.
Revision 1.39 by root, Thu Feb 29 18:02:43 2024 UTC

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.67. 3# Generated by GNU Autoconf 2.71.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 7# Inc.
8# Foundation, Inc.
9# 8#
10# 9#
11# This configure script is free software; the Free Software Foundation 10# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 11# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 12## -------------------- ##
14## M4sh Initialization. ## 13## M4sh Initialization. ##
15## -------------------- ## 14## -------------------- ##
16 15
17# Be more Bourne compatible 16# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh 17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
20 emulate sh 21 emulate sh
21 NULLCMD=: 22 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature. 24 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"' 25 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 26 setopt NO_GLOB_SUBST
26else 27else $as_nop
27 case `(set -o) 2>/dev/null` in #( 28 case `(set -o) 2>/dev/null` in #(
28 *posix*) : 29 *posix*) :
29 set -o posix ;; #( 30 set -o posix ;; #(
30 *) : 31 *) :
31 ;; 32 ;;
32esac 33esac
33fi 34fi
34 35
35 36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
36as_nl=' 45as_nl='
37' 46'
38export as_nl 47export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf. 48IFS=" "" $as_nl"
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 50PS1='$ '
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51PS2='> '
43# Prefer a ksh shell builtin over an external printf program on Solaris, 52PS4='+ '
44# but without wasting forks for bash or zsh. 53
45if test -z "$BASH_VERSION$ZSH_VERSION" \ 54# Ensure predictable behavior from utilities with locale-dependent output.
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 55LC_ALL=C
47 as_echo='print -r --' 56export LC_ALL
48 as_echo_n='print -rn --' 57LANGUAGE=C
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 58export LANGUAGE
50 as_echo='printf %s\n' 59
51 as_echo_n='printf %s' 60# We cannot yet rely on "unset" to work, but we need these variables
52else 61# 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 62# 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"' 63# also avoids known problems related to "unset" and subshell syntax
55 as_echo_n='/usr/ucb/echo -n' 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
56 else 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66do eval test \${$as_var+y} \
58 as_echo_n_body='eval 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
59 arg=$1; 68done
60 case $arg in #( 69
61 *"$as_nl"*) 70# Ensure that fds 0, 1, and 2 are open.
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
64 esac; 73if (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'
72fi
73 74
74# The user is always right. 75# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then 76if ${PATH_SEPARATOR+false} :; then
76 PATH_SEPARATOR=: 77 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';' 80 PATH_SEPARATOR=';'
80 } 81 }
81fi 82fi
82 83
83 84
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator. 85# Find who we are. Look in the path if we contain no directory separator.
86as_myself=
92case $0 in #(( 87case $0 in #((
93 *[\\/]* ) as_myself=$0 ;; 88 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH 90for as_dir in $PATH
96do 91do
97 IFS=$as_save_IFS 92 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=. 93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100 done 99 done
101IFS=$as_save_IFS 100IFS=$as_save_IFS
102 101
103 ;; 102 ;;
104esac 103esac
106# in which case we are not to be found in the path. 105# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then 106if test "x$as_myself" = x; then
108 as_myself=$0 107 as_myself=$0
109fi 108fi
110if test ! -f "$as_myself"; then 109if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1 111 exit 1
113fi 112fi
114 113
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126 114
127# NLS nuisances. 115# Use a proper internal environment variable to ensure we don't fall
128LC_ALL=C 116 # into an infinite loop, continuously re-executing ourselves.
129export LC_ALL 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
130LANGUAGE=C 118 _as_can_reexec=no; export _as_can_reexec;
131export LANGUAGE 119 # We cannot yet assume a decent shell, so we have to provide a
132 120# neutralization value for shells without unset; and this also
133# CDPATH. 121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
135 126case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed `exec'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
136if test "x$CONFIG_SHELL" = x; then 140if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
138 emulate sh 144 emulate sh
139 NULLCMD=: 145 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature. 147 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST 149 setopt NO_GLOB_SUBST
144else 150else \$as_nop
145 case \`(set -o) 2>/dev/null\` in #( 151 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) : 152 *posix*) :
147 set -o posix ;; #( 153 set -o posix ;; #(
148 *) : 154 *) :
149 ;; 155 ;;
159exitcode=0 165exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
165 172
166else 173else \$as_nop
167 exitcode=1; echo positional parameters were not saved. 174 exitcode=1; echo positional parameters were not saved.
168fi 175fi
169test x\$exitcode = x0 || exit 1" 176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
179test -x / || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
174 if (eval "$as_required") 2>/dev/null; then : 184 if (eval "$as_required") 2>/dev/null
185then :
175 as_have_required=yes 186 as_have_required=yes
176else 187else $as_nop
177 as_have_required=no 188 as_have_required=no
178fi 189fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191then :
180 192
181else 193else $as_nop
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183as_found=false 195as_found=false
184for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185do 197do
186 IFS=$as_save_IFS 198 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=. 199 case $as_dir in #(((
200 '') as_dir=./ ;;
201 */) ;;
202 *) as_dir=$as_dir/ ;;
203 esac
188 as_found=: 204 as_found=:
189 case $as_dir in #( 205 case $as_dir in #(
190 /*) 206 /*)
191 for as_base in sh bash ksh sh5; do 207 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks. 208 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base 209 as_shell=$as_dir$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212then :
196 CONFIG_SHELL=$as_shell as_have_required=yes 213 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215then :
198 break 2 216 break 2
199fi 217fi
200fi 218fi
201 done;; 219 done;;
202 esac 220 esac
203 as_found=false 221 as_found=false
204done 222done
223IFS=$as_save_IFS
224if $as_found
225then :
226
227else $as_nop
205$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230then :
207 CONFIG_SHELL=$SHELL as_have_required=yes 231 CONFIG_SHELL=$SHELL as_have_required=yes
208fi; } 232fi
209IFS=$as_save_IFS 233fi
210 234
211 235
212 if test "x$CONFIG_SHELL" != x; then : 236 if test "x$CONFIG_SHELL" != x
237then :
238 export CONFIG_SHELL
213 # We cannot yet assume a decent shell, so we have to provide a 239 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also 240# neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables. 241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
216 BASH_ENV=/dev/null 243BASH_ENV=/dev/null
217 ENV=/dev/null 244ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL 246case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251esac
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
221fi 257fi
222 258
223 if test x$as_have_required = xno; then : 259 if test x$as_have_required = xno
260then :
224 $as_echo "$0: This script requires a shell more modern than all" 261 printf "%s\n" "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system." 262 printf "%s\n" "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then 263 if test ${ZSH_VERSION+y} ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
229 else 266 else
230 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 267 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
231$0: including any error possibly output before this 268$0: including any error possibly output before this
232$0: message. Then install a modern shell, or manually run 269$0: message. Then install a modern shell, or manually run
233$0: the script under such a shell if you do have one." 270$0: the script under such a shell if you do have one."
234 fi 271 fi
235 exit 1 272 exit 1
252{ 289{
253 { eval $1=; unset $1;} 290 { eval $1=; unset $1;}
254} 291}
255as_unset=as_fn_unset 292as_unset=as_fn_unset
256 293
294
257# as_fn_set_status STATUS 295# as_fn_set_status STATUS
258# ----------------------- 296# -----------------------
259# Set $? to STATUS, without forking. 297# Set $? to STATUS, without forking.
260as_fn_set_status () 298as_fn_set_status ()
261{ 299{
269{ 307{
270 set +e 308 set +e
271 as_fn_set_status $1 309 as_fn_set_status $1
272 exit $1 310 exit $1
273} # as_fn_exit 311} # as_fn_exit
312# as_fn_nop
313# ---------
314# Do nothing but, unlike ":", preserve the value of $?.
315as_fn_nop ()
316{
317 return $?
318}
319as_nop=as_fn_nop
274 320
275# as_fn_mkdir_p 321# as_fn_mkdir_p
276# ------------- 322# -------------
277# Create "$as_dir" as a directory, including parents if necessary. 323# Create "$as_dir" as a directory, including parents if necessary.
278as_fn_mkdir_p () 324as_fn_mkdir_p ()
283 esac 329 esac
284 test -d "$as_dir" || eval $as_mkdir_p || { 330 test -d "$as_dir" || eval $as_mkdir_p || {
285 as_dirs= 331 as_dirs=
286 while :; do 332 while :; do
287 case $as_dir in #( 333 case $as_dir in #(
288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289 *) as_qdir=$as_dir;; 335 *) as_qdir=$as_dir;;
290 esac 336 esac
291 as_dirs="'$as_qdir' $as_dirs" 337 as_dirs="'$as_qdir' $as_dirs"
292 as_dir=`$as_dirname -- "$as_dir" || 338 as_dir=`$as_dirname -- "$as_dir" ||
293$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \
295 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \
296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297$as_echo X"$as_dir" | 343printf "%s\n" X"$as_dir" |
298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299 s//\1/ 345 s//\1/
300 q 346 q
301 } 347 }
302 /^X\(\/\/\)[^/].*/{ 348 /^X\(\/\/\)[^/].*/{
317 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
319 365
320 366
321} # as_fn_mkdir_p 367} # as_fn_mkdir_p
368
369# as_fn_executable_p FILE
370# -----------------------
371# Test if FILE is an executable regular file.
372as_fn_executable_p ()
373{
374 test -f "$1" && test -x "$1"
375} # as_fn_executable_p
322# as_fn_append VAR VALUE 376# as_fn_append VAR VALUE
323# ---------------------- 377# ----------------------
324# Append the text in VALUE to the end of the definition contained in VAR. Take 378# Append the text in VALUE to the end of the definition contained in VAR. Take
325# advantage of any shell optimizations that allow amortized linear growth over 379# advantage of any shell optimizations that allow amortized linear growth over
326# repeated appends, instead of the typical quadratic growth present in naive 380# repeated appends, instead of the typical quadratic growth present in naive
327# implementations. 381# implementations.
328if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383then :
329 eval 'as_fn_append () 384 eval 'as_fn_append ()
330 { 385 {
331 eval $1+=\$2 386 eval $1+=\$2
332 }' 387 }'
333else 388else $as_nop
334 as_fn_append () 389 as_fn_append ()
335 { 390 {
336 eval $1=\$$1\$2 391 eval $1=\$$1\$2
337 } 392 }
338fi # as_fn_append 393fi # as_fn_append
340# as_fn_arith ARG... 395# as_fn_arith ARG...
341# ------------------ 396# ------------------
342# Perform arithmetic evaluation on the ARGs, and store the result in the 397# Perform arithmetic evaluation on the ARGs, and store the result in the
343# global $as_val. Take advantage of shells that can avoid forks. The arguments 398# global $as_val. Take advantage of shells that can avoid forks. The arguments
344# must be portable across $(()) and expr. 399# must be portable across $(()) and expr.
345if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401then :
346 eval 'as_fn_arith () 402 eval 'as_fn_arith ()
347 { 403 {
348 as_val=$(( $* )) 404 as_val=$(( $* ))
349 }' 405 }'
350else 406else $as_nop
351 as_fn_arith () 407 as_fn_arith ()
352 { 408 {
353 as_val=`expr "$@" || test $? -eq 1` 409 as_val=`expr "$@" || test $? -eq 1`
354 } 410 }
355fi # as_fn_arith 411fi # as_fn_arith
356 412
413# as_fn_nop
414# ---------
415# Do nothing but, unlike ":", preserve the value of $?.
416as_fn_nop ()
417{
418 return $?
419}
420as_nop=as_fn_nop
357 421
358# as_fn_error STATUS ERROR [LINENO LOG_FD] 422# as_fn_error STATUS ERROR [LINENO LOG_FD]
359# ---------------------------------------- 423# ----------------------------------------
360# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 424# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 425# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363as_fn_error () 427as_fn_error ()
364{ 428{
365 as_status=$1; test $as_status -eq 0 && as_status=1 429 as_status=$1; test $as_status -eq 0 && as_status=1
366 if test "$4"; then 430 if test "$4"; then
367 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
369 fi 433 fi
370 $as_echo "$as_me: error: $2" >&2 434 printf "%s\n" "$as_me: error: $2" >&2
371 as_fn_exit $as_status 435 as_fn_exit $as_status
372} # as_fn_error 436} # as_fn_error
373 437
374if expr a : '\(a\)' >/dev/null 2>&1 && 438if expr a : '\(a\)' >/dev/null 2>&1 &&
375 test "X`expr 00001 : '.*\(...\)'`" = X001; then 439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
392 456
393as_me=`$as_basename -- "$0" || 457as_me=`$as_basename -- "$0" ||
394$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 458$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395 X"$0" : 'X\(//\)$' \| \ 459 X"$0" : 'X\(//\)$' \| \
396 X"$0" : 'X\(/\)' \| . 2>/dev/null || 460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397$as_echo X/"$0" | 461printf "%s\n" X/"$0" |
398 sed '/^.*\/\([^/][^/]*\)\/*$/{ 462 sed '/^.*\/\([^/][^/]*\)\/*$/{
399 s//\1/ 463 s//\1/
400 q 464 q
401 } 465 }
402 /^X\/\(\/\/\)$/{ 466 /^X\/\(\/\/\)$/{
436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437 t loop 501 t loop
438 s/-\n.*// 502 s/-\n.*//
439 ' >$as_me.lineno && 503 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" || 504 chmod +x "$as_me.lineno" ||
441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 506
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
443 # Don't try to exec as it changes $[0], causing all sort of problems 511 # Don't try to exec as it changes $[0], causing all sort of problems
444 # (the dirname of $[0] is not the place where we might find the 512 # (the dirname of $[0] is not the place where we might find the
445 # original and so on. Autoconf is especially sensitive to this). 513 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno" 514 . "./$as_me.lineno"
447 # Exit status is that of the last command. 515 # Exit status is that of the last command.
448 exit 516 exit
449} 517}
450 518
519
520# Determine whether it's possible to make 'echo' print without a newline.
521# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522# for compatibility with existing Makefiles.
451ECHO_C= ECHO_N= ECHO_T= 523ECHO_C= ECHO_N= ECHO_T=
452case `echo -n x` in #((((( 524case `echo -n x` in #(((((
453-n*) 525-n*)
454 case `echo 'xy\c'` in 526 case `echo 'xy\c'` in
455 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 esac;; 531 esac;;
460*) 532*)
461 ECHO_N='-n';; 533 ECHO_N='-n';;
462esac 534esac
463 535
536# For backward compatibility with old third-party macros, we provide
537# the shell variables $as_echo and $as_echo_n. New code should use
538# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539as_echo='printf %s\n'
540as_echo_n='printf %s'
541
542
464rm -f conf$$ conf$$.exe conf$$.file 543rm -f conf$$ conf$$.exe conf$$.file
465if test -d conf$$.dir; then 544if test -d conf$$.dir; then
466 rm -f conf$$.dir/conf$$.file 545 rm -f conf$$.dir/conf$$.file
467else 546else
468 rm -f conf$$.dir 547 rm -f conf$$.dir
472 if ln -s conf$$.file conf$$ 2>/dev/null; then 551 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s' 552 as_ln_s='ln -s'
474 # ... but there are two gotchas: 553 # ... but there are two gotchas:
475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477 # In both cases, we have to default to `cp -p'. 556 # In both cases, we have to default to `cp -pR'.
478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 as_ln_s='cp -p' 558 as_ln_s='cp -pR'
480 elif ln conf$$.file conf$$ 2>/dev/null; then 559 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln 560 as_ln_s=ln
482 else 561 else
483 as_ln_s='cp -p' 562 as_ln_s='cp -pR'
484 fi 563 fi
485else 564else
486 as_ln_s='cp -p' 565 as_ln_s='cp -pR'
487fi 566fi
488rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489rmdir conf$$.dir 2>/dev/null 568rmdir conf$$.dir 2>/dev/null
490 569
491if mkdir -p . 2>/dev/null; then 570if mkdir -p . 2>/dev/null; then
493else 572else
494 test -d ./-p && rmdir ./-p 573 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false 574 as_mkdir_p=false
496fi 575fi
497 576
498if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x' 577as_test_x='test -x'
500else 578as_executable_p=as_fn_executable_p
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518fi
519as_executable_p=$as_test_x
520 579
521# Sed expression to map a string onto a valid CPP name. 580# Sed expression to map a string onto a valid CPP name.
522as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 582
524# Sed expression to map a string onto a valid variable name. 583# Sed expression to map a string onto a valid variable name.
544subdirs= 603subdirs=
545MFLAGS= 604MFLAGS=
546MAKEFLAGS= 605MAKEFLAGS=
547 606
548# Identity of this package. 607# Identity of this package.
549PACKAGE_NAME= 608PACKAGE_NAME=''
550PACKAGE_TARNAME= 609PACKAGE_TARNAME=''
551PACKAGE_VERSION= 610PACKAGE_VERSION=''
552PACKAGE_STRING= 611PACKAGE_STRING=''
553PACKAGE_BUGREPORT= 612PACKAGE_BUGREPORT=''
554PACKAGE_URL= 613PACKAGE_URL=''
555 614
556ac_unique_file="libeio/eio.h" 615ac_unique_file="libeio/eio.h"
616# Factoring default headers for most tests.
617ac_includes_default="\
618#include <stddef.h>
619#ifdef HAVE_STDIO_H
620# include <stdio.h>
621#endif
622#ifdef HAVE_STDLIB_H
623# include <stdlib.h>
624#endif
625#ifdef HAVE_STRING_H
626# include <string.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_STRINGS_H
635# include <strings.h>
636#endif
637#ifdef HAVE_SYS_TYPES_H
638# include <sys/types.h>
639#endif
640#ifdef HAVE_SYS_STAT_H
641# include <sys/stat.h>
642#endif
643#ifdef HAVE_UNISTD_H
644# include <unistd.h>
645#endif"
646
647ac_header_c_list=
557ac_subst_vars='LTLIBOBJS 648ac_subst_vars='LTLIBOBJS
558LIBOBJS 649LIBOBJS
559OBJEXT 650OBJEXT
560EXEEXT 651EXEEXT
561ac_ct_CC 652ac_ct_CC
580htmldir 671htmldir
581infodir 672infodir
582docdir 673docdir
583oldincludedir 674oldincludedir
584includedir 675includedir
676runstatedir
585localstatedir 677localstatedir
586sharedstatedir 678sharedstatedir
587sysconfdir 679sysconfdir
588datadir 680datadir
589datarootdir 681datarootdir
649datarootdir='${prefix}/share' 741datarootdir='${prefix}/share'
650datadir='${datarootdir}' 742datadir='${datarootdir}'
651sysconfdir='${prefix}/etc' 743sysconfdir='${prefix}/etc'
652sharedstatedir='${prefix}/com' 744sharedstatedir='${prefix}/com'
653localstatedir='${prefix}/var' 745localstatedir='${prefix}/var'
746runstatedir='${localstatedir}/run'
654includedir='${prefix}/include' 747includedir='${prefix}/include'
655oldincludedir='/usr/include' 748oldincludedir='/usr/include'
656docdir='${datarootdir}/doc/${PACKAGE}' 749docdir='${datarootdir}/doc/${PACKAGE}'
657infodir='${datarootdir}/info' 750infodir='${datarootdir}/info'
658htmldir='${docdir}' 751htmldir='${docdir}'
678 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 771 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
679 *=) ac_optarg= ;; 772 *=) ac_optarg= ;;
680 *) ac_optarg=yes ;; 773 *) ac_optarg=yes ;;
681 esac 774 esac
682 775
683 # Accept the important Cygnus configure options, so we can diagnose typos.
684
685 case $ac_dashdash$ac_option in 776 case $ac_dashdash$ac_option in
686 --) 777 --)
687 ac_dashdash=yes ;; 778 ac_dashdash=yes ;;
688 779
689 -bindir | --bindir | --bindi | --bind | --bin | --bi) 780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
720 811
721 -disable-* | --disable-*) 812 -disable-* | --disable-*)
722 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 813 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
723 # Reject names that are not valid shell variable names. 814 # Reject names that are not valid shell variable names.
724 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
725 as_fn_error $? "invalid feature name: $ac_useropt" 816 as_fn_error $? "invalid feature name: \`$ac_useropt'"
726 ac_useropt_orig=$ac_useropt 817 ac_useropt_orig=$ac_useropt
727 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 818 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
728 case $ac_user_opts in 819 case $ac_user_opts in
729 *" 820 *"
730"enable_$ac_useropt" 821"enable_$ac_useropt"
731"*) ;; 822"*) ;;
732 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 823 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
746 837
747 -enable-* | --enable-*) 838 -enable-* | --enable-*)
748 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 839 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
749 # Reject names that are not valid shell variable names. 840 # Reject names that are not valid shell variable names.
750 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
751 as_fn_error $? "invalid feature name: $ac_useropt" 842 as_fn_error $? "invalid feature name: \`$ac_useropt'"
752 ac_useropt_orig=$ac_useropt 843 ac_useropt_orig=$ac_useropt
753 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 844 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
754 case $ac_user_opts in 845 case $ac_user_opts in
755 *" 846 *"
756"enable_$ac_useropt" 847"enable_$ac_useropt"
757"*) ;; 848"*) ;;
758 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 992
902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
903 | -silent | --silent | --silen | --sile | --sil) 994 | -silent | --silent | --silen | --sile | --sil)
904 silent=yes ;; 995 silent=yes ;;
905 996
997 -runstatedir | --runstatedir | --runstatedi | --runstated \
998 | --runstate | --runstat | --runsta | --runst | --runs \
999 | --run | --ru | --r)
1000 ac_prev=runstatedir ;;
1001 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1002 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1003 | --run=* | --ru=* | --r=*)
1004 runstatedir=$ac_optarg ;;
1005
906 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
907 ac_prev=sbindir ;; 1007 ac_prev=sbindir ;;
908 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
909 | --sbi=* | --sb=*) 1009 | --sbi=* | --sb=*)
910 sbindir=$ac_optarg ;; 1010 sbindir=$ac_optarg ;;
950 1050
951 -with-* | --with-*) 1051 -with-* | --with-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
953 # Reject names that are not valid shell variable names. 1053 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid package name: $ac_useropt" 1055 as_fn_error $? "invalid package name: \`$ac_useropt'"
956 ac_useropt_orig=$ac_useropt 1056 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1057 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in 1058 case $ac_user_opts in
959 *" 1059 *"
960"with_$ac_useropt" 1060"with_$ac_useropt"
961"*) ;; 1061"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
966 1066
967 -without-* | --without-*) 1067 -without-* | --without-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
969 # Reject names that are not valid shell variable names. 1069 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid package name: $ac_useropt" 1071 as_fn_error $? "invalid package name: \`$ac_useropt'"
972 ac_useropt_orig=$ac_useropt 1072 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in 1074 case $ac_user_opts in
975 *" 1075 *"
976"with_$ac_useropt" 1076"with_$ac_useropt"
977"*) ;; 1077"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1012 eval $ac_envvar=\$ac_optarg 1112 eval $ac_envvar=\$ac_optarg
1013 export $ac_envvar ;; 1113 export $ac_envvar ;;
1014 1114
1015 *) 1115 *)
1016 # FIXME: should be removed in autoconf 3.0. 1116 # FIXME: should be removed in autoconf 3.0.
1017 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1117 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1018 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1119 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1020 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1120 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1021 ;; 1121 ;;
1022 1122
1023 esac 1123 esac
1024done 1124done
1025 1125
1030 1130
1031if test -n "$ac_unrecognized_opts"; then 1131if test -n "$ac_unrecognized_opts"; then
1032 case $enable_option_checking in 1132 case $enable_option_checking in
1033 no) ;; 1133 no) ;;
1034 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1134 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1035 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1135 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1036 esac 1136 esac
1037fi 1137fi
1038 1138
1039# Check all directory arguments for consistency. 1139# Check all directory arguments for consistency.
1040for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1140for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1041 datadir sysconfdir sharedstatedir localstatedir includedir \ 1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1042 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1043 libdir localedir mandir 1143 libdir localedir mandir runstatedir
1044do 1144do
1045 eval ac_val=\$$ac_var 1145 eval ac_val=\$$ac_var
1046 # Remove trailing slashes. 1146 # Remove trailing slashes.
1047 case $ac_val in 1147 case $ac_val in
1048 */ ) 1148 */ )
1066 1166
1067# FIXME: To remove some day. 1167# FIXME: To remove some day.
1068if test "x$host_alias" != x; then 1168if test "x$host_alias" != x; then
1069 if test "x$build_alias" = x; then 1169 if test "x$build_alias" = x; then
1070 cross_compiling=maybe 1170 cross_compiling=maybe
1071 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1072 If a cross compiler is detected then cross compile mode will be used" >&2
1073 elif test "x$build_alias" != "x$host_alias"; then 1171 elif test "x$build_alias" != "x$host_alias"; then
1074 cross_compiling=yes 1172 cross_compiling=yes
1075 fi 1173 fi
1076fi 1174fi
1077 1175
1096 ac_confdir=`$as_dirname -- "$as_myself" || 1194 ac_confdir=`$as_dirname -- "$as_myself" ||
1097$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1195$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1098 X"$as_myself" : 'X\(//\)[^/]' \| \ 1196 X"$as_myself" : 'X\(//\)[^/]' \| \
1099 X"$as_myself" : 'X\(//\)$' \| \ 1197 X"$as_myself" : 'X\(//\)$' \| \
1100 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1198 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1101$as_echo X"$as_myself" | 1199printf "%s\n" X"$as_myself" |
1102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1103 s//\1/ 1201 s//\1/
1104 q 1202 q
1105 } 1203 }
1106 /^X\(\/\/\)[^/].*/{ 1204 /^X\(\/\/\)[^/].*/{
1193 --sbindir=DIR system admin executables [EPREFIX/sbin] 1291 --sbindir=DIR system admin executables [EPREFIX/sbin]
1194 --libexecdir=DIR program executables [EPREFIX/libexec] 1292 --libexecdir=DIR program executables [EPREFIX/libexec]
1195 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1196 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1197 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1296 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1198 --libdir=DIR object code libraries [EPREFIX/lib] 1297 --libdir=DIR object code libraries [EPREFIX/lib]
1199 --includedir=DIR C header files [PREFIX/include] 1298 --includedir=DIR C header files [PREFIX/include]
1200 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1201 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1202 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1244 ac_builddir=. 1343 ac_builddir=.
1245 1344
1246case "$ac_dir" in 1345case "$ac_dir" in
1247.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1248*) 1347*)
1249 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1348 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1250 # A ".." for each directory in $ac_dir_suffix. 1349 # A ".." for each directory in $ac_dir_suffix.
1251 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1350 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1252 case $ac_top_builddir_sub in 1351 case $ac_top_builddir_sub in
1253 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1254 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1255 esac ;; 1354 esac ;;
1256esac 1355esac
1274 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1275esac 1374esac
1276ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1277 1376
1278 cd "$ac_dir" || { ac_status=$?; continue; } 1377 cd "$ac_dir" || { ac_status=$?; continue; }
1279 # Check for guested configure. 1378 # Check for configure.gnu first; this name is used for a wrapper for
1379 # Metaconfig's "Configure" on case-insensitive file systems.
1280 if test -f "$ac_srcdir/configure.gnu"; then 1380 if test -f "$ac_srcdir/configure.gnu"; then
1281 echo && 1381 echo &&
1282 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1283 elif test -f "$ac_srcdir/configure"; then 1383 elif test -f "$ac_srcdir/configure"; then
1284 echo && 1384 echo &&
1285 $SHELL "$ac_srcdir/configure" --help=recursive 1385 $SHELL "$ac_srcdir/configure" --help=recursive
1286 else 1386 else
1287 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1387 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1288 fi || ac_status=$? 1388 fi || ac_status=$?
1289 cd "$ac_pwd" || { ac_status=$?; break; } 1389 cd "$ac_pwd" || { ac_status=$?; break; }
1290 done 1390 done
1291fi 1391fi
1292 1392
1293test -n "$ac_init_help" && exit $ac_status 1393test -n "$ac_init_help" && exit $ac_status
1294if $ac_init_version; then 1394if $ac_init_version; then
1295 cat <<\_ACEOF 1395 cat <<\_ACEOF
1296configure 1396configure
1297generated by GNU Autoconf 2.67 1397generated by GNU Autoconf 2.71
1298 1398
1299Copyright (C) 2010 Free Software Foundation, Inc. 1399Copyright (C) 2021 Free Software Foundation, Inc.
1300This configure script is free software; the Free Software Foundation 1400This configure script is free software; the Free Software Foundation
1301gives unlimited permission to copy, distribute and modify it. 1401gives unlimited permission to copy, distribute and modify it.
1302_ACEOF 1402_ACEOF
1303 exit 1403 exit
1304fi 1404fi
1311# -------------------------- 1411# --------------------------
1312# Try to compile conftest.$ac_ext, and return whether this succeeded. 1412# Try to compile conftest.$ac_ext, and return whether this succeeded.
1313ac_fn_c_try_compile () 1413ac_fn_c_try_compile ()
1314{ 1414{
1315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1316 rm -f conftest.$ac_objext 1416 rm -f conftest.$ac_objext conftest.beam
1317 if { { ac_try="$ac_compile" 1417 if { { ac_try="$ac_compile"
1318case "(($ac_try" in 1418case "(($ac_try" in
1319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1320 *) ac_try_echo=$ac_try;; 1420 *) ac_try_echo=$ac_try;;
1321esac 1421esac
1322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1323$as_echo "$ac_try_echo"; } >&5 1423printf "%s\n" "$ac_try_echo"; } >&5
1324 (eval "$ac_compile") 2>conftest.err 1424 (eval "$ac_compile") 2>conftest.err
1325 ac_status=$? 1425 ac_status=$?
1326 if test -s conftest.err; then 1426 if test -s conftest.err; then
1327 grep -v '^ *+' conftest.err >conftest.er1 1427 grep -v '^ *+' conftest.err >conftest.er1
1328 cat conftest.er1 >&5 1428 cat conftest.er1 >&5
1329 mv -f conftest.er1 conftest.err 1429 mv -f conftest.er1 conftest.err
1330 fi 1430 fi
1331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1332 test $ac_status = 0; } && { 1432 test $ac_status = 0; } && {
1333 test -z "$ac_c_werror_flag" || 1433 test -z "$ac_c_werror_flag" ||
1334 test ! -s conftest.err 1434 test ! -s conftest.err
1335 } && test -s conftest.$ac_objext; then : 1435 } && test -s conftest.$ac_objext
1436then :
1336 ac_retval=0 1437 ac_retval=0
1337else 1438else $as_nop
1338 $as_echo "$as_me: failed program was:" >&5 1439 printf "%s\n" "$as_me: failed program was:" >&5
1339sed 's/^/| /' conftest.$ac_ext >&5 1440sed 's/^/| /' conftest.$ac_ext >&5
1340 1441
1341 ac_retval=1 1442 ac_retval=1
1342fi 1443fi
1343 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1344 as_fn_set_status $ac_retval 1445 as_fn_set_status $ac_retval
1345 1446
1346} # ac_fn_c_try_compile 1447} # ac_fn_c_try_compile
1448
1449# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1450# -------------------------------------------------------
1451# Tests whether HEADER exists and can be compiled using the include files in
1452# INCLUDES, setting the cache variable VAR accordingly.
1453ac_fn_c_check_header_compile ()
1454{
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1457printf %s "checking for $2... " >&6; }
1458if eval test \${$3+y}
1459then :
1460 printf %s "(cached) " >&6
1461else $as_nop
1462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1463/* end confdefs.h. */
1464$4
1465#include <$2>
1466_ACEOF
1467if ac_fn_c_try_compile "$LINENO"
1468then :
1469 eval "$3=yes"
1470else $as_nop
1471 eval "$3=no"
1472fi
1473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1474fi
1475eval ac_res=\$$3
1476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1477printf "%s\n" "$ac_res" >&6; }
1478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479
1480} # ac_fn_c_check_header_compile
1347 1481
1348# ac_fn_c_try_link LINENO 1482# ac_fn_c_try_link LINENO
1349# ----------------------- 1483# -----------------------
1350# Try to link conftest.$ac_ext, and return whether this succeeded. 1484# Try to link conftest.$ac_ext, and return whether this succeeded.
1351ac_fn_c_try_link () 1485ac_fn_c_try_link ()
1352{ 1486{
1353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1354 rm -f conftest.$ac_objext conftest$ac_exeext 1488 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1355 if { { ac_try="$ac_link" 1489 if { { ac_try="$ac_link"
1356case "(($ac_try" in 1490case "(($ac_try" in
1357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1358 *) ac_try_echo=$ac_try;; 1492 *) ac_try_echo=$ac_try;;
1359esac 1493esac
1360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1361$as_echo "$ac_try_echo"; } >&5 1495printf "%s\n" "$ac_try_echo"; } >&5
1362 (eval "$ac_link") 2>conftest.err 1496 (eval "$ac_link") 2>conftest.err
1363 ac_status=$? 1497 ac_status=$?
1364 if test -s conftest.err; then 1498 if test -s conftest.err; then
1365 grep -v '^ *+' conftest.err >conftest.er1 1499 grep -v '^ *+' conftest.err >conftest.er1
1366 cat conftest.er1 >&5 1500 cat conftest.er1 >&5
1367 mv -f conftest.er1 conftest.err 1501 mv -f conftest.er1 conftest.err
1368 fi 1502 fi
1369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1370 test $ac_status = 0; } && { 1504 test $ac_status = 0; } && {
1371 test -z "$ac_c_werror_flag" || 1505 test -z "$ac_c_werror_flag" ||
1372 test ! -s conftest.err 1506 test ! -s conftest.err
1373 } && test -s conftest$ac_exeext && { 1507 } && test -s conftest$ac_exeext && {
1374 test "$cross_compiling" = yes || 1508 test "$cross_compiling" = yes ||
1375 $as_test_x conftest$ac_exeext 1509 test -x conftest$ac_exeext
1376 }; then : 1510 }
1511then :
1377 ac_retval=0 1512 ac_retval=0
1378else 1513else $as_nop
1379 $as_echo "$as_me: failed program was:" >&5 1514 printf "%s\n" "$as_me: failed program was:" >&5
1380sed 's/^/| /' conftest.$ac_ext >&5 1515sed 's/^/| /' conftest.$ac_ext >&5
1381 1516
1382 ac_retval=1 1517 ac_retval=1
1383fi 1518fi
1384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1519 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1520 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1386 # interfere with the next link command; also delete a directory that is 1521 # interfere with the next link command; also delete a directory that is
1387 # left behind by Apple's compiler. We do this before executing the actions. 1522 # left behind by Apple's compiler. We do this before executing the actions.
1388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1390 as_fn_set_status $ac_retval 1525 as_fn_set_status $ac_retval
1391 1526
1392} # ac_fn_c_try_link 1527} # ac_fn_c_try_link
1528ac_configure_args_raw=
1529for ac_arg
1530do
1531 case $ac_arg in
1532 *\'*)
1533 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1534 esac
1535 as_fn_append ac_configure_args_raw " '$ac_arg'"
1536done
1537
1538case $ac_configure_args_raw in
1539 *$as_nl*)
1540 ac_safe_unquote= ;;
1541 *)
1542 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1543 ac_unsafe_a="$ac_unsafe_z#~"
1544 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1545 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1546esac
1547
1393cat >config.log <<_ACEOF 1548cat >config.log <<_ACEOF
1394This file contains any messages produced by compilers while 1549This file contains any messages produced by compilers while
1395running configure, to aid debugging if configure makes a mistake. 1550running configure, to aid debugging if configure makes a mistake.
1396 1551
1397It was created by $as_me, which was 1552It was created by $as_me, which was
1398generated by GNU Autoconf 2.67. Invocation command line was 1553generated by GNU Autoconf 2.71. Invocation command line was
1399 1554
1400 $ $0 $@ 1555 $ $0$ac_configure_args_raw
1401 1556
1402_ACEOF 1557_ACEOF
1403exec 5>>config.log 1558exec 5>>config.log
1404{ 1559{
1405cat <<_ASUNAME 1560cat <<_ASUNAME
1428 1583
1429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430for as_dir in $PATH 1585for as_dir in $PATH
1431do 1586do
1432 IFS=$as_save_IFS 1587 IFS=$as_save_IFS
1433 test -z "$as_dir" && as_dir=. 1588 case $as_dir in #(((
1434 $as_echo "PATH: $as_dir" 1589 '') as_dir=./ ;;
1590 */) ;;
1591 *) as_dir=$as_dir/ ;;
1592 esac
1593 printf "%s\n" "PATH: $as_dir"
1435 done 1594 done
1436IFS=$as_save_IFS 1595IFS=$as_save_IFS
1437 1596
1438} >&5 1597} >&5
1439 1598
1464 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1623 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1466 | -silent | --silent | --silen | --sile | --sil) 1625 | -silent | --silent | --silen | --sile | --sil)
1467 continue ;; 1626 continue ;;
1468 *\'*) 1627 *\'*)
1469 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1628 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 esac 1629 esac
1471 case $ac_pass in 1630 case $ac_pass in
1472 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1631 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1473 2) 1632 2)
1474 as_fn_append ac_configure_args1 " '$ac_arg'" 1633 as_fn_append ac_configure_args1 " '$ac_arg'"
1499# config.log. We remove comments because anyway the quotes in there 1658# config.log. We remove comments because anyway the quotes in there
1500# would cause problems or look ugly. 1659# would cause problems or look ugly.
1501# WARNING: Use '\'' to represent an apostrophe within the trap. 1660# WARNING: Use '\'' to represent an apostrophe within the trap.
1502# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1661# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1503trap 'exit_status=$? 1662trap 'exit_status=$?
1663 # Sanitize IFS.
1664 IFS=" "" $as_nl"
1504 # Save into config.log some information that might help in debugging. 1665 # Save into config.log some information that might help in debugging.
1505 { 1666 {
1506 echo 1667 echo
1507 1668
1508 $as_echo "## ---------------- ## 1669 printf "%s\n" "## ---------------- ##
1509## Cache variables. ## 1670## Cache variables. ##
1510## ---------------- ##" 1671## ---------------- ##"
1511 echo 1672 echo
1512 # The following way of writing the cache mishandles newlines in values, 1673 # The following way of writing the cache mishandles newlines in values,
1513( 1674(
1514 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1675 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1515 eval ac_val=\$$ac_var 1676 eval ac_val=\$$ac_var
1516 case $ac_val in #( 1677 case $ac_val in #(
1517 *${as_nl}*) 1678 *${as_nl}*)
1518 case $ac_var in #( 1679 case $ac_var in #(
1519 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1680 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1520$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1681printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1521 esac 1682 esac
1522 case $ac_var in #( 1683 case $ac_var in #(
1523 _ | IFS | as_nl) ;; #( 1684 _ | IFS | as_nl) ;; #(
1524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1525 *) { eval $ac_var=; unset $ac_var;} ;; 1686 *) { eval $ac_var=; unset $ac_var;} ;;
1539 esac | 1700 esac |
1540 sort 1701 sort
1541) 1702)
1542 echo 1703 echo
1543 1704
1544 $as_echo "## ----------------- ## 1705 printf "%s\n" "## ----------------- ##
1545## Output variables. ## 1706## Output variables. ##
1546## ----------------- ##" 1707## ----------------- ##"
1547 echo 1708 echo
1548 for ac_var in $ac_subst_vars 1709 for ac_var in $ac_subst_vars
1549 do 1710 do
1550 eval ac_val=\$$ac_var 1711 eval ac_val=\$$ac_var
1551 case $ac_val in 1712 case $ac_val in
1552 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1713 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1553 esac 1714 esac
1554 $as_echo "$ac_var='\''$ac_val'\''" 1715 printf "%s\n" "$ac_var='\''$ac_val'\''"
1555 done | sort 1716 done | sort
1556 echo 1717 echo
1557 1718
1558 if test -n "$ac_subst_files"; then 1719 if test -n "$ac_subst_files"; then
1559 $as_echo "## ------------------- ## 1720 printf "%s\n" "## ------------------- ##
1560## File substitutions. ## 1721## File substitutions. ##
1561## ------------------- ##" 1722## ------------------- ##"
1562 echo 1723 echo
1563 for ac_var in $ac_subst_files 1724 for ac_var in $ac_subst_files
1564 do 1725 do
1565 eval ac_val=\$$ac_var 1726 eval ac_val=\$$ac_var
1566 case $ac_val in 1727 case $ac_val in
1567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1728 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 esac 1729 esac
1569 $as_echo "$ac_var='\''$ac_val'\''" 1730 printf "%s\n" "$ac_var='\''$ac_val'\''"
1570 done | sort 1731 done | sort
1571 echo 1732 echo
1572 fi 1733 fi
1573 1734
1574 if test -s confdefs.h; then 1735 if test -s confdefs.h; then
1575 $as_echo "## ----------- ## 1736 printf "%s\n" "## ----------- ##
1576## confdefs.h. ## 1737## confdefs.h. ##
1577## ----------- ##" 1738## ----------- ##"
1578 echo 1739 echo
1579 cat confdefs.h 1740 cat confdefs.h
1580 echo 1741 echo
1581 fi 1742 fi
1582 test "$ac_signal" != 0 && 1743 test "$ac_signal" != 0 &&
1583 $as_echo "$as_me: caught signal $ac_signal" 1744 printf "%s\n" "$as_me: caught signal $ac_signal"
1584 $as_echo "$as_me: exit $exit_status" 1745 printf "%s\n" "$as_me: exit $exit_status"
1585 } >&5 1746 } >&5
1586 rm -f core *.core core.conftest.* && 1747 rm -f core *.core core.conftest.* &&
1587 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1588 exit $exit_status 1749 exit $exit_status
1589' 0 1750' 0
1593ac_signal=0 1754ac_signal=0
1594 1755
1595# confdefs.h avoids OS command line length limits that DEFS can exceed. 1756# confdefs.h avoids OS command line length limits that DEFS can exceed.
1596rm -f -r conftest* confdefs.h 1757rm -f -r conftest* confdefs.h
1597 1758
1598$as_echo "/* confdefs.h */" > confdefs.h 1759printf "%s\n" "/* confdefs.h */" > confdefs.h
1599 1760
1600# Predefined preprocessor variables. 1761# Predefined preprocessor variables.
1601 1762
1602cat >>confdefs.h <<_ACEOF 1763printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1603#define PACKAGE_NAME "$PACKAGE_NAME"
1604_ACEOF
1605 1764
1606cat >>confdefs.h <<_ACEOF 1765printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1607#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1608_ACEOF
1609 1766
1610cat >>confdefs.h <<_ACEOF 1767printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1611#define PACKAGE_VERSION "$PACKAGE_VERSION"
1612_ACEOF
1613 1768
1614cat >>confdefs.h <<_ACEOF 1769printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1615#define PACKAGE_STRING "$PACKAGE_STRING"
1616_ACEOF
1617 1770
1618cat >>confdefs.h <<_ACEOF 1771printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1619#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1620_ACEOF
1621 1772
1622cat >>confdefs.h <<_ACEOF 1773printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1623#define PACKAGE_URL "$PACKAGE_URL"
1624_ACEOF
1625 1774
1626 1775
1627# Let the site file select an alternate cache file if it wants to. 1776# Let the site file select an alternate cache file if it wants to.
1628# Prefer an explicitly selected file to automatically selected ones. 1777# Prefer an explicitly selected file to automatically selected ones.
1629ac_site_file1=NONE
1630ac_site_file2=NONE
1631if test -n "$CONFIG_SITE"; then 1778if test -n "$CONFIG_SITE"; then
1632 # We do not want a PATH search for config.site.
1633 case $CONFIG_SITE in #((
1634 -*) ac_site_file1=./$CONFIG_SITE;;
1635 */*) ac_site_file1=$CONFIG_SITE;; 1779 ac_site_files="$CONFIG_SITE"
1636 *) ac_site_file1=./$CONFIG_SITE;;
1637 esac
1638elif test "x$prefix" != xNONE; then 1780elif test "x$prefix" != xNONE; then
1639 ac_site_file1=$prefix/share/config.site 1781 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1640 ac_site_file2=$prefix/etc/config.site
1641else 1782else
1642 ac_site_file1=$ac_default_prefix/share/config.site 1783 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1643 ac_site_file2=$ac_default_prefix/etc/config.site
1644fi 1784fi
1785
1645for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1786for ac_site_file in $ac_site_files
1646do 1787do
1647 test "x$ac_site_file" = xNONE && continue 1788 case $ac_site_file in #(
1789 */*) :
1790 ;; #(
1791 *) :
1792 ac_site_file=./$ac_site_file ;;
1793esac
1648 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1794 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1650$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1796printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1651 sed 's/^/| /' "$ac_site_file" >&5 1797 sed 's/^/| /' "$ac_site_file" >&5
1652 . "$ac_site_file" \ 1798 . "$ac_site_file" \
1653 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1799 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1800printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1655as_fn_error $? "failed to load site script $ac_site_file 1801as_fn_error $? "failed to load site script $ac_site_file
1656See \`config.log' for more details" "$LINENO" 5 ; } 1802See \`config.log' for more details" "$LINENO" 5; }
1657 fi 1803 fi
1658done 1804done
1659 1805
1660if test -r "$cache_file"; then 1806if test -r "$cache_file"; then
1661 # Some versions of bash will fail to source /dev/null (special files 1807 # Some versions of bash will fail to source /dev/null (special files
1662 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1808 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1663 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1809 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1665$as_echo "$as_me: loading cache $cache_file" >&6;} 1811printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1666 case $cache_file in 1812 case $cache_file in
1667 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1668 *) . "./$cache_file";; 1814 *) . "./$cache_file";;
1669 esac 1815 esac
1670 fi 1816 fi
1671else 1817else
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1673$as_echo "$as_me: creating cache $cache_file" >&6;} 1819printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1674 >$cache_file 1820 >$cache_file
1675fi 1821fi
1676 1822
1823as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
1824# Test code for whether the C compiler supports C89 (global declarations)
1825ac_c_conftest_c89_globals='
1826/* Does the compiler advertise C89 conformance?
1827 Do not test the value of __STDC__, because some compilers set it to 0
1828 while being otherwise adequately conformant. */
1829#if !defined __STDC__
1830# error "Compiler does not advertise C89 conformance"
1831#endif
1832
1833#include <stddef.h>
1834#include <stdarg.h>
1835struct stat;
1836/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1837struct buf { int x; };
1838struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1839static char *e (p, i)
1840 char **p;
1841 int i;
1842{
1843 return p[i];
1844}
1845static char *f (char * (*g) (char **, int), char **p, ...)
1846{
1847 char *s;
1848 va_list v;
1849 va_start (v,p);
1850 s = g (p, va_arg (v,int));
1851 va_end (v);
1852 return s;
1853}
1854
1855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1856 function prototypes and stuff, but not \xHH hex character constants.
1857 These do not provoke an error unfortunately, instead are silently treated
1858 as an "x". The following induces an error, until -std is added to get
1859 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1860 array size at least. It is necessary to write \x00 == 0 to get something
1861 that is true only with -std. */
1862int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1863
1864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1865 inside strings and character constants. */
1866#define FOO(x) '\''x'\''
1867int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1868
1869int test (int i, double x);
1870struct s1 {int (*f) (int a);};
1871struct s2 {int (*f) (double a);};
1872int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1873 int, int);'
1874
1875# Test code for whether the C compiler supports C89 (body of main).
1876ac_c_conftest_c89_main='
1877ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1878'
1879
1880# Test code for whether the C compiler supports C99 (global declarations)
1881ac_c_conftest_c99_globals='
1882// Does the compiler advertise C99 conformance?
1883#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1884# error "Compiler does not advertise C99 conformance"
1885#endif
1886
1887#include <stdbool.h>
1888extern int puts (const char *);
1889extern int printf (const char *, ...);
1890extern int dprintf (int, const char *, ...);
1891extern void *malloc (size_t);
1892
1893// Check varargs macros. These examples are taken from C99 6.10.3.5.
1894// dprintf is used instead of fprintf to avoid needing to declare
1895// FILE and stderr.
1896#define debug(...) dprintf (2, __VA_ARGS__)
1897#define showlist(...) puts (#__VA_ARGS__)
1898#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1899static void
1900test_varargs_macros (void)
1901{
1902 int x = 1234;
1903 int y = 5678;
1904 debug ("Flag");
1905 debug ("X = %d\n", x);
1906 showlist (The first, second, and third items.);
1907 report (x>y, "x is %d but y is %d", x, y);
1908}
1909
1910// Check long long types.
1911#define BIG64 18446744073709551615ull
1912#define BIG32 4294967295ul
1913#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1914#if !BIG_OK
1915 #error "your preprocessor is broken"
1916#endif
1917#if BIG_OK
1918#else
1919 #error "your preprocessor is broken"
1920#endif
1921static long long int bignum = -9223372036854775807LL;
1922static unsigned long long int ubignum = BIG64;
1923
1924struct incomplete_array
1925{
1926 int datasize;
1927 double data[];
1928};
1929
1930struct named_init {
1931 int number;
1932 const wchar_t *name;
1933 double average;
1934};
1935
1936typedef const char *ccp;
1937
1938static inline int
1939test_restrict (ccp restrict text)
1940{
1941 // See if C++-style comments work.
1942 // Iterate through items via the restricted pointer.
1943 // Also check for declarations in for loops.
1944 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
1945 continue;
1946 return 0;
1947}
1948
1949// Check varargs and va_copy.
1950static bool
1951test_varargs (const char *format, ...)
1952{
1953 va_list args;
1954 va_start (args, format);
1955 va_list args_copy;
1956 va_copy (args_copy, args);
1957
1958 const char *str = "";
1959 int number = 0;
1960 float fnumber = 0;
1961
1962 while (*format)
1963 {
1964 switch (*format++)
1965 {
1966 case '\''s'\'': // string
1967 str = va_arg (args_copy, const char *);
1968 break;
1969 case '\''d'\'': // int
1970 number = va_arg (args_copy, int);
1971 break;
1972 case '\''f'\'': // float
1973 fnumber = va_arg (args_copy, double);
1974 break;
1975 default:
1976 break;
1977 }
1978 }
1979 va_end (args_copy);
1980 va_end (args);
1981
1982 return *str && number && fnumber;
1983}
1984'
1985
1986# Test code for whether the C compiler supports C99 (body of main).
1987ac_c_conftest_c99_main='
1988 // Check bool.
1989 _Bool success = false;
1990 success |= (argc != 0);
1991
1992 // Check restrict.
1993 if (test_restrict ("String literal") == 0)
1994 success = true;
1995 char *restrict newvar = "Another string";
1996
1997 // Check varargs.
1998 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
1999 test_varargs_macros ();
2000
2001 // Check flexible array members.
2002 struct incomplete_array *ia =
2003 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2004 ia->datasize = 10;
2005 for (int i = 0; i < ia->datasize; ++i)
2006 ia->data[i] = i * 1.234;
2007
2008 // Check named initializers.
2009 struct named_init ni = {
2010 .number = 34,
2011 .name = L"Test wide string",
2012 .average = 543.34343,
2013 };
2014
2015 ni.number = 58;
2016
2017 int dynamic_array[ni.number];
2018 dynamic_array[0] = argv[0][0];
2019 dynamic_array[ni.number - 1] = 543;
2020
2021 // work around unused variable warnings
2022 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2023 || dynamic_array[ni.number - 1] != 543);
2024'
2025
2026# Test code for whether the C compiler supports C11 (global declarations)
2027ac_c_conftest_c11_globals='
2028// Does the compiler advertise C11 conformance?
2029#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2030# error "Compiler does not advertise C11 conformance"
2031#endif
2032
2033// Check _Alignas.
2034char _Alignas (double) aligned_as_double;
2035char _Alignas (0) no_special_alignment;
2036extern char aligned_as_int;
2037char _Alignas (0) _Alignas (int) aligned_as_int;
2038
2039// Check _Alignof.
2040enum
2041{
2042 int_alignment = _Alignof (int),
2043 int_array_alignment = _Alignof (int[100]),
2044 char_alignment = _Alignof (char)
2045};
2046_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2047
2048// Check _Noreturn.
2049int _Noreturn does_not_return (void) { for (;;) continue; }
2050
2051// Check _Static_assert.
2052struct test_static_assert
2053{
2054 int x;
2055 _Static_assert (sizeof (int) <= sizeof (long int),
2056 "_Static_assert does not work in struct");
2057 long int y;
2058};
2059
2060// Check UTF-8 literals.
2061#define u8 syntax error!
2062char const utf8_literal[] = u8"happens to be ASCII" "another string";
2063
2064// Check duplicate typedefs.
2065typedef long *long_ptr;
2066typedef long int *long_ptr;
2067typedef long_ptr long_ptr;
2068
2069// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2070struct anonymous
2071{
2072 union {
2073 struct { int i; int j; };
2074 struct { int k; long int l; } w;
2075 };
2076 int m;
2077} v1;
2078'
2079
2080# Test code for whether the C compiler supports C11 (body of main).
2081ac_c_conftest_c11_main='
2082 _Static_assert ((offsetof (struct anonymous, i)
2083 == offsetof (struct anonymous, w.k)),
2084 "Anonymous union alignment botch");
2085 v1.i = 2;
2086 v1.w.k = 5;
2087 ok |= v1.i != 5;
2088'
2089
2090# Test code for whether the C compiler supports C11 (complete).
2091ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2092${ac_c_conftest_c99_globals}
2093${ac_c_conftest_c11_globals}
2094
2095int
2096main (int argc, char **argv)
2097{
2098 int ok = 0;
2099 ${ac_c_conftest_c89_main}
2100 ${ac_c_conftest_c99_main}
2101 ${ac_c_conftest_c11_main}
2102 return ok;
2103}
2104"
2105
2106# Test code for whether the C compiler supports C99 (complete).
2107ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2108${ac_c_conftest_c99_globals}
2109
2110int
2111main (int argc, char **argv)
2112{
2113 int ok = 0;
2114 ${ac_c_conftest_c89_main}
2115 ${ac_c_conftest_c99_main}
2116 return ok;
2117}
2118"
2119
2120# Test code for whether the C compiler supports C89 (complete).
2121ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2122
2123int
2124main (int argc, char **argv)
2125{
2126 int ok = 0;
2127 ${ac_c_conftest_c89_main}
2128 return ok;
2129}
2130"
2131
2132as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2133as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2134as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2135as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2136as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2137as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2138as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2139as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2140as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2141as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
1677# Check that the precious variables saved in the cache have kept the same 2142# Check that the precious variables saved in the cache have kept the same
1678# value. 2143# value.
1679ac_cache_corrupted=false 2144ac_cache_corrupted=false
1680for ac_var in $ac_precious_vars; do 2145for ac_var in $ac_precious_vars; do
1681 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2146 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1682 eval ac_new_set=\$ac_env_${ac_var}_set 2147 eval ac_new_set=\$ac_env_${ac_var}_set
1683 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2148 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1684 eval ac_new_val=\$ac_env_${ac_var}_value 2149 eval ac_new_val=\$ac_env_${ac_var}_value
1685 case $ac_old_set,$ac_new_set in 2150 case $ac_old_set,$ac_new_set in
1686 set,) 2151 set,)
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1688$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2153printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1689 ac_cache_corrupted=: ;; 2154 ac_cache_corrupted=: ;;
1690 ,set) 2155 ,set)
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1692$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2157printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1693 ac_cache_corrupted=: ;; 2158 ac_cache_corrupted=: ;;
1694 ,);; 2159 ,);;
1695 *) 2160 *)
1696 if test "x$ac_old_val" != "x$ac_new_val"; then 2161 if test "x$ac_old_val" != "x$ac_new_val"; then
1697 # differences in whitespace do not lead to failure. 2162 # differences in whitespace do not lead to failure.
1698 ac_old_val_w=`echo x $ac_old_val` 2163 ac_old_val_w=`echo x $ac_old_val`
1699 ac_new_val_w=`echo x $ac_new_val` 2164 ac_new_val_w=`echo x $ac_new_val`
1700 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2165 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1702$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2167printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1703 ac_cache_corrupted=: 2168 ac_cache_corrupted=:
1704 else 2169 else
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1706$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2171printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1707 eval $ac_var=\$ac_old_val 2172 eval $ac_var=\$ac_old_val
1708 fi 2173 fi
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1710$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2175printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1712$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2177printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
1713 fi;; 2178 fi;;
1714 esac 2179 esac
1715 # Pass precious variables to config.status. 2180 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then 2181 if test "$ac_new_set" = set; then
1717 case $ac_new_val in 2182 case $ac_new_val in
1718 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2183 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;; 2184 *) ac_arg=$ac_var=$ac_new_val ;;
1720 esac 2185 esac
1721 case " $ac_configure_args " in 2186 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2187 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2188 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1724 esac 2189 esac
1725 fi 2190 fi
1726done 2191done
1727if $ac_cache_corrupted; then 2192if $ac_cache_corrupted; then
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2194printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1731$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2196printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
1732 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2197 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2198 and start over" "$LINENO" 5
1733fi 2199fi
1734## -------------------- ## 2200## -------------------- ##
1735## Main body of script. ## 2201## Main body of script. ##
1736## -------------------- ## 2202## -------------------- ##
1737 2203
1741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742ac_compiler_gnu=$ac_cv_c_compiler_gnu 2208ac_compiler_gnu=$ac_cv_c_compiler_gnu
1743 2209
1744 2210
1745 2211
1746ac_config_headers="$ac_config_headers libeio/config.h" 2212ac_config_headers="$ac_config_headers config.h"
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
1747 2223
1748 2224
1749ac_ext=c 2225ac_ext=c
1750ac_cpp='$CPP $CPPFLAGS' 2226ac_cpp='$CPP $CPPFLAGS'
1751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1753ac_compiler_gnu=$ac_cv_c_compiler_gnu 2229ac_compiler_gnu=$ac_cv_c_compiler_gnu
1754if test -n "$ac_tool_prefix"; then 2230if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1756set dummy ${ac_tool_prefix}gcc; ac_word=$2 2232set dummy ${ac_tool_prefix}gcc; ac_word=$2
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1758$as_echo_n "checking for $ac_word... " >&6; } 2234printf %s "checking for $ac_word... " >&6; }
1759if test "${ac_cv_prog_CC+set}" = set; then : 2235if test ${ac_cv_prog_CC+y}
1760 $as_echo_n "(cached) " >&6 2236then :
1761else 2237 printf %s "(cached) " >&6
2238else $as_nop
1762 if test -n "$CC"; then 2239 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test. 2240 ac_cv_prog_CC="$CC" # Let the user override the test.
1764else 2241else
1765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766for as_dir in $PATH 2243for as_dir in $PATH
1767do 2244do
1768 IFS=$as_save_IFS 2245 IFS=$as_save_IFS
1769 test -z "$as_dir" && as_dir=. 2246 case $as_dir in #(((
2247 '') as_dir=./ ;;
2248 */) ;;
2249 *) as_dir=$as_dir/ ;;
2250 esac
1770 for ac_exec_ext in '' $ac_executable_extensions; do 2251 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1774 break 2 2255 break 2
1775 fi 2256 fi
1776done 2257done
1777 done 2258 done
1778IFS=$as_save_IFS 2259IFS=$as_save_IFS
1779 2260
1780fi 2261fi
1781fi 2262fi
1782CC=$ac_cv_prog_CC 2263CC=$ac_cv_prog_CC
1783if test -n "$CC"; then 2264if test -n "$CC"; then
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1785$as_echo "$CC" >&6; } 2266printf "%s\n" "$CC" >&6; }
1786else 2267else
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1788$as_echo "no" >&6; } 2269printf "%s\n" "no" >&6; }
1789fi 2270fi
1790 2271
1791 2272
1792fi 2273fi
1793if test -z "$ac_cv_prog_CC"; then 2274if test -z "$ac_cv_prog_CC"; then
1794 ac_ct_CC=$CC 2275 ac_ct_CC=$CC
1795 # Extract the first word of "gcc", so it can be a program name with args. 2276 # Extract the first word of "gcc", so it can be a program name with args.
1796set dummy gcc; ac_word=$2 2277set dummy gcc; ac_word=$2
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1798$as_echo_n "checking for $ac_word... " >&6; } 2279printf %s "checking for $ac_word... " >&6; }
1799if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2280if test ${ac_cv_prog_ac_ct_CC+y}
1800 $as_echo_n "(cached) " >&6 2281then :
1801else 2282 printf %s "(cached) " >&6
2283else $as_nop
1802 if test -n "$ac_ct_CC"; then 2284 if test -n "$ac_ct_CC"; then
1803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804else 2286else
1805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806for as_dir in $PATH 2288for as_dir in $PATH
1807do 2289do
1808 IFS=$as_save_IFS 2290 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=. 2291 case $as_dir in #(((
2292 '') as_dir=./ ;;
2293 */) ;;
2294 *) as_dir=$as_dir/ ;;
2295 esac
1810 for ac_exec_ext in '' $ac_executable_extensions; do 2296 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_ac_ct_CC="gcc" 2298 ac_cv_prog_ac_ct_CC="gcc"
1813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1814 break 2 2300 break 2
1815 fi 2301 fi
1816done 2302done
1817 done 2303 done
1818IFS=$as_save_IFS 2304IFS=$as_save_IFS
1819 2305
1820fi 2306fi
1821fi 2307fi
1822ac_ct_CC=$ac_cv_prog_ac_ct_CC 2308ac_ct_CC=$ac_cv_prog_ac_ct_CC
1823if test -n "$ac_ct_CC"; then 2309if test -n "$ac_ct_CC"; then
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1825$as_echo "$ac_ct_CC" >&6; } 2311printf "%s\n" "$ac_ct_CC" >&6; }
1826else 2312else
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1828$as_echo "no" >&6; } 2314printf "%s\n" "no" >&6; }
1829fi 2315fi
1830 2316
1831 if test "x$ac_ct_CC" = x; then 2317 if test "x$ac_ct_CC" = x; then
1832 CC="" 2318 CC=""
1833 else 2319 else
1834 case $cross_compiling:$ac_tool_warned in 2320 case $cross_compiling:$ac_tool_warned in
1835yes:) 2321yes:)
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2323printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1838ac_tool_warned=yes ;; 2324ac_tool_warned=yes ;;
1839esac 2325esac
1840 CC=$ac_ct_CC 2326 CC=$ac_ct_CC
1841 fi 2327 fi
1842else 2328else
1845 2331
1846if test -z "$CC"; then 2332if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then 2333 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849set dummy ${ac_tool_prefix}cc; ac_word=$2 2335set dummy ${ac_tool_prefix}cc; ac_word=$2
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1851$as_echo_n "checking for $ac_word... " >&6; } 2337printf %s "checking for $ac_word... " >&6; }
1852if test "${ac_cv_prog_CC+set}" = set; then : 2338if test ${ac_cv_prog_CC+y}
1853 $as_echo_n "(cached) " >&6 2339then :
1854else 2340 printf %s "(cached) " >&6
2341else $as_nop
1855 if test -n "$CC"; then 2342 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test. 2343 ac_cv_prog_CC="$CC" # Let the user override the test.
1857else 2344else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH 2346for as_dir in $PATH
1860do 2347do
1861 IFS=$as_save_IFS 2348 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=. 2349 case $as_dir in #(((
2350 '') as_dir=./ ;;
2351 */) ;;
2352 *) as_dir=$as_dir/ ;;
2353 esac
1863 for ac_exec_ext in '' $ac_executable_extensions; do 2354 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_CC="${ac_tool_prefix}cc" 2356 ac_cv_prog_CC="${ac_tool_prefix}cc"
1866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1867 break 2 2358 break 2
1868 fi 2359 fi
1869done 2360done
1870 done 2361 done
1871IFS=$as_save_IFS 2362IFS=$as_save_IFS
1872 2363
1873fi 2364fi
1874fi 2365fi
1875CC=$ac_cv_prog_CC 2366CC=$ac_cv_prog_CC
1876if test -n "$CC"; then 2367if test -n "$CC"; then
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1878$as_echo "$CC" >&6; } 2369printf "%s\n" "$CC" >&6; }
1879else 2370else
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1881$as_echo "no" >&6; } 2372printf "%s\n" "no" >&6; }
1882fi 2373fi
1883 2374
1884 2375
1885 fi 2376 fi
1886fi 2377fi
1887if test -z "$CC"; then 2378if test -z "$CC"; then
1888 # Extract the first word of "cc", so it can be a program name with args. 2379 # Extract the first word of "cc", so it can be a program name with args.
1889set dummy cc; ac_word=$2 2380set dummy cc; ac_word=$2
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1891$as_echo_n "checking for $ac_word... " >&6; } 2382printf %s "checking for $ac_word... " >&6; }
1892if test "${ac_cv_prog_CC+set}" = set; then : 2383if test ${ac_cv_prog_CC+y}
1893 $as_echo_n "(cached) " >&6 2384then :
1894else 2385 printf %s "(cached) " >&6
2386else $as_nop
1895 if test -n "$CC"; then 2387 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test. 2388 ac_cv_prog_CC="$CC" # Let the user override the test.
1897else 2389else
1898 ac_prog_rejected=no 2390 ac_prog_rejected=no
1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900for as_dir in $PATH 2392for as_dir in $PATH
1901do 2393do
1902 IFS=$as_save_IFS 2394 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=. 2395 case $as_dir in #(((
2396 '') as_dir=./ ;;
2397 */) ;;
2398 *) as_dir=$as_dir/ ;;
2399 esac
1904 for ac_exec_ext in '' $ac_executable_extensions; do 2400 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2402 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1907 ac_prog_rejected=yes 2403 ac_prog_rejected=yes
1908 continue 2404 continue
1909 fi 2405 fi
1910 ac_cv_prog_CC="cc" 2406 ac_cv_prog_CC="cc"
1911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1912 break 2 2408 break 2
1913 fi 2409 fi
1914done 2410done
1915 done 2411 done
1916IFS=$as_save_IFS 2412IFS=$as_save_IFS
1922 if test $# != 0; then 2418 if test $# != 0; then
1923 # We chose a different compiler from the bogus one. 2419 # We chose a different compiler from the bogus one.
1924 # However, it has the same basename, so the bogon will be chosen 2420 # However, it has the same basename, so the bogon will be chosen
1925 # first if we set CC to just the basename; use the full file name. 2421 # first if we set CC to just the basename; use the full file name.
1926 shift 2422 shift
1927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2423 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1928 fi 2424 fi
1929fi 2425fi
1930fi 2426fi
1931fi 2427fi
1932CC=$ac_cv_prog_CC 2428CC=$ac_cv_prog_CC
1933if test -n "$CC"; then 2429if test -n "$CC"; then
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1935$as_echo "$CC" >&6; } 2431printf "%s\n" "$CC" >&6; }
1936else 2432else
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1938$as_echo "no" >&6; } 2434printf "%s\n" "no" >&6; }
1939fi 2435fi
1940 2436
1941 2437
1942fi 2438fi
1943if test -z "$CC"; then 2439if test -z "$CC"; then
1944 if test -n "$ac_tool_prefix"; then 2440 if test -n "$ac_tool_prefix"; then
1945 for ac_prog in cl.exe 2441 for ac_prog in cl.exe
1946 do 2442 do
1947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1948set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2444set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1950$as_echo_n "checking for $ac_word... " >&6; } 2446printf %s "checking for $ac_word... " >&6; }
1951if test "${ac_cv_prog_CC+set}" = set; then : 2447if test ${ac_cv_prog_CC+y}
1952 $as_echo_n "(cached) " >&6 2448then :
1953else 2449 printf %s "(cached) " >&6
2450else $as_nop
1954 if test -n "$CC"; then 2451 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test. 2452 ac_cv_prog_CC="$CC" # Let the user override the test.
1956else 2453else
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH 2455for as_dir in $PATH
1959do 2456do
1960 IFS=$as_save_IFS 2457 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=. 2458 case $as_dir in #(((
2459 '') as_dir=./ ;;
2460 */) ;;
2461 *) as_dir=$as_dir/ ;;
2462 esac
1962 for ac_exec_ext in '' $ac_executable_extensions; do 2463 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1966 break 2 2467 break 2
1967 fi 2468 fi
1968done 2469done
1969 done 2470 done
1970IFS=$as_save_IFS 2471IFS=$as_save_IFS
1971 2472
1972fi 2473fi
1973fi 2474fi
1974CC=$ac_cv_prog_CC 2475CC=$ac_cv_prog_CC
1975if test -n "$CC"; then 2476if test -n "$CC"; then
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1977$as_echo "$CC" >&6; } 2478printf "%s\n" "$CC" >&6; }
1978else 2479else
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1980$as_echo "no" >&6; } 2481printf "%s\n" "no" >&6; }
1981fi 2482fi
1982 2483
1983 2484
1984 test -n "$CC" && break 2485 test -n "$CC" && break
1985 done 2486 done
1988 ac_ct_CC=$CC 2489 ac_ct_CC=$CC
1989 for ac_prog in cl.exe 2490 for ac_prog in cl.exe
1990do 2491do
1991 # Extract the first word of "$ac_prog", so it can be a program name with args. 2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
1992set dummy $ac_prog; ac_word=$2 2493set dummy $ac_prog; ac_word=$2
1993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1994$as_echo_n "checking for $ac_word... " >&6; } 2495printf %s "checking for $ac_word... " >&6; }
1995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2496if test ${ac_cv_prog_ac_ct_CC+y}
1996 $as_echo_n "(cached) " >&6 2497then :
1997else 2498 printf %s "(cached) " >&6
2499else $as_nop
1998 if test -n "$ac_ct_CC"; then 2500 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000else 2502else
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH 2504for as_dir in $PATH
2003do 2505do
2004 IFS=$as_save_IFS 2506 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=. 2507 case $as_dir in #(((
2508 '') as_dir=./ ;;
2509 */) ;;
2510 *) as_dir=$as_dir/ ;;
2511 esac
2006 for ac_exec_ext in '' $ac_executable_extensions; do 2512 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_CC="$ac_prog" 2514 ac_cv_prog_ac_ct_CC="$ac_prog"
2009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2010 break 2 2516 break 2
2011 fi 2517 fi
2012done 2518done
2013 done 2519 done
2014IFS=$as_save_IFS 2520IFS=$as_save_IFS
2015 2521
2016fi 2522fi
2017fi 2523fi
2018ac_ct_CC=$ac_cv_prog_ac_ct_CC 2524ac_ct_CC=$ac_cv_prog_ac_ct_CC
2019if test -n "$ac_ct_CC"; then 2525if test -n "$ac_ct_CC"; then
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2021$as_echo "$ac_ct_CC" >&6; } 2527printf "%s\n" "$ac_ct_CC" >&6; }
2022else 2528else
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2024$as_echo "no" >&6; } 2530printf "%s\n" "no" >&6; }
2025fi 2531fi
2026 2532
2027 2533
2028 test -n "$ac_ct_CC" && break 2534 test -n "$ac_ct_CC" && break
2029done 2535done
2031 if test "x$ac_ct_CC" = x; then 2537 if test "x$ac_ct_CC" = x; then
2032 CC="" 2538 CC=""
2033 else 2539 else
2034 case $cross_compiling:$ac_tool_warned in 2540 case $cross_compiling:$ac_tool_warned in
2035yes:) 2541yes:)
2036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2543printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2038ac_tool_warned=yes ;; 2544ac_tool_warned=yes ;;
2039esac 2545esac
2040 CC=$ac_ct_CC 2546 CC=$ac_ct_CC
2041 fi 2547 fi
2042fi 2548fi
2043 2549
2044fi 2550fi
2551if test -z "$CC"; then
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2554set dummy ${ac_tool_prefix}clang; ac_word=$2
2555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556printf %s "checking for $ac_word... " >&6; }
2557if test ${ac_cv_prog_CC+y}
2558then :
2559 printf %s "(cached) " >&6
2560else $as_nop
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 case $as_dir in #(((
2569 '') as_dir=./ ;;
2570 */) ;;
2571 *) as_dir=$as_dir/ ;;
2572 esac
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC="${ac_tool_prefix}clang"
2576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579done
2580 done
2581IFS=$as_save_IFS
2045 2582
2583fi
2584fi
2585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588printf "%s\n" "$CC" >&6; }
2589else
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591printf "%s\n" "no" >&6; }
2592fi
2046 2593
2594
2595fi
2596if test -z "$ac_cv_prog_CC"; then
2597 ac_ct_CC=$CC
2598 # Extract the first word of "clang", so it can be a program name with args.
2599set dummy clang; ac_word=$2
2600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601printf %s "checking for $ac_word... " >&6; }
2602if test ${ac_cv_prog_ac_ct_CC+y}
2603then :
2604 printf %s "(cached) " >&6
2605else $as_nop
2606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 case $as_dir in #(((
2614 '') as_dir=./ ;;
2615 */) ;;
2616 *) as_dir=$as_dir/ ;;
2617 esac
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_ac_ct_CC="clang"
2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2622 break 2
2623 fi
2624done
2625 done
2626IFS=$as_save_IFS
2627
2628fi
2629fi
2630ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631if test -n "$ac_ct_CC"; then
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2633printf "%s\n" "$ac_ct_CC" >&6; }
2634else
2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636printf "%s\n" "no" >&6; }
2637fi
2638
2639 if test "x$ac_ct_CC" = x; then
2640 CC=""
2641 else
2642 case $cross_compiling:$ac_tool_warned in
2643yes:)
2644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2645printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2646ac_tool_warned=yes ;;
2647esac
2648 CC=$ac_ct_CC
2649 fi
2650else
2651 CC="$ac_cv_prog_CC"
2652fi
2653
2654fi
2655
2656
2047test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2657test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2658printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2049as_fn_error $? "no acceptable C compiler found in \$PATH 2659as_fn_error $? "no acceptable C compiler found in \$PATH
2050See \`config.log' for more details" "$LINENO" 5 ; } 2660See \`config.log' for more details" "$LINENO" 5; }
2051 2661
2052# Provide some information about the compiler. 2662# Provide some information about the compiler.
2053$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2663printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2054set X $ac_compile 2664set X $ac_compile
2055ac_compiler=$2 2665ac_compiler=$2
2056for ac_option in --version -v -V -qversion; do 2666for ac_option in --version -v -V -qversion -version; do
2057 { { ac_try="$ac_compiler $ac_option >&5" 2667 { { ac_try="$ac_compiler $ac_option >&5"
2058case "(($ac_try" in 2668case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;; 2670 *) ac_try_echo=$ac_try;;
2061esac 2671esac
2062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063$as_echo "$ac_try_echo"; } >&5 2673printf "%s\n" "$ac_try_echo"; } >&5
2064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2065 ac_status=$? 2675 ac_status=$?
2066 if test -s conftest.err; then 2676 if test -s conftest.err; then
2067 sed '10a\ 2677 sed '10a\
2068... rest of stderr output deleted ... 2678... rest of stderr output deleted ...
2069 10q' conftest.err >conftest.er1 2679 10q' conftest.err >conftest.er1
2070 cat conftest.er1 >&5 2680 cat conftest.er1 >&5
2071 fi 2681 fi
2072 rm -f conftest.er1 conftest.err 2682 rm -f conftest.er1 conftest.err
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } 2684 test $ac_status = 0; }
2075done 2685done
2076 2686
2077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */ 2688/* end confdefs.h. */
2079 2689
2080int 2690int
2081main () 2691main (void)
2082{ 2692{
2083 2693
2084 ; 2694 ;
2085 return 0; 2695 return 0;
2086} 2696}
2088ac_clean_files_save=$ac_clean_files 2698ac_clean_files_save=$ac_clean_files
2089ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2699ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2090# Try to create an executable without -o first, disregard a.out. 2700# Try to create an executable without -o first, disregard a.out.
2091# It will help us diagnose broken compilers, and finding out an intuition 2701# It will help us diagnose broken compilers, and finding out an intuition
2092# of exeext. 2702# of exeext.
2093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2094$as_echo_n "checking whether the C compiler works... " >&6; } 2704printf %s "checking whether the C compiler works... " >&6; }
2095ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2705ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2096 2706
2097# The possible output files: 2707# The possible output files:
2098ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2708ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2099 2709
2100ac_rmfiles= 2710ac_rmfiles=
2111case "(($ac_try" in 2721case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;; 2723 *) ac_try_echo=$ac_try;;
2114esac 2724esac
2115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116$as_echo "$ac_try_echo"; } >&5 2726printf "%s\n" "$ac_try_echo"; } >&5
2117 (eval "$ac_link_default") 2>&5 2727 (eval "$ac_link_default") 2>&5
2118 ac_status=$? 2728 ac_status=$?
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; }; then : 2730 test $ac_status = 0; }
2731then :
2121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2732 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2122# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2733# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2123# in a Makefile. We should not override ac_cv_exeext if it was cached, 2734# in a Makefile. We should not override ac_cv_exeext if it was cached,
2124# so that the user can short-circuit this test for compilers unknown to 2735# so that the user can short-circuit this test for compilers unknown to
2125# Autoconf. 2736# Autoconf.
2132 [ab].out ) 2743 [ab].out )
2133 # We found the default executable, but exeext='' is most 2744 # We found the default executable, but exeext='' is most
2134 # certainly right. 2745 # certainly right.
2135 break;; 2746 break;;
2136 *.* ) 2747 *.* )
2137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2748 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2138 then :; else 2749 then :; else
2139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2750 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140 fi 2751 fi
2141 # We set ac_cv_exeext here because the later test for it is not 2752 # We set ac_cv_exeext here because the later test for it is not
2142 # safe: cross compilers may not add the suffix if given an `-o' 2753 # safe: cross compilers may not add the suffix if given an `-o'
2148 break;; 2759 break;;
2149 esac 2760 esac
2150done 2761done
2151test "$ac_cv_exeext" = no && ac_cv_exeext= 2762test "$ac_cv_exeext" = no && ac_cv_exeext=
2152 2763
2153else 2764else $as_nop
2154 ac_file='' 2765 ac_file=''
2155fi 2766fi
2156if test -z "$ac_file"; then : 2767if test -z "$ac_file"
2768then :
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2158$as_echo "no" >&6; } 2770printf "%s\n" "no" >&6; }
2159$as_echo "$as_me: failed program was:" >&5 2771printf "%s\n" "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5 2772sed 's/^/| /' conftest.$ac_ext >&5
2161 2773
2162{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2774{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2775printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2164as_fn_error 77 "C compiler cannot create executables 2776as_fn_error 77 "C compiler cannot create executables
2165See \`config.log' for more details" "$LINENO" 5 ; } 2777See \`config.log' for more details" "$LINENO" 5; }
2166else 2778else $as_nop
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2168$as_echo "yes" >&6; } 2780printf "%s\n" "yes" >&6; }
2169fi 2781fi
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2171$as_echo_n "checking for C compiler default output file name... " >&6; } 2783printf %s "checking for C compiler default output file name... " >&6; }
2172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2173$as_echo "$ac_file" >&6; } 2785printf "%s\n" "$ac_file" >&6; }
2174ac_exeext=$ac_cv_exeext 2786ac_exeext=$ac_cv_exeext
2175 2787
2176rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2788rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2177ac_clean_files=$ac_clean_files_save 2789ac_clean_files=$ac_clean_files_save
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2179$as_echo_n "checking for suffix of executables... " >&6; } 2791printf %s "checking for suffix of executables... " >&6; }
2180if { { ac_try="$ac_link" 2792if { { ac_try="$ac_link"
2181case "(($ac_try" in 2793case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;; 2795 *) ac_try_echo=$ac_try;;
2184esac 2796esac
2185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186$as_echo "$ac_try_echo"; } >&5 2798printf "%s\n" "$ac_try_echo"; } >&5
2187 (eval "$ac_link") 2>&5 2799 (eval "$ac_link") 2>&5
2188 ac_status=$? 2800 ac_status=$?
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; }; then : 2802 test $ac_status = 0; }
2803then :
2191 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2804 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2192# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2805# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2193# work properly (i.e., refer to `conftest.exe'), while it won't with 2806# work properly (i.e., refer to `conftest.exe'), while it won't with
2194# `rm'. 2807# `rm'.
2195for ac_file in conftest.exe conftest conftest.*; do 2808for ac_file in conftest.exe conftest conftest.*; do
2199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 break;; 2813 break;;
2201 * ) break;; 2814 * ) break;;
2202 esac 2815 esac
2203done 2816done
2204else 2817else $as_nop
2205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2819printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2207as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2820as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2208See \`config.log' for more details" "$LINENO" 5 ; } 2821See \`config.log' for more details" "$LINENO" 5; }
2209fi 2822fi
2210rm -f conftest conftest$ac_cv_exeext 2823rm -f conftest conftest$ac_cv_exeext
2211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2212$as_echo "$ac_cv_exeext" >&6; } 2825printf "%s\n" "$ac_cv_exeext" >&6; }
2213 2826
2214rm -f conftest.$ac_ext 2827rm -f conftest.$ac_ext
2215EXEEXT=$ac_cv_exeext 2828EXEEXT=$ac_cv_exeext
2216ac_exeext=$EXEEXT 2829ac_exeext=$EXEEXT
2217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h. */ 2831/* end confdefs.h. */
2219#include <stdio.h> 2832#include <stdio.h>
2220int 2833int
2221main () 2834main (void)
2222{ 2835{
2223FILE *f = fopen ("conftest.out", "w"); 2836FILE *f = fopen ("conftest.out", "w");
2224 return ferror (f) || fclose (f) != 0; 2837 return ferror (f) || fclose (f) != 0;
2225 2838
2226 ; 2839 ;
2228} 2841}
2229_ACEOF 2842_ACEOF
2230ac_clean_files="$ac_clean_files conftest.out" 2843ac_clean_files="$ac_clean_files conftest.out"
2231# Check that the compiler produces executables we can run. If not, either 2844# Check that the compiler produces executables we can run. If not, either
2232# the compiler is broken, or we cross compile. 2845# the compiler is broken, or we cross compile.
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2234$as_echo_n "checking whether we are cross compiling... " >&6; } 2847printf %s "checking whether we are cross compiling... " >&6; }
2235if test "$cross_compiling" != yes; then 2848if test "$cross_compiling" != yes; then
2236 { { ac_try="$ac_link" 2849 { { ac_try="$ac_link"
2237case "(($ac_try" in 2850case "(($ac_try" in
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;; 2852 *) ac_try_echo=$ac_try;;
2240esac 2853esac
2241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242$as_echo "$ac_try_echo"; } >&5 2855printf "%s\n" "$ac_try_echo"; } >&5
2243 (eval "$ac_link") 2>&5 2856 (eval "$ac_link") 2>&5
2244 ac_status=$? 2857 ac_status=$?
2245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2246 test $ac_status = 0; } 2859 test $ac_status = 0; }
2247 if { ac_try='./conftest$ac_cv_exeext' 2860 if { ac_try='./conftest$ac_cv_exeext'
2248 { { case "(($ac_try" in 2861 { { case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;; 2863 *) ac_try_echo=$ac_try;;
2251esac 2864esac
2252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2253$as_echo "$ac_try_echo"; } >&5 2866printf "%s\n" "$ac_try_echo"; } >&5
2254 (eval "$ac_try") 2>&5 2867 (eval "$ac_try") 2>&5
2255 ac_status=$? 2868 ac_status=$?
2256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257 test $ac_status = 0; }; }; then 2870 test $ac_status = 0; }; }; then
2258 cross_compiling=no 2871 cross_compiling=no
2259 else 2872 else
2260 if test "$cross_compiling" = maybe; then 2873 if test "$cross_compiling" = maybe; then
2261 cross_compiling=yes 2874 cross_compiling=yes
2262 else 2875 else
2263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2876 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2877printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2265as_fn_error $? "cannot run C compiled programs. 2878as_fn_error 77 "cannot run C compiled programs.
2266If you meant to cross compile, use \`--host'. 2879If you meant to cross compile, use \`--host'.
2267See \`config.log' for more details" "$LINENO" 5 ; } 2880See \`config.log' for more details" "$LINENO" 5; }
2268 fi 2881 fi
2269 fi 2882 fi
2270fi 2883fi
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2272$as_echo "$cross_compiling" >&6; } 2885printf "%s\n" "$cross_compiling" >&6; }
2273 2886
2274rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2887rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2275ac_clean_files=$ac_clean_files_save 2888ac_clean_files=$ac_clean_files_save
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2277$as_echo_n "checking for suffix of object files... " >&6; } 2890printf %s "checking for suffix of object files... " >&6; }
2278if test "${ac_cv_objext+set}" = set; then : 2891if test ${ac_cv_objext+y}
2279 $as_echo_n "(cached) " >&6 2892then :
2280else 2893 printf %s "(cached) " >&6
2894else $as_nop
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h. */ 2896/* end confdefs.h. */
2283 2897
2284int 2898int
2285main () 2899main (void)
2286{ 2900{
2287 2901
2288 ; 2902 ;
2289 return 0; 2903 return 0;
2290} 2904}
2294case "(($ac_try" in 2908case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;; 2910 *) ac_try_echo=$ac_try;;
2297esac 2911esac
2298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299$as_echo "$ac_try_echo"; } >&5 2913printf "%s\n" "$ac_try_echo"; } >&5
2300 (eval "$ac_compile") 2>&5 2914 (eval "$ac_compile") 2>&5
2301 ac_status=$? 2915 ac_status=$?
2302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303 test $ac_status = 0; }; then : 2917 test $ac_status = 0; }
2918then :
2304 for ac_file in conftest.o conftest.obj conftest.*; do 2919 for ac_file in conftest.o conftest.obj conftest.*; do
2305 test -f "$ac_file" || continue; 2920 test -f "$ac_file" || continue;
2306 case $ac_file in 2921 case $ac_file in
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2308 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2923 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2309 break;; 2924 break;;
2310 esac 2925 esac
2311done 2926done
2312else 2927else $as_nop
2313 $as_echo "$as_me: failed program was:" >&5 2928 printf "%s\n" "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5 2929sed 's/^/| /' conftest.$ac_ext >&5
2315 2930
2316{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2931{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2932printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2318as_fn_error $? "cannot compute suffix of object files: cannot compile 2933as_fn_error $? "cannot compute suffix of object files: cannot compile
2319See \`config.log' for more details" "$LINENO" 5 ; } 2934See \`config.log' for more details" "$LINENO" 5; }
2320fi 2935fi
2321rm -f conftest.$ac_cv_objext conftest.$ac_ext 2936rm -f conftest.$ac_cv_objext conftest.$ac_ext
2322fi 2937fi
2323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2324$as_echo "$ac_cv_objext" >&6; } 2939printf "%s\n" "$ac_cv_objext" >&6; }
2325OBJEXT=$ac_cv_objext 2940OBJEXT=$ac_cv_objext
2326ac_objext=$OBJEXT 2941ac_objext=$OBJEXT
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
2328$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2943printf %s "checking whether the compiler supports GNU C... " >&6; }
2329if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2944if test ${ac_cv_c_compiler_gnu+y}
2330 $as_echo_n "(cached) " >&6 2945then :
2331else 2946 printf %s "(cached) " >&6
2947else $as_nop
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333/* end confdefs.h. */ 2949/* end confdefs.h. */
2334 2950
2335int 2951int
2336main () 2952main (void)
2337{ 2953{
2338#ifndef __GNUC__ 2954#ifndef __GNUC__
2339 choke me 2955 choke me
2340#endif 2956#endif
2341 2957
2342 ; 2958 ;
2343 return 0; 2959 return 0;
2344} 2960}
2345_ACEOF 2961_ACEOF
2346if ac_fn_c_try_compile "$LINENO"; then : 2962if ac_fn_c_try_compile "$LINENO"
2963then :
2347 ac_compiler_gnu=yes 2964 ac_compiler_gnu=yes
2348else 2965else $as_nop
2349 ac_compiler_gnu=no 2966 ac_compiler_gnu=no
2350fi 2967fi
2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2352ac_cv_c_compiler_gnu=$ac_compiler_gnu 2969ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353 2970
2354fi 2971fi
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2356$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2973printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
2974ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975
2357if test $ac_compiler_gnu = yes; then 2976if test $ac_compiler_gnu = yes; then
2358 GCC=yes 2977 GCC=yes
2359else 2978else
2360 GCC= 2979 GCC=
2361fi 2980fi
2362ac_test_CFLAGS=${CFLAGS+set} 2981ac_test_CFLAGS=${CFLAGS+y}
2363ac_save_CFLAGS=$CFLAGS 2982ac_save_CFLAGS=$CFLAGS
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2365$as_echo_n "checking whether $CC accepts -g... " >&6; } 2984printf %s "checking whether $CC accepts -g... " >&6; }
2366if test "${ac_cv_prog_cc_g+set}" = set; then : 2985if test ${ac_cv_prog_cc_g+y}
2367 $as_echo_n "(cached) " >&6 2986then :
2368else 2987 printf %s "(cached) " >&6
2988else $as_nop
2369 ac_save_c_werror_flag=$ac_c_werror_flag 2989 ac_save_c_werror_flag=$ac_c_werror_flag
2370 ac_c_werror_flag=yes 2990 ac_c_werror_flag=yes
2371 ac_cv_prog_cc_g=no 2991 ac_cv_prog_cc_g=no
2372 CFLAGS="-g" 2992 CFLAGS="-g"
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h. */ 2994/* end confdefs.h. */
2375 2995
2376int 2996int
2377main () 2997main (void)
2378{ 2998{
2379 2999
2380 ; 3000 ;
2381 return 0; 3001 return 0;
2382} 3002}
2383_ACEOF 3003_ACEOF
2384if ac_fn_c_try_compile "$LINENO"; then : 3004if ac_fn_c_try_compile "$LINENO"
3005then :
2385 ac_cv_prog_cc_g=yes 3006 ac_cv_prog_cc_g=yes
2386else 3007else $as_nop
2387 CFLAGS="" 3008 CFLAGS=""
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389/* end confdefs.h. */ 3010/* end confdefs.h. */
2390 3011
2391int 3012int
2392main () 3013main (void)
2393{ 3014{
2394 3015
2395 ; 3016 ;
2396 return 0; 3017 return 0;
2397} 3018}
2398_ACEOF 3019_ACEOF
2399if ac_fn_c_try_compile "$LINENO"; then : 3020if ac_fn_c_try_compile "$LINENO"
3021then :
2400 3022
2401else 3023else $as_nop
2402 ac_c_werror_flag=$ac_save_c_werror_flag 3024 ac_c_werror_flag=$ac_save_c_werror_flag
2403 CFLAGS="-g" 3025 CFLAGS="-g"
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405/* end confdefs.h. */ 3027/* end confdefs.h. */
2406 3028
2407int 3029int
2408main () 3030main (void)
2409{ 3031{
2410 3032
2411 ; 3033 ;
2412 return 0; 3034 return 0;
2413} 3035}
2414_ACEOF 3036_ACEOF
2415if ac_fn_c_try_compile "$LINENO"; then : 3037if ac_fn_c_try_compile "$LINENO"
3038then :
2416 ac_cv_prog_cc_g=yes 3039 ac_cv_prog_cc_g=yes
2417fi 3040fi
2418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2419fi 3042fi
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2421fi 3044fi
2422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2423 ac_c_werror_flag=$ac_save_c_werror_flag 3046 ac_c_werror_flag=$ac_save_c_werror_flag
2424fi 3047fi
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2426$as_echo "$ac_cv_prog_cc_g" >&6; } 3049printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
2427if test "$ac_test_CFLAGS" = set; then 3050if test $ac_test_CFLAGS; then
2428 CFLAGS=$ac_save_CFLAGS 3051 CFLAGS=$ac_save_CFLAGS
2429elif test $ac_cv_prog_cc_g = yes; then 3052elif test $ac_cv_prog_cc_g = yes; then
2430 if test "$GCC" = yes; then 3053 if test "$GCC" = yes; then
2431 CFLAGS="-g -O2" 3054 CFLAGS="-g -O2"
2432 else 3055 else
2437 CFLAGS="-O2" 3060 CFLAGS="-O2"
2438 else 3061 else
2439 CFLAGS= 3062 CFLAGS=
2440 fi 3063 fi
2441fi 3064fi
3065ac_prog_cc_stdc=no
3066if test x$ac_prog_cc_stdc = xno
3067then :
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3069printf %s "checking for $CC option to enable C11 features... " >&6; }
3070if test ${ac_cv_prog_cc_c11+y}
3071then :
3072 printf %s "(cached) " >&6
3073else $as_nop
3074 ac_cv_prog_cc_c11=no
3075ac_save_CC=$CC
3076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077/* end confdefs.h. */
3078$ac_c_conftest_c11_program
3079_ACEOF
3080for ac_arg in '' -std=gnu11
3081do
3082 CC="$ac_save_CC $ac_arg"
3083 if ac_fn_c_try_compile "$LINENO"
3084then :
3085 ac_cv_prog_cc_c11=$ac_arg
3086fi
3087rm -f core conftest.err conftest.$ac_objext conftest.beam
3088 test "x$ac_cv_prog_cc_c11" != "xno" && break
3089done
3090rm -f conftest.$ac_ext
3091CC=$ac_save_CC
3092fi
3093
3094if test "x$ac_cv_prog_cc_c11" = xno
3095then :
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3097printf "%s\n" "unsupported" >&6; }
3098else $as_nop
3099 if test "x$ac_cv_prog_cc_c11" = x
3100then :
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3102printf "%s\n" "none needed" >&6; }
3103else $as_nop
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3105printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3106 CC="$CC $ac_cv_prog_cc_c11"
3107fi
3108 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3109 ac_prog_cc_stdc=c11
3110fi
3111fi
3112if test x$ac_prog_cc_stdc = xno
3113then :
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3115printf %s "checking for $CC option to enable C99 features... " >&6; }
3116if test ${ac_cv_prog_cc_c99+y}
3117then :
3118 printf %s "(cached) " >&6
3119else $as_nop
3120 ac_cv_prog_cc_c99=no
3121ac_save_CC=$CC
3122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123/* end confdefs.h. */
3124$ac_c_conftest_c99_program
3125_ACEOF
3126for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3127do
3128 CC="$ac_save_CC $ac_arg"
3129 if ac_fn_c_try_compile "$LINENO"
3130then :
3131 ac_cv_prog_cc_c99=$ac_arg
3132fi
3133rm -f core conftest.err conftest.$ac_objext conftest.beam
3134 test "x$ac_cv_prog_cc_c99" != "xno" && break
3135done
3136rm -f conftest.$ac_ext
3137CC=$ac_save_CC
3138fi
3139
3140if test "x$ac_cv_prog_cc_c99" = xno
3141then :
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3143printf "%s\n" "unsupported" >&6; }
3144else $as_nop
3145 if test "x$ac_cv_prog_cc_c99" = x
3146then :
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3148printf "%s\n" "none needed" >&6; }
3149else $as_nop
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3151printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3152 CC="$CC $ac_cv_prog_cc_c99"
3153fi
3154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3155 ac_prog_cc_stdc=c99
3156fi
3157fi
3158if test x$ac_prog_cc_stdc = xno
3159then :
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
2443$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3161printf %s "checking for $CC option to enable C89 features... " >&6; }
2444if test "${ac_cv_prog_cc_c89+set}" = set; then : 3162if test ${ac_cv_prog_cc_c89+y}
2445 $as_echo_n "(cached) " >&6 3163then :
2446else 3164 printf %s "(cached) " >&6
3165else $as_nop
2447 ac_cv_prog_cc_c89=no 3166 ac_cv_prog_cc_c89=no
2448ac_save_CC=$CC 3167ac_save_CC=$CC
2449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450/* end confdefs.h. */ 3169/* end confdefs.h. */
2451#include <stdarg.h> 3170$ac_c_conftest_c89_program
2452#include <stdio.h>
2453#include <sys/types.h>
2454#include <sys/stat.h>
2455/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2456struct buf { int x; };
2457FILE * (*rcsopen) (struct buf *, struct stat *, int);
2458static char *e (p, i)
2459 char **p;
2460 int i;
2461{
2462 return p[i];
2463}
2464static char *f (char * (*g) (char **, int), char **p, ...)
2465{
2466 char *s;
2467 va_list v;
2468 va_start (v,p);
2469 s = g (p, va_arg (v,int));
2470 va_end (v);
2471 return s;
2472}
2473
2474/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2475 function prototypes and stuff, but not '\xHH' hex character constants.
2476 These don't provoke an error unfortunately, instead are silently treated
2477 as 'x'. The following induces an error, until -std is added to get
2478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2479 array size at least. It's necessary to write '\x00'==0 to get something
2480 that's true only with -std. */
2481int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482
2483/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2484 inside strings and character constants. */
2485#define FOO(x) 'x'
2486int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2487
2488int test (int i, double x);
2489struct s1 {int (*f) (int a);};
2490struct s2 {int (*f) (double a);};
2491int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2492int argc;
2493char **argv;
2494int
2495main ()
2496{
2497return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2498 ;
2499 return 0;
2500}
2501_ACEOF 3171_ACEOF
2502for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3172for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2503 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2504do 3173do
2505 CC="$ac_save_CC $ac_arg" 3174 CC="$ac_save_CC $ac_arg"
2506 if ac_fn_c_try_compile "$LINENO"; then : 3175 if ac_fn_c_try_compile "$LINENO"
3176then :
2507 ac_cv_prog_cc_c89=$ac_arg 3177 ac_cv_prog_cc_c89=$ac_arg
2508fi 3178fi
2509rm -f core conftest.err conftest.$ac_objext 3179rm -f core conftest.err conftest.$ac_objext conftest.beam
2510 test "x$ac_cv_prog_cc_c89" != "xno" && break 3180 test "x$ac_cv_prog_cc_c89" != "xno" && break
2511done 3181done
2512rm -f conftest.$ac_ext 3182rm -f conftest.$ac_ext
2513CC=$ac_save_CC 3183CC=$ac_save_CC
2514
2515fi 3184fi
2516# AC_CACHE_VAL 3185
2517case "x$ac_cv_prog_cc_c89" in 3186if test "x$ac_cv_prog_cc_c89" = xno
2518 x) 3187then :
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2520$as_echo "none needed" >&6; } ;;
2521 xno)
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2523$as_echo "unsupported" >&6; } ;; 3189printf "%s\n" "unsupported" >&6; }
2524 *) 3190else $as_nop
3191 if test "x$ac_cv_prog_cc_c89" = x
3192then :
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3194printf "%s\n" "none needed" >&6; }
3195else $as_nop
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3197printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
2525 CC="$CC $ac_cv_prog_cc_c89" 3198 CC="$CC $ac_cv_prog_cc_c89"
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3199fi
2527$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3200 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
2528esac 3201 ac_prog_cc_stdc=c89
2529if test "x$ac_cv_prog_cc_c89" != xno; then : 3202fi
2530
2531fi 3203fi
2532 3204
2533ac_ext=c 3205ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS' 3206ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu 3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 3210
2539 3211
3212ac_header= ac_cache=
3213for ac_item in $ac_header_c_list
3214do
3215 if test $ac_cache; then
3216 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3217 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3218 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3219 fi
3220 ac_header= ac_cache=
3221 elif test $ac_header; then
3222 ac_cache=$ac_item
3223 else
3224 ac_header=$ac_item
3225 fi
3226done
2540 3227
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 3228
2542$as_echo_n "checking for library containing pthread_create... " >&6; } 3229
2543if test "${ac_cv_search_pthread_create+set}" = set; then : 3230
2544 $as_echo_n "(cached) " >&6 3231
3232
3233
3234
3235if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3236then :
3237
3238printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3239
3240fi
3241
3242
3243
3244
3245
3246
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3248printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3249if test ${ac_cv_safe_to_define___extensions__+y}
3250then :
3251 printf %s "(cached) " >&6
3252else $as_nop
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h. */
3255
3256# define __EXTENSIONS__ 1
3257 $ac_includes_default
3258int
3259main (void)
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266if ac_fn_c_try_compile "$LINENO"
3267then :
3268 ac_cv_safe_to_define___extensions__=yes
3269else $as_nop
3270 ac_cv_safe_to_define___extensions__=no
3271fi
3272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3273fi
3274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3275printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3276
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3278printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3279if test ${ac_cv_should_define__xopen_source+y}
3280then :
3281 printf %s "(cached) " >&6
3282else $as_nop
3283 ac_cv_should_define__xopen_source=no
3284 if test $ac_cv_header_wchar_h = yes
3285then :
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h. */
3288
3289 #include <wchar.h>
3290 mbstate_t x;
3291int
3292main (void)
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299if ac_fn_c_try_compile "$LINENO"
3300then :
3301
3302else $as_nop
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304/* end confdefs.h. */
3305
3306 #define _XOPEN_SOURCE 500
3307 #include <wchar.h>
3308 mbstate_t x;
3309int
3310main (void)
3311{
3312
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317if ac_fn_c_try_compile "$LINENO"
3318then :
3319 ac_cv_should_define__xopen_source=yes
3320fi
3321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3322fi
3323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3324fi
3325fi
3326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3327printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3328
3329 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3330
3331 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3332
3333 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3334
3335 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3336
3337 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3338
3339 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3340
3341 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3342
3343 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3344
3345 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3346
3347 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3348
3349 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3350
3351 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3352
3353 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3354
3355 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3356
3357 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3358
3359 if test $ac_cv_header_minix_config_h = yes
3360then :
3361 MINIX=yes
3362 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3363
3364 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3365
3366 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3367
3368else $as_nop
3369 MINIX=
3370fi
3371 if test $ac_cv_safe_to_define___extensions__ = yes
3372then :
3373 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3374
3375fi
3376 if test $ac_cv_should_define__xopen_source = yes
3377then :
3378 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3379
3380fi
3381
3382
3383ac_ext=c
3384ac_cpp='$CPP $CPPFLAGS'
3385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3390set dummy ${ac_tool_prefix}gcc; ac_word=$2
3391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392printf %s "checking for $ac_word... " >&6; }
3393if test ${ac_cv_prog_CC+y}
3394then :
3395 printf %s "(cached) " >&6
3396else $as_nop
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
2545else 3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403 IFS=$as_save_IFS
3404 case $as_dir in #(((
3405 '') as_dir=./ ;;
3406 */) ;;
3407 *) as_dir=$as_dir/ ;;
3408 esac
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416 done
3417IFS=$as_save_IFS
3418
3419fi
3420fi
3421CC=$ac_cv_prog_CC
3422if test -n "$CC"; then
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424printf "%s\n" "$CC" >&6; }
3425else
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427printf "%s\n" "no" >&6; }
3428fi
3429
3430
3431fi
3432if test -z "$ac_cv_prog_CC"; then
3433 ac_ct_CC=$CC
3434 # Extract the first word of "gcc", so it can be a program name with args.
3435set dummy gcc; ac_word=$2
3436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437printf %s "checking for $ac_word... " >&6; }
3438if test ${ac_cv_prog_ac_ct_CC+y}
3439then :
3440 printf %s "(cached) " >&6
3441else $as_nop
3442 if test -n "$ac_ct_CC"; then
3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448 IFS=$as_save_IFS
3449 case $as_dir in #(((
3450 '') as_dir=./ ;;
3451 */) ;;
3452 *) as_dir=$as_dir/ ;;
3453 esac
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_ac_ct_CC="gcc"
3457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460done
3461 done
3462IFS=$as_save_IFS
3463
3464fi
3465fi
3466ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467if test -n "$ac_ct_CC"; then
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469printf "%s\n" "$ac_ct_CC" >&6; }
3470else
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472printf "%s\n" "no" >&6; }
3473fi
3474
3475 if test "x$ac_ct_CC" = x; then
3476 CC=""
3477 else
3478 case $cross_compiling:$ac_tool_warned in
3479yes:)
3480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482ac_tool_warned=yes ;;
3483esac
3484 CC=$ac_ct_CC
3485 fi
3486else
3487 CC="$ac_cv_prog_CC"
3488fi
3489
3490if test -z "$CC"; then
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3493set dummy ${ac_tool_prefix}cc; ac_word=$2
3494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495printf %s "checking for $ac_word... " >&6; }
3496if test ${ac_cv_prog_CC+y}
3497then :
3498 printf %s "(cached) " >&6
3499else $as_nop
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 case $as_dir in #(((
3508 '') as_dir=./ ;;
3509 */) ;;
3510 *) as_dir=$as_dir/ ;;
3511 esac
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_CC="${ac_tool_prefix}cc"
3515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518done
3519 done
3520IFS=$as_save_IFS
3521
3522fi
3523fi
3524CC=$ac_cv_prog_CC
3525if test -n "$CC"; then
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527printf "%s\n" "$CC" >&6; }
3528else
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530printf "%s\n" "no" >&6; }
3531fi
3532
3533
3534 fi
3535fi
3536if test -z "$CC"; then
3537 # Extract the first word of "cc", so it can be a program name with args.
3538set dummy cc; ac_word=$2
3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540printf %s "checking for $ac_word... " >&6; }
3541if test ${ac_cv_prog_CC+y}
3542then :
3543 printf %s "(cached) " >&6
3544else $as_nop
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547else
3548 ac_prog_rejected=no
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 case $as_dir in #(((
3554 '') as_dir=./ ;;
3555 */) ;;
3556 *) as_dir=$as_dir/ ;;
3557 esac
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3560 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3561 ac_prog_rejected=yes
3562 continue
3563 fi
3564 ac_cv_prog_CC="cc"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568done
3569 done
3570IFS=$as_save_IFS
3571
3572if test $ac_prog_rejected = yes; then
3573 # We found a bogon in the path, so make sure we never use it.
3574 set dummy $ac_cv_prog_CC
3575 shift
3576 if test $# != 0; then
3577 # We chose a different compiler from the bogus one.
3578 # However, it has the same basename, so the bogon will be chosen
3579 # first if we set CC to just the basename; use the full file name.
3580 shift
3581 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3582 fi
3583fi
3584fi
3585fi
3586CC=$ac_cv_prog_CC
3587if test -n "$CC"; then
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589printf "%s\n" "$CC" >&6; }
3590else
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592printf "%s\n" "no" >&6; }
3593fi
3594
3595
3596fi
3597if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 for ac_prog in cl.exe
3600 do
3601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604printf %s "checking for $ac_word... " >&6; }
3605if test ${ac_cv_prog_CC+y}
3606then :
3607 printf %s "(cached) " >&6
3608else $as_nop
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615 IFS=$as_save_IFS
3616 case $as_dir in #(((
3617 '') as_dir=./ ;;
3618 */) ;;
3619 *) as_dir=$as_dir/ ;;
3620 esac
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627done
3628 done
3629IFS=$as_save_IFS
3630
3631fi
3632fi
3633CC=$ac_cv_prog_CC
3634if test -n "$CC"; then
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636printf "%s\n" "$CC" >&6; }
3637else
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639printf "%s\n" "no" >&6; }
3640fi
3641
3642
3643 test -n "$CC" && break
3644 done
3645fi
3646if test -z "$CC"; then
3647 ac_ct_CC=$CC
3648 for ac_prog in cl.exe
3649do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651set dummy $ac_prog; ac_word=$2
3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653printf %s "checking for $ac_word... " >&6; }
3654if test ${ac_cv_prog_ac_ct_CC+y}
3655then :
3656 printf %s "(cached) " >&6
3657else $as_nop
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660else
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664 IFS=$as_save_IFS
3665 case $as_dir in #(((
3666 '') as_dir=./ ;;
3667 */) ;;
3668 *) as_dir=$as_dir/ ;;
3669 esac
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_ac_ct_CC="$ac_prog"
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676done
3677 done
3678IFS=$as_save_IFS
3679
3680fi
3681fi
3682ac_ct_CC=$ac_cv_prog_ac_ct_CC
3683if test -n "$ac_ct_CC"; then
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685printf "%s\n" "$ac_ct_CC" >&6; }
3686else
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688printf "%s\n" "no" >&6; }
3689fi
3690
3691
3692 test -n "$ac_ct_CC" && break
3693done
3694
3695 if test "x$ac_ct_CC" = x; then
3696 CC=""
3697 else
3698 case $cross_compiling:$ac_tool_warned in
3699yes:)
3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702ac_tool_warned=yes ;;
3703esac
3704 CC=$ac_ct_CC
3705 fi
3706fi
3707
3708fi
3709if test -z "$CC"; then
3710 if test -n "$ac_tool_prefix"; then
3711 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3712set dummy ${ac_tool_prefix}clang; ac_word=$2
3713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714printf %s "checking for $ac_word... " >&6; }
3715if test ${ac_cv_prog_CC+y}
3716then :
3717 printf %s "(cached) " >&6
3718else $as_nop
3719 if test -n "$CC"; then
3720 ac_cv_prog_CC="$CC" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725 IFS=$as_save_IFS
3726 case $as_dir in #(((
3727 '') as_dir=./ ;;
3728 */) ;;
3729 *) as_dir=$as_dir/ ;;
3730 esac
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_CC="${ac_tool_prefix}clang"
3734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737done
3738 done
3739IFS=$as_save_IFS
3740
3741fi
3742fi
3743CC=$ac_cv_prog_CC
3744if test -n "$CC"; then
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746printf "%s\n" "$CC" >&6; }
3747else
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749printf "%s\n" "no" >&6; }
3750fi
3751
3752
3753fi
3754if test -z "$ac_cv_prog_CC"; then
3755 ac_ct_CC=$CC
3756 # Extract the first word of "clang", so it can be a program name with args.
3757set dummy clang; ac_word=$2
3758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759printf %s "checking for $ac_word... " >&6; }
3760if test ${ac_cv_prog_ac_ct_CC+y}
3761then :
3762 printf %s "(cached) " >&6
3763else $as_nop
3764 if test -n "$ac_ct_CC"; then
3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 case $as_dir in #(((
3772 '') as_dir=./ ;;
3773 */) ;;
3774 *) as_dir=$as_dir/ ;;
3775 esac
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_CC="clang"
3779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782done
3783 done
3784IFS=$as_save_IFS
3785
3786fi
3787fi
3788ac_ct_CC=$ac_cv_prog_ac_ct_CC
3789if test -n "$ac_ct_CC"; then
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3791printf "%s\n" "$ac_ct_CC" >&6; }
3792else
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794printf "%s\n" "no" >&6; }
3795fi
3796
3797 if test "x$ac_ct_CC" = x; then
3798 CC=""
3799 else
3800 case $cross_compiling:$ac_tool_warned in
3801yes:)
3802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3803printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3804ac_tool_warned=yes ;;
3805esac
3806 CC=$ac_ct_CC
3807 fi
3808else
3809 CC="$ac_cv_prog_CC"
3810fi
3811
3812fi
3813
3814
3815test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3817as_fn_error $? "no acceptable C compiler found in \$PATH
3818See \`config.log' for more details" "$LINENO" 5; }
3819
3820# Provide some information about the compiler.
3821printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3822set X $ac_compile
3823ac_compiler=$2
3824for ac_option in --version -v -V -qversion -version; do
3825 { { ac_try="$ac_compiler $ac_option >&5"
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831printf "%s\n" "$ac_try_echo"; } >&5
3832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3833 ac_status=$?
3834 if test -s conftest.err; then
3835 sed '10a\
3836... rest of stderr output deleted ...
3837 10q' conftest.err >conftest.er1
3838 cat conftest.er1 >&5
3839 fi
3840 rm -f conftest.er1 conftest.err
3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }
3843done
3844
3845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3846printf %s "checking whether the compiler supports GNU C... " >&6; }
3847if test ${ac_cv_c_compiler_gnu+y}
3848then :
3849 printf %s "(cached) " >&6
3850else $as_nop
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h. */
3853
3854int
3855main (void)
3856{
3857#ifndef __GNUC__
3858 choke me
3859#endif
3860
3861 ;
3862 return 0;
3863}
3864_ACEOF
3865if ac_fn_c_try_compile "$LINENO"
3866then :
3867 ac_compiler_gnu=yes
3868else $as_nop
3869 ac_compiler_gnu=no
3870fi
3871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3872ac_cv_c_compiler_gnu=$ac_compiler_gnu
3873
3874fi
3875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3876printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3877ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879if test $ac_compiler_gnu = yes; then
3880 GCC=yes
3881else
3882 GCC=
3883fi
3884ac_test_CFLAGS=${CFLAGS+y}
3885ac_save_CFLAGS=$CFLAGS
3886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3887printf %s "checking whether $CC accepts -g... " >&6; }
3888if test ${ac_cv_prog_cc_g+y}
3889then :
3890 printf %s "(cached) " >&6
3891else $as_nop
3892 ac_save_c_werror_flag=$ac_c_werror_flag
3893 ac_c_werror_flag=yes
3894 ac_cv_prog_cc_g=no
3895 CFLAGS="-g"
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h. */
3898
3899int
3900main (void)
3901{
3902
3903 ;
3904 return 0;
3905}
3906_ACEOF
3907if ac_fn_c_try_compile "$LINENO"
3908then :
3909 ac_cv_prog_cc_g=yes
3910else $as_nop
3911 CFLAGS=""
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914
3915int
3916main (void)
3917{
3918
3919 ;
3920 return 0;
3921}
3922_ACEOF
3923if ac_fn_c_try_compile "$LINENO"
3924then :
3925
3926else $as_nop
3927 ac_c_werror_flag=$ac_save_c_werror_flag
3928 CFLAGS="-g"
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930/* end confdefs.h. */
3931
3932int
3933main (void)
3934{
3935
3936 ;
3937 return 0;
3938}
3939_ACEOF
3940if ac_fn_c_try_compile "$LINENO"
3941then :
3942 ac_cv_prog_cc_g=yes
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3945fi
3946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3949 ac_c_werror_flag=$ac_save_c_werror_flag
3950fi
3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3952printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3953if test $ac_test_CFLAGS; then
3954 CFLAGS=$ac_save_CFLAGS
3955elif test $ac_cv_prog_cc_g = yes; then
3956 if test "$GCC" = yes; then
3957 CFLAGS="-g -O2"
3958 else
3959 CFLAGS="-g"
3960 fi
3961else
3962 if test "$GCC" = yes; then
3963 CFLAGS="-O2"
3964 else
3965 CFLAGS=
3966 fi
3967fi
3968ac_prog_cc_stdc=no
3969if test x$ac_prog_cc_stdc = xno
3970then :
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3972printf %s "checking for $CC option to enable C11 features... " >&6; }
3973if test ${ac_cv_prog_cc_c11+y}
3974then :
3975 printf %s "(cached) " >&6
3976else $as_nop
3977 ac_cv_prog_cc_c11=no
3978ac_save_CC=$CC
3979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h. */
3981$ac_c_conftest_c11_program
3982_ACEOF
3983for ac_arg in '' -std=gnu11
3984do
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"
3987then :
3988 ac_cv_prog_cc_c11=$ac_arg
3989fi
3990rm -f core conftest.err conftest.$ac_objext conftest.beam
3991 test "x$ac_cv_prog_cc_c11" != "xno" && break
3992done
3993rm -f conftest.$ac_ext
3994CC=$ac_save_CC
3995fi
3996
3997if test "x$ac_cv_prog_cc_c11" = xno
3998then :
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000printf "%s\n" "unsupported" >&6; }
4001else $as_nop
4002 if test "x$ac_cv_prog_cc_c11" = x
4003then :
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4005printf "%s\n" "none needed" >&6; }
4006else $as_nop
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4008printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4009 CC="$CC $ac_cv_prog_cc_c11"
4010fi
4011 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4012 ac_prog_cc_stdc=c11
4013fi
4014fi
4015if test x$ac_prog_cc_stdc = xno
4016then :
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4018printf %s "checking for $CC option to enable C99 features... " >&6; }
4019if test ${ac_cv_prog_cc_c99+y}
4020then :
4021 printf %s "(cached) " >&6
4022else $as_nop
4023 ac_cv_prog_cc_c99=no
4024ac_save_CC=$CC
4025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h. */
4027$ac_c_conftest_c99_program
4028_ACEOF
4029for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4030do
4031 CC="$ac_save_CC $ac_arg"
4032 if ac_fn_c_try_compile "$LINENO"
4033then :
4034 ac_cv_prog_cc_c99=$ac_arg
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.beam
4037 test "x$ac_cv_prog_cc_c99" != "xno" && break
4038done
4039rm -f conftest.$ac_ext
4040CC=$ac_save_CC
4041fi
4042
4043if test "x$ac_cv_prog_cc_c99" = xno
4044then :
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4046printf "%s\n" "unsupported" >&6; }
4047else $as_nop
4048 if test "x$ac_cv_prog_cc_c99" = x
4049then :
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4051printf "%s\n" "none needed" >&6; }
4052else $as_nop
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4054printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4055 CC="$CC $ac_cv_prog_cc_c99"
4056fi
4057 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4058 ac_prog_cc_stdc=c99
4059fi
4060fi
4061if test x$ac_prog_cc_stdc = xno
4062then :
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4064printf %s "checking for $CC option to enable C89 features... " >&6; }
4065if test ${ac_cv_prog_cc_c89+y}
4066then :
4067 printf %s "(cached) " >&6
4068else $as_nop
4069 ac_cv_prog_cc_c89=no
4070ac_save_CC=$CC
4071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072/* end confdefs.h. */
4073$ac_c_conftest_c89_program
4074_ACEOF
4075for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4076do
4077 CC="$ac_save_CC $ac_arg"
4078 if ac_fn_c_try_compile "$LINENO"
4079then :
4080 ac_cv_prog_cc_c89=$ac_arg
4081fi
4082rm -f core conftest.err conftest.$ac_objext conftest.beam
4083 test "x$ac_cv_prog_cc_c89" != "xno" && break
4084done
4085rm -f conftest.$ac_ext
4086CC=$ac_save_CC
4087fi
4088
4089if test "x$ac_cv_prog_cc_c89" = xno
4090then :
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4092printf "%s\n" "unsupported" >&6; }
4093else $as_nop
4094 if test "x$ac_cv_prog_cc_c89" = x
4095then :
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4097printf "%s\n" "none needed" >&6; }
4098else $as_nop
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4100printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4101 CC="$CC $ac_cv_prog_cc_c89"
4102fi
4103 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4104 ac_prog_cc_stdc=c89
4105fi
4106fi
4107
4108ac_ext=c
4109ac_cpp='$CPP $CPPFLAGS'
4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
4114
4115ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4116if test "x$ac_cv_header_stdint_h" = xyes
4117then :
4118 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
4119
4120fi
4121ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
4122if test "x$ac_cv_header_sys_syscall_h" = xyes
4123then :
4124 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
4125
4126fi
4127ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
4128if test "x$ac_cv_header_sys_prctl_h" = xyes
4129then :
4130 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
4131
4132fi
4133
4134
4135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
4136printf %s "checking for library containing pthread_create... " >&6; }
4137if test ${ac_cv_search_pthread_create+y}
4138then :
4139 printf %s "(cached) " >&6
4140else $as_nop
2546 ac_func_search_save_LIBS=$LIBS 4141 ac_func_search_save_LIBS=$LIBS
2547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548/* end confdefs.h. */ 4143/* end confdefs.h. */
2549 4144
2550/* Override any GCC internal prototype to avoid an error. 4145/* Override any GCC internal prototype to avoid an error.
2551 Use char because int might match the return type of a GCC 4146 Use char because int might match the return type of a GCC
2552 builtin and then its argument prototype would still apply. */ 4147 builtin and then its argument prototype would still apply. */
2553#ifdef __cplusplus
2554extern "C"
2555#endif
2556char pthread_create (); 4148char pthread_create ();
2557int 4149int
2558main () 4150main (void)
2559{ 4151{
2560return pthread_create (); 4152return pthread_create ();
2561 ; 4153 ;
2562 return 0; 4154 return 0;
2563} 4155}
2564_ACEOF 4156_ACEOF
2565for ac_lib in '' pthread pthreads pthreadVC2; do 4157for ac_lib in '' pthread pthreads pthreadVC2
4158do
2566 if test -z "$ac_lib"; then 4159 if test -z "$ac_lib"; then
2567 ac_res="none required" 4160 ac_res="none required"
2568 else 4161 else
2569 ac_res=-l$ac_lib 4162 ac_res=-l$ac_lib
2570 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2571 fi 4164 fi
2572 if ac_fn_c_try_link "$LINENO"; then : 4165 if ac_fn_c_try_link "$LINENO"
4166then :
2573 ac_cv_search_pthread_create=$ac_res 4167 ac_cv_search_pthread_create=$ac_res
2574fi 4168fi
2575rm -f core conftest.err conftest.$ac_objext \ 4169rm -f core conftest.err conftest.$ac_objext conftest.beam \
2576 conftest$ac_exeext 4170 conftest$ac_exeext
2577 if test "${ac_cv_search_pthread_create+set}" = set; then : 4171 if test ${ac_cv_search_pthread_create+y}
4172then :
2578 break 4173 break
2579fi 4174fi
2580done 4175done
2581if test "${ac_cv_search_pthread_create+set}" = set; then : 4176if test ${ac_cv_search_pthread_create+y}
4177then :
2582 4178
2583else 4179else $as_nop
2584 ac_cv_search_pthread_create=no 4180 ac_cv_search_pthread_create=no
2585fi 4181fi
2586rm conftest.$ac_ext 4182rm conftest.$ac_ext
2587LIBS=$ac_func_search_save_LIBS 4183LIBS=$ac_func_search_save_LIBS
2588fi 4184fi
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 4185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
2590$as_echo "$ac_cv_search_pthread_create" >&6; } 4186printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
2591ac_res=$ac_cv_search_pthread_create 4187ac_res=$ac_cv_search_pthread_create
2592if test "$ac_res" != no; then : 4188if test "$ac_res" != no
4189then :
2593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2594 4191
2595else 4192else $as_nop
2596 as_fn_error $? "pthread functions not found" "$LINENO" 5 4193 as_fn_error $? "pthread functions not found" "$LINENO" 5
2597 4194
2598fi 4195fi
2599 4196
2600 4197
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 4198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5
2602$as_echo_n "checking for utimes... " >&6; } 4199printf %s "checking for utimes... " >&6; }
2603if test "${ac_cv_utimes+set}" = set; then : 4200if test ${ac_cv_utimes+y}
2604 $as_echo_n "(cached) " >&6 4201then :
2605else 4202 printf %s "(cached) " >&6
4203else $as_nop
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h. */ 4205/* end confdefs.h. */
2608 4206
2609#include <sys/types.h> 4207#include <sys/types.h>
2610#include <sys/time.h> 4208#include <sys/time.h>
2616 res = utimes ("/", tv); 4214 res = utimes ("/", tv);
2617 return 0; 4215 return 0;
2618} 4216}
2619 4217
2620_ACEOF 4218_ACEOF
2621if ac_fn_c_try_link "$LINENO"; then : 4219if ac_fn_c_try_link "$LINENO"
4220then :
2622 ac_cv_utimes=yes 4221 ac_cv_utimes=yes
2623else 4222else $as_nop
2624 ac_cv_utimes=no 4223 ac_cv_utimes=no
2625fi 4224fi
2626rm -f core conftest.err conftest.$ac_objext \ 4225rm -f core conftest.err conftest.$ac_objext conftest.beam \
2627 conftest$ac_exeext conftest.$ac_ext 4226 conftest$ac_exeext conftest.$ac_ext
2628fi 4227fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 4228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5
2630$as_echo "$ac_cv_utimes" >&6; } 4229printf "%s\n" "$ac_cv_utimes" >&6; }
2631test $ac_cv_utimes = yes && 4230test $ac_cv_utimes = yes &&
2632$as_echo "#define HAVE_UTIMES 1" >>confdefs.h 4231printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
2633 4232
2634 4233
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 4234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5
2636$as_echo_n "checking for futimes... " >&6; } 4235printf %s "checking for futimes... " >&6; }
2637if test "${ac_cv_futimes+set}" = set; then : 4236if test ${ac_cv_futimes+y}
2638 $as_echo_n "(cached) " >&6 4237then :
2639else 4238 printf %s "(cached) " >&6
4239else $as_nop
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641/* end confdefs.h. */ 4241/* end confdefs.h. */
2642 4242
2643#include <sys/types.h> 4243#include <sys/types.h>
2644#include <sys/time.h> 4244#include <sys/time.h>
2651 res = futimes (fd, tv); 4251 res = futimes (fd, tv);
2652 return 0; 4252 return 0;
2653} 4253}
2654 4254
2655_ACEOF 4255_ACEOF
2656if ac_fn_c_try_link "$LINENO"; then : 4256if ac_fn_c_try_link "$LINENO"
4257then :
2657 ac_cv_futimes=yes 4258 ac_cv_futimes=yes
2658else 4259else $as_nop
2659 ac_cv_futimes=no 4260 ac_cv_futimes=no
2660fi 4261fi
2661rm -f core conftest.err conftest.$ac_objext \ 4262rm -f core conftest.err conftest.$ac_objext conftest.beam \
2662 conftest$ac_exeext conftest.$ac_ext 4263 conftest$ac_exeext conftest.$ac_ext
2663fi 4264fi
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5
2665$as_echo "$ac_cv_futimes" >&6; } 4266printf "%s\n" "$ac_cv_futimes" >&6; }
2666test $ac_cv_futimes = yes && 4267test $ac_cv_futimes = yes &&
2667$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h 4268printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
2668 4269
2669 4270
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 4271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5
2671$as_echo_n "checking for readahead... " >&6; } 4272printf %s "checking for readahead... " >&6; }
2672if test "${ac_cv_readahead+set}" = set; then : 4273if test ${ac_cv_readahead+y}
2673 $as_echo_n "(cached) " >&6 4274then :
2674else 4275 printf %s "(cached) " >&6
4276else $as_nop
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676/* end confdefs.h. */ 4278/* end confdefs.h. */
2677 4279
4280#include <sys/types.h>
2678#include <fcntl.h> 4281#include <fcntl.h>
2679int main (void) 4282int main (void)
2680{ 4283{
2681 int fd = 0; 4284 int fd = 0;
2682 size_t count = 2; 4285 size_t count = 2;
2684 res = readahead (fd, 0, count); 4287 res = readahead (fd, 0, count);
2685 return 0; 4288 return 0;
2686} 4289}
2687 4290
2688_ACEOF 4291_ACEOF
2689if ac_fn_c_try_link "$LINENO"; then : 4292if ac_fn_c_try_link "$LINENO"
4293then :
2690 ac_cv_readahead=yes 4294 ac_cv_readahead=yes
2691else 4295else $as_nop
2692 ac_cv_readahead=no 4296 ac_cv_readahead=no
2693fi 4297fi
2694rm -f core conftest.err conftest.$ac_objext \ 4298rm -f core conftest.err conftest.$ac_objext conftest.beam \
2695 conftest$ac_exeext conftest.$ac_ext 4299 conftest$ac_exeext conftest.$ac_ext
2696fi 4300fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5
2698$as_echo "$ac_cv_readahead" >&6; } 4302printf "%s\n" "$ac_cv_readahead" >&6; }
2699test $ac_cv_readahead = yes && 4303test $ac_cv_readahead = yes &&
2700$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h 4304printf "%s\n" "#define HAVE_READAHEAD 1" >>confdefs.h
2701 4305
2702 4306
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 4307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
2704$as_echo_n "checking for fdatasync... " >&6; } 4308printf %s "checking for fdatasync... " >&6; }
2705if test "${ac_cv_fdatasync+set}" = set; then : 4309if test ${ac_cv_fdatasync+y}
2706 $as_echo_n "(cached) " >&6 4310then :
2707else 4311 printf %s "(cached) " >&6
4312else $as_nop
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */ 4314/* end confdefs.h. */
2710 4315
2711#include <unistd.h> 4316#include <unistd.h>
2712int main (void) 4317int main (void)
2715 fdatasync (fd); 4320 fdatasync (fd);
2716 return 0; 4321 return 0;
2717} 4322}
2718 4323
2719_ACEOF 4324_ACEOF
2720if ac_fn_c_try_link "$LINENO"; then : 4325if ac_fn_c_try_link "$LINENO"
4326then :
2721 ac_cv_fdatasync=yes 4327 ac_cv_fdatasync=yes
2722else 4328else $as_nop
2723 ac_cv_fdatasync=no 4329 ac_cv_fdatasync=no
2724fi 4330fi
2725rm -f core conftest.err conftest.$ac_objext \ 4331rm -f core conftest.err conftest.$ac_objext conftest.beam \
2726 conftest$ac_exeext conftest.$ac_ext 4332 conftest$ac_exeext conftest.$ac_ext
2727fi 4333fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 4334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5
2729$as_echo "$ac_cv_fdatasync" >&6; } 4335printf "%s\n" "$ac_cv_fdatasync" >&6; }
2730test $ac_cv_fdatasync = yes && 4336test $ac_cv_fdatasync = yes &&
2731$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 4337printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
2732 4338
2733 4339
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread and pwrite" >&5
2735$as_echo_n "checking for pread and pwrite... " >&6; }
2736if test "${ac_cv_preadwrite+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738else
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741
2742#include <unistd.h>
2743int main (void)
2744{
2745 int fd = 0;
2746 size_t count = 1;
2747 char buf;
2748 off_t offset = 1;
2749 ssize_t res;
2750 res = pread (fd, &buf, count, offset);
2751 res = pwrite (fd, &buf, count, offset);
2752 return 0;
2753}
2754
2755_ACEOF
2756if ac_fn_c_try_link "$LINENO"; then :
2757 ac_cv_preadwrite=yes
2758else
2759 ac_cv_preadwrite=no
2760fi
2761rm -f core conftest.err conftest.$ac_objext \
2762 conftest$ac_exeext conftest.$ac_ext
2763fi
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_preadwrite" >&5
2765$as_echo "$ac_cv_preadwrite" >&6; }
2766test $ac_cv_preadwrite = yes &&
2767$as_echo "#define HAVE_PREADWRITE 1" >>confdefs.h
2768
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 4340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5
2771$as_echo_n "checking for sendfile... " >&6; } 4341printf %s "checking for sendfile... " >&6; }
2772if test "${ac_cv_sendfile+set}" = set; then : 4342if test ${ac_cv_sendfile+y}
2773 $as_echo_n "(cached) " >&6 4343then :
2774else 4344 printf %s "(cached) " >&6
4345else $as_nop
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776/* end confdefs.h. */ 4347/* end confdefs.h. */
2777 4348
2778# include <sys/types.h> 4349# include <sys/types.h>
2779#if __linux 4350#if __linux
2791 int fd = 0; 4362 int fd = 0;
2792 off_t offset = 1; 4363 off_t offset = 1;
2793 size_t count = 2; 4364 size_t count = 2;
2794 ssize_t res; 4365 ssize_t res;
2795#if __linux 4366#if __linux
2796 res = sendfile (fd, fd, offset, count); 4367 res = sendfile (fd, fd, &offset, count);
2797#elif __FreeBSD__ 4368#elif __FreeBSD__
2798 res = sendfile (fd, fd, offset, count, 0, &offset, 0); 4369 res = sendfile (fd, fd, offset, count, 0, &offset, 0);
2799#elif __hpux 4370#elif __hpux
2800 res = sendfile (fd, fd, offset, count, 0, 0); 4371 res = sendfile (fd, fd, offset, count, 0, 0);
2801#endif 4372#endif
2802 return 0; 4373 return 0;
2803} 4374}
2804 4375
2805_ACEOF 4376_ACEOF
2806if ac_fn_c_try_link "$LINENO"; then : 4377if ac_fn_c_try_link "$LINENO"
4378then :
2807 ac_cv_sendfile=yes 4379 ac_cv_sendfile=yes
2808else 4380else $as_nop
2809 ac_cv_sendfile=no 4381 ac_cv_sendfile=no
2810fi 4382fi
2811rm -f core conftest.err conftest.$ac_objext \ 4383rm -f core conftest.err conftest.$ac_objext conftest.beam \
2812 conftest$ac_exeext conftest.$ac_ext 4384 conftest$ac_exeext conftest.$ac_ext
2813fi 4385fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5
2815$as_echo "$ac_cv_sendfile" >&6; } 4387printf "%s\n" "$ac_cv_sendfile" >&6; }
2816test $ac_cv_sendfile = yes && 4388test $ac_cv_sendfile = yes &&
2817$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h 4389printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
2818 4390
2819 4391
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 4392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5
2821$as_echo_n "checking for sync_file_range... " >&6; } 4393printf %s "checking for sync_file_range... " >&6; }
2822if test "${ac_cv_sync_file_range+set}" = set; then : 4394if test ${ac_cv_sync_file_range+y}
2823 $as_echo_n "(cached) " >&6 4395then :
2824else 4396 printf %s "(cached) " >&6
4397else $as_nop
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826/* end confdefs.h. */ 4399/* end confdefs.h. */
2827 4400
4401#include <sys/types.h>
2828#include <fcntl.h> 4402#include <fcntl.h>
2829int main (void) 4403int main (void)
2830{ 4404{
2831 int fd = 0; 4405 int fd = 0;
2832 off64_t offset = 1; 4406 off64_t offset = 1;
2836 res = sync_file_range (fd, offset, nbytes, flags); 4410 res = sync_file_range (fd, offset, nbytes, flags);
2837 return 0; 4411 return 0;
2838} 4412}
2839 4413
2840_ACEOF 4414_ACEOF
2841if ac_fn_c_try_link "$LINENO"; then : 4415if ac_fn_c_try_link "$LINENO"
4416then :
2842 ac_cv_sync_file_range=yes 4417 ac_cv_sync_file_range=yes
2843else 4418else $as_nop
2844 ac_cv_sync_file_range=no 4419 ac_cv_sync_file_range=no
2845fi 4420fi
2846rm -f core conftest.err conftest.$ac_objext \ 4421rm -f core conftest.err conftest.$ac_objext conftest.beam \
2847 conftest$ac_exeext conftest.$ac_ext 4422 conftest$ac_exeext conftest.$ac_ext
2848fi 4423fi
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5
2850$as_echo "$ac_cv_sync_file_range" >&6; } 4425printf "%s\n" "$ac_cv_sync_file_range" >&6; }
2851test $ac_cv_sync_file_range = yes && 4426test $ac_cv_sync_file_range = yes &&
2852$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h 4427printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
2853 4428
2854 4429
4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4431printf %s "checking for copy_file_range... " >&6; }
4432if test ${ac_cv_copy_file_range+y}
4433then :
4434 printf %s "(cached) " >&6
4435else $as_nop
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h. */
2855 4438
4439#include <unistd.h>
4440int main (void)
4441{
4442 off64_t o1, o2;
4443 int res = copy_file_range (0, &o1, 1, &o2, 99, 0);
4444 return 0;
4445}
2856 4446
4447_ACEOF
4448if ac_fn_c_try_link "$LINENO"
4449then :
4450 ac_cv_copy_file_range=yes
4451else $as_nop
4452 ac_cv_copy_file_range=no
4453fi
4454rm -f core conftest.err conftest.$ac_objext conftest.beam \
4455 conftest$ac_exeext conftest.$ac_ext
4456fi
4457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5
4458printf "%s\n" "$ac_cv_copy_file_range" >&6; }
4459test $ac_cv_copy_file_range = yes &&
4460printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
4461
4462
4463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
4464printf %s "checking for fallocate... " >&6; }
4465if test ${ac_cv_linux_fallocate+y}
4466then :
4467 printf %s "(cached) " >&6
4468else $as_nop
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470/* end confdefs.h. */
4471
4472#include <fcntl.h>
4473int main (void)
4474{
4475 int fd = 0;
4476 int mode = 0;
4477 off_t offset = 1;
4478 off_t len = 1;
4479 int res;
4480 res = fallocate (fd, mode, offset, len);
4481 return 0;
4482}
4483
4484_ACEOF
4485if ac_fn_c_try_link "$LINENO"
4486then :
4487 ac_cv_linux_fallocate=yes
4488else $as_nop
4489 ac_cv_linux_fallocate=no
4490fi
4491rm -f core conftest.err conftest.$ac_objext conftest.beam \
4492 conftest$ac_exeext conftest.$ac_ext
4493fi
4494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5
4495printf "%s\n" "$ac_cv_linux_fallocate" >&6; }
4496test $ac_cv_linux_fallocate = yes &&
4497printf "%s\n" "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h
4498
4499
4500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5
4501printf %s "checking for sys_syncfs... " >&6; }
4502if test ${ac_cv_sys_syncfs+y}
4503then :
4504 printf %s "(cached) " >&6
4505else $as_nop
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h. */
4508
4509#include <unistd.h>
4510#include <sys/syscall.h>
4511int main (void)
4512{
4513 int res = syscall (__NR_syncfs, (int)0);
4514}
4515
4516_ACEOF
4517if ac_fn_c_try_link "$LINENO"
4518then :
4519 ac_cv_sys_syncfs=yes
4520else $as_nop
4521 ac_cv_sys_syncfs=no
4522fi
4523rm -f core conftest.err conftest.$ac_objext conftest.beam \
4524 conftest$ac_exeext conftest.$ac_ext
4525fi
4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5
4527printf "%s\n" "$ac_cv_sys_syncfs" >&6; }
4528test $ac_cv_sys_syncfs = yes &&
4529printf "%s\n" "#define HAVE_SYS_SYNCFS 1" >>confdefs.h
4530
4531
4532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5
4533printf %s "checking for prctl_set_name... " >&6; }
4534if test ${ac_cv_prctl_set_name+y}
4535then :
4536 printf %s "(cached) " >&6
4537else $as_nop
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h. */
4540
4541#include <sys/prctl.h>
4542int main (void)
4543{
4544 char *name = "test123";
4545 int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0);
4546}
4547
4548_ACEOF
4549if ac_fn_c_try_link "$LINENO"
4550then :
4551 ac_cv_prctl_set_name=yes
4552else $as_nop
4553 ac_cv_prctl_set_name=no
4554fi
4555rm -f core conftest.err conftest.$ac_objext conftest.beam \
4556 conftest$ac_exeext conftest.$ac_ext
4557fi
4558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5
4559printf "%s\n" "$ac_cv_prctl_set_name" >&6; }
4560test $ac_cv_prctl_set_name = yes &&
4561printf "%s\n" "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
4562
4563
4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5
4565printf %s "checking for posix_close... " >&6; }
4566if test ${ac_cv_posix_close+y}
4567then :
4568 printf %s "(cached) " >&6
4569else $as_nop
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h. */
4572
4573#include <unistd.h>
4574int res;
4575int main (void)
4576{
4577 res = posix_close (0, 0); /* we do not need any flags */
4578 return 0;
4579}
4580
4581_ACEOF
4582if ac_fn_c_try_link "$LINENO"
4583then :
4584 ac_cv_posix_close=yes
4585else $as_nop
4586 ac_cv_posix_close=no
4587fi
4588rm -f core conftest.err conftest.$ac_objext conftest.beam \
4589 conftest$ac_exeext conftest.$ac_ext
4590fi
4591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5
4592printf "%s\n" "$ac_cv_posix_close" >&6; }
4593test $ac_cv_posix_close = yes &&
4594printf "%s\n" "#define HAVE_POSIX_CLOSE 1" >>confdefs.h
4595
4596
4597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5
4598printf %s "checking for renameat2... " >&6; }
4599if test ${ac_cv_renameat2+y}
4600then :
4601 printf %s "(cached) " >&6
4602else $as_nop
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h. */
4605
4606#include <unistd.h>
4607#include <sys/syscall.h>
4608#include <linux/fs.h>
4609int res;
4610int main (void)
4611{
4612 res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE);
4613 return 0;
4614}
4615
4616_ACEOF
4617if ac_fn_c_try_link "$LINENO"
4618then :
4619 ac_cv_renameat2=yes
4620else $as_nop
4621 ac_cv_renameat2=no
4622fi
4623rm -f core conftest.err conftest.$ac_objext conftest.beam \
4624 conftest$ac_exeext conftest.$ac_ext
4625fi
4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5
4627printf "%s\n" "$ac_cv_renameat2" >&6; }
4628test $ac_cv_renameat2 = yes &&
4629printf "%s\n" "#define HAVE_RENAMEAT2 1" >>confdefs.h
4630
4631
4632
4633
4634# for these to work, you need to run autoheader in IO::AIO, not libeio :(
4635
4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5
4637printf %s "checking for set/getrlimit... " >&6; }
4638if test ${ac_cv_rlimits+y}
4639then :
4640 printf %s "(cached) " >&6
4641else $as_nop
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h. */
4644
4645#include <sys/time.h>
4646#include <sys/resource.h>
4647int main (void)
4648{
4649 struct rlimit srl;
4650 int res;
4651 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY;
4652 res = getrlimit (RLIMIT_NOFILE, &srl);
4653 res = setrlimit (RLIMIT_NOFILE, &srl);
4654 return 0;
4655}
4656
4657_ACEOF
4658if ac_fn_c_try_link "$LINENO"
4659then :
4660 ac_cv_rlimits=yes
4661else $as_nop
4662 ac_cv_rlimits=no
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.beam \
4665 conftest$ac_exeext conftest.$ac_ext
4666fi
4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5
4668printf "%s\n" "$ac_cv_rlimits" >&6; }
4669test $ac_cv_rlimits = yes &&
4670printf "%s\n" "#define HAVE_RLIMITS 1" >>confdefs.h
4671
4672
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 4673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
2858$as_echo_n "checking for posix_madvise... " >&6; } 4674printf %s "checking for posix_madvise... " >&6; }
2859if test "${ac_cv_posix_madvise+set}" = set; then : 4675if test ${ac_cv_posix_madvise+y}
2860 $as_echo_n "(cached) " >&6 4676then :
2861else 4677 printf %s "(cached) " >&6
4678else $as_nop
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h. */ 4680/* end confdefs.h. */
2864 4681
2865#include <sys/mman.h> 4682#include <sys/mman.h>
2866int main (void) 4683int main (void)
2872 int d = POSIX_MADV_DONTNEED; 4689 int d = POSIX_MADV_DONTNEED;
2873 return 0; 4690 return 0;
2874} 4691}
2875 4692
2876_ACEOF 4693_ACEOF
2877if ac_fn_c_try_link "$LINENO"; then : 4694if ac_fn_c_try_link "$LINENO"
4695then :
2878 ac_cv_posix_madvise=yes 4696 ac_cv_posix_madvise=yes
2879else 4697else $as_nop
2880 ac_cv_posix_madvise=no 4698 ac_cv_posix_madvise=no
2881fi 4699fi
2882rm -f core conftest.err conftest.$ac_objext \ 4700rm -f core conftest.err conftest.$ac_objext conftest.beam \
2883 conftest$ac_exeext conftest.$ac_ext 4701 conftest$ac_exeext conftest.$ac_ext
2884fi 4702fi
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5
2886$as_echo "$ac_cv_posix_madvise" >&6; } 4704printf "%s\n" "$ac_cv_posix_madvise" >&6; }
2887test $ac_cv_posix_madvise = yes && 4705test $ac_cv_posix_madvise = yes &&
2888$as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h 4706printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>confdefs.h
2889 4707
2890 4708
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
2892$as_echo_n "checking for posix_fadvise... " >&6; } 4710printf %s "checking for posix_fadvise... " >&6; }
2893if test "${ac_cv_posix_fadvise+set}" = set; then : 4711if test ${ac_cv_posix_fadvise+y}
2894 $as_echo_n "(cached) " >&6 4712then :
2895else 4713 printf %s "(cached) " >&6
4714else $as_nop
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h. */ 4716/* end confdefs.h. */
2898 4717
2899#define _XOPEN_SOURCE 600 4718#define _XOPEN_SOURCE 600
2900#include <fcntl.h> 4719#include <fcntl.h>
2908 int e = POSIX_FADV_DONTNEED; 4727 int e = POSIX_FADV_DONTNEED;
2909 return 0; 4728 return 0;
2910} 4729}
2911 4730
2912_ACEOF 4731_ACEOF
2913if ac_fn_c_try_link "$LINENO"; then : 4732if ac_fn_c_try_link "$LINENO"
4733then :
2914 ac_cv_posix_fadvise=yes 4734 ac_cv_posix_fadvise=yes
2915else 4735else $as_nop
2916 ac_cv_posix_fadvise=no 4736 ac_cv_posix_fadvise=no
2917fi 4737fi
2918rm -f core conftest.err conftest.$ac_objext \ 4738rm -f core conftest.err conftest.$ac_objext conftest.beam \
2919 conftest$ac_exeext conftest.$ac_ext 4739 conftest$ac_exeext conftest.$ac_ext
2920fi 4740fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5
2922$as_echo "$ac_cv_posix_fadvise" >&6; } 4742printf "%s\n" "$ac_cv_posix_fadvise" >&6; }
2923test $ac_cv_posix_fadvise = yes && 4743test $ac_cv_posix_fadvise = yes &&
2924$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 4744printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
4745
4746
4747ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4748if test "x$ac_cv_header_linux_fs_h" = xyes
4749then :
4750 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
4751
4752fi
4753ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
4754if test "x$ac_cv_header_linux_fiemap_h" = xyes
4755then :
4756 printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h
4757
4758fi
4759
4760
4761ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4762if test "x$ac_cv_header_sys_sysmacros_h" = xyes
4763then :
4764 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
4765
4766fi
4767
4768
4769ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4770if test "x$ac_cv_header_sys_mkdev_h" = xyes
4771then :
4772 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
4773
4774fi
4775
4776
4777ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4778if test "x$ac_cv_header_sys_uio_h" = xyes
4779then :
4780 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
4781
4782fi
4783
4784
4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fexecve" >&5
4786printf %s "checking for fexecve... " >&6; }
4787if test ${ac_cv_fexecve+y}
4788then :
4789 printf %s "(cached) " >&6
4790else $as_nop
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792/* end confdefs.h. */
4793
4794#include <fcntl.h>
4795#include <unistd.h>
4796int main (void)
4797{
4798 char *const argv[] = { "foo", "bar", 0 };
4799 int res = fexecve (-1, argv, 0);
4800 return 0;
4801}
4802
4803_ACEOF
4804if ac_fn_c_try_link "$LINENO"
4805then :
4806 ac_cv_fexecve=yes
4807else $as_nop
4808 ac_cv_fexecve=no
4809fi
4810rm -f core conftest.err conftest.$ac_objext conftest.beam \
4811 conftest$ac_exeext conftest.$ac_ext
4812fi
4813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fexecve" >&5
4814printf "%s\n" "$ac_cv_fexecve" >&6; }
4815test $ac_cv_fexecve = yes &&
4816printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h
4817
4818
4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5
4820printf %s "checking for siginfo_t... " >&6; }
4821if test ${ac_cv_siginfo_t+y}
4822then :
4823 printf %s "(cached) " >&6
4824else $as_nop
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827
4828#include <signal.h>
4829int main (void)
4830{
4831 siginfo_t si;
4832 si.si_code;
4833 si.si_pid;
4834 si.si_uid;
4835 si.si_value.sival_int;
4836 si.si_value.sival_ptr;
4837 return 0;
4838}
4839
4840_ACEOF
4841if ac_fn_c_try_link "$LINENO"
4842then :
4843 ac_cv_siginfo_t=yes
4844else $as_nop
4845 ac_cv_siginfo_t=no
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.beam \
4848 conftest$ac_exeext conftest.$ac_ext
4849fi
4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_siginfo_t" >&5
4851printf "%s\n" "$ac_cv_siginfo_t" >&6; }
4852test $ac_cv_siginfo_t = yes &&
4853printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h
4854
4855
4856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-style syscall interface" >&5
4857printf %s "checking for unix-style syscall interface... " >&6; }
4858if test ${ac_cv_syscall+y}
4859then :
4860 printf %s "(cached) " >&6
4861else $as_nop
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h. */
4864
4865#include <unistd.h>
4866#include <sys/syscall.h>
4867int main (void)
4868{
4869 long res = syscall (SYS_exit, 0);
4870 return 0;
4871}
4872
4873_ACEOF
4874if ac_fn_c_try_link "$LINENO"
4875then :
4876 ac_cv_syscall=yes
4877else $as_nop
4878 ac_cv_syscall=no
4879fi
4880rm -f core conftest.err conftest.$ac_objext conftest.beam \
4881 conftest$ac_exeext conftest.$ac_ext
4882fi
4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_syscall" >&5
4884printf "%s\n" "$ac_cv_syscall" >&6; }
4885test $ac_cv_syscall = yes &&
4886printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h
4887
4888
4889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5
4890printf %s "checking for splice, vmsplice and tee... " >&6; }
4891if test ${ac_cv_linux_splice+y}
4892then :
4893 printf %s "(cached) " >&6
4894else $as_nop
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h. */
4897
4898#include <sys/types.h>
4899#include <fcntl.h>
4900#include <sys/uio.h>
4901int main (void)
4902{
4903 ssize_t res;
4904 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
4905 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
4906 res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT);
4907 return 0;
4908}
4909
4910_ACEOF
4911if ac_fn_c_try_link "$LINENO"
4912then :
4913 ac_cv_linux_splice=yes
4914else $as_nop
4915 ac_cv_linux_splice=no
4916fi
4917rm -f core conftest.err conftest.$ac_objext conftest.beam \
4918 conftest$ac_exeext conftest.$ac_ext
4919fi
4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5
4921printf "%s\n" "$ac_cv_linux_splice" >&6; }
4922test $ac_cv_linux_splice = yes &&
4923printf "%s\n" "#define HAVE_LINUX_SPLICE 1" >>confdefs.h
4924
4925
4926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5
4927printf %s "checking for pipe2... " >&6; }
4928if test ${ac_cv_pipe2+y}
4929then :
4930 printf %s "(cached) " >&6
4931else $as_nop
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h. */
4934
4935#include <fcntl.h>
4936#include <unistd.h>
4937int main (void)
4938{
4939 int res;
4940 res = pipe2 (0, 0);
4941 return 0;
4942}
4943
4944_ACEOF
4945if ac_fn_c_try_link "$LINENO"
4946then :
4947 ac_cv_pipe2=yes
4948else $as_nop
4949 ac_cv_pipe2=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.beam \
4952 conftest$ac_exeext conftest.$ac_ext
4953fi
4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5
4955printf "%s\n" "$ac_cv_pipe2" >&6; }
4956test $ac_cv_pipe2 = yes &&
4957printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
4958
4959
4960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
4961printf %s "checking for eventfd... " >&6; }
4962if test ${ac_cv_eventfd+y}
4963then :
4964 printf %s "(cached) " >&6
4965else $as_nop
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h. */
4968
4969#include <sys/eventfd.h>
4970int main (void)
4971{
4972 int res;
4973 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4974 return 0;
4975}
4976
4977_ACEOF
4978if ac_fn_c_try_link "$LINENO"
4979then :
4980 ac_cv_eventfd=yes
4981else $as_nop
4982 ac_cv_eventfd=no
4983fi
4984rm -f core conftest.err conftest.$ac_objext conftest.beam \
4985 conftest$ac_exeext conftest.$ac_ext
4986fi
4987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5
4988printf "%s\n" "$ac_cv_eventfd" >&6; }
4989test $ac_cv_eventfd = yes &&
4990printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
4991
4992
4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5
4994printf %s "checking for timerfd_*... " >&6; }
4995if test ${ac_cv_timerfd+y}
4996then :
4997 printf %s "(cached) " >&6
4998else $as_nop
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h. */
5001
5002#include <sys/timerfd.h>
5003int main (void)
5004{
5005 struct itimerspec its;
5006 int res;
5007 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
5008 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
5009 res = timerfd_gettime (res, &its);
5010 return 0;
5011}
5012
5013_ACEOF
5014if ac_fn_c_try_link "$LINENO"
5015then :
5016 ac_cv_timerfd=yes
5017else $as_nop
5018 ac_cv_timerfd=no
5019fi
5020rm -f core conftest.err conftest.$ac_objext conftest.beam \
5021 conftest$ac_exeext conftest.$ac_ext
5022fi
5023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5
5024printf "%s\n" "$ac_cv_timerfd" >&6; }
5025test $ac_cv_timerfd = yes &&
5026printf "%s\n" "#define HAVE_TIMERFD 1" >>confdefs.h
5027
5028
5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
5030printf %s "checking for memfd_create... " >&6; }
5031if test ${ac_cv_memfd_create+y}
5032then :
5033 printf %s "(cached) " >&6
5034else $as_nop
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h. */
5037
5038#include <sys/mman.h>
5039int main (void)
5040{
5041 int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING);
5042 return 0;
5043}
5044
5045_ACEOF
5046if ac_fn_c_try_link "$LINENO"
5047then :
5048 ac_cv_memfd_create=yes
5049else $as_nop
5050 ac_cv_memfd_create=no
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.beam \
5053 conftest$ac_exeext conftest.$ac_ext
5054fi
5055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5
5056printf "%s\n" "$ac_cv_memfd_create" >&6; }
5057test $ac_cv_memfd_create = yes &&
5058printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
5059
5060
5061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5
5062printf %s "checking for st_xtimensec... " >&6; }
5063if test ${ac_cv_xtimensec+y}
5064then :
5065 printf %s "(cached) " >&6
5066else $as_nop
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h. */
5069
5070#include "EXTERN.h"
5071#include "perl.h"
5072#include "XSUB.h"
5073
5074int main (void)
5075{
5076 return PL_statcache.st_atimensec
5077 + PL_statcache.st_mtimensec
5078 + PL_statcache.st_ctimensec;
5079}
5080
5081_ACEOF
5082if ac_fn_c_try_compile "$LINENO"
5083then :
5084 ac_cv_xtimensec=yes
5085else $as_nop
5086 ac_cv_xtimensec=no
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5089fi
5090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5
5091printf "%s\n" "$ac_cv_xtimensec" >&6; }
5092test $ac_cv_xtimensec = yes &&
5093printf "%s\n" "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h
5094
5095
5096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5
5097printf %s "checking for st_xtimespec... " >&6; }
5098if test ${ac_cv_xtimespec+y}
5099then :
5100 printf %s "(cached) " >&6
5101else $as_nop
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103/* end confdefs.h. */
5104
5105#include "EXTERN.h"
5106#include "perl.h"
5107#include "XSUB.h"
5108
5109int main (void)
5110{
5111 return PL_statcache.st_atim.tv_nsec
5112 + PL_statcache.st_mtim.tv_nsec
5113 + PL_statcache.st_ctim.tv_nsec;
5114}
5115
5116_ACEOF
5117if ac_fn_c_try_compile "$LINENO"
5118then :
5119 ac_cv_xtimespec=yes
5120else $as_nop
5121 ac_cv_xtimespec=no
5122fi
5123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5124fi
5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5
5126printf "%s\n" "$ac_cv_xtimespec" >&6; }
5127test $ac_cv_xtimespec = yes &&
5128printf "%s\n" "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
5129
5130
5131# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
5132
5133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5
5134printf %s "checking for st_birthtimensec... " >&6; }
5135if test ${ac_cv_birthtimensec+y}
5136then :
5137 printf %s "(cached) " >&6
5138else $as_nop
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140/* end confdefs.h. */
5141
5142#include "EXTERN.h"
5143#include "perl.h"
5144#include "XSUB.h"
5145
5146int main (void)
5147{
5148 return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
5149}
5150
5151_ACEOF
5152if ac_fn_c_try_compile "$LINENO"
5153then :
5154 ac_cv_birthtimensec=yes
5155else $as_nop
5156 ac_cv_birthtimensec=no
5157fi
5158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5159fi
5160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5
5161printf "%s\n" "$ac_cv_birthtimensec" >&6; }
5162test $ac_cv_birthtimensec = yes &&
5163printf "%s\n" "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h
5164
5165
5166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5
5167printf %s "checking for st_birthtimespec... " >&6; }
5168if test ${ac_cv_birthtimespec+y}
5169then :
5170 printf %s "(cached) " >&6
5171else $as_nop
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h. */
5174
5175#include "EXTERN.h"
5176#include "perl.h"
5177#include "XSUB.h"
5178
5179int main (void)
5180{
5181 return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
5182}
5183
5184_ACEOF
5185if ac_fn_c_try_compile "$LINENO"
5186then :
5187 ac_cv_birthtimespec=yes
5188else $as_nop
5189 ac_cv_birthtimespec=no
5190fi
5191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5192fi
5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5
5194printf "%s\n" "$ac_cv_birthtimespec" >&6; }
5195test $ac_cv_birthtimespec = yes &&
5196printf "%s\n" "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h
5197
5198
5199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5
5200printf %s "checking for st_gen... " >&6; }
5201if test ${ac_cv_st_gen+y}
5202then :
5203 printf %s "(cached) " >&6
5204else $as_nop
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206/* end confdefs.h. */
5207
5208#include "EXTERN.h"
5209#include "perl.h"
5210#include "XSUB.h"
5211
5212int main (void)
5213{
5214 return PL_statcache.st_gen;
5215}
5216
5217_ACEOF
5218if ac_fn_c_try_compile "$LINENO"
5219then :
5220 ac_cv_st_gen=yes
5221else $as_nop
5222 ac_cv_st_gen=no
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5225fi
5226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
5227printf "%s\n" "$ac_cv_st_gen" >&6; }
5228test $ac_cv_st_gen = yes &&
5229printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h
5230
5231
5232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statx" >&5
5233printf %s "checking for statx... " >&6; }
5234if test ${ac_cv_statx+y}
5235then :
5236 printf %s "(cached) " >&6
5237else $as_nop
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h. */
5240
5241#include <sys/types.h>
5242#include <sys/stat.h>
5243#include <unistd.h>
5244#include <fcntl.h>
5245int res;
5246int main (void)
5247{
5248 struct statx sx;
5249 int res;
5250 res = statx (AT_FDCWD, ".",
5251 AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC,
5252 STATX_ALL, &sx);
5253 STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME;
5254 STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL;
5255 STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED;
5256 return 0;
5257}
5258
5259_ACEOF
5260if ac_fn_c_try_link "$LINENO"
5261then :
5262 ac_cv_statx=yes
5263else $as_nop
5264 ac_cv_statx=no
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.beam \
5267 conftest$ac_exeext conftest.$ac_ext
5268fi
5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5
5270printf "%s\n" "$ac_cv_statx" >&6; }
5271test $ac_cv_statx = yes &&
5272printf "%s\n" "#define HAVE_STATX 1" >>confdefs.h
5273
5274
5275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5
5276printf %s "checking for accept4... " >&6; }
5277if test ${ac_cv_accept4+y}
5278then :
5279 printf %s "(cached) " >&6
5280else $as_nop
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h. */
5283
5284#include <sys/types.h>
5285#include <sys/socket.h>
5286int main (void)
5287{
5288 int res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC);
5289 return 0;
5290}
5291
5292_ACEOF
5293if ac_fn_c_try_link "$LINENO"
5294then :
5295 ac_cv_accept4=yes
5296else $as_nop
5297 ac_cv_accept4=no
5298fi
5299rm -f core conftest.err conftest.$ac_objext conftest.beam \
5300 conftest$ac_exeext conftest.$ac_ext
5301fi
5302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5
5303printf "%s\n" "$ac_cv_accept4" >&6; }
5304test $ac_cv_accept4 = yes &&
5305printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
5306
5307
5308ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5309if test "x$ac_cv_header_sys_mount_h" = xyes
5310then :
5311 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5312
5313fi
5314
5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount" >&5
5316printf %s "checking for mount... " >&6; }
5317if test ${ac_cv_mount+y}
5318then :
5319 printf %s "(cached) " >&6
5320else $as_nop
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h. */
5323
5324#include <sys/mount.h>
5325int main (void)
5326{
5327 int res = mount ("path", "path", "fstype", MS_RDONLY, 0);
5328 return 0;
5329}
5330
5331_ACEOF
5332if ac_fn_c_try_link "$LINENO"
5333then :
5334 ac_cv_mount=yes
5335else $as_nop
5336 ac_cv_mount=no
5337fi
5338rm -f core conftest.err conftest.$ac_objext conftest.beam \
5339 conftest$ac_exeext conftest.$ac_ext
5340fi
5341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5
5342printf "%s\n" "$ac_cv_mount" >&6; }
5343test $ac_cv_mount = yes &&
5344printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h
5345
5346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount" >&5
5347printf %s "checking for umount... " >&6; }
5348if test ${ac_cv_umount+y}
5349then :
5350 printf %s "(cached) " >&6
5351else $as_nop
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354
5355#include <sys/mount.h>
5356int main (void)
5357{
5358 int res = umount ("path");
5359 return 0;
5360}
5361
5362_ACEOF
5363if ac_fn_c_try_link "$LINENO"
5364then :
5365 ac_cv_umount=yes
5366else $as_nop
5367 ac_cv_umount=no
5368fi
5369rm -f core conftest.err conftest.$ac_objext conftest.beam \
5370 conftest$ac_exeext conftest.$ac_ext
5371fi
5372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount" >&5
5373printf "%s\n" "$ac_cv_umount" >&6; }
5374test $ac_cv_umount = yes &&
5375printf "%s\n" "#define HAVE_UMOUNT 1" >>confdefs.h
5376
5377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5
5378printf %s "checking for umount2... " >&6; }
5379if test ${ac_cv_umount2+y}
5380then :
5381 printf %s "(cached) " >&6
5382else $as_nop
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385
5386#include <sys/mount.h>
5387int main (void)
5388{
5389 int res = umount2 ("path", MNT_FORCE|MNT_DETACH);
5390 return 0;
5391}
5392
5393_ACEOF
5394if ac_fn_c_try_link "$LINENO"
5395then :
5396 ac_cv_umount2=yes
5397else $as_nop
5398 ac_cv_umount2=no
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.beam \
5401 conftest$ac_exeext conftest.$ac_ext
5402fi
5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount2" >&5
5404printf "%s\n" "$ac_cv_umount2" >&6; }
5405test $ac_cv_umount2 = yes &&
5406printf "%s\n" "#define HAVE_UMOUNT2 1" >>confdefs.h
2925 5407
2926 5408
2927cat >confcache <<\_ACEOF 5409cat >confcache <<\_ACEOF
2928# This file is a shell script that caches the results of configure 5410# This file is a shell script that caches the results of configure
2929# tests run on this system so they can be shared between configure 5411# tests run on this system so they can be shared between configure
2949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2950 eval ac_val=\$$ac_var 5432 eval ac_val=\$$ac_var
2951 case $ac_val in #( 5433 case $ac_val in #(
2952 *${as_nl}*) 5434 *${as_nl}*)
2953 case $ac_var in #( 5435 case $ac_var in #(
2954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5436 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2955$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5437printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2956 esac 5438 esac
2957 case $ac_var in #( 5439 case $ac_var in #(
2958 _ | IFS | as_nl) ;; #( 5440 _ | IFS | as_nl) ;; #(
2959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2960 *) { eval $ac_var=; unset $ac_var;} ;; 5442 *) { eval $ac_var=; unset $ac_var;} ;;
2980) | 5462) |
2981 sed ' 5463 sed '
2982 /^ac_cv_env_/b end 5464 /^ac_cv_env_/b end
2983 t clear 5465 t clear
2984 :clear 5466 :clear
2985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5467 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
2986 t end 5468 t end
2987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2988 :end' >>confcache 5470 :end' >>confcache
2989if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5471if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2990 if test -w "$cache_file"; then 5472 if test -w "$cache_file"; then
2991 test "x$cache_file" != "x/dev/null" && 5473 if test "x$cache_file" != "x/dev/null"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2993$as_echo "$as_me: updating cache $cache_file" >&6;} 5475printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5476 if test ! -f "$cache_file" || test -h "$cache_file"; then
2994 cat confcache >$cache_file 5477 cat confcache >"$cache_file"
5478 else
5479 case $cache_file in #(
5480 */* | ?:*)
5481 mv -f confcache "$cache_file"$$ &&
5482 mv -f "$cache_file"$$ "$cache_file" ;; #(
5483 *)
5484 mv -f confcache "$cache_file" ;;
5485 esac
5486 fi
5487 fi
2995 else 5488 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2997$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5490printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
2998 fi 5491 fi
2999fi 5492fi
3000rm -f confcache 5493rm -f confcache
3001 5494
3002test "x$prefix" = xNONE && prefix=$ac_default_prefix 5495test "x$prefix" = xNONE && prefix=$ac_default_prefix
3009ac_ltlibobjs= 5502ac_ltlibobjs=
3010U= 5503U=
3011for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5504for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3012 # 1. Remove the extension, and $U if already installed. 5505 # 1. Remove the extension, and $U if already installed.
3013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3014 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5507 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
3015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3016 # will be set to the directory where LIBOBJS objects are built. 5509 # will be set to the directory where LIBOBJS objects are built.
3017 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3018 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3019done 5512done
3021 5514
3022LTLIBOBJS=$ac_ltlibobjs 5515LTLIBOBJS=$ac_ltlibobjs
3023 5516
3024 5517
3025 5518
3026: ${CONFIG_STATUS=./config.status} 5519: "${CONFIG_STATUS=./config.status}"
3027ac_write_fail=0 5520ac_write_fail=0
3028ac_clean_files_save=$ac_clean_files 5521ac_clean_files_save=$ac_clean_files
3029ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5522ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3031$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5524printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3032as_write_fail=0 5525as_write_fail=0
3033cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5526cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3034#! $SHELL 5527#! $SHELL
3035# Generated by $as_me. 5528# Generated by $as_me.
3036# Run this file to recreate the current configuration. 5529# Run this file to recreate the current configuration.
3049## M4sh Initialization. ## 5542## M4sh Initialization. ##
3050## -------------------- ## 5543## -------------------- ##
3051 5544
3052# Be more Bourne compatible 5545# Be more Bourne compatible
3053DUALCASE=1; export DUALCASE # for MKS sh 5546DUALCASE=1; export DUALCASE # for MKS sh
5547as_nop=:
3054if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5548if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5549then :
3055 emulate sh 5550 emulate sh
3056 NULLCMD=: 5551 NULLCMD=:
3057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3058 # is contrary to our usage. Disable this feature. 5553 # is contrary to our usage. Disable this feature.
3059 alias -g '${1+"$@"}'='"$@"' 5554 alias -g '${1+"$@"}'='"$@"'
3060 setopt NO_GLOB_SUBST 5555 setopt NO_GLOB_SUBST
3061else 5556else $as_nop
3062 case `(set -o) 2>/dev/null` in #( 5557 case `(set -o) 2>/dev/null` in #(
3063 *posix*) : 5558 *posix*) :
3064 set -o posix ;; #( 5559 set -o posix ;; #(
3065 *) : 5560 *) :
3066 ;; 5561 ;;
3067esac 5562esac
3068fi 5563fi
3069 5564
3070 5565
5566
5567# Reset variables that may have inherited troublesome values from
5568# the environment.
5569
5570# IFS needs to be set, to space, tab, and newline, in precisely that order.
5571# (If _AS_PATH_WALK were called with IFS unset, it would have the
5572# side effect of setting IFS to empty, thus disabling word splitting.)
5573# Quoting is to prevent editors from complaining about space-tab.
3071as_nl=' 5574as_nl='
3072' 5575'
3073export as_nl 5576export as_nl
3074# Printing a long string crashes Solaris 7 /usr/bin/printf. 5577IFS=" "" $as_nl"
3075as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5578
3076as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5579PS1='$ '
3077as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5580PS2='> '
3078# Prefer a ksh shell builtin over an external printf program on Solaris, 5581PS4='+ '
3079# but without wasting forks for bash or zsh. 5582
3080if test -z "$BASH_VERSION$ZSH_VERSION" \ 5583# Ensure predictable behavior from utilities with locale-dependent output.
3081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5584LC_ALL=C
3082 as_echo='print -r --' 5585export LC_ALL
3083 as_echo_n='print -rn --' 5586LANGUAGE=C
3084elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5587export LANGUAGE
3085 as_echo='printf %s\n' 5588
3086 as_echo_n='printf %s' 5589# We cannot yet rely on "unset" to work, but we need these variables
3087else 5590# to be unset--not just set to an empty or harmless value--now, to
3088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5591# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
3089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5592# also avoids known problems related to "unset" and subshell syntax
3090 as_echo_n='/usr/ucb/echo -n' 5593# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3091 else 5594for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5595do eval test \${$as_var+y} \
3093 as_echo_n_body='eval 5596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3094 arg=$1; 5597done
3095 case $arg in #( 5598
3096 *"$as_nl"*) 5599# Ensure that fds 0, 1, and 2 are open.
3097 expr "X$arg" : "X\\(.*\\)$as_nl"; 5600if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5601if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3099 esac; 5602if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
3100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3101 '
3102 export as_echo_n_body
3103 as_echo_n='sh -c $as_echo_n_body as_echo'
3104 fi
3105 export as_echo_body
3106 as_echo='sh -c $as_echo_body as_echo'
3107fi
3108 5603
3109# The user is always right. 5604# The user is always right.
3110if test "${PATH_SEPARATOR+set}" != set; then 5605if ${PATH_SEPARATOR+false} :; then
3111 PATH_SEPARATOR=: 5606 PATH_SEPARATOR=:
3112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3114 PATH_SEPARATOR=';' 5609 PATH_SEPARATOR=';'
3115 } 5610 }
3116fi 5611fi
3117 5612
3118 5613
3119# IFS
3120# We need space, tab and new line, in precisely that order. Quoting is
3121# there to prevent editors from complaining about space-tab.
3122# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3123# splitting by setting IFS to empty value.)
3124IFS=" "" $as_nl"
3125
3126# Find who we are. Look in the path if we contain no directory separator. 5614# Find who we are. Look in the path if we contain no directory separator.
5615as_myself=
3127case $0 in #(( 5616case $0 in #((
3128 *[\\/]* ) as_myself=$0 ;; 5617 *[\\/]* ) as_myself=$0 ;;
3129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH 5619for as_dir in $PATH
3131do 5620do
3132 IFS=$as_save_IFS 5621 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=. 5622 case $as_dir in #(((
5623 '') as_dir=./ ;;
5624 */) ;;
5625 *) as_dir=$as_dir/ ;;
5626 esac
3134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5627 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3135 done 5628 done
3136IFS=$as_save_IFS 5629IFS=$as_save_IFS
3137 5630
3138 ;; 5631 ;;
3139esac 5632esac
3141# in which case we are not to be found in the path. 5634# in which case we are not to be found in the path.
3142if test "x$as_myself" = x; then 5635if test "x$as_myself" = x; then
3143 as_myself=$0 5636 as_myself=$0
3144fi 5637fi
3145if test ! -f "$as_myself"; then 5638if test ! -f "$as_myself"; then
3146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5639 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3147 exit 1 5640 exit 1
3148fi 5641fi
3149 5642
3150# Unset variables that we do not need and which cause bugs (e.g. in
3151# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3152# suppresses any "Segmentation fault" message there. '((' could
3153# trigger a bug in pdksh 5.2.14.
3154for as_var in BASH_ENV ENV MAIL MAILPATH
3155do eval test x\${$as_var+set} = xset \
3156 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3157done
3158PS1='$ '
3159PS2='> '
3160PS4='+ '
3161
3162# NLS nuisances.
3163LC_ALL=C
3164export LC_ALL
3165LANGUAGE=C
3166export LANGUAGE
3167
3168# CDPATH.
3169(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3170 5643
3171 5644
3172# as_fn_error STATUS ERROR [LINENO LOG_FD] 5645# as_fn_error STATUS ERROR [LINENO LOG_FD]
3173# ---------------------------------------- 5646# ----------------------------------------
3174# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5647# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3177as_fn_error () 5650as_fn_error ()
3178{ 5651{
3179 as_status=$1; test $as_status -eq 0 && as_status=1 5652 as_status=$1; test $as_status -eq 0 && as_status=1
3180 if test "$4"; then 5653 if test "$4"; then
3181 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3183 fi 5656 fi
3184 $as_echo "$as_me: error: $2" >&2 5657 printf "%s\n" "$as_me: error: $2" >&2
3185 as_fn_exit $as_status 5658 as_fn_exit $as_status
3186} # as_fn_error 5659} # as_fn_error
5660
3187 5661
3188 5662
3189# as_fn_set_status STATUS 5663# as_fn_set_status STATUS
3190# ----------------------- 5664# -----------------------
3191# Set $? to STATUS, without forking. 5665# Set $? to STATUS, without forking.
3210as_fn_unset () 5684as_fn_unset ()
3211{ 5685{
3212 { eval $1=; unset $1;} 5686 { eval $1=; unset $1;}
3213} 5687}
3214as_unset=as_fn_unset 5688as_unset=as_fn_unset
5689
3215# as_fn_append VAR VALUE 5690# as_fn_append VAR VALUE
3216# ---------------------- 5691# ----------------------
3217# Append the text in VALUE to the end of the definition contained in VAR. Take 5692# Append the text in VALUE to the end of the definition contained in VAR. Take
3218# advantage of any shell optimizations that allow amortized linear growth over 5693# advantage of any shell optimizations that allow amortized linear growth over
3219# repeated appends, instead of the typical quadratic growth present in naive 5694# repeated appends, instead of the typical quadratic growth present in naive
3220# implementations. 5695# implementations.
3221if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5696if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5697then :
3222 eval 'as_fn_append () 5698 eval 'as_fn_append ()
3223 { 5699 {
3224 eval $1+=\$2 5700 eval $1+=\$2
3225 }' 5701 }'
3226else 5702else $as_nop
3227 as_fn_append () 5703 as_fn_append ()
3228 { 5704 {
3229 eval $1=\$$1\$2 5705 eval $1=\$$1\$2
3230 } 5706 }
3231fi # as_fn_append 5707fi # as_fn_append
3233# as_fn_arith ARG... 5709# as_fn_arith ARG...
3234# ------------------ 5710# ------------------
3235# Perform arithmetic evaluation on the ARGs, and store the result in the 5711# Perform arithmetic evaluation on the ARGs, and store the result in the
3236# global $as_val. Take advantage of shells that can avoid forks. The arguments 5712# global $as_val. Take advantage of shells that can avoid forks. The arguments
3237# must be portable across $(()) and expr. 5713# must be portable across $(()) and expr.
3238if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5714if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5715then :
3239 eval 'as_fn_arith () 5716 eval 'as_fn_arith ()
3240 { 5717 {
3241 as_val=$(( $* )) 5718 as_val=$(( $* ))
3242 }' 5719 }'
3243else 5720else $as_nop
3244 as_fn_arith () 5721 as_fn_arith ()
3245 { 5722 {
3246 as_val=`expr "$@" || test $? -eq 1` 5723 as_val=`expr "$@" || test $? -eq 1`
3247 } 5724 }
3248fi # as_fn_arith 5725fi # as_fn_arith
3269 5746
3270as_me=`$as_basename -- "$0" || 5747as_me=`$as_basename -- "$0" ||
3271$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5748$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3272 X"$0" : 'X\(//\)$' \| \ 5749 X"$0" : 'X\(//\)$' \| \
3273 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3274$as_echo X/"$0" | 5751printf "%s\n" X/"$0" |
3275 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5752 sed '/^.*\/\([^/][^/]*\)\/*$/{
3276 s//\1/ 5753 s//\1/
3277 q 5754 q
3278 } 5755 }
3279 /^X\/\(\/\/\)$/{ 5756 /^X\/\(\/\/\)$/{
3291as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5768as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3292as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5769as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3293as_cr_digits='0123456789' 5770as_cr_digits='0123456789'
3294as_cr_alnum=$as_cr_Letters$as_cr_digits 5771as_cr_alnum=$as_cr_Letters$as_cr_digits
3295 5772
5773
5774# Determine whether it's possible to make 'echo' print without a newline.
5775# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5776# for compatibility with existing Makefiles.
3296ECHO_C= ECHO_N= ECHO_T= 5777ECHO_C= ECHO_N= ECHO_T=
3297case `echo -n x` in #((((( 5778case `echo -n x` in #(((((
3298-n*) 5779-n*)
3299 case `echo 'xy\c'` in 5780 case `echo 'xy\c'` in
3300 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5781 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3304 esac;; 5785 esac;;
3305*) 5786*)
3306 ECHO_N='-n';; 5787 ECHO_N='-n';;
3307esac 5788esac
3308 5789
5790# For backward compatibility with old third-party macros, we provide
5791# the shell variables $as_echo and $as_echo_n. New code should use
5792# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5793as_echo='printf %s\n'
5794as_echo_n='printf %s'
5795
3309rm -f conf$$ conf$$.exe conf$$.file 5796rm -f conf$$ conf$$.exe conf$$.file
3310if test -d conf$$.dir; then 5797if test -d conf$$.dir; then
3311 rm -f conf$$.dir/conf$$.file 5798 rm -f conf$$.dir/conf$$.file
3312else 5799else
3313 rm -f conf$$.dir 5800 rm -f conf$$.dir
3317 if ln -s conf$$.file conf$$ 2>/dev/null; then 5804 if ln -s conf$$.file conf$$ 2>/dev/null; then
3318 as_ln_s='ln -s' 5805 as_ln_s='ln -s'
3319 # ... but there are two gotchas: 5806 # ... but there are two gotchas:
3320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3322 # In both cases, we have to default to `cp -p'. 5809 # In both cases, we have to default to `cp -pR'.
3323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3324 as_ln_s='cp -p' 5811 as_ln_s='cp -pR'
3325 elif ln conf$$.file conf$$ 2>/dev/null; then 5812 elif ln conf$$.file conf$$ 2>/dev/null; then
3326 as_ln_s=ln 5813 as_ln_s=ln
3327 else 5814 else
3328 as_ln_s='cp -p' 5815 as_ln_s='cp -pR'
3329 fi 5816 fi
3330else 5817else
3331 as_ln_s='cp -p' 5818 as_ln_s='cp -pR'
3332fi 5819fi
3333rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5820rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3334rmdir conf$$.dir 2>/dev/null 5821rmdir conf$$.dir 2>/dev/null
3335 5822
3336 5823
3345 esac 5832 esac
3346 test -d "$as_dir" || eval $as_mkdir_p || { 5833 test -d "$as_dir" || eval $as_mkdir_p || {
3347 as_dirs= 5834 as_dirs=
3348 while :; do 5835 while :; do
3349 case $as_dir in #( 5836 case $as_dir in #(
3350 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5837 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3351 *) as_qdir=$as_dir;; 5838 *) as_qdir=$as_dir;;
3352 esac 5839 esac
3353 as_dirs="'$as_qdir' $as_dirs" 5840 as_dirs="'$as_qdir' $as_dirs"
3354 as_dir=`$as_dirname -- "$as_dir" || 5841 as_dir=`$as_dirname -- "$as_dir" ||
3355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3356 X"$as_dir" : 'X\(//\)[^/]' \| \ 5843 X"$as_dir" : 'X\(//\)[^/]' \| \
3357 X"$as_dir" : 'X\(//\)$' \| \ 5844 X"$as_dir" : 'X\(//\)$' \| \
3358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3359$as_echo X"$as_dir" | 5846printf "%s\n" X"$as_dir" |
3360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3361 s//\1/ 5848 s//\1/
3362 q 5849 q
3363 } 5850 }
3364 /^X\(\/\/\)[^/].*/{ 5851 /^X\(\/\/\)[^/].*/{
3386else 5873else
3387 test -d ./-p && rmdir ./-p 5874 test -d ./-p && rmdir ./-p
3388 as_mkdir_p=false 5875 as_mkdir_p=false
3389fi 5876fi
3390 5877
3391if test -x / >/dev/null 2>&1; then 5878
5879# as_fn_executable_p FILE
5880# -----------------------
5881# Test if FILE is an executable regular file.
5882as_fn_executable_p ()
5883{
5884 test -f "$1" && test -x "$1"
5885} # as_fn_executable_p
3392 as_test_x='test -x' 5886as_test_x='test -x'
3393else 5887as_executable_p=as_fn_executable_p
3394 if ls -dL / >/dev/null 2>&1; then
3395 as_ls_L_option=L
3396 else
3397 as_ls_L_option=
3398 fi
3399 as_test_x='
3400 eval sh -c '\''
3401 if test -d "$1"; then
3402 test -d "$1/.";
3403 else
3404 case $1 in #(
3405 -*)set "./$1";;
3406 esac;
3407 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3408 ???[sx]*):;;*)false;;esac;fi
3409 '\'' sh
3410 '
3411fi
3412as_executable_p=$as_test_x
3413 5888
3414# Sed expression to map a string onto a valid CPP name. 5889# Sed expression to map a string onto a valid CPP name.
3415as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5890as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3416 5891
3417# Sed expression to map a string onto a valid variable name. 5892# Sed expression to map a string onto a valid variable name.
3429# Save the log message, to keep $0 and so on meaningful, and to 5904# Save the log message, to keep $0 and so on meaningful, and to
3430# report actual input values of CONFIG_FILES etc. instead of their 5905# report actual input values of CONFIG_FILES etc. instead of their
3431# values after options handling. 5906# values after options handling.
3432ac_log=" 5907ac_log="
3433This file was extended by $as_me, which was 5908This file was extended by $as_me, which was
3434generated by GNU Autoconf 2.67. Invocation command line was 5909generated by GNU Autoconf 2.71. Invocation command line was
3435 5910
3436 CONFIG_FILES = $CONFIG_FILES 5911 CONFIG_FILES = $CONFIG_FILES
3437 CONFIG_HEADERS = $CONFIG_HEADERS 5912 CONFIG_HEADERS = $CONFIG_HEADERS
3438 CONFIG_LINKS = $CONFIG_LINKS 5913 CONFIG_LINKS = $CONFIG_LINKS
3439 CONFIG_COMMANDS = $CONFIG_COMMANDS 5914 CONFIG_COMMANDS = $CONFIG_COMMANDS
3478$config_headers 5953$config_headers
3479 5954
3480Report bugs to the package provider." 5955Report bugs to the package provider."
3481 5956
3482_ACEOF 5957_ACEOF
5958ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5959ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
3483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3484ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5961ac_cs_config='$ac_cs_config_escaped'
3485ac_cs_version="\\ 5962ac_cs_version="\\
3486config.status 5963config.status
3487configured by $0, generated by GNU Autoconf 2.67, 5964configured by $0, generated by GNU Autoconf 2.71,
3488 with options \\"\$ac_cs_config\\" 5965 with options \\"\$ac_cs_config\\"
3489 5966
3490Copyright (C) 2010 Free Software Foundation, Inc. 5967Copyright (C) 2021 Free Software Foundation, Inc.
3491This config.status script is free software; the Free Software Foundation 5968This config.status script is free software; the Free Software Foundation
3492gives unlimited permission to copy, distribute and modify it." 5969gives unlimited permission to copy, distribute and modify it."
3493 5970
3494ac_pwd='$ac_pwd' 5971ac_pwd='$ac_pwd'
3495srcdir='$srcdir' 5972srcdir='$srcdir'
3522 case $ac_option in 5999 case $ac_option in
3523 # Handling of the options. 6000 # Handling of the options.
3524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3525 ac_cs_recheck=: ;; 6002 ac_cs_recheck=: ;;
3526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6003 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3527 $as_echo "$ac_cs_version"; exit ;; 6004 printf "%s\n" "$ac_cs_version"; exit ;;
3528 --config | --confi | --conf | --con | --co | --c ) 6005 --config | --confi | --conf | --con | --co | --c )
3529 $as_echo "$ac_cs_config"; exit ;; 6006 printf "%s\n" "$ac_cs_config"; exit ;;
3530 --debug | --debu | --deb | --de | --d | -d ) 6007 --debug | --debu | --deb | --de | --d | -d )
3531 debug=: ;; 6008 debug=: ;;
3532 --header | --heade | --head | --hea ) 6009 --header | --heade | --head | --hea )
3533 $ac_shift 6010 $ac_shift
3534 case $ac_optarg in 6011 case $ac_optarg in
3535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6012 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3536 esac 6013 esac
3537 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 6014 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3538 ac_need_defaults=false;; 6015 ac_need_defaults=false;;
3539 --he | --h) 6016 --he | --h)
3540 # Conflict between --help and --header 6017 # Conflict between --help and --header
3541 as_fn_error $? "ambiguous option: \`$1' 6018 as_fn_error $? "ambiguous option: \`$1'
3542Try \`$0 --help' for more information.";; 6019Try \`$0 --help' for more information.";;
3543 --help | --hel | -h ) 6020 --help | --hel | -h )
3544 $as_echo "$ac_cs_usage"; exit ;; 6021 printf "%s\n" "$ac_cs_usage"; exit ;;
3545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3546 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6023 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3547 ac_cs_silent=: ;; 6024 ac_cs_silent=: ;;
3548 6025
3549 # This is an error. 6026 # This is an error.
3565fi 6042fi
3566 6043
3567_ACEOF 6044_ACEOF
3568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3569if \$ac_cs_recheck; then 6046if \$ac_cs_recheck; then
3570 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6047 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3571 shift 6048 shift
3572 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6049 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
3573 CONFIG_SHELL='$SHELL' 6050 CONFIG_SHELL='$SHELL'
3574 export CONFIG_SHELL 6051 export CONFIG_SHELL
3575 exec "\$@" 6052 exec "\$@"
3576fi 6053fi
3577 6054
3581{ 6058{
3582 echo 6059 echo
3583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6060 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3584## Running $as_me. ## 6061## Running $as_me. ##
3585_ASBOX 6062_ASBOX
3586 $as_echo "$ac_log" 6063 printf "%s\n" "$ac_log"
3587} >&5 6064} >&5
3588 6065
3589_ACEOF 6066_ACEOF
3590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3591_ACEOF 6068_ACEOF
3594 6071
3595# Handling of arguments. 6072# Handling of arguments.
3596for ac_config_target in $ac_config_targets 6073for ac_config_target in $ac_config_targets
3597do 6074do
3598 case $ac_config_target in 6075 case $ac_config_target in
3599 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; 6076 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3600 6077
3601 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 6078 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3602 esac 6079 esac
3603done 6080done
3604 6081
3605 6082
3606# If the user did not use the arguments to specify the items to instantiate, 6083# If the user did not use the arguments to specify the items to instantiate,
3607# then the envvar interface is used. Set only those that are not. 6084# then the envvar interface is used. Set only those that are not.
3608# We use the long form for the default assignment because of an extremely 6085# We use the long form for the default assignment because of an extremely
3609# bizarre bug on SunOS 4.1.3. 6086# bizarre bug on SunOS 4.1.3.
3610if $ac_need_defaults; then 6087if $ac_need_defaults; then
3611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6088 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
3612fi 6089fi
3613 6090
3614# Have a temporary directory for convenience. Make it in the build tree 6091# Have a temporary directory for convenience. Make it in the build tree
3615# simply because there is no reason against having it here, and in addition, 6092# simply because there is no reason against having it here, and in addition,
3616# creating and moving files from /tmp can sometimes cause problems. 6093# creating and moving files from /tmp can sometimes cause problems.
3617# Hook for its removal unless debugging. 6094# Hook for its removal unless debugging.
3618# Note that there is a small window in which the directory will not be cleaned: 6095# Note that there is a small window in which the directory will not be cleaned:
3619# after its creation but before its name has been assigned to `$tmp'. 6096# after its creation but before its name has been assigned to `$tmp'.
3620$debug || 6097$debug ||
3621{ 6098{
3622 tmp= 6099 tmp= ac_tmp=
3623 trap 'exit_status=$? 6100 trap 'exit_status=$?
6101 : "${ac_tmp:=$tmp}"
3624 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6102 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3625' 0 6103' 0
3626 trap 'as_fn_exit 1' 1 2 13 15 6104 trap 'as_fn_exit 1' 1 2 13 15
3627} 6105}
3628# Create a (secure) tmp directory for tmp files. 6106# Create a (secure) tmp directory for tmp files.
3629 6107
3630{ 6108{
3631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3632 test -n "$tmp" && test -d "$tmp" 6110 test -d "$tmp"
3633} || 6111} ||
3634{ 6112{
3635 tmp=./conf$$-$RANDOM 6113 tmp=./conf$$-$RANDOM
3636 (umask 077 && mkdir "$tmp") 6114 (umask 077 && mkdir "$tmp")
3637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 6115} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6116ac_tmp=$tmp
3638 6117
3639# Set up the scripts for CONFIG_HEADERS section. 6118# Set up the scripts for CONFIG_HEADERS section.
3640# No need to generate them if there are no CONFIG_HEADERS. 6119# No need to generate them if there are no CONFIG_HEADERS.
3641# This happens for instance with `./config.status Makefile'. 6120# This happens for instance with `./config.status Makefile'.
3642if test -n "$CONFIG_HEADERS"; then 6121if test -n "$CONFIG_HEADERS"; then
3643cat >"$tmp/defines.awk" <<\_ACAWK || 6122cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
3644BEGIN { 6123BEGIN {
3645_ACEOF 6124_ACEOF
3646 6125
3647# Transform confdefs.h into an awk script `defines.awk', embedded as 6126# Transform confdefs.h into an awk script `defines.awk', embedded as
3648# here-document in config.status, that substitutes the proper values into 6127# here-document in config.status, that substitutes the proper values into
3650 6129
3651# Create a delimiter string that does not exist in confdefs.h, to ease 6130# Create a delimiter string that does not exist in confdefs.h, to ease
3652# handling of long lines. 6131# handling of long lines.
3653ac_delim='%!_!# ' 6132ac_delim='%!_!# '
3654for ac_last_try in false false :; do 6133for ac_last_try in false false :; do
3655 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6134 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
3656 if test -z "$ac_t"; then 6135 if test -z "$ac_tt"; then
3657 break 6136 break
3658 elif $ac_last_try; then 6137 elif $ac_last_try; then
3659 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6138 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
3660 else 6139 else
3661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3752 case $ac_tag in 6231 case $ac_tag in
3753 :[FHLC]) ac_mode=$ac_tag; continue;; 6232 :[FHLC]) ac_mode=$ac_tag; continue;;
3754 esac 6233 esac
3755 case $ac_mode$ac_tag in 6234 case $ac_mode$ac_tag in
3756 :[FHL]*:*);; 6235 :[FHL]*:*);;
3757 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 6236 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3758 :[FH]-) ac_tag=-:-;; 6237 :[FH]-) ac_tag=-:-;;
3759 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6238 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3760 esac 6239 esac
3761 ac_save_IFS=$IFS 6240 ac_save_IFS=$IFS
3762 IFS=: 6241 IFS=:
3771 :[FH]) 6250 :[FH])
3772 ac_file_inputs= 6251 ac_file_inputs=
3773 for ac_f 6252 for ac_f
3774 do 6253 do
3775 case $ac_f in 6254 case $ac_f in
3776 -) ac_f="$tmp/stdin";; 6255 -) ac_f="$ac_tmp/stdin";;
3777 *) # Look for the file first in the build tree, then in the source tree 6256 *) # Look for the file first in the build tree, then in the source tree
3778 # (if the path is not absolute). The absolute path cannot be DOS-style, 6257 # (if the path is not absolute). The absolute path cannot be DOS-style,
3779 # because $ac_f cannot contain `:'. 6258 # because $ac_f cannot contain `:'.
3780 test -f "$ac_f" || 6259 test -f "$ac_f" ||
3781 case $ac_f in 6260 case $ac_f in
3782 [\\/$]*) false;; 6261 [\\/$]*) false;;
3783 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6262 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3784 esac || 6263 esac ||
3785 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 6264 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3786 esac 6265 esac
3787 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6266 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3788 as_fn_append ac_file_inputs " '$ac_f'" 6267 as_fn_append ac_file_inputs " '$ac_f'"
3789 done 6268 done
3790 6269
3791 # Let's still pretend it is `configure' which instantiates (i.e., don't 6270 # Let's still pretend it is `configure' which instantiates (i.e., don't
3792 # use $as_me), people would be surprised to read: 6271 # use $as_me), people would be surprised to read:
3793 # /* config.h. Generated by config.status. */ 6272 # /* config.h. Generated by config.status. */
3794 configure_input='Generated from '` 6273 configure_input='Generated from '`
3795 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6274 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3796 `' by configure.' 6275 `' by configure.'
3797 if test x"$ac_file" != x-; then 6276 if test x"$ac_file" != x-; then
3798 configure_input="$ac_file. $configure_input" 6277 configure_input="$ac_file. $configure_input"
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3800$as_echo "$as_me: creating $ac_file" >&6;} 6279printf "%s\n" "$as_me: creating $ac_file" >&6;}
3801 fi 6280 fi
3802 # Neutralize special characters interpreted by sed in replacement strings. 6281 # Neutralize special characters interpreted by sed in replacement strings.
3803 case $configure_input in #( 6282 case $configure_input in #(
3804 *\&* | *\|* | *\\* ) 6283 *\&* | *\|* | *\\* )
3805 ac_sed_conf_input=`$as_echo "$configure_input" | 6284 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
3806 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3807 *) ac_sed_conf_input=$configure_input;; 6286 *) ac_sed_conf_input=$configure_input;;
3808 esac 6287 esac
3809 6288
3810 case $ac_tag in 6289 case $ac_tag in
3811 *:-:* | *:-) cat >"$tmp/stdin" \ 6290 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3813 esac 6292 esac
3814 ;; 6293 ;;
3815 esac 6294 esac
3816 6295
3817 ac_dir=`$as_dirname -- "$ac_file" || 6296 ac_dir=`$as_dirname -- "$ac_file" ||
3818$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6297$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3819 X"$ac_file" : 'X\(//\)[^/]' \| \ 6298 X"$ac_file" : 'X\(//\)[^/]' \| \
3820 X"$ac_file" : 'X\(//\)$' \| \ 6299 X"$ac_file" : 'X\(//\)$' \| \
3821 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3822$as_echo X"$ac_file" | 6301printf "%s\n" X"$ac_file" |
3823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3824 s//\1/ 6303 s//\1/
3825 q 6304 q
3826 } 6305 }
3827 /^X\(\/\/\)[^/].*/{ 6306 /^X\(\/\/\)[^/].*/{
3841 ac_builddir=. 6320 ac_builddir=.
3842 6321
3843case "$ac_dir" in 6322case "$ac_dir" in
3844.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6323.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3845*) 6324*)
3846 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6325 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
3847 # A ".." for each directory in $ac_dir_suffix. 6326 # A ".." for each directory in $ac_dir_suffix.
3848 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6327 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3849 case $ac_top_builddir_sub in 6328 case $ac_top_builddir_sub in
3850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3852 esac ;; 6331 esac ;;
3853esac 6332esac
3879 # 6358 #
3880 # CONFIG_HEADER 6359 # CONFIG_HEADER
3881 # 6360 #
3882 if test x"$ac_file" != x-; then 6361 if test x"$ac_file" != x-; then
3883 { 6362 {
3884 $as_echo "/* $configure_input */" \ 6363 printf "%s\n" "/* $configure_input */" >&1 \
3885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6364 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
3886 } >"$tmp/config.h" \ 6365 } >"$ac_tmp/config.h" \
3887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3888 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6367 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
3890$as_echo "$as_me: $ac_file is unchanged" >&6;} 6369printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
3891 else 6370 else
3892 rm -f "$ac_file" 6371 rm -f "$ac_file"
3893 mv "$tmp/config.h" "$ac_file" \ 6372 mv "$ac_tmp/config.h" "$ac_file" \
3894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3895 fi 6374 fi
3896 else 6375 else
3897 $as_echo "/* $configure_input */" \ 6376 printf "%s\n" "/* $configure_input */" >&1 \
3898 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6377 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
3899 || as_fn_error $? "could not create -" "$LINENO" 5 6378 || as_fn_error $? "could not create -" "$LINENO" 5
3900 fi 6379 fi
3901 ;; 6380 ;;
3902 6381
3903 6382
3933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3934 # would make configure fail if this is the last instruction. 6413 # would make configure fail if this is the last instruction.
3935 $ac_cs_success || as_fn_exit 1 6414 $ac_cs_success || as_fn_exit 1
3936fi 6415fi
3937if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6416if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3939$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6418printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3940fi 6419fi
3941 6420
6421
6422

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines