ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
Revision: 1.26
Committed: Tue Aug 14 11:50:43 2018 UTC (5 years, 9 months ago) by root
Branch: MAIN
CVS Tags: rel-4_54
Changes since 1.25: +17 -5 lines
Log Message:
*** empty log message ***

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     #include <fcntl.h>
3968     int main (void)
3969     {
3970     int fd = 0;
3971     size_t count = 2;
3972     ssize_t res;
3973     res = readahead (fd, 0, count);
3974     return 0;
3975     }
3976    
3977     _ACEOF
3978     if ac_fn_c_try_link "$LINENO"; then :
3979     ac_cv_readahead=yes
3980     else
3981     ac_cv_readahead=no
3982     fi
3983     rm -f core conftest.err conftest.$ac_objext \
3984     conftest$ac_exeext conftest.$ac_ext
3985     fi
3986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5
3987     $as_echo "$ac_cv_readahead" >&6; }
3988     test $ac_cv_readahead = yes &&
3989     $as_echo "#define HAVE_READAHEAD 1" >>confdefs.h
3990    
3991    
3992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
3993     $as_echo_n "checking for fdatasync... " >&6; }
3994 root 1.17 if ${ac_cv_fdatasync+:} false; then :
3995 root 1.7 $as_echo_n "(cached) " >&6
3996 root 1.1 else
3997 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998     /* end confdefs.h. */
3999 root 1.1
4000     #include <unistd.h>
4001 root 1.8 int main (void)
4002 root 1.1 {
4003     int fd = 0;
4004     fdatasync (fd);
4005     return 0;
4006     }
4007    
4008     _ACEOF
4009 root 1.7 if ac_fn_c_try_link "$LINENO"; then :
4010 root 1.1 ac_cv_fdatasync=yes
4011     else
4012 root 1.7 ac_cv_fdatasync=no
4013 root 1.1 fi
4014 root 1.7 rm -f core conftest.err conftest.$ac_objext \
4015     conftest$ac_exeext conftest.$ac_ext
4016 root 1.1 fi
4017 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5
4018     $as_echo "$ac_cv_fdatasync" >&6; }
4019 root 1.1 test $ac_cv_fdatasync = yes &&
4020 root 1.7 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
4021 root 1.1
4022    
4023 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5
4024     $as_echo_n "checking for sendfile... " >&6; }
4025 root 1.17 if ${ac_cv_sendfile+:} false; then :
4026 root 1.7 $as_echo_n "(cached) " >&6
4027 root 1.1 else
4028 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029     /* end confdefs.h. */
4030 root 1.1
4031     # include <sys/types.h>
4032     #if __linux
4033     # include <sys/sendfile.h>
4034 root 1.8 #elif __FreeBSD__ || defined __APPLE__
4035 root 1.1 # include <sys/socket.h>
4036     # include <sys/uio.h>
4037     #elif __hpux
4038     # include <sys/socket.h>
4039     #else
4040     # error unsupported architecture
4041     #endif
4042 root 1.8 int main (void)
4043 root 1.1 {
4044     int fd = 0;
4045     off_t offset = 1;
4046     size_t count = 2;
4047     ssize_t res;
4048     #if __linux
4049 root 1.18 res = sendfile (fd, fd, &offset, count);
4050 root 1.8 #elif __FreeBSD__
4051 root 1.1 res = sendfile (fd, fd, offset, count, 0, &offset, 0);
4052     #elif __hpux
4053     res = sendfile (fd, fd, offset, count, 0, 0);
4054     #endif
4055     return 0;
4056     }
4057    
4058     _ACEOF
4059 root 1.7 if ac_fn_c_try_link "$LINENO"; then :
4060 root 1.1 ac_cv_sendfile=yes
4061     else
4062 root 1.7 ac_cv_sendfile=no
4063 root 1.1 fi
4064 root 1.7 rm -f core conftest.err conftest.$ac_objext \
4065     conftest$ac_exeext conftest.$ac_ext
4066 root 1.1 fi
4067 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5
4068     $as_echo "$ac_cv_sendfile" >&6; }
4069 root 1.1 test $ac_cv_sendfile = yes &&
4070 root 1.7 $as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
4071 root 1.1
4072    
4073 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5
4074     $as_echo_n "checking for sync_file_range... " >&6; }
4075 root 1.17 if ${ac_cv_sync_file_range+:} false; then :
4076 root 1.7 $as_echo_n "(cached) " >&6
4077 root 1.6 else
4078 root 1.7 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079     /* end confdefs.h. */
4080 root 1.6
4081     #include <fcntl.h>
4082 root 1.8 int main (void)
4083 root 1.6 {
4084     int fd = 0;
4085     off64_t offset = 1;
4086     off64_t nbytes = 1;
4087     unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER;
4088     ssize_t res;
4089     res = sync_file_range (fd, offset, nbytes, flags);
4090     return 0;
4091     }
4092    
4093     _ACEOF
4094 root 1.7 if ac_fn_c_try_link "$LINENO"; then :
4095 root 1.6 ac_cv_sync_file_range=yes
4096     else
4097 root 1.7 ac_cv_sync_file_range=no
4098 root 1.6 fi
4099 root 1.7 rm -f core conftest.err conftest.$ac_objext \
4100     conftest$ac_exeext conftest.$ac_ext
4101 root 1.6 fi
4102 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5
4103     $as_echo "$ac_cv_sync_file_range" >&6; }
4104 root 1.6 test $ac_cv_sync_file_range = yes &&
4105 root 1.7 $as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
4106 root 1.6
4107    
4108 root 1.10 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
4109     $as_echo_n "checking for fallocate... " >&6; }
4110 root 1.17 if ${ac_cv_linux_fallocate+:} false; then :
4111 root 1.10 $as_echo_n "(cached) " >&6
4112     else
4113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114     /* end confdefs.h. */
4115    
4116     #include <fcntl.h>
4117     int main (void)
4118     {
4119     int fd = 0;
4120 root 1.11 int mode = 0;
4121 root 1.10 off_t offset = 1;
4122     off_t len = 1;
4123     int res;
4124     res = fallocate (fd, mode, offset, len);
4125     return 0;
4126     }
4127    
4128     _ACEOF
4129     if ac_fn_c_try_link "$LINENO"; then :
4130 root 1.15 ac_cv_linux_fallocate=yes
4131 root 1.10 else
4132 root 1.15 ac_cv_linux_fallocate=no
4133 root 1.10 fi
4134     rm -f core conftest.err conftest.$ac_objext \
4135     conftest$ac_exeext conftest.$ac_ext
4136     fi
4137 root 1.16 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5
4138     $as_echo "$ac_cv_linux_fallocate" >&6; }
4139 root 1.15 test $ac_cv_linux_fallocate = yes &&
4140     $as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h
4141 root 1.10
4142 root 1.1
4143 root 1.12 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5
4144     $as_echo_n "checking for sys_syncfs... " >&6; }
4145 root 1.17 if ${ac_cv_sys_syncfs+:} false; then :
4146 root 1.12 $as_echo_n "(cached) " >&6
4147     else
4148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149     /* end confdefs.h. */
4150    
4151     #include <unistd.h>
4152     #include <sys/syscall.h>
4153     int main (void)
4154     {
4155     int res = syscall (__NR_syncfs, (int)0);
4156     }
4157    
4158     _ACEOF
4159     if ac_fn_c_try_link "$LINENO"; then :
4160     ac_cv_sys_syncfs=yes
4161     else
4162     ac_cv_sys_syncfs=no
4163     fi
4164     rm -f core conftest.err conftest.$ac_objext \
4165     conftest$ac_exeext conftest.$ac_ext
4166     fi
4167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5
4168     $as_echo "$ac_cv_sys_syncfs" >&6; }
4169     test $ac_cv_sys_syncfs = yes &&
4170     $as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h
4171    
4172    
4173 root 1.13 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5
4174     $as_echo_n "checking for prctl_set_name... " >&6; }
4175 root 1.17 if ${ac_cv_prctl_set_name+:} false; then :
4176 root 1.13 $as_echo_n "(cached) " >&6
4177     else
4178     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179     /* end confdefs.h. */
4180    
4181     #include <sys/prctl.h>
4182     int main (void)
4183     {
4184 root 1.18 char *name = "test123";
4185 root 1.13 int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0);
4186     }
4187    
4188     _ACEOF
4189     if ac_fn_c_try_link "$LINENO"; then :
4190     ac_cv_prctl_set_name=yes
4191     else
4192     ac_cv_prctl_set_name=no
4193     fi
4194     rm -f core conftest.err conftest.$ac_objext \
4195     conftest$ac_exeext conftest.$ac_ext
4196     fi
4197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5
4198     $as_echo "$ac_cv_prctl_set_name" >&6; }
4199     test $ac_cv_prctl_set_name = yes &&
4200     $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
4201    
4202    
4203 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5
4204     $as_echo_n "checking for posix_close... " >&6; }
4205     if ${ac_cv_posix_close+:} false; then :
4206     $as_echo_n "(cached) " >&6
4207     else
4208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209     /* end confdefs.h. */
4210    
4211     #include <unistd.h>
4212     int res;
4213     int main (void)
4214     {
4215     res = posix_close (0, 0); /* we do not need any flags */
4216     return 0;
4217     }
4218    
4219     _ACEOF
4220     if ac_fn_c_try_link "$LINENO"; then :
4221     ac_cv_posix_close=yes
4222     else
4223     ac_cv_posix_close=no
4224     fi
4225     rm -f core conftest.err conftest.$ac_objext \
4226     conftest$ac_exeext conftest.$ac_ext
4227     fi
4228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5
4229     $as_echo "$ac_cv_posix_close" >&6; }
4230     test $ac_cv_posix_close = yes &&
4231     $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h
4232    
4233    
4234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5
4235     $as_echo_n "checking for renameat2... " >&6; }
4236     if ${ac_cv_renameat2+:} false; then :
4237     $as_echo_n "(cached) " >&6
4238     else
4239     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240     /* end confdefs.h. */
4241    
4242     #include <unistd.h>
4243     #include <sys/syscall.h>
4244     #include <linux/fs.h>
4245     int res;
4246     int main (void)
4247     {
4248     res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE);
4249     return 0;
4250     }
4251    
4252     _ACEOF
4253     if ac_fn_c_try_link "$LINENO"; then :
4254     ac_cv_renameat2=yes
4255     else
4256     ac_cv_renameat2=no
4257     fi
4258     rm -f core conftest.err conftest.$ac_objext \
4259     conftest$ac_exeext conftest.$ac_ext
4260     fi
4261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5
4262     $as_echo "$ac_cv_renameat2" >&6; }
4263     test $ac_cv_renameat2 = yes &&
4264     $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h
4265    
4266    
4267    
4268    
4269     # for these to work, you need to run autoheader in IO::AIO, not libeio :(
4270 root 1.1
4271 root 1.20 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5
4272     $as_echo_n "checking for set/getrlimit... " >&6; }
4273     if ${ac_cv_rlimits+:} false; then :
4274     $as_echo_n "(cached) " >&6
4275     else
4276     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277     /* end confdefs.h. */
4278    
4279     #include <sys/time.h>
4280     #include <sys/resource.h>
4281     int res;
4282     int main (void)
4283     {
4284     struct rlimit srl;
4285     srl.rlim_cur = srl.rlim_max = RLIM_INFINITY;
4286     res = getrlimit (RLIMIT_NOFILE, &srl);
4287     res = setrlimit (RLIMIT_NOFILE, &srl);
4288     return 0;
4289     }
4290    
4291     _ACEOF
4292     if ac_fn_c_try_link "$LINENO"; then :
4293     ac_cv_rlimits=yes
4294     else
4295     ac_cv_rlimits=no
4296     fi
4297     rm -f core conftest.err conftest.$ac_objext \
4298     conftest$ac_exeext conftest.$ac_ext
4299     fi
4300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5
4301     $as_echo "$ac_cv_rlimits" >&6; }
4302     test $ac_cv_rlimits = yes &&
4303     $as_echo "#define HAVE_RLIMITS 1" >>confdefs.h
4304    
4305    
4306 root 1.8 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
4307     $as_echo_n "checking for posix_madvise... " >&6; }
4308 root 1.17 if ${ac_cv_posix_madvise+:} false; then :
4309 root 1.8 $as_echo_n "(cached) " >&6
4310     else
4311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312     /* end confdefs.h. */
4313    
4314     #include <sys/mman.h>
4315     int main (void)
4316     {
4317     int res = posix_madvise ((void *)0, (size_t)0, POSIX_MADV_NORMAL);
4318     int a = POSIX_MADV_SEQUENTIAL;
4319     int b = POSIX_MADV_RANDOM;
4320     int c = POSIX_MADV_WILLNEED;
4321     int d = POSIX_MADV_DONTNEED;
4322     return 0;
4323     }
4324    
4325     _ACEOF
4326     if ac_fn_c_try_link "$LINENO"; then :
4327     ac_cv_posix_madvise=yes
4328     else
4329     ac_cv_posix_madvise=no
4330     fi
4331     rm -f core conftest.err conftest.$ac_objext \
4332     conftest$ac_exeext conftest.$ac_ext
4333     fi
4334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5
4335     $as_echo "$ac_cv_posix_madvise" >&6; }
4336     test $ac_cv_posix_madvise = yes &&
4337     $as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h
4338    
4339    
4340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
4341     $as_echo_n "checking for posix_fadvise... " >&6; }
4342 root 1.17 if ${ac_cv_posix_fadvise+:} false; then :
4343 root 1.8 $as_echo_n "(cached) " >&6
4344     else
4345     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346     /* end confdefs.h. */
4347    
4348     #define _XOPEN_SOURCE 600
4349     #include <fcntl.h>
4350     int main (void)
4351     {
4352     int res = posix_fadvise ((int)0, (off_t)0, (off_t)0, POSIX_FADV_NORMAL);
4353     int a = POSIX_FADV_SEQUENTIAL;
4354     int b = POSIX_FADV_NOREUSE;
4355     int c = POSIX_FADV_RANDOM;
4356     int d = POSIX_FADV_WILLNEED;
4357     int e = POSIX_FADV_DONTNEED;
4358     return 0;
4359     }
4360    
4361     _ACEOF
4362     if ac_fn_c_try_link "$LINENO"; then :
4363     ac_cv_posix_fadvise=yes
4364     else
4365     ac_cv_posix_fadvise=no
4366     fi
4367     rm -f core conftest.err conftest.$ac_objext \
4368     conftest$ac_exeext conftest.$ac_ext
4369     fi
4370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5
4371     $as_echo "$ac_cv_posix_fadvise" >&6; }
4372     test $ac_cv_posix_fadvise = yes &&
4373     $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
4374    
4375    
4376 root 1.15 for ac_header in linux/fs.h linux/fiemap.h
4377     do :
4378     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4379     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4380     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4381     cat >>confdefs.h <<_ACEOF
4382     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4383     _ACEOF
4384    
4385     fi
4386    
4387     done
4388    
4389    
4390 root 1.26 for ac_header in sys/sysmacros.h
4391 root 1.25 do :
4392 root 1.26 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4393     if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
4394 root 1.25 cat >>confdefs.h <<_ACEOF
4395 root 1.26 #define HAVE_SYS_SYSMACROS_H 1
4396     _ACEOF
4397    
4398     fi
4399    
4400     done
4401    
4402    
4403     for ac_header in sys/mkdev.h
4404     do :
4405     ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4406     if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
4407     cat >>confdefs.h <<_ACEOF
4408     #define HAVE_SYS_MKDEV_H 1
4409 root 1.25 _ACEOF
4410    
4411     fi
4412    
4413     done
4414    
4415    
4416 root 1.15 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5
4417     $as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4418 root 1.17 if ${ac_cv_linux_splice+:} false; then :
4419 root 1.15 $as_echo_n "(cached) " >&6
4420     else
4421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422     /* end confdefs.h. */
4423    
4424     #include <fcntl.h>
4425     int main (void)
4426     {
4427     ssize_t res;
4428     res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
4429     res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
4430     res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT);
4431     return 0;
4432     }
4433    
4434     _ACEOF
4435     if ac_fn_c_try_link "$LINENO"; then :
4436     ac_cv_linux_splice=yes
4437     else
4438     ac_cv_linux_splice=no
4439     fi
4440     rm -f core conftest.err conftest.$ac_objext \
4441     conftest$ac_exeext conftest.$ac_ext
4442     fi
4443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5
4444     $as_echo "$ac_cv_linux_splice" >&6; }
4445     test $ac_cv_linux_splice = yes &&
4446     $as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h
4447    
4448    
4449 root 1.17 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5
4450     $as_echo_n "checking for pipe2... " >&6; }
4451     if ${ac_cv_pipe2+:} false; then :
4452     $as_echo_n "(cached) " >&6
4453     else
4454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455     /* end confdefs.h. */
4456    
4457     #include <fcntl.h>
4458     #include <unistd.h>
4459     int res;
4460     int main (void)
4461     {
4462     res = pipe2 (0, 0);
4463     return 0;
4464     }
4465    
4466     _ACEOF
4467     if ac_fn_c_try_link "$LINENO"; then :
4468     ac_cv_pipe2=yes
4469     else
4470     ac_cv_pipe2=no
4471     fi
4472     rm -f core conftest.err conftest.$ac_objext \
4473     conftest$ac_exeext conftest.$ac_ext
4474     fi
4475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5
4476     $as_echo "$ac_cv_pipe2" >&6; }
4477     test $ac_cv_pipe2 = yes &&
4478     $as_echo "#define HAVE_PIPE2 1" >>confdefs.h
4479    
4480    
4481 root 1.21 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
4482     $as_echo_n "checking for eventfd... " >&6; }
4483     if ${ac_cv_eventfd+:} false; then :
4484     $as_echo_n "(cached) " >&6
4485     else
4486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487     /* end confdefs.h. */
4488    
4489     #include <sys/eventfd.h>
4490     int res;
4491     int main (void)
4492     {
4493     res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4494     return 0;
4495     }
4496    
4497     _ACEOF
4498     if ac_fn_c_try_link "$LINENO"; then :
4499     ac_cv_eventfd=yes
4500     else
4501     ac_cv_eventfd=no
4502     fi
4503     rm -f core conftest.err conftest.$ac_objext \
4504     conftest$ac_exeext conftest.$ac_ext
4505     fi
4506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5
4507     $as_echo "$ac_cv_eventfd" >&6; }
4508     test $ac_cv_eventfd = yes &&
4509     $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
4510    
4511    
4512 root 1.22 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5
4513     $as_echo_n "checking for timerfd... " >&6; }
4514     if ${ac_cv_timerfd+:} false; then :
4515     $as_echo_n "(cached) " >&6
4516     else
4517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518     /* end confdefs.h. */
4519    
4520     #include <sys/timerfd.h>
4521     int res;
4522     int main (void)
4523     {
4524     struct itimerspec its;
4525     res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
4526     res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
4527     res = timerfd_gettime (res, &its);
4528     return 0;
4529     }
4530    
4531     _ACEOF
4532     if ac_fn_c_try_link "$LINENO"; then :
4533     ac_cv_timerfd=yes
4534     else
4535     ac_cv_timerfd=no
4536     fi
4537     rm -f core conftest.err conftest.$ac_objext \
4538     conftest$ac_exeext conftest.$ac_ext
4539     fi
4540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5
4541     $as_echo "$ac_cv_timerfd" >&6; }
4542     test $ac_cv_timerfd = yes &&
4543     $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
4544    
4545    
4546 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4547     $as_echo_n "checking for copy_file_range... " >&6; }
4548     if ${ac_cv_copy_file_range+:} false; then :
4549 root 1.18 $as_echo_n "(cached) " >&6
4550     else
4551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552     /* end confdefs.h. */
4553    
4554     #include <unistd.h>
4555     #include <sys/syscall.h>
4556 root 1.23 /*#include <linux/copy.h>*/
4557 root 1.18 int res;
4558     int main (void)
4559     {
4560 root 1.23 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
4561     res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
4562 root 1.18 return 0;
4563     }
4564    
4565     _ACEOF
4566     if ac_fn_c_try_link "$LINENO"; then :
4567 root 1.23 ac_cv_copy_file_range=yes
4568 root 1.18 else
4569 root 1.23 ac_cv_copy_file_range=no
4570 root 1.18 fi
4571     rm -f core conftest.err conftest.$ac_objext \
4572     conftest$ac_exeext conftest.$ac_ext
4573     fi
4574 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5
4575     $as_echo "$ac_cv_copy_file_range" >&6; }
4576     test $ac_cv_copy_file_range = yes &&
4577     $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
4578 root 1.18
4579    
4580 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5
4581     $as_echo_n "checking for st_xtimensec... " >&6; }
4582     if ${ac_cv_xtimensec+:} false; then :
4583 root 1.19 $as_echo_n "(cached) " >&6
4584     else
4585     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586     /* end confdefs.h. */
4587    
4588 root 1.23 #include "EXTERN.h"
4589     #include "perl.h"
4590     #include "XSUB.h"
4591    
4592 root 1.19 int res;
4593     int main (void)
4594     {
4595 root 1.23 return PL_statcache.st_atimensec
4596     + PL_statcache.st_mtimensec
4597     + PL_statcache.st_ctimensec;
4598 root 1.19 return 0;
4599     }
4600    
4601     _ACEOF
4602 root 1.23 if ac_fn_c_try_compile "$LINENO"; then :
4603     ac_cv_xtimensec=yes
4604 root 1.19 else
4605 root 1.23 ac_cv_xtimensec=no
4606 root 1.19 fi
4607 root 1.23 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 root 1.19 fi
4609 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5
4610     $as_echo "$ac_cv_xtimensec" >&6; }
4611     test $ac_cv_xtimensec = yes &&
4612     $as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h
4613 root 1.19
4614    
4615 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5
4616     $as_echo_n "checking for st_xtimespec... " >&6; }
4617     if ${ac_cv_xtimespec+:} false; then :
4618 root 1.21 $as_echo_n "(cached) " >&6
4619     else
4620     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621     /* end confdefs.h. */
4622    
4623 root 1.23 #include "EXTERN.h"
4624     #include "perl.h"
4625     #include "XSUB.h"
4626    
4627 root 1.21 int res;
4628     int main (void)
4629     {
4630 root 1.23 return PL_statcache.st_atim.tv_nsec
4631     + PL_statcache.st_mtim.tv_nsec
4632     + PL_statcache.st_ctim.tv_nsec;
4633 root 1.21 }
4634    
4635     _ACEOF
4636 root 1.23 if ac_fn_c_try_compile "$LINENO"; then :
4637     ac_cv_xtimespec=yes
4638 root 1.21 else
4639 root 1.23 ac_cv_xtimespec=no
4640 root 1.21 fi
4641 root 1.23 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 root 1.21 fi
4643 root 1.23 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5
4644     $as_echo "$ac_cv_xtimespec" >&6; }
4645     test $ac_cv_xtimespec = yes &&
4646     $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4647 root 1.18
4648    
4649 root 1.24 # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
4650    
4651 root 1.1 cat >confcache <<\_ACEOF
4652     # This file is a shell script that caches the results of configure
4653     # tests run on this system so they can be shared between configure
4654     # scripts and configure runs, see configure's option --config-cache.
4655     # It is not useful on other systems. If it contains results you don't
4656     # want to keep, you may remove or edit it.
4657     #
4658     # config.status only pays attention to the cache file if you give it
4659     # the --recheck option to rerun configure.
4660     #
4661     # `ac_cv_env_foo' variables (set or unset) will be overridden when
4662     # loading this file, other *unset* `ac_cv_foo' will be assigned the
4663     # following values.
4664    
4665     _ACEOF
4666    
4667     # The following way of writing the cache mishandles newlines in values,
4668     # but we know of no workaround that is simple, portable, and efficient.
4669     # So, we kill variables containing newlines.
4670     # Ultrix sh set writes to stderr and can't be redirected directly,
4671     # and sets the high bit in the cache file unless we assign to the vars.
4672     (
4673     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4674     eval ac_val=\$$ac_var
4675     case $ac_val in #(
4676     *${as_nl}*)
4677     case $ac_var in #(
4678 root 1.7 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4679     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4680 root 1.1 esac
4681     case $ac_var in #(
4682     _ | IFS | as_nl) ;; #(
4683 root 1.7 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4684     *) { eval $ac_var=; unset $ac_var;} ;;
4685 root 1.1 esac ;;
4686     esac
4687     done
4688    
4689     (set) 2>&1 |
4690     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4691     *${as_nl}ac_space=\ *)
4692 root 1.7 # `set' does not quote correctly, so add quotes: double-quote
4693     # substitution turns \\\\ into \\, and sed turns \\ into \.
4694 root 1.1 sed -n \
4695     "s/'/'\\\\''/g;
4696     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4697     ;; #(
4698     *)
4699     # `set' quotes correctly as required by POSIX, so do not add quotes.
4700     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4701     ;;
4702     esac |
4703     sort
4704     ) |
4705     sed '
4706     /^ac_cv_env_/b end
4707     t clear
4708     :clear
4709     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4710     t end
4711     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4712     :end' >>confcache
4713     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4714     if test -w "$cache_file"; then
4715 root 1.17 if test "x$cache_file" != "x/dev/null"; then
4716 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4717     $as_echo "$as_me: updating cache $cache_file" >&6;}
4718 root 1.17 if test ! -f "$cache_file" || test -h "$cache_file"; then
4719     cat confcache >"$cache_file"
4720     else
4721     case $cache_file in #(
4722     */* | ?:*)
4723     mv -f confcache "$cache_file"$$ &&
4724     mv -f "$cache_file"$$ "$cache_file" ;; #(
4725     *)
4726     mv -f confcache "$cache_file" ;;
4727     esac
4728     fi
4729     fi
4730 root 1.1 else
4731 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4732     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4733 root 1.1 fi
4734     fi
4735     rm -f confcache
4736    
4737     test "x$prefix" = xNONE && prefix=$ac_default_prefix
4738     # Let make expand exec_prefix.
4739     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4740    
4741     DEFS=-DHAVE_CONFIG_H
4742    
4743     ac_libobjs=
4744     ac_ltlibobjs=
4745 root 1.8 U=
4746 root 1.1 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4747     # 1. Remove the extension, and $U if already installed.
4748     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4749 root 1.7 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4750 root 1.1 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4751     # will be set to the directory where LIBOBJS objects are built.
4752 root 1.7 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4753     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4754 root 1.1 done
4755     LIBOBJS=$ac_libobjs
4756    
4757     LTLIBOBJS=$ac_ltlibobjs
4758    
4759    
4760    
4761 root 1.17 : "${CONFIG_STATUS=./config.status}"
4762 root 1.7 ac_write_fail=0
4763 root 1.1 ac_clean_files_save=$ac_clean_files
4764     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4765 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4766     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4767     as_write_fail=0
4768     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4769 root 1.1 #! $SHELL
4770     # Generated by $as_me.
4771     # Run this file to recreate the current configuration.
4772     # Compiler output produced by configure, useful for debugging
4773     # configure, is in config.log if it exists.
4774    
4775     debug=false
4776     ac_cs_recheck=false
4777     ac_cs_silent=false
4778 root 1.7
4779 root 1.1 SHELL=\${CONFIG_SHELL-$SHELL}
4780 root 1.7 export SHELL
4781     _ASEOF
4782     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4783     ## -------------------- ##
4784     ## M4sh Initialization. ##
4785     ## -------------------- ##
4786 root 1.1
4787     # Be more Bourne compatible
4788     DUALCASE=1; export DUALCASE # for MKS sh
4789 root 1.7 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4790 root 1.1 emulate sh
4791     NULLCMD=:
4792 root 1.7 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4793 root 1.1 # is contrary to our usage. Disable this feature.
4794     alias -g '${1+"$@"}'='"$@"'
4795     setopt NO_GLOB_SUBST
4796     else
4797 root 1.7 case `(set -o) 2>/dev/null` in #(
4798     *posix*) :
4799     set -o posix ;; #(
4800     *) :
4801     ;;
4802 root 1.1 esac
4803     fi
4804    
4805    
4806 root 1.7 as_nl='
4807     '
4808     export as_nl
4809     # Printing a long string crashes Solaris 7 /usr/bin/printf.
4810     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4811     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4812     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4813     # Prefer a ksh shell builtin over an external printf program on Solaris,
4814     # but without wasting forks for bash or zsh.
4815     if test -z "$BASH_VERSION$ZSH_VERSION" \
4816     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4817     as_echo='print -r --'
4818     as_echo_n='print -rn --'
4819     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4820     as_echo='printf %s\n'
4821     as_echo_n='printf %s'
4822     else
4823     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4824     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4825     as_echo_n='/usr/ucb/echo -n'
4826 root 1.1 else
4827 root 1.7 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4828     as_echo_n_body='eval
4829     arg=$1;
4830     case $arg in #(
4831     *"$as_nl"*)
4832     expr "X$arg" : "X\\(.*\\)$as_nl";
4833     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4834     esac;
4835     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4836     '
4837     export as_echo_n_body
4838     as_echo_n='sh -c $as_echo_n_body as_echo'
4839 root 1.1 fi
4840 root 1.7 export as_echo_body
4841     as_echo='sh -c $as_echo_body as_echo'
4842 root 1.1 fi
4843    
4844 root 1.7 # The user is always right.
4845     if test "${PATH_SEPARATOR+set}" != set; then
4846     PATH_SEPARATOR=:
4847     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4848     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4849     PATH_SEPARATOR=';'
4850     }
4851 root 1.1 fi
4852    
4853    
4854     # IFS
4855     # We need space, tab and new line, in precisely that order. Quoting is
4856     # there to prevent editors from complaining about space-tab.
4857     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4858     # splitting by setting IFS to empty value.)
4859     IFS=" "" $as_nl"
4860    
4861     # Find who we are. Look in the path if we contain no directory separator.
4862 root 1.17 as_myself=
4863 root 1.7 case $0 in #((
4864 root 1.1 *[\\/]* ) as_myself=$0 ;;
4865     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866     for as_dir in $PATH
4867     do
4868     IFS=$as_save_IFS
4869     test -z "$as_dir" && as_dir=.
4870 root 1.7 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4871     done
4872 root 1.1 IFS=$as_save_IFS
4873    
4874     ;;
4875     esac
4876     # We did not find ourselves, most probably we were run as `sh COMMAND'
4877     # in which case we are not to be found in the path.
4878     if test "x$as_myself" = x; then
4879     as_myself=$0
4880     fi
4881     if test ! -f "$as_myself"; then
4882 root 1.7 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4883     exit 1
4884 root 1.1 fi
4885    
4886 root 1.7 # Unset variables that we do not need and which cause bugs (e.g. in
4887     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4888     # suppresses any "Segmentation fault" message there. '((' could
4889     # trigger a bug in pdksh 5.2.14.
4890     for as_var in BASH_ENV ENV MAIL MAILPATH
4891     do eval test x\${$as_var+set} = xset \
4892     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4893 root 1.1 done
4894     PS1='$ '
4895     PS2='> '
4896     PS4='+ '
4897    
4898     # NLS nuisances.
4899 root 1.7 LC_ALL=C
4900     export LC_ALL
4901     LANGUAGE=C
4902     export LANGUAGE
4903    
4904     # CDPATH.
4905     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4906    
4907    
4908 root 1.8 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4909     # ----------------------------------------
4910 root 1.7 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4911     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4912 root 1.8 # script with STATUS, using 1 if that was 0.
4913 root 1.7 as_fn_error ()
4914     {
4915 root 1.8 as_status=$1; test $as_status -eq 0 && as_status=1
4916     if test "$4"; then
4917     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4918     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4919 root 1.7 fi
4920 root 1.8 $as_echo "$as_me: error: $2" >&2
4921 root 1.7 as_fn_exit $as_status
4922     } # as_fn_error
4923    
4924    
4925     # as_fn_set_status STATUS
4926     # -----------------------
4927     # Set $? to STATUS, without forking.
4928     as_fn_set_status ()
4929     {
4930     return $1
4931     } # as_fn_set_status
4932    
4933     # as_fn_exit STATUS
4934     # -----------------
4935     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4936     as_fn_exit ()
4937     {
4938     set +e
4939     as_fn_set_status $1
4940     exit $1
4941     } # as_fn_exit
4942    
4943     # as_fn_unset VAR
4944     # ---------------
4945     # Portably unset VAR.
4946     as_fn_unset ()
4947     {
4948     { eval $1=; unset $1;}
4949     }
4950     as_unset=as_fn_unset
4951     # as_fn_append VAR VALUE
4952     # ----------------------
4953     # Append the text in VALUE to the end of the definition contained in VAR. Take
4954     # advantage of any shell optimizations that allow amortized linear growth over
4955     # repeated appends, instead of the typical quadratic growth present in naive
4956     # implementations.
4957     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4958     eval 'as_fn_append ()
4959     {
4960     eval $1+=\$2
4961     }'
4962     else
4963     as_fn_append ()
4964     {
4965     eval $1=\$$1\$2
4966     }
4967     fi # as_fn_append
4968    
4969     # as_fn_arith ARG...
4970     # ------------------
4971     # Perform arithmetic evaluation on the ARGs, and store the result in the
4972     # global $as_val. Take advantage of shells that can avoid forks. The arguments
4973     # must be portable across $(()) and expr.
4974     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4975     eval 'as_fn_arith ()
4976     {
4977     as_val=$(( $* ))
4978     }'
4979     else
4980     as_fn_arith ()
4981     {
4982     as_val=`expr "$@" || test $? -eq 1`
4983     }
4984     fi # as_fn_arith
4985    
4986 root 1.1
4987     if expr a : '\(a\)' >/dev/null 2>&1 &&
4988     test "X`expr 00001 : '.*\(...\)'`" = X001; then
4989     as_expr=expr
4990     else
4991     as_expr=false
4992     fi
4993    
4994     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4995     as_basename=basename
4996     else
4997     as_basename=false
4998     fi
4999    
5000 root 1.7 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5001     as_dirname=dirname
5002     else
5003     as_dirname=false
5004     fi
5005 root 1.1
5006     as_me=`$as_basename -- "$0" ||
5007     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5008     X"$0" : 'X\(//\)$' \| \
5009     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5010 root 1.7 $as_echo X/"$0" |
5011 root 1.1 sed '/^.*\/\([^/][^/]*\)\/*$/{
5012     s//\1/
5013     q
5014     }
5015     /^X\/\(\/\/\)$/{
5016     s//\1/
5017     q
5018     }
5019     /^X\/\(\/\).*/{
5020     s//\1/
5021     q
5022     }
5023     s/.*/./; q'`
5024    
5025 root 1.7 # Avoid depending upon Character Ranges.
5026     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5027     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5028     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5029     as_cr_digits='0123456789'
5030     as_cr_alnum=$as_cr_Letters$as_cr_digits
5031 root 1.1
5032     ECHO_C= ECHO_N= ECHO_T=
5033 root 1.7 case `echo -n x` in #(((((
5034 root 1.1 -n*)
5035 root 1.7 case `echo 'xy\c'` in
5036 root 1.1 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5037 root 1.7 xy) ECHO_C='\c';;
5038     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5039     ECHO_T=' ';;
5040 root 1.1 esac;;
5041     *)
5042     ECHO_N='-n';;
5043     esac
5044    
5045     rm -f conf$$ conf$$.exe conf$$.file
5046     if test -d conf$$.dir; then
5047     rm -f conf$$.dir/conf$$.file
5048     else
5049     rm -f conf$$.dir
5050 root 1.7 mkdir conf$$.dir 2>/dev/null
5051 root 1.1 fi
5052 root 1.7 if (echo >conf$$.file) 2>/dev/null; then
5053     if ln -s conf$$.file conf$$ 2>/dev/null; then
5054     as_ln_s='ln -s'
5055     # ... but there are two gotchas:
5056     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5057     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5058 root 1.17 # In both cases, we have to default to `cp -pR'.
5059 root 1.7 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5060 root 1.17 as_ln_s='cp -pR'
5061 root 1.7 elif ln conf$$.file conf$$ 2>/dev/null; then
5062     as_ln_s=ln
5063     else
5064 root 1.17 as_ln_s='cp -pR'
5065 root 1.7 fi
5066 root 1.1 else
5067 root 1.17 as_ln_s='cp -pR'
5068 root 1.1 fi
5069     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5070     rmdir conf$$.dir 2>/dev/null
5071    
5072 root 1.7
5073     # as_fn_mkdir_p
5074     # -------------
5075     # Create "$as_dir" as a directory, including parents if necessary.
5076     as_fn_mkdir_p ()
5077     {
5078    
5079     case $as_dir in #(
5080     -*) as_dir=./$as_dir;;
5081     esac
5082     test -d "$as_dir" || eval $as_mkdir_p || {
5083     as_dirs=
5084     while :; do
5085     case $as_dir in #(
5086     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5087     *) as_qdir=$as_dir;;
5088     esac
5089     as_dirs="'$as_qdir' $as_dirs"
5090     as_dir=`$as_dirname -- "$as_dir" ||
5091     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5092     X"$as_dir" : 'X\(//\)[^/]' \| \
5093     X"$as_dir" : 'X\(//\)$' \| \
5094     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5095     $as_echo X"$as_dir" |
5096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5097     s//\1/
5098     q
5099     }
5100     /^X\(\/\/\)[^/].*/{
5101     s//\1/
5102     q
5103     }
5104     /^X\(\/\/\)$/{
5105     s//\1/
5106     q
5107     }
5108     /^X\(\/\).*/{
5109     s//\1/
5110     q
5111     }
5112     s/.*/./; q'`
5113     test -d "$as_dir" && break
5114     done
5115     test -z "$as_dirs" || eval "mkdir $as_dirs"
5116 root 1.8 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5117 root 1.7
5118    
5119     } # as_fn_mkdir_p
5120 root 1.1 if mkdir -p . 2>/dev/null; then
5121 root 1.7 as_mkdir_p='mkdir -p "$as_dir"'
5122 root 1.1 else
5123     test -d ./-p && rmdir ./-p
5124     as_mkdir_p=false
5125     fi
5126    
5127 root 1.17
5128     # as_fn_executable_p FILE
5129     # -----------------------
5130     # Test if FILE is an executable regular file.
5131     as_fn_executable_p ()
5132     {
5133     test -f "$1" && test -x "$1"
5134     } # as_fn_executable_p
5135     as_test_x='test -x'
5136     as_executable_p=as_fn_executable_p
5137 root 1.1
5138     # Sed expression to map a string onto a valid CPP name.
5139     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5140    
5141     # Sed expression to map a string onto a valid variable name.
5142     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5143    
5144    
5145     exec 6>&1
5146 root 1.7 ## ----------------------------------- ##
5147     ## Main body of $CONFIG_STATUS script. ##
5148     ## ----------------------------------- ##
5149     _ASEOF
5150     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5151 root 1.1
5152 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5153     # Save the log message, to keep $0 and so on meaningful, and to
5154 root 1.1 # report actual input values of CONFIG_FILES etc. instead of their
5155     # values after options handling.
5156     ac_log="
5157     This file was extended by $as_me, which was
5158 root 1.17 generated by GNU Autoconf 2.69. Invocation command line was
5159 root 1.1
5160     CONFIG_FILES = $CONFIG_FILES
5161     CONFIG_HEADERS = $CONFIG_HEADERS
5162     CONFIG_LINKS = $CONFIG_LINKS
5163     CONFIG_COMMANDS = $CONFIG_COMMANDS
5164     $ $0 $@
5165    
5166     on `(hostname || uname -n) 2>/dev/null | sed 1q`
5167     "
5168    
5169     _ACEOF
5170    
5171 root 1.7
5172     case $ac_config_headers in *"
5173     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5174     esac
5175    
5176    
5177     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5178 root 1.1 # Files that config.status was made for.
5179     config_headers="$ac_config_headers"
5180    
5181     _ACEOF
5182    
5183 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5184 root 1.1 ac_cs_usage="\
5185 root 1.7 \`$as_me' instantiates files and other configuration actions
5186     from templates according to the current configuration. Unless the files
5187     and actions are specified as TAGs, all are instantiated by default.
5188 root 1.1
5189 root 1.7 Usage: $0 [OPTION]... [TAG]...
5190 root 1.1
5191     -h, --help print this help, then exit
5192     -V, --version print version number and configuration settings, then exit
5193 root 1.8 --config print configuration, then exit
5194 root 1.7 -q, --quiet, --silent
5195     do not print progress messages
5196 root 1.1 -d, --debug don't remove temporary files
5197     --recheck update $as_me by reconfiguring in the same conditions
5198 root 1.7 --header=FILE[:TEMPLATE]
5199     instantiate the configuration header FILE
5200 root 1.1
5201     Configuration headers:
5202     $config_headers
5203    
5204 root 1.7 Report bugs to the package provider."
5205 root 1.1
5206     _ACEOF
5207 root 1.7 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5208 root 1.8 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5209 root 1.1 ac_cs_version="\\
5210     config.status
5211 root 1.17 configured by $0, generated by GNU Autoconf 2.69,
5212 root 1.8 with options \\"\$ac_cs_config\\"
5213 root 1.1
5214 root 1.17 Copyright (C) 2012 Free Software Foundation, Inc.
5215 root 1.1 This config.status script is free software; the Free Software Foundation
5216     gives unlimited permission to copy, distribute and modify it."
5217    
5218     ac_pwd='$ac_pwd'
5219     srcdir='$srcdir'
5220 root 1.7 test -n "\$AWK" || AWK=awk
5221 root 1.1 _ACEOF
5222    
5223 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5224     # The default lists apply if the user does not specify any file.
5225 root 1.1 ac_need_defaults=:
5226     while test $# != 0
5227     do
5228     case $1 in
5229 root 1.8 --*=?*)
5230 root 1.1 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5231     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5232     ac_shift=:
5233     ;;
5234 root 1.8 --*=)
5235     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5236     ac_optarg=
5237     ac_shift=:
5238     ;;
5239 root 1.1 *)
5240     ac_option=$1
5241     ac_optarg=$2
5242     ac_shift=shift
5243     ;;
5244     esac
5245    
5246     case $ac_option in
5247     # Handling of the options.
5248     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5249     ac_cs_recheck=: ;;
5250     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5251 root 1.7 $as_echo "$ac_cs_version"; exit ;;
5252 root 1.8 --config | --confi | --conf | --con | --co | --c )
5253     $as_echo "$ac_cs_config"; exit ;;
5254 root 1.1 --debug | --debu | --deb | --de | --d | -d )
5255     debug=: ;;
5256     --header | --heade | --head | --hea )
5257     $ac_shift
5258 root 1.7 case $ac_optarg in
5259     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5260     esac
5261     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5262 root 1.1 ac_need_defaults=false;;
5263     --he | --h)
5264     # Conflict between --help and --header
5265 root 1.8 as_fn_error $? "ambiguous option: \`$1'
5266 root 1.7 Try \`$0 --help' for more information.";;
5267 root 1.1 --help | --hel | -h )
5268 root 1.7 $as_echo "$ac_cs_usage"; exit ;;
5269 root 1.1 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5270     | -silent | --silent | --silen | --sile | --sil | --si | --s)
5271     ac_cs_silent=: ;;
5272    
5273     # This is an error.
5274 root 1.8 -*) as_fn_error $? "unrecognized option: \`$1'
5275 root 1.7 Try \`$0 --help' for more information." ;;
5276 root 1.1
5277 root 1.7 *) as_fn_append ac_config_targets " $1"
5278 root 1.1 ac_need_defaults=false ;;
5279    
5280     esac
5281     shift
5282     done
5283    
5284     ac_configure_extra_args=
5285    
5286     if $ac_cs_silent; then
5287     exec 6>/dev/null
5288     ac_configure_extra_args="$ac_configure_extra_args --silent"
5289     fi
5290    
5291     _ACEOF
5292 root 1.7 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5293 root 1.1 if \$ac_cs_recheck; then
5294 root 1.17 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5295 root 1.7 shift
5296     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5297     CONFIG_SHELL='$SHELL'
5298 root 1.1 export CONFIG_SHELL
5299 root 1.7 exec "\$@"
5300 root 1.1 fi
5301    
5302     _ACEOF
5303 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5304 root 1.1 exec 5>>config.log
5305     {
5306     echo
5307     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5308     ## Running $as_me. ##
5309     _ASBOX
5310 root 1.7 $as_echo "$ac_log"
5311 root 1.1 } >&5
5312    
5313     _ACEOF
5314 root 1.7 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5315 root 1.1 _ACEOF
5316    
5317 root 1.7 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5318 root 1.1
5319     # Handling of arguments.
5320     for ac_config_target in $ac_config_targets
5321     do
5322     case $ac_config_target in
5323 root 1.23 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5324 root 1.1
5325 root 1.17 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5326 root 1.1 esac
5327     done
5328    
5329    
5330     # If the user did not use the arguments to specify the items to instantiate,
5331     # then the envvar interface is used. Set only those that are not.
5332     # We use the long form for the default assignment because of an extremely
5333     # bizarre bug on SunOS 4.1.3.
5334     if $ac_need_defaults; then
5335     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5336     fi
5337    
5338     # Have a temporary directory for convenience. Make it in the build tree
5339     # simply because there is no reason against having it here, and in addition,
5340     # creating and moving files from /tmp can sometimes cause problems.
5341     # Hook for its removal unless debugging.
5342     # Note that there is a small window in which the directory will not be cleaned:
5343     # after its creation but before its name has been assigned to `$tmp'.
5344     $debug ||
5345     {
5346 root 1.17 tmp= ac_tmp=
5347 root 1.1 trap 'exit_status=$?
5348 root 1.17 : "${ac_tmp:=$tmp}"
5349     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5350 root 1.1 ' 0
5351 root 1.7 trap 'as_fn_exit 1' 1 2 13 15
5352 root 1.1 }
5353     # Create a (secure) tmp directory for tmp files.
5354    
5355     {
5356     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5357 root 1.17 test -d "$tmp"
5358 root 1.1 } ||
5359     {
5360     tmp=./conf$$-$RANDOM
5361     (umask 077 && mkdir "$tmp")
5362 root 1.8 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5363 root 1.17 ac_tmp=$tmp
5364 root 1.7
5365     # Set up the scripts for CONFIG_HEADERS section.
5366     # No need to generate them if there are no CONFIG_HEADERS.
5367     # This happens for instance with `./config.status Makefile'.
5368     if test -n "$CONFIG_HEADERS"; then
5369 root 1.17 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5370 root 1.7 BEGIN {
5371     _ACEOF
5372    
5373     # Transform confdefs.h into an awk script `defines.awk', embedded as
5374     # here-document in config.status, that substitutes the proper values into
5375     # config.h.in to produce config.h.
5376    
5377     # Create a delimiter string that does not exist in confdefs.h, to ease
5378     # handling of long lines.
5379     ac_delim='%!_!# '
5380     for ac_last_try in false false :; do
5381 root 1.17 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5382     if test -z "$ac_tt"; then
5383 root 1.7 break
5384     elif $ac_last_try; then
5385 root 1.8 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5386 root 1.7 else
5387     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5388     fi
5389     done
5390    
5391     # For the awk script, D is an array of macro values keyed by name,
5392     # likewise P contains macro parameters if any. Preserve backslash
5393     # newline sequences.
5394    
5395     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5396     sed -n '
5397     s/.\{148\}/&'"$ac_delim"'/g
5398     t rset
5399     :rset
5400     s/^[ ]*#[ ]*define[ ][ ]*/ /
5401     t def
5402     d
5403     :def
5404     s/\\$//
5405     t bsnl
5406     s/["\\]/\\&/g
5407     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5408     D["\1"]=" \3"/p
5409     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5410     d
5411     :bsnl
5412     s/["\\]/\\&/g
5413     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5414     D["\1"]=" \3\\\\\\n"\\/p
5415     t cont
5416     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5417     t cont
5418     d
5419     :cont
5420     n
5421     s/.\{148\}/&'"$ac_delim"'/g
5422     t clear
5423     :clear
5424     s/\\$//
5425     t bsnlc
5426     s/["\\]/\\&/g; s/^/"/; s/$/"/p
5427     d
5428     :bsnlc
5429     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5430     b cont
5431     ' <confdefs.h | sed '
5432     s/'"$ac_delim"'/"\\\
5433     "/g' >>$CONFIG_STATUS || ac_write_fail=1
5434    
5435     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5436     for (key in D) D_is_set[key] = 1
5437     FS = ""
5438     }
5439     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5440     line = \$ 0
5441     split(line, arg, " ")
5442     if (arg[1] == "#") {
5443     defundef = arg[2]
5444     mac1 = arg[3]
5445     } else {
5446     defundef = substr(arg[1], 2)
5447     mac1 = arg[2]
5448     }
5449     split(mac1, mac2, "(") #)
5450     macro = mac2[1]
5451     prefix = substr(line, 1, index(line, defundef) - 1)
5452     if (D_is_set[macro]) {
5453     # Preserve the white space surrounding the "#".
5454     print prefix "define", macro P[macro] D[macro]
5455     next
5456     } else {
5457     # Replace #undef with comments. This is necessary, for example,
5458     # in the case of _POSIX_SOURCE, which is predefined and required
5459     # on some systems where configure will not decide to define it.
5460     if (defundef == "undef") {
5461     print "/*", prefix defundef, macro, "*/"
5462     next
5463     }
5464     }
5465     }
5466     { print }
5467     _ACAWK
5468     _ACEOF
5469     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5470 root 1.8 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5471 root 1.7 fi # test -n "$CONFIG_HEADERS"
5472 root 1.1
5473    
5474 root 1.7 eval set X " :H $CONFIG_HEADERS "
5475     shift
5476     for ac_tag
5477 root 1.1 do
5478     case $ac_tag in
5479     :[FHLC]) ac_mode=$ac_tag; continue;;
5480     esac
5481     case $ac_mode$ac_tag in
5482     :[FHL]*:*);;
5483 root 1.17 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5484 root 1.1 :[FH]-) ac_tag=-:-;;
5485     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5486     esac
5487     ac_save_IFS=$IFS
5488     IFS=:
5489     set x $ac_tag
5490     IFS=$ac_save_IFS
5491     shift
5492     ac_file=$1
5493     shift
5494    
5495     case $ac_mode in
5496     :L) ac_source=$1;;
5497     :[FH])
5498     ac_file_inputs=
5499     for ac_f
5500     do
5501     case $ac_f in
5502 root 1.17 -) ac_f="$ac_tmp/stdin";;
5503 root 1.1 *) # Look for the file first in the build tree, then in the source tree
5504     # (if the path is not absolute). The absolute path cannot be DOS-style,
5505     # because $ac_f cannot contain `:'.
5506     test -f "$ac_f" ||
5507     case $ac_f in
5508     [\\/$]*) false;;
5509     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5510     esac ||
5511 root 1.17 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5512 root 1.1 esac
5513 root 1.7 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5514     as_fn_append ac_file_inputs " '$ac_f'"
5515 root 1.1 done
5516    
5517     # Let's still pretend it is `configure' which instantiates (i.e., don't
5518     # use $as_me), people would be surprised to read:
5519     # /* config.h. Generated by config.status. */
5520 root 1.7 configure_input='Generated from '`
5521     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5522     `' by configure.'
5523 root 1.1 if test x"$ac_file" != x-; then
5524     configure_input="$ac_file. $configure_input"
5525 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5526     $as_echo "$as_me: creating $ac_file" >&6;}
5527 root 1.1 fi
5528 root 1.7 # Neutralize special characters interpreted by sed in replacement strings.
5529     case $configure_input in #(
5530     *\&* | *\|* | *\\* )
5531     ac_sed_conf_input=`$as_echo "$configure_input" |
5532     sed 's/[\\\\&|]/\\\\&/g'`;; #(
5533     *) ac_sed_conf_input=$configure_input;;
5534     esac
5535 root 1.1
5536     case $ac_tag in
5537 root 1.17 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5538     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5539 root 1.1 esac
5540     ;;
5541     esac
5542    
5543     ac_dir=`$as_dirname -- "$ac_file" ||
5544     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5545     X"$ac_file" : 'X\(//\)[^/]' \| \
5546     X"$ac_file" : 'X\(//\)$' \| \
5547     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5548 root 1.7 $as_echo X"$ac_file" |
5549 root 1.1 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5550     s//\1/
5551     q
5552     }
5553     /^X\(\/\/\)[^/].*/{
5554     s//\1/
5555     q
5556     }
5557     /^X\(\/\/\)$/{
5558     s//\1/
5559     q
5560     }
5561     /^X\(\/\).*/{
5562     s//\1/
5563     q
5564     }
5565     s/.*/./; q'`
5566 root 1.7 as_dir="$ac_dir"; as_fn_mkdir_p
5567 root 1.1 ac_builddir=.
5568    
5569     case "$ac_dir" in
5570     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5571     *)
5572 root 1.7 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5573 root 1.1 # A ".." for each directory in $ac_dir_suffix.
5574 root 1.7 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5575 root 1.1 case $ac_top_builddir_sub in
5576     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5577     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5578     esac ;;
5579     esac
5580     ac_abs_top_builddir=$ac_pwd
5581     ac_abs_builddir=$ac_pwd$ac_dir_suffix
5582     # for backward compatibility:
5583     ac_top_builddir=$ac_top_build_prefix
5584    
5585     case $srcdir in
5586     .) # We are building in place.
5587     ac_srcdir=.
5588     ac_top_srcdir=$ac_top_builddir_sub
5589     ac_abs_top_srcdir=$ac_pwd ;;
5590     [\\/]* | ?:[\\/]* ) # Absolute name.
5591     ac_srcdir=$srcdir$ac_dir_suffix;
5592     ac_top_srcdir=$srcdir
5593     ac_abs_top_srcdir=$srcdir ;;
5594     *) # Relative name.
5595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5596     ac_top_srcdir=$ac_top_build_prefix$srcdir
5597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5598     esac
5599     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5600    
5601    
5602     case $ac_mode in
5603    
5604     :H)
5605     #
5606     # CONFIG_HEADER
5607     #
5608     if test x"$ac_file" != x-; then
5609 root 1.7 {
5610     $as_echo "/* $configure_input */" \
5611 root 1.17 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5612     } >"$ac_tmp/config.h" \
5613 root 1.8 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5614 root 1.17 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5615 root 1.7 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5616     $as_echo "$as_me: $ac_file is unchanged" >&6;}
5617 root 1.1 else
5618 root 1.7 rm -f "$ac_file"
5619 root 1.17 mv "$ac_tmp/config.h" "$ac_file" \
5620 root 1.8 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5621 root 1.1 fi
5622     else
5623 root 1.7 $as_echo "/* $configure_input */" \
5624 root 1.17 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5625 root 1.8 || as_fn_error $? "could not create -" "$LINENO" 5
5626 root 1.1 fi
5627     ;;
5628    
5629    
5630     esac
5631    
5632     done # for ac_tag
5633    
5634    
5635 root 1.7 as_fn_exit 0
5636 root 1.1 _ACEOF
5637     ac_clean_files=$ac_clean_files_save
5638    
5639 root 1.7 test $ac_write_fail = 0 ||
5640 root 1.8 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5641 root 1.7
5642 root 1.1
5643     # configure is writing to config.log, and then calls config.status.
5644     # config.status does its own redirection, appending to config.log.
5645     # Unfortunately, on DOS this fails, as config.log is still kept open
5646     # by configure, so config.status won't be able to write to it; its
5647     # output is simply discarded. So we exec the FD to /dev/null,
5648     # effectively closing config.log, so it can be properly (re)opened and
5649     # appended to by config.status. When coming back to configure, we
5650     # need to make the FD available again.
5651     if test "$no_create" != yes; then
5652     ac_cs_success=:
5653     ac_config_status_args=
5654     test "$silent" = yes &&
5655     ac_config_status_args="$ac_config_status_args --quiet"
5656     exec 5>/dev/null
5657     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5658     exec 5>>config.log
5659     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5660     # would make configure fail if this is the last instruction.
5661 root 1.8 $ac_cs_success || as_fn_exit 1
5662 root 1.7 fi
5663     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5665     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5666 root 1.1 fi
5667    
5668 root 1.23