comparison configure @ 0:30782bb1fc04 MEMCACHED_1_2_3

memcached-1.2.3
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 23 Sep 2007 03:58:34 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:30782bb1fc04
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for memcached 1.2.3.
4 #
5 # Report bugs to <brad@danga.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='memcached'
576 PACKAGE_TARNAME='memcached'
577 PACKAGE_VERSION='1.2.3'
578 PACKAGE_STRING='memcached 1.2.3'
579 PACKAGE_BUGREPORT='brad@danga.com'
580
581 ac_unique_file="memcached.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 am__isrc
671 CYGPATH_W
672 PACKAGE
673 VERSION
674 ACLOCAL
675 AUTOCONF
676 AUTOMAKE
677 AUTOHEADER
678 MAKEINFO
679 install_sh
680 STRIP
681 INSTALL_STRIP_PROGRAM
682 mkdir_p
683 AWK
684 SET_MAKE
685 am__leading_dot
686 AMTAR
687 am__tar
688 am__untar
689 CC
690 CFLAGS
691 LDFLAGS
692 CPPFLAGS
693 ac_ct_CC
694 EXEEXT
695 OBJEXT
696 DEPDIR
697 am__include
698 am__quote
699 AMDEP_TRUE
700 AMDEP_FALSE
701 AMDEPBACKSLASH
702 CCDEPMODE
703 am__fastdepCC_TRUE
704 am__fastdepCC_FALSE
705 LIBOBJS
706 CPP
707 GREP
708 EGREP
709 LTLIBOBJS'
710 ac_subst_files=''
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CC
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CPP'
720
721
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
727 cache_file=/dev/null
728 exec_prefix=NONE
729 no_create=
730 no_recursion=
731 prefix=NONE
732 program_prefix=NONE
733 program_suffix=NONE
734 program_transform_name=s,x,x,
735 silent=
736 site=
737 srcdir=
738 verbose=
739 x_includes=NONE
740 x_libraries=NONE
741
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
759 infodir='${datarootdir}/info'
760 htmldir='${docdir}'
761 dvidir='${docdir}'
762 pdfdir='${docdir}'
763 psdir='${docdir}'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
767
768 ac_prev=
769 ac_dashdash=
770 for ac_option
771 do
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
775 ac_prev=
776 continue
777 fi
778
779 case $ac_option in
780 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 *) ac_optarg=yes ;;
782 esac
783
784 # Accept the important Cygnus configure options, so we can diagnose typos.
785
786 case $ac_dashdash$ac_option in
787 --)
788 ac_dashdash=yes ;;
789
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
794
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
799
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
806
807 --config-cache | -C)
808 cache_file=config.cache ;;
809
810 -datadir | --datadir | --datadi | --datad)
811 ac_prev=datadir ;;
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
814
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
821
822 -disable-* | --disable-*)
823 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
826 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
827 { (exit 1); exit 1; }; }
828 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
829 eval enable_$ac_feature=no ;;
830
831 -docdir | --docdir | --docdi | --doc | --do)
832 ac_prev=docdir ;;
833 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 docdir=$ac_optarg ;;
835
836 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 ac_prev=dvidir ;;
838 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 dvidir=$ac_optarg ;;
840
841 -enable-* | --enable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=\$ac_optarg ;;
849
850 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852 | --exec | --exe | --ex)
853 ac_prev=exec_prefix ;;
854 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856 | --exec=* | --exe=* | --ex=*)
857 exec_prefix=$ac_optarg ;;
858
859 -gas | --gas | --ga | --g)
860 # Obsolete; use --with-gas.
861 with_gas=yes ;;
862
863 -help | --help | --hel | --he | -h)
864 ac_init_help=long ;;
865 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866 ac_init_help=recursive ;;
867 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868 ac_init_help=short ;;
869
870 -host | --host | --hos | --ho)
871 ac_prev=host_alias ;;
872 -host=* | --host=* | --hos=* | --ho=*)
873 host_alias=$ac_optarg ;;
874
875 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876 ac_prev=htmldir ;;
877 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878 | --ht=*)
879 htmldir=$ac_optarg ;;
880
881 -includedir | --includedir | --includedi | --included | --include \
882 | --includ | --inclu | --incl | --inc)
883 ac_prev=includedir ;;
884 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885 | --includ=* | --inclu=* | --incl=* | --inc=*)
886 includedir=$ac_optarg ;;
887
888 -infodir | --infodir | --infodi | --infod | --info | --inf)
889 ac_prev=infodir ;;
890 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891 infodir=$ac_optarg ;;
892
893 -libdir | --libdir | --libdi | --libd)
894 ac_prev=libdir ;;
895 -libdir=* | --libdir=* | --libdi=* | --libd=*)
896 libdir=$ac_optarg ;;
897
898 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899 | --libexe | --libex | --libe)
900 ac_prev=libexecdir ;;
901 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902 | --libexe=* | --libex=* | --libe=*)
903 libexecdir=$ac_optarg ;;
904
905 -localedir | --localedir | --localedi | --localed | --locale)
906 ac_prev=localedir ;;
907 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908 localedir=$ac_optarg ;;
909
910 -localstatedir | --localstatedir | --localstatedi | --localstated \
911 | --localstate | --localstat | --localsta | --localst | --locals)
912 ac_prev=localstatedir ;;
913 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915 localstatedir=$ac_optarg ;;
916
917 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918 ac_prev=mandir ;;
919 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920 mandir=$ac_optarg ;;
921
922 -nfp | --nfp | --nf)
923 # Obsolete; use --without-fp.
924 with_fp=no ;;
925
926 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927 | --no-cr | --no-c | -n)
928 no_create=yes ;;
929
930 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932 no_recursion=yes ;;
933
934 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936 | --oldin | --oldi | --old | --ol | --o)
937 ac_prev=oldincludedir ;;
938 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941 oldincludedir=$ac_optarg ;;
942
943 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944 ac_prev=prefix ;;
945 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946 prefix=$ac_optarg ;;
947
948 -program-prefix | --program-prefix | --program-prefi | --program-pref \
949 | --program-pre | --program-pr | --program-p)
950 ac_prev=program_prefix ;;
951 -program-prefix=* | --program-prefix=* | --program-prefi=* \
952 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953 program_prefix=$ac_optarg ;;
954
955 -program-suffix | --program-suffix | --program-suffi | --program-suff \
956 | --program-suf | --program-su | --program-s)
957 ac_prev=program_suffix ;;
958 -program-suffix=* | --program-suffix=* | --program-suffi=* \
959 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960 program_suffix=$ac_optarg ;;
961
962 -program-transform-name | --program-transform-name \
963 | --program-transform-nam | --program-transform-na \
964 | --program-transform-n | --program-transform- \
965 | --program-transform | --program-transfor \
966 | --program-transfo | --program-transf \
967 | --program-trans | --program-tran \
968 | --progr-tra | --program-tr | --program-t)
969 ac_prev=program_transform_name ;;
970 -program-transform-name=* | --program-transform-name=* \
971 | --program-transform-nam=* | --program-transform-na=* \
972 | --program-transform-n=* | --program-transform-=* \
973 | --program-transform=* | --program-transfor=* \
974 | --program-transfo=* | --program-transf=* \
975 | --program-trans=* | --program-tran=* \
976 | --progr-tra=* | --program-tr=* | --program-t=*)
977 program_transform_name=$ac_optarg ;;
978
979 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980 ac_prev=pdfdir ;;
981 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982 pdfdir=$ac_optarg ;;
983
984 -psdir | --psdir | --psdi | --psd | --ps)
985 ac_prev=psdir ;;
986 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987 psdir=$ac_optarg ;;
988
989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990 | -silent | --silent | --silen | --sile | --sil)
991 silent=yes ;;
992
993 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
994 ac_prev=sbindir ;;
995 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
996 | --sbi=* | --sb=*)
997 sbindir=$ac_optarg ;;
998
999 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1000 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1001 | --sharedst | --shareds | --shared | --share | --shar \
1002 | --sha | --sh)
1003 ac_prev=sharedstatedir ;;
1004 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1005 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1006 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1007 | --sha=* | --sh=*)
1008 sharedstatedir=$ac_optarg ;;
1009
1010 -site | --site | --sit)
1011 ac_prev=site ;;
1012 -site=* | --site=* | --sit=*)
1013 site=$ac_optarg ;;
1014
1015 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1016 ac_prev=srcdir ;;
1017 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1018 srcdir=$ac_optarg ;;
1019
1020 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1021 | --syscon | --sysco | --sysc | --sys | --sy)
1022 ac_prev=sysconfdir ;;
1023 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1024 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1025 sysconfdir=$ac_optarg ;;
1026
1027 -target | --target | --targe | --targ | --tar | --ta | --t)
1028 ac_prev=target_alias ;;
1029 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1030 target_alias=$ac_optarg ;;
1031
1032 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1033 verbose=yes ;;
1034
1035 -version | --version | --versio | --versi | --vers | -V)
1036 ac_init_version=: ;;
1037
1038 -with-* | --with-*)
1039 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid package name: $ac_package" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045 eval with_$ac_package=\$ac_optarg ;;
1046
1047 -without-* | --without-*)
1048 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid package name: $ac_package" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054 eval with_$ac_package=no ;;
1055
1056 --x)
1057 # Obsolete; use --with-x.
1058 with_x=yes ;;
1059
1060 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061 | --x-incl | --x-inc | --x-in | --x-i)
1062 ac_prev=x_includes ;;
1063 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065 x_includes=$ac_optarg ;;
1066
1067 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1068 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069 ac_prev=x_libraries ;;
1070 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072 x_libraries=$ac_optarg ;;
1073
1074 -*) { echo "$as_me: error: unrecognized option: $ac_option
1075 Try \`$0 --help' for more information." >&2
1076 { (exit 1); exit 1; }; }
1077 ;;
1078
1079 *=*)
1080 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1084 { (exit 1); exit 1; }; }
1085 eval $ac_envvar=\$ac_optarg
1086 export $ac_envvar ;;
1087
1088 *)
1089 # FIXME: should be removed in autoconf 3.0.
1090 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094 ;;
1095
1096 esac
1097 done
1098
1099 if test -n "$ac_prev"; then
1100 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1101 { echo "$as_me: error: missing argument to $ac_option" >&2
1102 { (exit 1); exit 1; }; }
1103 fi
1104
1105 # Be sure to have absolute directory names.
1106 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107 datadir sysconfdir sharedstatedir localstatedir includedir \
1108 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109 libdir localedir mandir
1110 do
1111 eval ac_val=\$$ac_var
1112 case $ac_val in
1113 [\\/$]* | ?:[\\/]* ) continue;;
1114 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1115 esac
1116 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1117 { (exit 1); exit 1; }; }
1118 done
1119
1120 # There might be people who depend on the old broken behavior: `$host'
1121 # used to hold the argument of --host etc.
1122 # FIXME: To remove some day.
1123 build=$build_alias
1124 host=$host_alias
1125 target=$target_alias
1126
1127 # FIXME: To remove some day.
1128 if test "x$host_alias" != x; then
1129 if test "x$build_alias" = x; then
1130 cross_compiling=maybe
1131 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1132 If a cross compiler is detected then cross compile mode will be used." >&2
1133 elif test "x$build_alias" != "x$host_alias"; then
1134 cross_compiling=yes
1135 fi
1136 fi
1137
1138 ac_tool_prefix=
1139 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1140
1141 test "$silent" = yes && exec 6>/dev/null
1142
1143
1144 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1145 ac_ls_di=`ls -di .` &&
1146 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1147 { echo "$as_me: error: Working directory cannot be determined" >&2
1148 { (exit 1); exit 1; }; }
1149 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1150 { echo "$as_me: error: pwd does not report name of working directory" >&2
1151 { (exit 1); exit 1; }; }
1152
1153
1154 # Find the source files, if location was not specified.
1155 if test -z "$srcdir"; then
1156 ac_srcdir_defaulted=yes
1157 # Try the directory containing this script, then the parent directory.
1158 ac_confdir=`$as_dirname -- "$0" ||
1159 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160 X"$0" : 'X\(//\)[^/]' \| \
1161 X"$0" : 'X\(//\)$' \| \
1162 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1163 echo X"$0" |
1164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)[^/].*/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\/\)$/{
1173 s//\1/
1174 q
1175 }
1176 /^X\(\/\).*/{
1177 s//\1/
1178 q
1179 }
1180 s/.*/./; q'`
1181 srcdir=$ac_confdir
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 srcdir=..
1184 fi
1185 else
1186 ac_srcdir_defaulted=no
1187 fi
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1191 { (exit 1); exit 1; }; }
1192 fi
1193 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1194 ac_abs_confdir=`(
1195 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1196 { (exit 1); exit 1; }; }
1197 pwd)`
1198 # When building in place, set srcdir=.
1199 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200 srcdir=.
1201 fi
1202 # Remove unnecessary trailing slashes from srcdir.
1203 # Double slashes in file names in object file debugging info
1204 # mess up M-x gdb in Emacs.
1205 case $srcdir in
1206 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207 esac
1208 for ac_var in $ac_precious_vars; do
1209 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_env_${ac_var}_value=\$${ac_var}
1211 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1213 done
1214
1215 #
1216 # Report the --help message.
1217 #
1218 if test "$ac_init_help" = "long"; then
1219 # Omit some internal or obsolete options to make the list less imposing.
1220 # This message is too long to be a string in the A/UX 3.1 sh.
1221 cat <<_ACEOF
1222 \`configure' configures memcached 1.2.3 to adapt to many kinds of systems.
1223
1224 Usage: $0 [OPTION]... [VAR=VALUE]...
1225
1226 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1227 VAR=VALUE. See below for descriptions of some of the useful variables.
1228
1229 Defaults for the options are specified in brackets.
1230
1231 Configuration:
1232 -h, --help display this help and exit
1233 --help=short display options specific to this package
1234 --help=recursive display the short help of all the included packages
1235 -V, --version display version information and exit
1236 -q, --quiet, --silent do not print \`checking...' messages
1237 --cache-file=FILE cache test results in FILE [disabled]
1238 -C, --config-cache alias for \`--cache-file=config.cache'
1239 -n, --no-create do not create output files
1240 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1241
1242 Installation directories:
1243 --prefix=PREFIX install architecture-independent files in PREFIX
1244 [$ac_default_prefix]
1245 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1246 [PREFIX]
1247
1248 By default, \`make install' will install all the files in
1249 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1250 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1251 for instance \`--prefix=\$HOME'.
1252
1253 For better control, use the options below.
1254
1255 Fine tuning of the installation directories:
1256 --bindir=DIR user executables [EPREFIX/bin]
1257 --sbindir=DIR system admin executables [EPREFIX/sbin]
1258 --libexecdir=DIR program executables [EPREFIX/libexec]
1259 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1260 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1261 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1262 --libdir=DIR object code libraries [EPREFIX/lib]
1263 --includedir=DIR C header files [PREFIX/include]
1264 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1265 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1266 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1267 --infodir=DIR info documentation [DATAROOTDIR/info]
1268 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1269 --mandir=DIR man documentation [DATAROOTDIR/man]
1270 --docdir=DIR documentation root [DATAROOTDIR/doc/memcached]
1271 --htmldir=DIR html documentation [DOCDIR]
1272 --dvidir=DIR dvi documentation [DOCDIR]
1273 --pdfdir=DIR pdf documentation [DOCDIR]
1274 --psdir=DIR ps documentation [DOCDIR]
1275 _ACEOF
1276
1277 cat <<\_ACEOF
1278
1279 Program names:
1280 --program-prefix=PREFIX prepend PREFIX to installed program names
1281 --program-suffix=SUFFIX append SUFFIX to installed program names
1282 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1283
1284 System types:
1285 --build=BUILD configure for building on BUILD [guessed]
1286 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1287 --target=TARGET configure for building compilers for TARGET [HOST]
1288 _ACEOF
1289 fi
1290
1291 if test -n "$ac_init_help"; then
1292 case $ac_init_help in
1293 short | recursive ) echo "Configuration of memcached 1.2.3:";;
1294 esac
1295 cat <<\_ACEOF
1296
1297 Optional Features:
1298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1300 --disable-dependency-tracking speeds up one-time build
1301 --enable-dependency-tracking do not reject slow dependency extractors
1302 --enable-threads support multithreaded execution
1303
1304 Optional Packages:
1305 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1306 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1307 --with-libevent=PATH Specify path to libevent installation
1308
1309 Some influential environment variables:
1310 CC C compiler command
1311 CFLAGS C compiler flags
1312 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1313 nonstandard directory <lib dir>
1314 LIBS libraries to pass to the linker, e.g. -l<library>
1315 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316 you have headers in a nonstandard directory <include dir>
1317 CPP C preprocessor
1318
1319 Use these variables to override the choices made by `configure' or to help
1320 it to find libraries and programs with nonstandard names/locations.
1321
1322 Report bugs to <brad@danga.com>.
1323 _ACEOF
1324 ac_status=$?
1325 fi
1326
1327 if test "$ac_init_help" = "recursive"; then
1328 # If there are subdirs, report their specific --help.
1329 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1330 test -d "$ac_dir" || continue
1331 ac_builddir=.
1332
1333 case "$ac_dir" in
1334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 *)
1336 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1337 # A ".." for each directory in $ac_dir_suffix.
1338 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1339 case $ac_top_builddir_sub in
1340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1342 esac ;;
1343 esac
1344 ac_abs_top_builddir=$ac_pwd
1345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1346 # for backward compatibility:
1347 ac_top_builddir=$ac_top_build_prefix
1348
1349 case $srcdir in
1350 .) # We are building in place.
1351 ac_srcdir=.
1352 ac_top_srcdir=$ac_top_builddir_sub
1353 ac_abs_top_srcdir=$ac_pwd ;;
1354 [\\/]* | ?:[\\/]* ) # Absolute name.
1355 ac_srcdir=$srcdir$ac_dir_suffix;
1356 ac_top_srcdir=$srcdir
1357 ac_abs_top_srcdir=$srcdir ;;
1358 *) # Relative name.
1359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1360 ac_top_srcdir=$ac_top_build_prefix$srcdir
1361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1362 esac
1363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1364
1365 cd "$ac_dir" || { ac_status=$?; continue; }
1366 # Check for guested configure.
1367 if test -f "$ac_srcdir/configure.gnu"; then
1368 echo &&
1369 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1370 elif test -f "$ac_srcdir/configure"; then
1371 echo &&
1372 $SHELL "$ac_srcdir/configure" --help=recursive
1373 else
1374 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1375 fi || ac_status=$?
1376 cd "$ac_pwd" || { ac_status=$?; break; }
1377 done
1378 fi
1379
1380 test -n "$ac_init_help" && exit $ac_status
1381 if $ac_init_version; then
1382 cat <<\_ACEOF
1383 memcached configure 1.2.3
1384 generated by GNU Autoconf 2.61
1385
1386 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1387 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1388 This configure script is free software; the Free Software Foundation
1389 gives unlimited permission to copy, distribute and modify it.
1390 _ACEOF
1391 exit
1392 fi
1393 cat >config.log <<_ACEOF
1394 This file contains any messages produced by compilers while
1395 running configure, to aid debugging if configure makes a mistake.
1396
1397 It was created by memcached $as_me 1.2.3, which was
1398 generated by GNU Autoconf 2.61. Invocation command line was
1399
1400 $ $0 $@
1401
1402 _ACEOF
1403 exec 5>>config.log
1404 {
1405 cat <<_ASUNAME
1406 ## --------- ##
1407 ## Platform. ##
1408 ## --------- ##
1409
1410 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1411 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1412 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1413 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1414 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1415
1416 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1417 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1418
1419 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1420 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1421 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1422 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1423 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1424 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1425 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1426
1427 _ASUNAME
1428
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1431 do
1432 IFS=$as_save_IFS
1433 test -z "$as_dir" && as_dir=.
1434 echo "PATH: $as_dir"
1435 done
1436 IFS=$as_save_IFS
1437
1438 } >&5
1439
1440 cat >&5 <<_ACEOF
1441
1442
1443 ## ----------- ##
1444 ## Core tests. ##
1445 ## ----------- ##
1446
1447 _ACEOF
1448
1449
1450 # Keep a trace of the command line.
1451 # Strip out --no-create and --no-recursion so they do not pile up.
1452 # Strip out --silent because we don't want to record it for future runs.
1453 # Also quote any args containing shell meta-characters.
1454 # Make two passes to allow for proper duplicate-argument suppression.
1455 ac_configure_args=
1456 ac_configure_args0=
1457 ac_configure_args1=
1458 ac_must_keep_next=false
1459 for ac_pass in 1 2
1460 do
1461 for ac_arg
1462 do
1463 case $ac_arg in
1464 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1466 | -silent | --silent | --silen | --sile | --sil)
1467 continue ;;
1468 *\'*)
1469 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 esac
1471 case $ac_pass in
1472 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1473 2)
1474 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1475 if test $ac_must_keep_next = true; then
1476 ac_must_keep_next=false # Got value, back to normal.
1477 else
1478 case $ac_arg in
1479 *=* | --config-cache | -C | -disable-* | --disable-* \
1480 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1481 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1482 | -with-* | --with-* | -without-* | --without-* | --x)
1483 case "$ac_configure_args0 " in
1484 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1485 esac
1486 ;;
1487 -* ) ac_must_keep_next=true ;;
1488 esac
1489 fi
1490 ac_configure_args="$ac_configure_args '$ac_arg'"
1491 ;;
1492 esac
1493 done
1494 done
1495 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1496 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1497
1498 # When interrupted or exit'd, cleanup temporary files, and complete
1499 # config.log. We remove comments because anyway the quotes in there
1500 # would cause problems or look ugly.
1501 # WARNING: Use '\'' to represent an apostrophe within the trap.
1502 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1503 trap 'exit_status=$?
1504 # Save into config.log some information that might help in debugging.
1505 {
1506 echo
1507
1508 cat <<\_ASBOX
1509 ## ---------------- ##
1510 ## Cache variables. ##
1511 ## ---------------- ##
1512 _ASBOX
1513 echo
1514 # The following way of writing the cache mishandles newlines in values,
1515 (
1516 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1517 eval ac_val=\$$ac_var
1518 case $ac_val in #(
1519 *${as_nl}*)
1520 case $ac_var in #(
1521 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1522 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1523 esac
1524 case $ac_var in #(
1525 _ | IFS | as_nl) ;; #(
1526 *) $as_unset $ac_var ;;
1527 esac ;;
1528 esac
1529 done
1530 (set) 2>&1 |
1531 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1532 *${as_nl}ac_space=\ *)
1533 sed -n \
1534 "s/'\''/'\''\\\\'\'''\''/g;
1535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1536 ;; #(
1537 *)
1538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1539 ;;
1540 esac |
1541 sort
1542 )
1543 echo
1544
1545 cat <<\_ASBOX
1546 ## ----------------- ##
1547 ## Output variables. ##
1548 ## ----------------- ##
1549 _ASBOX
1550 echo
1551 for ac_var in $ac_subst_vars
1552 do
1553 eval ac_val=\$$ac_var
1554 case $ac_val in
1555 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1556 esac
1557 echo "$ac_var='\''$ac_val'\''"
1558 done | sort
1559 echo
1560
1561 if test -n "$ac_subst_files"; then
1562 cat <<\_ASBOX
1563 ## ------------------- ##
1564 ## File substitutions. ##
1565 ## ------------------- ##
1566 _ASBOX
1567 echo
1568 for ac_var in $ac_subst_files
1569 do
1570 eval ac_val=\$$ac_var
1571 case $ac_val in
1572 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1573 esac
1574 echo "$ac_var='\''$ac_val'\''"
1575 done | sort
1576 echo
1577 fi
1578
1579 if test -s confdefs.h; then
1580 cat <<\_ASBOX
1581 ## ----------- ##
1582 ## confdefs.h. ##
1583 ## ----------- ##
1584 _ASBOX
1585 echo
1586 cat confdefs.h
1587 echo
1588 fi
1589 test "$ac_signal" != 0 &&
1590 echo "$as_me: caught signal $ac_signal"
1591 echo "$as_me: exit $exit_status"
1592 } >&5
1593 rm -f core *.core core.conftest.* &&
1594 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1595 exit $exit_status
1596 ' 0
1597 for ac_signal in 1 2 13 15; do
1598 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1599 done
1600 ac_signal=0
1601
1602 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1603 rm -f -r conftest* confdefs.h
1604
1605 # Predefined preprocessor variables.
1606
1607 cat >>confdefs.h <<_ACEOF
1608 #define PACKAGE_NAME "$PACKAGE_NAME"
1609 _ACEOF
1610
1611
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1614 _ACEOF
1615
1616
1617 cat >>confdefs.h <<_ACEOF
1618 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1619 _ACEOF
1620
1621
1622 cat >>confdefs.h <<_ACEOF
1623 #define PACKAGE_STRING "$PACKAGE_STRING"
1624 _ACEOF
1625
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1629 _ACEOF
1630
1631
1632 # Let the site file select an alternate cache file if it wants to.
1633 # Prefer explicitly selected file to automatically selected ones.
1634 if test -n "$CONFIG_SITE"; then
1635 set x "$CONFIG_SITE"
1636 elif test "x$prefix" != xNONE; then
1637 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1638 else
1639 set x "$ac_default_prefix/share/config.site" \
1640 "$ac_default_prefix/etc/config.site"
1641 fi
1642 shift
1643 for ac_site_file
1644 do
1645 if test -r "$ac_site_file"; then
1646 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1647 echo "$as_me: loading site script $ac_site_file" >&6;}
1648 sed 's/^/| /' "$ac_site_file" >&5
1649 . "$ac_site_file"
1650 fi
1651 done
1652
1653 if test -r "$cache_file"; then
1654 # Some versions of bash will fail to source /dev/null (special
1655 # files actually), so we avoid doing that.
1656 if test -f "$cache_file"; then
1657 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1658 echo "$as_me: loading cache $cache_file" >&6;}
1659 case $cache_file in
1660 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1661 *) . "./$cache_file";;
1662 esac
1663 fi
1664 else
1665 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1666 echo "$as_me: creating cache $cache_file" >&6;}
1667 >$cache_file
1668 fi
1669
1670 # Check that the precious variables saved in the cache have kept the same
1671 # value.
1672 ac_cache_corrupted=false
1673 for ac_var in $ac_precious_vars; do
1674 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1675 eval ac_new_set=\$ac_env_${ac_var}_set
1676 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1677 eval ac_new_val=\$ac_env_${ac_var}_value
1678 case $ac_old_set,$ac_new_set in
1679 set,)
1680 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1681 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1682 ac_cache_corrupted=: ;;
1683 ,set)
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1686 ac_cache_corrupted=: ;;
1687 ,);;
1688 *)
1689 if test "x$ac_old_val" != "x$ac_new_val"; then
1690 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1691 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1692 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1693 echo "$as_me: former value: $ac_old_val" >&2;}
1694 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1695 echo "$as_me: current value: $ac_new_val" >&2;}
1696 ac_cache_corrupted=:
1697 fi;;
1698 esac
1699 # Pass precious variables to config.status.
1700 if test "$ac_new_set" = set; then
1701 case $ac_new_val in
1702 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1703 *) ac_arg=$ac_var=$ac_new_val ;;
1704 esac
1705 case " $ac_configure_args " in
1706 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1707 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1708 esac
1709 fi
1710 done
1711 if $ac_cache_corrupted; then
1712 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1713 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1714 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1715 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1716 { (exit 1); exit 1; }; }
1717 fi
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743 ac_ext=c
1744 ac_cpp='$CPP $CPPFLAGS'
1745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1748
1749
1750 ac_aux_dir=
1751 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1752 if test -f "$ac_dir/install-sh"; then
1753 ac_aux_dir=$ac_dir
1754 ac_install_sh="$ac_aux_dir/install-sh -c"
1755 break
1756 elif test -f "$ac_dir/install.sh"; then
1757 ac_aux_dir=$ac_dir
1758 ac_install_sh="$ac_aux_dir/install.sh -c"
1759 break
1760 elif test -f "$ac_dir/shtool"; then
1761 ac_aux_dir=$ac_dir
1762 ac_install_sh="$ac_aux_dir/shtool install -c"
1763 break
1764 fi
1765 done
1766 if test -z "$ac_aux_dir"; then
1767 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1768 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1769 { (exit 1); exit 1; }; }
1770 fi
1771
1772 # These three variables are undocumented and unsupported,
1773 # and are intended to be withdrawn in a future Autoconf release.
1774 # They can cause serious problems if a builder's source tree is in a directory
1775 # whose full name contains unusual characters.
1776 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1777 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1778 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1779
1780
1781 # Make sure we can run config.sub.
1782 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1783 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1784 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1785 { (exit 1); exit 1; }; }
1786
1787 { echo "$as_me:$LINENO: checking build system type" >&5
1788 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1789 if test "${ac_cv_build+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 ac_build_alias=$build_alias
1793 test "x$ac_build_alias" = x &&
1794 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1795 test "x$ac_build_alias" = x &&
1796 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1797 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1798 { (exit 1); exit 1; }; }
1799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1800 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1802 { (exit 1); exit 1; }; }
1803
1804 fi
1805 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1806 echo "${ECHO_T}$ac_cv_build" >&6; }
1807 case $ac_cv_build in
1808 *-*-*) ;;
1809 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1810 echo "$as_me: error: invalid value of canonical build" >&2;}
1811 { (exit 1); exit 1; }; };;
1812 esac
1813 build=$ac_cv_build
1814 ac_save_IFS=$IFS; IFS='-'
1815 set x $ac_cv_build
1816 shift
1817 build_cpu=$1
1818 build_vendor=$2
1819 shift; shift
1820 # Remember, the first character of IFS is used to create $*,
1821 # except with old shells:
1822 build_os=$*
1823 IFS=$ac_save_IFS
1824 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1825
1826
1827 { echo "$as_me:$LINENO: checking host system type" >&5
1828 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1829 if test "${ac_cv_host+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test "x$host_alias" = x; then
1833 ac_cv_host=$ac_cv_build
1834 else
1835 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1836 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1837 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1838 { (exit 1); exit 1; }; }
1839 fi
1840
1841 fi
1842 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1843 echo "${ECHO_T}$ac_cv_host" >&6; }
1844 case $ac_cv_host in
1845 *-*-*) ;;
1846 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1847 echo "$as_me: error: invalid value of canonical host" >&2;}
1848 { (exit 1); exit 1; }; };;
1849 esac
1850 host=$ac_cv_host
1851 ac_save_IFS=$IFS; IFS='-'
1852 set x $ac_cv_host
1853 shift
1854 host_cpu=$1
1855 host_vendor=$2
1856 shift; shift
1857 # Remember, the first character of IFS is used to create $*,
1858 # except with old shells:
1859 host_os=$*
1860 IFS=$ac_save_IFS
1861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1862
1863
1864 { echo "$as_me:$LINENO: checking target system type" >&5
1865 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1866 if test "${ac_cv_target+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test "x$target_alias" = x; then
1870 ac_cv_target=$ac_cv_host
1871 else
1872 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1873 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1874 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1875 { (exit 1); exit 1; }; }
1876 fi
1877
1878 fi
1879 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1880 echo "${ECHO_T}$ac_cv_target" >&6; }
1881 case $ac_cv_target in
1882 *-*-*) ;;
1883 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1884 echo "$as_me: error: invalid value of canonical target" >&2;}
1885 { (exit 1); exit 1; }; };;
1886 esac
1887 target=$ac_cv_target
1888 ac_save_IFS=$IFS; IFS='-'
1889 set x $ac_cv_target
1890 shift
1891 target_cpu=$1
1892 target_vendor=$2
1893 shift; shift
1894 # Remember, the first character of IFS is used to create $*,
1895 # except with old shells:
1896 target_os=$*
1897 IFS=$ac_save_IFS
1898 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1899
1900
1901 # The aliases save the names the user supplied, while $host etc.
1902 # will get canonicalized.
1903 test -n "$target_alias" &&
1904 test "$program_prefix$program_suffix$program_transform_name" = \
1905 NONENONEs,x,x, &&
1906 program_prefix=${target_alias}-
1907
1908 am__api_version='1.10'
1909
1910 # Find a good install program. We prefer a C program (faster),
1911 # so one script is as good as another. But avoid the broken or
1912 # incompatible versions:
1913 # SysV /etc/install, /usr/sbin/install
1914 # SunOS /usr/etc/install
1915 # IRIX /sbin/install
1916 # AIX /bin/install
1917 # AmigaOS /C/install, which installs bootblocks on floppy discs
1918 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1919 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1920 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1921 # OS/2's system install, which has a completely different semantic
1922 # ./install, which can be erroneously created by make from ./install.sh.
1923 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1924 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1925 if test -z "$INSTALL"; then
1926 if test "${ac_cv_path_install+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 # Account for people who put trailing slashes in PATH elements.
1935 case $as_dir/ in
1936 ./ | .// | /cC/* | \
1937 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1938 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1939 /usr/ucb/* ) ;;
1940 *)
1941 # OSF1 and SCO ODT 3.0 have their own names for install.
1942 # Don't use installbsd from OSF since it installs stuff as root
1943 # by default.
1944 for ac_prog in ginstall scoinst install; do
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1947 if test $ac_prog = install &&
1948 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1949 # AIX install. It has an incompatible calling convention.
1950 :
1951 elif test $ac_prog = install &&
1952 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1953 # program-specific install script used by HP pwplus--don't use.
1954 :
1955 else
1956 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1957 break 3
1958 fi
1959 fi
1960 done
1961 done
1962 ;;
1963 esac
1964 done
1965 IFS=$as_save_IFS
1966
1967
1968 fi
1969 if test "${ac_cv_path_install+set}" = set; then
1970 INSTALL=$ac_cv_path_install
1971 else
1972 # As a last resort, use the slow shell script. Don't cache a
1973 # value for INSTALL within a source directory, because that will
1974 # break other packages using the cache if that directory is
1975 # removed, or if the value is a relative name.
1976 INSTALL=$ac_install_sh
1977 fi
1978 fi
1979 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1980 echo "${ECHO_T}$INSTALL" >&6; }
1981
1982 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1983 # It thinks the first close brace ends the variable substitution.
1984 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1985
1986 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1987
1988 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1989
1990 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1991 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1992 # Just in case
1993 sleep 1
1994 echo timestamp > conftest.file
1995 # Do `set' in a subshell so we don't clobber the current shell's
1996 # arguments. Must try -L first in case configure is actually a
1997 # symlink; some systems play weird games with the mod time of symlinks
1998 # (eg FreeBSD returns the mod time of the symlink's containing
1999 # directory).
2000 if (
2001 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2002 if test "$*" = "X"; then
2003 # -L didn't work.
2004 set X `ls -t $srcdir/configure conftest.file`
2005 fi
2006 rm -f conftest.file
2007 if test "$*" != "X $srcdir/configure conftest.file" \
2008 && test "$*" != "X conftest.file $srcdir/configure"; then
2009
2010 # If neither matched, then we have a broken ls. This can happen
2011 # if, for instance, CONFIG_SHELL is bash and it inherits a
2012 # broken ls alias from the environment. This has actually
2013 # happened. Such a system could not be considered "sane".
2014 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2015 alias in your environment" >&5
2016 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2017 alias in your environment" >&2;}
2018 { (exit 1); exit 1; }; }
2019 fi
2020
2021 test "$2" = conftest.file
2022 )
2023 then
2024 # Ok.
2025 :
2026 else
2027 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2028 Check your system clock" >&5
2029 echo "$as_me: error: newly created file is older than distributed files!
2030 Check your system clock" >&2;}
2031 { (exit 1); exit 1; }; }
2032 fi
2033 { echo "$as_me:$LINENO: result: yes" >&5
2034 echo "${ECHO_T}yes" >&6; }
2035 test "$program_prefix" != NONE &&
2036 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2037 # Use a double $ so make ignores it.
2038 test "$program_suffix" != NONE &&
2039 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2040 # Double any \ or $. echo might interpret backslashes.
2041 # By default was `s,x,x', remove it if useless.
2042 cat <<\_ACEOF >conftest.sed
2043 s/[\\$]/&&/g;s/;s,x,x,$//
2044 _ACEOF
2045 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2046 rm -f conftest.sed
2047
2048 # expand $ac_aux_dir to an absolute path
2049 am_aux_dir=`cd $ac_aux_dir && pwd`
2050
2051 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2052 # Use eval to expand $SHELL
2053 if eval "$MISSING --run true"; then
2054 am_missing_run="$MISSING --run "
2055 else
2056 am_missing_run=
2057 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2058 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2059 fi
2060
2061 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2062 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2063 if test -z "$MKDIR_P"; then
2064 if test "${ac_cv_path_mkdir+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2069 do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 for ac_prog in mkdir gmkdir; do
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2075 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2076 'mkdir (GNU coreutils) '* | \
2077 'mkdir (coreutils) '* | \
2078 'mkdir (fileutils) '4.1*)
2079 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2080 break 3;;
2081 esac
2082 done
2083 done
2084 done
2085 IFS=$as_save_IFS
2086
2087 fi
2088
2089 if test "${ac_cv_path_mkdir+set}" = set; then
2090 MKDIR_P="$ac_cv_path_mkdir -p"
2091 else
2092 # As a last resort, use the slow shell script. Don't cache a
2093 # value for MKDIR_P within a source directory, because that will
2094 # break other packages using the cache if that directory is
2095 # removed, or if the value is a relative name.
2096 test -d ./--version && rmdir ./--version
2097 MKDIR_P="$ac_install_sh -d"
2098 fi
2099 fi
2100 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2101 echo "${ECHO_T}$MKDIR_P" >&6; }
2102
2103 mkdir_p="$MKDIR_P"
2104 case $mkdir_p in
2105 [\\/$]* | ?:[\\/]*) ;;
2106 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2107 esac
2108
2109 for ac_prog in gawk mawk nawk awk
2110 do
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_AWK+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 if test -n "$AWK"; then
2119 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_AWK="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 break 2
2131 fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 AWK=$ac_cv_prog_AWK
2139 if test -n "$AWK"; then
2140 { echo "$as_me:$LINENO: result: $AWK" >&5
2141 echo "${ECHO_T}$AWK" >&6; }
2142 else
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148 test -n "$AWK" && break
2149 done
2150
2151 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2152 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2153 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2154 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 cat >conftest.make <<\_ACEOF
2158 SHELL = /bin/sh
2159 all:
2160 @echo '@@@%%%=$(MAKE)=@@@%%%'
2161 _ACEOF
2162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2163 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2164 *@@@%%%=?*=@@@%%%*)
2165 eval ac_cv_prog_make_${ac_make}_set=yes;;
2166 *)
2167 eval ac_cv_prog_make_${ac_make}_set=no;;
2168 esac
2169 rm -f conftest.make
2170 fi
2171 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2172 { echo "$as_me:$LINENO: result: yes" >&5
2173 echo "${ECHO_T}yes" >&6; }
2174 SET_MAKE=
2175 else
2176 { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2178 SET_MAKE="MAKE=${MAKE-make}"
2179 fi
2180
2181 rm -rf .tst 2>/dev/null
2182 mkdir .tst 2>/dev/null
2183 if test -d .tst; then
2184 am__leading_dot=.
2185 else
2186 am__leading_dot=_
2187 fi
2188 rmdir .tst 2>/dev/null
2189
2190 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2191 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2192 # is not polluted with repeated "-I."
2193 am__isrc=' -I$(srcdir)'
2194 # test to see if srcdir already configured
2195 if test -f $srcdir/config.status; then
2196 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2197 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2198 { (exit 1); exit 1; }; }
2199 fi
2200 fi
2201
2202 # test whether we have cygpath
2203 if test -z "$CYGPATH_W"; then
2204 if (cygpath --version) >/dev/null 2>/dev/null; then
2205 CYGPATH_W='cygpath -w'
2206 else
2207 CYGPATH_W=echo
2208 fi
2209 fi
2210
2211
2212 # Define the identity of the package.
2213 PACKAGE=memcached
2214 VERSION=1.2.3
2215
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE "$PACKAGE"
2219 _ACEOF
2220
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define VERSION "$VERSION"
2224 _ACEOF
2225
2226 # Some tools Automake needs.
2227
2228 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2229
2230
2231 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2232
2233
2234 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2235
2236
2237 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2238
2239
2240 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2241
2242 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2243
2244 # Installed binaries are usually stripped using `strip' when the user
2245 # run `make install-strip'. However `strip' might not be the right
2246 # tool to use in cross-compilation environments, therefore Automake
2247 # will honor the `STRIP' environment variable to overrule this program.
2248 if test "$cross_compiling" != no; then
2249 if test -n "$ac_tool_prefix"; then
2250 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}strip; ac_word=$2
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2254 if test "${ac_cv_prog_STRIP+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 if test -n "$STRIP"; then
2258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2270 fi
2271 done
2272 done
2273 IFS=$as_save_IFS
2274
2275 fi
2276 fi
2277 STRIP=$ac_cv_prog_STRIP
2278 if test -n "$STRIP"; then
2279 { echo "$as_me:$LINENO: result: $STRIP" >&5
2280 echo "${ECHO_T}$STRIP" >&6; }
2281 else
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2284 fi
2285
2286
2287 fi
2288 if test -z "$ac_cv_prog_STRIP"; then
2289 ac_ct_STRIP=$STRIP
2290 # Extract the first word of "strip", so it can be a program name with args.
2291 set dummy strip; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 if test -n "$ac_ct_STRIP"; then
2298 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_ac_ct_STRIP="strip"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311 done
2312 done
2313 IFS=$as_save_IFS
2314
2315 fi
2316 fi
2317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2318 if test -n "$ac_ct_STRIP"; then
2319 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2320 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2321 else
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2324 fi
2325
2326 if test "x$ac_ct_STRIP" = x; then
2327 STRIP=":"
2328 else
2329 case $cross_compiling:$ac_tool_warned in
2330 yes:)
2331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2332 whose name does not start with the host triplet. If you think this
2333 configuration is useful to you, please write to autoconf@gnu.org." >&5
2334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2335 whose name does not start with the host triplet. If you think this
2336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2337 ac_tool_warned=yes ;;
2338 esac
2339 STRIP=$ac_ct_STRIP
2340 fi
2341 else
2342 STRIP="$ac_cv_prog_STRIP"
2343 fi
2344
2345 fi
2346 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2347
2348 # We need awk for the "check" target. The system "awk" is bad on
2349 # some platforms.
2350 # Always define AMTAR for backward compatibility.
2351
2352 AMTAR=${AMTAR-"${am_missing_run}tar"}
2353
2354 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2355
2356
2357
2358
2359
2360 ac_config_headers="$ac_config_headers config.h"
2361
2362
2363 ac_ext=c
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368 if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 if test "${ac_cv_prog_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2389 fi
2390 done
2391 done
2392 IFS=$as_save_IFS
2393
2394 fi
2395 fi
2396 CC=$ac_cv_prog_CC
2397 if test -n "$CC"; then
2398 { echo "$as_me:$LINENO: result: $CC" >&5
2399 echo "${ECHO_T}$CC" >&6; }
2400 else
2401 { echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6; }
2403 fi
2404
2405
2406 fi
2407 if test -z "$ac_cv_prog_CC"; then
2408 ac_ct_CC=$CC
2409 # Extract the first word of "gcc", so it can be a program name with args.
2410 set dummy gcc; ac_word=$2
2411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416 if test -n "$ac_ct_CC"; then
2417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_ac_ct_CC="gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437 if test -n "$ac_ct_CC"; then
2438 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2439 echo "${ECHO_T}$ac_ct_CC" >&6; }
2440 else
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2443 fi
2444
2445 if test "x$ac_ct_CC" = x; then
2446 CC=""
2447 else
2448 case $cross_compiling:$ac_tool_warned in
2449 yes:)
2450 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2451 whose name does not start with the host triplet. If you think this
2452 configuration is useful to you, please write to autoconf@gnu.org." >&5
2453 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2454 whose name does not start with the host triplet. If you think this
2455 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2456 ac_tool_warned=yes ;;
2457 esac
2458 CC=$ac_ct_CC
2459 fi
2460 else
2461 CC="$ac_cv_prog_CC"
2462 fi
2463
2464 if test -z "$CC"; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}cc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_CC="${ac_tool_prefix}cc"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 CC=$ac_cv_prog_CC
2494 if test -n "$CC"; then
2495 { echo "$as_me:$LINENO: result: $CC" >&5
2496 echo "${ECHO_T}$CC" >&6; }
2497 else
2498 { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2500 fi
2501
2502
2503 fi
2504 fi
2505 if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507 set dummy cc; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 ac_prog_rejected=no
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2525 ac_prog_rejected=yes
2526 continue
2527 fi
2528 ac_cv_prog_CC="cc"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 if test $ac_prog_rejected = yes; then
2537 # We found a bogon in the path, so make sure we never use it.
2538 set dummy $ac_cv_prog_CC
2539 shift
2540 if test $# != 0; then
2541 # We chose a different compiler from the bogus one.
2542 # However, it has the same basename, so the bogon will be chosen
2543 # first if we set CC to just the basename; use the full file name.
2544 shift
2545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2546 fi
2547 fi
2548 fi
2549 fi
2550 CC=$ac_cv_prog_CC
2551 if test -n "$CC"; then
2552 { echo "$as_me:$LINENO: result: $CC" >&5
2553 echo "${ECHO_T}$CC" >&6; }
2554 else
2555 { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2557 fi
2558
2559
2560 fi
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 for ac_prog in cl.exe
2564 do
2565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594 { echo "$as_me:$LINENO: result: $CC" >&5
2595 echo "${ECHO_T}$CC" >&6; }
2596 else
2597 { echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6; }
2599 fi
2600
2601
2602 test -n "$CC" && break
2603 done
2604 fi
2605 if test -z "$CC"; then
2606 ac_ct_CC=$CC
2607 for ac_prog in cl.exe
2608 do
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_CC="$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2639 echo "${ECHO_T}$ac_ct_CC" >&6; }
2640 else
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2643 fi
2644
2645
2646 test -n "$ac_ct_CC" && break
2647 done
2648
2649 if test "x$ac_ct_CC" = x; then
2650 CC=""
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653 yes:)
2654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet. If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&5
2657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2658 whose name does not start with the host triplet. If you think this
2659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2660 ac_tool_warned=yes ;;
2661 esac
2662 CC=$ac_ct_CC
2663 fi
2664 fi
2665
2666 fi
2667
2668
2669 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: no acceptable C compiler found in \$PATH
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2674
2675 # Provide some information about the compiler.
2676 echo "$as_me:$LINENO: checking for C compiler version" >&5
2677 ac_compiler=`set X $ac_compile; echo $2`
2678 { (ac_try="$ac_compiler --version >&5"
2679 case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler --version >&5") 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2688 { (ac_try="$ac_compiler -v >&5"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compiler -v >&5") 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (ac_try="$ac_compiler -V >&5"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compiler -V >&5") 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }
2708
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2715
2716 int
2717 main ()
2718 {
2719
2720 ;
2721 return 0;
2722 }
2723 _ACEOF
2724 ac_clean_files_save=$ac_clean_files
2725 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2726 # Try to create an executable without -o first, disregard a.out.
2727 # It will help us diagnose broken compilers, and finding out an intuition
2728 # of exeext.
2729 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2730 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2731 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2732 #
2733 # List of possible output files, starting from the most likely.
2734 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2735 # only as a last resort. b.out is created by i960 compilers.
2736 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2737 #
2738 # The IRIX 6 linker writes into existing files which may not be
2739 # executable, retaining their permissions. Remove them first so a
2740 # subsequent execution test works.
2741 ac_rmfiles=
2742 for ac_file in $ac_files
2743 do
2744 case $ac_file in
2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2747 esac
2748 done
2749 rm -f $ac_rmfiles
2750
2751 if { (ac_try="$ac_link_default"
2752 case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_link_default") 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; then
2761 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2762 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2763 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2764 # so that the user can short-circuit this test for compilers unknown to
2765 # Autoconf.
2766 for ac_file in $ac_files ''
2767 do
2768 test -f "$ac_file" || continue
2769 case $ac_file in
2770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2771 ;;
2772 [ab].out )
2773 # We found the default executable, but exeext='' is most
2774 # certainly right.
2775 break;;
2776 *.* )
2777 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2778 then :; else
2779 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2780 fi
2781 # We set ac_cv_exeext here because the later test for it is not
2782 # safe: cross compilers may not add the suffix if given an `-o'
2783 # argument, so we may need to know it at that point already.
2784 # Even if this section looks crufty: it has the advantage of
2785 # actually working.
2786 break;;
2787 * )
2788 break;;
2789 esac
2790 done
2791 test "$ac_cv_exeext" = no && ac_cv_exeext=
2792
2793 else
2794 ac_file=''
2795 fi
2796
2797 { echo "$as_me:$LINENO: result: $ac_file" >&5
2798 echo "${ECHO_T}$ac_file" >&6; }
2799 if test -z "$ac_file"; then
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: C compiler cannot create executables
2806 See \`config.log' for more details." >&2;}
2807 { (exit 77); exit 77; }; }
2808 fi
2809
2810 ac_exeext=$ac_cv_exeext
2811
2812 # Check that the compiler produces executables we can run. If not, either
2813 # the compiler is broken, or we cross compile.
2814 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2815 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2816 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2817 # If not cross compiling, check that we can run a simple program.
2818 if test "$cross_compiling" != yes; then
2819 if { ac_try='./$ac_file'
2820 { (case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_try") 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; }; then
2829 cross_compiling=no
2830 else
2831 if test "$cross_compiling" = maybe; then
2832 cross_compiling=yes
2833 else
2834 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2835 If you meant to cross compile, use \`--host'.
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: cannot run C compiled programs.
2838 If you meant to cross compile, use \`--host'.
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842 fi
2843 fi
2844 { echo "$as_me:$LINENO: result: yes" >&5
2845 echo "${ECHO_T}yes" >&6; }
2846
2847 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2848 ac_clean_files=$ac_clean_files_save
2849 # Check that the compiler produces executables we can run. If not, either
2850 # the compiler is broken, or we cross compile.
2851 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2852 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2853 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2854 echo "${ECHO_T}$cross_compiling" >&6; }
2855
2856 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2857 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2858 if { (ac_try="$ac_link"
2859 case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862 esac
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_link") 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; then
2868 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2869 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2870 # work properly (i.e., refer to `conftest.exe'), while it won't with
2871 # `rm'.
2872 for ac_file in conftest.exe conftest conftest.*; do
2873 test -f "$ac_file" || continue
2874 case $ac_file in
2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2876 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2877 break;;
2878 * ) break;;
2879 esac
2880 done
2881 else
2882 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2883 See \`config.log' for more details." >&5
2884 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2885 See \`config.log' for more details." >&2;}
2886 { (exit 1); exit 1; }; }
2887 fi
2888
2889 rm -f conftest$ac_cv_exeext
2890 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2891 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2892
2893 rm -f conftest.$ac_ext
2894 EXEEXT=$ac_cv_exeext
2895 ac_exeext=$EXEEXT
2896 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2897 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2898 if test "${ac_cv_objext+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907
2908 int
2909 main ()
2910 {
2911
2912 ;
2913 return 0;
2914 }
2915 _ACEOF
2916 rm -f conftest.o conftest.obj
2917 if { (ac_try="$ac_compile"
2918 case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compile") 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; then
2927 for ac_file in conftest.o conftest.obj conftest.*; do
2928 test -f "$ac_file" || continue;
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2932 break;;
2933 esac
2934 done
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2942 See \`config.log' for more details." >&2;}
2943 { (exit 1); exit 1; }; }
2944 fi
2945
2946 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2947 fi
2948 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2949 echo "${ECHO_T}$ac_cv_objext" >&6; }
2950 OBJEXT=$ac_cv_objext
2951 ac_objext=$OBJEXT
2952 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2954 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963
2964 int
2965 main ()
2966 {
2967 #ifndef __GNUC__
2968 choke me
2969 #endif
2970
2971 ;
2972 return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_c_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 ac_compiler_gnu=yes
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 ac_compiler_gnu=no
2998 fi
2999
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3002
3003 fi
3004 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3005 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3006 GCC=`test $ac_compiler_gnu = yes && echo yes`
3007 ac_test_CFLAGS=${CFLAGS+set}
3008 ac_save_CFLAGS=$CFLAGS
3009 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3010 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3011 if test "${ac_cv_prog_cc_g+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 ac_save_c_werror_flag=$ac_c_werror_flag
3015 ac_c_werror_flag=yes
3016 ac_cv_prog_cc_g=no
3017 CFLAGS="-g"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024
3025 int
3026 main ()
3027 {
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } && {
3047 test -z "$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 } && test -s conftest.$ac_objext; then
3050 ac_cv_prog_cc_g=yes
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 CFLAGS=""
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062
3063 int
3064 main ()
3065 {
3066
3067 ;
3068 return 0;
3069 }
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compile") 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } && {
3085 test -z "$ac_c_werror_flag" ||
3086 test ! -s conftest.err
3087 } && test -s conftest.$ac_objext; then
3088 :
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3094 CFLAGS="-g"
3095 cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h. */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3101
3102 int
3103 main ()
3104 {
3105
3106 ;
3107 return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } && {
3124 test -z "$ac_c_werror_flag" ||
3125 test ! -s conftest.err
3126 } && test -s conftest.$ac_objext; then
3127 ac_cv_prog_cc_g=yes
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132
3133 fi
3134
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 fi
3137
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 fi
3140
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_c_werror_flag=$ac_save_c_werror_flag
3143 fi
3144 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3145 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3146 if test "$ac_test_CFLAGS" = set; then
3147 CFLAGS=$ac_save_CFLAGS
3148 elif test $ac_cv_prog_cc_g = yes; then
3149 if test "$GCC" = yes; then
3150 CFLAGS="-g -O2"
3151 else
3152 CFLAGS="-g"
3153 fi
3154 else
3155 if test "$GCC" = yes; then
3156 CFLAGS="-O2"
3157 else
3158 CFLAGS=
3159 fi
3160 fi
3161 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3162 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3163 if test "${ac_cv_prog_cc_c89+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 ac_cv_prog_cc_c89=no
3167 ac_save_CC=$CC
3168 cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174 #include <stdarg.h>
3175 #include <stdio.h>
3176 #include <sys/types.h>
3177 #include <sys/stat.h>
3178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3179 struct buf { int x; };
3180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3181 static char *e (p, i)
3182 char **p;
3183 int i;
3184 {
3185 return p[i];
3186 }
3187 static char *f (char * (*g) (char **, int), char **p, ...)
3188 {
3189 char *s;
3190 va_list v;
3191 va_start (v,p);
3192 s = g (p, va_arg (v,int));
3193 va_end (v);
3194 return s;
3195 }
3196
3197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3198 function prototypes and stuff, but not '\xHH' hex character constants.
3199 These don't provoke an error unfortunately, instead are silently treated
3200 as 'x'. The following induces an error, until -std is added to get
3201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3202 array size at least. It's necessary to write '\x00'==0 to get something
3203 that's true only with -std. */
3204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3205
3206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3207 inside strings and character constants. */
3208 #define FOO(x) 'x'
3209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3210
3211 int test (int i, double x);
3212 struct s1 {int (*f) (int a);};
3213 struct s2 {int (*f) (double a);};
3214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3215 int argc;
3216 char **argv;
3217 int
3218 main ()
3219 {
3220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3227 do
3228 CC="$ac_save_CC $ac_arg"
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
3246 ac_cv_prog_cc_c89=$ac_arg
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251
3252 fi
3253
3254 rm -f core conftest.err conftest.$ac_objext
3255 test "x$ac_cv_prog_cc_c89" != "xno" && break
3256 done
3257 rm -f conftest.$ac_ext
3258 CC=$ac_save_CC
3259
3260 fi
3261 # AC_CACHE_VAL
3262 case "x$ac_cv_prog_cc_c89" in
3263 x)
3264 { echo "$as_me:$LINENO: result: none needed" >&5
3265 echo "${ECHO_T}none needed" >&6; } ;;
3266 xno)
3267 { echo "$as_me:$LINENO: result: unsupported" >&5
3268 echo "${ECHO_T}unsupported" >&6; } ;;
3269 *)
3270 CC="$CC $ac_cv_prog_cc_c89"
3271 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3272 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3273 esac
3274
3275
3276 ac_ext=c
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 DEPDIR="${am__leading_dot}deps"
3282
3283 ac_config_commands="$ac_config_commands depfiles"
3284
3285
3286 am_make=${MAKE-make}
3287 cat > confinc << 'END'
3288 am__doit:
3289 @echo done
3290 .PHONY: am__doit
3291 END
3292 # If we don't find an include directive, just comment out the code.
3293 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3294 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3295 am__include="#"
3296 am__quote=
3297 _am_result=none
3298 # First try GNU make style include.
3299 echo "include confinc" > confmf
3300 # We grep out `Entering directory' and `Leaving directory'
3301 # messages which can occur if `w' ends up in MAKEFLAGS.
3302 # In particular we don't look at `^make:' because GNU make might
3303 # be invoked under some other name (usually "gmake"), in which
3304 # case it prints its new name instead of `make'.
3305 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3306 am__include=include
3307 am__quote=
3308 _am_result=GNU
3309 fi
3310 # Now try BSD make style include.
3311 if test "$am__include" = "#"; then
3312 echo '.include "confinc"' > confmf
3313 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3314 am__include=.include
3315 am__quote="\""
3316 _am_result=BSD
3317 fi
3318 fi
3319
3320
3321 { echo "$as_me:$LINENO: result: $_am_result" >&5
3322 echo "${ECHO_T}$_am_result" >&6; }
3323 rm -f confinc confmf
3324
3325 # Check whether --enable-dependency-tracking was given.
3326 if test "${enable_dependency_tracking+set}" = set; then
3327 enableval=$enable_dependency_tracking;
3328 fi
3329
3330 if test "x$enable_dependency_tracking" != xno; then
3331 am_depcomp="$ac_aux_dir/depcomp"
3332 AMDEPBACKSLASH='\'
3333 fi
3334 if test "x$enable_dependency_tracking" != xno; then
3335 AMDEP_TRUE=
3336 AMDEP_FALSE='#'
3337 else
3338 AMDEP_TRUE='#'
3339 AMDEP_FALSE=
3340 fi
3341
3342
3343
3344 depcc="$CC" am_compiler_list=
3345
3346 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3347 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3348 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3352 # We make a subdir and do the tests there. Otherwise we can end up
3353 # making bogus files that we don't know about and never remove. For
3354 # instance it was reported that on HP-UX the gcc test will end up
3355 # making a dummy file named `D' -- because `-MD' means `put the output
3356 # in D'.
3357 mkdir conftest.dir
3358 # Copy depcomp to subdir because otherwise we won't find it if we're
3359 # using a relative directory.
3360 cp "$am_depcomp" conftest.dir
3361 cd conftest.dir
3362 # We will build objects and dependencies in a subdirectory because
3363 # it helps to detect inapplicable dependency modes. For instance
3364 # both Tru64's cc and ICC support -MD to output dependencies as a
3365 # side effect of compilation, but ICC will put the dependencies in
3366 # the current directory while Tru64 will put them in the object
3367 # directory.
3368 mkdir sub
3369
3370 am_cv_CC_dependencies_compiler_type=none
3371 if test "$am_compiler_list" = ""; then
3372 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3373 fi
3374 for depmode in $am_compiler_list; do
3375 # Setup a source with many dependencies, because some compilers
3376 # like to wrap large dependency lists on column 80 (with \), and
3377 # we should not choose a depcomp mode which is confused by this.
3378 #
3379 # We need to recreate these files for each test, as the compiler may
3380 # overwrite some of them when testing with obscure command lines.
3381 # This happens at least with the AIX C compiler.
3382 : > sub/conftest.c
3383 for i in 1 2 3 4 5 6; do
3384 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3385 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3386 # Solaris 8's {/usr,}/bin/sh.
3387 touch sub/conftst$i.h
3388 done
3389 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3390
3391 case $depmode in
3392 nosideeffect)
3393 # after this tag, mechanisms are not by side-effect, so they'll
3394 # only be used when explicitly requested
3395 if test "x$enable_dependency_tracking" = xyes; then
3396 continue
3397 else
3398 break
3399 fi
3400 ;;
3401 none) break ;;
3402 esac
3403 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3404 # mode. It turns out that the SunPro C++ compiler does not properly
3405 # handle `-M -o', and we need to detect this.
3406 if depmode=$depmode \
3407 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3409 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3410 >/dev/null 2>conftest.err &&
3411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3413 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3415 # icc doesn't choke on unknown options, it will just issue warnings
3416 # or remarks (even with -Werror). So we grep stderr for any message
3417 # that says an option was ignored or not supported.
3418 # When given -MP, icc 7.0 and 7.1 complain thusly:
3419 # icc: Command line warning: ignoring option '-M'; no argument required
3420 # The diagnosis changed in icc 8.0:
3421 # icc: Command line remark: option '-MP' not supported
3422 if (grep 'ignoring option' conftest.err ||
3423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3424 am_cv_CC_dependencies_compiler_type=$depmode
3425 break
3426 fi
3427 fi
3428 done
3429
3430 cd ..
3431 rm -rf conftest.dir
3432 else
3433 am_cv_CC_dependencies_compiler_type=none
3434 fi
3435
3436 fi
3437 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3438 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3439 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3440
3441 if
3442 test "x$enable_dependency_tracking" != xno \
3443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3444 am__fastdepCC_TRUE=
3445 am__fastdepCC_FALSE='#'
3446 else
3447 am__fastdepCC_TRUE='#'
3448 am__fastdepCC_FALSE=
3449 fi
3450
3451
3452 # Find a good install program. We prefer a C program (faster),
3453 # so one script is as good as another. But avoid the broken or
3454 # incompatible versions:
3455 # SysV /etc/install, /usr/sbin/install
3456 # SunOS /usr/etc/install
3457 # IRIX /sbin/install
3458 # AIX /bin/install
3459 # AmigaOS /C/install, which installs bootblocks on floppy discs
3460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3463 # OS/2's system install, which has a completely different semantic
3464 # ./install, which can be erroneously created by make from ./install.sh.
3465 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3466 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3467 if test -z "$INSTALL"; then
3468 if test "${ac_cv_path_install+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 # Account for people who put trailing slashes in PATH elements.
3477 case $as_dir/ in
3478 ./ | .// | /cC/* | \
3479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3480 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3481 /usr/ucb/* ) ;;
3482 *)
3483 # OSF1 and SCO ODT 3.0 have their own names for install.
3484 # Don't use installbsd from OSF since it installs stuff as root
3485 # by default.
3486 for ac_prog in ginstall scoinst install; do
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3489 if test $ac_prog = install &&
3490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3491 # AIX install. It has an incompatible calling convention.
3492 :
3493 elif test $ac_prog = install &&
3494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3495 # program-specific install script used by HP pwplus--don't use.
3496 :
3497 else
3498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3499 break 3
3500 fi
3501 fi
3502 done
3503 done
3504 ;;
3505 esac
3506 done
3507 IFS=$as_save_IFS
3508
3509
3510 fi
3511 if test "${ac_cv_path_install+set}" = set; then
3512 INSTALL=$ac_cv_path_install
3513 else
3514 # As a last resort, use the slow shell script. Don't cache a
3515 # value for INSTALL within a source directory, because that will
3516 # break other packages using the cache if that directory is
3517 # removed, or if the value is a relative name.
3518 INSTALL=$ac_install_sh
3519 fi
3520 fi
3521 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3522 echo "${ECHO_T}$INSTALL" >&6; }
3523
3524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3525 # It thinks the first close brace ends the variable substitution.
3526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3527
3528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3529
3530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3531
3532
3533 trylibeventdir=""
3534
3535 # Check whether --with-libevent was given.
3536 if test "${with_libevent+set}" = set; then
3537 withval=$with_libevent;
3538 if test "x$withval" != "xno" ; then
3539 trylibeventdir=$withval
3540 fi
3541
3542
3543 fi
3544
3545
3546
3547 LIBEVENT_URL=http://www.monkey.org/~provos/libevent/
3548
3549
3550 { echo "$as_me:$LINENO: checking for libevent directory" >&5
3551 echo $ECHO_N "checking for libevent directory... $ECHO_C" >&6; }
3552 if test "${ac_cv_libevent_dir+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555
3556 saved_LIBS="$LIBS"
3557 saved_LDFLAGS="$LDFLAGS"
3558 saved_CPPFLAGS="$CPPFLAGS"
3559 le_found=no
3560 for ledir in $trylibeventdir "" $prefix /usr/local ; do
3561 LDFLAGS="$saved_LDFLAGS"
3562 LIBS="$saved_LIBS -levent"
3563
3564 # Skip the directory if it isn't there.
3565 if test ! -z "$ledir" -a ! -d "$ledir" ; then
3566 continue;
3567 fi
3568 if test ! -z "$ledir" ; then
3569 if test -d "$ledir/lib" ; then
3570 LDFLAGS="-L$ledir/lib $LDFLAGS"
3571 else
3572 LDFLAGS="-L$ledir $LDFLAGS"
3573 fi
3574 if test -d "$ledir/include" ; then
3575 CPPFLAGS="-I$ledir/include $CPPFLAGS"
3576 else
3577 CPPFLAGS="-I$ledir $CPPFLAGS"
3578 fi
3579 fi
3580 # Can I compile and link it?
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #include <sys/time.h>
3588 #include <sys/types.h>
3589 #include <event.h>
3590 int
3591 main ()
3592 {
3593 event_init();
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.$ac_objext conftest$ac_exeext
3599 if { (ac_try="$ac_link"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_link") 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } && {
3612 test -z "$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 } && test -s conftest$ac_exeext &&
3615 $as_test_x conftest$ac_exeext; then
3616 libevent_linked=yes
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 libevent_linked=no
3622 fi
3623
3624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3625 conftest$ac_exeext conftest.$ac_ext
3626 if test $libevent_linked = yes; then
3627 if test ! -z "$ledir" ; then
3628 ac_cv_libevent_dir=$ledir
3629 else
3630 ac_cv_libevent_dir="(system)"
3631 fi
3632 le_found=yes
3633 break
3634 fi
3635 done
3636 LIBS="$saved_LIBS"
3637 LDFLAGS="$saved_LDFLAGS"
3638 CPPFLAGS="$saved_CPPFLAGS"
3639 if test $le_found = no ; then
3640 { { echo "$as_me:$LINENO: error: libevent is required. You can get it from $LIBEVENT_URL
3641
3642 If it's already installed, specify its path using --with-libevent=/dir/
3643 " >&5
3644 echo "$as_me: error: libevent is required. You can get it from $LIBEVENT_URL
3645
3646 If it's already installed, specify its path using --with-libevent=/dir/
3647 " >&2;}
3648 { (exit 1); exit 1; }; }
3649 fi
3650
3651 fi
3652 { echo "$as_me:$LINENO: result: $ac_cv_libevent_dir" >&5
3653 echo "${ECHO_T}$ac_cv_libevent_dir" >&6; }
3654 LIBS="$LIBS -levent"
3655 if test $ac_cv_libevent_dir != "(system)"; then
3656 if test -d "$ac_cv_libevent_dir/lib" ; then
3657 LDFLAGS="-L$ac_cv_libevent_dir/lib $LDFLAGS"
3658 le_libdir="$ac_cv_libevent_dir/lib"
3659 else
3660 LDFLAGS="-L$ac_cv_libevent_dir $LDFLAGS"
3661 le_libdir="$ac_cv_libevent_dir"
3662 fi
3663 if test -d "$ac_cv_libevent_dir/include" ; then
3664 CPPFLAGS="-I$ac_cv_libevent_dir/include $CPPFLAGS"
3665 else
3666 CPPFLAGS="-I$ac_cv_libevent_dir $CPPFLAGS"
3667 fi
3668 fi
3669
3670
3671 { echo "$as_me:$LINENO: checking for library containing socket" >&5
3672 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
3673 if test "${ac_cv_search_socket+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 ac_func_search_save_LIBS=$LIBS
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683
3684 /* Override any GCC internal prototype to avoid an error.
3685 Use char because int might match the return type of a GCC
3686 builtin and then its argument prototype would still apply. */
3687 #ifdef __cplusplus
3688 extern "C"
3689 #endif
3690 char socket ();
3691 int
3692 main ()
3693 {
3694 return socket ();
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 for ac_lib in '' socket; do
3700 if test -z "$ac_lib"; then
3701 ac_res="none required"
3702 else
3703 ac_res=-l$ac_lib
3704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3705 fi
3706 rm -f conftest.$ac_objext conftest$ac_exeext
3707 if { (ac_try="$ac_link"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_link") 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest$ac_exeext &&
3723 $as_test_x conftest$ac_exeext; then
3724 ac_cv_search_socket=$ac_res
3725 else
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729
3730 fi
3731
3732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3733 conftest$ac_exeext
3734 if test "${ac_cv_search_socket+set}" = set; then
3735 break
3736 fi
3737 done
3738 if test "${ac_cv_search_socket+set}" = set; then
3739 :
3740 else
3741 ac_cv_search_socket=no
3742 fi
3743 rm conftest.$ac_ext
3744 LIBS=$ac_func_search_save_LIBS
3745 fi
3746 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
3747 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
3748 ac_res=$ac_cv_search_socket
3749 if test "$ac_res" != no; then
3750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3751
3752 fi
3753
3754 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3755 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
3756 if test "${ac_cv_search_gethostbyname+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 ac_func_search_save_LIBS=$LIBS
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766
3767 /* Override any GCC internal prototype to avoid an error.
3768 Use char because int might match the return type of a GCC
3769 builtin and then its argument prototype would still apply. */
3770 #ifdef __cplusplus
3771 extern "C"
3772 #endif
3773 char gethostbyname ();
3774 int
3775 main ()
3776 {
3777 return gethostbyname ();
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 for ac_lib in '' nsl; do
3783 if test -z "$ac_lib"; then
3784 ac_res="none required"
3785 else
3786 ac_res=-l$ac_lib
3787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3788 fi
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (ac_try="$ac_link"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_link") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && {
3803 test -z "$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 } && test -s conftest$ac_exeext &&
3806 $as_test_x conftest$ac_exeext; then
3807 ac_cv_search_gethostbyname=$ac_res
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812
3813 fi
3814
3815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3816 conftest$ac_exeext
3817 if test "${ac_cv_search_gethostbyname+set}" = set; then
3818 break
3819 fi
3820 done
3821 if test "${ac_cv_search_gethostbyname+set}" = set; then
3822 :
3823 else
3824 ac_cv_search_gethostbyname=no
3825 fi
3826 rm conftest.$ac_ext
3827 LIBS=$ac_func_search_save_LIBS
3828 fi
3829 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3830 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
3831 ac_res=$ac_cv_search_gethostbyname
3832 if test "$ac_res" != no; then
3833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3834
3835 fi
3836
3837 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
3838 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
3839 if test "${ac_cv_search_mallinfo+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842 ac_func_search_save_LIBS=$LIBS
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849
3850 /* Override any GCC internal prototype to avoid an error.
3851 Use char because int might match the return type of a GCC
3852 builtin and then its argument prototype would still apply. */
3853 #ifdef __cplusplus
3854 extern "C"
3855 #endif
3856 char mallinfo ();
3857 int
3858 main ()
3859 {
3860 return mallinfo ();
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 for ac_lib in '' malloc; do
3866 if test -z "$ac_lib"; then
3867 ac_res="none required"
3868 else
3869 ac_res=-l$ac_lib
3870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3871 fi
3872 rm -f conftest.$ac_objext conftest$ac_exeext
3873 if { (ac_try="$ac_link"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_link") 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && {
3886 test -z "$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 } && test -s conftest$ac_exeext &&
3889 $as_test_x conftest$ac_exeext; then
3890 ac_cv_search_mallinfo=$ac_res
3891 else
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895
3896 fi
3897
3898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3899 conftest$ac_exeext
3900 if test "${ac_cv_search_mallinfo+set}" = set; then
3901 break
3902 fi
3903 done
3904 if test "${ac_cv_search_mallinfo+set}" = set; then
3905 :
3906 else
3907 ac_cv_search_mallinfo=no
3908 fi
3909 rm conftest.$ac_ext
3910 LIBS=$ac_func_search_save_LIBS
3911 fi
3912 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
3913 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
3914 ac_res=$ac_cv_search_mallinfo
3915 if test "$ac_res" != no; then
3916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3917
3918 fi
3919
3920 { echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
3921 echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; }
3922 if test "${ac_cv_search_pthread_create+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_func_search_save_LIBS=$LIBS
3926 cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h. */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3932
3933 /* Override any GCC internal prototype to avoid an error.
3934 Use char because int might match the return type of a GCC
3935 builtin and then its argument prototype would still apply. */
3936 #ifdef __cplusplus
3937 extern "C"
3938 #endif
3939 char pthread_create ();
3940 int
3941 main ()
3942 {
3943 return pthread_create ();
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 for ac_lib in '' pthread; do
3949 if test -z "$ac_lib"; then
3950 ac_res="none required"
3951 else
3952 ac_res=-l$ac_lib
3953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3954 fi
3955 rm -f conftest.$ac_objext conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } && {
3969 test -z "$ac_c_werror_flag" ||
3970 test ! -s conftest.err
3971 } && test -s conftest$ac_exeext &&
3972 $as_test_x conftest$ac_exeext; then
3973 ac_cv_search_pthread_create=$ac_res
3974 else
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978
3979 fi
3980
3981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3982 conftest$ac_exeext
3983 if test "${ac_cv_search_pthread_create+set}" = set; then
3984 break
3985 fi
3986 done
3987 if test "${ac_cv_search_pthread_create+set}" = set; then
3988 :
3989 else
3990 ac_cv_search_pthread_create=no
3991 fi
3992 rm conftest.$ac_ext
3993 LIBS=$ac_func_search_save_LIBS
3994 fi
3995 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
3996 echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; }
3997 ac_res=$ac_cv_search_pthread_create
3998 if test "$ac_res" != no; then
3999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4000
4001 fi
4002
4003
4004 { echo "$as_me:$LINENO: checking for daemon" >&5
4005 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
4006 if test "${ac_cv_func_daemon+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
4016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4017 #define daemon innocuous_daemon
4018
4019 /* System header to define __stub macros and hopefully few prototypes,
4020 which can conflict with char daemon (); below.
4021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022 <limits.h> exists even on freestanding compilers. */
4023
4024 #ifdef __STDC__
4025 # include <limits.h>
4026 #else
4027 # include <assert.h>
4028 #endif
4029
4030 #undef daemon
4031
4032 /* Override any GCC internal prototype to avoid an error.
4033 Use char because int might match the return type of a GCC
4034 builtin and then its argument prototype would still apply. */
4035 #ifdef __cplusplus
4036 extern "C"
4037 #endif
4038 char daemon ();
4039 /* The GNU C library defines this for functions which it implements
4040 to always fail with ENOSYS. Some functions are actually named
4041 something starting with __ and the normal name is an alias. */
4042 #if defined __stub_daemon || defined __stub___daemon
4043 choke me
4044 #endif
4045
4046 int
4047 main ()
4048 {
4049 return daemon ();
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext conftest$ac_exeext
4055 if { (ac_try="$ac_link"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_link") 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } && {
4068 test -z "$ac_c_werror_flag" ||
4069 test ! -s conftest.err
4070 } && test -s conftest$ac_exeext &&
4071 $as_test_x conftest$ac_exeext; then
4072 ac_cv_func_daemon=yes
4073 else
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 ac_cv_func_daemon=no
4078 fi
4079
4080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4081 conftest$ac_exeext conftest.$ac_ext
4082 fi
4083 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
4084 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
4085 if test $ac_cv_func_daemon = yes; then
4086
4087 cat >>confdefs.h <<\_ACEOF
4088 #define HAVE_DAEMON
4089 _ACEOF
4090
4091 else
4092 case " $LIBOBJS " in
4093 *" daemon.$ac_objext "* ) ;;
4094 *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
4095 ;;
4096 esac
4097
4098 fi
4099
4100
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4107 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4108 # On Suns, sometimes $CPP names a directory.
4109 if test -n "$CPP" && test -d "$CPP"; then
4110 CPP=
4111 fi
4112 if test -z "$CPP"; then
4113 if test "${ac_cv_prog_CPP+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 # Double quotes because CPP needs to be expanded
4117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4118 do
4119 ac_preproc_ok=false
4120 for ac_c_preproc_warn_flag in '' yes
4121 do
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #ifdef __STDC__
4135 # include <limits.h>
4136 #else
4137 # include <assert.h>
4138 #endif
4139 Syntax error
4140 _ACEOF
4141 if { (ac_try="$ac_cpp conftest.$ac_ext"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } >/dev/null && {
4154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4156 }; then
4157 :
4158 else
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 # Broken: fails on valid input.
4163 continue
4164 fi
4165
4166 rm -f conftest.err conftest.$ac_ext
4167
4168 # OK, works on sane cases. Now check whether nonexistent headers
4169 # can be detected and how.
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 #include <ac_nonexistent.h>
4177 _ACEOF
4178 if { (ac_try="$ac_cpp conftest.$ac_ext"
4179 case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } >/dev/null && {
4191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 }; then
4194 # Broken: success on invalid input.
4195 continue
4196 else
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 # Passes both tests.
4201 ac_preproc_ok=:
4202 break
4203 fi
4204
4205 rm -f conftest.err conftest.$ac_ext
4206
4207 done
4208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4209 rm -f conftest.err conftest.$ac_ext
4210 if $ac_preproc_ok; then
4211 break
4212 fi
4213
4214 done
4215 ac_cv_prog_CPP=$CPP
4216
4217 fi
4218 CPP=$ac_cv_prog_CPP
4219 else
4220 ac_cv_prog_CPP=$CPP
4221 fi
4222 { echo "$as_me:$LINENO: result: $CPP" >&5
4223 echo "${ECHO_T}$CPP" >&6; }
4224 ac_preproc_ok=false
4225 for ac_c_preproc_warn_flag in '' yes
4226 do
4227 # Use a header file that comes with gcc, so configuring glibc
4228 # with a fresh cross-compiler works.
4229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4230 # <limits.h> exists even on freestanding compilers.
4231 # On the NeXT, cc -E runs the code through the compiler's parser,
4232 # not just through cpp. "Syntax error" is here to catch this case.
4233 cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #ifdef __STDC__
4240 # include <limits.h>
4241 #else
4242 # include <assert.h>
4243 #endif
4244 Syntax error
4245 _ACEOF
4246 if { (ac_try="$ac_cpp conftest.$ac_ext"
4247 case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } >/dev/null && {
4259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4260 test ! -s conftest.err
4261 }; then
4262 :
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 # Broken: fails on valid input.
4268 continue
4269 fi
4270
4271 rm -f conftest.err conftest.$ac_ext
4272
4273 # OK, works on sane cases. Now check whether nonexistent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <ac_nonexistent.h>
4282 _ACEOF
4283 if { (ac_try="$ac_cpp conftest.$ac_ext"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } >/dev/null && {
4296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 }; then
4299 # Broken: success on invalid input.
4300 continue
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 # Passes both tests.
4306 ac_preproc_ok=:
4307 break
4308 fi
4309
4310 rm -f conftest.err conftest.$ac_ext
4311
4312 done
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then
4316 :
4317 else
4318 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4319 See \`config.log' for more details." >&5
4320 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." >&2;}
4322 { (exit 1); exit 1; }; }
4323 fi
4324
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331
4332 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4333 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4334 if test "${ac_cv_path_GREP+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337 # Extract the first word of "grep ggrep" to use in msg output
4338 if test -z "$GREP"; then
4339 set dummy grep ggrep; ac_prog_name=$2
4340 if test "${ac_cv_path_GREP+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 ac_path_GREP_found=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_prog in grep ggrep; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4353 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4354 # Check for GNU ac_path_GREP and select it if it is found.
4355 # Check for GNU $ac_path_GREP
4356 case `"$ac_path_GREP" --version 2>&1` in
4357 *GNU*)
4358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4359 *)
4360 ac_count=0
4361 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4362 while :
4363 do
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 echo 'GREP' >> "conftest.nl"
4368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370 ac_count=`expr $ac_count + 1`
4371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_GREP="$ac_path_GREP"
4374 ac_path_GREP_max=$ac_count
4375 fi
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4378 done
4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 esac
4381
4382
4383 $ac_path_GREP_found && break 3
4384 done
4385 done
4386
4387 done
4388 IFS=$as_save_IFS
4389
4390
4391 fi
4392
4393 GREP="$ac_cv_path_GREP"
4394 if test -z "$GREP"; then
4395 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4396 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4397 { (exit 1); exit 1; }; }
4398 fi
4399
4400 else
4401 ac_cv_path_GREP=$GREP
4402 fi
4403
4404
4405 fi
4406 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4407 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4408 GREP="$ac_cv_path_GREP"
4409
4410
4411 { echo "$as_me:$LINENO: checking for egrep" >&5
4412 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_EGREP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4417 then ac_cv_path_EGREP="$GREP -E"
4418 else
4419 # Extract the first word of "egrep" to use in msg output
4420 if test -z "$EGREP"; then
4421 set dummy egrep; ac_prog_name=$2
4422 if test "${ac_cv_path_EGREP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 ac_path_EGREP_found=false
4426 # Loop through the user's path and test for each of PROGNAME-LIST
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4429 do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_prog in egrep; do
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4435 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4436 # Check for GNU ac_path_EGREP and select it if it is found.
4437 # Check for GNU $ac_path_EGREP
4438 case `"$ac_path_EGREP" --version 2>&1` in
4439 *GNU*)
4440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4441 *)
4442 ac_count=0
4443 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4444 while :
4445 do
4446 cat "conftest.in" "conftest.in" >"conftest.tmp"
4447 mv "conftest.tmp" "conftest.in"
4448 cp "conftest.in" "conftest.nl"
4449 echo 'EGREP' >> "conftest.nl"
4450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4452 ac_count=`expr $ac_count + 1`
4453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4454 # Best one so far, save it but keep looking for a better one
4455 ac_cv_path_EGREP="$ac_path_EGREP"
4456 ac_path_EGREP_max=$ac_count
4457 fi
4458 # 10*(2^10) chars as input seems more than enough
4459 test $ac_count -gt 10 && break
4460 done
4461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462 esac
4463
4464
4465 $ac_path_EGREP_found && break 3
4466 done
4467 done
4468
4469 done
4470 IFS=$as_save_IFS
4471
4472
4473 fi
4474
4475 EGREP="$ac_cv_path_EGREP"
4476 if test -z "$EGREP"; then
4477 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4478 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4479 { (exit 1); exit 1; }; }
4480 fi
4481
4482 else
4483 ac_cv_path_EGREP=$EGREP
4484 fi
4485
4486
4487 fi
4488 fi
4489 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4490 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4491 EGREP="$ac_cv_path_EGREP"
4492
4493
4494 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4495 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4496 if test "${ac_cv_header_stdc+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h. */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 #include <stdlib.h>
4506 #include <stdarg.h>
4507 #include <string.h>
4508 #include <float.h>
4509
4510 int
4511 main ()
4512 {
4513
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_compile") 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } && {
4532 test -z "$ac_c_werror_flag" ||
4533 test ! -s conftest.err
4534 } && test -s conftest.$ac_objext; then
4535 ac_cv_header_stdc=yes
4536 else
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 ac_cv_header_stdc=no
4541 fi
4542
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544
4545 if test $ac_cv_header_stdc = yes; then
4546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 #include <string.h>
4554
4555 _ACEOF
4556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4557 $EGREP "memchr" >/dev/null 2>&1; then
4558 :
4559 else
4560 ac_cv_header_stdc=no
4561 fi
4562 rm -f conftest*
4563
4564 fi
4565
4566 if test $ac_cv_header_stdc = yes; then
4567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4568 cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h. */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 #include <stdlib.h>
4575
4576 _ACEOF
4577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4578 $EGREP "free" >/dev/null 2>&1; then
4579 :
4580 else
4581 ac_cv_header_stdc=no
4582 fi
4583 rm -f conftest*
4584
4585 fi
4586
4587 if test $ac_cv_header_stdc = yes; then
4588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4589 if test "$cross_compiling" = yes; then
4590 :
4591 else
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 #include <ctype.h>
4599 #include <stdlib.h>
4600 #if ((' ' & 0x0FF) == 0x020)
4601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4603 #else
4604 # define ISLOWER(c) \
4605 (('a' <= (c) && (c) <= 'i') \
4606 || ('j' <= (c) && (c) <= 'r') \
4607 || ('s' <= (c) && (c) <= 'z'))
4608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4609 #endif
4610
4611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4612 int
4613 main ()
4614 {
4615 int i;
4616 for (i = 0; i < 256; i++)
4617 if (XOR (islower (i), ISLOWER (i))
4618 || toupper (i) != TOUPPER (i))
4619 return 2;
4620 return 0;
4621 }
4622 _ACEOF
4623 rm -f conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_link") 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4634 { (case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_try") 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 :
4644 else
4645 echo "$as_me: program exited with status $ac_status" >&5
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ( exit $ac_status )
4650 ac_cv_header_stdc=no
4651 fi
4652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4653 fi
4654
4655
4656 fi
4657 fi
4658 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4659 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4660 if test $ac_cv_header_stdc = yes; then
4661
4662 cat >>confdefs.h <<\_ACEOF
4663 #define STDC_HEADERS 1
4664 _ACEOF
4665
4666 fi
4667
4668 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4679 inttypes.h stdint.h unistd.h
4680 do
4681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h. */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 $ac_includes_default
4694
4695 #include <$ac_header>
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (ac_try="$ac_compile"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_compile") 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && {
4711 test -z "$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4713 } && test -s conftest.$ac_objext; then
4714 eval "$as_ac_Header=yes"
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 eval "$as_ac_Header=no"
4720 fi
4721
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 ac_res=`eval echo '${'$as_ac_Header'}'`
4725 { echo "$as_me:$LINENO: result: $ac_res" >&5
4726 echo "${ECHO_T}$ac_res" >&6; }
4727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4728 cat >>confdefs.h <<_ACEOF
4729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730 _ACEOF
4731
4732 fi
4733
4734 done
4735
4736
4737 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4738 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4739 if test "${ac_cv_header_stdbool_h+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748
4749 #include <stdbool.h>
4750 #ifndef bool
4751 "error: bool is not defined"
4752 #endif
4753 #ifndef false
4754 "error: false is not defined"
4755 #endif
4756 #if false
4757 "error: false is not 0"
4758 #endif
4759 #ifndef true
4760 "error: true is not defined"
4761 #endif
4762 #if true != 1
4763 "error: true is not 1"
4764 #endif
4765 #ifndef __bool_true_false_are_defined
4766 "error: __bool_true_false_are_defined is not defined"
4767 #endif
4768
4769 struct s { _Bool s: 1; _Bool t; } s;
4770
4771 char a[true == 1 ? 1 : -1];
4772 char b[false == 0 ? 1 : -1];
4773 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4774 char d[(bool) 0.5 == true ? 1 : -1];
4775 bool e = &s;
4776 char f[(_Bool) 0.0 == false ? 1 : -1];
4777 char g[true];
4778 char h[sizeof (_Bool)];
4779 char i[sizeof s.t];
4780 enum { j = false, k = true, l = false * true, m = true * 256 };
4781 _Bool n[m];
4782 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4783 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4784 # if defined __xlc__ || defined __GNUC__
4785 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4786 reported by James Lemley on 2005-10-05; see
4787 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4788 This test is not quite right, since xlc is allowed to
4789 reject this program, as the initializer for xlcbug is
4790 not one of the forms that C requires support for.
4791 However, doing the test right would require a runtime
4792 test, and that would make cross-compilation harder.
4793 Let us hope that IBM fixes the xlc bug, and also adds
4794 support for this kind of constant expression. In the
4795 meantime, this test will reject xlc, which is OK, since
4796 our stdbool.h substitute should suffice. We also test
4797 this with GCC, where it should work, to detect more
4798 quickly whether someone messes up the test in the
4799 future. */
4800 char digs[] = "0123456789";
4801 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4802 # endif
4803 /* Catch a bug in an HP-UX C compiler. See
4804 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4805 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4806 */
4807 _Bool q = true;
4808 _Bool *pq = &q;
4809
4810 int
4811 main ()
4812 {
4813
4814 *pq |= q;
4815 *pq |= ! q;
4816 /* Refer to every declared value, to avoid compiler optimizations. */
4817 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4818 + !m + !n + !o + !p + !q + !pq);
4819
4820 ;
4821 return 0;
4822 }
4823 _ACEOF
4824 rm -f conftest.$ac_objext
4825 if { (ac_try="$ac_compile"
4826 case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_compile") 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } && {
4838 test -z "$ac_c_werror_flag" ||
4839 test ! -s conftest.err
4840 } && test -s conftest.$ac_objext; then
4841 ac_cv_header_stdbool_h=yes
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 ac_cv_header_stdbool_h=no
4847 fi
4848
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4852 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4853 { echo "$as_me:$LINENO: checking for _Bool" >&5
4854 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4855 if test "${ac_cv_type__Bool+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h. */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 $ac_includes_default
4865 typedef _Bool ac__type_new_;
4866 int
4867 main ()
4868 {
4869 if ((ac__type_new_ *) 0)
4870 return 0;
4871 if (sizeof (ac__type_new_))
4872 return 0;
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 rm -f conftest.$ac_objext
4878 if { (ac_try="$ac_compile"
4879 case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_compile") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } && {
4891 test -z "$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 } && test -s conftest.$ac_objext; then
4894 ac_cv_type__Bool=yes
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 ac_cv_type__Bool=no
4900 fi
4901
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 fi
4904 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4905 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4906 if test $ac_cv_type__Bool = yes; then
4907
4908 cat >>confdefs.h <<_ACEOF
4909 #define HAVE__BOOL 1
4910 _ACEOF
4911
4912
4913 fi
4914
4915 if test $ac_cv_header_stdbool_h = yes; then
4916
4917 cat >>confdefs.h <<\_ACEOF
4918 #define HAVE_STDBOOL_H 1
4919 _ACEOF
4920
4921 fi
4922
4923 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4924 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4925 if test "${ac_cv_c_const+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934
4935 int
4936 main ()
4937 {
4938 /* FIXME: Include the comments suggested by Paul. */
4939 #ifndef __cplusplus
4940 /* Ultrix mips cc rejects this. */
4941 typedef int charset[2];
4942 const charset cs;
4943 /* SunOS 4.1.1 cc rejects this. */
4944 char const *const *pcpcc;
4945 char **ppc;
4946 /* NEC SVR4.0.2 mips cc rejects this. */
4947 struct point {int x, y;};
4948 static struct point const zero = {0,0};
4949 /* AIX XL C 1.02.0.0 rejects this.
4950 It does not let you subtract one const X* pointer from another in
4951 an arm of an if-expression whose if-part is not a constant
4952 expression */
4953 const char *g = "string";
4954 pcpcc = &g + (g ? g-g : 0);
4955 /* HPUX 7.0 cc rejects these. */
4956 ++pcpcc;
4957 ppc = (char**) pcpcc;
4958 pcpcc = (char const *const *) ppc;
4959 { /* SCO 3.2v4 cc rejects this. */
4960 char *t;
4961 char const *s = 0 ? (char *) 0 : (char const *) 0;
4962
4963 *t++ = 0;
4964 if (s) return 0;
4965 }
4966 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4967 int x[] = {25, 17};
4968 const int *foo = &x[0];
4969 ++foo;
4970 }
4971 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4972 typedef const int *iptr;
4973 iptr p = 0;
4974 ++p;
4975 }
4976 { /* AIX XL C 1.02.0.0 rejects this saying
4977 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4978 struct s { int j; const int *ap[3]; };
4979 struct s *b; b->j = 5;
4980 }
4981 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4982 const int foo = 10;
4983 if (!foo) return 0;
4984 }
4985 return !cs[0] && !zero.x;
4986 #endif
4987
4988 ;
4989 return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (ac_try="$ac_compile"
4994 case "(($ac_try" in
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4997 esac
4998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999 (eval "$ac_compile") 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
5009 ac_cv_c_const=yes
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_cv_c_const=no
5015 fi
5016
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 fi
5019 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5020 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5021 if test $ac_cv_c_const = no; then
5022
5023 cat >>confdefs.h <<\_ACEOF
5024 #define const
5025 _ACEOF
5026
5027 fi
5028
5029 if test "${ac_cv_header_malloc_h+set}" = set; then
5030 { echo "$as_me:$LINENO: checking for malloc.h" >&5
5031 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
5032 if test "${ac_cv_header_malloc_h+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 fi
5035 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5036 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
5037 else
5038 # Is the header compilable?
5039 { echo "$as_me:$LINENO: checking malloc.h usability" >&5
5040 echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 $ac_includes_default
5048 #include <malloc.h>
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5052 case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_compile") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest.$ac_objext; then
5067 ac_header_compiler=yes
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ac_header_compiler=no
5073 fi
5074
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5077 echo "${ECHO_T}$ac_header_compiler" >&6; }
5078
5079 # Is the header present?
5080 { echo "$as_me:$LINENO: checking malloc.h presence" >&5
5081 echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
5082 cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #include <malloc.h>
5089 _ACEOF
5090 if { (ac_try="$ac_cpp conftest.$ac_ext"
5091 case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } >/dev/null && {
5103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5104 test ! -s conftest.err
5105 }; then
5106 ac_header_preproc=yes
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111 ac_header_preproc=no
5112 fi
5113
5114 rm -f conftest.err conftest.$ac_ext
5115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5116 echo "${ECHO_T}$ac_header_preproc" >&6; }
5117
5118 # So? What about this header?
5119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5120 yes:no: )
5121 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5122 echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5124 echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5125 ac_header_preproc=yes
5126 ;;
5127 no:yes:* )
5128 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5129 echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5131 echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5133 echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5134 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5135 echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5137 echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5139 echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5140 ( cat <<\_ASBOX
5141 ## ----------------------------- ##
5142 ## Report this to brad@danga.com ##
5143 ## ----------------------------- ##
5144 _ASBOX
5145 ) | sed "s/^/$as_me: WARNING: /" >&2
5146 ;;
5147 esac
5148 { echo "$as_me:$LINENO: checking for malloc.h" >&5
5149 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
5150 if test "${ac_cv_header_malloc_h+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 ac_cv_header_malloc_h=$ac_header_preproc
5154 fi
5155 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5156 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
5157
5158 fi
5159 if test $ac_cv_header_malloc_h = yes; then
5160
5161 cat >>confdefs.h <<\_ACEOF
5162 #define HAVE_MALLOC_H
5163 _ACEOF
5164
5165 fi
5166
5167
5168 { echo "$as_me:$LINENO: checking for struct mallinfo.arena" >&5
5169 echo $ECHO_N "checking for struct mallinfo.arena... $ECHO_C" >&6; }
5170 if test "${ac_cv_member_struct_mallinfo_arena+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179
5180 # include <malloc.h>
5181
5182
5183
5184 int
5185 main ()
5186 {
5187 static struct mallinfo ac_aggr;
5188 if (ac_aggr.arena)
5189 return 0;
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 rm -f conftest.$ac_objext
5195 if { (ac_try="$ac_compile"
5196 case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199 esac
5200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201 (eval "$ac_compile") 2>conftest.er1
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } && {
5208 test -z "$ac_c_werror_flag" ||
5209 test ! -s conftest.err
5210 } && test -s conftest.$ac_objext; then
5211 ac_cv_member_struct_mallinfo_arena=yes
5212 else
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222
5223 # include <malloc.h>
5224
5225
5226
5227 int
5228 main ()
5229 {
5230 static struct mallinfo ac_aggr;
5231 if (sizeof ac_aggr.arena)
5232 return 0;
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 rm -f conftest.$ac_objext
5238 if { (ac_try="$ac_compile"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_compile") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && {
5251 test -z "$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5253 } && test -s conftest.$ac_objext; then
5254 ac_cv_member_struct_mallinfo_arena=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 ac_cv_member_struct_mallinfo_arena=no
5260 fi
5261
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 fi
5264
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 fi
5267 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mallinfo_arena" >&5
5268 echo "${ECHO_T}$ac_cv_member_struct_mallinfo_arena" >&6; }
5269 if test $ac_cv_member_struct_mallinfo_arena = yes; then
5270
5271
5272 cat >>confdefs.h <<\_ACEOF
5273 #define HAVE_STRUCT_MALLINFO
5274 _ACEOF
5275
5276
5277 fi
5278
5279
5280
5281
5282 { echo "$as_me:$LINENO: checking for socklen_t" >&5
5283 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5284 if test "${ac_cv_c_socklen_t+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287
5288 cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294
5295 #include <sys/types.h>
5296 #include <sys/socket.h>
5297
5298 int
5299 main ()
5300 {
5301
5302 socklen_t foo;
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (ac_try="$ac_compile"
5310 case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compile") 2>conftest.er1
5316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && {
5322 test -z "$ac_c_werror_flag" ||
5323 test ! -s conftest.err
5324 } && test -s conftest.$ac_objext; then
5325
5326 ac_cv_c_socklen_t=yes
5327
5328 else
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332
5333 ac_cv_c_socklen_t=no
5334
5335 fi
5336
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338
5339 fi
5340 { echo "$as_me:$LINENO: result: $ac_cv_c_socklen_t" >&5
5341 echo "${ECHO_T}$ac_cv_c_socklen_t" >&6; }
5342 if test $ac_cv_c_socklen_t = no; then
5343
5344 cat >>confdefs.h <<\_ACEOF
5345 #define socklen_t int
5346 _ACEOF
5347
5348 fi
5349
5350
5351
5352
5353 { echo "$as_me:$LINENO: checking for endianness" >&5
5354 echo $ECHO_N "checking for endianness... $ECHO_C" >&6; }
5355 if test "${ac_cv_c_endian+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358
5359 if test "$cross_compiling" = yes; then
5360 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5361 See \`config.log' for more details." >&5
5362 echo "$as_me: error: cannot run test program while cross compiling
5363 See \`config.log' for more details." >&2;}
5364 { (exit 1); exit 1; }; }
5365 else
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372
5373 int
5374 main ()
5375 {
5376 long val = 1;
5377 char *c = (char *) &val;
5378 exit(*c == 1);
5379
5380 ;
5381 return 0;
5382 }
5383
5384 _ACEOF
5385 rm -f conftest$ac_exeext
5386 if { (ac_try="$ac_link"
5387 case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_link") 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5396 { (case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_try") 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405
5406 ac_cv_c_endian=big
5407
5408 else
5409 echo "$as_me: program exited with status $ac_status" >&5
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ( exit $ac_status )
5414
5415 ac_cv_c_endian=little
5416
5417 fi
5418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5419 fi
5420
5421
5422
5423 fi
5424 { echo "$as_me:$LINENO: result: $ac_cv_c_endian" >&5
5425 echo "${ECHO_T}$ac_cv_c_endian" >&6; }
5426 if test $ac_cv_c_endian = big; then
5427
5428 cat >>confdefs.h <<\_ACEOF
5429 #define ENDIAN_BIG 1
5430 _ACEOF
5431
5432 fi
5433 if test $ac_cv_c_endian = little; then
5434
5435 cat >>confdefs.h <<\_ACEOF
5436 #define ENDIAN_LITTLE 1
5437 _ACEOF
5438
5439 fi
5440
5441
5442 # Check whether --enable-threads was given.
5443 if test "${enable_threads+set}" = set; then
5444 enableval=$enable_threads; if test "$ac_cv_search_pthread_create" != "no"; then
5445
5446 cat >>confdefs.h <<\_ACEOF
5447 #define USE_THREADS
5448 _ACEOF
5449
5450 else
5451 { { echo "$as_me:$LINENO: error: Can't enable threads without the POSIX thread library." >&5
5452 echo "$as_me: error: Can't enable threads without the POSIX thread library." >&2;}
5453 { (exit 1); exit 1; }; }
5454 fi
5455 fi
5456
5457
5458
5459 for ac_func in mlockall
5460 do
5461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5475 #define $ac_func innocuous_$ac_func
5476
5477 /* System header to define __stub macros and hopefully few prototypes,
5478 which can conflict with char $ac_func (); below.
5479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5480 <limits.h> exists even on freestanding compilers. */
5481
5482 #ifdef __STDC__
5483 # include <limits.h>
5484 #else
5485 # include <assert.h>
5486 #endif
5487
5488 #undef $ac_func
5489
5490 /* Override any GCC internal prototype to avoid an error.
5491 Use char because int might match the return type of a GCC
5492 builtin and then its argument prototype would still apply. */
5493 #ifdef __cplusplus
5494 extern "C"
5495 #endif
5496 char $ac_func ();
5497 /* The GNU C library defines this for functions which it implements
5498 to always fail with ENOSYS. Some functions are actually named
5499 something starting with __ and the normal name is an alias. */
5500 #if defined __stub_$ac_func || defined __stub___$ac_func
5501 choke me
5502 #endif
5503
5504 int
5505 main ()
5506 {
5507 return $ac_func ();
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (ac_try="$ac_link"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_link") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest$ac_exeext &&
5529 $as_test_x conftest$ac_exeext; then
5530 eval "$as_ac_var=yes"
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 eval "$as_ac_var=no"
5536 fi
5537
5538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5539 conftest$ac_exeext conftest.$ac_ext
5540 fi
5541 ac_res=`eval echo '${'$as_ac_var'}'`
5542 { echo "$as_me:$LINENO: result: $ac_res" >&5
5543 echo "${ECHO_T}$ac_res" >&6; }
5544 if test `eval echo '${'$as_ac_var'}'` = yes; then
5545 cat >>confdefs.h <<_ACEOF
5546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5547 _ACEOF
5548
5549 fi
5550 done
5551
5552
5553 ac_config_files="$ac_config_files Makefile doc/Makefile"
5554
5555 cat >confcache <<\_ACEOF
5556 # This file is a shell script that caches the results of configure
5557 # tests run on this system so they can be shared between configure
5558 # scripts and configure runs, see configure's option --config-cache.
5559 # It is not useful on other systems. If it contains results you don't
5560 # want to keep, you may remove or edit it.
5561 #
5562 # config.status only pays attention to the cache file if you give it
5563 # the --recheck option to rerun configure.
5564 #
5565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5567 # following values.
5568
5569 _ACEOF
5570
5571 # The following way of writing the cache mishandles newlines in values,
5572 # but we know of no workaround that is simple, portable, and efficient.
5573 # So, we kill variables containing newlines.
5574 # Ultrix sh set writes to stderr and can't be redirected directly,
5575 # and sets the high bit in the cache file unless we assign to the vars.
5576 (
5577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5578 eval ac_val=\$$ac_var
5579 case $ac_val in #(
5580 *${as_nl}*)
5581 case $ac_var in #(
5582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5584 esac
5585 case $ac_var in #(
5586 _ | IFS | as_nl) ;; #(
5587 *) $as_unset $ac_var ;;
5588 esac ;;
5589 esac
5590 done
5591
5592 (set) 2>&1 |
5593 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5594 *${as_nl}ac_space=\ *)
5595 # `set' does not quote correctly, so add quotes (double-quote
5596 # substitution turns \\\\ into \\, and sed turns \\ into \).
5597 sed -n \
5598 "s/'/'\\\\''/g;
5599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5600 ;; #(
5601 *)
5602 # `set' quotes correctly as required by POSIX, so do not add quotes.
5603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5604 ;;
5605 esac |
5606 sort
5607 ) |
5608 sed '
5609 /^ac_cv_env_/b end
5610 t clear
5611 :clear
5612 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5613 t end
5614 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5615 :end' >>confcache
5616 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5617 if test -w "$cache_file"; then
5618 test "x$cache_file" != "x/dev/null" &&
5619 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5620 echo "$as_me: updating cache $cache_file" >&6;}
5621 cat confcache >$cache_file
5622 else
5623 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5624 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5625 fi
5626 fi
5627 rm -f confcache
5628
5629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5630 # Let make expand exec_prefix.
5631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5632
5633 DEFS=-DHAVE_CONFIG_H
5634
5635 ac_libobjs=
5636 ac_ltlibobjs=
5637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5638 # 1. Remove the extension, and $U if already installed.
5639 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5640 ac_i=`echo "$ac_i" | sed "$ac_script"`
5641 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5642 # will be set to the directory where LIBOBJS objects are built.
5643 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5644 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5645 done
5646 LIBOBJS=$ac_libobjs
5647
5648 LTLIBOBJS=$ac_ltlibobjs
5649
5650
5651 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5652 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5653 Usually this means the macro was only invoked conditionally." >&5
5654 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5655 Usually this means the macro was only invoked conditionally." >&2;}
5656 { (exit 1); exit 1; }; }
5657 fi
5658 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5659 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5660 Usually this means the macro was only invoked conditionally." >&5
5661 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5662 Usually this means the macro was only invoked conditionally." >&2;}
5663 { (exit 1); exit 1; }; }
5664 fi
5665
5666 : ${CONFIG_STATUS=./config.status}
5667 ac_clean_files_save=$ac_clean_files
5668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5669 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5670 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5671 cat >$CONFIG_STATUS <<_ACEOF
5672 #! $SHELL
5673 # Generated by $as_me.
5674 # Run this file to recreate the current configuration.
5675 # Compiler output produced by configure, useful for debugging
5676 # configure, is in config.log if it exists.
5677
5678 debug=false
5679 ac_cs_recheck=false
5680 ac_cs_silent=false
5681 SHELL=\${CONFIG_SHELL-$SHELL}
5682 _ACEOF
5683
5684 cat >>$CONFIG_STATUS <<\_ACEOF
5685 ## --------------------- ##
5686 ## M4sh Initialization. ##
5687 ## --------------------- ##
5688
5689 # Be more Bourne compatible
5690 DUALCASE=1; export DUALCASE # for MKS sh
5691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5692 emulate sh
5693 NULLCMD=:
5694 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5695 # is contrary to our usage. Disable this feature.
5696 alias -g '${1+"$@"}'='"$@"'
5697 setopt NO_GLOB_SUBST
5698 else
5699 case `(set -o) 2>/dev/null` in
5700 *posix*) set -o posix ;;
5701 esac
5702
5703 fi
5704
5705
5706
5707
5708 # PATH needs CR
5709 # Avoid depending upon Character Ranges.
5710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5713 as_cr_digits='0123456789'
5714 as_cr_alnum=$as_cr_Letters$as_cr_digits
5715
5716 # The user is always right.
5717 if test "${PATH_SEPARATOR+set}" != set; then
5718 echo "#! /bin/sh" >conf$$.sh
5719 echo "exit 0" >>conf$$.sh
5720 chmod +x conf$$.sh
5721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5722 PATH_SEPARATOR=';'
5723 else
5724 PATH_SEPARATOR=:
5725 fi
5726 rm -f conf$$.sh
5727 fi
5728
5729 # Support unset when possible.
5730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5731 as_unset=unset
5732 else
5733 as_unset=false
5734 fi
5735
5736
5737 # IFS
5738 # We need space, tab and new line, in precisely that order. Quoting is
5739 # there to prevent editors from complaining about space-tab.
5740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5741 # splitting by setting IFS to empty value.)
5742 as_nl='
5743 '
5744 IFS=" "" $as_nl"
5745
5746 # Find who we are. Look in the path if we contain no directory separator.
5747 case $0 in
5748 *[\\/]* ) as_myself=$0 ;;
5749 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5755 done
5756 IFS=$as_save_IFS
5757
5758 ;;
5759 esac
5760 # We did not find ourselves, most probably we were run as `sh COMMAND'
5761 # in which case we are not to be found in the path.
5762 if test "x$as_myself" = x; then
5763 as_myself=$0
5764 fi
5765 if test ! -f "$as_myself"; then
5766 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5767 { (exit 1); exit 1; }
5768 fi
5769
5770 # Work around bugs in pre-3.0 UWIN ksh.
5771 for as_var in ENV MAIL MAILPATH
5772 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5773 done
5774 PS1='$ '
5775 PS2='> '
5776 PS4='+ '
5777
5778 # NLS nuisances.
5779 for as_var in \
5780 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5781 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5782 LC_TELEPHONE LC_TIME
5783 do
5784 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5785 eval $as_var=C; export $as_var
5786 else
5787 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5788 fi
5789 done
5790
5791 # Required to use basename.
5792 if expr a : '\(a\)' >/dev/null 2>&1 &&
5793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5794 as_expr=expr
5795 else
5796 as_expr=false
5797 fi
5798
5799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5800 as_basename=basename
5801 else
5802 as_basename=false
5803 fi
5804
5805
5806 # Name of the executable.
5807 as_me=`$as_basename -- "$0" ||
5808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5809 X"$0" : 'X\(//\)$' \| \
5810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5811 echo X/"$0" |
5812 sed '/^.*\/\([^/][^/]*\)\/*$/{
5813 s//\1/
5814 q
5815 }
5816 /^X\/\(\/\/\)$/{
5817 s//\1/
5818 q
5819 }
5820 /^X\/\(\/\).*/{
5821 s//\1/
5822 q
5823 }
5824 s/.*/./; q'`
5825
5826 # CDPATH.
5827 $as_unset CDPATH
5828
5829
5830
5831 as_lineno_1=$LINENO
5832 as_lineno_2=$LINENO
5833 test "x$as_lineno_1" != "x$as_lineno_2" &&
5834 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5835
5836 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5837 # uniformly replaced by the line number. The first 'sed' inserts a
5838 # line-number line after each line using $LINENO; the second 'sed'
5839 # does the real work. The second script uses 'N' to pair each
5840 # line-number line with the line containing $LINENO, and appends
5841 # trailing '-' during substitution so that $LINENO is not a special
5842 # case at line end.
5843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5844 # scripts with optimization help from Paolo Bonzini. Blame Lee
5845 # E. McMahon (1931-1989) for sed's syntax. :-)
5846 sed -n '
5847 p
5848 /[$]LINENO/=
5849 ' <$as_myself |
5850 sed '
5851 s/[$]LINENO.*/&-/
5852 t lineno
5853 b
5854 :lineno
5855 N
5856 :loop
5857 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5858 t loop
5859 s/-\n.*//
5860 ' >$as_me.lineno &&
5861 chmod +x "$as_me.lineno" ||
5862 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5863 { (exit 1); exit 1; }; }
5864
5865 # Don't try to exec as it changes $[0], causing all sort of problems
5866 # (the dirname of $[0] is not the place where we might find the
5867 # original and so on. Autoconf is especially sensitive to this).
5868 . "./$as_me.lineno"
5869 # Exit status is that of the last command.
5870 exit
5871 }
5872
5873
5874 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5875 as_dirname=dirname
5876 else
5877 as_dirname=false
5878 fi
5879
5880 ECHO_C= ECHO_N= ECHO_T=
5881 case `echo -n x` in
5882 -n*)
5883 case `echo 'x\c'` in
5884 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5885 *) ECHO_C='\c';;
5886 esac;;
5887 *)
5888 ECHO_N='-n';;
5889 esac
5890
5891 if expr a : '\(a\)' >/dev/null 2>&1 &&
5892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5893 as_expr=expr
5894 else
5895 as_expr=false
5896 fi
5897
5898 rm -f conf$$ conf$$.exe conf$$.file
5899 if test -d conf$$.dir; then
5900 rm -f conf$$.dir/conf$$.file
5901 else
5902 rm -f conf$$.dir
5903 mkdir conf$$.dir
5904 fi
5905 echo >conf$$.file
5906 if ln -s conf$$.file conf$$ 2>/dev/null; then
5907 as_ln_s='ln -s'
5908 # ... but there are two gotchas:
5909 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5910 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5911 # In both cases, we have to default to `cp -p'.
5912 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5913 as_ln_s='cp -p'
5914 elif ln conf$$.file conf$$ 2>/dev/null; then
5915 as_ln_s=ln
5916 else
5917 as_ln_s='cp -p'
5918 fi
5919 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5920 rmdir conf$$.dir 2>/dev/null
5921
5922 if mkdir -p . 2>/dev/null; then
5923 as_mkdir_p=:
5924 else
5925 test -d ./-p && rmdir ./-p
5926 as_mkdir_p=false
5927 fi
5928
5929 if test -x / >/dev/null 2>&1; then
5930 as_test_x='test -x'
5931 else
5932 if ls -dL / >/dev/null 2>&1; then
5933 as_ls_L_option=L
5934 else
5935 as_ls_L_option=
5936 fi
5937 as_test_x='
5938 eval sh -c '\''
5939 if test -d "$1"; then
5940 test -d "$1/.";
5941 else
5942 case $1 in
5943 -*)set "./$1";;
5944 esac;
5945 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5946 ???[sx]*):;;*)false;;esac;fi
5947 '\'' sh
5948 '
5949 fi
5950 as_executable_p=$as_test_x
5951
5952 # Sed expression to map a string onto a valid CPP name.
5953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5954
5955 # Sed expression to map a string onto a valid variable name.
5956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5957
5958
5959 exec 6>&1
5960
5961 # Save the log message, to keep $[0] and so on meaningful, and to
5962 # report actual input values of CONFIG_FILES etc. instead of their
5963 # values after options handling.
5964 ac_log="
5965 This file was extended by memcached $as_me 1.2.3, which was
5966 generated by GNU Autoconf 2.61. Invocation command line was
5967
5968 CONFIG_FILES = $CONFIG_FILES
5969 CONFIG_HEADERS = $CONFIG_HEADERS
5970 CONFIG_LINKS = $CONFIG_LINKS
5971 CONFIG_COMMANDS = $CONFIG_COMMANDS
5972 $ $0 $@
5973
5974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5975 "
5976
5977 _ACEOF
5978
5979 cat >>$CONFIG_STATUS <<_ACEOF
5980 # Files that config.status was made for.
5981 config_files="$ac_config_files"
5982 config_headers="$ac_config_headers"
5983 config_commands="$ac_config_commands"
5984
5985 _ACEOF
5986
5987 cat >>$CONFIG_STATUS <<\_ACEOF
5988 ac_cs_usage="\
5989 \`$as_me' instantiates files from templates according to the
5990 current configuration.
5991
5992 Usage: $0 [OPTIONS] [FILE]...
5993
5994 -h, --help print this help, then exit
5995 -V, --version print version number and configuration settings, then exit
5996 -q, --quiet do not print progress messages
5997 -d, --debug don't remove temporary files
5998 --recheck update $as_me by reconfiguring in the same conditions
5999 --file=FILE[:TEMPLATE]
6000 instantiate the configuration file FILE
6001 --header=FILE[:TEMPLATE]
6002 instantiate the configuration header FILE
6003
6004 Configuration files:
6005 $config_files
6006
6007 Configuration headers:
6008 $config_headers
6009
6010 Configuration commands:
6011 $config_commands
6012
6013 Report bugs to <bug-autoconf@gnu.org>."
6014
6015 _ACEOF
6016 cat >>$CONFIG_STATUS <<_ACEOF
6017 ac_cs_version="\\
6018 memcached config.status 1.2.3
6019 configured by $0, generated by GNU Autoconf 2.61,
6020 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6021
6022 Copyright (C) 2006 Free Software Foundation, Inc.
6023 This config.status script is free software; the Free Software Foundation
6024 gives unlimited permission to copy, distribute and modify it."
6025
6026 ac_pwd='$ac_pwd'
6027 srcdir='$srcdir'
6028 INSTALL='$INSTALL'
6029 MKDIR_P='$MKDIR_P'
6030 _ACEOF
6031
6032 cat >>$CONFIG_STATUS <<\_ACEOF
6033 # If no file are specified by the user, then we need to provide default
6034 # value. By we need to know if files were specified by the user.
6035 ac_need_defaults=:
6036 while test $# != 0
6037 do
6038 case $1 in
6039 --*=*)
6040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6041 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6042 ac_shift=:
6043 ;;
6044 *)
6045 ac_option=$1
6046 ac_optarg=$2
6047 ac_shift=shift
6048 ;;
6049 esac
6050
6051 case $ac_option in
6052 # Handling of the options.
6053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6054 ac_cs_recheck=: ;;
6055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6056 echo "$ac_cs_version"; exit ;;
6057 --debug | --debu | --deb | --de | --d | -d )
6058 debug=: ;;
6059 --file | --fil | --fi | --f )
6060 $ac_shift
6061 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6062 ac_need_defaults=false;;
6063 --header | --heade | --head | --hea )
6064 $ac_shift
6065 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6066 ac_need_defaults=false;;
6067 --he | --h)
6068 # Conflict between --help and --header
6069 { echo "$as_me: error: ambiguous option: $1
6070 Try \`$0 --help' for more information." >&2
6071 { (exit 1); exit 1; }; };;
6072 --help | --hel | -h )
6073 echo "$ac_cs_usage"; exit ;;
6074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6075 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6076 ac_cs_silent=: ;;
6077
6078 # This is an error.
6079 -*) { echo "$as_me: error: unrecognized option: $1
6080 Try \`$0 --help' for more information." >&2
6081 { (exit 1); exit 1; }; } ;;
6082
6083 *) ac_config_targets="$ac_config_targets $1"
6084 ac_need_defaults=false ;;
6085
6086 esac
6087 shift
6088 done
6089
6090 ac_configure_extra_args=
6091
6092 if $ac_cs_silent; then
6093 exec 6>/dev/null
6094 ac_configure_extra_args="$ac_configure_extra_args --silent"
6095 fi
6096
6097 _ACEOF
6098 cat >>$CONFIG_STATUS <<_ACEOF
6099 if \$ac_cs_recheck; then
6100 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6101 CONFIG_SHELL=$SHELL
6102 export CONFIG_SHELL
6103 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6104 fi
6105
6106 _ACEOF
6107 cat >>$CONFIG_STATUS <<\_ACEOF
6108 exec 5>>config.log
6109 {
6110 echo
6111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6112 ## Running $as_me. ##
6113 _ASBOX
6114 echo "$ac_log"
6115 } >&5
6116
6117 _ACEOF
6118 cat >>$CONFIG_STATUS <<_ACEOF
6119 #
6120 # INIT-COMMANDS
6121 #
6122 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6123
6124 _ACEOF
6125
6126 cat >>$CONFIG_STATUS <<\_ACEOF
6127
6128 # Handling of arguments.
6129 for ac_config_target in $ac_config_targets
6130 do
6131 case $ac_config_target in
6132 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6133 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6135 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6136
6137 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6138 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6139 { (exit 1); exit 1; }; };;
6140 esac
6141 done
6142
6143
6144 # If the user did not use the arguments to specify the items to instantiate,
6145 # then the envvar interface is used. Set only those that are not.
6146 # We use the long form for the default assignment because of an extremely
6147 # bizarre bug on SunOS 4.1.3.
6148 if $ac_need_defaults; then
6149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6152 fi
6153
6154 # Have a temporary directory for convenience. Make it in the build tree
6155 # simply because there is no reason against having it here, and in addition,
6156 # creating and moving files from /tmp can sometimes cause problems.
6157 # Hook for its removal unless debugging.
6158 # Note that there is a small window in which the directory will not be cleaned:
6159 # after its creation but before its name has been assigned to `$tmp'.
6160 $debug ||
6161 {
6162 tmp=
6163 trap 'exit_status=$?
6164 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6165 ' 0
6166 trap '{ (exit 1); exit 1; }' 1 2 13 15
6167 }
6168 # Create a (secure) tmp directory for tmp files.
6169
6170 {
6171 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6172 test -n "$tmp" && test -d "$tmp"
6173 } ||
6174 {
6175 tmp=./conf$$-$RANDOM
6176 (umask 077 && mkdir "$tmp")
6177 } ||
6178 {
6179 echo "$me: cannot create a temporary directory in ." >&2
6180 { (exit 1); exit 1; }
6181 }
6182
6183 #
6184 # Set up the sed scripts for CONFIG_FILES section.
6185 #
6186
6187 # No need to generate the scripts if there are no CONFIG_FILES.
6188 # This happens for instance when ./config.status config.h
6189 if test -n "$CONFIG_FILES"; then
6190
6191 _ACEOF
6192
6193
6194
6195 ac_delim='%!_!# '
6196 for ac_last_try in false false false false false :; do
6197 cat >conf$$subs.sed <<_ACEOF
6198 SHELL!$SHELL$ac_delim
6199 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6200 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6201 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6202 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6203 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6204 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6205 exec_prefix!$exec_prefix$ac_delim
6206 prefix!$prefix$ac_delim
6207 program_transform_name!$program_transform_name$ac_delim
6208 bindir!$bindir$ac_delim
6209 sbindir!$sbindir$ac_delim
6210 libexecdir!$libexecdir$ac_delim
6211 datarootdir!$datarootdir$ac_delim
6212 datadir!$datadir$ac_delim
6213 sysconfdir!$sysconfdir$ac_delim
6214 sharedstatedir!$sharedstatedir$ac_delim
6215 localstatedir!$localstatedir$ac_delim
6216 includedir!$includedir$ac_delim
6217 oldincludedir!$oldincludedir$ac_delim
6218 docdir!$docdir$ac_delim
6219 infodir!$infodir$ac_delim
6220 htmldir!$htmldir$ac_delim
6221 dvidir!$dvidir$ac_delim
6222 pdfdir!$pdfdir$ac_delim
6223 psdir!$psdir$ac_delim
6224 libdir!$libdir$ac_delim
6225 localedir!$localedir$ac_delim
6226 mandir!$mandir$ac_delim
6227 DEFS!$DEFS$ac_delim
6228 ECHO_C!$ECHO_C$ac_delim
6229 ECHO_N!$ECHO_N$ac_delim
6230 ECHO_T!$ECHO_T$ac_delim
6231 LIBS!$LIBS$ac_delim
6232 build_alias!$build_alias$ac_delim
6233 host_alias!$host_alias$ac_delim
6234 target_alias!$target_alias$ac_delim
6235 build!$build$ac_delim
6236 build_cpu!$build_cpu$ac_delim
6237 build_vendor!$build_vendor$ac_delim
6238 build_os!$build_os$ac_delim
6239 host!$host$ac_delim
6240 host_cpu!$host_cpu$ac_delim
6241 host_vendor!$host_vendor$ac_delim
6242 host_os!$host_os$ac_delim
6243 target!$target$ac_delim
6244 target_cpu!$target_cpu$ac_delim
6245 target_vendor!$target_vendor$ac_delim
6246 target_os!$target_os$ac_delim
6247 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6248 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6249 INSTALL_DATA!$INSTALL_DATA$ac_delim
6250 am__isrc!$am__isrc$ac_delim
6251 CYGPATH_W!$CYGPATH_W$ac_delim
6252 PACKAGE!$PACKAGE$ac_delim
6253 VERSION!$VERSION$ac_delim
6254 ACLOCAL!$ACLOCAL$ac_delim
6255 AUTOCONF!$AUTOCONF$ac_delim
6256 AUTOMAKE!$AUTOMAKE$ac_delim
6257 AUTOHEADER!$AUTOHEADER$ac_delim
6258 MAKEINFO!$MAKEINFO$ac_delim
6259 install_sh!$install_sh$ac_delim
6260 STRIP!$STRIP$ac_delim
6261 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6262 mkdir_p!$mkdir_p$ac_delim
6263 AWK!$AWK$ac_delim
6264 SET_MAKE!$SET_MAKE$ac_delim
6265 am__leading_dot!$am__leading_dot$ac_delim
6266 AMTAR!$AMTAR$ac_delim
6267 am__tar!$am__tar$ac_delim
6268 am__untar!$am__untar$ac_delim
6269 CC!$CC$ac_delim
6270 CFLAGS!$CFLAGS$ac_delim
6271 LDFLAGS!$LDFLAGS$ac_delim
6272 CPPFLAGS!$CPPFLAGS$ac_delim
6273 ac_ct_CC!$ac_ct_CC$ac_delim
6274 EXEEXT!$EXEEXT$ac_delim
6275 OBJEXT!$OBJEXT$ac_delim
6276 DEPDIR!$DEPDIR$ac_delim
6277 am__include!$am__include$ac_delim
6278 am__quote!$am__quote$ac_delim
6279 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6280 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6281 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6282 CCDEPMODE!$CCDEPMODE$ac_delim
6283 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6284 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6285 LIBOBJS!$LIBOBJS$ac_delim
6286 CPP!$CPP$ac_delim
6287 GREP!$GREP$ac_delim
6288 EGREP!$EGREP$ac_delim
6289 LTLIBOBJS!$LTLIBOBJS$ac_delim
6290 _ACEOF
6291
6292 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
6293 break
6294 elif $ac_last_try; then
6295 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6296 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6297 { (exit 1); exit 1; }; }
6298 else
6299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6300 fi
6301 done
6302
6303 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6304 if test -n "$ac_eof"; then
6305 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6306 ac_eof=`expr $ac_eof + 1`
6307 fi
6308
6309 cat >>$CONFIG_STATUS <<_ACEOF
6310 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6312 _ACEOF
6313 sed '
6314 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6315 s/^/s,@/; s/!/@,|#_!!_#|/
6316 :n
6317 t n
6318 s/'"$ac_delim"'$/,g/; t
6319 s/$/\\/; p
6320 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6321 ' >>$CONFIG_STATUS <conf$$subs.sed
6322 rm -f conf$$subs.sed
6323 cat >>$CONFIG_STATUS <<_ACEOF
6324 :end
6325 s/|#_!!_#|//g
6326 CEOF$ac_eof
6327 _ACEOF
6328
6329
6330 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6331 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6332 # trailing colons and then remove the whole line if VPATH becomes empty
6333 # (actually we leave an empty line to preserve line numbers).
6334 if test "x$srcdir" = x.; then
6335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6336 s/:*\$(srcdir):*/:/
6337 s/:*\${srcdir}:*/:/
6338 s/:*@srcdir@:*/:/
6339 s/^\([^=]*=[ ]*\):*/\1/
6340 s/:*$//
6341 s/^[^=]*=[ ]*$//
6342 }'
6343 fi
6344
6345 cat >>$CONFIG_STATUS <<\_ACEOF
6346 fi # test -n "$CONFIG_FILES"
6347
6348
6349 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
6350 do
6351 case $ac_tag in
6352 :[FHLC]) ac_mode=$ac_tag; continue;;
6353 esac
6354 case $ac_mode$ac_tag in
6355 :[FHL]*:*);;
6356 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6357 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6358 { (exit 1); exit 1; }; };;
6359 :[FH]-) ac_tag=-:-;;
6360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6361 esac
6362 ac_save_IFS=$IFS
6363 IFS=:
6364 set x $ac_tag
6365 IFS=$ac_save_IFS
6366 shift
6367 ac_file=$1
6368 shift
6369
6370 case $ac_mode in
6371 :L) ac_source=$1;;
6372 :[FH])
6373 ac_file_inputs=
6374 for ac_f
6375 do
6376 case $ac_f in
6377 -) ac_f="$tmp/stdin";;
6378 *) # Look for the file first in the build tree, then in the source tree
6379 # (if the path is not absolute). The absolute path cannot be DOS-style,
6380 # because $ac_f cannot contain `:'.
6381 test -f "$ac_f" ||
6382 case $ac_f in
6383 [\\/$]*) false;;
6384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6385 esac ||
6386 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6387 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6388 { (exit 1); exit 1; }; };;
6389 esac
6390 ac_file_inputs="$ac_file_inputs $ac_f"
6391 done
6392
6393 # Let's still pretend it is `configure' which instantiates (i.e., don't
6394 # use $as_me), people would be surprised to read:
6395 # /* config.h. Generated by config.status. */
6396 configure_input="Generated from "`IFS=:
6397 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6398 if test x"$ac_file" != x-; then
6399 configure_input="$ac_file. $configure_input"
6400 { echo "$as_me:$LINENO: creating $ac_file" >&5
6401 echo "$as_me: creating $ac_file" >&6;}
6402 fi
6403
6404 case $ac_tag in
6405 *:-:* | *:-) cat >"$tmp/stdin";;
6406 esac
6407 ;;
6408 esac
6409
6410 ac_dir=`$as_dirname -- "$ac_file" ||
6411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6412 X"$ac_file" : 'X\(//\)[^/]' \| \
6413 X"$ac_file" : 'X\(//\)$' \| \
6414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6415 echo X"$ac_file" |
6416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6417 s//\1/
6418 q
6419 }
6420 /^X\(\/\/\)[^/].*/{
6421 s//\1/
6422 q
6423 }
6424 /^X\(\/\/\)$/{
6425 s//\1/
6426 q
6427 }
6428 /^X\(\/\).*/{
6429 s//\1/
6430 q
6431 }
6432 s/.*/./; q'`
6433 { as_dir="$ac_dir"
6434 case $as_dir in #(
6435 -*) as_dir=./$as_dir;;
6436 esac
6437 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6438 as_dirs=
6439 while :; do
6440 case $as_dir in #(
6441 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6442 *) as_qdir=$as_dir;;
6443 esac
6444 as_dirs="'$as_qdir' $as_dirs"
6445 as_dir=`$as_dirname -- "$as_dir" ||
6446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6447 X"$as_dir" : 'X\(//\)[^/]' \| \
6448 X"$as_dir" : 'X\(//\)$' \| \
6449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6450 echo X"$as_dir" |
6451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6452 s//\1/
6453 q
6454 }
6455 /^X\(\/\/\)[^/].*/{
6456 s//\1/
6457 q
6458 }
6459 /^X\(\/\/\)$/{
6460 s//\1/
6461 q
6462 }
6463 /^X\(\/\).*/{
6464 s//\1/
6465 q
6466 }
6467 s/.*/./; q'`
6468 test -d "$as_dir" && break
6469 done
6470 test -z "$as_dirs" || eval "mkdir $as_dirs"
6471 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6472 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6473 { (exit 1); exit 1; }; }; }
6474 ac_builddir=.
6475
6476 case "$ac_dir" in
6477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6478 *)
6479 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6480 # A ".." for each directory in $ac_dir_suffix.
6481 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6482 case $ac_top_builddir_sub in
6483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6485 esac ;;
6486 esac
6487 ac_abs_top_builddir=$ac_pwd
6488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6489 # for backward compatibility:
6490 ac_top_builddir=$ac_top_build_prefix
6491
6492 case $srcdir in
6493 .) # We are building in place.
6494 ac_srcdir=.
6495 ac_top_srcdir=$ac_top_builddir_sub
6496 ac_abs_top_srcdir=$ac_pwd ;;
6497 [\\/]* | ?:[\\/]* ) # Absolute name.
6498 ac_srcdir=$srcdir$ac_dir_suffix;
6499 ac_top_srcdir=$srcdir
6500 ac_abs_top_srcdir=$srcdir ;;
6501 *) # Relative name.
6502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6503 ac_top_srcdir=$ac_top_build_prefix$srcdir
6504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6505 esac
6506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6507
6508
6509 case $ac_mode in
6510 :F)
6511 #
6512 # CONFIG_FILE
6513 #
6514
6515 case $INSTALL in
6516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6517 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6518 esac
6519 ac_MKDIR_P=$MKDIR_P
6520 case $MKDIR_P in
6521 [\\/$]* | ?:[\\/]* ) ;;
6522 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6523 esac
6524 _ACEOF
6525
6526 cat >>$CONFIG_STATUS <<\_ACEOF
6527 # If the template does not know about datarootdir, expand it.
6528 # FIXME: This hack should be removed a few years after 2.60.
6529 ac_datarootdir_hack=; ac_datarootdir_seen=
6530
6531 case `sed -n '/datarootdir/ {
6532 p
6533 q
6534 }
6535 /@datadir@/p
6536 /@docdir@/p
6537 /@infodir@/p
6538 /@localedir@/p
6539 /@mandir@/p
6540 ' $ac_file_inputs` in
6541 *datarootdir*) ac_datarootdir_seen=yes;;
6542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6543 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6544 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6545 _ACEOF
6546 cat >>$CONFIG_STATUS <<_ACEOF
6547 ac_datarootdir_hack='
6548 s&@datadir@&$datadir&g
6549 s&@docdir@&$docdir&g
6550 s&@infodir@&$infodir&g
6551 s&@localedir@&$localedir&g
6552 s&@mandir@&$mandir&g
6553 s&\\\${datarootdir}&$datarootdir&g' ;;
6554 esac
6555 _ACEOF
6556
6557 # Neutralize VPATH when `$srcdir' = `.'.
6558 # Shell code in configure.ac might set extrasub.
6559 # FIXME: do we really want to maintain this feature?
6560 cat >>$CONFIG_STATUS <<_ACEOF
6561 sed "$ac_vpsub
6562 $extrasub
6563 _ACEOF
6564 cat >>$CONFIG_STATUS <<\_ACEOF
6565 :t
6566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6567 s&@configure_input@&$configure_input&;t t
6568 s&@top_builddir@&$ac_top_builddir_sub&;t t
6569 s&@srcdir@&$ac_srcdir&;t t
6570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6571 s&@top_srcdir@&$ac_top_srcdir&;t t
6572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6573 s&@builddir@&$ac_builddir&;t t
6574 s&@abs_builddir@&$ac_abs_builddir&;t t
6575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6576 s&@INSTALL@&$ac_INSTALL&;t t
6577 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6578 $ac_datarootdir_hack
6579 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6580
6581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6584 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6585 which seems to be undefined. Please make sure it is defined." >&5
6586 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6587 which seems to be undefined. Please make sure it is defined." >&2;}
6588
6589 rm -f "$tmp/stdin"
6590 case $ac_file in
6591 -) cat "$tmp/out"; rm -f "$tmp/out";;
6592 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6593 esac
6594 ;;
6595 :H)
6596 #
6597 # CONFIG_HEADER
6598 #
6599 _ACEOF
6600
6601 # Transform confdefs.h into a sed script `conftest.defines', that
6602 # substitutes the proper values into config.h.in to produce config.h.
6603 rm -f conftest.defines conftest.tail
6604 # First, append a space to every undef/define line, to ease matching.
6605 echo 's/$/ /' >conftest.defines
6606 # Then, protect against being on the right side of a sed subst, or in
6607 # an unquoted here document, in config.status. If some macros were
6608 # called several times there might be several #defines for the same
6609 # symbol, which is useless. But do not sort them, since the last
6610 # AC_DEFINE must be honored.
6611 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6612 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6613 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6614 # PARAMS is the parameter list in the macro definition--in most cases, it's
6615 # just an empty string.
6616 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6617 ac_dB='\\)[ (].*,\\1define\\2'
6618 ac_dC=' '
6619 ac_dD=' ,'
6620
6621 uniq confdefs.h |
6622 sed -n '
6623 t rset
6624 :rset
6625 s/^[ ]*#[ ]*define[ ][ ]*//
6626 t ok
6627 d
6628 :ok
6629 s/[\\&,]/\\&/g
6630 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6631 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6632 ' >>conftest.defines
6633
6634 # Remove the space that was appended to ease matching.
6635 # Then replace #undef with comments. This is necessary, for
6636 # example, in the case of _POSIX_SOURCE, which is predefined and required
6637 # on some systems where configure will not decide to define it.
6638 # (The regexp can be short, since the line contains either #define or #undef.)
6639 echo 's/ $//
6640 s,^[ #]*u.*,/* & */,' >>conftest.defines
6641
6642 # Break up conftest.defines:
6643 ac_max_sed_lines=50
6644
6645 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6646 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6647 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6648 # et cetera.
6649 ac_in='$ac_file_inputs'
6650 ac_out='"$tmp/out1"'
6651 ac_nxt='"$tmp/out2"'
6652
6653 while :
6654 do
6655 # Write a here document:
6656 cat >>$CONFIG_STATUS <<_ACEOF
6657 # First, check the format of the line:
6658 cat >"\$tmp/defines.sed" <<\\CEOF
6659 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6660 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6661 b
6662 :def
6663 _ACEOF
6664 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6665 echo 'CEOF
6666 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6667 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6668 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6669 grep . conftest.tail >/dev/null || break
6670 rm -f conftest.defines
6671 mv conftest.tail conftest.defines
6672 done
6673 rm -f conftest.defines conftest.tail
6674
6675 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6676 cat >>$CONFIG_STATUS <<\_ACEOF
6677 if test x"$ac_file" != x-; then
6678 echo "/* $configure_input */" >"$tmp/config.h"
6679 cat "$ac_result" >>"$tmp/config.h"
6680 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6681 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6682 echo "$as_me: $ac_file is unchanged" >&6;}
6683 else
6684 rm -f $ac_file
6685 mv "$tmp/config.h" $ac_file
6686 fi
6687 else
6688 echo "/* $configure_input */"
6689 cat "$ac_result"
6690 fi
6691 rm -f "$tmp/out12"
6692 # Compute $ac_file's index in $config_headers.
6693 _am_stamp_count=1
6694 for _am_header in $config_headers :; do
6695 case $_am_header in
6696 $ac_file | $ac_file:* )
6697 break ;;
6698 * )
6699 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6700 esac
6701 done
6702 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
6703 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6704 X$ac_file : 'X\(//\)[^/]' \| \
6705 X$ac_file : 'X\(//\)$' \| \
6706 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
6707 echo X$ac_file |
6708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6709 s//\1/
6710 q
6711 }
6712 /^X\(\/\/\)[^/].*/{
6713 s//\1/
6714 q
6715 }
6716 /^X\(\/\/\)$/{
6717 s//\1/
6718 q
6719 }
6720 /^X\(\/\).*/{
6721 s//\1/
6722 q
6723 }
6724 s/.*/./; q'`/stamp-h$_am_stamp_count
6725 ;;
6726
6727 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6728 echo "$as_me: executing $ac_file commands" >&6;}
6729 ;;
6730 esac
6731
6732
6733 case $ac_file$ac_mode in
6734 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6735 # Strip MF so we end up with the name of the file.
6736 mf=`echo "$mf" | sed -e 's/:.*$//'`
6737 # Check whether this is an Automake generated Makefile or not.
6738 # We used to match only the files named `Makefile.in', but
6739 # some people rename them; so instead we look at the file content.
6740 # Grep'ing the first line is not enough: some people post-process
6741 # each Makefile.in and add a new line on top of each file to say so.
6742 # Grep'ing the whole file is not good either: AIX grep has a line
6743 # limit of 2048, but all sed's we know have understand at least 4000.
6744 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6745 dirpart=`$as_dirname -- "$mf" ||
6746 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6747 X"$mf" : 'X\(//\)[^/]' \| \
6748 X"$mf" : 'X\(//\)$' \| \
6749 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6750 echo X"$mf" |
6751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6752 s//\1/
6753 q
6754 }
6755 /^X\(\/\/\)[^/].*/{
6756 s//\1/
6757 q
6758 }
6759 /^X\(\/\/\)$/{
6760 s//\1/
6761 q
6762 }
6763 /^X\(\/\).*/{
6764 s//\1/
6765 q
6766 }
6767 s/.*/./; q'`
6768 else
6769 continue
6770 fi
6771 # Extract the definition of DEPDIR, am__include, and am__quote
6772 # from the Makefile without running `make'.
6773 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6774 test -z "$DEPDIR" && continue
6775 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6776 test -z "am__include" && continue
6777 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6778 # When using ansi2knr, U may be empty or an underscore; expand it
6779 U=`sed -n 's/^U = //p' < "$mf"`
6780 # Find all dependency output files, they are included files with
6781 # $(DEPDIR) in their names. We invoke sed twice because it is the
6782 # simplest approach to changing $(DEPDIR) to its actual value in the
6783 # expansion.
6784 for file in `sed -n "
6785 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6786 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6787 # Make sure the directory exists.
6788 test -f "$dirpart/$file" && continue
6789 fdir=`$as_dirname -- "$file" ||
6790 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6791 X"$file" : 'X\(//\)[^/]' \| \
6792 X"$file" : 'X\(//\)$' \| \
6793 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6794 echo X"$file" |
6795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6796 s//\1/
6797 q
6798 }
6799 /^X\(\/\/\)[^/].*/{
6800 s//\1/
6801 q
6802 }
6803 /^X\(\/\/\)$/{
6804 s//\1/
6805 q
6806 }
6807 /^X\(\/\).*/{
6808 s//\1/
6809 q
6810 }
6811 s/.*/./; q'`
6812 { as_dir=$dirpart/$fdir
6813 case $as_dir in #(
6814 -*) as_dir=./$as_dir;;
6815 esac
6816 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6817 as_dirs=
6818 while :; do
6819 case $as_dir in #(
6820 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6821 *) as_qdir=$as_dir;;
6822 esac
6823 as_dirs="'$as_qdir' $as_dirs"
6824 as_dir=`$as_dirname -- "$as_dir" ||
6825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6826 X"$as_dir" : 'X\(//\)[^/]' \| \
6827 X"$as_dir" : 'X\(//\)$' \| \
6828 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6829 echo X"$as_dir" |
6830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6831 s//\1/
6832 q
6833 }
6834 /^X\(\/\/\)[^/].*/{
6835 s//\1/
6836 q
6837 }
6838 /^X\(\/\/\)$/{
6839 s//\1/
6840 q
6841 }
6842 /^X\(\/\).*/{
6843 s//\1/
6844 q
6845 }
6846 s/.*/./; q'`
6847 test -d "$as_dir" && break
6848 done
6849 test -z "$as_dirs" || eval "mkdir $as_dirs"
6850 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6851 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6852 { (exit 1); exit 1; }; }; }
6853 # echo "creating $dirpart/$file"
6854 echo '# dummy' > "$dirpart/$file"
6855 done
6856 done
6857 ;;
6858
6859 esac
6860 done # for ac_tag
6861
6862
6863 { (exit 0); exit 0; }
6864 _ACEOF
6865 chmod +x $CONFIG_STATUS
6866 ac_clean_files=$ac_clean_files_save
6867
6868
6869 # configure is writing to config.log, and then calls config.status.
6870 # config.status does its own redirection, appending to config.log.
6871 # Unfortunately, on DOS this fails, as config.log is still kept open
6872 # by configure, so config.status won't be able to write to it; its
6873 # output is simply discarded. So we exec the FD to /dev/null,
6874 # effectively closing config.log, so it can be properly (re)opened and
6875 # appended to by config.status. When coming back to configure, we
6876 # need to make the FD available again.
6877 if test "$no_create" != yes; then
6878 ac_cs_success=:
6879 ac_config_status_args=
6880 test "$silent" = yes &&
6881 ac_config_status_args="$ac_config_status_args --quiet"
6882 exec 5>/dev/null
6883 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6884 exec 5>>config.log
6885 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6886 # would make configure fail if this is the last instruction.
6887 $ac_cs_success || { (exit 1); exit 1; }
6888 fi
6889