1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.67. |
4 |
# |
5 |
# |
6 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
7 |
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
8 |
# Foundation, Inc. |
9 |
# |
10 |
# |
11 |
# This configure script is free software; the Free Software Foundation |
12 |
# gives unlimited permission to copy, distribute and modify it. |
13 |
## -------------------- ## |
14 |
## M4sh Initialization. ## |
15 |
## -------------------- ## |
16 |
|
17 |
# Be more Bourne compatible |
18 |
DUALCASE=1; export DUALCASE # for MKS sh |
19 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
20 |
emulate sh |
21 |
NULLCMD=: |
22 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
23 |
# is contrary to our usage. Disable this feature. |
24 |
alias -g '${1+"$@"}'='"$@"' |
25 |
setopt NO_GLOB_SUBST |
26 |
else |
27 |
case `(set -o) 2>/dev/null` in #( |
28 |
*posix*) : |
29 |
set -o posix ;; #( |
30 |
*) : |
31 |
;; |
32 |
esac |
33 |
fi |
34 |
|
35 |
|
36 |
as_nl=' |
37 |
' |
38 |
export as_nl |
39 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
40 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
41 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
42 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
43 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
44 |
# but without wasting forks for bash or zsh. |
45 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
46 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
47 |
as_echo='print -r --' |
48 |
as_echo_n='print -rn --' |
49 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
50 |
as_echo='printf %s\n' |
51 |
as_echo_n='printf %s' |
52 |
else |
53 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
54 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
55 |
as_echo_n='/usr/ucb/echo -n' |
56 |
else |
57 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 |
as_echo_n_body='eval |
59 |
arg=$1; |
60 |
case $arg in #( |
61 |
*"$as_nl"*) |
62 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
63 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
64 |
esac; |
65 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
66 |
' |
67 |
export as_echo_n_body |
68 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
69 |
fi |
70 |
export as_echo_body |
71 |
as_echo='sh -c $as_echo_body as_echo' |
72 |
fi |
73 |
|
74 |
# The user is always right. |
75 |
if test "${PATH_SEPARATOR+set}" != set; then |
76 |
PATH_SEPARATOR=: |
77 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
78 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
79 |
PATH_SEPARATOR=';' |
80 |
} |
81 |
fi |
82 |
|
83 |
|
84 |
# IFS |
85 |
# We need space, tab and new line, in precisely that order. Quoting is |
86 |
# there to prevent editors from complaining about space-tab. |
87 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
88 |
# splitting by setting IFS to empty value.) |
89 |
IFS=" "" $as_nl" |
90 |
|
91 |
# Find who we are. Look in the path if we contain no directory separator. |
92 |
case $0 in #(( |
93 |
*[\\/]* ) as_myself=$0 ;; |
94 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
95 |
for as_dir in $PATH |
96 |
do |
97 |
IFS=$as_save_IFS |
98 |
test -z "$as_dir" && as_dir=. |
99 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
100 |
done |
101 |
IFS=$as_save_IFS |
102 |
|
103 |
;; |
104 |
esac |
105 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
106 |
# in which case we are not to be found in the path. |
107 |
if test "x$as_myself" = x; then |
108 |
as_myself=$0 |
109 |
fi |
110 |
if test ! -f "$as_myself"; then |
111 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
112 |
exit 1 |
113 |
fi |
114 |
|
115 |
# Unset variables that we do not need and which cause bugs (e.g. in |
116 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
117 |
# suppresses any "Segmentation fault" message there. '((' could |
118 |
# trigger a bug in pdksh 5.2.14. |
119 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
120 |
do eval test x\${$as_var+set} = xset \ |
121 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
122 |
done |
123 |
PS1='$ ' |
124 |
PS2='> ' |
125 |
PS4='+ ' |
126 |
|
127 |
# NLS nuisances. |
128 |
LC_ALL=C |
129 |
export LC_ALL |
130 |
LANGUAGE=C |
131 |
export LANGUAGE |
132 |
|
133 |
# CDPATH. |
134 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
135 |
|
136 |
if test "x$CONFIG_SHELL" = x; then |
137 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
138 |
emulate sh |
139 |
NULLCMD=: |
140 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
141 |
# is contrary to our usage. Disable this feature. |
142 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
143 |
setopt NO_GLOB_SUBST |
144 |
else |
145 |
case \`(set -o) 2>/dev/null\` in #( |
146 |
*posix*) : |
147 |
set -o posix ;; #( |
148 |
*) : |
149 |
;; |
150 |
esac |
151 |
fi |
152 |
" |
153 |
as_required="as_fn_return () { (exit \$1); } |
154 |
as_fn_success () { as_fn_return 0; } |
155 |
as_fn_failure () { as_fn_return 1; } |
156 |
as_fn_ret_success () { return 0; } |
157 |
as_fn_ret_failure () { return 1; } |
158 |
|
159 |
exitcode=0 |
160 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
161 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
162 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
163 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
164 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
165 |
|
166 |
else |
167 |
exitcode=1; echo positional parameters were not saved. |
168 |
fi |
169 |
test x\$exitcode = x0 || exit 1" |
170 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
171 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
172 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
173 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
174 |
if (eval "$as_required") 2>/dev/null; then : |
175 |
as_have_required=yes |
176 |
else |
177 |
as_have_required=no |
178 |
fi |
179 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
180 |
|
181 |
else |
182 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
183 |
as_found=false |
184 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
185 |
do |
186 |
IFS=$as_save_IFS |
187 |
test -z "$as_dir" && as_dir=. |
188 |
as_found=: |
189 |
case $as_dir in #( |
190 |
/*) |
191 |
for as_base in sh bash ksh sh5; do |
192 |
# Try only shells that exist, to save several forks. |
193 |
as_shell=$as_dir/$as_base |
194 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
195 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
196 |
CONFIG_SHELL=$as_shell as_have_required=yes |
197 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
198 |
break 2 |
199 |
fi |
200 |
fi |
201 |
done;; |
202 |
esac |
203 |
as_found=false |
204 |
done |
205 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
206 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
207 |
CONFIG_SHELL=$SHELL as_have_required=yes |
208 |
fi; } |
209 |
IFS=$as_save_IFS |
210 |
|
211 |
|
212 |
if test "x$CONFIG_SHELL" != x; then : |
213 |
# We cannot yet assume a decent shell, so we have to provide a |
214 |
# neutralization value for shells without unset; and this also |
215 |
# works around shells that cannot unset nonexistent variables. |
216 |
BASH_ENV=/dev/null |
217 |
ENV=/dev/null |
218 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
219 |
export CONFIG_SHELL |
220 |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
221 |
fi |
222 |
|
223 |
if test x$as_have_required = xno; then : |
224 |
$as_echo "$0: This script requires a shell more modern than all" |
225 |
$as_echo "$0: the shells that I found on your system." |
226 |
if test x${ZSH_VERSION+set} = xset ; then |
227 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
228 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
229 |
else |
230 |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
231 |
$0: including any error possibly output before this |
232 |
$0: message. Then install a modern shell, or manually run |
233 |
$0: the script under such a shell if you do have one." |
234 |
fi |
235 |
exit 1 |
236 |
fi |
237 |
fi |
238 |
fi |
239 |
SHELL=${CONFIG_SHELL-/bin/sh} |
240 |
export SHELL |
241 |
# Unset more variables known to interfere with behavior of common tools. |
242 |
CLICOLOR_FORCE= GREP_OPTIONS= |
243 |
unset CLICOLOR_FORCE GREP_OPTIONS |
244 |
|
245 |
## --------------------- ## |
246 |
## M4sh Shell Functions. ## |
247 |
## --------------------- ## |
248 |
# as_fn_unset VAR |
249 |
# --------------- |
250 |
# Portably unset VAR. |
251 |
as_fn_unset () |
252 |
{ |
253 |
{ eval $1=; unset $1;} |
254 |
} |
255 |
as_unset=as_fn_unset |
256 |
|
257 |
# as_fn_set_status STATUS |
258 |
# ----------------------- |
259 |
# Set $? to STATUS, without forking. |
260 |
as_fn_set_status () |
261 |
{ |
262 |
return $1 |
263 |
} # as_fn_set_status |
264 |
|
265 |
# as_fn_exit STATUS |
266 |
# ----------------- |
267 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
268 |
as_fn_exit () |
269 |
{ |
270 |
set +e |
271 |
as_fn_set_status $1 |
272 |
exit $1 |
273 |
} # as_fn_exit |
274 |
|
275 |
# as_fn_mkdir_p |
276 |
# ------------- |
277 |
# Create "$as_dir" as a directory, including parents if necessary. |
278 |
as_fn_mkdir_p () |
279 |
{ |
280 |
|
281 |
case $as_dir in #( |
282 |
-*) as_dir=./$as_dir;; |
283 |
esac |
284 |
test -d "$as_dir" || eval $as_mkdir_p || { |
285 |
as_dirs= |
286 |
while :; do |
287 |
case $as_dir in #( |
288 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
289 |
*) as_qdir=$as_dir;; |
290 |
esac |
291 |
as_dirs="'$as_qdir' $as_dirs" |
292 |
as_dir=`$as_dirname -- "$as_dir" || |
293 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
294 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
295 |
X"$as_dir" : 'X\(//\)$' \| \ |
296 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
297 |
$as_echo X"$as_dir" | |
298 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
299 |
s//\1/ |
300 |
q |
301 |
} |
302 |
/^X\(\/\/\)[^/].*/{ |
303 |
s//\1/ |
304 |
q |
305 |
} |
306 |
/^X\(\/\/\)$/{ |
307 |
s//\1/ |
308 |
q |
309 |
} |
310 |
/^X\(\/\).*/{ |
311 |
s//\1/ |
312 |
q |
313 |
} |
314 |
s/.*/./; q'` |
315 |
test -d "$as_dir" && break |
316 |
done |
317 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
318 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
319 |
|
320 |
|
321 |
} # as_fn_mkdir_p |
322 |
# as_fn_append VAR VALUE |
323 |
# ---------------------- |
324 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
325 |
# advantage of any shell optimizations that allow amortized linear growth over |
326 |
# repeated appends, instead of the typical quadratic growth present in naive |
327 |
# implementations. |
328 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
329 |
eval 'as_fn_append () |
330 |
{ |
331 |
eval $1+=\$2 |
332 |
}' |
333 |
else |
334 |
as_fn_append () |
335 |
{ |
336 |
eval $1=\$$1\$2 |
337 |
} |
338 |
fi # as_fn_append |
339 |
|
340 |
# as_fn_arith ARG... |
341 |
# ------------------ |
342 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
343 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
344 |
# must be portable across $(()) and expr. |
345 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
346 |
eval 'as_fn_arith () |
347 |
{ |
348 |
as_val=$(( $* )) |
349 |
}' |
350 |
else |
351 |
as_fn_arith () |
352 |
{ |
353 |
as_val=`expr "$@" || test $? -eq 1` |
354 |
} |
355 |
fi # as_fn_arith |
356 |
|
357 |
|
358 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
359 |
# ---------------------------------------- |
360 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
361 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
362 |
# script with STATUS, using 1 if that was 0. |
363 |
as_fn_error () |
364 |
{ |
365 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
366 |
if test "$4"; then |
367 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
368 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
369 |
fi |
370 |
$as_echo "$as_me: error: $2" >&2 |
371 |
as_fn_exit $as_status |
372 |
} # as_fn_error |
373 |
|
374 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
375 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
376 |
as_expr=expr |
377 |
else |
378 |
as_expr=false |
379 |
fi |
380 |
|
381 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
382 |
as_basename=basename |
383 |
else |
384 |
as_basename=false |
385 |
fi |
386 |
|
387 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
388 |
as_dirname=dirname |
389 |
else |
390 |
as_dirname=false |
391 |
fi |
392 |
|
393 |
as_me=`$as_basename -- "$0" || |
394 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
395 |
X"$0" : 'X\(//\)$' \| \ |
396 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
397 |
$as_echo X/"$0" | |
398 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
399 |
s//\1/ |
400 |
q |
401 |
} |
402 |
/^X\/\(\/\/\)$/{ |
403 |
s//\1/ |
404 |
q |
405 |
} |
406 |
/^X\/\(\/\).*/{ |
407 |
s//\1/ |
408 |
q |
409 |
} |
410 |
s/.*/./; q'` |
411 |
|
412 |
# Avoid depending upon Character Ranges. |
413 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
414 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
415 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
416 |
as_cr_digits='0123456789' |
417 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
418 |
|
419 |
|
420 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
421 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
422 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
423 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
424 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
425 |
sed -n ' |
426 |
p |
427 |
/[$]LINENO/= |
428 |
' <$as_myself | |
429 |
sed ' |
430 |
s/[$]LINENO.*/&-/ |
431 |
t lineno |
432 |
b |
433 |
:lineno |
434 |
N |
435 |
:loop |
436 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
437 |
t loop |
438 |
s/-\n.*// |
439 |
' >$as_me.lineno && |
440 |
chmod +x "$as_me.lineno" || |
441 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
442 |
|
443 |
# Don't try to exec as it changes $[0], causing all sort of problems |
444 |
# (the dirname of $[0] is not the place where we might find the |
445 |
# original and so on. Autoconf is especially sensitive to this). |
446 |
. "./$as_me.lineno" |
447 |
# Exit status is that of the last command. |
448 |
exit |
449 |
} |
450 |
|
451 |
ECHO_C= ECHO_N= ECHO_T= |
452 |
case `echo -n x` in #((((( |
453 |
-n*) |
454 |
case `echo 'xy\c'` in |
455 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
456 |
xy) ECHO_C='\c';; |
457 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
458 |
ECHO_T=' ';; |
459 |
esac;; |
460 |
*) |
461 |
ECHO_N='-n';; |
462 |
esac |
463 |
|
464 |
rm -f conf$$ conf$$.exe conf$$.file |
465 |
if test -d conf$$.dir; then |
466 |
rm -f conf$$.dir/conf$$.file |
467 |
else |
468 |
rm -f conf$$.dir |
469 |
mkdir conf$$.dir 2>/dev/null |
470 |
fi |
471 |
if (echo >conf$$.file) 2>/dev/null; then |
472 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
473 |
as_ln_s='ln -s' |
474 |
# ... but there are two gotchas: |
475 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
476 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
477 |
# In both cases, we have to default to `cp -p'. |
478 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
479 |
as_ln_s='cp -p' |
480 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
481 |
as_ln_s=ln |
482 |
else |
483 |
as_ln_s='cp -p' |
484 |
fi |
485 |
else |
486 |
as_ln_s='cp -p' |
487 |
fi |
488 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
489 |
rmdir conf$$.dir 2>/dev/null |
490 |
|
491 |
if mkdir -p . 2>/dev/null; then |
492 |
as_mkdir_p='mkdir -p "$as_dir"' |
493 |
else |
494 |
test -d ./-p && rmdir ./-p |
495 |
as_mkdir_p=false |
496 |
fi |
497 |
|
498 |
if test -x / >/dev/null 2>&1; then |
499 |
as_test_x='test -x' |
500 |
else |
501 |
if ls -dL / >/dev/null 2>&1; then |
502 |
as_ls_L_option=L |
503 |
else |
504 |
as_ls_L_option= |
505 |
fi |
506 |
as_test_x=' |
507 |
eval sh -c '\'' |
508 |
if test -d "$1"; then |
509 |
test -d "$1/."; |
510 |
else |
511 |
case $1 in #( |
512 |
-*)set "./$1";; |
513 |
esac; |
514 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
515 |
???[sx]*):;;*)false;;esac;fi |
516 |
'\'' sh |
517 |
' |
518 |
fi |
519 |
as_executable_p=$as_test_x |
520 |
|
521 |
# Sed expression to map a string onto a valid CPP name. |
522 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
523 |
|
524 |
# Sed expression to map a string onto a valid variable name. |
525 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
526 |
|
527 |
|
528 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
529 |
exec 6>&1 |
530 |
|
531 |
# Name of the host. |
532 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
533 |
# so uname gets run too. |
534 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
535 |
|
536 |
# |
537 |
# Initializations. |
538 |
# |
539 |
ac_default_prefix=/usr/local |
540 |
ac_clean_files= |
541 |
ac_config_libobj_dir=. |
542 |
LIBOBJS= |
543 |
cross_compiling=no |
544 |
subdirs= |
545 |
MFLAGS= |
546 |
MAKEFLAGS= |
547 |
|
548 |
# Identity of this package. |
549 |
PACKAGE_NAME= |
550 |
PACKAGE_TARNAME= |
551 |
PACKAGE_VERSION= |
552 |
PACKAGE_STRING= |
553 |
PACKAGE_BUGREPORT= |
554 |
PACKAGE_URL= |
555 |
|
556 |
ac_unique_file="libeio/eio.h" |
557 |
ac_subst_vars='LTLIBOBJS |
558 |
LIBOBJS |
559 |
OBJEXT |
560 |
EXEEXT |
561 |
ac_ct_CC |
562 |
CPPFLAGS |
563 |
LDFLAGS |
564 |
CFLAGS |
565 |
CC |
566 |
target_alias |
567 |
host_alias |
568 |
build_alias |
569 |
LIBS |
570 |
ECHO_T |
571 |
ECHO_N |
572 |
ECHO_C |
573 |
DEFS |
574 |
mandir |
575 |
localedir |
576 |
libdir |
577 |
psdir |
578 |
pdfdir |
579 |
dvidir |
580 |
htmldir |
581 |
infodir |
582 |
docdir |
583 |
oldincludedir |
584 |
includedir |
585 |
localstatedir |
586 |
sharedstatedir |
587 |
sysconfdir |
588 |
datadir |
589 |
datarootdir |
590 |
libexecdir |
591 |
sbindir |
592 |
bindir |
593 |
program_transform_name |
594 |
prefix |
595 |
exec_prefix |
596 |
PACKAGE_URL |
597 |
PACKAGE_BUGREPORT |
598 |
PACKAGE_STRING |
599 |
PACKAGE_VERSION |
600 |
PACKAGE_TARNAME |
601 |
PACKAGE_NAME |
602 |
PATH_SEPARATOR |
603 |
SHELL' |
604 |
ac_subst_files='' |
605 |
ac_user_opts=' |
606 |
enable_option_checking |
607 |
' |
608 |
ac_precious_vars='build_alias |
609 |
host_alias |
610 |
target_alias |
611 |
CC |
612 |
CFLAGS |
613 |
LDFLAGS |
614 |
LIBS |
615 |
CPPFLAGS' |
616 |
|
617 |
|
618 |
# Initialize some variables set by options. |
619 |
ac_init_help= |
620 |
ac_init_version=false |
621 |
ac_unrecognized_opts= |
622 |
ac_unrecognized_sep= |
623 |
# The variables have the same names as the options, with |
624 |
# dashes changed to underlines. |
625 |
cache_file=/dev/null |
626 |
exec_prefix=NONE |
627 |
no_create= |
628 |
no_recursion= |
629 |
prefix=NONE |
630 |
program_prefix=NONE |
631 |
program_suffix=NONE |
632 |
program_transform_name=s,x,x, |
633 |
silent= |
634 |
site= |
635 |
srcdir= |
636 |
verbose= |
637 |
x_includes=NONE |
638 |
x_libraries=NONE |
639 |
|
640 |
# Installation directory options. |
641 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
642 |
# and all the variables that are supposed to be based on exec_prefix |
643 |
# by default will actually change. |
644 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
645 |
# (The list follows the same order as the GNU Coding Standards.) |
646 |
bindir='${exec_prefix}/bin' |
647 |
sbindir='${exec_prefix}/sbin' |
648 |
libexecdir='${exec_prefix}/libexec' |
649 |
datarootdir='${prefix}/share' |
650 |
datadir='${datarootdir}' |
651 |
sysconfdir='${prefix}/etc' |
652 |
sharedstatedir='${prefix}/com' |
653 |
localstatedir='${prefix}/var' |
654 |
includedir='${prefix}/include' |
655 |
oldincludedir='/usr/include' |
656 |
docdir='${datarootdir}/doc/${PACKAGE}' |
657 |
infodir='${datarootdir}/info' |
658 |
htmldir='${docdir}' |
659 |
dvidir='${docdir}' |
660 |
pdfdir='${docdir}' |
661 |
psdir='${docdir}' |
662 |
libdir='${exec_prefix}/lib' |
663 |
localedir='${datarootdir}/locale' |
664 |
mandir='${datarootdir}/man' |
665 |
|
666 |
ac_prev= |
667 |
ac_dashdash= |
668 |
for ac_option |
669 |
do |
670 |
# If the previous option needs an argument, assign it. |
671 |
if test -n "$ac_prev"; then |
672 |
eval $ac_prev=\$ac_option |
673 |
ac_prev= |
674 |
continue |
675 |
fi |
676 |
|
677 |
case $ac_option in |
678 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
679 |
*=) ac_optarg= ;; |
680 |
*) ac_optarg=yes ;; |
681 |
esac |
682 |
|
683 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
684 |
|
685 |
case $ac_dashdash$ac_option in |
686 |
--) |
687 |
ac_dashdash=yes ;; |
688 |
|
689 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
690 |
ac_prev=bindir ;; |
691 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
692 |
bindir=$ac_optarg ;; |
693 |
|
694 |
-build | --build | --buil | --bui | --bu) |
695 |
ac_prev=build_alias ;; |
696 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
697 |
build_alias=$ac_optarg ;; |
698 |
|
699 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
700 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
701 |
ac_prev=cache_file ;; |
702 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
703 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
704 |
cache_file=$ac_optarg ;; |
705 |
|
706 |
--config-cache | -C) |
707 |
cache_file=config.cache ;; |
708 |
|
709 |
-datadir | --datadir | --datadi | --datad) |
710 |
ac_prev=datadir ;; |
711 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
712 |
datadir=$ac_optarg ;; |
713 |
|
714 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
715 |
| --dataroo | --dataro | --datar) |
716 |
ac_prev=datarootdir ;; |
717 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
718 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
719 |
datarootdir=$ac_optarg ;; |
720 |
|
721 |
-disable-* | --disable-*) |
722 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
723 |
# Reject names that are not valid shell variable names. |
724 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
725 |
as_fn_error $? "invalid feature name: $ac_useropt" |
726 |
ac_useropt_orig=$ac_useropt |
727 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
728 |
case $ac_user_opts in |
729 |
*" |
730 |
"enable_$ac_useropt" |
731 |
"*) ;; |
732 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
733 |
ac_unrecognized_sep=', ';; |
734 |
esac |
735 |
eval enable_$ac_useropt=no ;; |
736 |
|
737 |
-docdir | --docdir | --docdi | --doc | --do) |
738 |
ac_prev=docdir ;; |
739 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
740 |
docdir=$ac_optarg ;; |
741 |
|
742 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
743 |
ac_prev=dvidir ;; |
744 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
745 |
dvidir=$ac_optarg ;; |
746 |
|
747 |
-enable-* | --enable-*) |
748 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
749 |
# Reject names that are not valid shell variable names. |
750 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
751 |
as_fn_error $? "invalid feature name: $ac_useropt" |
752 |
ac_useropt_orig=$ac_useropt |
753 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
754 |
case $ac_user_opts in |
755 |
*" |
756 |
"enable_$ac_useropt" |
757 |
"*) ;; |
758 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
759 |
ac_unrecognized_sep=', ';; |
760 |
esac |
761 |
eval enable_$ac_useropt=\$ac_optarg ;; |
762 |
|
763 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
764 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
765 |
| --exec | --exe | --ex) |
766 |
ac_prev=exec_prefix ;; |
767 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
768 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
769 |
| --exec=* | --exe=* | --ex=*) |
770 |
exec_prefix=$ac_optarg ;; |
771 |
|
772 |
-gas | --gas | --ga | --g) |
773 |
# Obsolete; use --with-gas. |
774 |
with_gas=yes ;; |
775 |
|
776 |
-help | --help | --hel | --he | -h) |
777 |
ac_init_help=long ;; |
778 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
779 |
ac_init_help=recursive ;; |
780 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
781 |
ac_init_help=short ;; |
782 |
|
783 |
-host | --host | --hos | --ho) |
784 |
ac_prev=host_alias ;; |
785 |
-host=* | --host=* | --hos=* | --ho=*) |
786 |
host_alias=$ac_optarg ;; |
787 |
|
788 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
789 |
ac_prev=htmldir ;; |
790 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
791 |
| --ht=*) |
792 |
htmldir=$ac_optarg ;; |
793 |
|
794 |
-includedir | --includedir | --includedi | --included | --include \ |
795 |
| --includ | --inclu | --incl | --inc) |
796 |
ac_prev=includedir ;; |
797 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
798 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
799 |
includedir=$ac_optarg ;; |
800 |
|
801 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
802 |
ac_prev=infodir ;; |
803 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
804 |
infodir=$ac_optarg ;; |
805 |
|
806 |
-libdir | --libdir | --libdi | --libd) |
807 |
ac_prev=libdir ;; |
808 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
809 |
libdir=$ac_optarg ;; |
810 |
|
811 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
812 |
| --libexe | --libex | --libe) |
813 |
ac_prev=libexecdir ;; |
814 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
815 |
| --libexe=* | --libex=* | --libe=*) |
816 |
libexecdir=$ac_optarg ;; |
817 |
|
818 |
-localedir | --localedir | --localedi | --localed | --locale) |
819 |
ac_prev=localedir ;; |
820 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
821 |
localedir=$ac_optarg ;; |
822 |
|
823 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
824 |
| --localstate | --localstat | --localsta | --localst | --locals) |
825 |
ac_prev=localstatedir ;; |
826 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
827 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
828 |
localstatedir=$ac_optarg ;; |
829 |
|
830 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
831 |
ac_prev=mandir ;; |
832 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
833 |
mandir=$ac_optarg ;; |
834 |
|
835 |
-nfp | --nfp | --nf) |
836 |
# Obsolete; use --without-fp. |
837 |
with_fp=no ;; |
838 |
|
839 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
840 |
| --no-cr | --no-c | -n) |
841 |
no_create=yes ;; |
842 |
|
843 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
844 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
845 |
no_recursion=yes ;; |
846 |
|
847 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
848 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
849 |
| --oldin | --oldi | --old | --ol | --o) |
850 |
ac_prev=oldincludedir ;; |
851 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
852 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
853 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
854 |
oldincludedir=$ac_optarg ;; |
855 |
|
856 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
857 |
ac_prev=prefix ;; |
858 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
859 |
prefix=$ac_optarg ;; |
860 |
|
861 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
862 |
| --program-pre | --program-pr | --program-p) |
863 |
ac_prev=program_prefix ;; |
864 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
865 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
866 |
program_prefix=$ac_optarg ;; |
867 |
|
868 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
869 |
| --program-suf | --program-su | --program-s) |
870 |
ac_prev=program_suffix ;; |
871 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
872 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
873 |
program_suffix=$ac_optarg ;; |
874 |
|
875 |
-program-transform-name | --program-transform-name \ |
876 |
| --program-transform-nam | --program-transform-na \ |
877 |
| --program-transform-n | --program-transform- \ |
878 |
| --program-transform | --program-transfor \ |
879 |
| --program-transfo | --program-transf \ |
880 |
| --program-trans | --program-tran \ |
881 |
| --progr-tra | --program-tr | --program-t) |
882 |
ac_prev=program_transform_name ;; |
883 |
-program-transform-name=* | --program-transform-name=* \ |
884 |
| --program-transform-nam=* | --program-transform-na=* \ |
885 |
| --program-transform-n=* | --program-transform-=* \ |
886 |
| --program-transform=* | --program-transfor=* \ |
887 |
| --program-transfo=* | --program-transf=* \ |
888 |
| --program-trans=* | --program-tran=* \ |
889 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
890 |
program_transform_name=$ac_optarg ;; |
891 |
|
892 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
893 |
ac_prev=pdfdir ;; |
894 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
895 |
pdfdir=$ac_optarg ;; |
896 |
|
897 |
-psdir | --psdir | --psdi | --psd | --ps) |
898 |
ac_prev=psdir ;; |
899 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
900 |
psdir=$ac_optarg ;; |
901 |
|
902 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
903 |
| -silent | --silent | --silen | --sile | --sil) |
904 |
silent=yes ;; |
905 |
|
906 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
907 |
ac_prev=sbindir ;; |
908 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
909 |
| --sbi=* | --sb=*) |
910 |
sbindir=$ac_optarg ;; |
911 |
|
912 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
913 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
914 |
| --sharedst | --shareds | --shared | --share | --shar \ |
915 |
| --sha | --sh) |
916 |
ac_prev=sharedstatedir ;; |
917 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
918 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
919 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
920 |
| --sha=* | --sh=*) |
921 |
sharedstatedir=$ac_optarg ;; |
922 |
|
923 |
-site | --site | --sit) |
924 |
ac_prev=site ;; |
925 |
-site=* | --site=* | --sit=*) |
926 |
site=$ac_optarg ;; |
927 |
|
928 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
929 |
ac_prev=srcdir ;; |
930 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
931 |
srcdir=$ac_optarg ;; |
932 |
|
933 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
934 |
| --syscon | --sysco | --sysc | --sys | --sy) |
935 |
ac_prev=sysconfdir ;; |
936 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
937 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
938 |
sysconfdir=$ac_optarg ;; |
939 |
|
940 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
941 |
ac_prev=target_alias ;; |
942 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
943 |
target_alias=$ac_optarg ;; |
944 |
|
945 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
946 |
verbose=yes ;; |
947 |
|
948 |
-version | --version | --versio | --versi | --vers | -V) |
949 |
ac_init_version=: ;; |
950 |
|
951 |
-with-* | --with-*) |
952 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
953 |
# Reject names that are not valid shell variable names. |
954 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
955 |
as_fn_error $? "invalid package name: $ac_useropt" |
956 |
ac_useropt_orig=$ac_useropt |
957 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
958 |
case $ac_user_opts in |
959 |
*" |
960 |
"with_$ac_useropt" |
961 |
"*) ;; |
962 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
963 |
ac_unrecognized_sep=', ';; |
964 |
esac |
965 |
eval with_$ac_useropt=\$ac_optarg ;; |
966 |
|
967 |
-without-* | --without-*) |
968 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
969 |
# Reject names that are not valid shell variable names. |
970 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
971 |
as_fn_error $? "invalid package name: $ac_useropt" |
972 |
ac_useropt_orig=$ac_useropt |
973 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
974 |
case $ac_user_opts in |
975 |
*" |
976 |
"with_$ac_useropt" |
977 |
"*) ;; |
978 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
979 |
ac_unrecognized_sep=', ';; |
980 |
esac |
981 |
eval with_$ac_useropt=no ;; |
982 |
|
983 |
--x) |
984 |
# Obsolete; use --with-x. |
985 |
with_x=yes ;; |
986 |
|
987 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
988 |
| --x-incl | --x-inc | --x-in | --x-i) |
989 |
ac_prev=x_includes ;; |
990 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
991 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
992 |
x_includes=$ac_optarg ;; |
993 |
|
994 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
995 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
996 |
ac_prev=x_libraries ;; |
997 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
998 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
999 |
x_libraries=$ac_optarg ;; |
1000 |
|
1001 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1002 |
Try \`$0 --help' for more information" |
1003 |
;; |
1004 |
|
1005 |
*=*) |
1006 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1007 |
# Reject names that are not valid shell variable names. |
1008 |
case $ac_envvar in #( |
1009 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1010 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1011 |
esac |
1012 |
eval $ac_envvar=\$ac_optarg |
1013 |
export $ac_envvar ;; |
1014 |
|
1015 |
*) |
1016 |
# FIXME: should be removed in autoconf 3.0. |
1017 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1018 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1019 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1020 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1021 |
;; |
1022 |
|
1023 |
esac |
1024 |
done |
1025 |
|
1026 |
if test -n "$ac_prev"; then |
1027 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1028 |
as_fn_error $? "missing argument to $ac_option" |
1029 |
fi |
1030 |
|
1031 |
if test -n "$ac_unrecognized_opts"; then |
1032 |
case $enable_option_checking in |
1033 |
no) ;; |
1034 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1035 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1036 |
esac |
1037 |
fi |
1038 |
|
1039 |
# Check all directory arguments for consistency. |
1040 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1041 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1042 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1043 |
libdir localedir mandir |
1044 |
do |
1045 |
eval ac_val=\$$ac_var |
1046 |
# Remove trailing slashes. |
1047 |
case $ac_val in |
1048 |
*/ ) |
1049 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1050 |
eval $ac_var=\$ac_val;; |
1051 |
esac |
1052 |
# Be sure to have absolute directory names. |
1053 |
case $ac_val in |
1054 |
[\\/$]* | ?:[\\/]* ) continue;; |
1055 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1056 |
esac |
1057 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1058 |
done |
1059 |
|
1060 |
# There might be people who depend on the old broken behavior: `$host' |
1061 |
# used to hold the argument of --host etc. |
1062 |
# FIXME: To remove some day. |
1063 |
build=$build_alias |
1064 |
host=$host_alias |
1065 |
target=$target_alias |
1066 |
|
1067 |
# FIXME: To remove some day. |
1068 |
if test "x$host_alias" != x; then |
1069 |
if test "x$build_alias" = x; then |
1070 |
cross_compiling=maybe |
1071 |
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1072 |
If a cross compiler is detected then cross compile mode will be used" >&2 |
1073 |
elif test "x$build_alias" != "x$host_alias"; then |
1074 |
cross_compiling=yes |
1075 |
fi |
1076 |
fi |
1077 |
|
1078 |
ac_tool_prefix= |
1079 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1080 |
|
1081 |
test "$silent" = yes && exec 6>/dev/null |
1082 |
|
1083 |
|
1084 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1085 |
ac_ls_di=`ls -di .` && |
1086 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1087 |
as_fn_error $? "working directory cannot be determined" |
1088 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1089 |
as_fn_error $? "pwd does not report name of working directory" |
1090 |
|
1091 |
|
1092 |
# Find the source files, if location was not specified. |
1093 |
if test -z "$srcdir"; then |
1094 |
ac_srcdir_defaulted=yes |
1095 |
# Try the directory containing this script, then the parent directory. |
1096 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1097 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1098 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1099 |
X"$as_myself" : 'X\(//\)$' \| \ |
1100 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1101 |
$as_echo X"$as_myself" | |
1102 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1103 |
s//\1/ |
1104 |
q |
1105 |
} |
1106 |
/^X\(\/\/\)[^/].*/{ |
1107 |
s//\1/ |
1108 |
q |
1109 |
} |
1110 |
/^X\(\/\/\)$/{ |
1111 |
s//\1/ |
1112 |
q |
1113 |
} |
1114 |
/^X\(\/\).*/{ |
1115 |
s//\1/ |
1116 |
q |
1117 |
} |
1118 |
s/.*/./; q'` |
1119 |
srcdir=$ac_confdir |
1120 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1121 |
srcdir=.. |
1122 |
fi |
1123 |
else |
1124 |
ac_srcdir_defaulted=no |
1125 |
fi |
1126 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1127 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1128 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1129 |
fi |
1130 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1131 |
ac_abs_confdir=`( |
1132 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1133 |
pwd)` |
1134 |
# When building in place, set srcdir=. |
1135 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1136 |
srcdir=. |
1137 |
fi |
1138 |
# Remove unnecessary trailing slashes from srcdir. |
1139 |
# Double slashes in file names in object file debugging info |
1140 |
# mess up M-x gdb in Emacs. |
1141 |
case $srcdir in |
1142 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1143 |
esac |
1144 |
for ac_var in $ac_precious_vars; do |
1145 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1146 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1147 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1148 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1149 |
done |
1150 |
|
1151 |
# |
1152 |
# Report the --help message. |
1153 |
# |
1154 |
if test "$ac_init_help" = "long"; then |
1155 |
# Omit some internal or obsolete options to make the list less imposing. |
1156 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1157 |
cat <<_ACEOF |
1158 |
\`configure' configures this package to adapt to many kinds of systems. |
1159 |
|
1160 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1161 |
|
1162 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1163 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1164 |
|
1165 |
Defaults for the options are specified in brackets. |
1166 |
|
1167 |
Configuration: |
1168 |
-h, --help display this help and exit |
1169 |
--help=short display options specific to this package |
1170 |
--help=recursive display the short help of all the included packages |
1171 |
-V, --version display version information and exit |
1172 |
-q, --quiet, --silent do not print \`checking ...' messages |
1173 |
--cache-file=FILE cache test results in FILE [disabled] |
1174 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1175 |
-n, --no-create do not create output files |
1176 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1177 |
|
1178 |
Installation directories: |
1179 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1180 |
[$ac_default_prefix] |
1181 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1182 |
[PREFIX] |
1183 |
|
1184 |
By default, \`make install' will install all the files in |
1185 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1186 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1187 |
for instance \`--prefix=\$HOME'. |
1188 |
|
1189 |
For better control, use the options below. |
1190 |
|
1191 |
Fine tuning of the installation directories: |
1192 |
--bindir=DIR user executables [EPREFIX/bin] |
1193 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1194 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1195 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1196 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1197 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1198 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1199 |
--includedir=DIR C header files [PREFIX/include] |
1200 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1201 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1202 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1203 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1204 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1205 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1206 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1207 |
--htmldir=DIR html documentation [DOCDIR] |
1208 |
--dvidir=DIR dvi documentation [DOCDIR] |
1209 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1210 |
--psdir=DIR ps documentation [DOCDIR] |
1211 |
_ACEOF |
1212 |
|
1213 |
cat <<\_ACEOF |
1214 |
_ACEOF |
1215 |
fi |
1216 |
|
1217 |
if test -n "$ac_init_help"; then |
1218 |
|
1219 |
cat <<\_ACEOF |
1220 |
|
1221 |
Some influential environment variables: |
1222 |
CC C compiler command |
1223 |
CFLAGS C compiler flags |
1224 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1225 |
nonstandard directory <lib dir> |
1226 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1227 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1228 |
you have headers in a nonstandard directory <include dir> |
1229 |
|
1230 |
Use these variables to override the choices made by `configure' or to help |
1231 |
it to find libraries and programs with nonstandard names/locations. |
1232 |
|
1233 |
Report bugs to the package provider. |
1234 |
_ACEOF |
1235 |
ac_status=$? |
1236 |
fi |
1237 |
|
1238 |
if test "$ac_init_help" = "recursive"; then |
1239 |
# If there are subdirs, report their specific --help. |
1240 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1241 |
test -d "$ac_dir" || |
1242 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1243 |
continue |
1244 |
ac_builddir=. |
1245 |
|
1246 |
case "$ac_dir" in |
1247 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1248 |
*) |
1249 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1250 |
# A ".." for each directory in $ac_dir_suffix. |
1251 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1252 |
case $ac_top_builddir_sub in |
1253 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1254 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1255 |
esac ;; |
1256 |
esac |
1257 |
ac_abs_top_builddir=$ac_pwd |
1258 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1259 |
# for backward compatibility: |
1260 |
ac_top_builddir=$ac_top_build_prefix |
1261 |
|
1262 |
case $srcdir in |
1263 |
.) # We are building in place. |
1264 |
ac_srcdir=. |
1265 |
ac_top_srcdir=$ac_top_builddir_sub |
1266 |
ac_abs_top_srcdir=$ac_pwd ;; |
1267 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1268 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1269 |
ac_top_srcdir=$srcdir |
1270 |
ac_abs_top_srcdir=$srcdir ;; |
1271 |
*) # Relative name. |
1272 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1273 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1274 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1275 |
esac |
1276 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1277 |
|
1278 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1279 |
# Check for guested configure. |
1280 |
if test -f "$ac_srcdir/configure.gnu"; then |
1281 |
echo && |
1282 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1283 |
elif test -f "$ac_srcdir/configure"; then |
1284 |
echo && |
1285 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1286 |
else |
1287 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1288 |
fi || ac_status=$? |
1289 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1290 |
done |
1291 |
fi |
1292 |
|
1293 |
test -n "$ac_init_help" && exit $ac_status |
1294 |
if $ac_init_version; then |
1295 |
cat <<\_ACEOF |
1296 |
configure |
1297 |
generated by GNU Autoconf 2.67 |
1298 |
|
1299 |
Copyright (C) 2010 Free Software Foundation, Inc. |
1300 |
This configure script is free software; the Free Software Foundation |
1301 |
gives unlimited permission to copy, distribute and modify it. |
1302 |
_ACEOF |
1303 |
exit |
1304 |
fi |
1305 |
|
1306 |
## ------------------------ ## |
1307 |
## Autoconf initialization. ## |
1308 |
## ------------------------ ## |
1309 |
|
1310 |
# ac_fn_c_try_compile LINENO |
1311 |
# -------------------------- |
1312 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1313 |
ac_fn_c_try_compile () |
1314 |
{ |
1315 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1316 |
rm -f conftest.$ac_objext |
1317 |
if { { ac_try="$ac_compile" |
1318 |
case "(($ac_try" in |
1319 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1320 |
*) ac_try_echo=$ac_try;; |
1321 |
esac |
1322 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1323 |
$as_echo "$ac_try_echo"; } >&5 |
1324 |
(eval "$ac_compile") 2>conftest.err |
1325 |
ac_status=$? |
1326 |
if test -s conftest.err; then |
1327 |
grep -v '^ *+' conftest.err >conftest.er1 |
1328 |
cat conftest.er1 >&5 |
1329 |
mv -f conftest.er1 conftest.err |
1330 |
fi |
1331 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1332 |
test $ac_status = 0; } && { |
1333 |
test -z "$ac_c_werror_flag" || |
1334 |
test ! -s conftest.err |
1335 |
} && test -s conftest.$ac_objext; then : |
1336 |
ac_retval=0 |
1337 |
else |
1338 |
$as_echo "$as_me: failed program was:" >&5 |
1339 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1340 |
|
1341 |
ac_retval=1 |
1342 |
fi |
1343 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1344 |
as_fn_set_status $ac_retval |
1345 |
|
1346 |
} # ac_fn_c_try_compile |
1347 |
|
1348 |
# ac_fn_c_try_link LINENO |
1349 |
# ----------------------- |
1350 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1351 |
ac_fn_c_try_link () |
1352 |
{ |
1353 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1354 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1355 |
if { { ac_try="$ac_link" |
1356 |
case "(($ac_try" in |
1357 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1358 |
*) ac_try_echo=$ac_try;; |
1359 |
esac |
1360 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1361 |
$as_echo "$ac_try_echo"; } >&5 |
1362 |
(eval "$ac_link") 2>conftest.err |
1363 |
ac_status=$? |
1364 |
if test -s conftest.err; then |
1365 |
grep -v '^ *+' conftest.err >conftest.er1 |
1366 |
cat conftest.er1 >&5 |
1367 |
mv -f conftest.er1 conftest.err |
1368 |
fi |
1369 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1370 |
test $ac_status = 0; } && { |
1371 |
test -z "$ac_c_werror_flag" || |
1372 |
test ! -s conftest.err |
1373 |
} && test -s conftest$ac_exeext && { |
1374 |
test "$cross_compiling" = yes || |
1375 |
$as_test_x conftest$ac_exeext |
1376 |
}; then : |
1377 |
ac_retval=0 |
1378 |
else |
1379 |
$as_echo "$as_me: failed program was:" >&5 |
1380 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1381 |
|
1382 |
ac_retval=1 |
1383 |
fi |
1384 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1385 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1386 |
# interfere with the next link command; also delete a directory that is |
1387 |
# left behind by Apple's compiler. We do this before executing the actions. |
1388 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1389 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1390 |
as_fn_set_status $ac_retval |
1391 |
|
1392 |
} # ac_fn_c_try_link |
1393 |
cat >config.log <<_ACEOF |
1394 |
This file contains any messages produced by compilers while |
1395 |
running configure, to aid debugging if configure makes a mistake. |
1396 |
|
1397 |
It was created by $as_me, which was |
1398 |
generated by GNU Autoconf 2.67. Invocation command line was |
1399 |
|
1400 |
$ $0 $@ |
1401 |
|
1402 |
_ACEOF |
1403 |
exec 5>>config.log |
1404 |
{ |
1405 |
cat <<_ASUNAME |
1406 |
## --------- ## |
1407 |
## Platform. ## |
1408 |
## --------- ## |
1409 |
|
1410 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1411 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1412 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1413 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1414 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1415 |
|
1416 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1417 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1418 |
|
1419 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1420 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1421 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1422 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1423 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1424 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1425 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1426 |
|
1427 |
_ASUNAME |
1428 |
|
1429 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1430 |
for as_dir in $PATH |
1431 |
do |
1432 |
IFS=$as_save_IFS |
1433 |
test -z "$as_dir" && as_dir=. |
1434 |
$as_echo "PATH: $as_dir" |
1435 |
done |
1436 |
IFS=$as_save_IFS |
1437 |
|
1438 |
} >&5 |
1439 |
|
1440 |
cat >&5 <<_ACEOF |
1441 |
|
1442 |
|
1443 |
## ----------- ## |
1444 |
## Core tests. ## |
1445 |
## ----------- ## |
1446 |
|
1447 |
_ACEOF |
1448 |
|
1449 |
|
1450 |
# Keep a trace of the command line. |
1451 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1452 |
# Strip out --silent because we don't want to record it for future runs. |
1453 |
# Also quote any args containing shell meta-characters. |
1454 |
# Make two passes to allow for proper duplicate-argument suppression. |
1455 |
ac_configure_args= |
1456 |
ac_configure_args0= |
1457 |
ac_configure_args1= |
1458 |
ac_must_keep_next=false |
1459 |
for ac_pass in 1 2 |
1460 |
do |
1461 |
for ac_arg |
1462 |
do |
1463 |
case $ac_arg in |
1464 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1465 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1466 |
| -silent | --silent | --silen | --sile | --sil) |
1467 |
continue ;; |
1468 |
*\'*) |
1469 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1470 |
esac |
1471 |
case $ac_pass in |
1472 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1473 |
2) |
1474 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
1475 |
if test $ac_must_keep_next = true; then |
1476 |
ac_must_keep_next=false # Got value, back to normal. |
1477 |
else |
1478 |
case $ac_arg in |
1479 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1480 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1481 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1482 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1483 |
case "$ac_configure_args0 " in |
1484 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1485 |
esac |
1486 |
;; |
1487 |
-* ) ac_must_keep_next=true ;; |
1488 |
esac |
1489 |
fi |
1490 |
as_fn_append ac_configure_args " '$ac_arg'" |
1491 |
;; |
1492 |
esac |
1493 |
done |
1494 |
done |
1495 |
{ ac_configure_args0=; unset ac_configure_args0;} |
1496 |
{ ac_configure_args1=; unset ac_configure_args1;} |
1497 |
|
1498 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1499 |
# config.log. We remove comments because anyway the quotes in there |
1500 |
# would cause problems or look ugly. |
1501 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1502 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1503 |
trap 'exit_status=$? |
1504 |
# Save into config.log some information that might help in debugging. |
1505 |
{ |
1506 |
echo |
1507 |
|
1508 |
$as_echo "## ---------------- ## |
1509 |
## Cache variables. ## |
1510 |
## ---------------- ##" |
1511 |
echo |
1512 |
# The following way of writing the cache mishandles newlines in values, |
1513 |
( |
1514 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1515 |
eval ac_val=\$$ac_var |
1516 |
case $ac_val in #( |
1517 |
*${as_nl}*) |
1518 |
case $ac_var in #( |
1519 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1520 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1521 |
esac |
1522 |
case $ac_var in #( |
1523 |
_ | IFS | as_nl) ;; #( |
1524 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1525 |
*) { eval $ac_var=; unset $ac_var;} ;; |
1526 |
esac ;; |
1527 |
esac |
1528 |
done |
1529 |
(set) 2>&1 | |
1530 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1531 |
*${as_nl}ac_space=\ *) |
1532 |
sed -n \ |
1533 |
"s/'\''/'\''\\\\'\'''\''/g; |
1534 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1535 |
;; #( |
1536 |
*) |
1537 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1538 |
;; |
1539 |
esac | |
1540 |
sort |
1541 |
) |
1542 |
echo |
1543 |
|
1544 |
$as_echo "## ----------------- ## |
1545 |
## Output variables. ## |
1546 |
## ----------------- ##" |
1547 |
echo |
1548 |
for ac_var in $ac_subst_vars |
1549 |
do |
1550 |
eval ac_val=\$$ac_var |
1551 |
case $ac_val in |
1552 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1553 |
esac |
1554 |
$as_echo "$ac_var='\''$ac_val'\''" |
1555 |
done | sort |
1556 |
echo |
1557 |
|
1558 |
if test -n "$ac_subst_files"; then |
1559 |
$as_echo "## ------------------- ## |
1560 |
## File substitutions. ## |
1561 |
## ------------------- ##" |
1562 |
echo |
1563 |
for ac_var in $ac_subst_files |
1564 |
do |
1565 |
eval ac_val=\$$ac_var |
1566 |
case $ac_val in |
1567 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1568 |
esac |
1569 |
$as_echo "$ac_var='\''$ac_val'\''" |
1570 |
done | sort |
1571 |
echo |
1572 |
fi |
1573 |
|
1574 |
if test -s confdefs.h; then |
1575 |
$as_echo "## ----------- ## |
1576 |
## confdefs.h. ## |
1577 |
## ----------- ##" |
1578 |
echo |
1579 |
cat confdefs.h |
1580 |
echo |
1581 |
fi |
1582 |
test "$ac_signal" != 0 && |
1583 |
$as_echo "$as_me: caught signal $ac_signal" |
1584 |
$as_echo "$as_me: exit $exit_status" |
1585 |
} >&5 |
1586 |
rm -f core *.core core.conftest.* && |
1587 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1588 |
exit $exit_status |
1589 |
' 0 |
1590 |
for ac_signal in 1 2 13 15; do |
1591 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1592 |
done |
1593 |
ac_signal=0 |
1594 |
|
1595 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1596 |
rm -f -r conftest* confdefs.h |
1597 |
|
1598 |
$as_echo "/* confdefs.h */" > confdefs.h |
1599 |
|
1600 |
# Predefined preprocessor variables. |
1601 |
|
1602 |
cat >>confdefs.h <<_ACEOF |
1603 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1604 |
_ACEOF |
1605 |
|
1606 |
cat >>confdefs.h <<_ACEOF |
1607 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1608 |
_ACEOF |
1609 |
|
1610 |
cat >>confdefs.h <<_ACEOF |
1611 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1612 |
_ACEOF |
1613 |
|
1614 |
cat >>confdefs.h <<_ACEOF |
1615 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1616 |
_ACEOF |
1617 |
|
1618 |
cat >>confdefs.h <<_ACEOF |
1619 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1620 |
_ACEOF |
1621 |
|
1622 |
cat >>confdefs.h <<_ACEOF |
1623 |
#define PACKAGE_URL "$PACKAGE_URL" |
1624 |
_ACEOF |
1625 |
|
1626 |
|
1627 |
# Let the site file select an alternate cache file if it wants to. |
1628 |
# Prefer an explicitly selected file to automatically selected ones. |
1629 |
ac_site_file1=NONE |
1630 |
ac_site_file2=NONE |
1631 |
if test -n "$CONFIG_SITE"; then |
1632 |
# We do not want a PATH search for config.site. |
1633 |
case $CONFIG_SITE in #(( |
1634 |
-*) ac_site_file1=./$CONFIG_SITE;; |
1635 |
*/*) ac_site_file1=$CONFIG_SITE;; |
1636 |
*) ac_site_file1=./$CONFIG_SITE;; |
1637 |
esac |
1638 |
elif test "x$prefix" != xNONE; then |
1639 |
ac_site_file1=$prefix/share/config.site |
1640 |
ac_site_file2=$prefix/etc/config.site |
1641 |
else |
1642 |
ac_site_file1=$ac_default_prefix/share/config.site |
1643 |
ac_site_file2=$ac_default_prefix/etc/config.site |
1644 |
fi |
1645 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1646 |
do |
1647 |
test "x$ac_site_file" = xNONE && continue |
1648 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
1649 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1650 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1651 |
sed 's/^/| /' "$ac_site_file" >&5 |
1652 |
. "$ac_site_file" \ |
1653 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1654 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1655 |
as_fn_error $? "failed to load site script $ac_site_file |
1656 |
See \`config.log' for more details" "$LINENO" 5 ; } |
1657 |
fi |
1658 |
done |
1659 |
|
1660 |
if test -r "$cache_file"; then |
1661 |
# Some versions of bash will fail to source /dev/null (special files |
1662 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1663 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1665 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
1666 |
case $cache_file in |
1667 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1668 |
*) . "./$cache_file";; |
1669 |
esac |
1670 |
fi |
1671 |
else |
1672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1673 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
1674 |
>$cache_file |
1675 |
fi |
1676 |
|
1677 |
# Check that the precious variables saved in the cache have kept the same |
1678 |
# value. |
1679 |
ac_cache_corrupted=false |
1680 |
for ac_var in $ac_precious_vars; do |
1681 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1682 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1683 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1684 |
eval ac_new_val=\$ac_env_${ac_var}_value |
1685 |
case $ac_old_set,$ac_new_set in |
1686 |
set,) |
1687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1688 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1689 |
ac_cache_corrupted=: ;; |
1690 |
,set) |
1691 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1692 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1693 |
ac_cache_corrupted=: ;; |
1694 |
,);; |
1695 |
*) |
1696 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1697 |
# differences in whitespace do not lead to failure. |
1698 |
ac_old_val_w=`echo x $ac_old_val` |
1699 |
ac_new_val_w=`echo x $ac_new_val` |
1700 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
1702 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1703 |
ac_cache_corrupted=: |
1704 |
else |
1705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
1706 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1707 |
eval $ac_var=\$ac_old_val |
1708 |
fi |
1709 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
1710 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1711 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
1712 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
1713 |
fi;; |
1714 |
esac |
1715 |
# Pass precious variables to config.status. |
1716 |
if test "$ac_new_set" = set; then |
1717 |
case $ac_new_val in |
1718 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1719 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1720 |
esac |
1721 |
case " $ac_configure_args " in |
1722 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1723 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1724 |
esac |
1725 |
fi |
1726 |
done |
1727 |
if $ac_cache_corrupted; then |
1728 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1729 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
1731 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1732 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
1733 |
fi |
1734 |
## -------------------- ## |
1735 |
## Main body of script. ## |
1736 |
## -------------------- ## |
1737 |
|
1738 |
ac_ext=c |
1739 |
ac_cpp='$CPP $CPPFLAGS' |
1740 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1741 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1742 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1743 |
|
1744 |
|
1745 |
|
1746 |
ac_config_headers="$ac_config_headers libeio/config.h" |
1747 |
|
1748 |
|
1749 |
ac_ext=c |
1750 |
ac_cpp='$CPP $CPPFLAGS' |
1751 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1752 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1753 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1754 |
if test -n "$ac_tool_prefix"; then |
1755 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1756 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1757 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1758 |
$as_echo_n "checking for $ac_word... " >&6; } |
1759 |
if test "${ac_cv_prog_CC+set}" = set; then : |
1760 |
$as_echo_n "(cached) " >&6 |
1761 |
else |
1762 |
if test -n "$CC"; then |
1763 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1764 |
else |
1765 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1766 |
for as_dir in $PATH |
1767 |
do |
1768 |
IFS=$as_save_IFS |
1769 |
test -z "$as_dir" && as_dir=. |
1770 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1771 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1772 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1773 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1774 |
break 2 |
1775 |
fi |
1776 |
done |
1777 |
done |
1778 |
IFS=$as_save_IFS |
1779 |
|
1780 |
fi |
1781 |
fi |
1782 |
CC=$ac_cv_prog_CC |
1783 |
if test -n "$CC"; then |
1784 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1785 |
$as_echo "$CC" >&6; } |
1786 |
else |
1787 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1788 |
$as_echo "no" >&6; } |
1789 |
fi |
1790 |
|
1791 |
|
1792 |
fi |
1793 |
if test -z "$ac_cv_prog_CC"; then |
1794 |
ac_ct_CC=$CC |
1795 |
# Extract the first word of "gcc", so it can be a program name with args. |
1796 |
set dummy gcc; ac_word=$2 |
1797 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1798 |
$as_echo_n "checking for $ac_word... " >&6; } |
1799 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
1800 |
$as_echo_n "(cached) " >&6 |
1801 |
else |
1802 |
if test -n "$ac_ct_CC"; then |
1803 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1804 |
else |
1805 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1806 |
for as_dir in $PATH |
1807 |
do |
1808 |
IFS=$as_save_IFS |
1809 |
test -z "$as_dir" && as_dir=. |
1810 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1811 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1812 |
ac_cv_prog_ac_ct_CC="gcc" |
1813 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1814 |
break 2 |
1815 |
fi |
1816 |
done |
1817 |
done |
1818 |
IFS=$as_save_IFS |
1819 |
|
1820 |
fi |
1821 |
fi |
1822 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1823 |
if test -n "$ac_ct_CC"; then |
1824 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
1825 |
$as_echo "$ac_ct_CC" >&6; } |
1826 |
else |
1827 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1828 |
$as_echo "no" >&6; } |
1829 |
fi |
1830 |
|
1831 |
if test "x$ac_ct_CC" = x; then |
1832 |
CC="" |
1833 |
else |
1834 |
case $cross_compiling:$ac_tool_warned in |
1835 |
yes:) |
1836 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
1837 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1838 |
ac_tool_warned=yes ;; |
1839 |
esac |
1840 |
CC=$ac_ct_CC |
1841 |
fi |
1842 |
else |
1843 |
CC="$ac_cv_prog_CC" |
1844 |
fi |
1845 |
|
1846 |
if test -z "$CC"; then |
1847 |
if test -n "$ac_tool_prefix"; then |
1848 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1849 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1850 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1851 |
$as_echo_n "checking for $ac_word... " >&6; } |
1852 |
if test "${ac_cv_prog_CC+set}" = set; then : |
1853 |
$as_echo_n "(cached) " >&6 |
1854 |
else |
1855 |
if test -n "$CC"; then |
1856 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1857 |
else |
1858 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1859 |
for as_dir in $PATH |
1860 |
do |
1861 |
IFS=$as_save_IFS |
1862 |
test -z "$as_dir" && as_dir=. |
1863 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1864 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1865 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1866 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1867 |
break 2 |
1868 |
fi |
1869 |
done |
1870 |
done |
1871 |
IFS=$as_save_IFS |
1872 |
|
1873 |
fi |
1874 |
fi |
1875 |
CC=$ac_cv_prog_CC |
1876 |
if test -n "$CC"; then |
1877 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1878 |
$as_echo "$CC" >&6; } |
1879 |
else |
1880 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1881 |
$as_echo "no" >&6; } |
1882 |
fi |
1883 |
|
1884 |
|
1885 |
fi |
1886 |
fi |
1887 |
if test -z "$CC"; then |
1888 |
# Extract the first word of "cc", so it can be a program name with args. |
1889 |
set dummy cc; ac_word=$2 |
1890 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1891 |
$as_echo_n "checking for $ac_word... " >&6; } |
1892 |
if test "${ac_cv_prog_CC+set}" = set; then : |
1893 |
$as_echo_n "(cached) " >&6 |
1894 |
else |
1895 |
if test -n "$CC"; then |
1896 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1897 |
else |
1898 |
ac_prog_rejected=no |
1899 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1900 |
for as_dir in $PATH |
1901 |
do |
1902 |
IFS=$as_save_IFS |
1903 |
test -z "$as_dir" && as_dir=. |
1904 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1905 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1906 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1907 |
ac_prog_rejected=yes |
1908 |
continue |
1909 |
fi |
1910 |
ac_cv_prog_CC="cc" |
1911 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1912 |
break 2 |
1913 |
fi |
1914 |
done |
1915 |
done |
1916 |
IFS=$as_save_IFS |
1917 |
|
1918 |
if test $ac_prog_rejected = yes; then |
1919 |
# We found a bogon in the path, so make sure we never use it. |
1920 |
set dummy $ac_cv_prog_CC |
1921 |
shift |
1922 |
if test $# != 0; then |
1923 |
# We chose a different compiler from the bogus one. |
1924 |
# However, it has the same basename, so the bogon will be chosen |
1925 |
# first if we set CC to just the basename; use the full file name. |
1926 |
shift |
1927 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1928 |
fi |
1929 |
fi |
1930 |
fi |
1931 |
fi |
1932 |
CC=$ac_cv_prog_CC |
1933 |
if test -n "$CC"; then |
1934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1935 |
$as_echo "$CC" >&6; } |
1936 |
else |
1937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1938 |
$as_echo "no" >&6; } |
1939 |
fi |
1940 |
|
1941 |
|
1942 |
fi |
1943 |
if test -z "$CC"; then |
1944 |
if test -n "$ac_tool_prefix"; then |
1945 |
for ac_prog in cl.exe |
1946 |
do |
1947 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1948 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1949 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1950 |
$as_echo_n "checking for $ac_word... " >&6; } |
1951 |
if test "${ac_cv_prog_CC+set}" = set; then : |
1952 |
$as_echo_n "(cached) " >&6 |
1953 |
else |
1954 |
if test -n "$CC"; then |
1955 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1956 |
else |
1957 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1958 |
for as_dir in $PATH |
1959 |
do |
1960 |
IFS=$as_save_IFS |
1961 |
test -z "$as_dir" && as_dir=. |
1962 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1963 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1964 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1965 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1966 |
break 2 |
1967 |
fi |
1968 |
done |
1969 |
done |
1970 |
IFS=$as_save_IFS |
1971 |
|
1972 |
fi |
1973 |
fi |
1974 |
CC=$ac_cv_prog_CC |
1975 |
if test -n "$CC"; then |
1976 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1977 |
$as_echo "$CC" >&6; } |
1978 |
else |
1979 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1980 |
$as_echo "no" >&6; } |
1981 |
fi |
1982 |
|
1983 |
|
1984 |
test -n "$CC" && break |
1985 |
done |
1986 |
fi |
1987 |
if test -z "$CC"; then |
1988 |
ac_ct_CC=$CC |
1989 |
for ac_prog in cl.exe |
1990 |
do |
1991 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1992 |
set dummy $ac_prog; ac_word=$2 |
1993 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1994 |
$as_echo_n "checking for $ac_word... " >&6; } |
1995 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
1996 |
$as_echo_n "(cached) " >&6 |
1997 |
else |
1998 |
if test -n "$ac_ct_CC"; then |
1999 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2000 |
else |
2001 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2002 |
for as_dir in $PATH |
2003 |
do |
2004 |
IFS=$as_save_IFS |
2005 |
test -z "$as_dir" && as_dir=. |
2006 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2007 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2008 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2009 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2010 |
break 2 |
2011 |
fi |
2012 |
done |
2013 |
done |
2014 |
IFS=$as_save_IFS |
2015 |
|
2016 |
fi |
2017 |
fi |
2018 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2019 |
if test -n "$ac_ct_CC"; then |
2020 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2021 |
$as_echo "$ac_ct_CC" >&6; } |
2022 |
else |
2023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2024 |
$as_echo "no" >&6; } |
2025 |
fi |
2026 |
|
2027 |
|
2028 |
test -n "$ac_ct_CC" && break |
2029 |
done |
2030 |
|
2031 |
if test "x$ac_ct_CC" = x; then |
2032 |
CC="" |
2033 |
else |
2034 |
case $cross_compiling:$ac_tool_warned in |
2035 |
yes:) |
2036 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2037 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2038 |
ac_tool_warned=yes ;; |
2039 |
esac |
2040 |
CC=$ac_ct_CC |
2041 |
fi |
2042 |
fi |
2043 |
|
2044 |
fi |
2045 |
|
2046 |
|
2047 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2048 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2049 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
2050 |
See \`config.log' for more details" "$LINENO" 5 ; } |
2051 |
|
2052 |
# Provide some information about the compiler. |
2053 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2054 |
set X $ac_compile |
2055 |
ac_compiler=$2 |
2056 |
for ac_option in --version -v -V -qversion; do |
2057 |
{ { ac_try="$ac_compiler $ac_option >&5" |
2058 |
case "(($ac_try" in |
2059 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2060 |
*) ac_try_echo=$ac_try;; |
2061 |
esac |
2062 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2063 |
$as_echo "$ac_try_echo"; } >&5 |
2064 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2065 |
ac_status=$? |
2066 |
if test -s conftest.err; then |
2067 |
sed '10a\ |
2068 |
... rest of stderr output deleted ... |
2069 |
10q' conftest.err >conftest.er1 |
2070 |
cat conftest.er1 >&5 |
2071 |
fi |
2072 |
rm -f conftest.er1 conftest.err |
2073 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2074 |
test $ac_status = 0; } |
2075 |
done |
2076 |
|
2077 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2078 |
/* end confdefs.h. */ |
2079 |
|
2080 |
int |
2081 |
main () |
2082 |
{ |
2083 |
|
2084 |
; |
2085 |
return 0; |
2086 |
} |
2087 |
_ACEOF |
2088 |
ac_clean_files_save=$ac_clean_files |
2089 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2090 |
# Try to create an executable without -o first, disregard a.out. |
2091 |
# It will help us diagnose broken compilers, and finding out an intuition |
2092 |
# of exeext. |
2093 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2094 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
2095 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2096 |
|
2097 |
# The possible output files: |
2098 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2099 |
|
2100 |
ac_rmfiles= |
2101 |
for ac_file in $ac_files |
2102 |
do |
2103 |
case $ac_file in |
2104 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2105 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2106 |
esac |
2107 |
done |
2108 |
rm -f $ac_rmfiles |
2109 |
|
2110 |
if { { ac_try="$ac_link_default" |
2111 |
case "(($ac_try" in |
2112 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2113 |
*) ac_try_echo=$ac_try;; |
2114 |
esac |
2115 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2116 |
$as_echo "$ac_try_echo"; } >&5 |
2117 |
(eval "$ac_link_default") 2>&5 |
2118 |
ac_status=$? |
2119 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2120 |
test $ac_status = 0; }; then : |
2121 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2122 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2123 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2124 |
# so that the user can short-circuit this test for compilers unknown to |
2125 |
# Autoconf. |
2126 |
for ac_file in $ac_files '' |
2127 |
do |
2128 |
test -f "$ac_file" || continue |
2129 |
case $ac_file in |
2130 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2131 |
;; |
2132 |
[ab].out ) |
2133 |
# We found the default executable, but exeext='' is most |
2134 |
# certainly right. |
2135 |
break;; |
2136 |
*.* ) |
2137 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2138 |
then :; else |
2139 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2140 |
fi |
2141 |
# We set ac_cv_exeext here because the later test for it is not |
2142 |
# safe: cross compilers may not add the suffix if given an `-o' |
2143 |
# argument, so we may need to know it at that point already. |
2144 |
# Even if this section looks crufty: it has the advantage of |
2145 |
# actually working. |
2146 |
break;; |
2147 |
* ) |
2148 |
break;; |
2149 |
esac |
2150 |
done |
2151 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2152 |
|
2153 |
else |
2154 |
ac_file='' |
2155 |
fi |
2156 |
if test -z "$ac_file"; then : |
2157 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2158 |
$as_echo "no" >&6; } |
2159 |
$as_echo "$as_me: failed program was:" >&5 |
2160 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2161 |
|
2162 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2163 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2164 |
as_fn_error 77 "C compiler cannot create executables |
2165 |
See \`config.log' for more details" "$LINENO" 5 ; } |
2166 |
else |
2167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2168 |
$as_echo "yes" >&6; } |
2169 |
fi |
2170 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2171 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
2172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2173 |
$as_echo "$ac_file" >&6; } |
2174 |
ac_exeext=$ac_cv_exeext |
2175 |
|
2176 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2177 |
ac_clean_files=$ac_clean_files_save |
2178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2179 |
$as_echo_n "checking for suffix of executables... " >&6; } |
2180 |
if { { ac_try="$ac_link" |
2181 |
case "(($ac_try" in |
2182 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2183 |
*) ac_try_echo=$ac_try;; |
2184 |
esac |
2185 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2186 |
$as_echo "$ac_try_echo"; } >&5 |
2187 |
(eval "$ac_link") 2>&5 |
2188 |
ac_status=$? |
2189 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2190 |
test $ac_status = 0; }; then : |
2191 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2192 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2193 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2194 |
# `rm'. |
2195 |
for ac_file in conftest.exe conftest conftest.*; do |
2196 |
test -f "$ac_file" || continue |
2197 |
case $ac_file in |
2198 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2199 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2200 |
break;; |
2201 |
* ) break;; |
2202 |
esac |
2203 |
done |
2204 |
else |
2205 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2206 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2207 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2208 |
See \`config.log' for more details" "$LINENO" 5 ; } |
2209 |
fi |
2210 |
rm -f conftest conftest$ac_cv_exeext |
2211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2212 |
$as_echo "$ac_cv_exeext" >&6; } |
2213 |
|
2214 |
rm -f conftest.$ac_ext |
2215 |
EXEEXT=$ac_cv_exeext |
2216 |
ac_exeext=$EXEEXT |
2217 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2218 |
/* end confdefs.h. */ |
2219 |
#include <stdio.h> |
2220 |
int |
2221 |
main () |
2222 |
{ |
2223 |
FILE *f = fopen ("conftest.out", "w"); |
2224 |
return ferror (f) || fclose (f) != 0; |
2225 |
|
2226 |
; |
2227 |
return 0; |
2228 |
} |
2229 |
_ACEOF |
2230 |
ac_clean_files="$ac_clean_files conftest.out" |
2231 |
# Check that the compiler produces executables we can run. If not, either |
2232 |
# the compiler is broken, or we cross compile. |
2233 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2234 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
2235 |
if test "$cross_compiling" != yes; then |
2236 |
{ { ac_try="$ac_link" |
2237 |
case "(($ac_try" in |
2238 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2239 |
*) ac_try_echo=$ac_try;; |
2240 |
esac |
2241 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2242 |
$as_echo "$ac_try_echo"; } >&5 |
2243 |
(eval "$ac_link") 2>&5 |
2244 |
ac_status=$? |
2245 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2246 |
test $ac_status = 0; } |
2247 |
if { ac_try='./conftest$ac_cv_exeext' |
2248 |
{ { case "(($ac_try" in |
2249 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2250 |
*) ac_try_echo=$ac_try;; |
2251 |
esac |
2252 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2253 |
$as_echo "$ac_try_echo"; } >&5 |
2254 |
(eval "$ac_try") 2>&5 |
2255 |
ac_status=$? |
2256 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2257 |
test $ac_status = 0; }; }; then |
2258 |
cross_compiling=no |
2259 |
else |
2260 |
if test "$cross_compiling" = maybe; then |
2261 |
cross_compiling=yes |
2262 |
else |
2263 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2264 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2265 |
as_fn_error $? "cannot run C compiled programs. |
2266 |
If you meant to cross compile, use \`--host'. |
2267 |
See \`config.log' for more details" "$LINENO" 5 ; } |
2268 |
fi |
2269 |
fi |
2270 |
fi |
2271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2272 |
$as_echo "$cross_compiling" >&6; } |
2273 |
|
2274 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2275 |
ac_clean_files=$ac_clean_files_save |
2276 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2277 |
$as_echo_n "checking for suffix of object files... " >&6; } |
2278 |
if test "${ac_cv_objext+set}" = set; then : |
2279 |
$as_echo_n "(cached) " >&6 |
2280 |
else |
2281 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2282 |
/* end confdefs.h. */ |
2283 |
|
2284 |
int |
2285 |
main () |
2286 |
{ |
2287 |
|
2288 |
; |
2289 |
return 0; |
2290 |
} |
2291 |
_ACEOF |
2292 |
rm -f conftest.o conftest.obj |
2293 |
if { { ac_try="$ac_compile" |
2294 |
case "(($ac_try" in |
2295 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2296 |
*) ac_try_echo=$ac_try;; |
2297 |
esac |
2298 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2299 |
$as_echo "$ac_try_echo"; } >&5 |
2300 |
(eval "$ac_compile") 2>&5 |
2301 |
ac_status=$? |
2302 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2303 |
test $ac_status = 0; }; then : |
2304 |
for ac_file in conftest.o conftest.obj conftest.*; do |
2305 |
test -f "$ac_file" || continue; |
2306 |
case $ac_file in |
2307 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2308 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2309 |
break;; |
2310 |
esac |
2311 |
done |
2312 |
else |
2313 |
$as_echo "$as_me: failed program was:" >&5 |
2314 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2315 |
|
2316 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2317 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2318 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
2319 |
See \`config.log' for more details" "$LINENO" 5 ; } |
2320 |
fi |
2321 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2322 |
fi |
2323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2324 |
$as_echo "$ac_cv_objext" >&6; } |
2325 |
OBJEXT=$ac_cv_objext |
2326 |
ac_objext=$OBJEXT |
2327 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2328 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
2329 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
2330 |
$as_echo_n "(cached) " >&6 |
2331 |
else |
2332 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2333 |
/* end confdefs.h. */ |
2334 |
|
2335 |
int |
2336 |
main () |
2337 |
{ |
2338 |
#ifndef __GNUC__ |
2339 |
choke me |
2340 |
#endif |
2341 |
|
2342 |
; |
2343 |
return 0; |
2344 |
} |
2345 |
_ACEOF |
2346 |
if ac_fn_c_try_compile "$LINENO"; then : |
2347 |
ac_compiler_gnu=yes |
2348 |
else |
2349 |
ac_compiler_gnu=no |
2350 |
fi |
2351 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2352 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2353 |
|
2354 |
fi |
2355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2356 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
2357 |
if test $ac_compiler_gnu = yes; then |
2358 |
GCC=yes |
2359 |
else |
2360 |
GCC= |
2361 |
fi |
2362 |
ac_test_CFLAGS=${CFLAGS+set} |
2363 |
ac_save_CFLAGS=$CFLAGS |
2364 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2365 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
2366 |
if test "${ac_cv_prog_cc_g+set}" = set; then : |
2367 |
$as_echo_n "(cached) " >&6 |
2368 |
else |
2369 |
ac_save_c_werror_flag=$ac_c_werror_flag |
2370 |
ac_c_werror_flag=yes |
2371 |
ac_cv_prog_cc_g=no |
2372 |
CFLAGS="-g" |
2373 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2374 |
/* end confdefs.h. */ |
2375 |
|
2376 |
int |
2377 |
main () |
2378 |
{ |
2379 |
|
2380 |
; |
2381 |
return 0; |
2382 |
} |
2383 |
_ACEOF |
2384 |
if ac_fn_c_try_compile "$LINENO"; then : |
2385 |
ac_cv_prog_cc_g=yes |
2386 |
else |
2387 |
CFLAGS="" |
2388 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2389 |
/* end confdefs.h. */ |
2390 |
|
2391 |
int |
2392 |
main () |
2393 |
{ |
2394 |
|
2395 |
; |
2396 |
return 0; |
2397 |
} |
2398 |
_ACEOF |
2399 |
if ac_fn_c_try_compile "$LINENO"; then : |
2400 |
|
2401 |
else |
2402 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2403 |
CFLAGS="-g" |
2404 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2405 |
/* end confdefs.h. */ |
2406 |
|
2407 |
int |
2408 |
main () |
2409 |
{ |
2410 |
|
2411 |
; |
2412 |
return 0; |
2413 |
} |
2414 |
_ACEOF |
2415 |
if ac_fn_c_try_compile "$LINENO"; then : |
2416 |
ac_cv_prog_cc_g=yes |
2417 |
fi |
2418 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2419 |
fi |
2420 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2421 |
fi |
2422 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2423 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2424 |
fi |
2425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2426 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
2427 |
if test "$ac_test_CFLAGS" = set; then |
2428 |
CFLAGS=$ac_save_CFLAGS |
2429 |
elif test $ac_cv_prog_cc_g = yes; then |
2430 |
if test "$GCC" = yes; then |
2431 |
CFLAGS="-g -O2" |
2432 |
else |
2433 |
CFLAGS="-g" |
2434 |
fi |
2435 |
else |
2436 |
if test "$GCC" = yes; then |
2437 |
CFLAGS="-O2" |
2438 |
else |
2439 |
CFLAGS= |
2440 |
fi |
2441 |
fi |
2442 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2443 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
2444 |
if test "${ac_cv_prog_cc_c89+set}" = set; then : |
2445 |
$as_echo_n "(cached) " >&6 |
2446 |
else |
2447 |
ac_cv_prog_cc_c89=no |
2448 |
ac_save_CC=$CC |
2449 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2450 |
/* end confdefs.h. */ |
2451 |
#include <stdarg.h> |
2452 |
#include <stdio.h> |
2453 |
#include <sys/types.h> |
2454 |
#include <sys/stat.h> |
2455 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2456 |
struct buf { int x; }; |
2457 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2458 |
static char *e (p, i) |
2459 |
char **p; |
2460 |
int i; |
2461 |
{ |
2462 |
return p[i]; |
2463 |
} |
2464 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2465 |
{ |
2466 |
char *s; |
2467 |
va_list v; |
2468 |
va_start (v,p); |
2469 |
s = g (p, va_arg (v,int)); |
2470 |
va_end (v); |
2471 |
return s; |
2472 |
} |
2473 |
|
2474 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2475 |
function prototypes and stuff, but not '\xHH' hex character constants. |
2476 |
These don't provoke an error unfortunately, instead are silently treated |
2477 |
as 'x'. The following induces an error, until -std is added to get |
2478 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2479 |
array size at least. It's necessary to write '\x00'==0 to get something |
2480 |
that's true only with -std. */ |
2481 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2482 |
|
2483 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2484 |
inside strings and character constants. */ |
2485 |
#define FOO(x) 'x' |
2486 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
2487 |
|
2488 |
int test (int i, double x); |
2489 |
struct s1 {int (*f) (int a);}; |
2490 |
struct s2 {int (*f) (double a);}; |
2491 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2492 |
int argc; |
2493 |
char **argv; |
2494 |
int |
2495 |
main () |
2496 |
{ |
2497 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2498 |
; |
2499 |
return 0; |
2500 |
} |
2501 |
_ACEOF |
2502 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2503 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2504 |
do |
2505 |
CC="$ac_save_CC $ac_arg" |
2506 |
if ac_fn_c_try_compile "$LINENO"; then : |
2507 |
ac_cv_prog_cc_c89=$ac_arg |
2508 |
fi |
2509 |
rm -f core conftest.err conftest.$ac_objext |
2510 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
2511 |
done |
2512 |
rm -f conftest.$ac_ext |
2513 |
CC=$ac_save_CC |
2514 |
|
2515 |
fi |
2516 |
# AC_CACHE_VAL |
2517 |
case "x$ac_cv_prog_cc_c89" in |
2518 |
x) |
2519 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
2520 |
$as_echo "none needed" >&6; } ;; |
2521 |
xno) |
2522 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
2523 |
$as_echo "unsupported" >&6; } ;; |
2524 |
*) |
2525 |
CC="$CC $ac_cv_prog_cc_c89" |
2526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
2527 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
2528 |
esac |
2529 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
2530 |
|
2531 |
fi |
2532 |
|
2533 |
ac_ext=c |
2534 |
ac_cpp='$CPP $CPPFLAGS' |
2535 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2536 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2537 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2538 |
|
2539 |
|
2540 |
|
2541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
2542 |
$as_echo_n "checking for library containing pthread_create... " >&6; } |
2543 |
if test "${ac_cv_search_pthread_create+set}" = set; then : |
2544 |
$as_echo_n "(cached) " >&6 |
2545 |
else |
2546 |
ac_func_search_save_LIBS=$LIBS |
2547 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2548 |
/* end confdefs.h. */ |
2549 |
|
2550 |
/* Override any GCC internal prototype to avoid an error. |
2551 |
Use char because int might match the return type of a GCC |
2552 |
builtin and then its argument prototype would still apply. */ |
2553 |
#ifdef __cplusplus |
2554 |
extern "C" |
2555 |
#endif |
2556 |
char pthread_create (); |
2557 |
int |
2558 |
main () |
2559 |
{ |
2560 |
return pthread_create (); |
2561 |
; |
2562 |
return 0; |
2563 |
} |
2564 |
_ACEOF |
2565 |
for ac_lib in '' pthread pthreads pthreadVC2; do |
2566 |
if test -z "$ac_lib"; then |
2567 |
ac_res="none required" |
2568 |
else |
2569 |
ac_res=-l$ac_lib |
2570 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
2571 |
fi |
2572 |
if ac_fn_c_try_link "$LINENO"; then : |
2573 |
ac_cv_search_pthread_create=$ac_res |
2574 |
fi |
2575 |
rm -f core conftest.err conftest.$ac_objext \ |
2576 |
conftest$ac_exeext |
2577 |
if test "${ac_cv_search_pthread_create+set}" = set; then : |
2578 |
break |
2579 |
fi |
2580 |
done |
2581 |
if test "${ac_cv_search_pthread_create+set}" = set; then : |
2582 |
|
2583 |
else |
2584 |
ac_cv_search_pthread_create=no |
2585 |
fi |
2586 |
rm conftest.$ac_ext |
2587 |
LIBS=$ac_func_search_save_LIBS |
2588 |
fi |
2589 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
2590 |
$as_echo "$ac_cv_search_pthread_create" >&6; } |
2591 |
ac_res=$ac_cv_search_pthread_create |
2592 |
if test "$ac_res" != no; then : |
2593 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
2594 |
|
2595 |
else |
2596 |
as_fn_error $? "pthread functions not found" "$LINENO" 5 |
2597 |
|
2598 |
fi |
2599 |
|
2600 |
|
2601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
2602 |
$as_echo_n "checking for utimes... " >&6; } |
2603 |
if test "${ac_cv_utimes+set}" = set; then : |
2604 |
$as_echo_n "(cached) " >&6 |
2605 |
else |
2606 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2607 |
/* end confdefs.h. */ |
2608 |
|
2609 |
#include <sys/types.h> |
2610 |
#include <sys/time.h> |
2611 |
#include <utime.h> |
2612 |
struct timeval tv[2]; |
2613 |
int res; |
2614 |
int main (void) |
2615 |
{ |
2616 |
res = utimes ("/", tv); |
2617 |
return 0; |
2618 |
} |
2619 |
|
2620 |
_ACEOF |
2621 |
if ac_fn_c_try_link "$LINENO"; then : |
2622 |
ac_cv_utimes=yes |
2623 |
else |
2624 |
ac_cv_utimes=no |
2625 |
fi |
2626 |
rm -f core conftest.err conftest.$ac_objext \ |
2627 |
conftest$ac_exeext conftest.$ac_ext |
2628 |
fi |
2629 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
2630 |
$as_echo "$ac_cv_utimes" >&6; } |
2631 |
test $ac_cv_utimes = yes && |
2632 |
$as_echo "#define HAVE_UTIMES 1" >>confdefs.h |
2633 |
|
2634 |
|
2635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
2636 |
$as_echo_n "checking for futimes... " >&6; } |
2637 |
if test "${ac_cv_futimes+set}" = set; then : |
2638 |
$as_echo_n "(cached) " >&6 |
2639 |
else |
2640 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2641 |
/* end confdefs.h. */ |
2642 |
|
2643 |
#include <sys/types.h> |
2644 |
#include <sys/time.h> |
2645 |
#include <utime.h> |
2646 |
struct timeval tv[2]; |
2647 |
int res; |
2648 |
int fd; |
2649 |
int main (void) |
2650 |
{ |
2651 |
res = futimes (fd, tv); |
2652 |
return 0; |
2653 |
} |
2654 |
|
2655 |
_ACEOF |
2656 |
if ac_fn_c_try_link "$LINENO"; then : |
2657 |
ac_cv_futimes=yes |
2658 |
else |
2659 |
ac_cv_futimes=no |
2660 |
fi |
2661 |
rm -f core conftest.err conftest.$ac_objext \ |
2662 |
conftest$ac_exeext conftest.$ac_ext |
2663 |
fi |
2664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 |
2665 |
$as_echo "$ac_cv_futimes" >&6; } |
2666 |
test $ac_cv_futimes = yes && |
2667 |
$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h |
2668 |
|
2669 |
|
2670 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 |
2671 |
$as_echo_n "checking for readahead... " >&6; } |
2672 |
if test "${ac_cv_readahead+set}" = set; then : |
2673 |
$as_echo_n "(cached) " >&6 |
2674 |
else |
2675 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2676 |
/* end confdefs.h. */ |
2677 |
|
2678 |
#include <fcntl.h> |
2679 |
int main (void) |
2680 |
{ |
2681 |
int fd = 0; |
2682 |
size_t count = 2; |
2683 |
ssize_t res; |
2684 |
res = readahead (fd, 0, count); |
2685 |
return 0; |
2686 |
} |
2687 |
|
2688 |
_ACEOF |
2689 |
if ac_fn_c_try_link "$LINENO"; then : |
2690 |
ac_cv_readahead=yes |
2691 |
else |
2692 |
ac_cv_readahead=no |
2693 |
fi |
2694 |
rm -f core conftest.err conftest.$ac_objext \ |
2695 |
conftest$ac_exeext conftest.$ac_ext |
2696 |
fi |
2697 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 |
2698 |
$as_echo "$ac_cv_readahead" >&6; } |
2699 |
test $ac_cv_readahead = yes && |
2700 |
$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h |
2701 |
|
2702 |
|
2703 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
2704 |
$as_echo_n "checking for fdatasync... " >&6; } |
2705 |
if test "${ac_cv_fdatasync+set}" = set; then : |
2706 |
$as_echo_n "(cached) " >&6 |
2707 |
else |
2708 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2709 |
/* end confdefs.h. */ |
2710 |
|
2711 |
#include <unistd.h> |
2712 |
int main (void) |
2713 |
{ |
2714 |
int fd = 0; |
2715 |
fdatasync (fd); |
2716 |
return 0; |
2717 |
} |
2718 |
|
2719 |
_ACEOF |
2720 |
if ac_fn_c_try_link "$LINENO"; then : |
2721 |
ac_cv_fdatasync=yes |
2722 |
else |
2723 |
ac_cv_fdatasync=no |
2724 |
fi |
2725 |
rm -f core conftest.err conftest.$ac_objext \ |
2726 |
conftest$ac_exeext conftest.$ac_ext |
2727 |
fi |
2728 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 |
2729 |
$as_echo "$ac_cv_fdatasync" >&6; } |
2730 |
test $ac_cv_fdatasync = yes && |
2731 |
$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
2732 |
|
2733 |
|
2734 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread and pwrite" >&5 |
2735 |
$as_echo_n "checking for pread and pwrite... " >&6; } |
2736 |
if test "${ac_cv_preadwrite+set}" = set; then : |
2737 |
$as_echo_n "(cached) " >&6 |
2738 |
else |
2739 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2740 |
/* end confdefs.h. */ |
2741 |
|
2742 |
#include <unistd.h> |
2743 |
int main (void) |
2744 |
{ |
2745 |
int fd = 0; |
2746 |
size_t count = 1; |
2747 |
char buf; |
2748 |
off_t offset = 1; |
2749 |
ssize_t res; |
2750 |
res = pread (fd, &buf, count, offset); |
2751 |
res = pwrite (fd, &buf, count, offset); |
2752 |
return 0; |
2753 |
} |
2754 |
|
2755 |
_ACEOF |
2756 |
if ac_fn_c_try_link "$LINENO"; then : |
2757 |
ac_cv_preadwrite=yes |
2758 |
else |
2759 |
ac_cv_preadwrite=no |
2760 |
fi |
2761 |
rm -f core conftest.err conftest.$ac_objext \ |
2762 |
conftest$ac_exeext conftest.$ac_ext |
2763 |
fi |
2764 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_preadwrite" >&5 |
2765 |
$as_echo "$ac_cv_preadwrite" >&6; } |
2766 |
test $ac_cv_preadwrite = yes && |
2767 |
$as_echo "#define HAVE_PREADWRITE 1" >>confdefs.h |
2768 |
|
2769 |
|
2770 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
2771 |
$as_echo_n "checking for sendfile... " >&6; } |
2772 |
if test "${ac_cv_sendfile+set}" = set; then : |
2773 |
$as_echo_n "(cached) " >&6 |
2774 |
else |
2775 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2776 |
/* end confdefs.h. */ |
2777 |
|
2778 |
# include <sys/types.h> |
2779 |
#if __linux |
2780 |
# include <sys/sendfile.h> |
2781 |
#elif __FreeBSD__ || defined __APPLE__ |
2782 |
# include <sys/socket.h> |
2783 |
# include <sys/uio.h> |
2784 |
#elif __hpux |
2785 |
# include <sys/socket.h> |
2786 |
#else |
2787 |
# error unsupported architecture |
2788 |
#endif |
2789 |
int main (void) |
2790 |
{ |
2791 |
int fd = 0; |
2792 |
off_t offset = 1; |
2793 |
size_t count = 2; |
2794 |
ssize_t res; |
2795 |
#if __linux |
2796 |
res = sendfile (fd, fd, offset, count); |
2797 |
#elif __FreeBSD__ |
2798 |
res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
2799 |
#elif __hpux |
2800 |
res = sendfile (fd, fd, offset, count, 0, 0); |
2801 |
#endif |
2802 |
return 0; |
2803 |
} |
2804 |
|
2805 |
_ACEOF |
2806 |
if ac_fn_c_try_link "$LINENO"; then : |
2807 |
ac_cv_sendfile=yes |
2808 |
else |
2809 |
ac_cv_sendfile=no |
2810 |
fi |
2811 |
rm -f core conftest.err conftest.$ac_objext \ |
2812 |
conftest$ac_exeext conftest.$ac_ext |
2813 |
fi |
2814 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 |
2815 |
$as_echo "$ac_cv_sendfile" >&6; } |
2816 |
test $ac_cv_sendfile = yes && |
2817 |
$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h |
2818 |
|
2819 |
|
2820 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 |
2821 |
$as_echo_n "checking for sync_file_range... " >&6; } |
2822 |
if test "${ac_cv_sync_file_range+set}" = set; then : |
2823 |
$as_echo_n "(cached) " >&6 |
2824 |
else |
2825 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2826 |
/* end confdefs.h. */ |
2827 |
|
2828 |
#include <fcntl.h> |
2829 |
int main (void) |
2830 |
{ |
2831 |
int fd = 0; |
2832 |
off64_t offset = 1; |
2833 |
off64_t nbytes = 1; |
2834 |
unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER; |
2835 |
ssize_t res; |
2836 |
res = sync_file_range (fd, offset, nbytes, flags); |
2837 |
return 0; |
2838 |
} |
2839 |
|
2840 |
_ACEOF |
2841 |
if ac_fn_c_try_link "$LINENO"; then : |
2842 |
ac_cv_sync_file_range=yes |
2843 |
else |
2844 |
ac_cv_sync_file_range=no |
2845 |
fi |
2846 |
rm -f core conftest.err conftest.$ac_objext \ |
2847 |
conftest$ac_exeext conftest.$ac_ext |
2848 |
fi |
2849 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 |
2850 |
$as_echo "$ac_cv_sync_file_range" >&6; } |
2851 |
test $ac_cv_sync_file_range = yes && |
2852 |
$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
2853 |
|
2854 |
|
2855 |
|
2856 |
|
2857 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
2858 |
$as_echo_n "checking for posix_madvise... " >&6; } |
2859 |
if test "${ac_cv_posix_madvise+set}" = set; then : |
2860 |
$as_echo_n "(cached) " >&6 |
2861 |
else |
2862 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2863 |
/* end confdefs.h. */ |
2864 |
|
2865 |
#include <sys/mman.h> |
2866 |
int main (void) |
2867 |
{ |
2868 |
int res = posix_madvise ((void *)0, (size_t)0, POSIX_MADV_NORMAL); |
2869 |
int a = POSIX_MADV_SEQUENTIAL; |
2870 |
int b = POSIX_MADV_RANDOM; |
2871 |
int c = POSIX_MADV_WILLNEED; |
2872 |
int d = POSIX_MADV_DONTNEED; |
2873 |
return 0; |
2874 |
} |
2875 |
|
2876 |
_ACEOF |
2877 |
if ac_fn_c_try_link "$LINENO"; then : |
2878 |
ac_cv_posix_madvise=yes |
2879 |
else |
2880 |
ac_cv_posix_madvise=no |
2881 |
fi |
2882 |
rm -f core conftest.err conftest.$ac_objext \ |
2883 |
conftest$ac_exeext conftest.$ac_ext |
2884 |
fi |
2885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 |
2886 |
$as_echo "$ac_cv_posix_madvise" >&6; } |
2887 |
test $ac_cv_posix_madvise = yes && |
2888 |
$as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
2889 |
|
2890 |
|
2891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 |
2892 |
$as_echo_n "checking for posix_fadvise... " >&6; } |
2893 |
if test "${ac_cv_posix_fadvise+set}" = set; then : |
2894 |
$as_echo_n "(cached) " >&6 |
2895 |
else |
2896 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2897 |
/* end confdefs.h. */ |
2898 |
|
2899 |
#define _XOPEN_SOURCE 600 |
2900 |
#include <fcntl.h> |
2901 |
int main (void) |
2902 |
{ |
2903 |
int res = posix_fadvise ((int)0, (off_t)0, (off_t)0, POSIX_FADV_NORMAL); |
2904 |
int a = POSIX_FADV_SEQUENTIAL; |
2905 |
int b = POSIX_FADV_NOREUSE; |
2906 |
int c = POSIX_FADV_RANDOM; |
2907 |
int d = POSIX_FADV_WILLNEED; |
2908 |
int e = POSIX_FADV_DONTNEED; |
2909 |
return 0; |
2910 |
} |
2911 |
|
2912 |
_ACEOF |
2913 |
if ac_fn_c_try_link "$LINENO"; then : |
2914 |
ac_cv_posix_fadvise=yes |
2915 |
else |
2916 |
ac_cv_posix_fadvise=no |
2917 |
fi |
2918 |
rm -f core conftest.err conftest.$ac_objext \ |
2919 |
conftest$ac_exeext conftest.$ac_ext |
2920 |
fi |
2921 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
2922 |
$as_echo "$ac_cv_posix_fadvise" >&6; } |
2923 |
test $ac_cv_posix_fadvise = yes && |
2924 |
$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
2925 |
|
2926 |
|
2927 |
cat >confcache <<\_ACEOF |
2928 |
# This file is a shell script that caches the results of configure |
2929 |
# tests run on this system so they can be shared between configure |
2930 |
# scripts and configure runs, see configure's option --config-cache. |
2931 |
# It is not useful on other systems. If it contains results you don't |
2932 |
# want to keep, you may remove or edit it. |
2933 |
# |
2934 |
# config.status only pays attention to the cache file if you give it |
2935 |
# the --recheck option to rerun configure. |
2936 |
# |
2937 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
2938 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
2939 |
# following values. |
2940 |
|
2941 |
_ACEOF |
2942 |
|
2943 |
# The following way of writing the cache mishandles newlines in values, |
2944 |
# but we know of no workaround that is simple, portable, and efficient. |
2945 |
# So, we kill variables containing newlines. |
2946 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
2947 |
# and sets the high bit in the cache file unless we assign to the vars. |
2948 |
( |
2949 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
2950 |
eval ac_val=\$$ac_var |
2951 |
case $ac_val in #( |
2952 |
*${as_nl}*) |
2953 |
case $ac_var in #( |
2954 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2955 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2956 |
esac |
2957 |
case $ac_var in #( |
2958 |
_ | IFS | as_nl) ;; #( |
2959 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2960 |
*) { eval $ac_var=; unset $ac_var;} ;; |
2961 |
esac ;; |
2962 |
esac |
2963 |
done |
2964 |
|
2965 |
(set) 2>&1 | |
2966 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
2967 |
*${as_nl}ac_space=\ *) |
2968 |
# `set' does not quote correctly, so add quotes: double-quote |
2969 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
2970 |
sed -n \ |
2971 |
"s/'/'\\\\''/g; |
2972 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
2973 |
;; #( |
2974 |
*) |
2975 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
2976 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2977 |
;; |
2978 |
esac | |
2979 |
sort |
2980 |
) | |
2981 |
sed ' |
2982 |
/^ac_cv_env_/b end |
2983 |
t clear |
2984 |
:clear |
2985 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
2986 |
t end |
2987 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
2988 |
:end' >>confcache |
2989 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
2990 |
if test -w "$cache_file"; then |
2991 |
test "x$cache_file" != "x/dev/null" && |
2992 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
2993 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
2994 |
cat confcache >$cache_file |
2995 |
else |
2996 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
2997 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
2998 |
fi |
2999 |
fi |
3000 |
rm -f confcache |
3001 |
|
3002 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
3003 |
# Let make expand exec_prefix. |
3004 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
3005 |
|
3006 |
DEFS=-DHAVE_CONFIG_H |
3007 |
|
3008 |
ac_libobjs= |
3009 |
ac_ltlibobjs= |
3010 |
U= |
3011 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
3012 |
# 1. Remove the extension, and $U if already installed. |
3013 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
3014 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
3015 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
3016 |
# will be set to the directory where LIBOBJS objects are built. |
3017 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
3018 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
3019 |
done |
3020 |
LIBOBJS=$ac_libobjs |
3021 |
|
3022 |
LTLIBOBJS=$ac_ltlibobjs |
3023 |
|
3024 |
|
3025 |
|
3026 |
: ${CONFIG_STATUS=./config.status} |
3027 |
ac_write_fail=0 |
3028 |
ac_clean_files_save=$ac_clean_files |
3029 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
3030 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
3031 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
3032 |
as_write_fail=0 |
3033 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
3034 |
#! $SHELL |
3035 |
# Generated by $as_me. |
3036 |
# Run this file to recreate the current configuration. |
3037 |
# Compiler output produced by configure, useful for debugging |
3038 |
# configure, is in config.log if it exists. |
3039 |
|
3040 |
debug=false |
3041 |
ac_cs_recheck=false |
3042 |
ac_cs_silent=false |
3043 |
|
3044 |
SHELL=\${CONFIG_SHELL-$SHELL} |
3045 |
export SHELL |
3046 |
_ASEOF |
3047 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
3048 |
## -------------------- ## |
3049 |
## M4sh Initialization. ## |
3050 |
## -------------------- ## |
3051 |
|
3052 |
# Be more Bourne compatible |
3053 |
DUALCASE=1; export DUALCASE # for MKS sh |
3054 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
3055 |
emulate sh |
3056 |
NULLCMD=: |
3057 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
3058 |
# is contrary to our usage. Disable this feature. |
3059 |
alias -g '${1+"$@"}'='"$@"' |
3060 |
setopt NO_GLOB_SUBST |
3061 |
else |
3062 |
case `(set -o) 2>/dev/null` in #( |
3063 |
*posix*) : |
3064 |
set -o posix ;; #( |
3065 |
*) : |
3066 |
;; |
3067 |
esac |
3068 |
fi |
3069 |
|
3070 |
|
3071 |
as_nl=' |
3072 |
' |
3073 |
export as_nl |
3074 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
3075 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
3076 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
3077 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
3078 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
3079 |
# but without wasting forks for bash or zsh. |
3080 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
3081 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
3082 |
as_echo='print -r --' |
3083 |
as_echo_n='print -rn --' |
3084 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
3085 |
as_echo='printf %s\n' |
3086 |
as_echo_n='printf %s' |
3087 |
else |
3088 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
3089 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
3090 |
as_echo_n='/usr/ucb/echo -n' |
3091 |
else |
3092 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
3093 |
as_echo_n_body='eval |
3094 |
arg=$1; |
3095 |
case $arg in #( |
3096 |
*"$as_nl"*) |
3097 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
3098 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
3099 |
esac; |
3100 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
3101 |
' |
3102 |
export as_echo_n_body |
3103 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
3104 |
fi |
3105 |
export as_echo_body |
3106 |
as_echo='sh -c $as_echo_body as_echo' |
3107 |
fi |
3108 |
|
3109 |
# The user is always right. |
3110 |
if test "${PATH_SEPARATOR+set}" != set; then |
3111 |
PATH_SEPARATOR=: |
3112 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
3113 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
3114 |
PATH_SEPARATOR=';' |
3115 |
} |
3116 |
fi |
3117 |
|
3118 |
|
3119 |
# IFS |
3120 |
# We need space, tab and new line, in precisely that order. Quoting is |
3121 |
# there to prevent editors from complaining about space-tab. |
3122 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
3123 |
# splitting by setting IFS to empty value.) |
3124 |
IFS=" "" $as_nl" |
3125 |
|
3126 |
# Find who we are. Look in the path if we contain no directory separator. |
3127 |
case $0 in #(( |
3128 |
*[\\/]* ) as_myself=$0 ;; |
3129 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3130 |
for as_dir in $PATH |
3131 |
do |
3132 |
IFS=$as_save_IFS |
3133 |
test -z "$as_dir" && as_dir=. |
3134 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
3135 |
done |
3136 |
IFS=$as_save_IFS |
3137 |
|
3138 |
;; |
3139 |
esac |
3140 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
3141 |
# in which case we are not to be found in the path. |
3142 |
if test "x$as_myself" = x; then |
3143 |
as_myself=$0 |
3144 |
fi |
3145 |
if test ! -f "$as_myself"; then |
3146 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
3147 |
exit 1 |
3148 |
fi |
3149 |
|
3150 |
# Unset variables that we do not need and which cause bugs (e.g. in |
3151 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
3152 |
# suppresses any "Segmentation fault" message there. '((' could |
3153 |
# trigger a bug in pdksh 5.2.14. |
3154 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
3155 |
do eval test x\${$as_var+set} = xset \ |
3156 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
3157 |
done |
3158 |
PS1='$ ' |
3159 |
PS2='> ' |
3160 |
PS4='+ ' |
3161 |
|
3162 |
# NLS nuisances. |
3163 |
LC_ALL=C |
3164 |
export LC_ALL |
3165 |
LANGUAGE=C |
3166 |
export LANGUAGE |
3167 |
|
3168 |
# CDPATH. |
3169 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
3170 |
|
3171 |
|
3172 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
3173 |
# ---------------------------------------- |
3174 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
3175 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
3176 |
# script with STATUS, using 1 if that was 0. |
3177 |
as_fn_error () |
3178 |
{ |
3179 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
3180 |
if test "$4"; then |
3181 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3182 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
3183 |
fi |
3184 |
$as_echo "$as_me: error: $2" >&2 |
3185 |
as_fn_exit $as_status |
3186 |
} # as_fn_error |
3187 |
|
3188 |
|
3189 |
# as_fn_set_status STATUS |
3190 |
# ----------------------- |
3191 |
# Set $? to STATUS, without forking. |
3192 |
as_fn_set_status () |
3193 |
{ |
3194 |
return $1 |
3195 |
} # as_fn_set_status |
3196 |
|
3197 |
# as_fn_exit STATUS |
3198 |
# ----------------- |
3199 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
3200 |
as_fn_exit () |
3201 |
{ |
3202 |
set +e |
3203 |
as_fn_set_status $1 |
3204 |
exit $1 |
3205 |
} # as_fn_exit |
3206 |
|
3207 |
# as_fn_unset VAR |
3208 |
# --------------- |
3209 |
# Portably unset VAR. |
3210 |
as_fn_unset () |
3211 |
{ |
3212 |
{ eval $1=; unset $1;} |
3213 |
} |
3214 |
as_unset=as_fn_unset |
3215 |
# as_fn_append VAR VALUE |
3216 |
# ---------------------- |
3217 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
3218 |
# advantage of any shell optimizations that allow amortized linear growth over |
3219 |
# repeated appends, instead of the typical quadratic growth present in naive |
3220 |
# implementations. |
3221 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
3222 |
eval 'as_fn_append () |
3223 |
{ |
3224 |
eval $1+=\$2 |
3225 |
}' |
3226 |
else |
3227 |
as_fn_append () |
3228 |
{ |
3229 |
eval $1=\$$1\$2 |
3230 |
} |
3231 |
fi # as_fn_append |
3232 |
|
3233 |
# as_fn_arith ARG... |
3234 |
# ------------------ |
3235 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
3236 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
3237 |
# must be portable across $(()) and expr. |
3238 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
3239 |
eval 'as_fn_arith () |
3240 |
{ |
3241 |
as_val=$(( $* )) |
3242 |
}' |
3243 |
else |
3244 |
as_fn_arith () |
3245 |
{ |
3246 |
as_val=`expr "$@" || test $? -eq 1` |
3247 |
} |
3248 |
fi # as_fn_arith |
3249 |
|
3250 |
|
3251 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
3252 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
3253 |
as_expr=expr |
3254 |
else |
3255 |
as_expr=false |
3256 |
fi |
3257 |
|
3258 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
3259 |
as_basename=basename |
3260 |
else |
3261 |
as_basename=false |
3262 |
fi |
3263 |
|
3264 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
3265 |
as_dirname=dirname |
3266 |
else |
3267 |
as_dirname=false |
3268 |
fi |
3269 |
|
3270 |
as_me=`$as_basename -- "$0" || |
3271 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
3272 |
X"$0" : 'X\(//\)$' \| \ |
3273 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
3274 |
$as_echo X/"$0" | |
3275 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
3276 |
s//\1/ |
3277 |
q |
3278 |
} |
3279 |
/^X\/\(\/\/\)$/{ |
3280 |
s//\1/ |
3281 |
q |
3282 |
} |
3283 |
/^X\/\(\/\).*/{ |
3284 |
s//\1/ |
3285 |
q |
3286 |
} |
3287 |
s/.*/./; q'` |
3288 |
|
3289 |
# Avoid depending upon Character Ranges. |
3290 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
3291 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
3292 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
3293 |
as_cr_digits='0123456789' |
3294 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
3295 |
|
3296 |
ECHO_C= ECHO_N= ECHO_T= |
3297 |
case `echo -n x` in #((((( |
3298 |
-n*) |
3299 |
case `echo 'xy\c'` in |
3300 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
3301 |
xy) ECHO_C='\c';; |
3302 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
3303 |
ECHO_T=' ';; |
3304 |
esac;; |
3305 |
*) |
3306 |
ECHO_N='-n';; |
3307 |
esac |
3308 |
|
3309 |
rm -f conf$$ conf$$.exe conf$$.file |
3310 |
if test -d conf$$.dir; then |
3311 |
rm -f conf$$.dir/conf$$.file |
3312 |
else |
3313 |
rm -f conf$$.dir |
3314 |
mkdir conf$$.dir 2>/dev/null |
3315 |
fi |
3316 |
if (echo >conf$$.file) 2>/dev/null; then |
3317 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
3318 |
as_ln_s='ln -s' |
3319 |
# ... but there are two gotchas: |
3320 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
3321 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
3322 |
# In both cases, we have to default to `cp -p'. |
3323 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
3324 |
as_ln_s='cp -p' |
3325 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
3326 |
as_ln_s=ln |
3327 |
else |
3328 |
as_ln_s='cp -p' |
3329 |
fi |
3330 |
else |
3331 |
as_ln_s='cp -p' |
3332 |
fi |
3333 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
3334 |
rmdir conf$$.dir 2>/dev/null |
3335 |
|
3336 |
|
3337 |
# as_fn_mkdir_p |
3338 |
# ------------- |
3339 |
# Create "$as_dir" as a directory, including parents if necessary. |
3340 |
as_fn_mkdir_p () |
3341 |
{ |
3342 |
|
3343 |
case $as_dir in #( |
3344 |
-*) as_dir=./$as_dir;; |
3345 |
esac |
3346 |
test -d "$as_dir" || eval $as_mkdir_p || { |
3347 |
as_dirs= |
3348 |
while :; do |
3349 |
case $as_dir in #( |
3350 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
3351 |
*) as_qdir=$as_dir;; |
3352 |
esac |
3353 |
as_dirs="'$as_qdir' $as_dirs" |
3354 |
as_dir=`$as_dirname -- "$as_dir" || |
3355 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
3356 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
3357 |
X"$as_dir" : 'X\(//\)$' \| \ |
3358 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
3359 |
$as_echo X"$as_dir" | |
3360 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
3361 |
s//\1/ |
3362 |
q |
3363 |
} |
3364 |
/^X\(\/\/\)[^/].*/{ |
3365 |
s//\1/ |
3366 |
q |
3367 |
} |
3368 |
/^X\(\/\/\)$/{ |
3369 |
s//\1/ |
3370 |
q |
3371 |
} |
3372 |
/^X\(\/\).*/{ |
3373 |
s//\1/ |
3374 |
q |
3375 |
} |
3376 |
s/.*/./; q'` |
3377 |
test -d "$as_dir" && break |
3378 |
done |
3379 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
3380 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
3381 |
|
3382 |
|
3383 |
} # as_fn_mkdir_p |
3384 |
if mkdir -p . 2>/dev/null; then |
3385 |
as_mkdir_p='mkdir -p "$as_dir"' |
3386 |
else |
3387 |
test -d ./-p && rmdir ./-p |
3388 |
as_mkdir_p=false |
3389 |
fi |
3390 |
|
3391 |
if test -x / >/dev/null 2>&1; then |
3392 |
as_test_x='test -x' |
3393 |
else |
3394 |
if ls -dL / >/dev/null 2>&1; then |
3395 |
as_ls_L_option=L |
3396 |
else |
3397 |
as_ls_L_option= |
3398 |
fi |
3399 |
as_test_x=' |
3400 |
eval sh -c '\'' |
3401 |
if test -d "$1"; then |
3402 |
test -d "$1/."; |
3403 |
else |
3404 |
case $1 in #( |
3405 |
-*)set "./$1";; |
3406 |
esac; |
3407 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
3408 |
???[sx]*):;;*)false;;esac;fi |
3409 |
'\'' sh |
3410 |
' |
3411 |
fi |
3412 |
as_executable_p=$as_test_x |
3413 |
|
3414 |
# Sed expression to map a string onto a valid CPP name. |
3415 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
3416 |
|
3417 |
# Sed expression to map a string onto a valid variable name. |
3418 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
3419 |
|
3420 |
|
3421 |
exec 6>&1 |
3422 |
## ----------------------------------- ## |
3423 |
## Main body of $CONFIG_STATUS script. ## |
3424 |
## ----------------------------------- ## |
3425 |
_ASEOF |
3426 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
3427 |
|
3428 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3429 |
# Save the log message, to keep $0 and so on meaningful, and to |
3430 |
# report actual input values of CONFIG_FILES etc. instead of their |
3431 |
# values after options handling. |
3432 |
ac_log=" |
3433 |
This file was extended by $as_me, which was |
3434 |
generated by GNU Autoconf 2.67. Invocation command line was |
3435 |
|
3436 |
CONFIG_FILES = $CONFIG_FILES |
3437 |
CONFIG_HEADERS = $CONFIG_HEADERS |
3438 |
CONFIG_LINKS = $CONFIG_LINKS |
3439 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
3440 |
$ $0 $@ |
3441 |
|
3442 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
3443 |
" |
3444 |
|
3445 |
_ACEOF |
3446 |
|
3447 |
|
3448 |
case $ac_config_headers in *" |
3449 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
3450 |
esac |
3451 |
|
3452 |
|
3453 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3454 |
# Files that config.status was made for. |
3455 |
config_headers="$ac_config_headers" |
3456 |
|
3457 |
_ACEOF |
3458 |
|
3459 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3460 |
ac_cs_usage="\ |
3461 |
\`$as_me' instantiates files and other configuration actions |
3462 |
from templates according to the current configuration. Unless the files |
3463 |
and actions are specified as TAGs, all are instantiated by default. |
3464 |
|
3465 |
Usage: $0 [OPTION]... [TAG]... |
3466 |
|
3467 |
-h, --help print this help, then exit |
3468 |
-V, --version print version number and configuration settings, then exit |
3469 |
--config print configuration, then exit |
3470 |
-q, --quiet, --silent |
3471 |
do not print progress messages |
3472 |
-d, --debug don't remove temporary files |
3473 |
--recheck update $as_me by reconfiguring in the same conditions |
3474 |
--header=FILE[:TEMPLATE] |
3475 |
instantiate the configuration header FILE |
3476 |
|
3477 |
Configuration headers: |
3478 |
$config_headers |
3479 |
|
3480 |
Report bugs to the package provider." |
3481 |
|
3482 |
_ACEOF |
3483 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3484 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
3485 |
ac_cs_version="\\ |
3486 |
config.status |
3487 |
configured by $0, generated by GNU Autoconf 2.67, |
3488 |
with options \\"\$ac_cs_config\\" |
3489 |
|
3490 |
Copyright (C) 2010 Free Software Foundation, Inc. |
3491 |
This config.status script is free software; the Free Software Foundation |
3492 |
gives unlimited permission to copy, distribute and modify it." |
3493 |
|
3494 |
ac_pwd='$ac_pwd' |
3495 |
srcdir='$srcdir' |
3496 |
test -n "\$AWK" || AWK=awk |
3497 |
_ACEOF |
3498 |
|
3499 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3500 |
# The default lists apply if the user does not specify any file. |
3501 |
ac_need_defaults=: |
3502 |
while test $# != 0 |
3503 |
do |
3504 |
case $1 in |
3505 |
--*=?*) |
3506 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
3507 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
3508 |
ac_shift=: |
3509 |
;; |
3510 |
--*=) |
3511 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
3512 |
ac_optarg= |
3513 |
ac_shift=: |
3514 |
;; |
3515 |
*) |
3516 |
ac_option=$1 |
3517 |
ac_optarg=$2 |
3518 |
ac_shift=shift |
3519 |
;; |
3520 |
esac |
3521 |
|
3522 |
case $ac_option in |
3523 |
# Handling of the options. |
3524 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
3525 |
ac_cs_recheck=: ;; |
3526 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
3527 |
$as_echo "$ac_cs_version"; exit ;; |
3528 |
--config | --confi | --conf | --con | --co | --c ) |
3529 |
$as_echo "$ac_cs_config"; exit ;; |
3530 |
--debug | --debu | --deb | --de | --d | -d ) |
3531 |
debug=: ;; |
3532 |
--header | --heade | --head | --hea ) |
3533 |
$ac_shift |
3534 |
case $ac_optarg in |
3535 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
3536 |
esac |
3537 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
3538 |
ac_need_defaults=false;; |
3539 |
--he | --h) |
3540 |
# Conflict between --help and --header |
3541 |
as_fn_error $? "ambiguous option: \`$1' |
3542 |
Try \`$0 --help' for more information.";; |
3543 |
--help | --hel | -h ) |
3544 |
$as_echo "$ac_cs_usage"; exit ;; |
3545 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
3546 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
3547 |
ac_cs_silent=: ;; |
3548 |
|
3549 |
# This is an error. |
3550 |
-*) as_fn_error $? "unrecognized option: \`$1' |
3551 |
Try \`$0 --help' for more information." ;; |
3552 |
|
3553 |
*) as_fn_append ac_config_targets " $1" |
3554 |
ac_need_defaults=false ;; |
3555 |
|
3556 |
esac |
3557 |
shift |
3558 |
done |
3559 |
|
3560 |
ac_configure_extra_args= |
3561 |
|
3562 |
if $ac_cs_silent; then |
3563 |
exec 6>/dev/null |
3564 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
3565 |
fi |
3566 |
|
3567 |
_ACEOF |
3568 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3569 |
if \$ac_cs_recheck; then |
3570 |
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
3571 |
shift |
3572 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
3573 |
CONFIG_SHELL='$SHELL' |
3574 |
export CONFIG_SHELL |
3575 |
exec "\$@" |
3576 |
fi |
3577 |
|
3578 |
_ACEOF |
3579 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3580 |
exec 5>>config.log |
3581 |
{ |
3582 |
echo |
3583 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
3584 |
## Running $as_me. ## |
3585 |
_ASBOX |
3586 |
$as_echo "$ac_log" |
3587 |
} >&5 |
3588 |
|
3589 |
_ACEOF |
3590 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3591 |
_ACEOF |
3592 |
|
3593 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3594 |
|
3595 |
# Handling of arguments. |
3596 |
for ac_config_target in $ac_config_targets |
3597 |
do |
3598 |
case $ac_config_target in |
3599 |
"libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
3600 |
|
3601 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; |
3602 |
esac |
3603 |
done |
3604 |
|
3605 |
|
3606 |
# If the user did not use the arguments to specify the items to instantiate, |
3607 |
# then the envvar interface is used. Set only those that are not. |
3608 |
# We use the long form for the default assignment because of an extremely |
3609 |
# bizarre bug on SunOS 4.1.3. |
3610 |
if $ac_need_defaults; then |
3611 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
3612 |
fi |
3613 |
|
3614 |
# Have a temporary directory for convenience. Make it in the build tree |
3615 |
# simply because there is no reason against having it here, and in addition, |
3616 |
# creating and moving files from /tmp can sometimes cause problems. |
3617 |
# Hook for its removal unless debugging. |
3618 |
# Note that there is a small window in which the directory will not be cleaned: |
3619 |
# after its creation but before its name has been assigned to `$tmp'. |
3620 |
$debug || |
3621 |
{ |
3622 |
tmp= |
3623 |
trap 'exit_status=$? |
3624 |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
3625 |
' 0 |
3626 |
trap 'as_fn_exit 1' 1 2 13 15 |
3627 |
} |
3628 |
# Create a (secure) tmp directory for tmp files. |
3629 |
|
3630 |
{ |
3631 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
3632 |
test -n "$tmp" && test -d "$tmp" |
3633 |
} || |
3634 |
{ |
3635 |
tmp=./conf$$-$RANDOM |
3636 |
(umask 077 && mkdir "$tmp") |
3637 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
3638 |
|
3639 |
# Set up the scripts for CONFIG_HEADERS section. |
3640 |
# No need to generate them if there are no CONFIG_HEADERS. |
3641 |
# This happens for instance with `./config.status Makefile'. |
3642 |
if test -n "$CONFIG_HEADERS"; then |
3643 |
cat >"$tmp/defines.awk" <<\_ACAWK || |
3644 |
BEGIN { |
3645 |
_ACEOF |
3646 |
|
3647 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
3648 |
# here-document in config.status, that substitutes the proper values into |
3649 |
# config.h.in to produce config.h. |
3650 |
|
3651 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
3652 |
# handling of long lines. |
3653 |
ac_delim='%!_!# ' |
3654 |
for ac_last_try in false false :; do |
3655 |
ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
3656 |
if test -z "$ac_t"; then |
3657 |
break |
3658 |
elif $ac_last_try; then |
3659 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
3660 |
else |
3661 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
3662 |
fi |
3663 |
done |
3664 |
|
3665 |
# For the awk script, D is an array of macro values keyed by name, |
3666 |
# likewise P contains macro parameters if any. Preserve backslash |
3667 |
# newline sequences. |
3668 |
|
3669 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
3670 |
sed -n ' |
3671 |
s/.\{148\}/&'"$ac_delim"'/g |
3672 |
t rset |
3673 |
:rset |
3674 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
3675 |
t def |
3676 |
d |
3677 |
:def |
3678 |
s/\\$// |
3679 |
t bsnl |
3680 |
s/["\\]/\\&/g |
3681 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
3682 |
D["\1"]=" \3"/p |
3683 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
3684 |
d |
3685 |
:bsnl |
3686 |
s/["\\]/\\&/g |
3687 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
3688 |
D["\1"]=" \3\\\\\\n"\\/p |
3689 |
t cont |
3690 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
3691 |
t cont |
3692 |
d |
3693 |
:cont |
3694 |
n |
3695 |
s/.\{148\}/&'"$ac_delim"'/g |
3696 |
t clear |
3697 |
:clear |
3698 |
s/\\$// |
3699 |
t bsnlc |
3700 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
3701 |
d |
3702 |
:bsnlc |
3703 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
3704 |
b cont |
3705 |
' <confdefs.h | sed ' |
3706 |
s/'"$ac_delim"'/"\\\ |
3707 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
3708 |
|
3709 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3710 |
for (key in D) D_is_set[key] = 1 |
3711 |
FS = "" |
3712 |
} |
3713 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
3714 |
line = \$ 0 |
3715 |
split(line, arg, " ") |
3716 |
if (arg[1] == "#") { |
3717 |
defundef = arg[2] |
3718 |
mac1 = arg[3] |
3719 |
} else { |
3720 |
defundef = substr(arg[1], 2) |
3721 |
mac1 = arg[2] |
3722 |
} |
3723 |
split(mac1, mac2, "(") #) |
3724 |
macro = mac2[1] |
3725 |
prefix = substr(line, 1, index(line, defundef) - 1) |
3726 |
if (D_is_set[macro]) { |
3727 |
# Preserve the white space surrounding the "#". |
3728 |
print prefix "define", macro P[macro] D[macro] |
3729 |
next |
3730 |
} else { |
3731 |
# Replace #undef with comments. This is necessary, for example, |
3732 |
# in the case of _POSIX_SOURCE, which is predefined and required |
3733 |
# on some systems where configure will not decide to define it. |
3734 |
if (defundef == "undef") { |
3735 |
print "/*", prefix defundef, macro, "*/" |
3736 |
next |
3737 |
} |
3738 |
} |
3739 |
} |
3740 |
{ print } |
3741 |
_ACAWK |
3742 |
_ACEOF |
3743 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3744 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
3745 |
fi # test -n "$CONFIG_HEADERS" |
3746 |
|
3747 |
|
3748 |
eval set X " :H $CONFIG_HEADERS " |
3749 |
shift |
3750 |
for ac_tag |
3751 |
do |
3752 |
case $ac_tag in |
3753 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
3754 |
esac |
3755 |
case $ac_mode$ac_tag in |
3756 |
:[FHL]*:*);; |
3757 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; |
3758 |
:[FH]-) ac_tag=-:-;; |
3759 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
3760 |
esac |
3761 |
ac_save_IFS=$IFS |
3762 |
IFS=: |
3763 |
set x $ac_tag |
3764 |
IFS=$ac_save_IFS |
3765 |
shift |
3766 |
ac_file=$1 |
3767 |
shift |
3768 |
|
3769 |
case $ac_mode in |
3770 |
:L) ac_source=$1;; |
3771 |
:[FH]) |
3772 |
ac_file_inputs= |
3773 |
for ac_f |
3774 |
do |
3775 |
case $ac_f in |
3776 |
-) ac_f="$tmp/stdin";; |
3777 |
*) # Look for the file first in the build tree, then in the source tree |
3778 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
3779 |
# because $ac_f cannot contain `:'. |
3780 |
test -f "$ac_f" || |
3781 |
case $ac_f in |
3782 |
[\\/$]*) false;; |
3783 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
3784 |
esac || |
3785 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; |
3786 |
esac |
3787 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
3788 |
as_fn_append ac_file_inputs " '$ac_f'" |
3789 |
done |
3790 |
|
3791 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
3792 |
# use $as_me), people would be surprised to read: |
3793 |
# /* config.h. Generated by config.status. */ |
3794 |
configure_input='Generated from '` |
3795 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
3796 |
`' by configure.' |
3797 |
if test x"$ac_file" != x-; then |
3798 |
configure_input="$ac_file. $configure_input" |
3799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
3800 |
$as_echo "$as_me: creating $ac_file" >&6;} |
3801 |
fi |
3802 |
# Neutralize special characters interpreted by sed in replacement strings. |
3803 |
case $configure_input in #( |
3804 |
*\&* | *\|* | *\\* ) |
3805 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
3806 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
3807 |
*) ac_sed_conf_input=$configure_input;; |
3808 |
esac |
3809 |
|
3810 |
case $ac_tag in |
3811 |
*:-:* | *:-) cat >"$tmp/stdin" \ |
3812 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
3813 |
esac |
3814 |
;; |
3815 |
esac |
3816 |
|
3817 |
ac_dir=`$as_dirname -- "$ac_file" || |
3818 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
3819 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
3820 |
X"$ac_file" : 'X\(//\)$' \| \ |
3821 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
3822 |
$as_echo X"$ac_file" | |
3823 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
3824 |
s//\1/ |
3825 |
q |
3826 |
} |
3827 |
/^X\(\/\/\)[^/].*/{ |
3828 |
s//\1/ |
3829 |
q |
3830 |
} |
3831 |
/^X\(\/\/\)$/{ |
3832 |
s//\1/ |
3833 |
q |
3834 |
} |
3835 |
/^X\(\/\).*/{ |
3836 |
s//\1/ |
3837 |
q |
3838 |
} |
3839 |
s/.*/./; q'` |
3840 |
as_dir="$ac_dir"; as_fn_mkdir_p |
3841 |
ac_builddir=. |
3842 |
|
3843 |
case "$ac_dir" in |
3844 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
3845 |
*) |
3846 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
3847 |
# A ".." for each directory in $ac_dir_suffix. |
3848 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
3849 |
case $ac_top_builddir_sub in |
3850 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
3851 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
3852 |
esac ;; |
3853 |
esac |
3854 |
ac_abs_top_builddir=$ac_pwd |
3855 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
3856 |
# for backward compatibility: |
3857 |
ac_top_builddir=$ac_top_build_prefix |
3858 |
|
3859 |
case $srcdir in |
3860 |
.) # We are building in place. |
3861 |
ac_srcdir=. |
3862 |
ac_top_srcdir=$ac_top_builddir_sub |
3863 |
ac_abs_top_srcdir=$ac_pwd ;; |
3864 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
3865 |
ac_srcdir=$srcdir$ac_dir_suffix; |
3866 |
ac_top_srcdir=$srcdir |
3867 |
ac_abs_top_srcdir=$srcdir ;; |
3868 |
*) # Relative name. |
3869 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
3870 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
3871 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
3872 |
esac |
3873 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
3874 |
|
3875 |
|
3876 |
case $ac_mode in |
3877 |
|
3878 |
:H) |
3879 |
# |
3880 |
# CONFIG_HEADER |
3881 |
# |
3882 |
if test x"$ac_file" != x-; then |
3883 |
{ |
3884 |
$as_echo "/* $configure_input */" \ |
3885 |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
3886 |
} >"$tmp/config.h" \ |
3887 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
3888 |
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
3889 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
3890 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
3891 |
else |
3892 |
rm -f "$ac_file" |
3893 |
mv "$tmp/config.h" "$ac_file" \ |
3894 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
3895 |
fi |
3896 |
else |
3897 |
$as_echo "/* $configure_input */" \ |
3898 |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
3899 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
3900 |
fi |
3901 |
;; |
3902 |
|
3903 |
|
3904 |
esac |
3905 |
|
3906 |
done # for ac_tag |
3907 |
|
3908 |
|
3909 |
as_fn_exit 0 |
3910 |
_ACEOF |
3911 |
ac_clean_files=$ac_clean_files_save |
3912 |
|
3913 |
test $ac_write_fail = 0 || |
3914 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
3915 |
|
3916 |
|
3917 |
# configure is writing to config.log, and then calls config.status. |
3918 |
# config.status does its own redirection, appending to config.log. |
3919 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
3920 |
# by configure, so config.status won't be able to write to it; its |
3921 |
# output is simply discarded. So we exec the FD to /dev/null, |
3922 |
# effectively closing config.log, so it can be properly (re)opened and |
3923 |
# appended to by config.status. When coming back to configure, we |
3924 |
# need to make the FD available again. |
3925 |
if test "$no_create" != yes; then |
3926 |
ac_cs_success=: |
3927 |
ac_config_status_args= |
3928 |
test "$silent" = yes && |
3929 |
ac_config_status_args="$ac_config_status_args --quiet" |
3930 |
exec 5>/dev/null |
3931 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3932 |
exec 5>>config.log |
3933 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
3934 |
# would make configure fail if this is the last instruction. |
3935 |
$ac_cs_success || as_fn_exit 1 |
3936 |
fi |
3937 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
3938 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
3939 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
3940 |
fi |
3941 |
|