ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
Revision: 1.31
Committed: Wed Apr 3 03:03:53 2019 UTC (5 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rel-4_72
Changes since 1.30: +32 -2 lines
Log Message:
4.72

File Contents

# User Rev Content
1 root 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 root 1.17 # Generated by GNU Autoconf 2.69.
4 root 1.8 #
5 root 1.1 #
6 root 1.17 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 root 1.7 #
8 root 1.8 #
9 root 1.1 # This configure script is free software; the Free Software Foundation
10     # gives unlimited permission to copy, distribute and modify it.
11 root 1.7 ## -------------------- ##
12     ## M4sh Initialization. ##
13     ## -------------------- ##
14 root 1.1
15     # Be more Bourne compatible
16     DUALCASE=1; export DUALCASE # for MKS sh
17 root 1.7 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 root 1.1 emulate sh
19     NULLCMD=:
20 root 1.7 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 root 1.1 # is contrary to our usage. Disable this feature.
22     alias -g '${1+"$@"}'='"$@"'
23     setopt NO_GLOB_SUBST
24     else
25 root 1.7 case `(set -o) 2>/dev/null` in #(
26     *posix*) :
27     set -o posix ;; #(
28     *) :
29     ;;
30 root 1.1 esac
31     fi
32    
33    
34 root 1.7 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 root 1.1 else
55 root 1.7 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 root 1.1 fi
68 root 1.7 export as_echo_body
69     as_echo='sh -c $as_echo_body as_echo'
70 root 1.1 fi
71    
72 root 1.7 # 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 root 1.1 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 root 1.17 as_myself=
91 root 1.7 case $0 in #((
92 root 1.1 *[\\/]* ) 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 root 1.7 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99     done
100 root 1.1 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 root 1.7 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111     exit 1
112 root 1.1 fi
113    
114 root 1.7 # 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 root 1.1 done
122     PS1='$ '
123     PS2='> '
124     PS4='+ '
125    
126     # NLS nuisances.
127 root 1.7 LC_ALL=C
128     export LC_ALL
129     LANGUAGE=C
130     export LANGUAGE
131 root 1.1
132     # CDPATH.
133 root 1.7 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 root 1.1
135 root 1.17 # 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 root 1.1 if test "x$CONFIG_SHELL" = x; then
161 root 1.7 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 root 1.1 else
169 root 1.7 case \`(set -o) 2>/dev/null\` in #(
170     *posix*) :
171     set -o posix ;; #(
172     *) :
173     ;;
174     esac
175 root 1.1 fi
176 root 1.7 "
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 root 1.1
183     exitcode=0
184 root 1.7 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 root 1.1
190     else
191 root 1.7 exitcode=1; echo positional parameters were not saved.
192     fi
193 root 1.17 test x\$exitcode = x0 || exit 1
194     test -x / || exit 1"
195 root 1.7 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 root 1.10 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 root 1.7 if (eval "$as_required") 2>/dev/null; then :
201     as_have_required=yes
202 root 1.1 else
203 root 1.7 as_have_required=no
204 root 1.1 fi
205 root 1.7 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206 root 1.1
207     else
208 root 1.7 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209     as_found=false
210 root 1.1 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 root 1.7 as_found=:
215     case $as_dir in #(
216 root 1.1 /*)
217     for as_base in sh bash ksh sh5; do
218 root 1.7 # 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 root 1.1 done;;
228     esac
229 root 1.7 as_found=false
230 root 1.1 done
231 root 1.7 $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 root 1.1 IFS=$as_save_IFS
236    
237    
238 root 1.7 if test "x$CONFIG_SHELL" != x; then :
239 root 1.17 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 root 1.7 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 root 1.1 fi
275     fi
276 root 1.7 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 root 1.1
282 root 1.7 ## --------------------- ##
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 root 1.1
318 root 1.7 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 root 1.8 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356 root 1.1
357    
358 root 1.7 } # as_fn_mkdir_p
359 root 1.17
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 root 1.7 # 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 root 1.1 else
379 root 1.7 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 root 1.1 else
396 root 1.7 as_fn_arith ()
397     {
398     as_val=`expr "$@" || test $? -eq 1`
399     }
400     fi # as_fn_arith
401    
402    
403 root 1.8 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404     # ----------------------------------------
405 root 1.7 # 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 root 1.8 # script with STATUS, using 1 if that was 0.
408 root 1.7 as_fn_error ()
409     {
410 root 1.8 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 root 1.7 fi
415 root 1.8 $as_echo "$as_me: error: $2" >&2
416 root 1.7 as_fn_exit $as_status
417     } # as_fn_error
418 root 1.1
419 root 1.7 if expr a : '\(a\)' >/dev/null 2>&1 &&
420     test "X`expr 00001 : '.*\(...\)'`" = X001; then
421     as_expr=expr
422 root 1.1 else
423 root 1.7 as_expr=false
424 root 1.1 fi
425    
426 root 1.7 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427     as_basename=basename
428 root 1.1 else
429 root 1.7 as_basename=false
430 root 1.1 fi
431    
432 root 1.7 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433     as_dirname=dirname
434 root 1.1 else
435 root 1.7 as_dirname=false
436 root 1.1 fi
437    
438 root 1.7 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 root 1.1
457 root 1.7 # 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 root 1.1
464    
465 root 1.7 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 root 1.1 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 root 1.7 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487 root 1.1
488 root 1.17 # 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 root 1.1 # 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 root 1.7 case `echo -n x` in #(((((
502 root 1.1 -n*)
503 root 1.7 case `echo 'xy\c'` in
504 root 1.1 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 root 1.7 xy) ECHO_C='\c';;
506     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507     ECHO_T=' ';;
508 root 1.1 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 root 1.7 mkdir conf$$.dir 2>/dev/null
519 root 1.1 fi
520 root 1.7 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 root 1.17 # In both cases, we have to default to `cp -pR'.
527 root 1.7 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 root 1.17 as_ln_s='cp -pR'
529 root 1.7 elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531     else
532 root 1.17 as_ln_s='cp -pR'
533 root 1.7 fi
534 root 1.1 else
535 root 1.17 as_ln_s='cp -pR'
536 root 1.1 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 root 1.7 as_mkdir_p='mkdir -p "$as_dir"'
542 root 1.1 else
543     test -d ./-p && rmdir ./-p
544     as_mkdir_p=false
545     fi
546    
547 root 1.17 as_test_x='test -x'
548     as_executable_p=as_fn_executable_p
549 root 1.1
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 root 1.8 test -n "$DJDIR" || exec 7<&0 </dev/null
558     exec 6>&1
559 root 1.1
560     # Name of the host.
561 root 1.8 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 root 1.1 # 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 root 1.7 PACKAGE_VERSION=
581     PACKAGE_STRING=
582     PACKAGE_BUGREPORT=
583     PACKAGE_URL=
584    
585     ac_unique_file="libeio/eio.h"
586 root 1.10 # 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 root 1.7 ac_subst_vars='LTLIBOBJS
623     LIBOBJS
624 root 1.10 EGREP
625     GREP
626     CPP
627 root 1.7 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 root 1.18 runstatedir
654 root 1.7 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 root 1.1 PATH_SEPARATOR
672 root 1.7 SHELL'
673 root 1.1 ac_subst_files=''
674 root 1.7 ac_user_opts='
675     enable_option_checking
676     '
677 root 1.1 ac_precious_vars='build_alias
678     host_alias
679     target_alias
680     CC
681     CFLAGS
682     LDFLAGS
683     LIBS
684 root 1.10 CPPFLAGS
685     CPP'
686 root 1.1
687    
688     # Initialize some variables set by options.
689     ac_init_help=
690     ac_init_version=false
691 root 1.7 ac_unrecognized_opts=
692     ac_unrecognized_sep=
693 root 1.1 # 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 root 1.18 runstatedir='${localstatedir}/run'
725 root 1.1 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 root 1.8 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
750     *=) ac_optarg= ;;
751     *) ac_optarg=yes ;;
752 root 1.1 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 root 1.7 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
794 root 1.1 # Reject names that are not valid shell variable names.
795 root 1.7 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
796 root 1.8 as_fn_error $? "invalid feature name: $ac_useropt"
797 root 1.7 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 root 1.1
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 root 1.7 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
820 root 1.1 # Reject names that are not valid shell variable names.
821 root 1.7 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
822 root 1.8 as_fn_error $? "invalid feature name: $ac_useropt"
823 root 1.7 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 root 1.1
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 root 1.18 -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 root 1.1 -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 root 1.7 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033 root 1.1 # Reject names that are not valid shell variable names.
1034 root 1.7 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 root 1.8 as_fn_error $? "invalid package name: $ac_useropt"
1036 root 1.7 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 root 1.1
1047     -without-* | --without-*)
1048 root 1.7 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049 root 1.1 # Reject names that are not valid shell variable names.
1050 root 1.7 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 root 1.8 as_fn_error $? "invalid package name: $ac_useropt"
1052 root 1.7 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 root 1.1
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 root 1.8 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1082     Try \`$0 --help' for more information"
1083 root 1.1 ;;
1084    
1085     *=*)
1086     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087     # Reject names that are not valid shell variable names.
1088 root 1.7 case $ac_envvar in #(
1089     '' | [0-9]* | *[!_$as_cr_alnum]* )
1090 root 1.8 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1091 root 1.7 esac
1092 root 1.1 eval $ac_envvar=\$ac_optarg
1093     export $ac_envvar ;;
1094    
1095     *)
1096     # FIXME: should be removed in autoconf 3.0.
1097 root 1.7 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 root 1.1 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 root 1.7 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 root 1.17 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1101 root 1.1 ;;
1102    
1103     esac
1104     done
1105    
1106     if test -n "$ac_prev"; then
1107     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108 root 1.8 as_fn_error $? "missing argument to $ac_option"
1109 root 1.7 fi
1110    
1111     if test -n "$ac_unrecognized_opts"; then
1112     case $enable_option_checking in
1113     no) ;;
1114 root 1.8 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1115 root 1.7 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116     esac
1117 root 1.1 fi
1118    
1119 root 1.7 # Check all directory arguments for consistency.
1120 root 1.1 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 root 1.18 libdir localedir mandir runstatedir
1124 root 1.1 do
1125     eval ac_val=\$$ac_var
1126 root 1.7 # 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 root 1.1 case $ac_val in
1134     [\\/$]* | ?:[\\/]* ) continue;;
1135     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136     esac
1137 root 1.8 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1138 root 1.1 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 root 1.8 as_fn_error $? "working directory cannot be determined"
1166 root 1.1 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 root 1.8 as_fn_error $? "pwd does not report name of working directory"
1168 root 1.1
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 root 1.7 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 root 1.1 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 root 1.8 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1207 root 1.1 fi
1208     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209     ac_abs_confdir=`(
1210 root 1.8 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1211 root 1.1 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 root 1.8 -q, --quiet, --silent do not print \`checking ...' messages
1251 root 1.1 --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 root 1.7 [$ac_default_prefix]
1259 root 1.1 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 root 1.7 [PREFIX]
1261 root 1.1
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 root 1.7 --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 root 1.18 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1277 root 1.7 --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 root 1.1 _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 root 1.8 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1307 root 1.1 you have headers in a nonstandard directory <include dir>
1308 root 1.10 CPP C preprocessor
1309 root 1.1
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 root 1.7 Report bugs to the package provider.
1314 root 1.1 _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 root 1.7 test -d "$ac_dir" ||
1322     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1323     continue
1324 root 1.1 ac_builddir=.
1325    
1326     case "$ac_dir" in
1327     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1328     *)
1329 root 1.7 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1330 root 1.1 # A ".." for each directory in $ac_dir_suffix.
1331 root 1.7 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1332 root 1.1 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 root 1.7 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1368 root 1.1 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 root 1.17 generated by GNU Autoconf 2.69
1378 root 1.1
1379 root 1.17 Copyright (C) 2012 Free Software Foundation, Inc.
1380 root 1.1 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 root 1.7
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 root 1.17 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1424 root 1.8 as_fn_set_status $ac_retval
1425 root 1.7
1426     } # ac_fn_c_try_compile
1427    
1428 root 1.10 # 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 root 1.17 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1461 root 1.10 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 root 1.17 if eval \${$3+:} false; then :
1474 root 1.10 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1475     $as_echo_n "checking for $2... " >&6; }
1476 root 1.17 if eval \${$3+:} false; then :
1477 root 1.10 $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 root 1.17 if eval \${$3+:} false; then :
1540 root 1.10 $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 root 1.17 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 root 1.10
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 root 1.17 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 root 1.10 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 root 1.17 if eval \${$3+:} false; then :
1604 root 1.10 $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 root 1.17 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 root 1.10
1623     } # ac_fn_c_check_header_compile
1624    
1625 root 1.7 # 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 root 1.17 test -x conftest$ac_exeext
1653 root 1.7 }; 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 root 1.17 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 root 1.8 as_fn_set_status $ac_retval
1668 root 1.7
1669     } # ac_fn_c_try_link
1670 root 1.1 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 root 1.17 generated by GNU Autoconf 2.69. Invocation command line was
1676 root 1.1
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 root 1.7 $as_echo "PATH: $as_dir"
1712     done
1713 root 1.1 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 root 1.7 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 root 1.1 esac
1748     case $ac_pass in
1749 root 1.7 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1750 root 1.1 2)
1751 root 1.7 as_fn_append ac_configure_args1 " '$ac_arg'"
1752 root 1.1 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 root 1.7 as_fn_append ac_configure_args " '$ac_arg'"
1768 root 1.1 ;;
1769     esac
1770     done
1771     done
1772 root 1.7 { ac_configure_args0=; unset ac_configure_args0;}
1773     { ac_configure_args1=; unset ac_configure_args1;}
1774 root 1.1
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 root 1.8 $as_echo "## ---------------- ##
1786 root 1.1 ## Cache variables. ##
1787 root 1.8 ## ---------------- ##"
1788 root 1.1 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 root 1.7 *_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 root 1.1 esac
1799     case $ac_var in #(
1800     _ | IFS | as_nl) ;; #(
1801 root 1.7 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1802     *) { eval $ac_var=; unset $ac_var;} ;;
1803 root 1.1 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 root 1.8 $as_echo "## ----------------- ##
1822 root 1.1 ## Output variables. ##
1823 root 1.8 ## ----------------- ##"
1824 root 1.1 echo
1825     for ac_var in $ac_subst_vars
1826     do
1827     eval ac_val=\$$ac_var
1828     case $ac_val in
1829 root 1.7 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 root 1.1 esac
1831 root 1.7 $as_echo "$ac_var='\''$ac_val'\''"
1832 root 1.1 done | sort
1833     echo
1834    
1835     if test -n "$ac_subst_files"; then
1836 root 1.8 $as_echo "## ------------------- ##
1837 root 1.1 ## File substitutions. ##
1838 root 1.8 ## ------------------- ##"
1839 root 1.1 echo
1840     for ac_var in $ac_subst_files
1841     do
1842     eval ac_val=\$$ac_var
1843     case $ac_val in
1844 root 1.7 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 root 1.1 esac
1846 root 1.7 $as_echo "$ac_var='\''$ac_val'\''"
1847 root 1.1 done | sort
1848     echo
1849     fi
1850    
1851     if test -s confdefs.h; then
1852 root 1.8 $as_echo "## ----------- ##
1853 root 1.1 ## confdefs.h. ##
1854 root 1.8 ## ----------- ##"
1855 root 1.1 echo
1856     cat confdefs.h
1857     echo
1858     fi
1859     test "$ac_signal" != 0 &&
1860 root 1.7 $as_echo "$as_me: caught signal $ac_signal"
1861     $as_echo "$as_me: exit $exit_status"
1862 root 1.1 } >&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 root 1.7 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1869 root 1.1 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 root 1.7 $as_echo "/* confdefs.h */" > confdefs.h
1876    
1877 root 1.1 # 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 root 1.7 cat >>confdefs.h <<_ACEOF
1896     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897     _ACEOF
1898 root 1.1
1899     cat >>confdefs.h <<_ACEOF
1900 root 1.7 #define PACKAGE_URL "$PACKAGE_URL"
1901 root 1.1 _ACEOF
1902    
1903    
1904     # Let the site file select an alternate cache file if it wants to.
1905 root 1.7 # Prefer an explicitly selected file to automatically selected ones.
1906     ac_site_file1=NONE
1907     ac_site_file2=NONE
1908 root 1.1 if test -n "$CONFIG_SITE"; then
1909 root 1.8 # 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 root 1.1 elif test "x$prefix" != xNONE; then
1916 root 1.7 ac_site_file1=$prefix/share/config.site
1917     ac_site_file2=$prefix/etc/config.site
1918 root 1.1 else
1919 root 1.7 ac_site_file1=$ac_default_prefix/share/config.site
1920     ac_site_file2=$ac_default_prefix/etc/config.site
1921 root 1.1 fi
1922 root 1.7 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1923 root 1.1 do
1924 root 1.7 test "x$ac_site_file" = xNONE && continue
1925 root 1.8 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1926 root 1.7 { $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 root 1.1 sed 's/^/| /' "$ac_site_file" >&5
1929 root 1.8 . "$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 root 1.17 See \`config.log' for more details" "$LINENO" 5; }
1934 root 1.1 fi
1935     done
1936    
1937     if test -r "$cache_file"; then
1938 root 1.8 # 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1942     $as_echo "$as_me: loading cache $cache_file" >&6;}
1943 root 1.1 case $cache_file in
1944     [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945     *) . "./$cache_file";;
1946     esac
1947     fi
1948     else
1949 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1950     $as_echo "$as_me: creating cache $cache_file" >&6;}
1951 root 1.1 >$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 root 1.7 { $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 root 1.1 ac_cache_corrupted=: ;;
1967     ,set)
1968 root 1.7 { $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 root 1.1 ac_cache_corrupted=: ;;
1971     ,);;
1972     *)
1973     if test "x$ac_old_val" != "x$ac_new_val"; then
1974 root 1.7 # 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 root 1.1 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 root 1.7 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 root 1.1 *) 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 root 1.7 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2001 root 1.1 esac
2002     fi
2003     done
2004     if $ac_cache_corrupted; then
2005 root 1.7 { $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 root 1.8 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2010 root 1.7 fi
2011     ## -------------------- ##
2012     ## Main body of script. ##
2013     ## -------------------- ##
2014 root 1.1
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 root 1.23 ac_config_headers="$ac_config_headers config.h"
2024 root 1.1
2025    
2026 root 1.15
2027 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2036     $as_echo_n "checking for $ac_word... " >&6; }
2037 root 1.17 if ${ac_cv_prog_CC+:} false; then :
2038 root 1.7 $as_echo_n "(cached) " >&6
2039 root 1.1 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 root 1.7 for ac_exec_ext in '' $ac_executable_extensions; do
2049 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 root 1.1 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 root 1.1 break 2
2053     fi
2054     done
2055 root 1.7 done
2056 root 1.1 IFS=$as_save_IFS
2057    
2058     fi
2059     fi
2060     CC=$ac_cv_prog_CC
2061     if test -n "$CC"; then
2062 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2063     $as_echo "$CC" >&6; }
2064 root 1.1 else
2065 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2066     $as_echo "no" >&6; }
2067 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2076     $as_echo_n "checking for $ac_word... " >&6; }
2077 root 1.17 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2078 root 1.7 $as_echo_n "(cached) " >&6
2079 root 1.1 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 root 1.7 for ac_exec_ext in '' $ac_executable_extensions; do
2089 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 root 1.1 ac_cv_prog_ac_ct_CC="gcc"
2091 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 root 1.1 break 2
2093     fi
2094     done
2095 root 1.7 done
2096 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2103     $as_echo "$ac_ct_CC" >&6; }
2104 root 1.1 else
2105 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2106     $as_echo "no" >&6; }
2107 root 1.1 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 root 1.7 { $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 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2129     $as_echo_n "checking for $ac_word... " >&6; }
2130 root 1.17 if ${ac_cv_prog_CC+:} false; then :
2131 root 1.7 $as_echo_n "(cached) " >&6
2132 root 1.1 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 root 1.7 for ac_exec_ext in '' $ac_executable_extensions; do
2142 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 root 1.1 ac_cv_prog_CC="${ac_tool_prefix}cc"
2144 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 root 1.1 break 2
2146     fi
2147     done
2148 root 1.7 done
2149 root 1.1 IFS=$as_save_IFS
2150    
2151     fi
2152     fi
2153     CC=$ac_cv_prog_CC
2154     if test -n "$CC"; then
2155 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2156     $as_echo "$CC" >&6; }
2157 root 1.1 else
2158 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2159     $as_echo "no" >&6; }
2160 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2169     $as_echo_n "checking for $ac_word... " >&6; }
2170 root 1.17 if ${ac_cv_prog_CC+:} false; then :
2171 root 1.7 $as_echo_n "(cached) " >&6
2172 root 1.1 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 root 1.7 for ac_exec_ext in '' $ac_executable_extensions; do
2183 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 root 1.1 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 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 root 1.1 break 2
2191     fi
2192     done
2193 root 1.7 done
2194 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2213     $as_echo "$CC" >&6; }
2214 root 1.1 else
2215 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2216     $as_echo "no" >&6; }
2217 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2228     $as_echo_n "checking for $ac_word... " >&6; }
2229 root 1.17 if ${ac_cv_prog_CC+:} false; then :
2230 root 1.7 $as_echo_n "(cached) " >&6
2231 root 1.1 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 root 1.7 for ac_exec_ext in '' $ac_executable_extensions; do
2241 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 root 1.1 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 root 1.1 break 2
2245     fi
2246     done
2247 root 1.7 done
2248 root 1.1 IFS=$as_save_IFS
2249    
2250     fi
2251     fi
2252     CC=$ac_cv_prog_CC
2253     if test -n "$CC"; then
2254 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2255     $as_echo "$CC" >&6; }
2256 root 1.1 else
2257 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2258     $as_echo "no" >&6; }
2259 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272     $as_echo_n "checking for $ac_word... " >&6; }
2273 root 1.17 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2274 root 1.7 $as_echo_n "(cached) " >&6
2275 root 1.1 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 root 1.7 for ac_exec_ext in '' $ac_executable_extensions; do
2285 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286 root 1.1 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 root 1.1 break 2
2289     fi
2290     done
2291 root 1.7 done
2292 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2299     $as_echo "$ac_ct_CC" >&6; }
2300 root 1.1 else
2301 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2302     $as_echo "no" >&6; }
2303 root 1.1 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 root 1.7 { $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 root 1.1 ac_tool_warned=yes ;;
2317     esac
2318     CC=$ac_ct_CC
2319     fi
2320     fi
2321    
2322     fi
2323    
2324    
2325 root 1.7 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 root 1.8 as_fn_error $? "no acceptable C compiler found in \$PATH
2328 root 1.17 See \`config.log' for more details" "$LINENO" 5; }
2329 root 1.1
2330     # Provide some information about the compiler.
2331 root 1.7 $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 root 1.1 case "(($ac_try" in
2337     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338     *) ac_try_echo=$ac_try;;
2339     esac
2340 root 1.7 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 root 1.1 ac_status=$?
2344 root 1.7 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 root 1.8 rm -f conftest.er1 conftest.err
2351 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352     test $ac_status = 0; }
2353     done
2354 root 1.1
2355 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 root 1.1 /* end confdefs.h. */
2357 root 1.8
2358 root 1.1 int
2359     main ()
2360     {
2361    
2362     ;
2363     return 0;
2364     }
2365     _ACEOF
2366     ac_clean_files_save=$ac_clean_files
2367 root 1.8 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2368 root 1.1 # 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 root 1.8 { $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 root 1.7 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 root 1.1 ac_rmfiles=
2379     for ac_file in $ac_files
2380     do
2381     case $ac_file in
2382 root 1.7 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2383 root 1.1 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2384     esac
2385     done
2386     rm -f $ac_rmfiles
2387    
2388 root 1.7 if { { ac_try="$ac_link_default"
2389 root 1.1 case "(($ac_try" in
2390     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391     *) ac_try_echo=$ac_try;;
2392     esac
2393 root 1.7 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394     $as_echo "$ac_try_echo"; } >&5
2395 root 1.1 (eval "$ac_link_default") 2>&5
2396     ac_status=$?
2397 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398     test $ac_status = 0; }; then :
2399 root 1.1 # 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 root 1.7 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2409 root 1.1 ;;
2410     [ab].out )
2411     # We found the default executable, but exeext='' is most
2412     # certainly right.
2413     break;;
2414     *.* )
2415 root 1.7 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2416 root 1.1 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 root 1.7 if test -z "$ac_file"; then :
2435 root 1.8 { $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 root 1.1 sed 's/^/| /' conftest.$ac_ext >&5
2439    
2440 root 1.7 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 root 1.8 as_fn_error 77 "C compiler cannot create executables
2443 root 1.17 See \`config.log' for more details" "$LINENO" 5; }
2444 root 1.8 else
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2446     $as_echo "yes" >&6; }
2447 root 1.1 fi
2448 root 1.8 { $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 root 1.1 ac_exeext=$ac_cv_exeext
2453    
2454 root 1.8 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2455 root 1.1 ac_clean_files=$ac_clean_files_save
2456 root 1.7 { $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 root 1.1 case "(($ac_try" in
2460     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461     *) ac_try_echo=$ac_try;;
2462     esac
2463 root 1.7 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2464     $as_echo "$ac_try_echo"; } >&5
2465 root 1.1 (eval "$ac_link") 2>&5
2466     ac_status=$?
2467 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468     test $ac_status = 0; }; then :
2469 root 1.1 # 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 root 1.7 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2477 root 1.1 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478     break;;
2479     * ) break;;
2480     esac
2481     done
2482     else
2483 root 1.7 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2484     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2485 root 1.8 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2486 root 1.17 See \`config.log' for more details" "$LINENO" 5; }
2487 root 1.1 fi
2488 root 1.8 rm -f conftest conftest$ac_cv_exeext
2489 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2490     $as_echo "$ac_cv_exeext" >&6; }
2491 root 1.1
2492     rm -f conftest.$ac_ext
2493     EXEEXT=$ac_cv_exeext
2494     ac_exeext=$EXEEXT
2495 root 1.8 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 root 1.17 See \`config.log' for more details" "$LINENO" 5; }
2546 root 1.8 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 root 1.7 { $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 root 1.17 if ${ac_cv_objext+:} false; then :
2557 root 1.7 $as_echo_n "(cached) " >&6
2558 root 1.1 else
2559 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 root 1.1 /* 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 root 1.7 if { { ac_try="$ac_compile"
2572 root 1.1 case "(($ac_try" in
2573     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574     *) ac_try_echo=$ac_try;;
2575     esac
2576 root 1.7 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577     $as_echo "$ac_try_echo"; } >&5
2578 root 1.1 (eval "$ac_compile") 2>&5
2579     ac_status=$?
2580 root 1.7 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581     test $ac_status = 0; }; then :
2582 root 1.1 for ac_file in conftest.o conftest.obj conftest.*; do
2583     test -f "$ac_file" || continue;
2584     case $ac_file in
2585 root 1.7 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2586 root 1.1 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2587     break;;
2588     esac
2589     done
2590     else
2591 root 1.7 $as_echo "$as_me: failed program was:" >&5
2592 root 1.1 sed 's/^/| /' conftest.$ac_ext >&5
2593    
2594 root 1.7 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 root 1.8 as_fn_error $? "cannot compute suffix of object files: cannot compile
2597 root 1.17 See \`config.log' for more details" "$LINENO" 5; }
2598 root 1.1 fi
2599     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2600     fi
2601 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2602     $as_echo "$ac_cv_objext" >&6; }
2603 root 1.1 OBJEXT=$ac_cv_objext
2604     ac_objext=$OBJEXT
2605 root 1.7 { $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 root 1.17 if ${ac_cv_c_compiler_gnu+:} false; then :
2608 root 1.7 $as_echo_n "(cached) " >&6
2609 root 1.1 else
2610 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 root 1.1 /* 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 root 1.7 if ac_fn_c_try_compile "$LINENO"; then :
2625 root 1.1 ac_compiler_gnu=yes
2626     else
2627 root 1.7 ac_compiler_gnu=no
2628 root 1.1 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 root 1.7 { $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 root 1.1 ac_test_CFLAGS=${CFLAGS+set}
2641     ac_save_CFLAGS=$CFLAGS
2642 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2643     $as_echo_n "checking whether $CC accepts -g... " >&6; }
2644 root 1.17 if ${ac_cv_prog_cc_g+:} false; then :
2645 root 1.7 $as_echo_n "(cached) " >&6
2646 root 1.1 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 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 root 1.1 /* end confdefs.h. */
2653    
2654     int
2655     main ()
2656     {
2657    
2658     ;
2659     return 0;
2660     }
2661     _ACEOF
2662 root 1.7 if ac_fn_c_try_compile "$LINENO"; then :
2663 root 1.1 ac_cv_prog_cc_g=yes
2664     else
2665 root 1.7 CFLAGS=""
2666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 root 1.1 /* end confdefs.h. */
2668    
2669     int
2670     main ()
2671     {
2672    
2673     ;
2674     return 0;
2675     }
2676     _ACEOF
2677 root 1.7 if ac_fn_c_try_compile "$LINENO"; then :
2678    
2679 root 1.1 else
2680 root 1.7 ac_c_werror_flag=$ac_save_c_werror_flag
2681 root 1.1 CFLAGS="-g"
2682 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 root 1.1 /* end confdefs.h. */
2684    
2685     int
2686     main ()
2687     {
2688    
2689     ;
2690     return 0;
2691     }
2692     _ACEOF
2693 root 1.7 if ac_fn_c_try_compile "$LINENO"; then :
2694 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2704     $as_echo "$ac_cv_prog_cc_g" >&6; }
2705 root 1.1 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 root 1.7 { $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 root 1.17 if ${ac_cv_prog_cc_c89+:} false; then :
2723 root 1.7 $as_echo_n "(cached) " >&6
2724 root 1.1 else
2725     ac_cv_prog_cc_c89=no
2726     ac_save_CC=$CC
2727 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728 root 1.1 /* end confdefs.h. */
2729     #include <stdarg.h>
2730     #include <stdio.h>
2731 root 1.17 struct stat;
2732 root 1.1 /* 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 root 1.7 if ac_fn_c_try_compile "$LINENO"; then :
2784 root 1.1 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 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2797     $as_echo "none needed" >&6; } ;;
2798 root 1.1 xno)
2799 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2800     $as_echo "unsupported" >&6; } ;;
2801 root 1.1 *)
2802     CC="$CC $ac_cv_prog_cc_c89"
2803 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2804     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2805 root 1.1 esac
2806 root 1.7 if test "x$ac_cv_prog_cc_c89" != xno; then :
2807 root 1.1
2808 root 1.7 fi
2809 root 1.1
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 root 1.10 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 root 1.17 if ${ac_cv_prog_CPP+:} false; then :
2830 root 1.10 $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 root 1.17 See \`config.log' for more details" "$LINENO" 5; }
2946 root 1.10 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 root 1.17 if ${ac_cv_path_GREP+:} false; then :
2958 root 1.10 $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 root 1.17 as_fn_executable_p "$ac_path_GREP" || continue
2972 root 1.10 # 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 root 1.17 if ${ac_cv_path_EGREP+:} false; then :
3021 root 1.10 $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 root 1.17 as_fn_executable_p "$ac_path_EGREP" || continue
3038 root 1.10 # 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 root 1.17 if ${ac_cv_header_stdc+:} false; then :
3088 root 1.10 $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 root 1.14
3215 root 1.15 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3216 root 1.17 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3217 root 1.15 MINIX=yes
3218     else
3219     MINIX=
3220 root 1.14 fi
3221    
3222    
3223 root 1.15 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 root 1.14
3230 root 1.10
3231 root 1.15 $as_echo "#define _MINIX 1" >>confdefs.h
3232 root 1.10
3233 root 1.15 fi
3234 root 1.10
3235    
3236 root 1.15 { $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 root 1.17 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3239 root 1.7 $as_echo_n "(cached) " >&6
3240 root 1.2 else
3241 root 1.15 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 root 1.2 /* end confdefs.h. */
3243    
3244 root 1.17 # define __EXTENSIONS__ 1
3245     $ac_includes_default
3246 root 1.2 int
3247     main ()
3248     {
3249 root 1.15
3250 root 1.2 ;
3251     return 0;
3252     }
3253     _ACEOF
3254 root 1.15 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 root 1.2 fi
3259 root 1.15 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 root 1.2 fi
3261 root 1.15 { $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 root 1.7
3270 root 1.15 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3271 root 1.2
3272 root 1.15 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3273 root 1.2
3274    
3275    
3276 root 1.15 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 root 1.17 if ${ac_cv_prog_CC+:} false; then :
3287 root 1.9 $as_echo_n "(cached) " >&6
3288     else
3289 root 1.15 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 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 root 1.15 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 root 1.9
3307 root 1.15 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 root 1.9 else
3314 root 1.15 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315     $as_echo "no" >&6; }
3316 root 1.9 fi
3317    
3318    
3319 root 1.15 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 root 1.17 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3327 root 1.7 $as_echo_n "(cached) " >&6
3328 root 1.1 else
3329 root 1.15 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 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 root 1.15 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 root 1.1
3347     fi
3348     fi
3349 root 1.15 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 root 1.1 else
3354 root 1.15 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355     $as_echo "no" >&6; }
3356     fi
3357 root 1.1
3358 root 1.15 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 root 1.1 else
3370 root 1.15 CC="$ac_cv_prog_CC"
3371 root 1.1 fi
3372    
3373 root 1.15 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 root 1.17 if ${ac_cv_prog_CC+:} false; then :
3380 root 1.15 $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 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 root 1.15 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 root 1.17 if ${ac_cv_prog_CC+:} false; then :
3420 root 1.15 $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 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 root 1.15 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 root 1.17 if ${ac_cv_prog_CC+:} false; then :
3479 root 1.15 $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 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 root 1.15 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 root 1.17 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3523 root 1.15 $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 root 1.17 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 root 1.15 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 root 1.17 See \`config.log' for more details" "$LINENO" 5; }
3578 root 1.15
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 root 1.17 if ${ac_cv_c_compiler_gnu+:} false; then :
3607 root 1.15 $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 root 1.17 if ${ac_cv_prog_cc_g+:} false; then :
3644 root 1.15 $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 root 1.17 if ${ac_cv_prog_cc_c89+:} false; then :
3722 root 1.15 $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 root 1.17 struct stat;
3731 root 1.15 /* 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 root 1.17 if ${ac_cv_search_pthread_create+:} false; then :
3833 root 1.15 $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 root 1.17 if ${ac_cv_search_pthread_create+:} false; then :
3867 root 1.15 break
3868     fi
3869     done
3870 root 1.17 if ${ac_cv_search_pthread_create+:} false; then :
3871 root 1.15
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 root 1.17 if ${ac_cv_utimes+:} false; then :
3893 root 1.15 $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 root 1.17 if ${ac_cv_futimes+:} false; then :
3927 root 1.15 $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 root 1.17 if ${ac_cv_readahead+:} false; then :
3962 root 1.15 $as_echo_n "(cached) " >&6
3963     else
3964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965     /* end confdefs.h. */
3966    
3967 root 1.28 #include <sys/types.h>
3968 root 1.15 #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 root 1.17 if ${ac_cv_fdatasync+:} false; then :
3996 root 1.7 $as_echo_n "(cached) " >&6
3997 root 1.1 else
3998 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999     /* end confdefs.h. */
4000 root 1.1
4001     #include <unistd.h>
4002 root 1.8 int main (void)
4003 root 1.1 {
4004     int fd = 0;
4005     fdatasync (fd);
4006     return 0;
4007     }
4008    
4009     _ACEOF
4010 root 1.7 if ac_fn_c_try_link "$LINENO"; then :
4011 root 1.1 ac_cv_fdatasync=yes
4012     else
4013 root 1.7 ac_cv_fdatasync=no
4014 root 1.1 fi
4015 root 1.7 rm -f core conftest.err conftest.$ac_objext \
4016     conftest$ac_exeext conftest.$ac_ext
4017 root 1.1 fi
4018 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5
4019     $as_echo "$ac_cv_fdatasync" >&6; }
4020 root 1.1 test $ac_cv_fdatasync = yes &&
4021 root 1.7 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
4022 root 1.1
4023    
4024 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5
4025     $as_echo_n "checking for sendfile... " >&6; }
4026 root 1.17 if ${ac_cv_sendfile+:} false; then :
4027 root 1.7 $as_echo_n "(cached) " >&6
4028 root 1.1 else
4029 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030     /* end confdefs.h. */
4031 root 1.1
4032     # include <sys/types.h>
4033     #if __linux
4034     # include <sys/sendfile.h>
4035 root 1.8 #elif __FreeBSD__ || defined __APPLE__
4036 root 1.1 # 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 root 1.8 int main (void)
4044 root 1.1 {
4045     int fd = 0;
4046     off_t offset = 1;
4047     size_t count = 2;
4048     ssize_t res;
4049     #if __linux
4050 root 1.18 res = sendfile (fd, fd, &offset, count);
4051 root 1.8 #elif __FreeBSD__
4052 root 1.1 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 root 1.7 if ac_fn_c_try_link "$LINENO"; then :
4061 root 1.1 ac_cv_sendfile=yes
4062     else
4063 root 1.7 ac_cv_sendfile=no
4064 root 1.1 fi
4065 root 1.7 rm -f core conftest.err conftest.$ac_objext \
4066     conftest$ac_exeext conftest.$ac_ext
4067 root 1.1 fi
4068 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5
4069     $as_echo "$ac_cv_sendfile" >&6; }
4070 root 1.1 test $ac_cv_sendfile = yes &&
4071 root 1.7 $as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
4072 root 1.1
4073    
4074 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5
4075     $as_echo_n "checking for sync_file_range... " >&6; }
4076 root 1.17 if ${ac_cv_sync_file_range+:} false; then :
4077 root 1.7 $as_echo_n "(cached) " >&6
4078 root 1.6 else
4079 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080     /* end confdefs.h. */
4081 root 1.6
4082 root 1.28 #include <sys/types.h>
4083 root 1.6 #include <fcntl.h>
4084 root 1.8 int main (void)
4085 root 1.6 {
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 root 1.7 if ac_fn_c_try_link "$LINENO"; then :
4097 root 1.6 ac_cv_sync_file_range=yes
4098     else
4099 root 1.7 ac_cv_sync_file_range=no
4100 root 1.6 fi
4101 root 1.7 rm -f core conftest.err conftest.$ac_objext \
4102     conftest$ac_exeext conftest.$ac_ext
4103 root 1.6 fi
4104 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5
4105     $as_echo "$ac_cv_sync_file_range" >&6; }
4106 root 1.6 test $ac_cv_sync_file_range = yes &&
4107 root 1.7 $as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
4108 root 1.6
4109    
4110 root 1.10 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
4111     $as_echo_n "checking for fallocate... " >&6; }
4112 root 1.17 if ${ac_cv_linux_fallocate+:} false; then :
4113 root 1.10 $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 root 1.11 int mode = 0;
4123 root 1.10 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 root 1.15 ac_cv_linux_fallocate=yes
4133 root 1.10 else
4134 root 1.15 ac_cv_linux_fallocate=no
4135 root 1.10 fi
4136     rm -f core conftest.err conftest.$ac_objext \
4137     conftest$ac_exeext conftest.$ac_ext
4138     fi
4139 root 1.16 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5
4140     $as_echo "$ac_cv_linux_fallocate" >&6; }
4141 root 1.15 test $ac_cv_linux_fallocate = yes &&
4142     $as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h
4143 root 1.10
4144 root 1.1
4145 root 1.12 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5
4146     $as_echo_n "checking for sys_syncfs... " >&6; }
4147 root 1.17 if ${ac_cv_sys_syncfs+:} false; then :
4148 root 1.12 $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 root 1.13 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5
4176     $as_echo_n "checking for prctl_set_name... " >&6; }
4177 root 1.17 if ${ac_cv_prctl_set_name+:} false; then :
4178 root 1.13 $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 root 1.18 char *name = "test123";
4187 root 1.13 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 root 1.23 { $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 root 1.1
4273 root 1.20 { $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 main (void)
4284     {
4285     struct rlimit srl;
4286 root 1.30 int res;
4287 root 1.20 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 root 1.8 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
4309     $as_echo_n "checking for posix_madvise... " >&6; }
4310 root 1.17 if ${ac_cv_posix_madvise+:} false; then :
4311 root 1.8 $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 root 1.17 if ${ac_cv_posix_fadvise+:} false; then :
4345 root 1.8 $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 root 1.15 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 root 1.26 for ac_header in sys/sysmacros.h
4393 root 1.25 do :
4394 root 1.26 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 root 1.25 cat >>confdefs.h <<_ACEOF
4397 root 1.26 #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 root 1.25 _ACEOF
4412    
4413     fi
4414    
4415     done
4416    
4417    
4418 root 1.29 for ac_header in sys/uio.h
4419     do :
4420     ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4421     if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4422     cat >>confdefs.h <<_ACEOF
4423     #define HAVE_SYS_UIO_H 1
4424     _ACEOF
4425    
4426     fi
4427    
4428     done
4429    
4430    
4431    
4432 root 1.15 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5
4433     $as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4434 root 1.17 if ${ac_cv_linux_splice+:} false; then :
4435 root 1.15 $as_echo_n "(cached) " >&6
4436     else
4437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438     /* end confdefs.h. */
4439    
4440 root 1.28 #include <sys/types.h>
4441 root 1.15 #include <fcntl.h>
4442 root 1.29 #include <sys/uio.h>
4443 root 1.15 int main (void)
4444     {
4445     ssize_t res;
4446     res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
4447     res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
4448     res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT);
4449     return 0;
4450     }
4451    
4452     _ACEOF
4453     if ac_fn_c_try_link "$LINENO"; then :
4454     ac_cv_linux_splice=yes
4455     else
4456     ac_cv_linux_splice=no
4457     fi
4458     rm -f core conftest.err conftest.$ac_objext \
4459     conftest$ac_exeext conftest.$ac_ext
4460     fi
4461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5
4462     $as_echo "$ac_cv_linux_splice" >&6; }
4463     test $ac_cv_linux_splice = yes &&
4464     $as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h
4465    
4466    
4467 root 1.17 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5
4468     $as_echo_n "checking for pipe2... " >&6; }
4469     if ${ac_cv_pipe2+:} false; then :
4470     $as_echo_n "(cached) " >&6
4471     else
4472     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473     /* end confdefs.h. */
4474    
4475     #include <fcntl.h>
4476     #include <unistd.h>
4477     int main (void)
4478     {
4479 root 1.30 int res;
4480 root 1.17 res = pipe2 (0, 0);
4481     return 0;
4482     }
4483    
4484     _ACEOF
4485     if ac_fn_c_try_link "$LINENO"; then :
4486     ac_cv_pipe2=yes
4487     else
4488     ac_cv_pipe2=no
4489     fi
4490     rm -f core conftest.err conftest.$ac_objext \
4491     conftest$ac_exeext conftest.$ac_ext
4492     fi
4493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5
4494     $as_echo "$ac_cv_pipe2" >&6; }
4495     test $ac_cv_pipe2 = yes &&
4496     $as_echo "#define HAVE_PIPE2 1" >>confdefs.h
4497    
4498    
4499 root 1.21 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
4500     $as_echo_n "checking for eventfd... " >&6; }
4501     if ${ac_cv_eventfd+:} false; then :
4502     $as_echo_n "(cached) " >&6
4503     else
4504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505     /* end confdefs.h. */
4506    
4507     #include <sys/eventfd.h>
4508     int main (void)
4509     {
4510 root 1.30 int res;
4511 root 1.21 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4512     return 0;
4513     }
4514    
4515     _ACEOF
4516     if ac_fn_c_try_link "$LINENO"; then :
4517     ac_cv_eventfd=yes
4518     else
4519     ac_cv_eventfd=no
4520     fi
4521     rm -f core conftest.err conftest.$ac_objext \
4522     conftest$ac_exeext conftest.$ac_ext
4523     fi
4524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5
4525     $as_echo "$ac_cv_eventfd" >&6; }
4526     test $ac_cv_eventfd = yes &&
4527     $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
4528    
4529    
4530 root 1.31 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5
4531     $as_echo_n "checking for timerfd_*... " >&6; }
4532 root 1.22 if ${ac_cv_timerfd+:} false; then :
4533     $as_echo_n "(cached) " >&6
4534     else
4535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536     /* end confdefs.h. */
4537    
4538     #include <sys/timerfd.h>
4539     int main (void)
4540     {
4541     struct itimerspec its;
4542 root 1.30 int res;
4543 root 1.22 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
4544     res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
4545     res = timerfd_gettime (res, &its);
4546     return 0;
4547     }
4548    
4549     _ACEOF
4550     if ac_fn_c_try_link "$LINENO"; then :
4551     ac_cv_timerfd=yes
4552     else
4553     ac_cv_timerfd=no
4554     fi
4555     rm -f core conftest.err conftest.$ac_objext \
4556     conftest$ac_exeext conftest.$ac_ext
4557     fi
4558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5
4559     $as_echo "$ac_cv_timerfd" >&6; }
4560     test $ac_cv_timerfd = yes &&
4561     $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
4562    
4563    
4564 root 1.31 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
4565     $as_echo_n "checking for memfd_create... " >&6; }
4566     if ${ac_cv_memfd_create+:} false; then :
4567     $as_echo_n "(cached) " >&6
4568     else
4569     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570     /* end confdefs.h. */
4571    
4572     #include <sys/mman.h>
4573     int main (void)
4574     {
4575     int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING);
4576     return 0;
4577     }
4578    
4579     _ACEOF
4580     if ac_fn_c_try_link "$LINENO"; then :
4581     ac_cv_memfd_create=yes
4582     else
4583     ac_cv_memfd_create=no
4584     fi
4585     rm -f core conftest.err conftest.$ac_objext \
4586     conftest$ac_exeext conftest.$ac_ext
4587     fi
4588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5
4589     $as_echo "$ac_cv_memfd_create" >&6; }
4590     test $ac_cv_memfd_create = yes &&
4591     $as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
4592    
4593    
4594 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4595     $as_echo_n "checking for copy_file_range... " >&6; }
4596     if ${ac_cv_copy_file_range+:} false; then :
4597 root 1.18 $as_echo_n "(cached) " >&6
4598     else
4599     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600     /* end confdefs.h. */
4601    
4602     #include <unistd.h>
4603     #include <sys/syscall.h>
4604 root 1.23 /*#include <linux/copy.h>*/
4605 root 1.18 int main (void)
4606     {
4607 root 1.30 int res;
4608 root 1.23 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
4609     res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
4610 root 1.18 return 0;
4611     }
4612    
4613     _ACEOF
4614     if ac_fn_c_try_link "$LINENO"; then :
4615 root 1.23 ac_cv_copy_file_range=yes
4616 root 1.18 else
4617 root 1.23 ac_cv_copy_file_range=no
4618 root 1.18 fi
4619     rm -f core conftest.err conftest.$ac_objext \
4620     conftest$ac_exeext conftest.$ac_ext
4621     fi
4622 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5
4623     $as_echo "$ac_cv_copy_file_range" >&6; }
4624     test $ac_cv_copy_file_range = yes &&
4625     $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
4626 root 1.18
4627    
4628 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5
4629     $as_echo_n "checking for st_xtimensec... " >&6; }
4630     if ${ac_cv_xtimensec+:} false; then :
4631 root 1.19 $as_echo_n "(cached) " >&6
4632     else
4633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634     /* end confdefs.h. */
4635    
4636 root 1.23 #include "EXTERN.h"
4637     #include "perl.h"
4638     #include "XSUB.h"
4639    
4640 root 1.19 int main (void)
4641     {
4642 root 1.23 return PL_statcache.st_atimensec
4643     + PL_statcache.st_mtimensec
4644     + PL_statcache.st_ctimensec;
4645 root 1.19 }
4646    
4647     _ACEOF
4648 root 1.23 if ac_fn_c_try_compile "$LINENO"; then :
4649     ac_cv_xtimensec=yes
4650 root 1.19 else
4651 root 1.23 ac_cv_xtimensec=no
4652 root 1.19 fi
4653 root 1.23 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 root 1.19 fi
4655 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5
4656     $as_echo "$ac_cv_xtimensec" >&6; }
4657     test $ac_cv_xtimensec = yes &&
4658     $as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h
4659 root 1.19
4660    
4661 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5
4662     $as_echo_n "checking for st_xtimespec... " >&6; }
4663     if ${ac_cv_xtimespec+:} false; then :
4664 root 1.21 $as_echo_n "(cached) " >&6
4665     else
4666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667     /* end confdefs.h. */
4668    
4669 root 1.23 #include "EXTERN.h"
4670     #include "perl.h"
4671     #include "XSUB.h"
4672    
4673 root 1.21 int main (void)
4674     {
4675 root 1.23 return PL_statcache.st_atim.tv_nsec
4676     + PL_statcache.st_mtim.tv_nsec
4677     + PL_statcache.st_ctim.tv_nsec;
4678 root 1.21 }
4679    
4680     _ACEOF
4681 root 1.23 if ac_fn_c_try_compile "$LINENO"; then :
4682     ac_cv_xtimespec=yes
4683 root 1.21 else
4684 root 1.23 ac_cv_xtimespec=no
4685 root 1.21 fi
4686 root 1.23 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 root 1.21 fi
4688 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5
4689     $as_echo "$ac_cv_xtimespec" >&6; }
4690     test $ac_cv_xtimespec = yes &&
4691     $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4692 root 1.18
4693    
4694 root 1.24 # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
4695    
4696 root 1.27 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5
4697     $as_echo_n "checking for st_birthtimensec... " >&6; }
4698     if ${ac_cv_birthtimensec+:} false; then :
4699     $as_echo_n "(cached) " >&6
4700     else
4701     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702     /* end confdefs.h. */
4703    
4704     #include "EXTERN.h"
4705     #include "perl.h"
4706     #include "XSUB.h"
4707    
4708     int main (void)
4709     {
4710     return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
4711     }
4712    
4713     _ACEOF
4714     if ac_fn_c_try_compile "$LINENO"; then :
4715     ac_cv_birthtimensec=yes
4716     else
4717     ac_cv_birthtimensec=no
4718     fi
4719     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720     fi
4721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5
4722     $as_echo "$ac_cv_birthtimensec" >&6; }
4723     test $ac_cv_birthtimensec = yes &&
4724     $as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h
4725    
4726    
4727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5
4728     $as_echo_n "checking for st_birthtimespec... " >&6; }
4729     if ${ac_cv_birthtimespec+:} false; then :
4730     $as_echo_n "(cached) " >&6
4731     else
4732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733     /* end confdefs.h. */
4734    
4735     #include "EXTERN.h"
4736     #include "perl.h"
4737     #include "XSUB.h"
4738    
4739     int main (void)
4740     {
4741     return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
4742     }
4743    
4744     _ACEOF
4745     if ac_fn_c_try_compile "$LINENO"; then :
4746     ac_cv_birthtimespec=yes
4747     else
4748     ac_cv_birthtimespec=no
4749     fi
4750     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751     fi
4752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5
4753     $as_echo "$ac_cv_birthtimespec" >&6; }
4754     test $ac_cv_birthtimespec = yes &&
4755     $as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h
4756    
4757    
4758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5
4759     $as_echo_n "checking for st_gen... " >&6; }
4760     if ${ac_cv_st_gen+:} false; then :
4761     $as_echo_n "(cached) " >&6
4762     else
4763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764     /* end confdefs.h. */
4765    
4766     #include "EXTERN.h"
4767     #include "perl.h"
4768     #include "XSUB.h"
4769    
4770     int main (void)
4771     {
4772     return PL_statcache.st_gen;
4773     }
4774    
4775     _ACEOF
4776     if ac_fn_c_try_compile "$LINENO"; then :
4777     ac_cv_st_gen=yes
4778     else
4779     ac_cv_st_gen=no
4780     fi
4781     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782     fi
4783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4784     $as_echo "$ac_cv_st_gen" >&6; }
4785     test $ac_cv_st_gen = yes &&
4786     $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
4787    
4788    
4789 root 1.30 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statx" >&5
4790     $as_echo_n "checking for statx... " >&6; }
4791     if ${ac_cv_statx+:} false; then :
4792     $as_echo_n "(cached) " >&6
4793     else
4794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795     /* end confdefs.h. */
4796    
4797     #include <sys/types.h>
4798     #include <sys/stat.h>
4799     #include <unistd.h>
4800     #include <fcntl.h>
4801     int res;
4802     int main (void)
4803     {
4804     struct statx sx;
4805     int res;
4806     res = statx (AT_FDCWD, ".",
4807     AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC,
4808     STATX_ALL, &sx);
4809     STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME;
4810     STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL;
4811     STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED;
4812     return 0;
4813     }
4814    
4815     _ACEOF
4816     if ac_fn_c_try_link "$LINENO"; then :
4817     ac_cv_statx=yes
4818     else
4819     ac_cv_statx=no
4820     fi
4821     rm -f core conftest.err conftest.$ac_objext \
4822     conftest$ac_exeext conftest.$ac_ext
4823     fi
4824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5
4825     $as_echo "$ac_cv_statx" >&6; }
4826     test $ac_cv_statx = yes &&
4827     $as_echo "#define HAVE_STATX 1" >>confdefs.h
4828    
4829    
4830 root 1.1 cat >confcache <<\_ACEOF
4831     # This file is a shell script that caches the results of configure
4832     # tests run on this system so they can be shared between configure
4833     # scripts and configure runs, see configure's option --config-cache.
4834     # It is not useful on other systems. If it contains results you don't
4835     # want to keep, you may remove or edit it.
4836     #
4837     # config.status only pays attention to the cache file if you give it
4838     # the --recheck option to rerun configure.
4839     #
4840     # `ac_cv_env_foo' variables (set or unset) will be overridden when
4841     # loading this file, other *unset* `ac_cv_foo' will be assigned the
4842     # following values.
4843    
4844     _ACEOF
4845    
4846     # The following way of writing the cache mishandles newlines in values,
4847     # but we know of no workaround that is simple, portable, and efficient.
4848     # So, we kill variables containing newlines.
4849     # Ultrix sh set writes to stderr and can't be redirected directly,
4850     # and sets the high bit in the cache file unless we assign to the vars.
4851     (
4852     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4853     eval ac_val=\$$ac_var
4854     case $ac_val in #(
4855     *${as_nl}*)
4856     case $ac_var in #(
4857 root 1.7 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4858     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4859 root 1.1 esac
4860     case $ac_var in #(
4861     _ | IFS | as_nl) ;; #(
4862 root 1.7 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4863     *) { eval $ac_var=; unset $ac_var;} ;;
4864 root 1.1 esac ;;
4865     esac
4866     done
4867    
4868     (set) 2>&1 |
4869     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4870     *${as_nl}ac_space=\ *)
4871 root 1.7 # `set' does not quote correctly, so add quotes: double-quote
4872     # substitution turns \\\\ into \\, and sed turns \\ into \.
4873 root 1.1 sed -n \
4874     "s/'/'\\\\''/g;
4875     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4876     ;; #(
4877     *)
4878     # `set' quotes correctly as required by POSIX, so do not add quotes.
4879     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4880     ;;
4881     esac |
4882     sort
4883     ) |
4884     sed '
4885     /^ac_cv_env_/b end
4886     t clear
4887     :clear
4888     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4889     t end
4890     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4891     :end' >>confcache
4892     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4893     if test -w "$cache_file"; then
4894 root 1.17 if test "x$cache_file" != "x/dev/null"; then
4895 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4896     $as_echo "$as_me: updating cache $cache_file" >&6;}
4897 root 1.17 if test ! -f "$cache_file" || test -h "$cache_file"; then
4898     cat confcache >"$cache_file"
4899     else
4900     case $cache_file in #(
4901     */* | ?:*)
4902     mv -f confcache "$cache_file"$$ &&
4903     mv -f "$cache_file"$$ "$cache_file" ;; #(
4904     *)
4905     mv -f confcache "$cache_file" ;;
4906     esac
4907     fi
4908     fi
4909 root 1.1 else
4910 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4911     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4912 root 1.1 fi
4913     fi
4914     rm -f confcache
4915    
4916     test "x$prefix" = xNONE && prefix=$ac_default_prefix
4917     # Let make expand exec_prefix.
4918     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4919    
4920     DEFS=-DHAVE_CONFIG_H
4921    
4922     ac_libobjs=
4923     ac_ltlibobjs=
4924 root 1.8 U=
4925 root 1.1 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4926     # 1. Remove the extension, and $U if already installed.
4927     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4928 root 1.7 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4929 root 1.1 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4930     # will be set to the directory where LIBOBJS objects are built.
4931 root 1.7 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4932     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4933 root 1.1 done
4934     LIBOBJS=$ac_libobjs
4935    
4936     LTLIBOBJS=$ac_ltlibobjs
4937    
4938    
4939    
4940 root 1.17 : "${CONFIG_STATUS=./config.status}"
4941 root 1.7 ac_write_fail=0
4942 root 1.1 ac_clean_files_save=$ac_clean_files
4943     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4944 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4945     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4946     as_write_fail=0
4947     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4948 root 1.1 #! $SHELL
4949     # Generated by $as_me.
4950     # Run this file to recreate the current configuration.
4951     # Compiler output produced by configure, useful for debugging
4952     # configure, is in config.log if it exists.
4953    
4954     debug=false
4955     ac_cs_recheck=false
4956     ac_cs_silent=false
4957 root 1.7
4958 root 1.1 SHELL=\${CONFIG_SHELL-$SHELL}
4959 root 1.7 export SHELL
4960     _ASEOF
4961     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4962     ## -------------------- ##
4963     ## M4sh Initialization. ##
4964     ## -------------------- ##
4965 root 1.1
4966     # Be more Bourne compatible
4967     DUALCASE=1; export DUALCASE # for MKS sh
4968 root 1.7 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4969 root 1.1 emulate sh
4970     NULLCMD=:
4971 root 1.7 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4972 root 1.1 # is contrary to our usage. Disable this feature.
4973     alias -g '${1+"$@"}'='"$@"'
4974     setopt NO_GLOB_SUBST
4975     else
4976 root 1.7 case `(set -o) 2>/dev/null` in #(
4977     *posix*) :
4978     set -o posix ;; #(
4979     *) :
4980     ;;
4981 root 1.1 esac
4982     fi
4983    
4984    
4985 root 1.7 as_nl='
4986     '
4987     export as_nl
4988     # Printing a long string crashes Solaris 7 /usr/bin/printf.
4989     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4990     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4991     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4992     # Prefer a ksh shell builtin over an external printf program on Solaris,
4993     # but without wasting forks for bash or zsh.
4994     if test -z "$BASH_VERSION$ZSH_VERSION" \
4995     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4996     as_echo='print -r --'
4997     as_echo_n='print -rn --'
4998     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4999     as_echo='printf %s\n'
5000     as_echo_n='printf %s'
5001     else
5002     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5003     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5004     as_echo_n='/usr/ucb/echo -n'
5005 root 1.1 else
5006 root 1.7 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5007     as_echo_n_body='eval
5008     arg=$1;
5009     case $arg in #(
5010     *"$as_nl"*)
5011     expr "X$arg" : "X\\(.*\\)$as_nl";
5012     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5013     esac;
5014     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5015     '
5016     export as_echo_n_body
5017     as_echo_n='sh -c $as_echo_n_body as_echo'
5018 root 1.1 fi
5019 root 1.7 export as_echo_body
5020     as_echo='sh -c $as_echo_body as_echo'
5021 root 1.1 fi
5022    
5023 root 1.7 # The user is always right.
5024     if test "${PATH_SEPARATOR+set}" != set; then
5025     PATH_SEPARATOR=:
5026     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5027     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5028     PATH_SEPARATOR=';'
5029     }
5030 root 1.1 fi
5031    
5032    
5033     # IFS
5034     # We need space, tab and new line, in precisely that order. Quoting is
5035     # there to prevent editors from complaining about space-tab.
5036     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5037     # splitting by setting IFS to empty value.)
5038     IFS=" "" $as_nl"
5039    
5040     # Find who we are. Look in the path if we contain no directory separator.
5041 root 1.17 as_myself=
5042 root 1.7 case $0 in #((
5043 root 1.1 *[\\/]* ) as_myself=$0 ;;
5044     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045     for as_dir in $PATH
5046     do
5047     IFS=$as_save_IFS
5048     test -z "$as_dir" && as_dir=.
5049 root 1.7 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5050     done
5051 root 1.1 IFS=$as_save_IFS
5052    
5053     ;;
5054     esac
5055     # We did not find ourselves, most probably we were run as `sh COMMAND'
5056     # in which case we are not to be found in the path.
5057     if test "x$as_myself" = x; then
5058     as_myself=$0
5059     fi
5060     if test ! -f "$as_myself"; then
5061 root 1.7 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5062     exit 1
5063 root 1.1 fi
5064    
5065 root 1.7 # Unset variables that we do not need and which cause bugs (e.g. in
5066     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5067     # suppresses any "Segmentation fault" message there. '((' could
5068     # trigger a bug in pdksh 5.2.14.
5069     for as_var in BASH_ENV ENV MAIL MAILPATH
5070     do eval test x\${$as_var+set} = xset \
5071     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5072 root 1.1 done
5073     PS1='$ '
5074     PS2='> '
5075     PS4='+ '
5076    
5077     # NLS nuisances.
5078 root 1.7 LC_ALL=C
5079     export LC_ALL
5080     LANGUAGE=C
5081     export LANGUAGE
5082    
5083     # CDPATH.
5084     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5085    
5086    
5087 root 1.8 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5088     # ----------------------------------------
5089 root 1.7 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5090     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5091 root 1.8 # script with STATUS, using 1 if that was 0.
5092 root 1.7 as_fn_error ()
5093     {
5094 root 1.8 as_status=$1; test $as_status -eq 0 && as_status=1
5095     if test "$4"; then
5096     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5097     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5098 root 1.7 fi
5099 root 1.8 $as_echo "$as_me: error: $2" >&2
5100 root 1.7 as_fn_exit $as_status
5101     } # as_fn_error
5102    
5103    
5104     # as_fn_set_status STATUS
5105     # -----------------------
5106     # Set $? to STATUS, without forking.
5107     as_fn_set_status ()
5108     {
5109     return $1
5110     } # as_fn_set_status
5111    
5112     # as_fn_exit STATUS
5113     # -----------------
5114     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5115     as_fn_exit ()
5116     {
5117     set +e
5118     as_fn_set_status $1
5119     exit $1
5120     } # as_fn_exit
5121    
5122     # as_fn_unset VAR
5123     # ---------------
5124     # Portably unset VAR.
5125     as_fn_unset ()
5126     {
5127     { eval $1=; unset $1;}
5128     }
5129     as_unset=as_fn_unset
5130     # as_fn_append VAR VALUE
5131     # ----------------------
5132     # Append the text in VALUE to the end of the definition contained in VAR. Take
5133     # advantage of any shell optimizations that allow amortized linear growth over
5134     # repeated appends, instead of the typical quadratic growth present in naive
5135     # implementations.
5136     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5137     eval 'as_fn_append ()
5138     {
5139     eval $1+=\$2
5140     }'
5141     else
5142     as_fn_append ()
5143     {
5144     eval $1=\$$1\$2
5145     }
5146     fi # as_fn_append
5147    
5148     # as_fn_arith ARG...
5149     # ------------------
5150     # Perform arithmetic evaluation on the ARGs, and store the result in the
5151     # global $as_val. Take advantage of shells that can avoid forks. The arguments
5152     # must be portable across $(()) and expr.
5153     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5154     eval 'as_fn_arith ()
5155     {
5156     as_val=$(( $* ))
5157     }'
5158     else
5159     as_fn_arith ()
5160     {
5161     as_val=`expr "$@" || test $? -eq 1`
5162     }
5163     fi # as_fn_arith
5164    
5165 root 1.1
5166     if expr a : '\(a\)' >/dev/null 2>&1 &&
5167     test "X`expr 00001 : '.*\(...\)'`" = X001; then
5168     as_expr=expr
5169     else
5170     as_expr=false
5171     fi
5172    
5173     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5174     as_basename=basename
5175     else
5176     as_basename=false
5177     fi
5178    
5179 root 1.7 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5180     as_dirname=dirname
5181     else
5182     as_dirname=false
5183     fi
5184 root 1.1
5185     as_me=`$as_basename -- "$0" ||
5186     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5187     X"$0" : 'X\(//\)$' \| \
5188     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5189 root 1.7 $as_echo X/"$0" |
5190 root 1.1 sed '/^.*\/\([^/][^/]*\)\/*$/{
5191     s//\1/
5192     q
5193     }
5194     /^X\/\(\/\/\)$/{
5195     s//\1/
5196     q
5197     }
5198     /^X\/\(\/\).*/{
5199     s//\1/
5200     q
5201     }
5202     s/.*/./; q'`
5203    
5204 root 1.7 # Avoid depending upon Character Ranges.
5205     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5206     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5207     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5208     as_cr_digits='0123456789'
5209     as_cr_alnum=$as_cr_Letters$as_cr_digits
5210 root 1.1
5211     ECHO_C= ECHO_N= ECHO_T=
5212 root 1.7 case `echo -n x` in #(((((
5213 root 1.1 -n*)
5214 root 1.7 case `echo 'xy\c'` in
5215 root 1.1 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5216 root 1.7 xy) ECHO_C='\c';;
5217     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5218     ECHO_T=' ';;
5219 root 1.1 esac;;
5220     *)
5221     ECHO_N='-n';;
5222     esac
5223    
5224     rm -f conf$$ conf$$.exe conf$$.file
5225     if test -d conf$$.dir; then
5226     rm -f conf$$.dir/conf$$.file
5227     else
5228     rm -f conf$$.dir
5229 root 1.7 mkdir conf$$.dir 2>/dev/null
5230 root 1.1 fi
5231 root 1.7 if (echo >conf$$.file) 2>/dev/null; then
5232     if ln -s conf$$.file conf$$ 2>/dev/null; then
5233     as_ln_s='ln -s'
5234     # ... but there are two gotchas:
5235     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5236     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5237 root 1.17 # In both cases, we have to default to `cp -pR'.
5238 root 1.7 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5239 root 1.17 as_ln_s='cp -pR'
5240 root 1.7 elif ln conf$$.file conf$$ 2>/dev/null; then
5241     as_ln_s=ln
5242     else
5243 root 1.17 as_ln_s='cp -pR'
5244 root 1.7 fi
5245 root 1.1 else
5246 root 1.17 as_ln_s='cp -pR'
5247 root 1.1 fi
5248     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5249     rmdir conf$$.dir 2>/dev/null
5250    
5251 root 1.7
5252     # as_fn_mkdir_p
5253     # -------------
5254     # Create "$as_dir" as a directory, including parents if necessary.
5255     as_fn_mkdir_p ()
5256     {
5257    
5258     case $as_dir in #(
5259     -*) as_dir=./$as_dir;;
5260     esac
5261     test -d "$as_dir" || eval $as_mkdir_p || {
5262     as_dirs=
5263     while :; do
5264     case $as_dir in #(
5265     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5266     *) as_qdir=$as_dir;;
5267     esac
5268     as_dirs="'$as_qdir' $as_dirs"
5269     as_dir=`$as_dirname -- "$as_dir" ||
5270     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5271     X"$as_dir" : 'X\(//\)[^/]' \| \
5272     X"$as_dir" : 'X\(//\)$' \| \
5273     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5274     $as_echo X"$as_dir" |
5275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5276     s//\1/
5277     q
5278     }
5279     /^X\(\/\/\)[^/].*/{
5280     s//\1/
5281     q
5282     }
5283     /^X\(\/\/\)$/{
5284     s//\1/
5285     q
5286     }
5287     /^X\(\/\).*/{
5288     s//\1/
5289     q
5290     }
5291     s/.*/./; q'`
5292     test -d "$as_dir" && break
5293     done
5294     test -z "$as_dirs" || eval "mkdir $as_dirs"
5295 root 1.8 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5296 root 1.7
5297    
5298     } # as_fn_mkdir_p
5299 root 1.1 if mkdir -p . 2>/dev/null; then
5300 root 1.7 as_mkdir_p='mkdir -p "$as_dir"'
5301 root 1.1 else
5302     test -d ./-p && rmdir ./-p
5303     as_mkdir_p=false
5304     fi
5305    
5306 root 1.17
5307     # as_fn_executable_p FILE
5308     # -----------------------
5309     # Test if FILE is an executable regular file.
5310     as_fn_executable_p ()
5311     {
5312     test -f "$1" && test -x "$1"
5313     } # as_fn_executable_p
5314     as_test_x='test -x'
5315     as_executable_p=as_fn_executable_p
5316 root 1.1
5317     # Sed expression to map a string onto a valid CPP name.
5318     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5319    
5320     # Sed expression to map a string onto a valid variable name.
5321     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5322    
5323    
5324     exec 6>&1
5325 root 1.7 ## ----------------------------------- ##
5326     ## Main body of $CONFIG_STATUS script. ##
5327     ## ----------------------------------- ##
5328     _ASEOF
5329     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5330 root 1.1
5331 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5332     # Save the log message, to keep $0 and so on meaningful, and to
5333 root 1.1 # report actual input values of CONFIG_FILES etc. instead of their
5334     # values after options handling.
5335     ac_log="
5336     This file was extended by $as_me, which was
5337 root 1.17 generated by GNU Autoconf 2.69. Invocation command line was
5338 root 1.1
5339     CONFIG_FILES = $CONFIG_FILES
5340     CONFIG_HEADERS = $CONFIG_HEADERS
5341     CONFIG_LINKS = $CONFIG_LINKS
5342     CONFIG_COMMANDS = $CONFIG_COMMANDS
5343     $ $0 $@
5344    
5345     on `(hostname || uname -n) 2>/dev/null | sed 1q`
5346     "
5347    
5348     _ACEOF
5349    
5350 root 1.7
5351     case $ac_config_headers in *"
5352     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5353     esac
5354    
5355    
5356     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5357 root 1.1 # Files that config.status was made for.
5358     config_headers="$ac_config_headers"
5359    
5360     _ACEOF
5361    
5362 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5363 root 1.1 ac_cs_usage="\
5364 root 1.7 \`$as_me' instantiates files and other configuration actions
5365     from templates according to the current configuration. Unless the files
5366     and actions are specified as TAGs, all are instantiated by default.
5367 root 1.1
5368 root 1.7 Usage: $0 [OPTION]... [TAG]...
5369 root 1.1
5370     -h, --help print this help, then exit
5371     -V, --version print version number and configuration settings, then exit
5372 root 1.8 --config print configuration, then exit
5373 root 1.7 -q, --quiet, --silent
5374     do not print progress messages
5375 root 1.1 -d, --debug don't remove temporary files
5376     --recheck update $as_me by reconfiguring in the same conditions
5377 root 1.7 --header=FILE[:TEMPLATE]
5378     instantiate the configuration header FILE
5379 root 1.1
5380     Configuration headers:
5381     $config_headers
5382    
5383 root 1.7 Report bugs to the package provider."
5384 root 1.1
5385     _ACEOF
5386 root 1.7 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5387 root 1.8 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5388 root 1.1 ac_cs_version="\\
5389     config.status
5390 root 1.17 configured by $0, generated by GNU Autoconf 2.69,
5391 root 1.8 with options \\"\$ac_cs_config\\"
5392 root 1.1
5393 root 1.17 Copyright (C) 2012 Free Software Foundation, Inc.
5394 root 1.1 This config.status script is free software; the Free Software Foundation
5395     gives unlimited permission to copy, distribute and modify it."
5396    
5397     ac_pwd='$ac_pwd'
5398     srcdir='$srcdir'
5399 root 1.7 test -n "\$AWK" || AWK=awk
5400 root 1.1 _ACEOF
5401    
5402 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5403     # The default lists apply if the user does not specify any file.
5404 root 1.1 ac_need_defaults=:
5405     while test $# != 0
5406     do
5407     case $1 in
5408 root 1.8 --*=?*)
5409 root 1.1 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5410     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5411     ac_shift=:
5412     ;;
5413 root 1.8 --*=)
5414     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5415     ac_optarg=
5416     ac_shift=:
5417     ;;
5418 root 1.1 *)
5419     ac_option=$1
5420     ac_optarg=$2
5421     ac_shift=shift
5422     ;;
5423     esac
5424    
5425     case $ac_option in
5426     # Handling of the options.
5427     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5428     ac_cs_recheck=: ;;
5429     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5430 root 1.7 $as_echo "$ac_cs_version"; exit ;;
5431 root 1.8 --config | --confi | --conf | --con | --co | --c )
5432     $as_echo "$ac_cs_config"; exit ;;
5433 root 1.1 --debug | --debu | --deb | --de | --d | -d )
5434     debug=: ;;
5435     --header | --heade | --head | --hea )
5436     $ac_shift
5437 root 1.7 case $ac_optarg in
5438     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5439     esac
5440     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5441 root 1.1 ac_need_defaults=false;;
5442     --he | --h)
5443     # Conflict between --help and --header
5444 root 1.8 as_fn_error $? "ambiguous option: \`$1'
5445 root 1.7 Try \`$0 --help' for more information.";;
5446 root 1.1 --help | --hel | -h )
5447 root 1.7 $as_echo "$ac_cs_usage"; exit ;;
5448 root 1.1 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5449     | -silent | --silent | --silen | --sile | --sil | --si | --s)
5450     ac_cs_silent=: ;;
5451    
5452     # This is an error.
5453 root 1.8 -*) as_fn_error $? "unrecognized option: \`$1'
5454 root 1.7 Try \`$0 --help' for more information." ;;
5455 root 1.1
5456 root 1.7 *) as_fn_append ac_config_targets " $1"
5457 root 1.1 ac_need_defaults=false ;;
5458    
5459     esac
5460     shift
5461     done
5462    
5463     ac_configure_extra_args=
5464    
5465     if $ac_cs_silent; then
5466     exec 6>/dev/null
5467     ac_configure_extra_args="$ac_configure_extra_args --silent"
5468     fi
5469    
5470     _ACEOF
5471 root 1.7 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5472 root 1.1 if \$ac_cs_recheck; then
5473 root 1.17 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5474 root 1.7 shift
5475     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5476     CONFIG_SHELL='$SHELL'
5477 root 1.1 export CONFIG_SHELL
5478 root 1.7 exec "\$@"
5479 root 1.1 fi
5480    
5481     _ACEOF
5482 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5483 root 1.1 exec 5>>config.log
5484     {
5485     echo
5486     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5487     ## Running $as_me. ##
5488     _ASBOX
5489 root 1.7 $as_echo "$ac_log"
5490 root 1.1 } >&5
5491    
5492     _ACEOF
5493 root 1.7 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5494 root 1.1 _ACEOF
5495    
5496 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5497 root 1.1
5498     # Handling of arguments.
5499     for ac_config_target in $ac_config_targets
5500     do
5501     case $ac_config_target in
5502 root 1.23 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5503 root 1.1
5504 root 1.17 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5505 root 1.1 esac
5506     done
5507    
5508    
5509     # If the user did not use the arguments to specify the items to instantiate,
5510     # then the envvar interface is used. Set only those that are not.
5511     # We use the long form for the default assignment because of an extremely
5512     # bizarre bug on SunOS 4.1.3.
5513     if $ac_need_defaults; then
5514     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5515     fi
5516    
5517     # Have a temporary directory for convenience. Make it in the build tree
5518     # simply because there is no reason against having it here, and in addition,
5519     # creating and moving files from /tmp can sometimes cause problems.
5520     # Hook for its removal unless debugging.
5521     # Note that there is a small window in which the directory will not be cleaned:
5522     # after its creation but before its name has been assigned to `$tmp'.
5523     $debug ||
5524     {
5525 root 1.17 tmp= ac_tmp=
5526 root 1.1 trap 'exit_status=$?
5527 root 1.17 : "${ac_tmp:=$tmp}"
5528     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5529 root 1.1 ' 0
5530 root 1.7 trap 'as_fn_exit 1' 1 2 13 15
5531 root 1.1 }
5532     # Create a (secure) tmp directory for tmp files.
5533    
5534     {
5535     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5536 root 1.17 test -d "$tmp"
5537 root 1.1 } ||
5538     {
5539     tmp=./conf$$-$RANDOM
5540     (umask 077 && mkdir "$tmp")
5541 root 1.8 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5542 root 1.17 ac_tmp=$tmp
5543 root 1.7
5544     # Set up the scripts for CONFIG_HEADERS section.
5545     # No need to generate them if there are no CONFIG_HEADERS.
5546     # This happens for instance with `./config.status Makefile'.
5547     if test -n "$CONFIG_HEADERS"; then
5548 root 1.17 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5549 root 1.7 BEGIN {
5550     _ACEOF
5551    
5552     # Transform confdefs.h into an awk script `defines.awk', embedded as
5553     # here-document in config.status, that substitutes the proper values into
5554     # config.h.in to produce config.h.
5555    
5556     # Create a delimiter string that does not exist in confdefs.h, to ease
5557     # handling of long lines.
5558     ac_delim='%!_!# '
5559     for ac_last_try in false false :; do
5560 root 1.17 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5561     if test -z "$ac_tt"; then
5562 root 1.7 break
5563     elif $ac_last_try; then
5564 root 1.8 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5565 root 1.7 else
5566     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5567     fi
5568     done
5569    
5570     # For the awk script, D is an array of macro values keyed by name,
5571     # likewise P contains macro parameters if any. Preserve backslash
5572     # newline sequences.
5573    
5574     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5575     sed -n '
5576     s/.\{148\}/&'"$ac_delim"'/g
5577     t rset
5578     :rset
5579     s/^[ ]*#[ ]*define[ ][ ]*/ /
5580     t def
5581     d
5582     :def
5583     s/\\$//
5584     t bsnl
5585     s/["\\]/\\&/g
5586     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5587     D["\1"]=" \3"/p
5588     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5589     d
5590     :bsnl
5591     s/["\\]/\\&/g
5592     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5593     D["\1"]=" \3\\\\\\n"\\/p
5594     t cont
5595     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5596     t cont
5597     d
5598     :cont
5599     n
5600     s/.\{148\}/&'"$ac_delim"'/g
5601     t clear
5602     :clear
5603     s/\\$//
5604     t bsnlc
5605     s/["\\]/\\&/g; s/^/"/; s/$/"/p
5606     d
5607     :bsnlc
5608     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5609     b cont
5610     ' <confdefs.h | sed '
5611     s/'"$ac_delim"'/"\\\
5612     "/g' >>$CONFIG_STATUS || ac_write_fail=1
5613    
5614     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5615     for (key in D) D_is_set[key] = 1
5616     FS = ""
5617     }
5618     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5619     line = \$ 0
5620     split(line, arg, " ")
5621     if (arg[1] == "#") {
5622     defundef = arg[2]
5623     mac1 = arg[3]
5624     } else {
5625     defundef = substr(arg[1], 2)
5626     mac1 = arg[2]
5627     }
5628     split(mac1, mac2, "(") #)
5629     macro = mac2[1]
5630     prefix = substr(line, 1, index(line, defundef) - 1)
5631     if (D_is_set[macro]) {
5632     # Preserve the white space surrounding the "#".
5633     print prefix "define", macro P[macro] D[macro]
5634     next
5635     } else {
5636     # Replace #undef with comments. This is necessary, for example,
5637     # in the case of _POSIX_SOURCE, which is predefined and required
5638     # on some systems where configure will not decide to define it.
5639     if (defundef == "undef") {
5640     print "/*", prefix defundef, macro, "*/"
5641     next
5642     }
5643     }
5644     }
5645     { print }
5646     _ACAWK
5647     _ACEOF
5648     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5649 root 1.8 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5650 root 1.7 fi # test -n "$CONFIG_HEADERS"
5651 root 1.1
5652    
5653 root 1.7 eval set X " :H $CONFIG_HEADERS "
5654     shift
5655     for ac_tag
5656 root 1.1 do
5657     case $ac_tag in
5658     :[FHLC]) ac_mode=$ac_tag; continue;;
5659     esac
5660     case $ac_mode$ac_tag in
5661     :[FHL]*:*);;
5662 root 1.17 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5663 root 1.1 :[FH]-) ac_tag=-:-;;
5664     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5665     esac
5666     ac_save_IFS=$IFS
5667     IFS=:
5668     set x $ac_tag
5669     IFS=$ac_save_IFS
5670     shift
5671     ac_file=$1
5672     shift
5673    
5674     case $ac_mode in
5675     :L) ac_source=$1;;
5676     :[FH])
5677     ac_file_inputs=
5678     for ac_f
5679     do
5680     case $ac_f in
5681 root 1.17 -) ac_f="$ac_tmp/stdin";;
5682 root 1.1 *) # Look for the file first in the build tree, then in the source tree
5683     # (if the path is not absolute). The absolute path cannot be DOS-style,
5684     # because $ac_f cannot contain `:'.
5685     test -f "$ac_f" ||
5686     case $ac_f in
5687     [\\/$]*) false;;
5688     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5689     esac ||
5690 root 1.17 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5691 root 1.1 esac
5692 root 1.7 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5693     as_fn_append ac_file_inputs " '$ac_f'"
5694 root 1.1 done
5695    
5696     # Let's still pretend it is `configure' which instantiates (i.e., don't
5697     # use $as_me), people would be surprised to read:
5698     # /* config.h. Generated by config.status. */
5699 root 1.7 configure_input='Generated from '`
5700     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5701     `' by configure.'
5702 root 1.1 if test x"$ac_file" != x-; then
5703     configure_input="$ac_file. $configure_input"
5704 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5705     $as_echo "$as_me: creating $ac_file" >&6;}
5706 root 1.1 fi
5707 root 1.7 # Neutralize special characters interpreted by sed in replacement strings.
5708     case $configure_input in #(
5709     *\&* | *\|* | *\\* )
5710     ac_sed_conf_input=`$as_echo "$configure_input" |
5711     sed 's/[\\\\&|]/\\\\&/g'`;; #(
5712     *) ac_sed_conf_input=$configure_input;;
5713     esac
5714 root 1.1
5715     case $ac_tag in
5716 root 1.17 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5717     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5718 root 1.1 esac
5719     ;;
5720     esac
5721    
5722     ac_dir=`$as_dirname -- "$ac_file" ||
5723     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5724     X"$ac_file" : 'X\(//\)[^/]' \| \
5725     X"$ac_file" : 'X\(//\)$' \| \
5726     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5727 root 1.7 $as_echo X"$ac_file" |
5728 root 1.1 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5729     s//\1/
5730     q
5731     }
5732     /^X\(\/\/\)[^/].*/{
5733     s//\1/
5734     q
5735     }
5736     /^X\(\/\/\)$/{
5737     s//\1/
5738     q
5739     }
5740     /^X\(\/\).*/{
5741     s//\1/
5742     q
5743     }
5744     s/.*/./; q'`
5745 root 1.7 as_dir="$ac_dir"; as_fn_mkdir_p
5746 root 1.1 ac_builddir=.
5747    
5748     case "$ac_dir" in
5749     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5750     *)
5751 root 1.7 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5752 root 1.1 # A ".." for each directory in $ac_dir_suffix.
5753 root 1.7 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5754 root 1.1 case $ac_top_builddir_sub in
5755     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5756     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5757     esac ;;
5758     esac
5759     ac_abs_top_builddir=$ac_pwd
5760     ac_abs_builddir=$ac_pwd$ac_dir_suffix
5761     # for backward compatibility:
5762     ac_top_builddir=$ac_top_build_prefix
5763    
5764     case $srcdir in
5765     .) # We are building in place.
5766     ac_srcdir=.
5767     ac_top_srcdir=$ac_top_builddir_sub
5768     ac_abs_top_srcdir=$ac_pwd ;;
5769     [\\/]* | ?:[\\/]* ) # Absolute name.
5770     ac_srcdir=$srcdir$ac_dir_suffix;
5771     ac_top_srcdir=$srcdir
5772     ac_abs_top_srcdir=$srcdir ;;
5773     *) # Relative name.
5774     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5775     ac_top_srcdir=$ac_top_build_prefix$srcdir
5776     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5777     esac
5778     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5779    
5780    
5781     case $ac_mode in
5782    
5783     :H)
5784     #
5785     # CONFIG_HEADER
5786     #
5787     if test x"$ac_file" != x-; then
5788 root 1.7 {
5789     $as_echo "/* $configure_input */" \
5790 root 1.17 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5791     } >"$ac_tmp/config.h" \
5792 root 1.8 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5793 root 1.17 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5794 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5795     $as_echo "$as_me: $ac_file is unchanged" >&6;}
5796 root 1.1 else
5797 root 1.7 rm -f "$ac_file"
5798 root 1.17 mv "$ac_tmp/config.h" "$ac_file" \
5799 root 1.8 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5800 root 1.1 fi
5801     else
5802 root 1.7 $as_echo "/* $configure_input */" \
5803 root 1.17 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5804 root 1.8 || as_fn_error $? "could not create -" "$LINENO" 5
5805 root 1.1 fi
5806     ;;
5807    
5808    
5809     esac
5810    
5811     done # for ac_tag
5812    
5813    
5814 root 1.7 as_fn_exit 0
5815 root 1.1 _ACEOF
5816     ac_clean_files=$ac_clean_files_save
5817    
5818 root 1.7 test $ac_write_fail = 0 ||
5819 root 1.8 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5820 root 1.7
5821 root 1.1
5822     # configure is writing to config.log, and then calls config.status.
5823     # config.status does its own redirection, appending to config.log.
5824     # Unfortunately, on DOS this fails, as config.log is still kept open
5825     # by configure, so config.status won't be able to write to it; its
5826     # output is simply discarded. So we exec the FD to /dev/null,
5827     # effectively closing config.log, so it can be properly (re)opened and
5828     # appended to by config.status. When coming back to configure, we
5829     # need to make the FD available again.
5830     if test "$no_create" != yes; then
5831     ac_cs_success=:
5832     ac_config_status_args=
5833     test "$silent" = yes &&
5834     ac_config_status_args="$ac_config_status_args --quiet"
5835     exec 5>/dev/null
5836     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5837     exec 5>>config.log
5838     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5839     # would make configure fail if this is the last instruction.
5840 root 1.8 $ac_cs_success || as_fn_exit 1
5841 root 1.7 fi
5842     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5844     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5845 root 1.1 fi
5846    
5847 root 1.23