ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
Revision: 1.3
Committed: Sun May 11 19:11:05 2008 UTC (16 years ago) by root
Branch: MAIN
Changes since 1.2: +0 -5 lines
Log Message:
implement high-level eio functions (untested), bugfixes

File Contents

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