1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.71. |
4 |
# |
5 |
# |
6 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
7 |
# Inc. |
8 |
# |
9 |
# |
10 |
# This configure script is free software; the Free Software Foundation |
11 |
# gives unlimited permission to copy, distribute and modify it. |
12 |
## -------------------- ## |
13 |
## M4sh Initialization. ## |
14 |
## -------------------- ## |
15 |
|
16 |
# Be more Bourne compatible |
17 |
DUALCASE=1; export DUALCASE # for MKS sh |
18 |
as_nop=: |
19 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
20 |
then : |
21 |
emulate sh |
22 |
NULLCMD=: |
23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
24 |
# is contrary to our usage. Disable this feature. |
25 |
alias -g '${1+"$@"}'='"$@"' |
26 |
setopt NO_GLOB_SUBST |
27 |
else $as_nop |
28 |
case `(set -o) 2>/dev/null` in #( |
29 |
*posix*) : |
30 |
set -o posix ;; #( |
31 |
*) : |
32 |
;; |
33 |
esac |
34 |
fi |
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. |
45 |
as_nl=' |
46 |
' |
47 |
export as_nl |
48 |
IFS=" "" $as_nl" |
49 |
|
50 |
PS1='$ ' |
51 |
PS2='> ' |
52 |
PS4='+ ' |
53 |
|
54 |
# Ensure predictable behavior from utilities with locale-dependent output. |
55 |
LC_ALL=C |
56 |
export LC_ALL |
57 |
LANGUAGE=C |
58 |
export LANGUAGE |
59 |
|
60 |
# We cannot yet rely on "unset" to work, but we need these variables |
61 |
# to be unset--not just set to an empty or harmless value--now, to |
62 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
63 |
# also avoids known problems related to "unset" and subshell syntax |
64 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
65 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
66 |
do eval test \${$as_var+y} \ |
67 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
68 |
done |
69 |
|
70 |
# Ensure that fds 0, 1, and 2 are open. |
71 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
72 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
73 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
74 |
|
75 |
# The user is always right. |
76 |
if ${PATH_SEPARATOR+false} :; then |
77 |
PATH_SEPARATOR=: |
78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
80 |
PATH_SEPARATOR=';' |
81 |
} |
82 |
fi |
83 |
|
84 |
|
85 |
# Find who we are. Look in the path if we contain no directory separator. |
86 |
as_myself= |
87 |
case $0 in #(( |
88 |
*[\\/]* ) as_myself=$0 ;; |
89 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
90 |
for as_dir in $PATH |
91 |
do |
92 |
IFS=$as_save_IFS |
93 |
case $as_dir in #((( |
94 |
'') as_dir=./ ;; |
95 |
*/) ;; |
96 |
*) as_dir=$as_dir/ ;; |
97 |
esac |
98 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
99 |
done |
100 |
IFS=$as_save_IFS |
101 |
|
102 |
;; |
103 |
esac |
104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
105 |
# in which case we are not to be found in the path. |
106 |
if test "x$as_myself" = x; then |
107 |
as_myself=$0 |
108 |
fi |
109 |
if test ! -f "$as_myself"; then |
110 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 |
exit 1 |
112 |
fi |
113 |
|
114 |
|
115 |
# Use a proper internal environment variable to ensure we don't fall |
116 |
# into an infinite loop, continuously re-executing ourselves. |
117 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
118 |
_as_can_reexec=no; export _as_can_reexec; |
119 |
# We cannot yet assume a decent shell, so we have to provide a |
120 |
# neutralization value for shells without unset; and this also |
121 |
# works around shells that cannot unset nonexistent variables. |
122 |
# Preserve -v and -x to the replacement shell. |
123 |
BASH_ENV=/dev/null |
124 |
ENV=/dev/null |
125 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
126 |
case $- in # (((( |
127 |
*v*x* | *x*v* ) as_opts=-vx ;; |
128 |
*v* ) as_opts=-v ;; |
129 |
*x* ) as_opts=-x ;; |
130 |
* ) as_opts= ;; |
131 |
esac |
132 |
exec $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'. |
135 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
136 |
exit 255 |
137 |
fi |
138 |
# We don't want this to propagate to other subprocesses. |
139 |
{ _as_can_reexec=; unset _as_can_reexec;} |
140 |
if test "x$CONFIG_SHELL" = x; then |
141 |
as_bourne_compatible="as_nop=: |
142 |
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
143 |
then : |
144 |
emulate sh |
145 |
NULLCMD=: |
146 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
147 |
# is contrary to our usage. Disable this feature. |
148 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
149 |
setopt NO_GLOB_SUBST |
150 |
else \$as_nop |
151 |
case \`(set -o) 2>/dev/null\` in #( |
152 |
*posix*) : |
153 |
set -o posix ;; #( |
154 |
*) : |
155 |
;; |
156 |
esac |
157 |
fi |
158 |
" |
159 |
as_required="as_fn_return () { (exit \$1); } |
160 |
as_fn_success () { as_fn_return 0; } |
161 |
as_fn_failure () { as_fn_return 1; } |
162 |
as_fn_ret_success () { return 0; } |
163 |
as_fn_ret_failure () { return 1; } |
164 |
|
165 |
exitcode=0 |
166 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
167 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
168 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
169 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
170 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
171 |
then : |
172 |
|
173 |
else \$as_nop |
174 |
exitcode=1; echo positional parameters were not saved. |
175 |
fi |
176 |
test x\$exitcode = x0 || exit 1 |
177 |
blah=\$(echo \$(echo blah)) |
178 |
test x\"\$blah\" = xblah || exit 1 |
179 |
test -x / || exit 1" |
180 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
181 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
182 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
183 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
184 |
if (eval "$as_required") 2>/dev/null |
185 |
then : |
186 |
as_have_required=yes |
187 |
else $as_nop |
188 |
as_have_required=no |
189 |
fi |
190 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
191 |
then : |
192 |
|
193 |
else $as_nop |
194 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
195 |
as_found=false |
196 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
197 |
do |
198 |
IFS=$as_save_IFS |
199 |
case $as_dir in #((( |
200 |
'') as_dir=./ ;; |
201 |
*/) ;; |
202 |
*) as_dir=$as_dir/ ;; |
203 |
esac |
204 |
as_found=: |
205 |
case $as_dir in #( |
206 |
/*) |
207 |
for as_base in sh bash ksh sh5; do |
208 |
# Try only shells that exist, to save several forks. |
209 |
as_shell=$as_dir$as_base |
210 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
211 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
212 |
then : |
213 |
CONFIG_SHELL=$as_shell as_have_required=yes |
214 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
215 |
then : |
216 |
break 2 |
217 |
fi |
218 |
fi |
219 |
done;; |
220 |
esac |
221 |
as_found=false |
222 |
done |
223 |
IFS=$as_save_IFS |
224 |
if $as_found |
225 |
then : |
226 |
|
227 |
else $as_nop |
228 |
if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
229 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
230 |
then : |
231 |
CONFIG_SHELL=$SHELL as_have_required=yes |
232 |
fi |
233 |
fi |
234 |
|
235 |
|
236 |
if test "x$CONFIG_SHELL" != x |
237 |
then : |
238 |
export CONFIG_SHELL |
239 |
# We cannot yet assume a decent shell, so we have to provide a |
240 |
# neutralization value for shells without unset; and this also |
241 |
# works around shells that cannot unset nonexistent variables. |
242 |
# Preserve -v and -x to the replacement shell. |
243 |
BASH_ENV=/dev/null |
244 |
ENV=/dev/null |
245 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
246 |
case $- in # (((( |
247 |
*v*x* | *x*v* ) as_opts=-vx ;; |
248 |
*v* ) as_opts=-v ;; |
249 |
*x* ) as_opts=-x ;; |
250 |
* ) as_opts= ;; |
251 |
esac |
252 |
exec $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'. |
255 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
256 |
exit 255 |
257 |
fi |
258 |
|
259 |
if test x$as_have_required = xno |
260 |
then : |
261 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
262 |
printf "%s\n" "$0: the shells that I found on your system." |
263 |
if test ${ZSH_VERSION+y} ; then |
264 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
265 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
266 |
else |
267 |
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
268 |
$0: including any error possibly output before this |
269 |
$0: message. Then install a modern shell, or manually run |
270 |
$0: the script under such a shell if you do have one." |
271 |
fi |
272 |
exit 1 |
273 |
fi |
274 |
fi |
275 |
fi |
276 |
SHELL=${CONFIG_SHELL-/bin/sh} |
277 |
export SHELL |
278 |
# Unset more variables known to interfere with behavior of common tools. |
279 |
CLICOLOR_FORCE= GREP_OPTIONS= |
280 |
unset CLICOLOR_FORCE GREP_OPTIONS |
281 |
|
282 |
## --------------------- ## |
283 |
## M4sh Shell Functions. ## |
284 |
## --------------------- ## |
285 |
# as_fn_unset VAR |
286 |
# --------------- |
287 |
# Portably unset VAR. |
288 |
as_fn_unset () |
289 |
{ |
290 |
{ eval $1=; unset $1;} |
291 |
} |
292 |
as_unset=as_fn_unset |
293 |
|
294 |
|
295 |
# as_fn_set_status STATUS |
296 |
# ----------------------- |
297 |
# Set $? to STATUS, without forking. |
298 |
as_fn_set_status () |
299 |
{ |
300 |
return $1 |
301 |
} # as_fn_set_status |
302 |
|
303 |
# as_fn_exit STATUS |
304 |
# ----------------- |
305 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
306 |
as_fn_exit () |
307 |
{ |
308 |
set +e |
309 |
as_fn_set_status $1 |
310 |
exit $1 |
311 |
} # as_fn_exit |
312 |
# as_fn_nop |
313 |
# --------- |
314 |
# Do nothing but, unlike ":", preserve the value of $?. |
315 |
as_fn_nop () |
316 |
{ |
317 |
return $? |
318 |
} |
319 |
as_nop=as_fn_nop |
320 |
|
321 |
# as_fn_mkdir_p |
322 |
# ------------- |
323 |
# Create "$as_dir" as a directory, including parents if necessary. |
324 |
as_fn_mkdir_p () |
325 |
{ |
326 |
|
327 |
case $as_dir in #( |
328 |
-*) as_dir=./$as_dir;; |
329 |
esac |
330 |
test -d "$as_dir" || eval $as_mkdir_p || { |
331 |
as_dirs= |
332 |
while :; do |
333 |
case $as_dir in #( |
334 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
335 |
*) as_qdir=$as_dir;; |
336 |
esac |
337 |
as_dirs="'$as_qdir' $as_dirs" |
338 |
as_dir=`$as_dirname -- "$as_dir" || |
339 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
340 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
341 |
X"$as_dir" : 'X\(//\)$' \| \ |
342 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
343 |
printf "%s\n" X"$as_dir" | |
344 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
345 |
s//\1/ |
346 |
q |
347 |
} |
348 |
/^X\(\/\/\)[^/].*/{ |
349 |
s//\1/ |
350 |
q |
351 |
} |
352 |
/^X\(\/\/\)$/{ |
353 |
s//\1/ |
354 |
q |
355 |
} |
356 |
/^X\(\/\).*/{ |
357 |
s//\1/ |
358 |
q |
359 |
} |
360 |
s/.*/./; q'` |
361 |
test -d "$as_dir" && break |
362 |
done |
363 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
364 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
365 |
|
366 |
|
367 |
} # as_fn_mkdir_p |
368 |
|
369 |
# as_fn_executable_p FILE |
370 |
# ----------------------- |
371 |
# Test if FILE is an executable regular file. |
372 |
as_fn_executable_p () |
373 |
{ |
374 |
test -f "$1" && test -x "$1" |
375 |
} # as_fn_executable_p |
376 |
# as_fn_append VAR VALUE |
377 |
# ---------------------- |
378 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
379 |
# advantage of any shell optimizations that allow amortized linear growth over |
380 |
# repeated appends, instead of the typical quadratic growth present in naive |
381 |
# implementations. |
382 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
383 |
then : |
384 |
eval 'as_fn_append () |
385 |
{ |
386 |
eval $1+=\$2 |
387 |
}' |
388 |
else $as_nop |
389 |
as_fn_append () |
390 |
{ |
391 |
eval $1=\$$1\$2 |
392 |
} |
393 |
fi # as_fn_append |
394 |
|
395 |
# as_fn_arith ARG... |
396 |
# ------------------ |
397 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
398 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
399 |
# must be portable across $(()) and expr. |
400 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
401 |
then : |
402 |
eval 'as_fn_arith () |
403 |
{ |
404 |
as_val=$(( $* )) |
405 |
}' |
406 |
else $as_nop |
407 |
as_fn_arith () |
408 |
{ |
409 |
as_val=`expr "$@" || test $? -eq 1` |
410 |
} |
411 |
fi # as_fn_arith |
412 |
|
413 |
# as_fn_nop |
414 |
# --------- |
415 |
# Do nothing but, unlike ":", preserve the value of $?. |
416 |
as_fn_nop () |
417 |
{ |
418 |
return $? |
419 |
} |
420 |
as_nop=as_fn_nop |
421 |
|
422 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
423 |
# ---------------------------------------- |
424 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
425 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
426 |
# script with STATUS, using 1 if that was 0. |
427 |
as_fn_error () |
428 |
{ |
429 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
430 |
if test "$4"; then |
431 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
432 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
433 |
fi |
434 |
printf "%s\n" "$as_me: error: $2" >&2 |
435 |
as_fn_exit $as_status |
436 |
} # as_fn_error |
437 |
|
438 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
439 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
440 |
as_expr=expr |
441 |
else |
442 |
as_expr=false |
443 |
fi |
444 |
|
445 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
446 |
as_basename=basename |
447 |
else |
448 |
as_basename=false |
449 |
fi |
450 |
|
451 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
452 |
as_dirname=dirname |
453 |
else |
454 |
as_dirname=false |
455 |
fi |
456 |
|
457 |
as_me=`$as_basename -- "$0" || |
458 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
459 |
X"$0" : 'X\(//\)$' \| \ |
460 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
461 |
printf "%s\n" X/"$0" | |
462 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
463 |
s//\1/ |
464 |
q |
465 |
} |
466 |
/^X\/\(\/\/\)$/{ |
467 |
s//\1/ |
468 |
q |
469 |
} |
470 |
/^X\/\(\/\).*/{ |
471 |
s//\1/ |
472 |
q |
473 |
} |
474 |
s/.*/./; q'` |
475 |
|
476 |
# Avoid depending upon Character Ranges. |
477 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
478 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
479 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
480 |
as_cr_digits='0123456789' |
481 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
482 |
|
483 |
|
484 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
485 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
486 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
487 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
488 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
489 |
sed -n ' |
490 |
p |
491 |
/[$]LINENO/= |
492 |
' <$as_myself | |
493 |
sed ' |
494 |
s/[$]LINENO.*/&-/ |
495 |
t lineno |
496 |
b |
497 |
:lineno |
498 |
N |
499 |
:loop |
500 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
501 |
t loop |
502 |
s/-\n.*// |
503 |
' >$as_me.lineno && |
504 |
chmod +x "$as_me.lineno" || |
505 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
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 |
511 |
# Don't try to exec as it changes $[0], causing all sort of problems |
512 |
# (the dirname of $[0] is not the place where we might find the |
513 |
# original and so on. Autoconf is especially sensitive to this). |
514 |
. "./$as_me.lineno" |
515 |
# Exit status is that of the last command. |
516 |
exit |
517 |
} |
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. |
523 |
ECHO_C= ECHO_N= ECHO_T= |
524 |
case `echo -n x` in #((((( |
525 |
-n*) |
526 |
case `echo 'xy\c'` in |
527 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
528 |
xy) ECHO_C='\c';; |
529 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
530 |
ECHO_T=' ';; |
531 |
esac;; |
532 |
*) |
533 |
ECHO_N='-n';; |
534 |
esac |
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. |
539 |
as_echo='printf %s\n' |
540 |
as_echo_n='printf %s' |
541 |
|
542 |
|
543 |
rm -f conf$$ conf$$.exe conf$$.file |
544 |
if test -d conf$$.dir; then |
545 |
rm -f conf$$.dir/conf$$.file |
546 |
else |
547 |
rm -f conf$$.dir |
548 |
mkdir conf$$.dir 2>/dev/null |
549 |
fi |
550 |
if (echo >conf$$.file) 2>/dev/null; then |
551 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
552 |
as_ln_s='ln -s' |
553 |
# ... but there are two gotchas: |
554 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
555 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
556 |
# In both cases, we have to default to `cp -pR'. |
557 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
558 |
as_ln_s='cp -pR' |
559 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
560 |
as_ln_s=ln |
561 |
else |
562 |
as_ln_s='cp -pR' |
563 |
fi |
564 |
else |
565 |
as_ln_s='cp -pR' |
566 |
fi |
567 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
568 |
rmdir conf$$.dir 2>/dev/null |
569 |
|
570 |
if mkdir -p . 2>/dev/null; then |
571 |
as_mkdir_p='mkdir -p "$as_dir"' |
572 |
else |
573 |
test -d ./-p && rmdir ./-p |
574 |
as_mkdir_p=false |
575 |
fi |
576 |
|
577 |
as_test_x='test -x' |
578 |
as_executable_p=as_fn_executable_p |
579 |
|
580 |
# Sed expression to map a string onto a valid CPP name. |
581 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
582 |
|
583 |
# Sed expression to map a string onto a valid variable name. |
584 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
585 |
|
586 |
|
587 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
588 |
exec 6>&1 |
589 |
|
590 |
# Name of the host. |
591 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
592 |
# so uname gets run too. |
593 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
594 |
|
595 |
# |
596 |
# Initializations. |
597 |
# |
598 |
ac_default_prefix=/usr/local |
599 |
ac_clean_files= |
600 |
ac_config_libobj_dir=. |
601 |
LIBOBJS= |
602 |
cross_compiling=no |
603 |
subdirs= |
604 |
MFLAGS= |
605 |
MAKEFLAGS= |
606 |
|
607 |
# Identity of this package. |
608 |
PACKAGE_NAME='' |
609 |
PACKAGE_TARNAME='' |
610 |
PACKAGE_VERSION='' |
611 |
PACKAGE_STRING='' |
612 |
PACKAGE_BUGREPORT='' |
613 |
PACKAGE_URL='' |
614 |
|
615 |
ac_unique_file="libeio/eio.h" |
616 |
# Factoring default headers for most tests. |
617 |
ac_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 |
|
647 |
ac_header_c_list= |
648 |
ac_subst_vars='LTLIBOBJS |
649 |
LIBOBJS |
650 |
OBJEXT |
651 |
EXEEXT |
652 |
ac_ct_CC |
653 |
CPPFLAGS |
654 |
LDFLAGS |
655 |
CFLAGS |
656 |
CC |
657 |
target_alias |
658 |
host_alias |
659 |
build_alias |
660 |
LIBS |
661 |
ECHO_T |
662 |
ECHO_N |
663 |
ECHO_C |
664 |
DEFS |
665 |
mandir |
666 |
localedir |
667 |
libdir |
668 |
psdir |
669 |
pdfdir |
670 |
dvidir |
671 |
htmldir |
672 |
infodir |
673 |
docdir |
674 |
oldincludedir |
675 |
includedir |
676 |
runstatedir |
677 |
localstatedir |
678 |
sharedstatedir |
679 |
sysconfdir |
680 |
datadir |
681 |
datarootdir |
682 |
libexecdir |
683 |
sbindir |
684 |
bindir |
685 |
program_transform_name |
686 |
prefix |
687 |
exec_prefix |
688 |
PACKAGE_URL |
689 |
PACKAGE_BUGREPORT |
690 |
PACKAGE_STRING |
691 |
PACKAGE_VERSION |
692 |
PACKAGE_TARNAME |
693 |
PACKAGE_NAME |
694 |
PATH_SEPARATOR |
695 |
SHELL' |
696 |
ac_subst_files='' |
697 |
ac_user_opts=' |
698 |
enable_option_checking |
699 |
' |
700 |
ac_precious_vars='build_alias |
701 |
host_alias |
702 |
target_alias |
703 |
CC |
704 |
CFLAGS |
705 |
LDFLAGS |
706 |
LIBS |
707 |
CPPFLAGS' |
708 |
|
709 |
|
710 |
# Initialize some variables set by options. |
711 |
ac_init_help= |
712 |
ac_init_version=false |
713 |
ac_unrecognized_opts= |
714 |
ac_unrecognized_sep= |
715 |
# The variables have the same names as the options, with |
716 |
# dashes changed to underlines. |
717 |
cache_file=/dev/null |
718 |
exec_prefix=NONE |
719 |
no_create= |
720 |
no_recursion= |
721 |
prefix=NONE |
722 |
program_prefix=NONE |
723 |
program_suffix=NONE |
724 |
program_transform_name=s,x,x, |
725 |
silent= |
726 |
site= |
727 |
srcdir= |
728 |
verbose= |
729 |
x_includes=NONE |
730 |
x_libraries=NONE |
731 |
|
732 |
# Installation directory options. |
733 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
734 |
# and all the variables that are supposed to be based on exec_prefix |
735 |
# by default will actually change. |
736 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
737 |
# (The list follows the same order as the GNU Coding Standards.) |
738 |
bindir='${exec_prefix}/bin' |
739 |
sbindir='${exec_prefix}/sbin' |
740 |
libexecdir='${exec_prefix}/libexec' |
741 |
datarootdir='${prefix}/share' |
742 |
datadir='${datarootdir}' |
743 |
sysconfdir='${prefix}/etc' |
744 |
sharedstatedir='${prefix}/com' |
745 |
localstatedir='${prefix}/var' |
746 |
runstatedir='${localstatedir}/run' |
747 |
includedir='${prefix}/include' |
748 |
oldincludedir='/usr/include' |
749 |
docdir='${datarootdir}/doc/${PACKAGE}' |
750 |
infodir='${datarootdir}/info' |
751 |
htmldir='${docdir}' |
752 |
dvidir='${docdir}' |
753 |
pdfdir='${docdir}' |
754 |
psdir='${docdir}' |
755 |
libdir='${exec_prefix}/lib' |
756 |
localedir='${datarootdir}/locale' |
757 |
mandir='${datarootdir}/man' |
758 |
|
759 |
ac_prev= |
760 |
ac_dashdash= |
761 |
for ac_option |
762 |
do |
763 |
# If the previous option needs an argument, assign it. |
764 |
if test -n "$ac_prev"; then |
765 |
eval $ac_prev=\$ac_option |
766 |
ac_prev= |
767 |
continue |
768 |
fi |
769 |
|
770 |
case $ac_option in |
771 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
772 |
*=) ac_optarg= ;; |
773 |
*) ac_optarg=yes ;; |
774 |
esac |
775 |
|
776 |
case $ac_dashdash$ac_option in |
777 |
--) |
778 |
ac_dashdash=yes ;; |
779 |
|
780 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
781 |
ac_prev=bindir ;; |
782 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
783 |
bindir=$ac_optarg ;; |
784 |
|
785 |
-build | --build | --buil | --bui | --bu) |
786 |
ac_prev=build_alias ;; |
787 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
788 |
build_alias=$ac_optarg ;; |
789 |
|
790 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
791 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
792 |
ac_prev=cache_file ;; |
793 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
794 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
795 |
cache_file=$ac_optarg ;; |
796 |
|
797 |
--config-cache | -C) |
798 |
cache_file=config.cache ;; |
799 |
|
800 |
-datadir | --datadir | --datadi | --datad) |
801 |
ac_prev=datadir ;; |
802 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
803 |
datadir=$ac_optarg ;; |
804 |
|
805 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
806 |
| --dataroo | --dataro | --datar) |
807 |
ac_prev=datarootdir ;; |
808 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
809 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
810 |
datarootdir=$ac_optarg ;; |
811 |
|
812 |
-disable-* | --disable-*) |
813 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
814 |
# Reject names that are not valid shell variable names. |
815 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
816 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
817 |
ac_useropt_orig=$ac_useropt |
818 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
819 |
case $ac_user_opts in |
820 |
*" |
821 |
"enable_$ac_useropt" |
822 |
"*) ;; |
823 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
824 |
ac_unrecognized_sep=', ';; |
825 |
esac |
826 |
eval enable_$ac_useropt=no ;; |
827 |
|
828 |
-docdir | --docdir | --docdi | --doc | --do) |
829 |
ac_prev=docdir ;; |
830 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
831 |
docdir=$ac_optarg ;; |
832 |
|
833 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
834 |
ac_prev=dvidir ;; |
835 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
836 |
dvidir=$ac_optarg ;; |
837 |
|
838 |
-enable-* | --enable-*) |
839 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
840 |
# Reject names that are not valid shell variable names. |
841 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
842 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
843 |
ac_useropt_orig=$ac_useropt |
844 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
845 |
case $ac_user_opts in |
846 |
*" |
847 |
"enable_$ac_useropt" |
848 |
"*) ;; |
849 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
850 |
ac_unrecognized_sep=', ';; |
851 |
esac |
852 |
eval enable_$ac_useropt=\$ac_optarg ;; |
853 |
|
854 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
855 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
856 |
| --exec | --exe | --ex) |
857 |
ac_prev=exec_prefix ;; |
858 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
859 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
860 |
| --exec=* | --exe=* | --ex=*) |
861 |
exec_prefix=$ac_optarg ;; |
862 |
|
863 |
-gas | --gas | --ga | --g) |
864 |
# Obsolete; use --with-gas. |
865 |
with_gas=yes ;; |
866 |
|
867 |
-help | --help | --hel | --he | -h) |
868 |
ac_init_help=long ;; |
869 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
870 |
ac_init_help=recursive ;; |
871 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
872 |
ac_init_help=short ;; |
873 |
|
874 |
-host | --host | --hos | --ho) |
875 |
ac_prev=host_alias ;; |
876 |
-host=* | --host=* | --hos=* | --ho=*) |
877 |
host_alias=$ac_optarg ;; |
878 |
|
879 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
880 |
ac_prev=htmldir ;; |
881 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
882 |
| --ht=*) |
883 |
htmldir=$ac_optarg ;; |
884 |
|
885 |
-includedir | --includedir | --includedi | --included | --include \ |
886 |
| --includ | --inclu | --incl | --inc) |
887 |
ac_prev=includedir ;; |
888 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
889 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
890 |
includedir=$ac_optarg ;; |
891 |
|
892 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
893 |
ac_prev=infodir ;; |
894 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
895 |
infodir=$ac_optarg ;; |
896 |
|
897 |
-libdir | --libdir | --libdi | --libd) |
898 |
ac_prev=libdir ;; |
899 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
900 |
libdir=$ac_optarg ;; |
901 |
|
902 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
903 |
| --libexe | --libex | --libe) |
904 |
ac_prev=libexecdir ;; |
905 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
906 |
| --libexe=* | --libex=* | --libe=*) |
907 |
libexecdir=$ac_optarg ;; |
908 |
|
909 |
-localedir | --localedir | --localedi | --localed | --locale) |
910 |
ac_prev=localedir ;; |
911 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
912 |
localedir=$ac_optarg ;; |
913 |
|
914 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
915 |
| --localstate | --localstat | --localsta | --localst | --locals) |
916 |
ac_prev=localstatedir ;; |
917 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
918 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
919 |
localstatedir=$ac_optarg ;; |
920 |
|
921 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
922 |
ac_prev=mandir ;; |
923 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
924 |
mandir=$ac_optarg ;; |
925 |
|
926 |
-nfp | --nfp | --nf) |
927 |
# Obsolete; use --without-fp. |
928 |
with_fp=no ;; |
929 |
|
930 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
931 |
| --no-cr | --no-c | -n) |
932 |
no_create=yes ;; |
933 |
|
934 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
935 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
936 |
no_recursion=yes ;; |
937 |
|
938 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
939 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
940 |
| --oldin | --oldi | --old | --ol | --o) |
941 |
ac_prev=oldincludedir ;; |
942 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
943 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
944 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
945 |
oldincludedir=$ac_optarg ;; |
946 |
|
947 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
948 |
ac_prev=prefix ;; |
949 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
950 |
prefix=$ac_optarg ;; |
951 |
|
952 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
953 |
| --program-pre | --program-pr | --program-p) |
954 |
ac_prev=program_prefix ;; |
955 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
956 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
957 |
program_prefix=$ac_optarg ;; |
958 |
|
959 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
960 |
| --program-suf | --program-su | --program-s) |
961 |
ac_prev=program_suffix ;; |
962 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
963 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
964 |
program_suffix=$ac_optarg ;; |
965 |
|
966 |
-program-transform-name | --program-transform-name \ |
967 |
| --program-transform-nam | --program-transform-na \ |
968 |
| --program-transform-n | --program-transform- \ |
969 |
| --program-transform | --program-transfor \ |
970 |
| --program-transfo | --program-transf \ |
971 |
| --program-trans | --program-tran \ |
972 |
| --progr-tra | --program-tr | --program-t) |
973 |
ac_prev=program_transform_name ;; |
974 |
-program-transform-name=* | --program-transform-name=* \ |
975 |
| --program-transform-nam=* | --program-transform-na=* \ |
976 |
| --program-transform-n=* | --program-transform-=* \ |
977 |
| --program-transform=* | --program-transfor=* \ |
978 |
| --program-transfo=* | --program-transf=* \ |
979 |
| --program-trans=* | --program-tran=* \ |
980 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
981 |
program_transform_name=$ac_optarg ;; |
982 |
|
983 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
984 |
ac_prev=pdfdir ;; |
985 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
986 |
pdfdir=$ac_optarg ;; |
987 |
|
988 |
-psdir | --psdir | --psdi | --psd | --ps) |
989 |
ac_prev=psdir ;; |
990 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
991 |
psdir=$ac_optarg ;; |
992 |
|
993 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
994 |
| -silent | --silent | --silen | --sile | --sil) |
995 |
silent=yes ;; |
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 |
|
1006 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1007 |
ac_prev=sbindir ;; |
1008 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1009 |
| --sbi=* | --sb=*) |
1010 |
sbindir=$ac_optarg ;; |
1011 |
|
1012 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1013 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1014 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1015 |
| --sha | --sh) |
1016 |
ac_prev=sharedstatedir ;; |
1017 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1018 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1019 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1020 |
| --sha=* | --sh=*) |
1021 |
sharedstatedir=$ac_optarg ;; |
1022 |
|
1023 |
-site | --site | --sit) |
1024 |
ac_prev=site ;; |
1025 |
-site=* | --site=* | --sit=*) |
1026 |
site=$ac_optarg ;; |
1027 |
|
1028 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1029 |
ac_prev=srcdir ;; |
1030 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1031 |
srcdir=$ac_optarg ;; |
1032 |
|
1033 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1034 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1035 |
ac_prev=sysconfdir ;; |
1036 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1037 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1038 |
sysconfdir=$ac_optarg ;; |
1039 |
|
1040 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1041 |
ac_prev=target_alias ;; |
1042 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1043 |
target_alias=$ac_optarg ;; |
1044 |
|
1045 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1046 |
verbose=yes ;; |
1047 |
|
1048 |
-version | --version | --versio | --versi | --vers | -V) |
1049 |
ac_init_version=: ;; |
1050 |
|
1051 |
-with-* | --with-*) |
1052 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1053 |
# Reject names that are not valid shell variable names. |
1054 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1055 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
1056 |
ac_useropt_orig=$ac_useropt |
1057 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1058 |
case $ac_user_opts in |
1059 |
*" |
1060 |
"with_$ac_useropt" |
1061 |
"*) ;; |
1062 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1063 |
ac_unrecognized_sep=', ';; |
1064 |
esac |
1065 |
eval with_$ac_useropt=\$ac_optarg ;; |
1066 |
|
1067 |
-without-* | --without-*) |
1068 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1069 |
# Reject names that are not valid shell variable names. |
1070 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1071 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
1072 |
ac_useropt_orig=$ac_useropt |
1073 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1074 |
case $ac_user_opts in |
1075 |
*" |
1076 |
"with_$ac_useropt" |
1077 |
"*) ;; |
1078 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1079 |
ac_unrecognized_sep=', ';; |
1080 |
esac |
1081 |
eval with_$ac_useropt=no ;; |
1082 |
|
1083 |
--x) |
1084 |
# Obsolete; use --with-x. |
1085 |
with_x=yes ;; |
1086 |
|
1087 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1088 |
| --x-incl | --x-inc | --x-in | --x-i) |
1089 |
ac_prev=x_includes ;; |
1090 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1091 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1092 |
x_includes=$ac_optarg ;; |
1093 |
|
1094 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1095 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1096 |
ac_prev=x_libraries ;; |
1097 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1098 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1099 |
x_libraries=$ac_optarg ;; |
1100 |
|
1101 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1102 |
Try \`$0 --help' for more information" |
1103 |
;; |
1104 |
|
1105 |
*=*) |
1106 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1107 |
# Reject names that are not valid shell variable names. |
1108 |
case $ac_envvar in #( |
1109 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1110 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1111 |
esac |
1112 |
eval $ac_envvar=\$ac_optarg |
1113 |
export $ac_envvar ;; |
1114 |
|
1115 |
*) |
1116 |
# FIXME: should be removed in autoconf 3.0. |
1117 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1118 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1119 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1120 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1121 |
;; |
1122 |
|
1123 |
esac |
1124 |
done |
1125 |
|
1126 |
if test -n "$ac_prev"; then |
1127 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1128 |
as_fn_error $? "missing argument to $ac_option" |
1129 |
fi |
1130 |
|
1131 |
if test -n "$ac_unrecognized_opts"; then |
1132 |
case $enable_option_checking in |
1133 |
no) ;; |
1134 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1135 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1136 |
esac |
1137 |
fi |
1138 |
|
1139 |
# Check all directory arguments for consistency. |
1140 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1141 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1142 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1143 |
libdir localedir mandir runstatedir |
1144 |
do |
1145 |
eval ac_val=\$$ac_var |
1146 |
# Remove trailing slashes. |
1147 |
case $ac_val in |
1148 |
*/ ) |
1149 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1150 |
eval $ac_var=\$ac_val;; |
1151 |
esac |
1152 |
# Be sure to have absolute directory names. |
1153 |
case $ac_val in |
1154 |
[\\/$]* | ?:[\\/]* ) continue;; |
1155 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1156 |
esac |
1157 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1158 |
done |
1159 |
|
1160 |
# There might be people who depend on the old broken behavior: `$host' |
1161 |
# used to hold the argument of --host etc. |
1162 |
# FIXME: To remove some day. |
1163 |
build=$build_alias |
1164 |
host=$host_alias |
1165 |
target=$target_alias |
1166 |
|
1167 |
# FIXME: To remove some day. |
1168 |
if test "x$host_alias" != x; then |
1169 |
if test "x$build_alias" = x; then |
1170 |
cross_compiling=maybe |
1171 |
elif test "x$build_alias" != "x$host_alias"; then |
1172 |
cross_compiling=yes |
1173 |
fi |
1174 |
fi |
1175 |
|
1176 |
ac_tool_prefix= |
1177 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1178 |
|
1179 |
test "$silent" = yes && exec 6>/dev/null |
1180 |
|
1181 |
|
1182 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1183 |
ac_ls_di=`ls -di .` && |
1184 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1185 |
as_fn_error $? "working directory cannot be determined" |
1186 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1187 |
as_fn_error $? "pwd does not report name of working directory" |
1188 |
|
1189 |
|
1190 |
# Find the source files, if location was not specified. |
1191 |
if test -z "$srcdir"; then |
1192 |
ac_srcdir_defaulted=yes |
1193 |
# Try the directory containing this script, then the parent directory. |
1194 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1195 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1196 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1197 |
X"$as_myself" : 'X\(//\)$' \| \ |
1198 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1199 |
printf "%s\n" X"$as_myself" | |
1200 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1201 |
s//\1/ |
1202 |
q |
1203 |
} |
1204 |
/^X\(\/\/\)[^/].*/{ |
1205 |
s//\1/ |
1206 |
q |
1207 |
} |
1208 |
/^X\(\/\/\)$/{ |
1209 |
s//\1/ |
1210 |
q |
1211 |
} |
1212 |
/^X\(\/\).*/{ |
1213 |
s//\1/ |
1214 |
q |
1215 |
} |
1216 |
s/.*/./; q'` |
1217 |
srcdir=$ac_confdir |
1218 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1219 |
srcdir=.. |
1220 |
fi |
1221 |
else |
1222 |
ac_srcdir_defaulted=no |
1223 |
fi |
1224 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1225 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1226 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1227 |
fi |
1228 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1229 |
ac_abs_confdir=`( |
1230 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1231 |
pwd)` |
1232 |
# When building in place, set srcdir=. |
1233 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1234 |
srcdir=. |
1235 |
fi |
1236 |
# Remove unnecessary trailing slashes from srcdir. |
1237 |
# Double slashes in file names in object file debugging info |
1238 |
# mess up M-x gdb in Emacs. |
1239 |
case $srcdir in |
1240 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1241 |
esac |
1242 |
for ac_var in $ac_precious_vars; do |
1243 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1244 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1245 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1246 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1247 |
done |
1248 |
|
1249 |
# |
1250 |
# Report the --help message. |
1251 |
# |
1252 |
if test "$ac_init_help" = "long"; then |
1253 |
# Omit some internal or obsolete options to make the list less imposing. |
1254 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1255 |
cat <<_ACEOF |
1256 |
\`configure' configures this package to adapt to many kinds of systems. |
1257 |
|
1258 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1259 |
|
1260 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1261 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1262 |
|
1263 |
Defaults for the options are specified in brackets. |
1264 |
|
1265 |
Configuration: |
1266 |
-h, --help display this help and exit |
1267 |
--help=short display options specific to this package |
1268 |
--help=recursive display the short help of all the included packages |
1269 |
-V, --version display version information and exit |
1270 |
-q, --quiet, --silent do not print \`checking ...' messages |
1271 |
--cache-file=FILE cache test results in FILE [disabled] |
1272 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1273 |
-n, --no-create do not create output files |
1274 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1275 |
|
1276 |
Installation directories: |
1277 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1278 |
[$ac_default_prefix] |
1279 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1280 |
[PREFIX] |
1281 |
|
1282 |
By default, \`make install' will install all the files in |
1283 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1284 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1285 |
for instance \`--prefix=\$HOME'. |
1286 |
|
1287 |
For better control, use the options below. |
1288 |
|
1289 |
Fine tuning of the installation directories: |
1290 |
--bindir=DIR user executables [EPREFIX/bin] |
1291 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1292 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1293 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1294 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1295 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1296 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1297 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1298 |
--includedir=DIR C header files [PREFIX/include] |
1299 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1300 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1301 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1302 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1303 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1304 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1305 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1306 |
--htmldir=DIR html documentation [DOCDIR] |
1307 |
--dvidir=DIR dvi documentation [DOCDIR] |
1308 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1309 |
--psdir=DIR ps documentation [DOCDIR] |
1310 |
_ACEOF |
1311 |
|
1312 |
cat <<\_ACEOF |
1313 |
_ACEOF |
1314 |
fi |
1315 |
|
1316 |
if test -n "$ac_init_help"; then |
1317 |
|
1318 |
cat <<\_ACEOF |
1319 |
|
1320 |
Some influential environment variables: |
1321 |
CC C compiler command |
1322 |
CFLAGS C compiler flags |
1323 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1324 |
nonstandard directory <lib dir> |
1325 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1326 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1327 |
you have headers in a nonstandard directory <include dir> |
1328 |
|
1329 |
Use these variables to override the choices made by `configure' or to help |
1330 |
it to find libraries and programs with nonstandard names/locations. |
1331 |
|
1332 |
Report bugs to the package provider. |
1333 |
_ACEOF |
1334 |
ac_status=$? |
1335 |
fi |
1336 |
|
1337 |
if test "$ac_init_help" = "recursive"; then |
1338 |
# If there are subdirs, report their specific --help. |
1339 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1340 |
test -d "$ac_dir" || |
1341 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1342 |
continue |
1343 |
ac_builddir=. |
1344 |
|
1345 |
case "$ac_dir" in |
1346 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1347 |
*) |
1348 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1349 |
# A ".." for each directory in $ac_dir_suffix. |
1350 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1351 |
case $ac_top_builddir_sub in |
1352 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1353 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1354 |
esac ;; |
1355 |
esac |
1356 |
ac_abs_top_builddir=$ac_pwd |
1357 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1358 |
# for backward compatibility: |
1359 |
ac_top_builddir=$ac_top_build_prefix |
1360 |
|
1361 |
case $srcdir in |
1362 |
.) # We are building in place. |
1363 |
ac_srcdir=. |
1364 |
ac_top_srcdir=$ac_top_builddir_sub |
1365 |
ac_abs_top_srcdir=$ac_pwd ;; |
1366 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1367 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1368 |
ac_top_srcdir=$srcdir |
1369 |
ac_abs_top_srcdir=$srcdir ;; |
1370 |
*) # Relative name. |
1371 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1372 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1373 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1374 |
esac |
1375 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1376 |
|
1377 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1378 |
# Check for configure.gnu first; this name is used for a wrapper for |
1379 |
# Metaconfig's "Configure" on case-insensitive file systems. |
1380 |
if test -f "$ac_srcdir/configure.gnu"; then |
1381 |
echo && |
1382 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1383 |
elif test -f "$ac_srcdir/configure"; then |
1384 |
echo && |
1385 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1386 |
else |
1387 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1388 |
fi || ac_status=$? |
1389 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1390 |
done |
1391 |
fi |
1392 |
|
1393 |
test -n "$ac_init_help" && exit $ac_status |
1394 |
if $ac_init_version; then |
1395 |
cat <<\_ACEOF |
1396 |
configure |
1397 |
generated by GNU Autoconf 2.71 |
1398 |
|
1399 |
Copyright (C) 2021 Free Software Foundation, Inc. |
1400 |
This configure script is free software; the Free Software Foundation |
1401 |
gives unlimited permission to copy, distribute and modify it. |
1402 |
_ACEOF |
1403 |
exit |
1404 |
fi |
1405 |
|
1406 |
## ------------------------ ## |
1407 |
## Autoconf initialization. ## |
1408 |
## ------------------------ ## |
1409 |
|
1410 |
# ac_fn_c_try_compile LINENO |
1411 |
# -------------------------- |
1412 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1413 |
ac_fn_c_try_compile () |
1414 |
{ |
1415 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1416 |
rm -f conftest.$ac_objext conftest.beam |
1417 |
if { { ac_try="$ac_compile" |
1418 |
case "(($ac_try" in |
1419 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1420 |
*) ac_try_echo=$ac_try;; |
1421 |
esac |
1422 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1423 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1424 |
(eval "$ac_compile") 2>conftest.err |
1425 |
ac_status=$? |
1426 |
if test -s conftest.err; then |
1427 |
grep -v '^ *+' conftest.err >conftest.er1 |
1428 |
cat conftest.er1 >&5 |
1429 |
mv -f conftest.er1 conftest.err |
1430 |
fi |
1431 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1432 |
test $ac_status = 0; } && { |
1433 |
test -z "$ac_c_werror_flag" || |
1434 |
test ! -s conftest.err |
1435 |
} && test -s conftest.$ac_objext |
1436 |
then : |
1437 |
ac_retval=0 |
1438 |
else $as_nop |
1439 |
printf "%s\n" "$as_me: failed program was:" >&5 |
1440 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1441 |
|
1442 |
ac_retval=1 |
1443 |
fi |
1444 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1445 |
as_fn_set_status $ac_retval |
1446 |
|
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. |
1453 |
ac_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 |
1457 |
printf %s "checking for $2... " >&6; } |
1458 |
if eval test \${$3+y} |
1459 |
then : |
1460 |
printf %s "(cached) " >&6 |
1461 |
else $as_nop |
1462 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1463 |
/* end confdefs.h. */ |
1464 |
$4 |
1465 |
#include <$2> |
1466 |
_ACEOF |
1467 |
if ac_fn_c_try_compile "$LINENO" |
1468 |
then : |
1469 |
eval "$3=yes" |
1470 |
else $as_nop |
1471 |
eval "$3=no" |
1472 |
fi |
1473 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1474 |
fi |
1475 |
eval ac_res=\$$3 |
1476 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1477 |
printf "%s\n" "$ac_res" >&6; } |
1478 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1479 |
|
1480 |
} # ac_fn_c_check_header_compile |
1481 |
|
1482 |
# ac_fn_c_try_link LINENO |
1483 |
# ----------------------- |
1484 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1485 |
ac_fn_c_try_link () |
1486 |
{ |
1487 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1488 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1489 |
if { { ac_try="$ac_link" |
1490 |
case "(($ac_try" in |
1491 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1492 |
*) ac_try_echo=$ac_try;; |
1493 |
esac |
1494 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1495 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1496 |
(eval "$ac_link") 2>conftest.err |
1497 |
ac_status=$? |
1498 |
if test -s conftest.err; then |
1499 |
grep -v '^ *+' conftest.err >conftest.er1 |
1500 |
cat conftest.er1 >&5 |
1501 |
mv -f conftest.er1 conftest.err |
1502 |
fi |
1503 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1504 |
test $ac_status = 0; } && { |
1505 |
test -z "$ac_c_werror_flag" || |
1506 |
test ! -s conftest.err |
1507 |
} && test -s conftest$ac_exeext && { |
1508 |
test "$cross_compiling" = yes || |
1509 |
test -x conftest$ac_exeext |
1510 |
} |
1511 |
then : |
1512 |
ac_retval=0 |
1513 |
else $as_nop |
1514 |
printf "%s\n" "$as_me: failed program was:" >&5 |
1515 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1516 |
|
1517 |
ac_retval=1 |
1518 |
fi |
1519 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1520 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1521 |
# interfere with the next link command; also delete a directory that is |
1522 |
# left behind by Apple's compiler. We do this before executing the actions. |
1523 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1524 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1525 |
as_fn_set_status $ac_retval |
1526 |
|
1527 |
} # ac_fn_c_try_link |
1528 |
ac_configure_args_raw= |
1529 |
for ac_arg |
1530 |
do |
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'" |
1536 |
done |
1537 |
|
1538 |
case $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"`;; |
1546 |
esac |
1547 |
|
1548 |
cat >config.log <<_ACEOF |
1549 |
This file contains any messages produced by compilers while |
1550 |
running configure, to aid debugging if configure makes a mistake. |
1551 |
|
1552 |
It was created by $as_me, which was |
1553 |
generated by GNU Autoconf 2.71. Invocation command line was |
1554 |
|
1555 |
$ $0$ac_configure_args_raw |
1556 |
|
1557 |
_ACEOF |
1558 |
exec 5>>config.log |
1559 |
{ |
1560 |
cat <<_ASUNAME |
1561 |
## --------- ## |
1562 |
## Platform. ## |
1563 |
## --------- ## |
1564 |
|
1565 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1566 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1567 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1568 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1569 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1570 |
|
1571 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1572 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1573 |
|
1574 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1575 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1576 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1577 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1578 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1579 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1580 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1581 |
|
1582 |
_ASUNAME |
1583 |
|
1584 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1585 |
for as_dir in $PATH |
1586 |
do |
1587 |
IFS=$as_save_IFS |
1588 |
case $as_dir in #((( |
1589 |
'') as_dir=./ ;; |
1590 |
*/) ;; |
1591 |
*) as_dir=$as_dir/ ;; |
1592 |
esac |
1593 |
printf "%s\n" "PATH: $as_dir" |
1594 |
done |
1595 |
IFS=$as_save_IFS |
1596 |
|
1597 |
} >&5 |
1598 |
|
1599 |
cat >&5 <<_ACEOF |
1600 |
|
1601 |
|
1602 |
## ----------- ## |
1603 |
## Core tests. ## |
1604 |
## ----------- ## |
1605 |
|
1606 |
_ACEOF |
1607 |
|
1608 |
|
1609 |
# Keep a trace of the command line. |
1610 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1611 |
# Strip out --silent because we don't want to record it for future runs. |
1612 |
# Also quote any args containing shell meta-characters. |
1613 |
# Make two passes to allow for proper duplicate-argument suppression. |
1614 |
ac_configure_args= |
1615 |
ac_configure_args0= |
1616 |
ac_configure_args1= |
1617 |
ac_must_keep_next=false |
1618 |
for ac_pass in 1 2 |
1619 |
do |
1620 |
for ac_arg |
1621 |
do |
1622 |
case $ac_arg in |
1623 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1624 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1625 |
| -silent | --silent | --silen | --sile | --sil) |
1626 |
continue ;; |
1627 |
*\'*) |
1628 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1629 |
esac |
1630 |
case $ac_pass in |
1631 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1632 |
2) |
1633 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
1634 |
if test $ac_must_keep_next = true; then |
1635 |
ac_must_keep_next=false # Got value, back to normal. |
1636 |
else |
1637 |
case $ac_arg in |
1638 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1639 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1640 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1641 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1642 |
case "$ac_configure_args0 " in |
1643 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1644 |
esac |
1645 |
;; |
1646 |
-* ) ac_must_keep_next=true ;; |
1647 |
esac |
1648 |
fi |
1649 |
as_fn_append ac_configure_args " '$ac_arg'" |
1650 |
;; |
1651 |
esac |
1652 |
done |
1653 |
done |
1654 |
{ ac_configure_args0=; unset ac_configure_args0;} |
1655 |
{ ac_configure_args1=; unset ac_configure_args1;} |
1656 |
|
1657 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1658 |
# config.log. We remove comments because anyway the quotes in there |
1659 |
# would cause problems or look ugly. |
1660 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1661 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1662 |
trap 'exit_status=$? |
1663 |
# Sanitize IFS. |
1664 |
IFS=" "" $as_nl" |
1665 |
# Save into config.log some information that might help in debugging. |
1666 |
{ |
1667 |
echo |
1668 |
|
1669 |
printf "%s\n" "## ---------------- ## |
1670 |
## Cache variables. ## |
1671 |
## ---------------- ##" |
1672 |
echo |
1673 |
# The following way of writing the cache mishandles newlines in values, |
1674 |
( |
1675 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1676 |
eval ac_val=\$$ac_var |
1677 |
case $ac_val in #( |
1678 |
*${as_nl}*) |
1679 |
case $ac_var in #( |
1680 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1681 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1682 |
esac |
1683 |
case $ac_var in #( |
1684 |
_ | IFS | as_nl) ;; #( |
1685 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1686 |
*) { eval $ac_var=; unset $ac_var;} ;; |
1687 |
esac ;; |
1688 |
esac |
1689 |
done |
1690 |
(set) 2>&1 | |
1691 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1692 |
*${as_nl}ac_space=\ *) |
1693 |
sed -n \ |
1694 |
"s/'\''/'\''\\\\'\'''\''/g; |
1695 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1696 |
;; #( |
1697 |
*) |
1698 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1699 |
;; |
1700 |
esac | |
1701 |
sort |
1702 |
) |
1703 |
echo |
1704 |
|
1705 |
printf "%s\n" "## ----------------- ## |
1706 |
## Output variables. ## |
1707 |
## ----------------- ##" |
1708 |
echo |
1709 |
for ac_var in $ac_subst_vars |
1710 |
do |
1711 |
eval ac_val=\$$ac_var |
1712 |
case $ac_val in |
1713 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1714 |
esac |
1715 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
1716 |
done | sort |
1717 |
echo |
1718 |
|
1719 |
if test -n "$ac_subst_files"; then |
1720 |
printf "%s\n" "## ------------------- ## |
1721 |
## File substitutions. ## |
1722 |
## ------------------- ##" |
1723 |
echo |
1724 |
for ac_var in $ac_subst_files |
1725 |
do |
1726 |
eval ac_val=\$$ac_var |
1727 |
case $ac_val in |
1728 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1729 |
esac |
1730 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
1731 |
done | sort |
1732 |
echo |
1733 |
fi |
1734 |
|
1735 |
if test -s confdefs.h; then |
1736 |
printf "%s\n" "## ----------- ## |
1737 |
## confdefs.h. ## |
1738 |
## ----------- ##" |
1739 |
echo |
1740 |
cat confdefs.h |
1741 |
echo |
1742 |
fi |
1743 |
test "$ac_signal" != 0 && |
1744 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
1745 |
printf "%s\n" "$as_me: exit $exit_status" |
1746 |
} >&5 |
1747 |
rm -f core *.core core.conftest.* && |
1748 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1749 |
exit $exit_status |
1750 |
' 0 |
1751 |
for ac_signal in 1 2 13 15; do |
1752 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1753 |
done |
1754 |
ac_signal=0 |
1755 |
|
1756 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1757 |
rm -f -r conftest* confdefs.h |
1758 |
|
1759 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
1760 |
|
1761 |
# Predefined preprocessor variables. |
1762 |
|
1763 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
1764 |
|
1765 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
1766 |
|
1767 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
1768 |
|
1769 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
1770 |
|
1771 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
1772 |
|
1773 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
1774 |
|
1775 |
|
1776 |
# Let the site file select an alternate cache file if it wants to. |
1777 |
# Prefer an explicitly selected file to automatically selected ones. |
1778 |
if test -n "$CONFIG_SITE"; then |
1779 |
ac_site_files="$CONFIG_SITE" |
1780 |
elif test "x$prefix" != xNONE; then |
1781 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
1782 |
else |
1783 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1784 |
fi |
1785 |
|
1786 |
for ac_site_file in $ac_site_files |
1787 |
do |
1788 |
case $ac_site_file in #( |
1789 |
*/*) : |
1790 |
;; #( |
1791 |
*) : |
1792 |
ac_site_file=./$ac_site_file ;; |
1793 |
esac |
1794 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
1795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1796 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
1797 |
sed 's/^/| /' "$ac_site_file" >&5 |
1798 |
. "$ac_site_file" \ |
1799 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1800 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
1801 |
as_fn_error $? "failed to load site script $ac_site_file |
1802 |
See \`config.log' for more details" "$LINENO" 5; } |
1803 |
fi |
1804 |
done |
1805 |
|
1806 |
if test -r "$cache_file"; then |
1807 |
# Some versions of bash will fail to source /dev/null (special files |
1808 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1809 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1810 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1811 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
1812 |
case $cache_file in |
1813 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1814 |
*) . "./$cache_file";; |
1815 |
esac |
1816 |
fi |
1817 |
else |
1818 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1819 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
1820 |
>$cache_file |
1821 |
fi |
1822 |
|
1823 |
as_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) |
1825 |
ac_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> |
1835 |
struct stat; |
1836 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
1837 |
struct buf { int x; }; |
1838 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
1839 |
static char *e (p, i) |
1840 |
char **p; |
1841 |
int i; |
1842 |
{ |
1843 |
return p[i]; |
1844 |
} |
1845 |
static 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. */ |
1862 |
int 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'\'' |
1867 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
1868 |
|
1869 |
int test (int i, double x); |
1870 |
struct s1 {int (*f) (int a);}; |
1871 |
struct s2 {int (*f) (double a);}; |
1872 |
int 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). |
1876 |
ac_c_conftest_c89_main=' |
1877 |
ok |= (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) |
1881 |
ac_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> |
1888 |
extern int puts (const char *); |
1889 |
extern int printf (const char *, ...); |
1890 |
extern int dprintf (int, const char *, ...); |
1891 |
extern 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__)) |
1899 |
static void |
1900 |
test_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 |
1921 |
static long long int bignum = -9223372036854775807LL; |
1922 |
static unsigned long long int ubignum = BIG64; |
1923 |
|
1924 |
struct incomplete_array |
1925 |
{ |
1926 |
int datasize; |
1927 |
double data[]; |
1928 |
}; |
1929 |
|
1930 |
struct named_init { |
1931 |
int number; |
1932 |
const wchar_t *name; |
1933 |
double average; |
1934 |
}; |
1935 |
|
1936 |
typedef const char *ccp; |
1937 |
|
1938 |
static inline int |
1939 |
test_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. |
1950 |
static bool |
1951 |
test_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). |
1987 |
ac_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) |
2027 |
ac_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. |
2034 |
char _Alignas (double) aligned_as_double; |
2035 |
char _Alignas (0) no_special_alignment; |
2036 |
extern char aligned_as_int; |
2037 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
2038 |
|
2039 |
// Check _Alignof. |
2040 |
enum |
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. |
2049 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
2050 |
|
2051 |
// Check _Static_assert. |
2052 |
struct 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! |
2062 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
2063 |
|
2064 |
// Check duplicate typedefs. |
2065 |
typedef long *long_ptr; |
2066 |
typedef long int *long_ptr; |
2067 |
typedef long_ptr long_ptr; |
2068 |
|
2069 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
2070 |
struct 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). |
2081 |
ac_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). |
2091 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
2092 |
${ac_c_conftest_c99_globals} |
2093 |
${ac_c_conftest_c11_globals} |
2094 |
|
2095 |
int |
2096 |
main (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). |
2107 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
2108 |
${ac_c_conftest_c99_globals} |
2109 |
|
2110 |
int |
2111 |
main (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). |
2121 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
2122 |
|
2123 |
int |
2124 |
main (int argc, char **argv) |
2125 |
{ |
2126 |
int ok = 0; |
2127 |
${ac_c_conftest_c89_main} |
2128 |
return ok; |
2129 |
} |
2130 |
" |
2131 |
|
2132 |
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
2133 |
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
2134 |
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
2135 |
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
2136 |
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
2137 |
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
2138 |
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
2139 |
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
2140 |
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
2141 |
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
2142 |
# Check that the precious variables saved in the cache have kept the same |
2143 |
# value. |
2144 |
ac_cache_corrupted=false |
2145 |
for ac_var in $ac_precious_vars; do |
2146 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2147 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2148 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2149 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2150 |
case $ac_old_set,$ac_new_set in |
2151 |
set,) |
2152 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2153 |
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2154 |
ac_cache_corrupted=: ;; |
2155 |
,set) |
2156 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2157 |
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2158 |
ac_cache_corrupted=: ;; |
2159 |
,);; |
2160 |
*) |
2161 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2162 |
# differences in whitespace do not lead to failure. |
2163 |
ac_old_val_w=`echo x $ac_old_val` |
2164 |
ac_new_val_w=`echo x $ac_new_val` |
2165 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2167 |
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2168 |
ac_cache_corrupted=: |
2169 |
else |
2170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2171 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2172 |
eval $ac_var=\$ac_old_val |
2173 |
fi |
2174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2175 |
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
2176 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2177 |
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
2178 |
fi;; |
2179 |
esac |
2180 |
# Pass precious variables to config.status. |
2181 |
if test "$ac_new_set" = set; then |
2182 |
case $ac_new_val in |
2183 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2184 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2185 |
esac |
2186 |
case " $ac_configure_args " in |
2187 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2188 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2189 |
esac |
2190 |
fi |
2191 |
done |
2192 |
if $ac_cache_corrupted; then |
2193 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2194 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2196 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
2197 |
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
2198 |
and start over" "$LINENO" 5 |
2199 |
fi |
2200 |
## -------------------- ## |
2201 |
## Main body of script. ## |
2202 |
## -------------------- ## |
2203 |
|
2204 |
ac_ext=c |
2205 |
ac_cpp='$CPP $CPPFLAGS' |
2206 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2207 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2208 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2209 |
|
2210 |
|
2211 |
|
2212 |
ac_config_headers="$ac_config_headers config.h" |
2213 |
|
2214 |
|
2215 |
|
2216 |
|
2217 |
|
2218 |
|
2219 |
|
2220 |
|
2221 |
|
2222 |
|
2223 |
|
2224 |
|
2225 |
ac_ext=c |
2226 |
ac_cpp='$CPP $CPPFLAGS' |
2227 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2228 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2229 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2230 |
if test -n "$ac_tool_prefix"; then |
2231 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2232 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2233 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2234 |
printf %s "checking for $ac_word... " >&6; } |
2235 |
if test ${ac_cv_prog_CC+y} |
2236 |
then : |
2237 |
printf %s "(cached) " >&6 |
2238 |
else $as_nop |
2239 |
if test -n "$CC"; then |
2240 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2241 |
else |
2242 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2243 |
for as_dir in $PATH |
2244 |
do |
2245 |
IFS=$as_save_IFS |
2246 |
case $as_dir in #((( |
2247 |
'') as_dir=./ ;; |
2248 |
*/) ;; |
2249 |
*) as_dir=$as_dir/ ;; |
2250 |
esac |
2251 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2252 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2253 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2254 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2255 |
break 2 |
2256 |
fi |
2257 |
done |
2258 |
done |
2259 |
IFS=$as_save_IFS |
2260 |
|
2261 |
fi |
2262 |
fi |
2263 |
CC=$ac_cv_prog_CC |
2264 |
if test -n "$CC"; then |
2265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2266 |
printf "%s\n" "$CC" >&6; } |
2267 |
else |
2268 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2269 |
printf "%s\n" "no" >&6; } |
2270 |
fi |
2271 |
|
2272 |
|
2273 |
fi |
2274 |
if test -z "$ac_cv_prog_CC"; then |
2275 |
ac_ct_CC=$CC |
2276 |
# Extract the first word of "gcc", so it can be a program name with args. |
2277 |
set dummy gcc; ac_word=$2 |
2278 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2279 |
printf %s "checking for $ac_word... " >&6; } |
2280 |
if test ${ac_cv_prog_ac_ct_CC+y} |
2281 |
then : |
2282 |
printf %s "(cached) " >&6 |
2283 |
else $as_nop |
2284 |
if test -n "$ac_ct_CC"; then |
2285 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2286 |
else |
2287 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2288 |
for as_dir in $PATH |
2289 |
do |
2290 |
IFS=$as_save_IFS |
2291 |
case $as_dir in #((( |
2292 |
'') as_dir=./ ;; |
2293 |
*/) ;; |
2294 |
*) as_dir=$as_dir/ ;; |
2295 |
esac |
2296 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2297 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2298 |
ac_cv_prog_ac_ct_CC="gcc" |
2299 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2300 |
break 2 |
2301 |
fi |
2302 |
done |
2303 |
done |
2304 |
IFS=$as_save_IFS |
2305 |
|
2306 |
fi |
2307 |
fi |
2308 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2309 |
if test -n "$ac_ct_CC"; then |
2310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2311 |
printf "%s\n" "$ac_ct_CC" >&6; } |
2312 |
else |
2313 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2314 |
printf "%s\n" "no" >&6; } |
2315 |
fi |
2316 |
|
2317 |
if test "x$ac_ct_CC" = x; then |
2318 |
CC="" |
2319 |
else |
2320 |
case $cross_compiling:$ac_tool_warned in |
2321 |
yes:) |
2322 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2323 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2324 |
ac_tool_warned=yes ;; |
2325 |
esac |
2326 |
CC=$ac_ct_CC |
2327 |
fi |
2328 |
else |
2329 |
CC="$ac_cv_prog_CC" |
2330 |
fi |
2331 |
|
2332 |
if test -z "$CC"; then |
2333 |
if test -n "$ac_tool_prefix"; then |
2334 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2335 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2336 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2337 |
printf %s "checking for $ac_word... " >&6; } |
2338 |
if test ${ac_cv_prog_CC+y} |
2339 |
then : |
2340 |
printf %s "(cached) " >&6 |
2341 |
else $as_nop |
2342 |
if test -n "$CC"; then |
2343 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2344 |
else |
2345 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2346 |
for as_dir in $PATH |
2347 |
do |
2348 |
IFS=$as_save_IFS |
2349 |
case $as_dir in #((( |
2350 |
'') as_dir=./ ;; |
2351 |
*/) ;; |
2352 |
*) as_dir=$as_dir/ ;; |
2353 |
esac |
2354 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2355 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2356 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
2357 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2358 |
break 2 |
2359 |
fi |
2360 |
done |
2361 |
done |
2362 |
IFS=$as_save_IFS |
2363 |
|
2364 |
fi |
2365 |
fi |
2366 |
CC=$ac_cv_prog_CC |
2367 |
if test -n "$CC"; then |
2368 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2369 |
printf "%s\n" "$CC" >&6; } |
2370 |
else |
2371 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2372 |
printf "%s\n" "no" >&6; } |
2373 |
fi |
2374 |
|
2375 |
|
2376 |
fi |
2377 |
fi |
2378 |
if test -z "$CC"; then |
2379 |
# Extract the first word of "cc", so it can be a program name with args. |
2380 |
set dummy cc; ac_word=$2 |
2381 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2382 |
printf %s "checking for $ac_word... " >&6; } |
2383 |
if test ${ac_cv_prog_CC+y} |
2384 |
then : |
2385 |
printf %s "(cached) " >&6 |
2386 |
else $as_nop |
2387 |
if test -n "$CC"; then |
2388 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2389 |
else |
2390 |
ac_prog_rejected=no |
2391 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2392 |
for as_dir in $PATH |
2393 |
do |
2394 |
IFS=$as_save_IFS |
2395 |
case $as_dir in #((( |
2396 |
'') as_dir=./ ;; |
2397 |
*/) ;; |
2398 |
*) as_dir=$as_dir/ ;; |
2399 |
esac |
2400 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2401 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2402 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2403 |
ac_prog_rejected=yes |
2404 |
continue |
2405 |
fi |
2406 |
ac_cv_prog_CC="cc" |
2407 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2408 |
break 2 |
2409 |
fi |
2410 |
done |
2411 |
done |
2412 |
IFS=$as_save_IFS |
2413 |
|
2414 |
if test $ac_prog_rejected = yes; then |
2415 |
# We found a bogon in the path, so make sure we never use it. |
2416 |
set dummy $ac_cv_prog_CC |
2417 |
shift |
2418 |
if test $# != 0; then |
2419 |
# We chose a different compiler from the bogus one. |
2420 |
# However, it has the same basename, so the bogon will be chosen |
2421 |
# first if we set CC to just the basename; use the full file name. |
2422 |
shift |
2423 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
2424 |
fi |
2425 |
fi |
2426 |
fi |
2427 |
fi |
2428 |
CC=$ac_cv_prog_CC |
2429 |
if test -n "$CC"; then |
2430 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2431 |
printf "%s\n" "$CC" >&6; } |
2432 |
else |
2433 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2434 |
printf "%s\n" "no" >&6; } |
2435 |
fi |
2436 |
|
2437 |
|
2438 |
fi |
2439 |
if test -z "$CC"; then |
2440 |
if test -n "$ac_tool_prefix"; then |
2441 |
for ac_prog in cl.exe |
2442 |
do |
2443 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2444 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2445 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2446 |
printf %s "checking for $ac_word... " >&6; } |
2447 |
if test ${ac_cv_prog_CC+y} |
2448 |
then : |
2449 |
printf %s "(cached) " >&6 |
2450 |
else $as_nop |
2451 |
if test -n "$CC"; then |
2452 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2453 |
else |
2454 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2455 |
for as_dir in $PATH |
2456 |
do |
2457 |
IFS=$as_save_IFS |
2458 |
case $as_dir in #((( |
2459 |
'') as_dir=./ ;; |
2460 |
*/) ;; |
2461 |
*) as_dir=$as_dir/ ;; |
2462 |
esac |
2463 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2464 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2465 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2466 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2467 |
break 2 |
2468 |
fi |
2469 |
done |
2470 |
done |
2471 |
IFS=$as_save_IFS |
2472 |
|
2473 |
fi |
2474 |
fi |
2475 |
CC=$ac_cv_prog_CC |
2476 |
if test -n "$CC"; then |
2477 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2478 |
printf "%s\n" "$CC" >&6; } |
2479 |
else |
2480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2481 |
printf "%s\n" "no" >&6; } |
2482 |
fi |
2483 |
|
2484 |
|
2485 |
test -n "$CC" && break |
2486 |
done |
2487 |
fi |
2488 |
if test -z "$CC"; then |
2489 |
ac_ct_CC=$CC |
2490 |
for ac_prog in cl.exe |
2491 |
do |
2492 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2493 |
set dummy $ac_prog; ac_word=$2 |
2494 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2495 |
printf %s "checking for $ac_word... " >&6; } |
2496 |
if test ${ac_cv_prog_ac_ct_CC+y} |
2497 |
then : |
2498 |
printf %s "(cached) " >&6 |
2499 |
else $as_nop |
2500 |
if test -n "$ac_ct_CC"; then |
2501 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2502 |
else |
2503 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2504 |
for as_dir in $PATH |
2505 |
do |
2506 |
IFS=$as_save_IFS |
2507 |
case $as_dir in #((( |
2508 |
'') as_dir=./ ;; |
2509 |
*/) ;; |
2510 |
*) as_dir=$as_dir/ ;; |
2511 |
esac |
2512 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2513 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2514 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2515 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2516 |
break 2 |
2517 |
fi |
2518 |
done |
2519 |
done |
2520 |
IFS=$as_save_IFS |
2521 |
|
2522 |
fi |
2523 |
fi |
2524 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2525 |
if test -n "$ac_ct_CC"; then |
2526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2527 |
printf "%s\n" "$ac_ct_CC" >&6; } |
2528 |
else |
2529 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2530 |
printf "%s\n" "no" >&6; } |
2531 |
fi |
2532 |
|
2533 |
|
2534 |
test -n "$ac_ct_CC" && break |
2535 |
done |
2536 |
|
2537 |
if test "x$ac_ct_CC" = x; then |
2538 |
CC="" |
2539 |
else |
2540 |
case $cross_compiling:$ac_tool_warned in |
2541 |
yes:) |
2542 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2543 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2544 |
ac_tool_warned=yes ;; |
2545 |
esac |
2546 |
CC=$ac_ct_CC |
2547 |
fi |
2548 |
fi |
2549 |
|
2550 |
fi |
2551 |
if 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. |
2554 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
2555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2556 |
printf %s "checking for $ac_word... " >&6; } |
2557 |
if test ${ac_cv_prog_CC+y} |
2558 |
then : |
2559 |
printf %s "(cached) " >&6 |
2560 |
else $as_nop |
2561 |
if test -n "$CC"; then |
2562 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2563 |
else |
2564 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2565 |
for as_dir in $PATH |
2566 |
do |
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 |
2579 |
done |
2580 |
done |
2581 |
IFS=$as_save_IFS |
2582 |
|
2583 |
fi |
2584 |
fi |
2585 |
CC=$ac_cv_prog_CC |
2586 |
if test -n "$CC"; then |
2587 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2588 |
printf "%s\n" "$CC" >&6; } |
2589 |
else |
2590 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2591 |
printf "%s\n" "no" >&6; } |
2592 |
fi |
2593 |
|
2594 |
|
2595 |
fi |
2596 |
if 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. |
2599 |
set dummy clang; ac_word=$2 |
2600 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2601 |
printf %s "checking for $ac_word... " >&6; } |
2602 |
if test ${ac_cv_prog_ac_ct_CC+y} |
2603 |
then : |
2604 |
printf %s "(cached) " >&6 |
2605 |
else $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. |
2608 |
else |
2609 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2610 |
for as_dir in $PATH |
2611 |
do |
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 |
2624 |
done |
2625 |
done |
2626 |
IFS=$as_save_IFS |
2627 |
|
2628 |
fi |
2629 |
fi |
2630 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2631 |
if test -n "$ac_ct_CC"; then |
2632 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2633 |
printf "%s\n" "$ac_ct_CC" >&6; } |
2634 |
else |
2635 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2636 |
printf "%s\n" "no" >&6; } |
2637 |
fi |
2638 |
|
2639 |
if test "x$ac_ct_CC" = x; then |
2640 |
CC="" |
2641 |
else |
2642 |
case $cross_compiling:$ac_tool_warned in |
2643 |
yes:) |
2644 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2645 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2646 |
ac_tool_warned=yes ;; |
2647 |
esac |
2648 |
CC=$ac_ct_CC |
2649 |
fi |
2650 |
else |
2651 |
CC="$ac_cv_prog_CC" |
2652 |
fi |
2653 |
|
2654 |
fi |
2655 |
|
2656 |
|
2657 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2658 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2659 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
2660 |
See \`config.log' for more details" "$LINENO" 5; } |
2661 |
|
2662 |
# Provide some information about the compiler. |
2663 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2664 |
set X $ac_compile |
2665 |
ac_compiler=$2 |
2666 |
for ac_option in --version -v -V -qversion -version; do |
2667 |
{ { ac_try="$ac_compiler $ac_option >&5" |
2668 |
case "(($ac_try" in |
2669 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2670 |
*) ac_try_echo=$ac_try;; |
2671 |
esac |
2672 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2673 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2674 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2675 |
ac_status=$? |
2676 |
if test -s conftest.err; then |
2677 |
sed '10a\ |
2678 |
... rest of stderr output deleted ... |
2679 |
10q' conftest.err >conftest.er1 |
2680 |
cat conftest.er1 >&5 |
2681 |
fi |
2682 |
rm -f conftest.er1 conftest.err |
2683 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2684 |
test $ac_status = 0; } |
2685 |
done |
2686 |
|
2687 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2688 |
/* end confdefs.h. */ |
2689 |
|
2690 |
int |
2691 |
main (void) |
2692 |
{ |
2693 |
|
2694 |
; |
2695 |
return 0; |
2696 |
} |
2697 |
_ACEOF |
2698 |
ac_clean_files_save=$ac_clean_files |
2699 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2700 |
# Try to create an executable without -o first, disregard a.out. |
2701 |
# It will help us diagnose broken compilers, and finding out an intuition |
2702 |
# of exeext. |
2703 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2704 |
printf %s "checking whether the C compiler works... " >&6; } |
2705 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2706 |
|
2707 |
# The possible output files: |
2708 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2709 |
|
2710 |
ac_rmfiles= |
2711 |
for ac_file in $ac_files |
2712 |
do |
2713 |
case $ac_file in |
2714 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2715 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2716 |
esac |
2717 |
done |
2718 |
rm -f $ac_rmfiles |
2719 |
|
2720 |
if { { ac_try="$ac_link_default" |
2721 |
case "(($ac_try" in |
2722 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2723 |
*) ac_try_echo=$ac_try;; |
2724 |
esac |
2725 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2726 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2727 |
(eval "$ac_link_default") 2>&5 |
2728 |
ac_status=$? |
2729 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2730 |
test $ac_status = 0; } |
2731 |
then : |
2732 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2733 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2734 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2735 |
# so that the user can short-circuit this test for compilers unknown to |
2736 |
# Autoconf. |
2737 |
for ac_file in $ac_files '' |
2738 |
do |
2739 |
test -f "$ac_file" || continue |
2740 |
case $ac_file in |
2741 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2742 |
;; |
2743 |
[ab].out ) |
2744 |
# We found the default executable, but exeext='' is most |
2745 |
# certainly right. |
2746 |
break;; |
2747 |
*.* ) |
2748 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
2749 |
then :; else |
2750 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2751 |
fi |
2752 |
# We set ac_cv_exeext here because the later test for it is not |
2753 |
# safe: cross compilers may not add the suffix if given an `-o' |
2754 |
# argument, so we may need to know it at that point already. |
2755 |
# Even if this section looks crufty: it has the advantage of |
2756 |
# actually working. |
2757 |
break;; |
2758 |
* ) |
2759 |
break;; |
2760 |
esac |
2761 |
done |
2762 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2763 |
|
2764 |
else $as_nop |
2765 |
ac_file='' |
2766 |
fi |
2767 |
if test -z "$ac_file" |
2768 |
then : |
2769 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2770 |
printf "%s\n" "no" >&6; } |
2771 |
printf "%s\n" "$as_me: failed program was:" >&5 |
2772 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2773 |
|
2774 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2775 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2776 |
as_fn_error 77 "C compiler cannot create executables |
2777 |
See \`config.log' for more details" "$LINENO" 5; } |
2778 |
else $as_nop |
2779 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2780 |
printf "%s\n" "yes" >&6; } |
2781 |
fi |
2782 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2783 |
printf %s "checking for C compiler default output file name... " >&6; } |
2784 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2785 |
printf "%s\n" "$ac_file" >&6; } |
2786 |
ac_exeext=$ac_cv_exeext |
2787 |
|
2788 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2789 |
ac_clean_files=$ac_clean_files_save |
2790 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2791 |
printf %s "checking for suffix of executables... " >&6; } |
2792 |
if { { ac_try="$ac_link" |
2793 |
case "(($ac_try" in |
2794 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2795 |
*) ac_try_echo=$ac_try;; |
2796 |
esac |
2797 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2798 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2799 |
(eval "$ac_link") 2>&5 |
2800 |
ac_status=$? |
2801 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2802 |
test $ac_status = 0; } |
2803 |
then : |
2804 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2805 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2806 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2807 |
# `rm'. |
2808 |
for ac_file in conftest.exe conftest conftest.*; do |
2809 |
test -f "$ac_file" || continue |
2810 |
case $ac_file in |
2811 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2812 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2813 |
break;; |
2814 |
* ) break;; |
2815 |
esac |
2816 |
done |
2817 |
else $as_nop |
2818 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2819 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2820 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2821 |
See \`config.log' for more details" "$LINENO" 5; } |
2822 |
fi |
2823 |
rm -f conftest conftest$ac_cv_exeext |
2824 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2825 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
2826 |
|
2827 |
rm -f conftest.$ac_ext |
2828 |
EXEEXT=$ac_cv_exeext |
2829 |
ac_exeext=$EXEEXT |
2830 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2831 |
/* end confdefs.h. */ |
2832 |
#include <stdio.h> |
2833 |
int |
2834 |
main (void) |
2835 |
{ |
2836 |
FILE *f = fopen ("conftest.out", "w"); |
2837 |
return ferror (f) || fclose (f) != 0; |
2838 |
|
2839 |
; |
2840 |
return 0; |
2841 |
} |
2842 |
_ACEOF |
2843 |
ac_clean_files="$ac_clean_files conftest.out" |
2844 |
# Check that the compiler produces executables we can run. If not, either |
2845 |
# the compiler is broken, or we cross compile. |
2846 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2847 |
printf %s "checking whether we are cross compiling... " >&6; } |
2848 |
if test "$cross_compiling" != yes; then |
2849 |
{ { ac_try="$ac_link" |
2850 |
case "(($ac_try" in |
2851 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2852 |
*) ac_try_echo=$ac_try;; |
2853 |
esac |
2854 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2855 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2856 |
(eval "$ac_link") 2>&5 |
2857 |
ac_status=$? |
2858 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2859 |
test $ac_status = 0; } |
2860 |
if { ac_try='./conftest$ac_cv_exeext' |
2861 |
{ { case "(($ac_try" in |
2862 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2863 |
*) ac_try_echo=$ac_try;; |
2864 |
esac |
2865 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2866 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2867 |
(eval "$ac_try") 2>&5 |
2868 |
ac_status=$? |
2869 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2870 |
test $ac_status = 0; }; }; then |
2871 |
cross_compiling=no |
2872 |
else |
2873 |
if test "$cross_compiling" = maybe; then |
2874 |
cross_compiling=yes |
2875 |
else |
2876 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2877 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2878 |
as_fn_error 77 "cannot run C compiled programs. |
2879 |
If you meant to cross compile, use \`--host'. |
2880 |
See \`config.log' for more details" "$LINENO" 5; } |
2881 |
fi |
2882 |
fi |
2883 |
fi |
2884 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2885 |
printf "%s\n" "$cross_compiling" >&6; } |
2886 |
|
2887 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2888 |
ac_clean_files=$ac_clean_files_save |
2889 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2890 |
printf %s "checking for suffix of object files... " >&6; } |
2891 |
if test ${ac_cv_objext+y} |
2892 |
then : |
2893 |
printf %s "(cached) " >&6 |
2894 |
else $as_nop |
2895 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2896 |
/* end confdefs.h. */ |
2897 |
|
2898 |
int |
2899 |
main (void) |
2900 |
{ |
2901 |
|
2902 |
; |
2903 |
return 0; |
2904 |
} |
2905 |
_ACEOF |
2906 |
rm -f conftest.o conftest.obj |
2907 |
if { { ac_try="$ac_compile" |
2908 |
case "(($ac_try" in |
2909 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2910 |
*) ac_try_echo=$ac_try;; |
2911 |
esac |
2912 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2913 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2914 |
(eval "$ac_compile") 2>&5 |
2915 |
ac_status=$? |
2916 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2917 |
test $ac_status = 0; } |
2918 |
then : |
2919 |
for ac_file in conftest.o conftest.obj conftest.*; do |
2920 |
test -f "$ac_file" || continue; |
2921 |
case $ac_file in |
2922 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2923 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2924 |
break;; |
2925 |
esac |
2926 |
done |
2927 |
else $as_nop |
2928 |
printf "%s\n" "$as_me: failed program was:" >&5 |
2929 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2930 |
|
2931 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2932 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2933 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
2934 |
See \`config.log' for more details" "$LINENO" 5; } |
2935 |
fi |
2936 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2937 |
fi |
2938 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2939 |
printf "%s\n" "$ac_cv_objext" >&6; } |
2940 |
OBJEXT=$ac_cv_objext |
2941 |
ac_objext=$OBJEXT |
2942 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
2943 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
2944 |
if test ${ac_cv_c_compiler_gnu+y} |
2945 |
then : |
2946 |
printf %s "(cached) " >&6 |
2947 |
else $as_nop |
2948 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2949 |
/* end confdefs.h. */ |
2950 |
|
2951 |
int |
2952 |
main (void) |
2953 |
{ |
2954 |
#ifndef __GNUC__ |
2955 |
choke me |
2956 |
#endif |
2957 |
|
2958 |
; |
2959 |
return 0; |
2960 |
} |
2961 |
_ACEOF |
2962 |
if ac_fn_c_try_compile "$LINENO" |
2963 |
then : |
2964 |
ac_compiler_gnu=yes |
2965 |
else $as_nop |
2966 |
ac_compiler_gnu=no |
2967 |
fi |
2968 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2969 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2970 |
|
2971 |
fi |
2972 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2973 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
2974 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2975 |
|
2976 |
if test $ac_compiler_gnu = yes; then |
2977 |
GCC=yes |
2978 |
else |
2979 |
GCC= |
2980 |
fi |
2981 |
ac_test_CFLAGS=${CFLAGS+y} |
2982 |
ac_save_CFLAGS=$CFLAGS |
2983 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2984 |
printf %s "checking whether $CC accepts -g... " >&6; } |
2985 |
if test ${ac_cv_prog_cc_g+y} |
2986 |
then : |
2987 |
printf %s "(cached) " >&6 |
2988 |
else $as_nop |
2989 |
ac_save_c_werror_flag=$ac_c_werror_flag |
2990 |
ac_c_werror_flag=yes |
2991 |
ac_cv_prog_cc_g=no |
2992 |
CFLAGS="-g" |
2993 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2994 |
/* end confdefs.h. */ |
2995 |
|
2996 |
int |
2997 |
main (void) |
2998 |
{ |
2999 |
|
3000 |
; |
3001 |
return 0; |
3002 |
} |
3003 |
_ACEOF |
3004 |
if ac_fn_c_try_compile "$LINENO" |
3005 |
then : |
3006 |
ac_cv_prog_cc_g=yes |
3007 |
else $as_nop |
3008 |
CFLAGS="" |
3009 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3010 |
/* end confdefs.h. */ |
3011 |
|
3012 |
int |
3013 |
main (void) |
3014 |
{ |
3015 |
|
3016 |
; |
3017 |
return 0; |
3018 |
} |
3019 |
_ACEOF |
3020 |
if ac_fn_c_try_compile "$LINENO" |
3021 |
then : |
3022 |
|
3023 |
else $as_nop |
3024 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3025 |
CFLAGS="-g" |
3026 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3027 |
/* end confdefs.h. */ |
3028 |
|
3029 |
int |
3030 |
main (void) |
3031 |
{ |
3032 |
|
3033 |
; |
3034 |
return 0; |
3035 |
} |
3036 |
_ACEOF |
3037 |
if ac_fn_c_try_compile "$LINENO" |
3038 |
then : |
3039 |
ac_cv_prog_cc_g=yes |
3040 |
fi |
3041 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3042 |
fi |
3043 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3044 |
fi |
3045 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3046 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3047 |
fi |
3048 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3049 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
3050 |
if test $ac_test_CFLAGS; then |
3051 |
CFLAGS=$ac_save_CFLAGS |
3052 |
elif test $ac_cv_prog_cc_g = yes; then |
3053 |
if test "$GCC" = yes; then |
3054 |
CFLAGS="-g -O2" |
3055 |
else |
3056 |
CFLAGS="-g" |
3057 |
fi |
3058 |
else |
3059 |
if test "$GCC" = yes; then |
3060 |
CFLAGS="-O2" |
3061 |
else |
3062 |
CFLAGS= |
3063 |
fi |
3064 |
fi |
3065 |
ac_prog_cc_stdc=no |
3066 |
if test x$ac_prog_cc_stdc = xno |
3067 |
then : |
3068 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
3069 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
3070 |
if test ${ac_cv_prog_cc_c11+y} |
3071 |
then : |
3072 |
printf %s "(cached) " >&6 |
3073 |
else $as_nop |
3074 |
ac_cv_prog_cc_c11=no |
3075 |
ac_save_CC=$CC |
3076 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3077 |
/* end confdefs.h. */ |
3078 |
$ac_c_conftest_c11_program |
3079 |
_ACEOF |
3080 |
for ac_arg in '' -std=gnu11 |
3081 |
do |
3082 |
CC="$ac_save_CC $ac_arg" |
3083 |
if ac_fn_c_try_compile "$LINENO" |
3084 |
then : |
3085 |
ac_cv_prog_cc_c11=$ac_arg |
3086 |
fi |
3087 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
3088 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
3089 |
done |
3090 |
rm -f conftest.$ac_ext |
3091 |
CC=$ac_save_CC |
3092 |
fi |
3093 |
|
3094 |
if test "x$ac_cv_prog_cc_c11" = xno |
3095 |
then : |
3096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3097 |
printf "%s\n" "unsupported" >&6; } |
3098 |
else $as_nop |
3099 |
if test "x$ac_cv_prog_cc_c11" = x |
3100 |
then : |
3101 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3102 |
printf "%s\n" "none needed" >&6; } |
3103 |
else $as_nop |
3104 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
3105 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
3106 |
CC="$CC $ac_cv_prog_cc_c11" |
3107 |
fi |
3108 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
3109 |
ac_prog_cc_stdc=c11 |
3110 |
fi |
3111 |
fi |
3112 |
if test x$ac_prog_cc_stdc = xno |
3113 |
then : |
3114 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
3115 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
3116 |
if test ${ac_cv_prog_cc_c99+y} |
3117 |
then : |
3118 |
printf %s "(cached) " >&6 |
3119 |
else $as_nop |
3120 |
ac_cv_prog_cc_c99=no |
3121 |
ac_save_CC=$CC |
3122 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3123 |
/* end confdefs.h. */ |
3124 |
$ac_c_conftest_c99_program |
3125 |
_ACEOF |
3126 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
3127 |
do |
3128 |
CC="$ac_save_CC $ac_arg" |
3129 |
if ac_fn_c_try_compile "$LINENO" |
3130 |
then : |
3131 |
ac_cv_prog_cc_c99=$ac_arg |
3132 |
fi |
3133 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
3134 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
3135 |
done |
3136 |
rm -f conftest.$ac_ext |
3137 |
CC=$ac_save_CC |
3138 |
fi |
3139 |
|
3140 |
if test "x$ac_cv_prog_cc_c99" = xno |
3141 |
then : |
3142 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3143 |
printf "%s\n" "unsupported" >&6; } |
3144 |
else $as_nop |
3145 |
if test "x$ac_cv_prog_cc_c99" = x |
3146 |
then : |
3147 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3148 |
printf "%s\n" "none needed" >&6; } |
3149 |
else $as_nop |
3150 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
3151 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
3152 |
CC="$CC $ac_cv_prog_cc_c99" |
3153 |
fi |
3154 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
3155 |
ac_prog_cc_stdc=c99 |
3156 |
fi |
3157 |
fi |
3158 |
if test x$ac_prog_cc_stdc = xno |
3159 |
then : |
3160 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
3161 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
3162 |
if test ${ac_cv_prog_cc_c89+y} |
3163 |
then : |
3164 |
printf %s "(cached) " >&6 |
3165 |
else $as_nop |
3166 |
ac_cv_prog_cc_c89=no |
3167 |
ac_save_CC=$CC |
3168 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3169 |
/* end confdefs.h. */ |
3170 |
$ac_c_conftest_c89_program |
3171 |
_ACEOF |
3172 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3173 |
do |
3174 |
CC="$ac_save_CC $ac_arg" |
3175 |
if ac_fn_c_try_compile "$LINENO" |
3176 |
then : |
3177 |
ac_cv_prog_cc_c89=$ac_arg |
3178 |
fi |
3179 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
3180 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3181 |
done |
3182 |
rm -f conftest.$ac_ext |
3183 |
CC=$ac_save_CC |
3184 |
fi |
3185 |
|
3186 |
if test "x$ac_cv_prog_cc_c89" = xno |
3187 |
then : |
3188 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3189 |
printf "%s\n" "unsupported" >&6; } |
3190 |
else $as_nop |
3191 |
if test "x$ac_cv_prog_cc_c89" = x |
3192 |
then : |
3193 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3194 |
printf "%s\n" "none needed" >&6; } |
3195 |
else $as_nop |
3196 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3197 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
3198 |
CC="$CC $ac_cv_prog_cc_c89" |
3199 |
fi |
3200 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
3201 |
ac_prog_cc_stdc=c89 |
3202 |
fi |
3203 |
fi |
3204 |
|
3205 |
ac_ext=c |
3206 |
ac_cpp='$CPP $CPPFLAGS' |
3207 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3208 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3209 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3210 |
|
3211 |
|
3212 |
ac_header= ac_cache= |
3213 |
for ac_item in $ac_header_c_list |
3214 |
do |
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 |
3226 |
done |
3227 |
|
3228 |
|
3229 |
|
3230 |
|
3231 |
|
3232 |
|
3233 |
|
3234 |
|
3235 |
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
3236 |
then : |
3237 |
|
3238 |
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
3239 |
|
3240 |
fi |
3241 |
|
3242 |
|
3243 |
|
3244 |
|
3245 |
|
3246 |
|
3247 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3248 |
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
3249 |
if test ${ac_cv_safe_to_define___extensions__+y} |
3250 |
then : |
3251 |
printf %s "(cached) " >&6 |
3252 |
else $as_nop |
3253 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3254 |
/* end confdefs.h. */ |
3255 |
|
3256 |
# define __EXTENSIONS__ 1 |
3257 |
$ac_includes_default |
3258 |
int |
3259 |
main (void) |
3260 |
{ |
3261 |
|
3262 |
; |
3263 |
return 0; |
3264 |
} |
3265 |
_ACEOF |
3266 |
if ac_fn_c_try_compile "$LINENO" |
3267 |
then : |
3268 |
ac_cv_safe_to_define___extensions__=yes |
3269 |
else $as_nop |
3270 |
ac_cv_safe_to_define___extensions__=no |
3271 |
fi |
3272 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3273 |
fi |
3274 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3275 |
printf "%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 |
3278 |
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
3279 |
if test ${ac_cv_should_define__xopen_source+y} |
3280 |
then : |
3281 |
printf %s "(cached) " >&6 |
3282 |
else $as_nop |
3283 |
ac_cv_should_define__xopen_source=no |
3284 |
if test $ac_cv_header_wchar_h = yes |
3285 |
then : |
3286 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3287 |
/* end confdefs.h. */ |
3288 |
|
3289 |
#include <wchar.h> |
3290 |
mbstate_t x; |
3291 |
int |
3292 |
main (void) |
3293 |
{ |
3294 |
|
3295 |
; |
3296 |
return 0; |
3297 |
} |
3298 |
_ACEOF |
3299 |
if ac_fn_c_try_compile "$LINENO" |
3300 |
then : |
3301 |
|
3302 |
else $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; |
3309 |
int |
3310 |
main (void) |
3311 |
{ |
3312 |
|
3313 |
; |
3314 |
return 0; |
3315 |
} |
3316 |
_ACEOF |
3317 |
if ac_fn_c_try_compile "$LINENO" |
3318 |
then : |
3319 |
ac_cv_should_define__xopen_source=yes |
3320 |
fi |
3321 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3322 |
fi |
3323 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3324 |
fi |
3325 |
fi |
3326 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
3327 |
printf "%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 |
3360 |
then : |
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 |
|
3368 |
else $as_nop |
3369 |
MINIX= |
3370 |
fi |
3371 |
if test $ac_cv_safe_to_define___extensions__ = yes |
3372 |
then : |
3373 |
printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
3374 |
|
3375 |
fi |
3376 |
if test $ac_cv_should_define__xopen_source = yes |
3377 |
then : |
3378 |
printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
3379 |
|
3380 |
fi |
3381 |
|
3382 |
|
3383 |
ac_ext=c |
3384 |
ac_cpp='$CPP $CPPFLAGS' |
3385 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3386 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3387 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3388 |
if 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. |
3390 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3391 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3392 |
printf %s "checking for $ac_word... " >&6; } |
3393 |
if test ${ac_cv_prog_CC+y} |
3394 |
then : |
3395 |
printf %s "(cached) " >&6 |
3396 |
else $as_nop |
3397 |
if test -n "$CC"; then |
3398 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3399 |
else |
3400 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3401 |
for as_dir in $PATH |
3402 |
do |
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 |
3415 |
done |
3416 |
done |
3417 |
IFS=$as_save_IFS |
3418 |
|
3419 |
fi |
3420 |
fi |
3421 |
CC=$ac_cv_prog_CC |
3422 |
if test -n "$CC"; then |
3423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3424 |
printf "%s\n" "$CC" >&6; } |
3425 |
else |
3426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3427 |
printf "%s\n" "no" >&6; } |
3428 |
fi |
3429 |
|
3430 |
|
3431 |
fi |
3432 |
if 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. |
3435 |
set dummy gcc; ac_word=$2 |
3436 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3437 |
printf %s "checking for $ac_word... " >&6; } |
3438 |
if test ${ac_cv_prog_ac_ct_CC+y} |
3439 |
then : |
3440 |
printf %s "(cached) " >&6 |
3441 |
else $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. |
3444 |
else |
3445 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3446 |
for as_dir in $PATH |
3447 |
do |
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 |
3460 |
done |
3461 |
done |
3462 |
IFS=$as_save_IFS |
3463 |
|
3464 |
fi |
3465 |
fi |
3466 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3467 |
if test -n "$ac_ct_CC"; then |
3468 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3469 |
printf "%s\n" "$ac_ct_CC" >&6; } |
3470 |
else |
3471 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3472 |
printf "%s\n" "no" >&6; } |
3473 |
fi |
3474 |
|
3475 |
if test "x$ac_ct_CC" = x; then |
3476 |
CC="" |
3477 |
else |
3478 |
case $cross_compiling:$ac_tool_warned in |
3479 |
yes:) |
3480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3481 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3482 |
ac_tool_warned=yes ;; |
3483 |
esac |
3484 |
CC=$ac_ct_CC |
3485 |
fi |
3486 |
else |
3487 |
CC="$ac_cv_prog_CC" |
3488 |
fi |
3489 |
|
3490 |
if 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. |
3493 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3494 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3495 |
printf %s "checking for $ac_word... " >&6; } |
3496 |
if test ${ac_cv_prog_CC+y} |
3497 |
then : |
3498 |
printf %s "(cached) " >&6 |
3499 |
else $as_nop |
3500 |
if test -n "$CC"; then |
3501 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3502 |
else |
3503 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3504 |
for as_dir in $PATH |
3505 |
do |
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 |
3518 |
done |
3519 |
done |
3520 |
IFS=$as_save_IFS |
3521 |
|
3522 |
fi |
3523 |
fi |
3524 |
CC=$ac_cv_prog_CC |
3525 |
if test -n "$CC"; then |
3526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3527 |
printf "%s\n" "$CC" >&6; } |
3528 |
else |
3529 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3530 |
printf "%s\n" "no" >&6; } |
3531 |
fi |
3532 |
|
3533 |
|
3534 |
fi |
3535 |
fi |
3536 |
if test -z "$CC"; then |
3537 |
# Extract the first word of "cc", so it can be a program name with args. |
3538 |
set dummy cc; ac_word=$2 |
3539 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3540 |
printf %s "checking for $ac_word... " >&6; } |
3541 |
if test ${ac_cv_prog_CC+y} |
3542 |
then : |
3543 |
printf %s "(cached) " >&6 |
3544 |
else $as_nop |
3545 |
if test -n "$CC"; then |
3546 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3547 |
else |
3548 |
ac_prog_rejected=no |
3549 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3550 |
for as_dir in $PATH |
3551 |
do |
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 |
3568 |
done |
3569 |
done |
3570 |
IFS=$as_save_IFS |
3571 |
|
3572 |
if 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 |
3583 |
fi |
3584 |
fi |
3585 |
fi |
3586 |
CC=$ac_cv_prog_CC |
3587 |
if test -n "$CC"; then |
3588 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3589 |
printf "%s\n" "$CC" >&6; } |
3590 |
else |
3591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3592 |
printf "%s\n" "no" >&6; } |
3593 |
fi |
3594 |
|
3595 |
|
3596 |
fi |
3597 |
if 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. |
3602 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3603 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3604 |
printf %s "checking for $ac_word... " >&6; } |
3605 |
if test ${ac_cv_prog_CC+y} |
3606 |
then : |
3607 |
printf %s "(cached) " >&6 |
3608 |
else $as_nop |
3609 |
if test -n "$CC"; then |
3610 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3611 |
else |
3612 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3613 |
for as_dir in $PATH |
3614 |
do |
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 |
3627 |
done |
3628 |
done |
3629 |
IFS=$as_save_IFS |
3630 |
|
3631 |
fi |
3632 |
fi |
3633 |
CC=$ac_cv_prog_CC |
3634 |
if test -n "$CC"; then |
3635 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3636 |
printf "%s\n" "$CC" >&6; } |
3637 |
else |
3638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3639 |
printf "%s\n" "no" >&6; } |
3640 |
fi |
3641 |
|
3642 |
|
3643 |
test -n "$CC" && break |
3644 |
done |
3645 |
fi |
3646 |
if test -z "$CC"; then |
3647 |
ac_ct_CC=$CC |
3648 |
for ac_prog in cl.exe |
3649 |
do |
3650 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3651 |
set dummy $ac_prog; ac_word=$2 |
3652 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3653 |
printf %s "checking for $ac_word... " >&6; } |
3654 |
if test ${ac_cv_prog_ac_ct_CC+y} |
3655 |
then : |
3656 |
printf %s "(cached) " >&6 |
3657 |
else $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. |
3660 |
else |
3661 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3662 |
for as_dir in $PATH |
3663 |
do |
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 |
3676 |
done |
3677 |
done |
3678 |
IFS=$as_save_IFS |
3679 |
|
3680 |
fi |
3681 |
fi |
3682 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3683 |
if test -n "$ac_ct_CC"; then |
3684 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3685 |
printf "%s\n" "$ac_ct_CC" >&6; } |
3686 |
else |
3687 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3688 |
printf "%s\n" "no" >&6; } |
3689 |
fi |
3690 |
|
3691 |
|
3692 |
test -n "$ac_ct_CC" && break |
3693 |
done |
3694 |
|
3695 |
if test "x$ac_ct_CC" = x; then |
3696 |
CC="" |
3697 |
else |
3698 |
case $cross_compiling:$ac_tool_warned in |
3699 |
yes:) |
3700 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3701 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3702 |
ac_tool_warned=yes ;; |
3703 |
esac |
3704 |
CC=$ac_ct_CC |
3705 |
fi |
3706 |
fi |
3707 |
|
3708 |
fi |
3709 |
if 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. |
3712 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
3713 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3714 |
printf %s "checking for $ac_word... " >&6; } |
3715 |
if test ${ac_cv_prog_CC+y} |
3716 |
then : |
3717 |
printf %s "(cached) " >&6 |
3718 |
else $as_nop |
3719 |
if test -n "$CC"; then |
3720 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3721 |
else |
3722 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3723 |
for as_dir in $PATH |
3724 |
do |
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 |
3737 |
done |
3738 |
done |
3739 |
IFS=$as_save_IFS |
3740 |
|
3741 |
fi |
3742 |
fi |
3743 |
CC=$ac_cv_prog_CC |
3744 |
if test -n "$CC"; then |
3745 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3746 |
printf "%s\n" "$CC" >&6; } |
3747 |
else |
3748 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3749 |
printf "%s\n" "no" >&6; } |
3750 |
fi |
3751 |
|
3752 |
|
3753 |
fi |
3754 |
if 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. |
3757 |
set dummy clang; ac_word=$2 |
3758 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3759 |
printf %s "checking for $ac_word... " >&6; } |
3760 |
if test ${ac_cv_prog_ac_ct_CC+y} |
3761 |
then : |
3762 |
printf %s "(cached) " >&6 |
3763 |
else $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. |
3766 |
else |
3767 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3768 |
for as_dir in $PATH |
3769 |
do |
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 |
3782 |
done |
3783 |
done |
3784 |
IFS=$as_save_IFS |
3785 |
|
3786 |
fi |
3787 |
fi |
3788 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3789 |
if test -n "$ac_ct_CC"; then |
3790 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3791 |
printf "%s\n" "$ac_ct_CC" >&6; } |
3792 |
else |
3793 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3794 |
printf "%s\n" "no" >&6; } |
3795 |
fi |
3796 |
|
3797 |
if test "x$ac_ct_CC" = x; then |
3798 |
CC="" |
3799 |
else |
3800 |
case $cross_compiling:$ac_tool_warned in |
3801 |
yes:) |
3802 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3803 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3804 |
ac_tool_warned=yes ;; |
3805 |
esac |
3806 |
CC=$ac_ct_CC |
3807 |
fi |
3808 |
else |
3809 |
CC="$ac_cv_prog_CC" |
3810 |
fi |
3811 |
|
3812 |
fi |
3813 |
|
3814 |
|
3815 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3816 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3817 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3818 |
See \`config.log' for more details" "$LINENO" 5; } |
3819 |
|
3820 |
# Provide some information about the compiler. |
3821 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3822 |
set X $ac_compile |
3823 |
ac_compiler=$2 |
3824 |
for ac_option in --version -v -V -qversion -version; do |
3825 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3826 |
case "(($ac_try" in |
3827 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3828 |
*) ac_try_echo=$ac_try;; |
3829 |
esac |
3830 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3831 |
printf "%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; } |
3843 |
done |
3844 |
|
3845 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
3846 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
3847 |
if test ${ac_cv_c_compiler_gnu+y} |
3848 |
then : |
3849 |
printf %s "(cached) " >&6 |
3850 |
else $as_nop |
3851 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3852 |
/* end confdefs.h. */ |
3853 |
|
3854 |
int |
3855 |
main (void) |
3856 |
{ |
3857 |
#ifndef __GNUC__ |
3858 |
choke me |
3859 |
#endif |
3860 |
|
3861 |
; |
3862 |
return 0; |
3863 |
} |
3864 |
_ACEOF |
3865 |
if ac_fn_c_try_compile "$LINENO" |
3866 |
then : |
3867 |
ac_compiler_gnu=yes |
3868 |
else $as_nop |
3869 |
ac_compiler_gnu=no |
3870 |
fi |
3871 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3872 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3873 |
|
3874 |
fi |
3875 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3876 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
3877 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3878 |
|
3879 |
if test $ac_compiler_gnu = yes; then |
3880 |
GCC=yes |
3881 |
else |
3882 |
GCC= |
3883 |
fi |
3884 |
ac_test_CFLAGS=${CFLAGS+y} |
3885 |
ac_save_CFLAGS=$CFLAGS |
3886 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3887 |
printf %s "checking whether $CC accepts -g... " >&6; } |
3888 |
if test ${ac_cv_prog_cc_g+y} |
3889 |
then : |
3890 |
printf %s "(cached) " >&6 |
3891 |
else $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 |
|
3899 |
int |
3900 |
main (void) |
3901 |
{ |
3902 |
|
3903 |
; |
3904 |
return 0; |
3905 |
} |
3906 |
_ACEOF |
3907 |
if ac_fn_c_try_compile "$LINENO" |
3908 |
then : |
3909 |
ac_cv_prog_cc_g=yes |
3910 |
else $as_nop |
3911 |
CFLAGS="" |
3912 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3913 |
/* end confdefs.h. */ |
3914 |
|
3915 |
int |
3916 |
main (void) |
3917 |
{ |
3918 |
|
3919 |
; |
3920 |
return 0; |
3921 |
} |
3922 |
_ACEOF |
3923 |
if ac_fn_c_try_compile "$LINENO" |
3924 |
then : |
3925 |
|
3926 |
else $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 |
|
3932 |
int |
3933 |
main (void) |
3934 |
{ |
3935 |
|
3936 |
; |
3937 |
return 0; |
3938 |
} |
3939 |
_ACEOF |
3940 |
if ac_fn_c_try_compile "$LINENO" |
3941 |
then : |
3942 |
ac_cv_prog_cc_g=yes |
3943 |
fi |
3944 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3945 |
fi |
3946 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3947 |
fi |
3948 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3949 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3950 |
fi |
3951 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3952 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
3953 |
if test $ac_test_CFLAGS; then |
3954 |
CFLAGS=$ac_save_CFLAGS |
3955 |
elif 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 |
3961 |
else |
3962 |
if test "$GCC" = yes; then |
3963 |
CFLAGS="-O2" |
3964 |
else |
3965 |
CFLAGS= |
3966 |
fi |
3967 |
fi |
3968 |
ac_prog_cc_stdc=no |
3969 |
if test x$ac_prog_cc_stdc = xno |
3970 |
then : |
3971 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
3972 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
3973 |
if test ${ac_cv_prog_cc_c11+y} |
3974 |
then : |
3975 |
printf %s "(cached) " >&6 |
3976 |
else $as_nop |
3977 |
ac_cv_prog_cc_c11=no |
3978 |
ac_save_CC=$CC |
3979 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3980 |
/* end confdefs.h. */ |
3981 |
$ac_c_conftest_c11_program |
3982 |
_ACEOF |
3983 |
for ac_arg in '' -std=gnu11 |
3984 |
do |
3985 |
CC="$ac_save_CC $ac_arg" |
3986 |
if ac_fn_c_try_compile "$LINENO" |
3987 |
then : |
3988 |
ac_cv_prog_cc_c11=$ac_arg |
3989 |
fi |
3990 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
3991 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
3992 |
done |
3993 |
rm -f conftest.$ac_ext |
3994 |
CC=$ac_save_CC |
3995 |
fi |
3996 |
|
3997 |
if test "x$ac_cv_prog_cc_c11" = xno |
3998 |
then : |
3999 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4000 |
printf "%s\n" "unsupported" >&6; } |
4001 |
else $as_nop |
4002 |
if test "x$ac_cv_prog_cc_c11" = x |
4003 |
then : |
4004 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4005 |
printf "%s\n" "none needed" >&6; } |
4006 |
else $as_nop |
4007 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
4008 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
4009 |
CC="$CC $ac_cv_prog_cc_c11" |
4010 |
fi |
4011 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
4012 |
ac_prog_cc_stdc=c11 |
4013 |
fi |
4014 |
fi |
4015 |
if test x$ac_prog_cc_stdc = xno |
4016 |
then : |
4017 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
4018 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
4019 |
if test ${ac_cv_prog_cc_c99+y} |
4020 |
then : |
4021 |
printf %s "(cached) " >&6 |
4022 |
else $as_nop |
4023 |
ac_cv_prog_cc_c99=no |
4024 |
ac_save_CC=$CC |
4025 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4026 |
/* end confdefs.h. */ |
4027 |
$ac_c_conftest_c99_program |
4028 |
_ACEOF |
4029 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
4030 |
do |
4031 |
CC="$ac_save_CC $ac_arg" |
4032 |
if ac_fn_c_try_compile "$LINENO" |
4033 |
then : |
4034 |
ac_cv_prog_cc_c99=$ac_arg |
4035 |
fi |
4036 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
4037 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
4038 |
done |
4039 |
rm -f conftest.$ac_ext |
4040 |
CC=$ac_save_CC |
4041 |
fi |
4042 |
|
4043 |
if test "x$ac_cv_prog_cc_c99" = xno |
4044 |
then : |
4045 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4046 |
printf "%s\n" "unsupported" >&6; } |
4047 |
else $as_nop |
4048 |
if test "x$ac_cv_prog_cc_c99" = x |
4049 |
then : |
4050 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4051 |
printf "%s\n" "none needed" >&6; } |
4052 |
else $as_nop |
4053 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
4054 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
4055 |
CC="$CC $ac_cv_prog_cc_c99" |
4056 |
fi |
4057 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
4058 |
ac_prog_cc_stdc=c99 |
4059 |
fi |
4060 |
fi |
4061 |
if test x$ac_prog_cc_stdc = xno |
4062 |
then : |
4063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
4064 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
4065 |
if test ${ac_cv_prog_cc_c89+y} |
4066 |
then : |
4067 |
printf %s "(cached) " >&6 |
4068 |
else $as_nop |
4069 |
ac_cv_prog_cc_c89=no |
4070 |
ac_save_CC=$CC |
4071 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4072 |
/* end confdefs.h. */ |
4073 |
$ac_c_conftest_c89_program |
4074 |
_ACEOF |
4075 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4076 |
do |
4077 |
CC="$ac_save_CC $ac_arg" |
4078 |
if ac_fn_c_try_compile "$LINENO" |
4079 |
then : |
4080 |
ac_cv_prog_cc_c89=$ac_arg |
4081 |
fi |
4082 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
4083 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
4084 |
done |
4085 |
rm -f conftest.$ac_ext |
4086 |
CC=$ac_save_CC |
4087 |
fi |
4088 |
|
4089 |
if test "x$ac_cv_prog_cc_c89" = xno |
4090 |
then : |
4091 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4092 |
printf "%s\n" "unsupported" >&6; } |
4093 |
else $as_nop |
4094 |
if test "x$ac_cv_prog_cc_c89" = x |
4095 |
then : |
4096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4097 |
printf "%s\n" "none needed" >&6; } |
4098 |
else $as_nop |
4099 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4100 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
4101 |
CC="$CC $ac_cv_prog_cc_c89" |
4102 |
fi |
4103 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
4104 |
ac_prog_cc_stdc=c89 |
4105 |
fi |
4106 |
fi |
4107 |
|
4108 |
ac_ext=c |
4109 |
ac_cpp='$CPP $CPPFLAGS' |
4110 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4111 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4112 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4113 |
|
4114 |
|
4115 |
ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
4116 |
if test "x$ac_cv_header_stdint_h" = xyes |
4117 |
then : |
4118 |
printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
4119 |
|
4120 |
fi |
4121 |
ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" |
4122 |
if test "x$ac_cv_header_sys_syscall_h" = xyes |
4123 |
then : |
4124 |
printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h |
4125 |
|
4126 |
fi |
4127 |
ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" |
4128 |
if test "x$ac_cv_header_sys_prctl_h" = xyes |
4129 |
then : |
4130 |
printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h |
4131 |
|
4132 |
fi |
4133 |
|
4134 |
|
4135 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
4136 |
printf %s "checking for library containing pthread_create... " >&6; } |
4137 |
if test ${ac_cv_search_pthread_create+y} |
4138 |
then : |
4139 |
printf %s "(cached) " >&6 |
4140 |
else $as_nop |
4141 |
ac_func_search_save_LIBS=$LIBS |
4142 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4143 |
/* end confdefs.h. */ |
4144 |
|
4145 |
/* Override any GCC internal prototype to avoid an error. |
4146 |
Use char because int might match the return type of a GCC |
4147 |
builtin and then its argument prototype would still apply. */ |
4148 |
char pthread_create (); |
4149 |
int |
4150 |
main (void) |
4151 |
{ |
4152 |
return pthread_create (); |
4153 |
; |
4154 |
return 0; |
4155 |
} |
4156 |
_ACEOF |
4157 |
for ac_lib in '' pthread pthreads pthreadVC2 |
4158 |
do |
4159 |
if test -z "$ac_lib"; then |
4160 |
ac_res="none required" |
4161 |
else |
4162 |
ac_res=-l$ac_lib |
4163 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4164 |
fi |
4165 |
if ac_fn_c_try_link "$LINENO" |
4166 |
then : |
4167 |
ac_cv_search_pthread_create=$ac_res |
4168 |
fi |
4169 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4170 |
conftest$ac_exeext |
4171 |
if test ${ac_cv_search_pthread_create+y} |
4172 |
then : |
4173 |
break |
4174 |
fi |
4175 |
done |
4176 |
if test ${ac_cv_search_pthread_create+y} |
4177 |
then : |
4178 |
|
4179 |
else $as_nop |
4180 |
ac_cv_search_pthread_create=no |
4181 |
fi |
4182 |
rm conftest.$ac_ext |
4183 |
LIBS=$ac_func_search_save_LIBS |
4184 |
fi |
4185 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
4186 |
printf "%s\n" "$ac_cv_search_pthread_create" >&6; } |
4187 |
ac_res=$ac_cv_search_pthread_create |
4188 |
if test "$ac_res" != no |
4189 |
then : |
4190 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4191 |
|
4192 |
else $as_nop |
4193 |
as_fn_error $? "pthread functions not found" "$LINENO" 5 |
4194 |
|
4195 |
fi |
4196 |
|
4197 |
|
4198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
4199 |
printf %s "checking for utimes... " >&6; } |
4200 |
if test ${ac_cv_utimes+y} |
4201 |
then : |
4202 |
printf %s "(cached) " >&6 |
4203 |
else $as_nop |
4204 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4205 |
/* end confdefs.h. */ |
4206 |
|
4207 |
#include <sys/types.h> |
4208 |
#include <sys/time.h> |
4209 |
#include <utime.h> |
4210 |
struct timeval tv[2]; |
4211 |
int res; |
4212 |
int main (void) |
4213 |
{ |
4214 |
res = utimes ("/", tv); |
4215 |
return 0; |
4216 |
} |
4217 |
|
4218 |
_ACEOF |
4219 |
if ac_fn_c_try_link "$LINENO" |
4220 |
then : |
4221 |
ac_cv_utimes=yes |
4222 |
else $as_nop |
4223 |
ac_cv_utimes=no |
4224 |
fi |
4225 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4226 |
conftest$ac_exeext conftest.$ac_ext |
4227 |
fi |
4228 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
4229 |
printf "%s\n" "$ac_cv_utimes" >&6; } |
4230 |
test $ac_cv_utimes = yes && |
4231 |
printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
4232 |
|
4233 |
|
4234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
4235 |
printf %s "checking for futimes... " >&6; } |
4236 |
if test ${ac_cv_futimes+y} |
4237 |
then : |
4238 |
printf %s "(cached) " >&6 |
4239 |
else $as_nop |
4240 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4241 |
/* end confdefs.h. */ |
4242 |
|
4243 |
#include <sys/types.h> |
4244 |
#include <sys/time.h> |
4245 |
#include <utime.h> |
4246 |
struct timeval tv[2]; |
4247 |
int res; |
4248 |
int fd; |
4249 |
int main (void) |
4250 |
{ |
4251 |
res = futimes (fd, tv); |
4252 |
return 0; |
4253 |
} |
4254 |
|
4255 |
_ACEOF |
4256 |
if ac_fn_c_try_link "$LINENO" |
4257 |
then : |
4258 |
ac_cv_futimes=yes |
4259 |
else $as_nop |
4260 |
ac_cv_futimes=no |
4261 |
fi |
4262 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4263 |
conftest$ac_exeext conftest.$ac_ext |
4264 |
fi |
4265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 |
4266 |
printf "%s\n" "$ac_cv_futimes" >&6; } |
4267 |
test $ac_cv_futimes = yes && |
4268 |
printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h |
4269 |
|
4270 |
|
4271 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 |
4272 |
printf %s "checking for readahead... " >&6; } |
4273 |
if test ${ac_cv_readahead+y} |
4274 |
then : |
4275 |
printf %s "(cached) " >&6 |
4276 |
else $as_nop |
4277 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4278 |
/* end confdefs.h. */ |
4279 |
|
4280 |
#include <sys/types.h> |
4281 |
#include <fcntl.h> |
4282 |
int main (void) |
4283 |
{ |
4284 |
int fd = 0; |
4285 |
size_t count = 2; |
4286 |
ssize_t res; |
4287 |
res = readahead (fd, 0, count); |
4288 |
return 0; |
4289 |
} |
4290 |
|
4291 |
_ACEOF |
4292 |
if ac_fn_c_try_link "$LINENO" |
4293 |
then : |
4294 |
ac_cv_readahead=yes |
4295 |
else $as_nop |
4296 |
ac_cv_readahead=no |
4297 |
fi |
4298 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4299 |
conftest$ac_exeext conftest.$ac_ext |
4300 |
fi |
4301 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 |
4302 |
printf "%s\n" "$ac_cv_readahead" >&6; } |
4303 |
test $ac_cv_readahead = yes && |
4304 |
printf "%s\n" "#define HAVE_READAHEAD 1" >>confdefs.h |
4305 |
|
4306 |
|
4307 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
4308 |
printf %s "checking for fdatasync... " >&6; } |
4309 |
if test ${ac_cv_fdatasync+y} |
4310 |
then : |
4311 |
printf %s "(cached) " >&6 |
4312 |
else $as_nop |
4313 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4314 |
/* end confdefs.h. */ |
4315 |
|
4316 |
#include <unistd.h> |
4317 |
int main (void) |
4318 |
{ |
4319 |
int fd = 0; |
4320 |
fdatasync (fd); |
4321 |
return 0; |
4322 |
} |
4323 |
|
4324 |
_ACEOF |
4325 |
if ac_fn_c_try_link "$LINENO" |
4326 |
then : |
4327 |
ac_cv_fdatasync=yes |
4328 |
else $as_nop |
4329 |
ac_cv_fdatasync=no |
4330 |
fi |
4331 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4332 |
conftest$ac_exeext conftest.$ac_ext |
4333 |
fi |
4334 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 |
4335 |
printf "%s\n" "$ac_cv_fdatasync" >&6; } |
4336 |
test $ac_cv_fdatasync = yes && |
4337 |
printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h |
4338 |
|
4339 |
|
4340 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
4341 |
printf %s "checking for sendfile... " >&6; } |
4342 |
if test ${ac_cv_sendfile+y} |
4343 |
then : |
4344 |
printf %s "(cached) " >&6 |
4345 |
else $as_nop |
4346 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4347 |
/* end confdefs.h. */ |
4348 |
|
4349 |
# include <sys/types.h> |
4350 |
#if __linux |
4351 |
# include <sys/sendfile.h> |
4352 |
#elif __FreeBSD__ || defined __APPLE__ |
4353 |
# include <sys/socket.h> |
4354 |
# include <sys/uio.h> |
4355 |
#elif __hpux |
4356 |
# include <sys/socket.h> |
4357 |
#else |
4358 |
# error unsupported architecture |
4359 |
#endif |
4360 |
int main (void) |
4361 |
{ |
4362 |
int fd = 0; |
4363 |
off_t offset = 1; |
4364 |
size_t count = 2; |
4365 |
ssize_t res; |
4366 |
#if __linux |
4367 |
res = sendfile (fd, fd, &offset, count); |
4368 |
#elif __FreeBSD__ |
4369 |
res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
4370 |
#elif __hpux |
4371 |
res = sendfile (fd, fd, offset, count, 0, 0); |
4372 |
#endif |
4373 |
return 0; |
4374 |
} |
4375 |
|
4376 |
_ACEOF |
4377 |
if ac_fn_c_try_link "$LINENO" |
4378 |
then : |
4379 |
ac_cv_sendfile=yes |
4380 |
else $as_nop |
4381 |
ac_cv_sendfile=no |
4382 |
fi |
4383 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4384 |
conftest$ac_exeext conftest.$ac_ext |
4385 |
fi |
4386 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 |
4387 |
printf "%s\n" "$ac_cv_sendfile" >&6; } |
4388 |
test $ac_cv_sendfile = yes && |
4389 |
printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h |
4390 |
|
4391 |
|
4392 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 |
4393 |
printf %s "checking for sync_file_range... " >&6; } |
4394 |
if test ${ac_cv_sync_file_range+y} |
4395 |
then : |
4396 |
printf %s "(cached) " >&6 |
4397 |
else $as_nop |
4398 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4399 |
/* end confdefs.h. */ |
4400 |
|
4401 |
#include <sys/types.h> |
4402 |
#include <fcntl.h> |
4403 |
int main (void) |
4404 |
{ |
4405 |
int fd = 0; |
4406 |
off64_t offset = 1; |
4407 |
off64_t nbytes = 1; |
4408 |
unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER; |
4409 |
ssize_t res; |
4410 |
res = sync_file_range (fd, offset, nbytes, flags); |
4411 |
return 0; |
4412 |
} |
4413 |
|
4414 |
_ACEOF |
4415 |
if ac_fn_c_try_link "$LINENO" |
4416 |
then : |
4417 |
ac_cv_sync_file_range=yes |
4418 |
else $as_nop |
4419 |
ac_cv_sync_file_range=no |
4420 |
fi |
4421 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4422 |
conftest$ac_exeext conftest.$ac_ext |
4423 |
fi |
4424 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 |
4425 |
printf "%s\n" "$ac_cv_sync_file_range" >&6; } |
4426 |
test $ac_cv_sync_file_range = yes && |
4427 |
printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4428 |
|
4429 |
|
4430 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4431 |
printf %s "checking for fallocate... " >&6; } |
4432 |
if test ${ac_cv_linux_fallocate+y} |
4433 |
then : |
4434 |
printf %s "(cached) " >&6 |
4435 |
else $as_nop |
4436 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4437 |
/* end confdefs.h. */ |
4438 |
|
4439 |
#include <fcntl.h> |
4440 |
int main (void) |
4441 |
{ |
4442 |
int fd = 0; |
4443 |
int mode = 0; |
4444 |
off_t offset = 1; |
4445 |
off_t len = 1; |
4446 |
int res; |
4447 |
res = fallocate (fd, mode, offset, len); |
4448 |
return 0; |
4449 |
} |
4450 |
|
4451 |
_ACEOF |
4452 |
if ac_fn_c_try_link "$LINENO" |
4453 |
then : |
4454 |
ac_cv_linux_fallocate=yes |
4455 |
else $as_nop |
4456 |
ac_cv_linux_fallocate=no |
4457 |
fi |
4458 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4459 |
conftest$ac_exeext conftest.$ac_ext |
4460 |
fi |
4461 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5 |
4462 |
printf "%s\n" "$ac_cv_linux_fallocate" >&6; } |
4463 |
test $ac_cv_linux_fallocate = yes && |
4464 |
printf "%s\n" "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h |
4465 |
|
4466 |
|
4467 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
4468 |
printf %s "checking for sys_syncfs... " >&6; } |
4469 |
if test ${ac_cv_sys_syncfs+y} |
4470 |
then : |
4471 |
printf %s "(cached) " >&6 |
4472 |
else $as_nop |
4473 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4474 |
/* end confdefs.h. */ |
4475 |
|
4476 |
#include <unistd.h> |
4477 |
#include <sys/syscall.h> |
4478 |
int main (void) |
4479 |
{ |
4480 |
int res = syscall (__NR_syncfs, (int)0); |
4481 |
} |
4482 |
|
4483 |
_ACEOF |
4484 |
if ac_fn_c_try_link "$LINENO" |
4485 |
then : |
4486 |
ac_cv_sys_syncfs=yes |
4487 |
else $as_nop |
4488 |
ac_cv_sys_syncfs=no |
4489 |
fi |
4490 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4491 |
conftest$ac_exeext conftest.$ac_ext |
4492 |
fi |
4493 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
4494 |
printf "%s\n" "$ac_cv_sys_syncfs" >&6; } |
4495 |
test $ac_cv_sys_syncfs = yes && |
4496 |
printf "%s\n" "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
4497 |
|
4498 |
|
4499 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5 |
4500 |
printf %s "checking for prctl_set_name... " >&6; } |
4501 |
if test ${ac_cv_prctl_set_name+y} |
4502 |
then : |
4503 |
printf %s "(cached) " >&6 |
4504 |
else $as_nop |
4505 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4506 |
/* end confdefs.h. */ |
4507 |
|
4508 |
#include <sys/prctl.h> |
4509 |
int main (void) |
4510 |
{ |
4511 |
char *name = "test123"; |
4512 |
int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
4513 |
} |
4514 |
|
4515 |
_ACEOF |
4516 |
if ac_fn_c_try_link "$LINENO" |
4517 |
then : |
4518 |
ac_cv_prctl_set_name=yes |
4519 |
else $as_nop |
4520 |
ac_cv_prctl_set_name=no |
4521 |
fi |
4522 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4523 |
conftest$ac_exeext conftest.$ac_ext |
4524 |
fi |
4525 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5 |
4526 |
printf "%s\n" "$ac_cv_prctl_set_name" >&6; } |
4527 |
test $ac_cv_prctl_set_name = yes && |
4528 |
printf "%s\n" "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4529 |
|
4530 |
|
4531 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
4532 |
printf %s "checking for posix_close... " >&6; } |
4533 |
if test ${ac_cv_posix_close+y} |
4534 |
then : |
4535 |
printf %s "(cached) " >&6 |
4536 |
else $as_nop |
4537 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4538 |
/* end confdefs.h. */ |
4539 |
|
4540 |
#include <unistd.h> |
4541 |
int res; |
4542 |
int main (void) |
4543 |
{ |
4544 |
res = posix_close (0, 0); /* we do not need any flags */ |
4545 |
return 0; |
4546 |
} |
4547 |
|
4548 |
_ACEOF |
4549 |
if ac_fn_c_try_link "$LINENO" |
4550 |
then : |
4551 |
ac_cv_posix_close=yes |
4552 |
else $as_nop |
4553 |
ac_cv_posix_close=no |
4554 |
fi |
4555 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4556 |
conftest$ac_exeext conftest.$ac_ext |
4557 |
fi |
4558 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
4559 |
printf "%s\n" "$ac_cv_posix_close" >&6; } |
4560 |
test $ac_cv_posix_close = yes && |
4561 |
printf "%s\n" "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
4562 |
|
4563 |
|
4564 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4565 |
printf %s "checking for renameat2... " >&6; } |
4566 |
if test ${ac_cv_renameat2+y} |
4567 |
then : |
4568 |
printf %s "(cached) " >&6 |
4569 |
else $as_nop |
4570 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4571 |
/* end confdefs.h. */ |
4572 |
|
4573 |
#include <unistd.h> |
4574 |
#include <sys/syscall.h> |
4575 |
#include <linux/fs.h> |
4576 |
int res; |
4577 |
int main (void) |
4578 |
{ |
4579 |
res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
4580 |
return 0; |
4581 |
} |
4582 |
|
4583 |
_ACEOF |
4584 |
if ac_fn_c_try_link "$LINENO" |
4585 |
then : |
4586 |
ac_cv_renameat2=yes |
4587 |
else $as_nop |
4588 |
ac_cv_renameat2=no |
4589 |
fi |
4590 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4591 |
conftest$ac_exeext conftest.$ac_ext |
4592 |
fi |
4593 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4594 |
printf "%s\n" "$ac_cv_renameat2" >&6; } |
4595 |
test $ac_cv_renameat2 = yes && |
4596 |
printf "%s\n" "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4597 |
|
4598 |
|
4599 |
|
4600 |
|
4601 |
# for these to work, you need to run autoheader in IO::AIO, not libeio :( |
4602 |
|
4603 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
4604 |
printf %s "checking for set/getrlimit... " >&6; } |
4605 |
if test ${ac_cv_rlimits+y} |
4606 |
then : |
4607 |
printf %s "(cached) " >&6 |
4608 |
else $as_nop |
4609 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4610 |
/* end confdefs.h. */ |
4611 |
|
4612 |
#include <sys/time.h> |
4613 |
#include <sys/resource.h> |
4614 |
int main (void) |
4615 |
{ |
4616 |
struct rlimit srl; |
4617 |
int res; |
4618 |
srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
4619 |
res = getrlimit (RLIMIT_NOFILE, &srl); |
4620 |
res = setrlimit (RLIMIT_NOFILE, &srl); |
4621 |
return 0; |
4622 |
} |
4623 |
|
4624 |
_ACEOF |
4625 |
if ac_fn_c_try_link "$LINENO" |
4626 |
then : |
4627 |
ac_cv_rlimits=yes |
4628 |
else $as_nop |
4629 |
ac_cv_rlimits=no |
4630 |
fi |
4631 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4632 |
conftest$ac_exeext conftest.$ac_ext |
4633 |
fi |
4634 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
4635 |
printf "%s\n" "$ac_cv_rlimits" >&6; } |
4636 |
test $ac_cv_rlimits = yes && |
4637 |
printf "%s\n" "#define HAVE_RLIMITS 1" >>confdefs.h |
4638 |
|
4639 |
|
4640 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4641 |
printf %s "checking for posix_madvise... " >&6; } |
4642 |
if test ${ac_cv_posix_madvise+y} |
4643 |
then : |
4644 |
printf %s "(cached) " >&6 |
4645 |
else $as_nop |
4646 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4647 |
/* end confdefs.h. */ |
4648 |
|
4649 |
#include <sys/mman.h> |
4650 |
int main (void) |
4651 |
{ |
4652 |
int res = posix_madvise ((void *)0, (size_t)0, POSIX_MADV_NORMAL); |
4653 |
int a = POSIX_MADV_SEQUENTIAL; |
4654 |
int b = POSIX_MADV_RANDOM; |
4655 |
int c = POSIX_MADV_WILLNEED; |
4656 |
int d = POSIX_MADV_DONTNEED; |
4657 |
return 0; |
4658 |
} |
4659 |
|
4660 |
_ACEOF |
4661 |
if ac_fn_c_try_link "$LINENO" |
4662 |
then : |
4663 |
ac_cv_posix_madvise=yes |
4664 |
else $as_nop |
4665 |
ac_cv_posix_madvise=no |
4666 |
fi |
4667 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4668 |
conftest$ac_exeext conftest.$ac_ext |
4669 |
fi |
4670 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 |
4671 |
printf "%s\n" "$ac_cv_posix_madvise" >&6; } |
4672 |
test $ac_cv_posix_madvise = yes && |
4673 |
printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
4674 |
|
4675 |
|
4676 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 |
4677 |
printf %s "checking for posix_fadvise... " >&6; } |
4678 |
if test ${ac_cv_posix_fadvise+y} |
4679 |
then : |
4680 |
printf %s "(cached) " >&6 |
4681 |
else $as_nop |
4682 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4683 |
/* end confdefs.h. */ |
4684 |
|
4685 |
#define _XOPEN_SOURCE 600 |
4686 |
#include <fcntl.h> |
4687 |
int main (void) |
4688 |
{ |
4689 |
int res = posix_fadvise ((int)0, (off_t)0, (off_t)0, POSIX_FADV_NORMAL); |
4690 |
int a = POSIX_FADV_SEQUENTIAL; |
4691 |
int b = POSIX_FADV_NOREUSE; |
4692 |
int c = POSIX_FADV_RANDOM; |
4693 |
int d = POSIX_FADV_WILLNEED; |
4694 |
int e = POSIX_FADV_DONTNEED; |
4695 |
return 0; |
4696 |
} |
4697 |
|
4698 |
_ACEOF |
4699 |
if ac_fn_c_try_link "$LINENO" |
4700 |
then : |
4701 |
ac_cv_posix_fadvise=yes |
4702 |
else $as_nop |
4703 |
ac_cv_posix_fadvise=no |
4704 |
fi |
4705 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4706 |
conftest$ac_exeext conftest.$ac_ext |
4707 |
fi |
4708 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
4709 |
printf "%s\n" "$ac_cv_posix_fadvise" >&6; } |
4710 |
test $ac_cv_posix_fadvise = yes && |
4711 |
printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
4712 |
|
4713 |
|
4714 |
ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
4715 |
if test "x$ac_cv_header_linux_fs_h" = xyes |
4716 |
then : |
4717 |
printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
4718 |
|
4719 |
fi |
4720 |
ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default" |
4721 |
if test "x$ac_cv_header_linux_fiemap_h" = xyes |
4722 |
then : |
4723 |
printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h |
4724 |
|
4725 |
fi |
4726 |
|
4727 |
|
4728 |
ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
4729 |
if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
4730 |
then : |
4731 |
printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h |
4732 |
|
4733 |
fi |
4734 |
|
4735 |
|
4736 |
ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
4737 |
if test "x$ac_cv_header_sys_mkdev_h" = xyes |
4738 |
then : |
4739 |
printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h |
4740 |
|
4741 |
fi |
4742 |
|
4743 |
|
4744 |
ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
4745 |
if test "x$ac_cv_header_sys_uio_h" = xyes |
4746 |
then : |
4747 |
printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
4748 |
|
4749 |
fi |
4750 |
|
4751 |
|
4752 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fexecve" >&5 |
4753 |
printf %s "checking for fexecve... " >&6; } |
4754 |
if test ${ac_cv_fexecve+y} |
4755 |
then : |
4756 |
printf %s "(cached) " >&6 |
4757 |
else $as_nop |
4758 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4759 |
/* end confdefs.h. */ |
4760 |
|
4761 |
#include <fcntl.h> |
4762 |
#include <unistd.h> |
4763 |
int main (void) |
4764 |
{ |
4765 |
char *const argv[] = { "foo", "bar", 0 }; |
4766 |
int res = fexecve (-1, argv, 0); |
4767 |
return 0; |
4768 |
} |
4769 |
|
4770 |
_ACEOF |
4771 |
if ac_fn_c_try_link "$LINENO" |
4772 |
then : |
4773 |
ac_cv_fexecve=yes |
4774 |
else $as_nop |
4775 |
ac_cv_fexecve=no |
4776 |
fi |
4777 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4778 |
conftest$ac_exeext conftest.$ac_ext |
4779 |
fi |
4780 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fexecve" >&5 |
4781 |
printf "%s\n" "$ac_cv_fexecve" >&6; } |
4782 |
test $ac_cv_fexecve = yes && |
4783 |
printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h |
4784 |
|
4785 |
|
4786 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 |
4787 |
printf %s "checking for siginfo_t... " >&6; } |
4788 |
if test ${ac_cv_siginfo_t+y} |
4789 |
then : |
4790 |
printf %s "(cached) " >&6 |
4791 |
else $as_nop |
4792 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4793 |
/* end confdefs.h. */ |
4794 |
|
4795 |
#include <signal.h> |
4796 |
int main (void) |
4797 |
{ |
4798 |
siginfo_t si; |
4799 |
si.si_code; |
4800 |
si.si_pid; |
4801 |
si.si_uid; |
4802 |
si.si_value.sival_int; |
4803 |
si.si_value.sival_ptr; |
4804 |
return 0; |
4805 |
} |
4806 |
|
4807 |
_ACEOF |
4808 |
if ac_fn_c_try_link "$LINENO" |
4809 |
then : |
4810 |
ac_cv_siginfo_t=yes |
4811 |
else $as_nop |
4812 |
ac_cv_siginfo_t=no |
4813 |
fi |
4814 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4815 |
conftest$ac_exeext conftest.$ac_ext |
4816 |
fi |
4817 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_siginfo_t" >&5 |
4818 |
printf "%s\n" "$ac_cv_siginfo_t" >&6; } |
4819 |
test $ac_cv_siginfo_t = yes && |
4820 |
printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h |
4821 |
|
4822 |
|
4823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-style syscall interface" >&5 |
4824 |
printf %s "checking for unix-style syscall interface... " >&6; } |
4825 |
if test ${ac_cv_syscall+y} |
4826 |
then : |
4827 |
printf %s "(cached) " >&6 |
4828 |
else $as_nop |
4829 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4830 |
/* end confdefs.h. */ |
4831 |
|
4832 |
#include <unistd.h> |
4833 |
#include <sys/syscall.h> |
4834 |
int main (void) |
4835 |
{ |
4836 |
long res = syscall (SYS_exit, 0); |
4837 |
return 0; |
4838 |
} |
4839 |
|
4840 |
_ACEOF |
4841 |
if ac_fn_c_try_link "$LINENO" |
4842 |
then : |
4843 |
ac_cv_syscall=yes |
4844 |
else $as_nop |
4845 |
ac_cv_syscall=no |
4846 |
fi |
4847 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4848 |
conftest$ac_exeext conftest.$ac_ext |
4849 |
fi |
4850 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_syscall" >&5 |
4851 |
printf "%s\n" "$ac_cv_syscall" >&6; } |
4852 |
test $ac_cv_syscall = yes && |
4853 |
printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h |
4854 |
|
4855 |
|
4856 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4857 |
printf %s "checking for splice, vmsplice and tee... " >&6; } |
4858 |
if test ${ac_cv_linux_splice+y} |
4859 |
then : |
4860 |
printf %s "(cached) " >&6 |
4861 |
else $as_nop |
4862 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4863 |
/* end confdefs.h. */ |
4864 |
|
4865 |
#include <sys/types.h> |
4866 |
#include <fcntl.h> |
4867 |
#include <sys/uio.h> |
4868 |
int main (void) |
4869 |
{ |
4870 |
ssize_t res; |
4871 |
res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4872 |
res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
4873 |
res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT); |
4874 |
return 0; |
4875 |
} |
4876 |
|
4877 |
_ACEOF |
4878 |
if ac_fn_c_try_link "$LINENO" |
4879 |
then : |
4880 |
ac_cv_linux_splice=yes |
4881 |
else $as_nop |
4882 |
ac_cv_linux_splice=no |
4883 |
fi |
4884 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4885 |
conftest$ac_exeext conftest.$ac_ext |
4886 |
fi |
4887 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5 |
4888 |
printf "%s\n" "$ac_cv_linux_splice" >&6; } |
4889 |
test $ac_cv_linux_splice = yes && |
4890 |
printf "%s\n" "#define HAVE_LINUX_SPLICE 1" >>confdefs.h |
4891 |
|
4892 |
|
4893 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5 |
4894 |
printf %s "checking for pipe2... " >&6; } |
4895 |
if test ${ac_cv_pipe2+y} |
4896 |
then : |
4897 |
printf %s "(cached) " >&6 |
4898 |
else $as_nop |
4899 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4900 |
/* end confdefs.h. */ |
4901 |
|
4902 |
#include <fcntl.h> |
4903 |
#include <unistd.h> |
4904 |
int main (void) |
4905 |
{ |
4906 |
int res; |
4907 |
res = pipe2 (0, 0); |
4908 |
return 0; |
4909 |
} |
4910 |
|
4911 |
_ACEOF |
4912 |
if ac_fn_c_try_link "$LINENO" |
4913 |
then : |
4914 |
ac_cv_pipe2=yes |
4915 |
else $as_nop |
4916 |
ac_cv_pipe2=no |
4917 |
fi |
4918 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4919 |
conftest$ac_exeext conftest.$ac_ext |
4920 |
fi |
4921 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5 |
4922 |
printf "%s\n" "$ac_cv_pipe2" >&6; } |
4923 |
test $ac_cv_pipe2 = yes && |
4924 |
printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h |
4925 |
|
4926 |
|
4927 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
4928 |
printf %s "checking for eventfd... " >&6; } |
4929 |
if test ${ac_cv_eventfd+y} |
4930 |
then : |
4931 |
printf %s "(cached) " >&6 |
4932 |
else $as_nop |
4933 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4934 |
/* end confdefs.h. */ |
4935 |
|
4936 |
#include <sys/eventfd.h> |
4937 |
int main (void) |
4938 |
{ |
4939 |
int res; |
4940 |
res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
4941 |
return 0; |
4942 |
} |
4943 |
|
4944 |
_ACEOF |
4945 |
if ac_fn_c_try_link "$LINENO" |
4946 |
then : |
4947 |
ac_cv_eventfd=yes |
4948 |
else $as_nop |
4949 |
ac_cv_eventfd=no |
4950 |
fi |
4951 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4952 |
conftest$ac_exeext conftest.$ac_ext |
4953 |
fi |
4954 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
4955 |
printf "%s\n" "$ac_cv_eventfd" >&6; } |
4956 |
test $ac_cv_eventfd = yes && |
4957 |
printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
4958 |
|
4959 |
|
4960 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5 |
4961 |
printf %s "checking for timerfd_*... " >&6; } |
4962 |
if test ${ac_cv_timerfd+y} |
4963 |
then : |
4964 |
printf %s "(cached) " >&6 |
4965 |
else $as_nop |
4966 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4967 |
/* end confdefs.h. */ |
4968 |
|
4969 |
#include <sys/timerfd.h> |
4970 |
int main (void) |
4971 |
{ |
4972 |
struct itimerspec its; |
4973 |
int res; |
4974 |
res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
4975 |
res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
4976 |
res = timerfd_gettime (res, &its); |
4977 |
return 0; |
4978 |
} |
4979 |
|
4980 |
_ACEOF |
4981 |
if ac_fn_c_try_link "$LINENO" |
4982 |
then : |
4983 |
ac_cv_timerfd=yes |
4984 |
else $as_nop |
4985 |
ac_cv_timerfd=no |
4986 |
fi |
4987 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4988 |
conftest$ac_exeext conftest.$ac_ext |
4989 |
fi |
4990 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
4991 |
printf "%s\n" "$ac_cv_timerfd" >&6; } |
4992 |
test $ac_cv_timerfd = yes && |
4993 |
printf "%s\n" "#define HAVE_TIMERFD 1" >>confdefs.h |
4994 |
|
4995 |
|
4996 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
4997 |
printf %s "checking for memfd_create... " >&6; } |
4998 |
if test ${ac_cv_memfd_create+y} |
4999 |
then : |
5000 |
printf %s "(cached) " >&6 |
5001 |
else $as_nop |
5002 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5003 |
/* end confdefs.h. */ |
5004 |
|
5005 |
#include <sys/mman.h> |
5006 |
int main (void) |
5007 |
{ |
5008 |
int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING); |
5009 |
return 0; |
5010 |
} |
5011 |
|
5012 |
_ACEOF |
5013 |
if ac_fn_c_try_link "$LINENO" |
5014 |
then : |
5015 |
ac_cv_memfd_create=yes |
5016 |
else $as_nop |
5017 |
ac_cv_memfd_create=no |
5018 |
fi |
5019 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5020 |
conftest$ac_exeext conftest.$ac_ext |
5021 |
fi |
5022 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 |
5023 |
printf "%s\n" "$ac_cv_memfd_create" >&6; } |
5024 |
test $ac_cv_memfd_create = yes && |
5025 |
printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
5026 |
|
5027 |
|
5028 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
5029 |
printf %s "checking for copy_file_range... " >&6; } |
5030 |
if test ${ac_cv_copy_file_range+y} |
5031 |
then : |
5032 |
printf %s "(cached) " >&6 |
5033 |
else $as_nop |
5034 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5035 |
/* end confdefs.h. */ |
5036 |
|
5037 |
#include <unistd.h> |
5038 |
#include <sys/syscall.h> |
5039 |
/*#include <linux/copy.h>*/ |
5040 |
int main (void) |
5041 |
{ |
5042 |
int res; |
5043 |
/*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
5044 |
res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
5045 |
return 0; |
5046 |
} |
5047 |
|
5048 |
_ACEOF |
5049 |
if ac_fn_c_try_link "$LINENO" |
5050 |
then : |
5051 |
ac_cv_copy_file_range=yes |
5052 |
else $as_nop |
5053 |
ac_cv_copy_file_range=no |
5054 |
fi |
5055 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5056 |
conftest$ac_exeext conftest.$ac_ext |
5057 |
fi |
5058 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
5059 |
printf "%s\n" "$ac_cv_copy_file_range" >&6; } |
5060 |
test $ac_cv_copy_file_range = yes && |
5061 |
printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
5062 |
|
5063 |
|
5064 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
5065 |
printf %s "checking for st_xtimensec... " >&6; } |
5066 |
if test ${ac_cv_xtimensec+y} |
5067 |
then : |
5068 |
printf %s "(cached) " >&6 |
5069 |
else $as_nop |
5070 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5071 |
/* end confdefs.h. */ |
5072 |
|
5073 |
#include "EXTERN.h" |
5074 |
#include "perl.h" |
5075 |
#include "XSUB.h" |
5076 |
|
5077 |
int main (void) |
5078 |
{ |
5079 |
return PL_statcache.st_atimensec |
5080 |
+ PL_statcache.st_mtimensec |
5081 |
+ PL_statcache.st_ctimensec; |
5082 |
} |
5083 |
|
5084 |
_ACEOF |
5085 |
if ac_fn_c_try_compile "$LINENO" |
5086 |
then : |
5087 |
ac_cv_xtimensec=yes |
5088 |
else $as_nop |
5089 |
ac_cv_xtimensec=no |
5090 |
fi |
5091 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5092 |
fi |
5093 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
5094 |
printf "%s\n" "$ac_cv_xtimensec" >&6; } |
5095 |
test $ac_cv_xtimensec = yes && |
5096 |
printf "%s\n" "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
5097 |
|
5098 |
|
5099 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
5100 |
printf %s "checking for st_xtimespec... " >&6; } |
5101 |
if test ${ac_cv_xtimespec+y} |
5102 |
then : |
5103 |
printf %s "(cached) " >&6 |
5104 |
else $as_nop |
5105 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5106 |
/* end confdefs.h. */ |
5107 |
|
5108 |
#include "EXTERN.h" |
5109 |
#include "perl.h" |
5110 |
#include "XSUB.h" |
5111 |
|
5112 |
int main (void) |
5113 |
{ |
5114 |
return PL_statcache.st_atim.tv_nsec |
5115 |
+ PL_statcache.st_mtim.tv_nsec |
5116 |
+ PL_statcache.st_ctim.tv_nsec; |
5117 |
} |
5118 |
|
5119 |
_ACEOF |
5120 |
if ac_fn_c_try_compile "$LINENO" |
5121 |
then : |
5122 |
ac_cv_xtimespec=yes |
5123 |
else $as_nop |
5124 |
ac_cv_xtimespec=no |
5125 |
fi |
5126 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5127 |
fi |
5128 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
5129 |
printf "%s\n" "$ac_cv_xtimespec" >&6; } |
5130 |
test $ac_cv_xtimespec = yes && |
5131 |
printf "%s\n" "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
5132 |
|
5133 |
|
5134 |
# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
5135 |
|
5136 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
5137 |
printf %s "checking for st_birthtimensec... " >&6; } |
5138 |
if test ${ac_cv_birthtimensec+y} |
5139 |
then : |
5140 |
printf %s "(cached) " >&6 |
5141 |
else $as_nop |
5142 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5143 |
/* end confdefs.h. */ |
5144 |
|
5145 |
#include "EXTERN.h" |
5146 |
#include "perl.h" |
5147 |
#include "XSUB.h" |
5148 |
|
5149 |
int main (void) |
5150 |
{ |
5151 |
return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
5152 |
} |
5153 |
|
5154 |
_ACEOF |
5155 |
if ac_fn_c_try_compile "$LINENO" |
5156 |
then : |
5157 |
ac_cv_birthtimensec=yes |
5158 |
else $as_nop |
5159 |
ac_cv_birthtimensec=no |
5160 |
fi |
5161 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5162 |
fi |
5163 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
5164 |
printf "%s\n" "$ac_cv_birthtimensec" >&6; } |
5165 |
test $ac_cv_birthtimensec = yes && |
5166 |
printf "%s\n" "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
5167 |
|
5168 |
|
5169 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
5170 |
printf %s "checking for st_birthtimespec... " >&6; } |
5171 |
if test ${ac_cv_birthtimespec+y} |
5172 |
then : |
5173 |
printf %s "(cached) " >&6 |
5174 |
else $as_nop |
5175 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5176 |
/* end confdefs.h. */ |
5177 |
|
5178 |
#include "EXTERN.h" |
5179 |
#include "perl.h" |
5180 |
#include "XSUB.h" |
5181 |
|
5182 |
int main (void) |
5183 |
{ |
5184 |
return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
5185 |
} |
5186 |
|
5187 |
_ACEOF |
5188 |
if ac_fn_c_try_compile "$LINENO" |
5189 |
then : |
5190 |
ac_cv_birthtimespec=yes |
5191 |
else $as_nop |
5192 |
ac_cv_birthtimespec=no |
5193 |
fi |
5194 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5195 |
fi |
5196 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
5197 |
printf "%s\n" "$ac_cv_birthtimespec" >&6; } |
5198 |
test $ac_cv_birthtimespec = yes && |
5199 |
printf "%s\n" "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
5200 |
|
5201 |
|
5202 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
5203 |
printf %s "checking for st_gen... " >&6; } |
5204 |
if test ${ac_cv_st_gen+y} |
5205 |
then : |
5206 |
printf %s "(cached) " >&6 |
5207 |
else $as_nop |
5208 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5209 |
/* end confdefs.h. */ |
5210 |
|
5211 |
#include "EXTERN.h" |
5212 |
#include "perl.h" |
5213 |
#include "XSUB.h" |
5214 |
|
5215 |
int main (void) |
5216 |
{ |
5217 |
return PL_statcache.st_gen; |
5218 |
} |
5219 |
|
5220 |
_ACEOF |
5221 |
if ac_fn_c_try_compile "$LINENO" |
5222 |
then : |
5223 |
ac_cv_st_gen=yes |
5224 |
else $as_nop |
5225 |
ac_cv_st_gen=no |
5226 |
fi |
5227 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5228 |
fi |
5229 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
5230 |
printf "%s\n" "$ac_cv_st_gen" >&6; } |
5231 |
test $ac_cv_st_gen = yes && |
5232 |
printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h |
5233 |
|
5234 |
|
5235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statx" >&5 |
5236 |
printf %s "checking for statx... " >&6; } |
5237 |
if test ${ac_cv_statx+y} |
5238 |
then : |
5239 |
printf %s "(cached) " >&6 |
5240 |
else $as_nop |
5241 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5242 |
/* end confdefs.h. */ |
5243 |
|
5244 |
#include <sys/types.h> |
5245 |
#include <sys/stat.h> |
5246 |
#include <unistd.h> |
5247 |
#include <fcntl.h> |
5248 |
int res; |
5249 |
int main (void) |
5250 |
{ |
5251 |
struct statx sx; |
5252 |
int res; |
5253 |
res = statx (AT_FDCWD, ".", |
5254 |
AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC, |
5255 |
STATX_ALL, &sx); |
5256 |
STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME; |
5257 |
STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL; |
5258 |
STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED; |
5259 |
return 0; |
5260 |
} |
5261 |
|
5262 |
_ACEOF |
5263 |
if ac_fn_c_try_link "$LINENO" |
5264 |
then : |
5265 |
ac_cv_statx=yes |
5266 |
else $as_nop |
5267 |
ac_cv_statx=no |
5268 |
fi |
5269 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5270 |
conftest$ac_exeext conftest.$ac_ext |
5271 |
fi |
5272 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5 |
5273 |
printf "%s\n" "$ac_cv_statx" >&6; } |
5274 |
test $ac_cv_statx = yes && |
5275 |
printf "%s\n" "#define HAVE_STATX 1" >>confdefs.h |
5276 |
|
5277 |
|
5278 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5 |
5279 |
printf %s "checking for accept4... " >&6; } |
5280 |
if test ${ac_cv_accept4+y} |
5281 |
then : |
5282 |
printf %s "(cached) " >&6 |
5283 |
else $as_nop |
5284 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5285 |
/* end confdefs.h. */ |
5286 |
|
5287 |
#include <sys/types.h> |
5288 |
#include <sys/socket.h> |
5289 |
int main (void) |
5290 |
{ |
5291 |
int res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
5292 |
return 0; |
5293 |
} |
5294 |
|
5295 |
_ACEOF |
5296 |
if ac_fn_c_try_link "$LINENO" |
5297 |
then : |
5298 |
ac_cv_accept4=yes |
5299 |
else $as_nop |
5300 |
ac_cv_accept4=no |
5301 |
fi |
5302 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5303 |
conftest$ac_exeext conftest.$ac_ext |
5304 |
fi |
5305 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5 |
5306 |
printf "%s\n" "$ac_cv_accept4" >&6; } |
5307 |
test $ac_cv_accept4 = yes && |
5308 |
printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
5309 |
|
5310 |
|
5311 |
ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" |
5312 |
if test "x$ac_cv_header_sys_mount_h" = xyes |
5313 |
then : |
5314 |
printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h |
5315 |
|
5316 |
fi |
5317 |
|
5318 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount" >&5 |
5319 |
printf %s "checking for mount... " >&6; } |
5320 |
if test ${ac_cv_mount+y} |
5321 |
then : |
5322 |
printf %s "(cached) " >&6 |
5323 |
else $as_nop |
5324 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5325 |
/* end confdefs.h. */ |
5326 |
|
5327 |
#include <sys/mount.h> |
5328 |
int main (void) |
5329 |
{ |
5330 |
int res = mount ("path", "path", "fstype", MS_RDONLY, 0); |
5331 |
return 0; |
5332 |
} |
5333 |
|
5334 |
_ACEOF |
5335 |
if ac_fn_c_try_link "$LINENO" |
5336 |
then : |
5337 |
ac_cv_mount=yes |
5338 |
else $as_nop |
5339 |
ac_cv_mount=no |
5340 |
fi |
5341 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5342 |
conftest$ac_exeext conftest.$ac_ext |
5343 |
fi |
5344 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5 |
5345 |
printf "%s\n" "$ac_cv_mount" >&6; } |
5346 |
test $ac_cv_mount = yes && |
5347 |
printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h |
5348 |
|
5349 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount" >&5 |
5350 |
printf %s "checking for umount... " >&6; } |
5351 |
if test ${ac_cv_umount+y} |
5352 |
then : |
5353 |
printf %s "(cached) " >&6 |
5354 |
else $as_nop |
5355 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5356 |
/* end confdefs.h. */ |
5357 |
|
5358 |
#include <sys/mount.h> |
5359 |
int main (void) |
5360 |
{ |
5361 |
int res = umount ("path"); |
5362 |
return 0; |
5363 |
} |
5364 |
|
5365 |
_ACEOF |
5366 |
if ac_fn_c_try_link "$LINENO" |
5367 |
then : |
5368 |
ac_cv_umount=yes |
5369 |
else $as_nop |
5370 |
ac_cv_umount=no |
5371 |
fi |
5372 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5373 |
conftest$ac_exeext conftest.$ac_ext |
5374 |
fi |
5375 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount" >&5 |
5376 |
printf "%s\n" "$ac_cv_umount" >&6; } |
5377 |
test $ac_cv_umount = yes && |
5378 |
printf "%s\n" "#define HAVE_UMOUNT 1" >>confdefs.h |
5379 |
|
5380 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5 |
5381 |
printf %s "checking for umount2... " >&6; } |
5382 |
if test ${ac_cv_umount2+y} |
5383 |
then : |
5384 |
printf %s "(cached) " >&6 |
5385 |
else $as_nop |
5386 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5387 |
/* end confdefs.h. */ |
5388 |
|
5389 |
#include <sys/mount.h> |
5390 |
int main (void) |
5391 |
{ |
5392 |
int res = umount2 ("path", MNT_FORCE|MNT_DETACH); |
5393 |
return 0; |
5394 |
} |
5395 |
|
5396 |
_ACEOF |
5397 |
if ac_fn_c_try_link "$LINENO" |
5398 |
then : |
5399 |
ac_cv_umount2=yes |
5400 |
else $as_nop |
5401 |
ac_cv_umount2=no |
5402 |
fi |
5403 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5404 |
conftest$ac_exeext conftest.$ac_ext |
5405 |
fi |
5406 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount2" >&5 |
5407 |
printf "%s\n" "$ac_cv_umount2" >&6; } |
5408 |
test $ac_cv_umount2 = yes && |
5409 |
printf "%s\n" "#define HAVE_UMOUNT2 1" >>confdefs.h |
5410 |
|
5411 |
|
5412 |
cat >confcache <<\_ACEOF |
5413 |
# This file is a shell script that caches the results of configure |
5414 |
# tests run on this system so they can be shared between configure |
5415 |
# scripts and configure runs, see configure's option --config-cache. |
5416 |
# It is not useful on other systems. If it contains results you don't |
5417 |
# want to keep, you may remove or edit it. |
5418 |
# |
5419 |
# config.status only pays attention to the cache file if you give it |
5420 |
# the --recheck option to rerun configure. |
5421 |
# |
5422 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
5423 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
5424 |
# following values. |
5425 |
|
5426 |
_ACEOF |
5427 |
|
5428 |
# The following way of writing the cache mishandles newlines in values, |
5429 |
# but we know of no workaround that is simple, portable, and efficient. |
5430 |
# So, we kill variables containing newlines. |
5431 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
5432 |
# and sets the high bit in the cache file unless we assign to the vars. |
5433 |
( |
5434 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
5435 |
eval ac_val=\$$ac_var |
5436 |
case $ac_val in #( |
5437 |
*${as_nl}*) |
5438 |
case $ac_var in #( |
5439 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
5440 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
5441 |
esac |
5442 |
case $ac_var in #( |
5443 |
_ | IFS | as_nl) ;; #( |
5444 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
5445 |
*) { eval $ac_var=; unset $ac_var;} ;; |
5446 |
esac ;; |
5447 |
esac |
5448 |
done |
5449 |
|
5450 |
(set) 2>&1 | |
5451 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
5452 |
*${as_nl}ac_space=\ *) |
5453 |
# `set' does not quote correctly, so add quotes: double-quote |
5454 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
5455 |
sed -n \ |
5456 |
"s/'/'\\\\''/g; |
5457 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5458 |
;; #( |
5459 |
*) |
5460 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
5461 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
5462 |
;; |
5463 |
esac | |
5464 |
sort |
5465 |
) | |
5466 |
sed ' |
5467 |
/^ac_cv_env_/b end |
5468 |
t clear |
5469 |
:clear |
5470 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
5471 |
t end |
5472 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5473 |
:end' >>confcache |
5474 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
5475 |
if test -w "$cache_file"; then |
5476 |
if test "x$cache_file" != "x/dev/null"; then |
5477 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
5478 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
5479 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
5480 |
cat confcache >"$cache_file" |
5481 |
else |
5482 |
case $cache_file in #( |
5483 |
*/* | ?:*) |
5484 |
mv -f confcache "$cache_file"$$ && |
5485 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
5486 |
*) |
5487 |
mv -f confcache "$cache_file" ;; |
5488 |
esac |
5489 |
fi |
5490 |
fi |
5491 |
else |
5492 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
5493 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
5494 |
fi |
5495 |
fi |
5496 |
rm -f confcache |
5497 |
|
5498 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5499 |
# Let make expand exec_prefix. |
5500 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
5501 |
|
5502 |
DEFS=-DHAVE_CONFIG_H |
5503 |
|
5504 |
ac_libobjs= |
5505 |
ac_ltlibobjs= |
5506 |
U= |
5507 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
5508 |
# 1. Remove the extension, and $U if already installed. |
5509 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5510 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
5511 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
5512 |
# will be set to the directory where LIBOBJS objects are built. |
5513 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
5514 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
5515 |
done |
5516 |
LIBOBJS=$ac_libobjs |
5517 |
|
5518 |
LTLIBOBJS=$ac_ltlibobjs |
5519 |
|
5520 |
|
5521 |
|
5522 |
: "${CONFIG_STATUS=./config.status}" |
5523 |
ac_write_fail=0 |
5524 |
ac_clean_files_save=$ac_clean_files |
5525 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
5526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
5527 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
5528 |
as_write_fail=0 |
5529 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
5530 |
#! $SHELL |
5531 |
# Generated by $as_me. |
5532 |
# Run this file to recreate the current configuration. |
5533 |
# Compiler output produced by configure, useful for debugging |
5534 |
# configure, is in config.log if it exists. |
5535 |
|
5536 |
debug=false |
5537 |
ac_cs_recheck=false |
5538 |
ac_cs_silent=false |
5539 |
|
5540 |
SHELL=\${CONFIG_SHELL-$SHELL} |
5541 |
export SHELL |
5542 |
_ASEOF |
5543 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
5544 |
## -------------------- ## |
5545 |
## M4sh Initialization. ## |
5546 |
## -------------------- ## |
5547 |
|
5548 |
# Be more Bourne compatible |
5549 |
DUALCASE=1; export DUALCASE # for MKS sh |
5550 |
as_nop=: |
5551 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
5552 |
then : |
5553 |
emulate sh |
5554 |
NULLCMD=: |
5555 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
5556 |
# is contrary to our usage. Disable this feature. |
5557 |
alias -g '${1+"$@"}'='"$@"' |
5558 |
setopt NO_GLOB_SUBST |
5559 |
else $as_nop |
5560 |
case `(set -o) 2>/dev/null` in #( |
5561 |
*posix*) : |
5562 |
set -o posix ;; #( |
5563 |
*) : |
5564 |
;; |
5565 |
esac |
5566 |
fi |
5567 |
|
5568 |
|
5569 |
|
5570 |
# Reset variables that may have inherited troublesome values from |
5571 |
# the environment. |
5572 |
|
5573 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
5574 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
5575 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
5576 |
# Quoting is to prevent editors from complaining about space-tab. |
5577 |
as_nl=' |
5578 |
' |
5579 |
export as_nl |
5580 |
IFS=" "" $as_nl" |
5581 |
|
5582 |
PS1='$ ' |
5583 |
PS2='> ' |
5584 |
PS4='+ ' |
5585 |
|
5586 |
# Ensure predictable behavior from utilities with locale-dependent output. |
5587 |
LC_ALL=C |
5588 |
export LC_ALL |
5589 |
LANGUAGE=C |
5590 |
export LANGUAGE |
5591 |
|
5592 |
# We cannot yet rely on "unset" to work, but we need these variables |
5593 |
# to be unset--not just set to an empty or harmless value--now, to |
5594 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
5595 |
# also avoids known problems related to "unset" and subshell syntax |
5596 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
5597 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
5598 |
do eval test \${$as_var+y} \ |
5599 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
5600 |
done |
5601 |
|
5602 |
# Ensure that fds 0, 1, and 2 are open. |
5603 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
5604 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
5605 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
5606 |
|
5607 |
# The user is always right. |
5608 |
if ${PATH_SEPARATOR+false} :; then |
5609 |
PATH_SEPARATOR=: |
5610 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
5611 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
5612 |
PATH_SEPARATOR=';' |
5613 |
} |
5614 |
fi |
5615 |
|
5616 |
|
5617 |
# Find who we are. Look in the path if we contain no directory separator. |
5618 |
as_myself= |
5619 |
case $0 in #(( |
5620 |
*[\\/]* ) as_myself=$0 ;; |
5621 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5622 |
for as_dir in $PATH |
5623 |
do |
5624 |
IFS=$as_save_IFS |
5625 |
case $as_dir in #((( |
5626 |
'') as_dir=./ ;; |
5627 |
*/) ;; |
5628 |
*) as_dir=$as_dir/ ;; |
5629 |
esac |
5630 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
5631 |
done |
5632 |
IFS=$as_save_IFS |
5633 |
|
5634 |
;; |
5635 |
esac |
5636 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
5637 |
# in which case we are not to be found in the path. |
5638 |
if test "x$as_myself" = x; then |
5639 |
as_myself=$0 |
5640 |
fi |
5641 |
if test ! -f "$as_myself"; then |
5642 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
5643 |
exit 1 |
5644 |
fi |
5645 |
|
5646 |
|
5647 |
|
5648 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
5649 |
# ---------------------------------------- |
5650 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
5651 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
5652 |
# script with STATUS, using 1 if that was 0. |
5653 |
as_fn_error () |
5654 |
{ |
5655 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
5656 |
if test "$4"; then |
5657 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
5658 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
5659 |
fi |
5660 |
printf "%s\n" "$as_me: error: $2" >&2 |
5661 |
as_fn_exit $as_status |
5662 |
} # as_fn_error |
5663 |
|
5664 |
|
5665 |
|
5666 |
# as_fn_set_status STATUS |
5667 |
# ----------------------- |
5668 |
# Set $? to STATUS, without forking. |
5669 |
as_fn_set_status () |
5670 |
{ |
5671 |
return $1 |
5672 |
} # as_fn_set_status |
5673 |
|
5674 |
# as_fn_exit STATUS |
5675 |
# ----------------- |
5676 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
5677 |
as_fn_exit () |
5678 |
{ |
5679 |
set +e |
5680 |
as_fn_set_status $1 |
5681 |
exit $1 |
5682 |
} # as_fn_exit |
5683 |
|
5684 |
# as_fn_unset VAR |
5685 |
# --------------- |
5686 |
# Portably unset VAR. |
5687 |
as_fn_unset () |
5688 |
{ |
5689 |
{ eval $1=; unset $1;} |
5690 |
} |
5691 |
as_unset=as_fn_unset |
5692 |
|
5693 |
# as_fn_append VAR VALUE |
5694 |
# ---------------------- |
5695 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
5696 |
# advantage of any shell optimizations that allow amortized linear growth over |
5697 |
# repeated appends, instead of the typical quadratic growth present in naive |
5698 |
# implementations. |
5699 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
5700 |
then : |
5701 |
eval 'as_fn_append () |
5702 |
{ |
5703 |
eval $1+=\$2 |
5704 |
}' |
5705 |
else $as_nop |
5706 |
as_fn_append () |
5707 |
{ |
5708 |
eval $1=\$$1\$2 |
5709 |
} |
5710 |
fi # as_fn_append |
5711 |
|
5712 |
# as_fn_arith ARG... |
5713 |
# ------------------ |
5714 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
5715 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
5716 |
# must be portable across $(()) and expr. |
5717 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
5718 |
then : |
5719 |
eval 'as_fn_arith () |
5720 |
{ |
5721 |
as_val=$(( $* )) |
5722 |
}' |
5723 |
else $as_nop |
5724 |
as_fn_arith () |
5725 |
{ |
5726 |
as_val=`expr "$@" || test $? -eq 1` |
5727 |
} |
5728 |
fi # as_fn_arith |
5729 |
|
5730 |
|
5731 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
5732 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
5733 |
as_expr=expr |
5734 |
else |
5735 |
as_expr=false |
5736 |
fi |
5737 |
|
5738 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
5739 |
as_basename=basename |
5740 |
else |
5741 |
as_basename=false |
5742 |
fi |
5743 |
|
5744 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
5745 |
as_dirname=dirname |
5746 |
else |
5747 |
as_dirname=false |
5748 |
fi |
5749 |
|
5750 |
as_me=`$as_basename -- "$0" || |
5751 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
5752 |
X"$0" : 'X\(//\)$' \| \ |
5753 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5754 |
printf "%s\n" X/"$0" | |
5755 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
5756 |
s//\1/ |
5757 |
q |
5758 |
} |
5759 |
/^X\/\(\/\/\)$/{ |
5760 |
s//\1/ |
5761 |
q |
5762 |
} |
5763 |
/^X\/\(\/\).*/{ |
5764 |
s//\1/ |
5765 |
q |
5766 |
} |
5767 |
s/.*/./; q'` |
5768 |
|
5769 |
# Avoid depending upon Character Ranges. |
5770 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
5771 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
5772 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
5773 |
as_cr_digits='0123456789' |
5774 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
5775 |
|
5776 |
|
5777 |
# Determine whether it's possible to make 'echo' print without a newline. |
5778 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
5779 |
# for compatibility with existing Makefiles. |
5780 |
ECHO_C= ECHO_N= ECHO_T= |
5781 |
case `echo -n x` in #((((( |
5782 |
-n*) |
5783 |
case `echo 'xy\c'` in |
5784 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
5785 |
xy) ECHO_C='\c';; |
5786 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
5787 |
ECHO_T=' ';; |
5788 |
esac;; |
5789 |
*) |
5790 |
ECHO_N='-n';; |
5791 |
esac |
5792 |
|
5793 |
# For backward compatibility with old third-party macros, we provide |
5794 |
# the shell variables $as_echo and $as_echo_n. New code should use |
5795 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
5796 |
as_echo='printf %s\n' |
5797 |
as_echo_n='printf %s' |
5798 |
|
5799 |
rm -f conf$$ conf$$.exe conf$$.file |
5800 |
if test -d conf$$.dir; then |
5801 |
rm -f conf$$.dir/conf$$.file |
5802 |
else |
5803 |
rm -f conf$$.dir |
5804 |
mkdir conf$$.dir 2>/dev/null |
5805 |
fi |
5806 |
if (echo >conf$$.file) 2>/dev/null; then |
5807 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
5808 |
as_ln_s='ln -s' |
5809 |
# ... but there are two gotchas: |
5810 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
5811 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
5812 |
# In both cases, we have to default to `cp -pR'. |
5813 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
5814 |
as_ln_s='cp -pR' |
5815 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
5816 |
as_ln_s=ln |
5817 |
else |
5818 |
as_ln_s='cp -pR' |
5819 |
fi |
5820 |
else |
5821 |
as_ln_s='cp -pR' |
5822 |
fi |
5823 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
5824 |
rmdir conf$$.dir 2>/dev/null |
5825 |
|
5826 |
|
5827 |
# as_fn_mkdir_p |
5828 |
# ------------- |
5829 |
# Create "$as_dir" as a directory, including parents if necessary. |
5830 |
as_fn_mkdir_p () |
5831 |
{ |
5832 |
|
5833 |
case $as_dir in #( |
5834 |
-*) as_dir=./$as_dir;; |
5835 |
esac |
5836 |
test -d "$as_dir" || eval $as_mkdir_p || { |
5837 |
as_dirs= |
5838 |
while :; do |
5839 |
case $as_dir in #( |
5840 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
5841 |
*) as_qdir=$as_dir;; |
5842 |
esac |
5843 |
as_dirs="'$as_qdir' $as_dirs" |
5844 |
as_dir=`$as_dirname -- "$as_dir" || |
5845 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5846 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
5847 |
X"$as_dir" : 'X\(//\)$' \| \ |
5848 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
5849 |
printf "%s\n" X"$as_dir" | |
5850 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5851 |
s//\1/ |
5852 |
q |
5853 |
} |
5854 |
/^X\(\/\/\)[^/].*/{ |
5855 |
s//\1/ |
5856 |
q |
5857 |
} |
5858 |
/^X\(\/\/\)$/{ |
5859 |
s//\1/ |
5860 |
q |
5861 |
} |
5862 |
/^X\(\/\).*/{ |
5863 |
s//\1/ |
5864 |
q |
5865 |
} |
5866 |
s/.*/./; q'` |
5867 |
test -d "$as_dir" && break |
5868 |
done |
5869 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
5870 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5871 |
|
5872 |
|
5873 |
} # as_fn_mkdir_p |
5874 |
if mkdir -p . 2>/dev/null; then |
5875 |
as_mkdir_p='mkdir -p "$as_dir"' |
5876 |
else |
5877 |
test -d ./-p && rmdir ./-p |
5878 |
as_mkdir_p=false |
5879 |
fi |
5880 |
|
5881 |
|
5882 |
# as_fn_executable_p FILE |
5883 |
# ----------------------- |
5884 |
# Test if FILE is an executable regular file. |
5885 |
as_fn_executable_p () |
5886 |
{ |
5887 |
test -f "$1" && test -x "$1" |
5888 |
} # as_fn_executable_p |
5889 |
as_test_x='test -x' |
5890 |
as_executable_p=as_fn_executable_p |
5891 |
|
5892 |
# Sed expression to map a string onto a valid CPP name. |
5893 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
5894 |
|
5895 |
# Sed expression to map a string onto a valid variable name. |
5896 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
5897 |
|
5898 |
|
5899 |
exec 6>&1 |
5900 |
## ----------------------------------- ## |
5901 |
## Main body of $CONFIG_STATUS script. ## |
5902 |
## ----------------------------------- ## |
5903 |
_ASEOF |
5904 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
5905 |
|
5906 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5907 |
# Save the log message, to keep $0 and so on meaningful, and to |
5908 |
# report actual input values of CONFIG_FILES etc. instead of their |
5909 |
# values after options handling. |
5910 |
ac_log=" |
5911 |
This file was extended by $as_me, which was |
5912 |
generated by GNU Autoconf 2.71. Invocation command line was |
5913 |
|
5914 |
CONFIG_FILES = $CONFIG_FILES |
5915 |
CONFIG_HEADERS = $CONFIG_HEADERS |
5916 |
CONFIG_LINKS = $CONFIG_LINKS |
5917 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
5918 |
$ $0 $@ |
5919 |
|
5920 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
5921 |
" |
5922 |
|
5923 |
_ACEOF |
5924 |
|
5925 |
|
5926 |
case $ac_config_headers in *" |
5927 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
5928 |
esac |
5929 |
|
5930 |
|
5931 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5932 |
# Files that config.status was made for. |
5933 |
config_headers="$ac_config_headers" |
5934 |
|
5935 |
_ACEOF |
5936 |
|
5937 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5938 |
ac_cs_usage="\ |
5939 |
\`$as_me' instantiates files and other configuration actions |
5940 |
from templates according to the current configuration. Unless the files |
5941 |
and actions are specified as TAGs, all are instantiated by default. |
5942 |
|
5943 |
Usage: $0 [OPTION]... [TAG]... |
5944 |
|
5945 |
-h, --help print this help, then exit |
5946 |
-V, --version print version number and configuration settings, then exit |
5947 |
--config print configuration, then exit |
5948 |
-q, --quiet, --silent |
5949 |
do not print progress messages |
5950 |
-d, --debug don't remove temporary files |
5951 |
--recheck update $as_me by reconfiguring in the same conditions |
5952 |
--header=FILE[:TEMPLATE] |
5953 |
instantiate the configuration header FILE |
5954 |
|
5955 |
Configuration headers: |
5956 |
$config_headers |
5957 |
|
5958 |
Report bugs to the package provider." |
5959 |
|
5960 |
_ACEOF |
5961 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
5962 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
5963 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5964 |
ac_cs_config='$ac_cs_config_escaped' |
5965 |
ac_cs_version="\\ |
5966 |
config.status |
5967 |
configured by $0, generated by GNU Autoconf 2.71, |
5968 |
with options \\"\$ac_cs_config\\" |
5969 |
|
5970 |
Copyright (C) 2021 Free Software Foundation, Inc. |
5971 |
This config.status script is free software; the Free Software Foundation |
5972 |
gives unlimited permission to copy, distribute and modify it." |
5973 |
|
5974 |
ac_pwd='$ac_pwd' |
5975 |
srcdir='$srcdir' |
5976 |
test -n "\$AWK" || AWK=awk |
5977 |
_ACEOF |
5978 |
|
5979 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5980 |
# The default lists apply if the user does not specify any file. |
5981 |
ac_need_defaults=: |
5982 |
while test $# != 0 |
5983 |
do |
5984 |
case $1 in |
5985 |
--*=?*) |
5986 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
5987 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
5988 |
ac_shift=: |
5989 |
;; |
5990 |
--*=) |
5991 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
5992 |
ac_optarg= |
5993 |
ac_shift=: |
5994 |
;; |
5995 |
*) |
5996 |
ac_option=$1 |
5997 |
ac_optarg=$2 |
5998 |
ac_shift=shift |
5999 |
;; |
6000 |
esac |
6001 |
|
6002 |
case $ac_option in |
6003 |
# Handling of the options. |
6004 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6005 |
ac_cs_recheck=: ;; |
6006 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6007 |
printf "%s\n" "$ac_cs_version"; exit ;; |
6008 |
--config | --confi | --conf | --con | --co | --c ) |
6009 |
printf "%s\n" "$ac_cs_config"; exit ;; |
6010 |
--debug | --debu | --deb | --de | --d | -d ) |
6011 |
debug=: ;; |
6012 |
--header | --heade | --head | --hea ) |
6013 |
$ac_shift |
6014 |
case $ac_optarg in |
6015 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
6016 |
esac |
6017 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
6018 |
ac_need_defaults=false;; |
6019 |
--he | --h) |
6020 |
# Conflict between --help and --header |
6021 |
as_fn_error $? "ambiguous option: \`$1' |
6022 |
Try \`$0 --help' for more information.";; |
6023 |
--help | --hel | -h ) |
6024 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
6025 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6026 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
6027 |
ac_cs_silent=: ;; |
6028 |
|
6029 |
# This is an error. |
6030 |
-*) as_fn_error $? "unrecognized option: \`$1' |
6031 |
Try \`$0 --help' for more information." ;; |
6032 |
|
6033 |
*) as_fn_append ac_config_targets " $1" |
6034 |
ac_need_defaults=false ;; |
6035 |
|
6036 |
esac |
6037 |
shift |
6038 |
done |
6039 |
|
6040 |
ac_configure_extra_args= |
6041 |
|
6042 |
if $ac_cs_silent; then |
6043 |
exec 6>/dev/null |
6044 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
6045 |
fi |
6046 |
|
6047 |
_ACEOF |
6048 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6049 |
if \$ac_cs_recheck; then |
6050 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
6051 |
shift |
6052 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
6053 |
CONFIG_SHELL='$SHELL' |
6054 |
export CONFIG_SHELL |
6055 |
exec "\$@" |
6056 |
fi |
6057 |
|
6058 |
_ACEOF |
6059 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6060 |
exec 5>>config.log |
6061 |
{ |
6062 |
echo |
6063 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
6064 |
## Running $as_me. ## |
6065 |
_ASBOX |
6066 |
printf "%s\n" "$ac_log" |
6067 |
} >&5 |
6068 |
|
6069 |
_ACEOF |
6070 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6071 |
_ACEOF |
6072 |
|
6073 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6074 |
|
6075 |
# Handling of arguments. |
6076 |
for ac_config_target in $ac_config_targets |
6077 |
do |
6078 |
case $ac_config_target in |
6079 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
6080 |
|
6081 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6082 |
esac |
6083 |
done |
6084 |
|
6085 |
|
6086 |
# If the user did not use the arguments to specify the items to instantiate, |
6087 |
# then the envvar interface is used. Set only those that are not. |
6088 |
# We use the long form for the default assignment because of an extremely |
6089 |
# bizarre bug on SunOS 4.1.3. |
6090 |
if $ac_need_defaults; then |
6091 |
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
6092 |
fi |
6093 |
|
6094 |
# Have a temporary directory for convenience. Make it in the build tree |
6095 |
# simply because there is no reason against having it here, and in addition, |
6096 |
# creating and moving files from /tmp can sometimes cause problems. |
6097 |
# Hook for its removal unless debugging. |
6098 |
# Note that there is a small window in which the directory will not be cleaned: |
6099 |
# after its creation but before its name has been assigned to `$tmp'. |
6100 |
$debug || |
6101 |
{ |
6102 |
tmp= ac_tmp= |
6103 |
trap 'exit_status=$? |
6104 |
: "${ac_tmp:=$tmp}" |
6105 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
6106 |
' 0 |
6107 |
trap 'as_fn_exit 1' 1 2 13 15 |
6108 |
} |
6109 |
# Create a (secure) tmp directory for tmp files. |
6110 |
|
6111 |
{ |
6112 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
6113 |
test -d "$tmp" |
6114 |
} || |
6115 |
{ |
6116 |
tmp=./conf$$-$RANDOM |
6117 |
(umask 077 && mkdir "$tmp") |
6118 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
6119 |
ac_tmp=$tmp |
6120 |
|
6121 |
# Set up the scripts for CONFIG_HEADERS section. |
6122 |
# No need to generate them if there are no CONFIG_HEADERS. |
6123 |
# This happens for instance with `./config.status Makefile'. |
6124 |
if test -n "$CONFIG_HEADERS"; then |
6125 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
6126 |
BEGIN { |
6127 |
_ACEOF |
6128 |
|
6129 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
6130 |
# here-document in config.status, that substitutes the proper values into |
6131 |
# config.h.in to produce config.h. |
6132 |
|
6133 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
6134 |
# handling of long lines. |
6135 |
ac_delim='%!_!# ' |
6136 |
for ac_last_try in false false :; do |
6137 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
6138 |
if test -z "$ac_tt"; then |
6139 |
break |
6140 |
elif $ac_last_try; then |
6141 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
6142 |
else |
6143 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
6144 |
fi |
6145 |
done |
6146 |
|
6147 |
# For the awk script, D is an array of macro values keyed by name, |
6148 |
# likewise P contains macro parameters if any. Preserve backslash |
6149 |
# newline sequences. |
6150 |
|
6151 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
6152 |
sed -n ' |
6153 |
s/.\{148\}/&'"$ac_delim"'/g |
6154 |
t rset |
6155 |
:rset |
6156 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
6157 |
t def |
6158 |
d |
6159 |
:def |
6160 |
s/\\$// |
6161 |
t bsnl |
6162 |
s/["\\]/\\&/g |
6163 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
6164 |
D["\1"]=" \3"/p |
6165 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
6166 |
d |
6167 |
:bsnl |
6168 |
s/["\\]/\\&/g |
6169 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
6170 |
D["\1"]=" \3\\\\\\n"\\/p |
6171 |
t cont |
6172 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
6173 |
t cont |
6174 |
d |
6175 |
:cont |
6176 |
n |
6177 |
s/.\{148\}/&'"$ac_delim"'/g |
6178 |
t clear |
6179 |
:clear |
6180 |
s/\\$// |
6181 |
t bsnlc |
6182 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
6183 |
d |
6184 |
:bsnlc |
6185 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
6186 |
b cont |
6187 |
' <confdefs.h | sed ' |
6188 |
s/'"$ac_delim"'/"\\\ |
6189 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
6190 |
|
6191 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6192 |
for (key in D) D_is_set[key] = 1 |
6193 |
FS = "" |
6194 |
} |
6195 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
6196 |
line = \$ 0 |
6197 |
split(line, arg, " ") |
6198 |
if (arg[1] == "#") { |
6199 |
defundef = arg[2] |
6200 |
mac1 = arg[3] |
6201 |
} else { |
6202 |
defundef = substr(arg[1], 2) |
6203 |
mac1 = arg[2] |
6204 |
} |
6205 |
split(mac1, mac2, "(") #) |
6206 |
macro = mac2[1] |
6207 |
prefix = substr(line, 1, index(line, defundef) - 1) |
6208 |
if (D_is_set[macro]) { |
6209 |
# Preserve the white space surrounding the "#". |
6210 |
print prefix "define", macro P[macro] D[macro] |
6211 |
next |
6212 |
} else { |
6213 |
# Replace #undef with comments. This is necessary, for example, |
6214 |
# in the case of _POSIX_SOURCE, which is predefined and required |
6215 |
# on some systems where configure will not decide to define it. |
6216 |
if (defundef == "undef") { |
6217 |
print "/*", prefix defundef, macro, "*/" |
6218 |
next |
6219 |
} |
6220 |
} |
6221 |
} |
6222 |
{ print } |
6223 |
_ACAWK |
6224 |
_ACEOF |
6225 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6226 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
6227 |
fi # test -n "$CONFIG_HEADERS" |
6228 |
|
6229 |
|
6230 |
eval set X " :H $CONFIG_HEADERS " |
6231 |
shift |
6232 |
for ac_tag |
6233 |
do |
6234 |
case $ac_tag in |
6235 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
6236 |
esac |
6237 |
case $ac_mode$ac_tag in |
6238 |
:[FHL]*:*);; |
6239 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
6240 |
:[FH]-) ac_tag=-:-;; |
6241 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
6242 |
esac |
6243 |
ac_save_IFS=$IFS |
6244 |
IFS=: |
6245 |
set x $ac_tag |
6246 |
IFS=$ac_save_IFS |
6247 |
shift |
6248 |
ac_file=$1 |
6249 |
shift |
6250 |
|
6251 |
case $ac_mode in |
6252 |
:L) ac_source=$1;; |
6253 |
:[FH]) |
6254 |
ac_file_inputs= |
6255 |
for ac_f |
6256 |
do |
6257 |
case $ac_f in |
6258 |
-) ac_f="$ac_tmp/stdin";; |
6259 |
*) # Look for the file first in the build tree, then in the source tree |
6260 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
6261 |
# because $ac_f cannot contain `:'. |
6262 |
test -f "$ac_f" || |
6263 |
case $ac_f in |
6264 |
[\\/$]*) false;; |
6265 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
6266 |
esac || |
6267 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
6268 |
esac |
6269 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
6270 |
as_fn_append ac_file_inputs " '$ac_f'" |
6271 |
done |
6272 |
|
6273 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
6274 |
# use $as_me), people would be surprised to read: |
6275 |
# /* config.h. Generated by config.status. */ |
6276 |
configure_input='Generated from '` |
6277 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
6278 |
`' by configure.' |
6279 |
if test x"$ac_file" != x-; then |
6280 |
configure_input="$ac_file. $configure_input" |
6281 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
6282 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
6283 |
fi |
6284 |
# Neutralize special characters interpreted by sed in replacement strings. |
6285 |
case $configure_input in #( |
6286 |
*\&* | *\|* | *\\* ) |
6287 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
6288 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
6289 |
*) ac_sed_conf_input=$configure_input;; |
6290 |
esac |
6291 |
|
6292 |
case $ac_tag in |
6293 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
6294 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
6295 |
esac |
6296 |
;; |
6297 |
esac |
6298 |
|
6299 |
ac_dir=`$as_dirname -- "$ac_file" || |
6300 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6301 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
6302 |
X"$ac_file" : 'X\(//\)$' \| \ |
6303 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
6304 |
printf "%s\n" X"$ac_file" | |
6305 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
6306 |
s//\1/ |
6307 |
q |
6308 |
} |
6309 |
/^X\(\/\/\)[^/].*/{ |
6310 |
s//\1/ |
6311 |
q |
6312 |
} |
6313 |
/^X\(\/\/\)$/{ |
6314 |
s//\1/ |
6315 |
q |
6316 |
} |
6317 |
/^X\(\/\).*/{ |
6318 |
s//\1/ |
6319 |
q |
6320 |
} |
6321 |
s/.*/./; q'` |
6322 |
as_dir="$ac_dir"; as_fn_mkdir_p |
6323 |
ac_builddir=. |
6324 |
|
6325 |
case "$ac_dir" in |
6326 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
6327 |
*) |
6328 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
6329 |
# A ".." for each directory in $ac_dir_suffix. |
6330 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
6331 |
case $ac_top_builddir_sub in |
6332 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
6333 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
6334 |
esac ;; |
6335 |
esac |
6336 |
ac_abs_top_builddir=$ac_pwd |
6337 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
6338 |
# for backward compatibility: |
6339 |
ac_top_builddir=$ac_top_build_prefix |
6340 |
|
6341 |
case $srcdir in |
6342 |
.) # We are building in place. |
6343 |
ac_srcdir=. |
6344 |
ac_top_srcdir=$ac_top_builddir_sub |
6345 |
ac_abs_top_srcdir=$ac_pwd ;; |
6346 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
6347 |
ac_srcdir=$srcdir$ac_dir_suffix; |
6348 |
ac_top_srcdir=$srcdir |
6349 |
ac_abs_top_srcdir=$srcdir ;; |
6350 |
*) # Relative name. |
6351 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
6352 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
6353 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
6354 |
esac |
6355 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
6356 |
|
6357 |
|
6358 |
case $ac_mode in |
6359 |
|
6360 |
:H) |
6361 |
# |
6362 |
# CONFIG_HEADER |
6363 |
# |
6364 |
if test x"$ac_file" != x-; then |
6365 |
{ |
6366 |
printf "%s\n" "/* $configure_input */" >&1 \ |
6367 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
6368 |
} >"$ac_tmp/config.h" \ |
6369 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
6370 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
6371 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
6372 |
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
6373 |
else |
6374 |
rm -f "$ac_file" |
6375 |
mv "$ac_tmp/config.h" "$ac_file" \ |
6376 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
6377 |
fi |
6378 |
else |
6379 |
printf "%s\n" "/* $configure_input */" >&1 \ |
6380 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
6381 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
6382 |
fi |
6383 |
;; |
6384 |
|
6385 |
|
6386 |
esac |
6387 |
|
6388 |
done # for ac_tag |
6389 |
|
6390 |
|
6391 |
as_fn_exit 0 |
6392 |
_ACEOF |
6393 |
ac_clean_files=$ac_clean_files_save |
6394 |
|
6395 |
test $ac_write_fail = 0 || |
6396 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
6397 |
|
6398 |
|
6399 |
# configure is writing to config.log, and then calls config.status. |
6400 |
# config.status does its own redirection, appending to config.log. |
6401 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
6402 |
# by configure, so config.status won't be able to write to it; its |
6403 |
# output is simply discarded. So we exec the FD to /dev/null, |
6404 |
# effectively closing config.log, so it can be properly (re)opened and |
6405 |
# appended to by config.status. When coming back to configure, we |
6406 |
# need to make the FD available again. |
6407 |
if test "$no_create" != yes; then |
6408 |
ac_cs_success=: |
6409 |
ac_config_status_args= |
6410 |
test "$silent" = yes && |
6411 |
ac_config_status_args="$ac_config_status_args --quiet" |
6412 |
exec 5>/dev/null |
6413 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
6414 |
exec 5>>config.log |
6415 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
6416 |
# would make configure fail if this is the last instruction. |
6417 |
$ac_cs_success || as_fn_exit 1 |
6418 |
fi |
6419 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
6420 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
6421 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
6422 |
fi |
6423 |
|
6424 |
|
6425 |
|