ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
Revision: 1.28
Committed: Sun Mar 10 12:11:46 2019 UTC (5 years, 2 months ago) by root
Branch: MAIN
CVS Tags: rel-4_71
Changes since 1.27: +3 -0 lines
Log Message:
4.71

File Contents

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