]> jfr.im git - irc/evilnet/x3.git/blob - configure
reverting the #1995 srvx merge until its a stable release. Commits after 1995 are...
[irc/evilnet/x3.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 1910 2007-02-09 00:36:52Z rubin .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for X3 1.5.
5 #
6 # Report bugs to <evilnet-devel@lists.sourceforge.net>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
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 *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" "" $as_nl"
68
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81 ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106 do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
158 fi
159
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
163 }
164 as_func_success () {
165 as_func_return 0
166 }
167 as_func_failure () {
168 as_func_return 1
169 }
170 as_func_ret_success () {
171 return 0
172 }
173 as_func_ret_failure () {
174 return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179 :
180 else
181 exitcode=1
182 echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191 :
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204 else
205 exitcode=1
206 echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217 :
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
226 /*)
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256 CONFIG_SHELL=$as_shell
257 as_have_required=yes
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275 (exit $1)
276 }
277 as_func_success () {
278 as_func_return 0
279 }
280 as_func_failure () {
281 as_func_return 1
282 }
283 as_func_ret_success () {
284 return 0
285 }
286 as_func_ret_failure () {
287 return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292 :
293 else
294 exitcode=1
295 echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304 :
305 else
306 exitcode=1
307 echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 :
317 else
318 exitcode=1
319 echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332 break
333 fi
334
335 fi
336
337 done
338
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 done
343 export CONFIG_SHELL
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364 (exit \$1)
365 }
366 as_func_success () {
367 as_func_return 0
368 }
369 as_func_failure () {
370 as_func_return 1
371 }
372 as_func_ret_success () {
373 return 0
374 }
375 as_func_ret_failure () {
376 return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381 :
382 else
383 exitcode=1
384 echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393 :
394 else
395 exitcode=1
396 echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
402 fi
403
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 :
406 else
407 exitcode=1
408 echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
415 echo message
416 }
417
418
419
420 as_lineno_1=$LINENO
421 as_lineno_2=$LINENO
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
431 # case at line end.
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472 case `echo 'x\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) ECHO_C='\c';;
475 esac;;
476 *)
477 ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
482 as_expr=expr
483 else
484 as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490 else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 as_ln_s='ln -s'
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527 else
528 as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 # Identity of this package.
561 PACKAGE_NAME='X3'
562 PACKAGE_TARNAME='x3'
563 PACKAGE_VERSION='1.5'
564 PACKAGE_STRING='X3 1.5'
565 PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
566
567 ac_unique_file="src/opserv.c"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #if HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #if HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #if STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # if HAVE_STDLIB_H
582 # include <stdlib.h>
583 # endif
584 #endif
585 #if HAVE_STRING_H
586 # if !STDC_HEADERS && HAVE_MEMORY_H
587 # include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #if HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #if HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #if HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #if HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_subst_vars='SHELL
605 PATH_SEPARATOR
606 PACKAGE_NAME
607 PACKAGE_TARNAME
608 PACKAGE_VERSION
609 PACKAGE_STRING
610 PACKAGE_BUGREPORT
611 exec_prefix
612 prefix
613 program_transform_name
614 bindir
615 sbindir
616 libexecdir
617 datarootdir
618 datadir
619 sysconfdir
620 sharedstatedir
621 localstatedir
622 includedir
623 oldincludedir
624 docdir
625 infodir
626 htmldir
627 dvidir
628 pdfdir
629 psdir
630 libdir
631 localedir
632 mandir
633 DEFS
634 ECHO_C
635 ECHO_N
636 ECHO_T
637 LIBS
638 build_alias
639 host_alias
640 target_alias
641 build
642 build_cpu
643 build_vendor
644 build_os
645 host
646 host_cpu
647 host_vendor
648 host_os
649 target
650 target_cpu
651 target_vendor
652 target_os
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
668 AWK
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 MAINTAINER_MODE_TRUE
675 MAINTAINER_MODE_FALSE
676 MAINT
677 CC
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
684 DEPDIR
685 am__include
686 am__quote
687 AMDEP_TRUE
688 AMDEP_FALSE
689 AMDEPBACKSLASH
690 CCDEPMODE
691 am__fastdepCC_TRUE
692 am__fastdepCC_FALSE
693 RANLIB
694 LN_S
695 CPP
696 GREP
697 EGREP
698 MAKER
699 ALLOCA
700 MODULE_OBJS
701 MY_SUBDIRS
702 RX_INCLUDES
703 RX_LIBS
704 TRACK
705 LIBOBJS
706 LTLIBOBJS'
707 ac_subst_files=''
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 CPPFLAGS
715 CPP'
716
717
718 # Initialize some variables set by options.
719 ac_init_help=
720 ac_init_version=false
721 # The variables have the same names as the options, with
722 # dashes changed to underlines.
723 cache_file=/dev/null
724 exec_prefix=NONE
725 no_create=
726 no_recursion=
727 prefix=NONE
728 program_prefix=NONE
729 program_suffix=NONE
730 program_transform_name=s,x,x,
731 silent=
732 site=
733 srcdir=
734 verbose=
735 x_includes=NONE
736 x_libraries=NONE
737
738 # Installation directory options.
739 # These are left unexpanded so users can "make install exec_prefix=/foo"
740 # and all the variables that are supposed to be based on exec_prefix
741 # by default will actually change.
742 # Use braces instead of parens because sh, perl, etc. also accept them.
743 # (The list follows the same order as the GNU Coding Standards.)
744 bindir='${exec_prefix}/bin'
745 sbindir='${exec_prefix}/sbin'
746 libexecdir='${exec_prefix}/libexec'
747 datarootdir='${prefix}/share'
748 datadir='${datarootdir}'
749 sysconfdir='${prefix}/etc'
750 sharedstatedir='${prefix}/com'
751 localstatedir='${prefix}/var'
752 includedir='${prefix}/include'
753 oldincludedir='/usr/include'
754 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755 infodir='${datarootdir}/info'
756 htmldir='${docdir}'
757 dvidir='${docdir}'
758 pdfdir='${docdir}'
759 psdir='${docdir}'
760 libdir='${exec_prefix}/lib'
761 localedir='${datarootdir}/locale'
762 mandir='${datarootdir}/man'
763
764 ac_prev=
765 ac_dashdash=
766 for ac_option
767 do
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
770 eval $ac_prev=\$ac_option
771 ac_prev=
772 continue
773 fi
774
775 case $ac_option in
776 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *) ac_optarg=yes ;;
778 esac
779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
785
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
787 ac_prev=bindir ;;
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 bindir=$ac_optarg ;;
790
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
795
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
802
803 --config-cache | -C)
804 cache_file=config.cache ;;
805
806 -datadir | --datadir | --datadi | --datad)
807 ac_prev=datadir ;;
808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
809 datadir=$ac_optarg ;;
810
811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
817
818 -disable-* | --disable-*)
819 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
822 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
823 { (exit 1); exit 1; }; }
824 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
825 eval enable_$ac_feature=no ;;
826
827 -docdir | --docdir | --docdi | --doc | --do)
828 ac_prev=docdir ;;
829 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830 docdir=$ac_optarg ;;
831
832 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833 ac_prev=dvidir ;;
834 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835 dvidir=$ac_optarg ;;
836
837 -enable-* | --enable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
844 eval enable_$ac_feature=\$ac_optarg ;;
845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
906 -localstatedir | --localstatedir | --localstatedi | --localstated \
907 | --localstate | --localstat | --localsta | --localst | --locals)
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c | -n)
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990 ac_prev=sbindir ;;
991 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992 | --sbi=* | --sb=*)
993 sbindir=$ac_optarg ;;
994
995 -sharedstatedir | --sharedstatedir | --sharedstatedi \
996 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997 | --sharedst | --shareds | --shared | --share | --shar \
998 | --sha | --sh)
999 ac_prev=sharedstatedir ;;
1000 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003 | --sha=* | --sh=*)
1004 sharedstatedir=$ac_optarg ;;
1005
1006 -site | --site | --sit)
1007 ac_prev=site ;;
1008 -site=* | --site=* | --sit=*)
1009 site=$ac_optarg ;;
1010
1011 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012 ac_prev=srcdir ;;
1013 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014 srcdir=$ac_optarg ;;
1015
1016 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017 | --syscon | --sysco | --sysc | --sys | --sy)
1018 ac_prev=sysconfdir ;;
1019 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021 sysconfdir=$ac_optarg ;;
1022
1023 -target | --target | --targe | --targ | --tar | --ta | --t)
1024 ac_prev=target_alias ;;
1025 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026 target_alias=$ac_optarg ;;
1027
1028 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 verbose=yes ;;
1030
1031 -version | --version | --versio | --versi | --vers | -V)
1032 ac_init_version=: ;;
1033
1034 -with-* | --with-*)
1035 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid package name: $ac_package" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_package=`echo $ac_package| sed 's/-/_/g'`
1041 eval with_$ac_package=\$ac_optarg ;;
1042
1043 -without-* | --without-*)
1044 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_package=`echo $ac_package | sed 's/-/_/g'`
1050 eval with_$ac_package=no ;;
1051
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1055
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1062
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1069
1070 -*) { echo "$as_me: error: unrecognized option: $ac_option
1071 Try \`$0 --help' for more information." >&2
1072 { (exit 1); exit 1; }; }
1073 ;;
1074
1075 *=*)
1076 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1080 { (exit 1); exit 1; }; }
1081 eval $ac_envvar=\$ac_optarg
1082 export $ac_envvar ;;
1083
1084 *)
1085 # FIXME: should be removed in autoconf 3.0.
1086 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 ;;
1091
1092 esac
1093 done
1094
1095 if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 { echo "$as_me: error: missing argument to $ac_option" >&2
1098 { (exit 1); exit 1; }; }
1099 fi
1100
1101 # Be sure to have absolute directory names.
1102 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1103 datadir sysconfdir sharedstatedir localstatedir includedir \
1104 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1105 libdir localedir mandir
1106 do
1107 eval ac_val=\$$ac_var
1108 case $ac_val in
1109 [\\/$]* | ?:[\\/]* ) continue;;
1110 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1111 esac
1112 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1113 { (exit 1); exit 1; }; }
1114 done
1115
1116 # There might be people who depend on the old broken behavior: `$host'
1117 # used to hold the argument of --host etc.
1118 # FIXME: To remove some day.
1119 build=$build_alias
1120 host=$host_alias
1121 target=$target_alias
1122
1123 # FIXME: To remove some day.
1124 if test "x$host_alias" != x; then
1125 if test "x$build_alias" = x; then
1126 cross_compiling=maybe
1127 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1128 If a cross compiler is detected then cross compile mode will be used." >&2
1129 elif test "x$build_alias" != "x$host_alias"; then
1130 cross_compiling=yes
1131 fi
1132 fi
1133
1134 ac_tool_prefix=
1135 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1136
1137 test "$silent" = yes && exec 6>/dev/null
1138
1139
1140 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141 ac_ls_di=`ls -di .` &&
1142 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143 { echo "$as_me: error: Working directory cannot be determined" >&2
1144 { (exit 1); exit 1; }; }
1145 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1146 { echo "$as_me: error: pwd does not report name of working directory" >&2
1147 { (exit 1); exit 1; }; }
1148
1149
1150 # Find the source files, if location was not specified.
1151 if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$0" ||
1155 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$0" : 'X\(//\)[^/]' \| \
1157 X"$0" : 'X\(//\)$' \| \
1158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1159 echo X"$0" |
1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 s//\1/
1162 q
1163 }
1164 /^X\(\/\/\)[^/].*/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)$/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\).*/{
1173 s//\1/
1174 q
1175 }
1176 s/.*/./; q'`
1177 srcdir=$ac_confdir
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 srcdir=..
1180 fi
1181 else
1182 ac_srcdir_defaulted=no
1183 fi
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1187 { (exit 1); exit 1; }; }
1188 fi
1189 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1190 ac_abs_confdir=`(
1191 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1192 { (exit 1); exit 1; }; }
1193 pwd)`
1194 # When building in place, set srcdir=.
1195 if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 srcdir=.
1197 fi
1198 # Remove unnecessary trailing slashes from srcdir.
1199 # Double slashes in file names in object file debugging info
1200 # mess up M-x gdb in Emacs.
1201 case $srcdir in
1202 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203 esac
1204 for ac_var in $ac_precious_vars; do
1205 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_env_${ac_var}_value=\$${ac_var}
1207 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1209 done
1210
1211 #
1212 # Report the --help message.
1213 #
1214 if test "$ac_init_help" = "long"; then
1215 # Omit some internal or obsolete options to make the list less imposing.
1216 # This message is too long to be a string in the A/UX 3.1 sh.
1217 cat <<_ACEOF
1218 \`configure' configures X3 1.5 to adapt to many kinds of systems.
1219
1220 Usage: $0 [OPTION]... [VAR=VALUE]...
1221
1222 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223 VAR=VALUE. See below for descriptions of some of the useful variables.
1224
1225 Defaults for the options are specified in brackets.
1226
1227 Configuration:
1228 -h, --help display this help and exit
1229 --help=short display options specific to this package
1230 --help=recursive display the short help of all the included packages
1231 -V, --version display version information and exit
1232 -q, --quiet, --silent do not print \`checking...' messages
1233 --cache-file=FILE cache test results in FILE [disabled]
1234 -C, --config-cache alias for \`--cache-file=config.cache'
1235 -n, --no-create do not create output files
1236 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237
1238 Installation directories:
1239 --prefix=PREFIX install architecture-independent files in PREFIX
1240 [$ac_default_prefix]
1241 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1242 [PREFIX]
1243
1244 By default, \`make install' will install all the files in
1245 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247 for instance \`--prefix=\$HOME'.
1248
1249 For better control, use the options below.
1250
1251 Fine tuning of the installation directories:
1252 --bindir=DIR user executables [EPREFIX/bin]
1253 --sbindir=DIR system admin executables [EPREFIX/sbin]
1254 --libexecdir=DIR program executables [EPREFIX/libexec]
1255 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258 --libdir=DIR object code libraries [EPREFIX/lib]
1259 --includedir=DIR C header files [PREFIX/include]
1260 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1261 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263 --infodir=DIR info documentation [DATAROOTDIR/info]
1264 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265 --mandir=DIR man documentation [DATAROOTDIR/man]
1266 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1267 --htmldir=DIR html documentation [DOCDIR]
1268 --dvidir=DIR dvi documentation [DOCDIR]
1269 --pdfdir=DIR pdf documentation [DOCDIR]
1270 --psdir=DIR ps documentation [DOCDIR]
1271 _ACEOF
1272
1273 cat <<\_ACEOF
1274
1275 Program names:
1276 --program-prefix=PREFIX prepend PREFIX to installed program names
1277 --program-suffix=SUFFIX append SUFFIX to installed program names
1278 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1279
1280 System types:
1281 --build=BUILD configure for building on BUILD [guessed]
1282 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1283 --target=TARGET configure for building compilers for TARGET [HOST]
1284 _ACEOF
1285 fi
1286
1287 if test -n "$ac_init_help"; then
1288 case $ac_init_help in
1289 short | recursive ) echo "Configuration of X3 1.5:";;
1290 esac
1291 cat <<\_ACEOF
1292
1293 Optional Features:
1294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1296 --enable-maintainer-mode enable make rules and dependencies not useful
1297 (and sometimes confusing) to the casual installer
1298 --disable-dependency-tracking speeds up one-time build
1299 --enable-dependency-tracking do not reject slow dependency extractors
1300 --disable-tokens Disables tokenization of P10 protocol output
1301 (tokens required if linking to ircu 2.10.11)
1302 --enable-debug Enables debugging behaviors
1303 --enable-modules=list,of,modules Enable extra modules
1304
1305 Optional Packages:
1306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1308 --with-malloc=type Enables use of a special malloc library; one of:
1309 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
1310 --with-protocol=name Choose IRC dialect to support; one of:
1311 p10 (the default)
1312 --without-getopt Disables building of the GNU getopt library
1313 --with-tre=PATH Base path to where libtre is installed, such that
1314 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1315 --with-coredumper=PATH Base path to where core dumper is installed, such
1316 that PATH/lib/libcoredumper.so and
1317 PATH/include/google/coredumper.h exist.
1318 --with-ssl=PATH Base path to where openssl is installed
1319 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1320 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
1321
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1328 you have headers in a nonstandard directory <include dir>
1329 CPP C preprocessor
1330
1331 Use these variables to override the choices made by `configure' or to help
1332 it to find libraries and programs with nonstandard names/locations.
1333
1334 Report bugs to <evilnet-devel@lists.sourceforge.net>.
1335 _ACEOF
1336 ac_status=$?
1337 fi
1338
1339 if test "$ac_init_help" = "recursive"; then
1340 # If there are subdirs, report their specific --help.
1341 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1342 test -d "$ac_dir" || continue
1343 ac_builddir=.
1344
1345 case "$ac_dir" in
1346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347 *)
1348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1349 # A ".." for each directory in $ac_dir_suffix.
1350 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1351 case $ac_top_builddir_sub in
1352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1354 esac ;;
1355 esac
1356 ac_abs_top_builddir=$ac_pwd
1357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1358 # for backward compatibility:
1359 ac_top_builddir=$ac_top_build_prefix
1360
1361 case $srcdir in
1362 .) # We are building in place.
1363 ac_srcdir=.
1364 ac_top_srcdir=$ac_top_builddir_sub
1365 ac_abs_top_srcdir=$ac_pwd ;;
1366 [\\/]* | ?:[\\/]* ) # Absolute name.
1367 ac_srcdir=$srcdir$ac_dir_suffix;
1368 ac_top_srcdir=$srcdir
1369 ac_abs_top_srcdir=$srcdir ;;
1370 *) # Relative name.
1371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1372 ac_top_srcdir=$ac_top_build_prefix$srcdir
1373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1374 esac
1375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1376
1377 cd "$ac_dir" || { ac_status=$?; continue; }
1378 # Check for guested configure.
1379 if test -f "$ac_srcdir/configure.gnu"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1382 elif test -f "$ac_srcdir/configure"; then
1383 echo &&
1384 $SHELL "$ac_srcdir/configure" --help=recursive
1385 else
1386 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1387 fi || ac_status=$?
1388 cd "$ac_pwd" || { ac_status=$?; break; }
1389 done
1390 fi
1391
1392 test -n "$ac_init_help" && exit $ac_status
1393 if $ac_init_version; then
1394 cat <<\_ACEOF
1395 X3 configure 1.5
1396 generated by GNU Autoconf 2.60
1397
1398 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1399 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1400 This configure script is free software; the Free Software Foundation
1401 gives unlimited permission to copy, distribute and modify it.
1402 _ACEOF
1403 exit
1404 fi
1405 cat >config.log <<_ACEOF
1406 This file contains any messages produced by compilers while
1407 running configure, to aid debugging if configure makes a mistake.
1408
1409 It was created by X3 $as_me 1.5, which was
1410 generated by GNU Autoconf 2.60. Invocation command line was
1411
1412 $ $0 $@
1413
1414 _ACEOF
1415 exec 5>>config.log
1416 {
1417 cat <<_ASUNAME
1418 ## --------- ##
1419 ## Platform. ##
1420 ## --------- ##
1421
1422 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1423 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1424 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1425 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1426 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1427
1428 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1429 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1430
1431 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1432 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1433 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1434 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1435 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1436 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1437 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1438
1439 _ASUNAME
1440
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 echo "PATH: $as_dir"
1447 done
1448 IFS=$as_save_IFS
1449
1450 } >&5
1451
1452 cat >&5 <<_ACEOF
1453
1454
1455 ## ----------- ##
1456 ## Core tests. ##
1457 ## ----------- ##
1458
1459 _ACEOF
1460
1461
1462 # Keep a trace of the command line.
1463 # Strip out --no-create and --no-recursion so they do not pile up.
1464 # Strip out --silent because we don't want to record it for future runs.
1465 # Also quote any args containing shell meta-characters.
1466 # Make two passes to allow for proper duplicate-argument suppression.
1467 ac_configure_args=
1468 ac_configure_args0=
1469 ac_configure_args1=
1470 ac_must_keep_next=false
1471 for ac_pass in 1 2
1472 do
1473 for ac_arg
1474 do
1475 case $ac_arg in
1476 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1478 | -silent | --silent | --silen | --sile | --sil)
1479 continue ;;
1480 *\'*)
1481 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1482 esac
1483 case $ac_pass in
1484 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1485 2)
1486 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1487 if test $ac_must_keep_next = true; then
1488 ac_must_keep_next=false # Got value, back to normal.
1489 else
1490 case $ac_arg in
1491 *=* | --config-cache | -C | -disable-* | --disable-* \
1492 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1493 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1494 | -with-* | --with-* | -without-* | --without-* | --x)
1495 case "$ac_configure_args0 " in
1496 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1497 esac
1498 ;;
1499 -* ) ac_must_keep_next=true ;;
1500 esac
1501 fi
1502 ac_configure_args="$ac_configure_args '$ac_arg'"
1503 ;;
1504 esac
1505 done
1506 done
1507 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1508 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1509
1510 # When interrupted or exit'd, cleanup temporary files, and complete
1511 # config.log. We remove comments because anyway the quotes in there
1512 # would cause problems or look ugly.
1513 # WARNING: Use '\'' to represent an apostrophe within the trap.
1514 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1515 trap 'exit_status=$?
1516 # Save into config.log some information that might help in debugging.
1517 {
1518 echo
1519
1520 cat <<\_ASBOX
1521 ## ---------------- ##
1522 ## Cache variables. ##
1523 ## ---------------- ##
1524 _ASBOX
1525 echo
1526 # The following way of writing the cache mishandles newlines in values,
1527 (
1528 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1529 eval ac_val=\$$ac_var
1530 case $ac_val in #(
1531 *${as_nl}*)
1532 case $ac_var in #(
1533 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1534 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1535 esac
1536 case $ac_var in #(
1537 _ | IFS | as_nl) ;; #(
1538 *) $as_unset $ac_var ;;
1539 esac ;;
1540 esac
1541 done
1542 (set) 2>&1 |
1543 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1544 *${as_nl}ac_space=\ *)
1545 sed -n \
1546 "s/'\''/'\''\\\\'\'''\''/g;
1547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1548 ;; #(
1549 *)
1550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1551 ;;
1552 esac |
1553 sort
1554 )
1555 echo
1556
1557 cat <<\_ASBOX
1558 ## ----------------- ##
1559 ## Output variables. ##
1560 ## ----------------- ##
1561 _ASBOX
1562 echo
1563 for ac_var in $ac_subst_vars
1564 do
1565 eval ac_val=\$$ac_var
1566 case $ac_val in
1567 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 esac
1569 echo "$ac_var='\''$ac_val'\''"
1570 done | sort
1571 echo
1572
1573 if test -n "$ac_subst_files"; then
1574 cat <<\_ASBOX
1575 ## ------------------- ##
1576 ## File substitutions. ##
1577 ## ------------------- ##
1578 _ASBOX
1579 echo
1580 for ac_var in $ac_subst_files
1581 do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in
1584 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1585 esac
1586 echo "$ac_var='\''$ac_val'\''"
1587 done | sort
1588 echo
1589 fi
1590
1591 if test -s confdefs.h; then
1592 cat <<\_ASBOX
1593 ## ----------- ##
1594 ## confdefs.h. ##
1595 ## ----------- ##
1596 _ASBOX
1597 echo
1598 cat confdefs.h
1599 echo
1600 fi
1601 test "$ac_signal" != 0 &&
1602 echo "$as_me: caught signal $ac_signal"
1603 echo "$as_me: exit $exit_status"
1604 } >&5
1605 rm -f core *.core core.conftest.* &&
1606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1607 exit $exit_status
1608 ' 0
1609 for ac_signal in 1 2 13 15; do
1610 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1611 done
1612 ac_signal=0
1613
1614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1615 rm -f -r conftest* confdefs.h
1616
1617 # Predefined preprocessor variables.
1618
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE_NAME "$PACKAGE_NAME"
1621 _ACEOF
1622
1623
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1626 _ACEOF
1627
1628
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1631 _ACEOF
1632
1633
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_STRING "$PACKAGE_STRING"
1636 _ACEOF
1637
1638
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1641 _ACEOF
1642
1643
1644 # Let the site file select an alternate cache file if it wants to.
1645 # Prefer explicitly selected file to automatically selected ones.
1646 if test -n "$CONFIG_SITE"; then
1647 set x "$CONFIG_SITE"
1648 elif test "x$prefix" != xNONE; then
1649 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1650 else
1651 set x "$ac_default_prefix/share/config.site" \
1652 "$ac_default_prefix/etc/config.site"
1653 fi
1654 shift
1655 for ac_site_file
1656 do
1657 if test -r "$ac_site_file"; then
1658 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1659 echo "$as_me: loading site script $ac_site_file" >&6;}
1660 sed 's/^/| /' "$ac_site_file" >&5
1661 . "$ac_site_file"
1662 fi
1663 done
1664
1665 if test -r "$cache_file"; then
1666 # Some versions of bash will fail to source /dev/null (special
1667 # files actually), so we avoid doing that.
1668 if test -f "$cache_file"; then
1669 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1670 echo "$as_me: loading cache $cache_file" >&6;}
1671 case $cache_file in
1672 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1673 *) . "./$cache_file";;
1674 esac
1675 fi
1676 else
1677 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1678 echo "$as_me: creating cache $cache_file" >&6;}
1679 >$cache_file
1680 fi
1681
1682 # Check that the precious variables saved in the cache have kept the same
1683 # value.
1684 ac_cache_corrupted=false
1685 for ac_var in $ac_precious_vars; do
1686 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1687 eval ac_new_set=\$ac_env_${ac_var}_set
1688 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1689 eval ac_new_val=\$ac_env_${ac_var}_value
1690 case $ac_old_set,$ac_new_set in
1691 set,)
1692 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1693 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1694 ac_cache_corrupted=: ;;
1695 ,set)
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1697 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1699 ,);;
1700 *)
1701 if test "x$ac_old_val" != "x$ac_new_val"; then
1702 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1703 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1704 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1705 echo "$as_me: former value: $ac_old_val" >&2;}
1706 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1707 echo "$as_me: current value: $ac_new_val" >&2;}
1708 ac_cache_corrupted=:
1709 fi;;
1710 esac
1711 # Pass precious variables to config.status.
1712 if test "$ac_new_set" = set; then
1713 case $ac_new_val in
1714 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 *) ac_arg=$ac_var=$ac_new_val ;;
1716 esac
1717 case " $ac_configure_args " in
1718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1719 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1720 esac
1721 fi
1722 done
1723 if $ac_cache_corrupted; then
1724 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1725 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1726 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1727 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1728 { (exit 1); exit 1; }; }
1729 fi
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755 ac_ext=c
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760
1761
1762 CODENAME=X3
1763 ac_config_headers="$ac_config_headers src/config.h"
1764
1765
1766 ac_aux_dir=
1767 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1768 if test -f "$ac_dir/install-sh"; then
1769 ac_aux_dir=$ac_dir
1770 ac_install_sh="$ac_aux_dir/install-sh -c"
1771 break
1772 elif test -f "$ac_dir/install.sh"; then
1773 ac_aux_dir=$ac_dir
1774 ac_install_sh="$ac_aux_dir/install.sh -c"
1775 break
1776 elif test -f "$ac_dir/shtool"; then
1777 ac_aux_dir=$ac_dir
1778 ac_install_sh="$ac_aux_dir/shtool install -c"
1779 break
1780 fi
1781 done
1782 if test -z "$ac_aux_dir"; then
1783 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1784 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1785 { (exit 1); exit 1; }; }
1786 fi
1787
1788 # These three variables are undocumented and unsupported,
1789 # and are intended to be withdrawn in a future Autoconf release.
1790 # They can cause serious problems if a builder's source tree is in a directory
1791 # whose full name contains unusual characters.
1792 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1793 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1794 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1795
1796
1797 # Make sure we can run config.sub.
1798 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1799 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1800 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1801 { (exit 1); exit 1; }; }
1802
1803 { echo "$as_me:$LINENO: checking build system type" >&5
1804 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1805 if test "${ac_cv_build+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 ac_build_alias=$build_alias
1809 test "x$ac_build_alias" = x &&
1810 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1811 test "x$ac_build_alias" = x &&
1812 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1813 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1814 { (exit 1); exit 1; }; }
1815 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1816 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1817 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1818 { (exit 1); exit 1; }; }
1819
1820 fi
1821 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1822 echo "${ECHO_T}$ac_cv_build" >&6; }
1823 case $ac_cv_build in
1824 *-*-*) ;;
1825 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1826 echo "$as_me: error: invalid value of canonical build" >&2;}
1827 { (exit 1); exit 1; }; };;
1828 esac
1829 build=$ac_cv_build
1830 ac_save_IFS=$IFS; IFS='-'
1831 set x $ac_cv_build
1832 shift
1833 build_cpu=$1
1834 build_vendor=$2
1835 shift; shift
1836 # Remember, the first character of IFS is used to create $*,
1837 # except with old shells:
1838 build_os=$*
1839 IFS=$ac_save_IFS
1840 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1841
1842
1843 { echo "$as_me:$LINENO: checking host system type" >&5
1844 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1845 if test "${ac_cv_host+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 if test "x$host_alias" = x; then
1849 ac_cv_host=$ac_cv_build
1850 else
1851 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1852 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1853 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1854 { (exit 1); exit 1; }; }
1855 fi
1856
1857 fi
1858 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1859 echo "${ECHO_T}$ac_cv_host" >&6; }
1860 case $ac_cv_host in
1861 *-*-*) ;;
1862 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1863 echo "$as_me: error: invalid value of canonical host" >&2;}
1864 { (exit 1); exit 1; }; };;
1865 esac
1866 host=$ac_cv_host
1867 ac_save_IFS=$IFS; IFS='-'
1868 set x $ac_cv_host
1869 shift
1870 host_cpu=$1
1871 host_vendor=$2
1872 shift; shift
1873 # Remember, the first character of IFS is used to create $*,
1874 # except with old shells:
1875 host_os=$*
1876 IFS=$ac_save_IFS
1877 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1878
1879
1880 { echo "$as_me:$LINENO: checking target system type" >&5
1881 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1882 if test "${ac_cv_target+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test "x$target_alias" = x; then
1886 ac_cv_target=$ac_cv_host
1887 else
1888 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1889 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1890 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1891 { (exit 1); exit 1; }; }
1892 fi
1893
1894 fi
1895 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1896 echo "${ECHO_T}$ac_cv_target" >&6; }
1897 case $ac_cv_target in
1898 *-*-*) ;;
1899 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1900 echo "$as_me: error: invalid value of canonical target" >&2;}
1901 { (exit 1); exit 1; }; };;
1902 esac
1903 target=$ac_cv_target
1904 ac_save_IFS=$IFS; IFS='-'
1905 set x $ac_cv_target
1906 shift
1907 target_cpu=$1
1908 target_vendor=$2
1909 shift; shift
1910 # Remember, the first character of IFS is used to create $*,
1911 # except with old shells:
1912 target_os=$*
1913 IFS=$ac_save_IFS
1914 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1915
1916
1917 # The aliases save the names the user supplied, while $host etc.
1918 # will get canonicalized.
1919 test -n "$target_alias" &&
1920 test "$program_prefix$program_suffix$program_transform_name" = \
1921 NONENONEs,x,x, &&
1922 program_prefix=${target_alias}-
1923 am__api_version="1.9"
1924 # Find a good install program. We prefer a C program (faster),
1925 # so one script is as good as another. But avoid the broken or
1926 # incompatible versions:
1927 # SysV /etc/install, /usr/sbin/install
1928 # SunOS /usr/etc/install
1929 # IRIX /sbin/install
1930 # AIX /bin/install
1931 # AmigaOS /C/install, which installs bootblocks on floppy discs
1932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1935 # OS/2's system install, which has a completely different semantic
1936 # ./install, which can be erroneously created by make from ./install.sh.
1937 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1939 if test -z "$INSTALL"; then
1940 if test "${ac_cv_path_install+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 # Account for people who put trailing slashes in PATH elements.
1949 case $as_dir/ in
1950 ./ | .// | /cC/* | \
1951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1952 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1953 /usr/ucb/* ) ;;
1954 *)
1955 # OSF1 and SCO ODT 3.0 have their own names for install.
1956 # Don't use installbsd from OSF since it installs stuff as root
1957 # by default.
1958 for ac_prog in ginstall scoinst install; do
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1961 if test $ac_prog = install &&
1962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1963 # AIX install. It has an incompatible calling convention.
1964 :
1965 elif test $ac_prog = install &&
1966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1967 # program-specific install script used by HP pwplus--don't use.
1968 :
1969 else
1970 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1971 break 3
1972 fi
1973 fi
1974 done
1975 done
1976 ;;
1977 esac
1978 done
1979 IFS=$as_save_IFS
1980
1981
1982 fi
1983 if test "${ac_cv_path_install+set}" = set; then
1984 INSTALL=$ac_cv_path_install
1985 else
1986 # As a last resort, use the slow shell script. Don't cache a
1987 # value for INSTALL within a source directory, because that will
1988 # break other packages using the cache if that directory is
1989 # removed, or if the value is a relative name.
1990 INSTALL=$ac_install_sh
1991 fi
1992 fi
1993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1994 echo "${ECHO_T}$INSTALL" >&6; }
1995
1996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1997 # It thinks the first close brace ends the variable substitution.
1998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1999
2000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2001
2002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2003
2004 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2005 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2006 # Just in case
2007 sleep 1
2008 echo timestamp > conftest.file
2009 # Do `set' in a subshell so we don't clobber the current shell's
2010 # arguments. Must try -L first in case configure is actually a
2011 # symlink; some systems play weird games with the mod time of symlinks
2012 # (eg FreeBSD returns the mod time of the symlink's containing
2013 # directory).
2014 if (
2015 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2016 if test "$*" = "X"; then
2017 # -L didn't work.
2018 set X `ls -t $srcdir/configure conftest.file`
2019 fi
2020 rm -f conftest.file
2021 if test "$*" != "X $srcdir/configure conftest.file" \
2022 && test "$*" != "X conftest.file $srcdir/configure"; then
2023
2024 # If neither matched, then we have a broken ls. This can happen
2025 # if, for instance, CONFIG_SHELL is bash and it inherits a
2026 # broken ls alias from the environment. This has actually
2027 # happened. Such a system could not be considered "sane".
2028 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2029 alias in your environment" >&5
2030 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2031 alias in your environment" >&2;}
2032 { (exit 1); exit 1; }; }
2033 fi
2034
2035 test "$2" = conftest.file
2036 )
2037 then
2038 # Ok.
2039 :
2040 else
2041 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2042 Check your system clock" >&5
2043 echo "$as_me: error: newly created file is older than distributed files!
2044 Check your system clock" >&2;}
2045 { (exit 1); exit 1; }; }
2046 fi
2047 { echo "$as_me:$LINENO: result: yes" >&5
2048 echo "${ECHO_T}yes" >&6; }
2049 test "$program_prefix" != NONE &&
2050 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2051 # Use a double $ so make ignores it.
2052 test "$program_suffix" != NONE &&
2053 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2054 # Double any \ or $. echo might interpret backslashes.
2055 # By default was `s,x,x', remove it if useless.
2056 cat <<\_ACEOF >conftest.sed
2057 s/[\\$]/&&/g;s/;s,x,x,$//
2058 _ACEOF
2059 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2060 rm -f conftest.sed
2061
2062 # expand $ac_aux_dir to an absolute path
2063 am_aux_dir=`cd $ac_aux_dir && pwd`
2064
2065 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2066 # Use eval to expand $SHELL
2067 if eval "$MISSING --run true"; then
2068 am_missing_run="$MISSING --run "
2069 else
2070 am_missing_run=
2071 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2072 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2073 fi
2074
2075 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2076 # We used to keeping the `.' as first argument, in order to
2077 # allow $(mkdir_p) to be used without argument. As in
2078 # $(mkdir_p) $(somedir)
2079 # where $(somedir) is conditionally defined. However this is wrong
2080 # for two reasons:
2081 # 1. if the package is installed by a user who cannot write `.'
2082 # make install will fail,
2083 # 2. the above comment should most certainly read
2084 # $(mkdir_p) $(DESTDIR)$(somedir)
2085 # so it does not work when $(somedir) is undefined and
2086 # $(DESTDIR) is not.
2087 # To support the latter case, we have to write
2088 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2089 # so the `.' trick is pointless.
2090 mkdir_p='mkdir -p --'
2091 else
2092 # On NextStep and OpenStep, the `mkdir' command does not
2093 # recognize any option. It will interpret all options as
2094 # directories to create, and then abort because `.' already
2095 # exists.
2096 for d in ./-p ./--version;
2097 do
2098 test -d $d && rmdir $d
2099 done
2100 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2101 if test -f "$ac_aux_dir/mkinstalldirs"; then
2102 mkdir_p='$(mkinstalldirs)'
2103 else
2104 mkdir_p='$(install_sh) -d'
2105 fi
2106 fi
2107
2108 for ac_prog in gawk mawk nawk awk
2109 do
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_AWK+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$AWK"; then
2118 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_AWK="$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 AWK=$ac_cv_prog_AWK
2138 if test -n "$AWK"; then
2139 { echo "$as_me:$LINENO: result: $AWK" >&5
2140 echo "${ECHO_T}$AWK" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2144 fi
2145
2146
2147 test -n "$AWK" && break
2148 done
2149
2150 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2151 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2152 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2153 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156 cat >conftest.make <<\_ACEOF
2157 SHELL = /bin/sh
2158 all:
2159 @echo '@@@%%%=$(MAKE)=@@@%%%'
2160 _ACEOF
2161 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2163 *@@@%%%=?*=@@@%%%*)
2164 eval ac_cv_prog_make_${ac_make}_set=yes;;
2165 *)
2166 eval ac_cv_prog_make_${ac_make}_set=no;;
2167 esac
2168 rm -f conftest.make
2169 fi
2170 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2171 { echo "$as_me:$LINENO: result: yes" >&5
2172 echo "${ECHO_T}yes" >&6; }
2173 SET_MAKE=
2174 else
2175 { echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6; }
2177 SET_MAKE="MAKE=${MAKE-make}"
2178 fi
2179
2180 rm -rf .tst 2>/dev/null
2181 mkdir .tst 2>/dev/null
2182 if test -d .tst; then
2183 am__leading_dot=.
2184 else
2185 am__leading_dot=_
2186 fi
2187 rmdir .tst 2>/dev/null
2188
2189 # test to see if srcdir already configured
2190 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2191 test -f $srcdir/config.status; then
2192 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2193 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2194 { (exit 1); exit 1; }; }
2195 fi
2196
2197 # test whether we have cygpath
2198 if test -z "$CYGPATH_W"; then
2199 if (cygpath --version) >/dev/null 2>/dev/null; then
2200 CYGPATH_W='cygpath -w'
2201 else
2202 CYGPATH_W=echo
2203 fi
2204 fi
2205
2206
2207 # Define the identity of the package.
2208 PACKAGE='x3'
2209 VERSION='1.5'
2210
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE "$PACKAGE"
2214 _ACEOF
2215
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define VERSION "$VERSION"
2219 _ACEOF
2220
2221 # Some tools Automake needs.
2222
2223 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2224
2225
2226 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2227
2228
2229 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2230
2231
2232 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2233
2234
2235 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2236
2237 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2238
2239 # Installed binaries are usually stripped using `strip' when the user
2240 # run `make install-strip'. However `strip' might not be the right
2241 # tool to use in cross-compilation environments, therefore Automake
2242 # will honor the `STRIP' environment variable to overrule this program.
2243 if test "$cross_compiling" != no; then
2244 if test -n "$ac_tool_prefix"; then
2245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2246 set dummy ${ac_tool_prefix}strip; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_STRIP+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 if test -n "$STRIP"; then
2253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 break 2
2265 fi
2266 done
2267 done
2268 IFS=$as_save_IFS
2269
2270 fi
2271 fi
2272 STRIP=$ac_cv_prog_STRIP
2273 if test -n "$STRIP"; then
2274 { echo "$as_me:$LINENO: result: $STRIP" >&5
2275 echo "${ECHO_T}$STRIP" >&6; }
2276 else
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279 fi
2280
2281
2282 fi
2283 if test -z "$ac_cv_prog_STRIP"; then
2284 ac_ct_STRIP=$STRIP
2285 # Extract the first word of "strip", so it can be a program name with args.
2286 set dummy strip; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 if test -n "$ac_ct_STRIP"; then
2293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_ac_ct_STRIP="strip"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2305 fi
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 fi
2311 fi
2312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2313 if test -n "$ac_ct_STRIP"; then
2314 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2315 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2316 else
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2319 fi
2320
2321 if test "x$ac_ct_STRIP" = x; then
2322 STRIP=":"
2323 else
2324 case $cross_compiling:$ac_tool_warned in
2325 yes:)
2326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet. If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&5
2329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2330 whose name does not start with the host triplet. If you think this
2331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2332 ac_tool_warned=yes ;;
2333 esac
2334 STRIP=$ac_ct_STRIP
2335 fi
2336 else
2337 STRIP="$ac_cv_prog_STRIP"
2338 fi
2339
2340 fi
2341 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2342
2343 # We need awk for the "check" target. The system "awk" is bad on
2344 # some platforms.
2345 # Always define AMTAR for backward compatibility.
2346
2347 AMTAR=${AMTAR-"${am_missing_run}tar"}
2348
2349 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2350
2351
2352
2353
2354
2355 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2356 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2357 # Check whether --enable-maintainer-mode was given.
2358 if test "${enable_maintainer_mode+set}" = set; then
2359 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2360 else
2361 USE_MAINTAINER_MODE=no
2362 fi
2363
2364 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2365 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2366
2367
2368 if test $USE_MAINTAINER_MODE = yes; then
2369 MAINTAINER_MODE_TRUE=
2370 MAINTAINER_MODE_FALSE='#'
2371 else
2372 MAINTAINER_MODE_TRUE='#'
2373 MAINTAINER_MODE_FALSE=
2374 fi
2375
2376 MAINT=$MAINTAINER_MODE_TRUE
2377
2378
2379
2380 DEPDIR="${am__leading_dot}deps"
2381
2382 ac_config_commands="$ac_config_commands depfiles"
2383
2384
2385 am_make=${MAKE-make}
2386 cat > confinc << 'END'
2387 am__doit:
2388 @echo done
2389 .PHONY: am__doit
2390 END
2391 # If we don't find an include directive, just comment out the code.
2392 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2393 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2394 am__include="#"
2395 am__quote=
2396 _am_result=none
2397 # First try GNU make style include.
2398 echo "include confinc" > confmf
2399 # We grep out `Entering directory' and `Leaving directory'
2400 # messages which can occur if `w' ends up in MAKEFLAGS.
2401 # In particular we don't look at `^make:' because GNU make might
2402 # be invoked under some other name (usually "gmake"), in which
2403 # case it prints its new name instead of `make'.
2404 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2405 am__include=include
2406 am__quote=
2407 _am_result=GNU
2408 fi
2409 # Now try BSD make style include.
2410 if test "$am__include" = "#"; then
2411 echo '.include "confinc"' > confmf
2412 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2413 am__include=.include
2414 am__quote="\""
2415 _am_result=BSD
2416 fi
2417 fi
2418
2419
2420 { echo "$as_me:$LINENO: result: $_am_result" >&5
2421 echo "${ECHO_T}$_am_result" >&6; }
2422 rm -f confinc confmf
2423
2424 # Check whether --enable-dependency-tracking was given.
2425 if test "${enable_dependency_tracking+set}" = set; then
2426 enableval=$enable_dependency_tracking;
2427 fi
2428
2429 if test "x$enable_dependency_tracking" != xno; then
2430 am_depcomp="$ac_aux_dir/depcomp"
2431 AMDEPBACKSLASH='\'
2432 fi
2433
2434
2435 if test "x$enable_dependency_tracking" != xno; then
2436 AMDEP_TRUE=
2437 AMDEP_FALSE='#'
2438 else
2439 AMDEP_TRUE='#'
2440 AMDEP_FALSE=
2441 fi
2442
2443
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458 if test -n "$CC"; then
2459 ac_cv_prog_CC="$CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 CC=$ac_cv_prog_CC
2479 if test -n "$CC"; then
2480 { echo "$as_me:$LINENO: result: $CC" >&5
2481 echo "${ECHO_T}$CC" >&6; }
2482 else
2483 { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2485 fi
2486
2487
2488 fi
2489 if test -z "$ac_cv_prog_CC"; then
2490 ac_ct_CC=$CC
2491 # Extract the first word of "gcc", so it can be a program name with args.
2492 set dummy gcc; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 if test -n "$ac_ct_CC"; then
2499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 ac_cv_prog_ac_ct_CC="gcc"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512 done
2513 done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2521 echo "${ECHO_T}$ac_ct_CC" >&6; }
2522 else
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 fi
2526
2527 if test "x$ac_ct_CC" = x; then
2528 CC=""
2529 else
2530 case $cross_compiling:$ac_tool_warned in
2531 yes:)
2532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2533 whose name does not start with the host triplet. If you think this
2534 configuration is useful to you, please write to autoconf@gnu.org." >&5
2535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2536 whose name does not start with the host triplet. If you think this
2537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2538 ac_tool_warned=yes ;;
2539 esac
2540 CC=$ac_ct_CC
2541 fi
2542 else
2543 CC="$ac_cv_prog_CC"
2544 fi
2545
2546 if test -z "$CC"; then
2547 if test -n "$ac_tool_prefix"; then
2548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2549 set dummy ${ac_tool_prefix}cc; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_CC="${ac_tool_prefix}cc"
2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 CC=$ac_cv_prog_CC
2576 if test -n "$CC"; then
2577 { echo "$as_me:$LINENO: result: $CC" >&5
2578 echo "${ECHO_T}$CC" >&6; }
2579 else
2580 { echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6; }
2582 fi
2583
2584
2585 fi
2586 fi
2587 if test -z "$CC"; then
2588 # Extract the first word of "cc", so it can be a program name with args.
2589 set dummy cc; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 ac_prog_rejected=no
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2607 ac_prog_rejected=yes
2608 continue
2609 fi
2610 ac_cv_prog_CC="cc"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 if test $ac_prog_rejected = yes; then
2619 # We found a bogon in the path, so make sure we never use it.
2620 set dummy $ac_cv_prog_CC
2621 shift
2622 if test $# != 0; then
2623 # We chose a different compiler from the bogus one.
2624 # However, it has the same basename, so the bogon will be chosen
2625 # first if we set CC to just the basename; use the full file name.
2626 shift
2627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2628 fi
2629 fi
2630 fi
2631 fi
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634 { echo "$as_me:$LINENO: result: $CC" >&5
2635 echo "${ECHO_T}$CC" >&6; }
2636 else
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2639 fi
2640
2641
2642 fi
2643 if test -z "$CC"; then
2644 if test -n "$ac_tool_prefix"; then
2645 for ac_prog in cl.exe
2646 do
2647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 if test -n "$CC"; then
2655 ac_cv_prog_CC="$CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 CC=$ac_cv_prog_CC
2675 if test -n "$CC"; then
2676 { echo "$as_me:$LINENO: result: $CC" >&5
2677 echo "${ECHO_T}$CC" >&6; }
2678 else
2679 { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2681 fi
2682
2683
2684 test -n "$CC" && break
2685 done
2686 fi
2687 if test -z "$CC"; then
2688 ac_ct_CC=$CC
2689 for ac_prog in cl.exe
2690 do
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$ac_ct_CC"; then
2699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_ac_ct_CC="$ac_prog"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719 if test -n "$ac_ct_CC"; then
2720 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2721 echo "${ECHO_T}$ac_ct_CC" >&6; }
2722 else
2723 { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2725 fi
2726
2727
2728 test -n "$ac_ct_CC" && break
2729 done
2730
2731 if test "x$ac_ct_CC" = x; then
2732 CC=""
2733 else
2734 case $cross_compiling:$ac_tool_warned in
2735 yes:)
2736 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2737 whose name does not start with the host triplet. If you think this
2738 configuration is useful to you, please write to autoconf@gnu.org." >&5
2739 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2740 whose name does not start with the host triplet. If you think this
2741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744 CC=$ac_ct_CC
2745 fi
2746 fi
2747
2748 fi
2749
2750
2751 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2752 See \`config.log' for more details." >&5
2753 echo "$as_me: error: no acceptable C compiler found in \$PATH
2754 See \`config.log' for more details." >&2;}
2755 { (exit 1); exit 1; }; }
2756
2757 # Provide some information about the compiler.
2758 echo "$as_me:$LINENO: checking for C compiler version" >&5
2759 ac_compiler=`set X $ac_compile; echo $2`
2760 { (ac_try="$ac_compiler --version >&5"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler --version >&5") 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
2770 { (ac_try="$ac_compiler -v >&5"
2771 case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compiler -v >&5") 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }
2780 { (ac_try="$ac_compiler -V >&5"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compiler -V >&5") 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }
2790
2791 cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h. */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2797
2798 int
2799 main ()
2800 {
2801
2802 ;
2803 return 0;
2804 }
2805 _ACEOF
2806 ac_clean_files_save=$ac_clean_files
2807 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2808 # Try to create an executable without -o first, disregard a.out.
2809 # It will help us diagnose broken compilers, and finding out an intuition
2810 # of exeext.
2811 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2812 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2813 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2814 #
2815 # List of possible output files, starting from the most likely.
2816 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2817 # only as a last resort. b.out is created by i960 compilers.
2818 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2819 #
2820 # The IRIX 6 linker writes into existing files which may not be
2821 # executable, retaining their permissions. Remove them first so a
2822 # subsequent execution test works.
2823 ac_rmfiles=
2824 for ac_file in $ac_files
2825 do
2826 case $ac_file in
2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2828 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2829 esac
2830 done
2831 rm -f $ac_rmfiles
2832
2833 if { (ac_try="$ac_link_default"
2834 case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_link_default") 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; then
2843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2844 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2845 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2846 # so that the user can short-circuit this test for compilers unknown to
2847 # Autoconf.
2848 for ac_file in $ac_files
2849 do
2850 test -f "$ac_file" || continue
2851 case $ac_file in
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2853 ;;
2854 [ab].out )
2855 # We found the default executable, but exeext='' is most
2856 # certainly right.
2857 break;;
2858 *.* )
2859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2860 then :; else
2861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862 fi
2863 # We set ac_cv_exeext here because the later test for it is not
2864 # safe: cross compilers may not add the suffix if given an `-o'
2865 # argument, so we may need to know it at that point already.
2866 # Even if this section looks crufty: it has the advantage of
2867 # actually working.
2868 break;;
2869 * )
2870 break;;
2871 esac
2872 done
2873 test "$ac_cv_exeext" = no && ac_cv_exeext=
2874
2875 else
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2880 See \`config.log' for more details." >&5
2881 echo "$as_me: error: C compiler cannot create executables
2882 See \`config.log' for more details." >&2;}
2883 { (exit 77); exit 77; }; }
2884 fi
2885
2886 ac_exeext=$ac_cv_exeext
2887 { echo "$as_me:$LINENO: result: $ac_file" >&5
2888 echo "${ECHO_T}$ac_file" >&6; }
2889
2890 # Check that the compiler produces executables we can run. If not, either
2891 # the compiler is broken, or we cross compile.
2892 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2893 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2894 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2895 # If not cross compiling, check that we can run a simple program.
2896 if test "$cross_compiling" != yes; then
2897 if { ac_try='./$ac_file'
2898 { (case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_try") 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 cross_compiling=no
2908 else
2909 if test "$cross_compiling" = maybe; then
2910 cross_compiling=yes
2911 else
2912 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2913 If you meant to cross compile, use \`--host'.
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot run C compiled programs.
2916 If you meant to cross compile, use \`--host'.
2917 See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
2919 fi
2920 fi
2921 fi
2922 { echo "$as_me:$LINENO: result: yes" >&5
2923 echo "${ECHO_T}yes" >&6; }
2924
2925 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2926 ac_clean_files=$ac_clean_files_save
2927 # Check that the compiler produces executables we can run. If not, either
2928 # the compiler is broken, or we cross compile.
2929 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2930 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2931 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2932 echo "${ECHO_T}$cross_compiling" >&6; }
2933
2934 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2935 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2936 if { (ac_try="$ac_link"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_link") 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2947 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2948 # work properly (i.e., refer to `conftest.exe'), while it won't with
2949 # `rm'.
2950 for ac_file in conftest.exe conftest conftest.*; do
2951 test -f "$ac_file" || continue
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2954 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2955 break;;
2956 * ) break;;
2957 esac
2958 done
2959 else
2960 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2961 See \`config.log' for more details." >&5
2962 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2963 See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966
2967 rm -f conftest$ac_cv_exeext
2968 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2969 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2970
2971 rm -f conftest.$ac_ext
2972 EXEEXT=$ac_cv_exeext
2973 ac_exeext=$EXEEXT
2974 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2975 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2976 if test "${ac_cv_objext+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985
2986 int
2987 main ()
2988 {
2989
2990 ;
2991 return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.o conftest.obj
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; then
3005 for ac_file in conftest.o conftest.obj conftest.*; do
3006 test -f "$ac_file" || continue;
3007 case $ac_file in
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3010 break;;
3011 esac
3012 done
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3020 See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }
3022 fi
3023
3024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3025 fi
3026 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3027 echo "${ECHO_T}$ac_cv_objext" >&6; }
3028 OBJEXT=$ac_cv_objext
3029 ac_objext=$OBJEXT
3030 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3031 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3032 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h. */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3041
3042 int
3043 main ()
3044 {
3045 #ifndef __GNUC__
3046 choke me
3047 #endif
3048
3049 ;
3050 return 0;
3051 }
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_compiler_gnu=yes
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 ac_compiler_gnu=no
3093 fi
3094
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3097
3098 fi
3099 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3100 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3101 GCC=`test $ac_compiler_gnu = yes && echo yes`
3102 ac_test_CFLAGS=${CFLAGS+set}
3103 ac_save_CFLAGS=$CFLAGS
3104 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3105 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3106 if test "${ac_cv_prog_cc_g+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 ac_save_c_werror_flag=$ac_c_werror_flag
3110 ac_c_werror_flag=yes
3111 ac_cv_prog_cc_g=no
3112 CFLAGS="-g"
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119
3120 int
3121 main ()
3122 {
3123
3124 ;
3125 return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_prog_cc_g=yes
3163 else
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 CFLAGS=""
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
3175 int
3176 main ()
3177 {
3178
3179 ;
3180 return 0;
3181 }
3182 _ACEOF
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3217 :
3218 else
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3223 CFLAGS="-g"
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230
3231 int
3232 main ()
3233 {
3234
3235 ;
3236 return 0;
3237 }
3238 _ACEOF
3239 rm -f conftest.$ac_objext
3240 if { (ac_try="$ac_compile"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_compile") 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3254 { (case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_try") 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_try") 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 ac_cv_prog_cc_g=yes
3274 else
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278
3279 fi
3280
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 fi
3283
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 fi
3286
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_c_werror_flag=$ac_save_c_werror_flag
3289 fi
3290 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3291 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3292 if test "$ac_test_CFLAGS" = set; then
3293 CFLAGS=$ac_save_CFLAGS
3294 elif test $ac_cv_prog_cc_g = yes; then
3295 if test "$GCC" = yes; then
3296 CFLAGS="-g -O2"
3297 else
3298 CFLAGS="-g"
3299 fi
3300 else
3301 if test "$GCC" = yes; then
3302 CFLAGS="-O2"
3303 else
3304 CFLAGS=
3305 fi
3306 fi
3307 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3308 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_cc_c89+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 ac_cv_prog_cc_c89=no
3313 ac_save_CC=$CC
3314 cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h. */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3320 #include <stdarg.h>
3321 #include <stdio.h>
3322 #include <sys/types.h>
3323 #include <sys/stat.h>
3324 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3325 struct buf { int x; };
3326 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3327 static char *e (p, i)
3328 char **p;
3329 int i;
3330 {
3331 return p[i];
3332 }
3333 static char *f (char * (*g) (char **, int), char **p, ...)
3334 {
3335 char *s;
3336 va_list v;
3337 va_start (v,p);
3338 s = g (p, va_arg (v,int));
3339 va_end (v);
3340 return s;
3341 }
3342
3343 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3344 function prototypes and stuff, but not '\xHH' hex character constants.
3345 These don't provoke an error unfortunately, instead are silently treated
3346 as 'x'. The following induces an error, until -std is added to get
3347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3348 array size at least. It's necessary to write '\x00'==0 to get something
3349 that's true only with -std. */
3350 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3351
3352 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3353 inside strings and character constants. */
3354 #define FOO(x) 'x'
3355 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356
3357 int test (int i, double x);
3358 struct s1 {int (*f) (int a);};
3359 struct s2 {int (*f) (double a);};
3360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3361 int argc;
3362 char **argv;
3363 int
3364 main ()
3365 {
3366 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3373 do
3374 CC="$ac_save_CC $ac_arg"
3375 rm -f conftest.$ac_objext
3376 if { (ac_try="$ac_compile"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_compile") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3390 { (case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_try") 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_try") 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 ac_cv_prog_cc_c89=$ac_arg
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414
3415 fi
3416
3417 rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c89" != "xno" && break
3419 done
3420 rm -f conftest.$ac_ext
3421 CC=$ac_save_CC
3422
3423 fi
3424 # AC_CACHE_VAL
3425 case "x$ac_cv_prog_cc_c89" in
3426 x)
3427 { echo "$as_me:$LINENO: result: none needed" >&5
3428 echo "${ECHO_T}none needed" >&6; } ;;
3429 xno)
3430 { echo "$as_me:$LINENO: result: unsupported" >&5
3431 echo "${ECHO_T}unsupported" >&6; } ;;
3432 *)
3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3435 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3436 esac
3437
3438
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445 depcc="$CC" am_compiler_list=
3446
3447 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3448 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3449 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453 # We make a subdir and do the tests there. Otherwise we can end up
3454 # making bogus files that we don't know about and never remove. For
3455 # instance it was reported that on HP-UX the gcc test will end up
3456 # making a dummy file named `D' -- because `-MD' means `put the output
3457 # in D'.
3458 mkdir conftest.dir
3459 # Copy depcomp to subdir because otherwise we won't find it if we're
3460 # using a relative directory.
3461 cp "$am_depcomp" conftest.dir
3462 cd conftest.dir
3463 # We will build objects and dependencies in a subdirectory because
3464 # it helps to detect inapplicable dependency modes. For instance
3465 # both Tru64's cc and ICC support -MD to output dependencies as a
3466 # side effect of compilation, but ICC will put the dependencies in
3467 # the current directory while Tru64 will put them in the object
3468 # directory.
3469 mkdir sub
3470
3471 am_cv_CC_dependencies_compiler_type=none
3472 if test "$am_compiler_list" = ""; then
3473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3474 fi
3475 for depmode in $am_compiler_list; do
3476 # Setup a source with many dependencies, because some compilers
3477 # like to wrap large dependency lists on column 80 (with \), and
3478 # we should not choose a depcomp mode which is confused by this.
3479 #
3480 # We need to recreate these files for each test, as the compiler may
3481 # overwrite some of them when testing with obscure command lines.
3482 # This happens at least with the AIX C compiler.
3483 : > sub/conftest.c
3484 for i in 1 2 3 4 5 6; do
3485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3487 # Solaris 8's {/usr,}/bin/sh.
3488 touch sub/conftst$i.h
3489 done
3490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3491
3492 case $depmode in
3493 nosideeffect)
3494 # after this tag, mechanisms are not by side-effect, so they'll
3495 # only be used when explicitly requested
3496 if test "x$enable_dependency_tracking" = xyes; then
3497 continue
3498 else
3499 break
3500 fi
3501 ;;
3502 none) break ;;
3503 esac
3504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505 # mode. It turns out that the SunPro C++ compiler does not properly
3506 # handle `-M -o', and we need to detect this.
3507 if depmode=$depmode \
3508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3511 >/dev/null 2>conftest.err &&
3512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3513 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3515 # icc doesn't choke on unknown options, it will just issue warnings
3516 # or remarks (even with -Werror). So we grep stderr for any message
3517 # that says an option was ignored or not supported.
3518 # When given -MP, icc 7.0 and 7.1 complain thusly:
3519 # icc: Command line warning: ignoring option '-M'; no argument required
3520 # The diagnosis changed in icc 8.0:
3521 # icc: Command line remark: option '-MP' not supported
3522 if (grep 'ignoring option' conftest.err ||
3523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3524 am_cv_CC_dependencies_compiler_type=$depmode
3525 break
3526 fi
3527 fi
3528 done
3529
3530 cd ..
3531 rm -rf conftest.dir
3532 else
3533 am_cv_CC_dependencies_compiler_type=none
3534 fi
3535
3536 fi
3537 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3538 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3539 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3540
3541
3542
3543 if
3544 test "x$enable_dependency_tracking" != xno \
3545 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_TRUE=
3547 am__fastdepCC_FALSE='#'
3548 else
3549 am__fastdepCC_TRUE='#'
3550 am__fastdepCC_FALSE=
3551 fi
3552
3553
3554
3555 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3556 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3557 if test "${ac_cv_type_signal+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <sys/types.h>
3567 #include <signal.h>
3568
3569 int
3570 main ()
3571 {
3572 return *(signal (0, 0)) (0) == 1;
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (ac_try="$ac_compile"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_compile") 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3592 { (case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_try") 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest.$ac_objext'
3602 { (case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_try") 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_type_signal=int
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 ac_cv_type_signal=void
3617 fi
3618
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 fi
3621 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3622 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3623
3624 cat >>confdefs.h <<_ACEOF
3625 #define RETSIGTYPE $ac_cv_type_signal
3626 _ACEOF
3627
3628
3629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3631 if test "${ac_cv_c_const+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634 cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h. */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640
3641 int
3642 main ()
3643 {
3644 /* FIXME: Include the comments suggested by Paul. */
3645 #ifndef __cplusplus
3646 /* Ultrix mips cc rejects this. */
3647 typedef int charset[2];
3648 const charset x;
3649 /* SunOS 4.1.1 cc rejects this. */
3650 char const *const *ccp;
3651 char **p;
3652 /* NEC SVR4.0.2 mips cc rejects this. */
3653 struct point {int x, y;};
3654 static struct point const zero = {0,0};
3655 /* AIX XL C 1.02.0.0 rejects this.
3656 It does not let you subtract one const X* pointer from another in
3657 an arm of an if-expression whose if-part is not a constant
3658 expression */
3659 const char *g = "string";
3660 ccp = &g + (g ? g-g : 0);
3661 /* HPUX 7.0 cc rejects these. */
3662 ++ccp;
3663 p = (char**) ccp;
3664 ccp = (char const *const *) p;
3665 { /* SCO 3.2v4 cc rejects this. */
3666 char *t;
3667 char const *s = 0 ? (char *) 0 : (char const *) 0;
3668
3669 *t++ = 0;
3670 if (s) return 0;
3671 }
3672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3673 int x[] = {25, 17};
3674 const int *foo = &x[0];
3675 ++foo;
3676 }
3677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3678 typedef const int *iptr;
3679 iptr p = 0;
3680 ++p;
3681 }
3682 { /* AIX XL C 1.02.0.0 rejects this saying
3683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3684 struct s { int j; const int *ap[3]; };
3685 struct s *b; b->j = 5;
3686 }
3687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3688 const int foo = 10;
3689 if (!foo) return 0;
3690 }
3691 return !x[0] && !zero.x;
3692 #endif
3693
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (ac_try="$ac_compile"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3713 { (case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_try") 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_c_const=yes
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ac_cv_c_const=no
3738 fi
3739
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3743 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3744 if test $ac_cv_c_const = no; then
3745
3746 cat >>confdefs.h <<\_ACEOF
3747 #define const
3748 _ACEOF
3749
3750 fi
3751
3752 { echo "$as_me:$LINENO: checking for inline" >&5
3753 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3754 if test "${ac_cv_c_inline+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 ac_cv_c_inline=no
3758 for ac_kw in inline __inline__ __inline; do
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #ifndef __cplusplus
3766 typedef int foo_t;
3767 static $ac_kw foo_t static_foo () {return 0; }
3768 $ac_kw foo_t foo () {return 0; }
3769 #endif
3770
3771 _ACEOF
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3787 { (case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_try") 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest.$ac_objext'
3797 { (case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_try") 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_c_inline=$ac_kw
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811
3812 fi
3813
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 test "$ac_cv_c_inline" != no && break
3816 done
3817
3818 fi
3819 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3820 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3821
3822
3823 case $ac_cv_c_inline in
3824 inline | yes) ;;
3825 *)
3826 case $ac_cv_c_inline in
3827 no) ac_val=;;
3828 *) ac_val=$ac_cv_c_inline;;
3829 esac
3830 cat >>confdefs.h <<_ACEOF
3831 #ifndef __cplusplus
3832 #define inline $ac_val
3833 #endif
3834 _ACEOF
3835 ;;
3836 esac
3837
3838
3839 for ac_prog in gawk mawk nawk awk
3840 do
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3845 if test "${ac_cv_prog_AWK+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$AWK"; then
3849 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_prog_AWK="$ac_prog"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862 done
3863 done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 AWK=$ac_cv_prog_AWK
3869 if test -n "$AWK"; then
3870 { echo "$as_me:$LINENO: result: $AWK" >&5
3871 echo "${ECHO_T}$AWK" >&6; }
3872 else
3873 { echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6; }
3875 fi
3876
3877
3878 test -n "$AWK" && break
3879 done
3880
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886 if test -n "$ac_tool_prefix"; then
3887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3891 if test "${ac_cv_prog_CC+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908 done
3909 done
3910 IFS=$as_save_IFS
3911
3912 fi
3913 fi
3914 CC=$ac_cv_prog_CC
3915 if test -n "$CC"; then
3916 { echo "$as_me:$LINENO: result: $CC" >&5
3917 echo "${ECHO_T}$CC" >&6; }
3918 else
3919 { echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6; }
3921 fi
3922
3923
3924 fi
3925 if test -z "$ac_cv_prog_CC"; then
3926 ac_ct_CC=$CC
3927 # Extract the first word of "gcc", so it can be a program name with args.
3928 set dummy gcc; ac_word=$2
3929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_CC="gcc"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955 if test -n "$ac_ct_CC"; then
3956 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3957 echo "${ECHO_T}$ac_ct_CC" >&6; }
3958 else
3959 { echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6; }
3961 fi
3962
3963 if test "x$ac_ct_CC" = x; then
3964 CC=""
3965 else
3966 case $cross_compiling:$ac_tool_warned in
3967 yes:)
3968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet. If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&5
3971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3972 whose name does not start with the host triplet. If you think this
3973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3974 ac_tool_warned=yes ;;
3975 esac
3976 CC=$ac_ct_CC
3977 fi
3978 else
3979 CC="$ac_cv_prog_CC"
3980 fi
3981
3982 if test -z "$CC"; then
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}cc; ac_word=$2
3986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3988 if test "${ac_cv_prog_CC+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_CC="${ac_tool_prefix}cc"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009 fi
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { echo "$as_me:$LINENO: result: $CC" >&5
4014 echo "${ECHO_T}$CC" >&6; }
4015 else
4016 { echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6; }
4018 fi
4019
4020
4021 fi
4022 fi
4023 if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025 set dummy cc; ac_word=$2
4026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4028 if test "${ac_cv_prog_CC+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 else
4034 ac_prog_rejected=no
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected=yes
4044 continue
4045 fi
4046 ac_cv_prog_CC="cc"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy $ac_cv_prog_CC
4057 shift
4058 if test $# != 0; then
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4062 shift
4063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4064 fi
4065 fi
4066 fi
4067 fi
4068 CC=$ac_cv_prog_CC
4069 if test -n "$CC"; then
4070 { echo "$as_me:$LINENO: result: $CC" >&5
4071 echo "${ECHO_T}$CC" >&6; }
4072 else
4073 { echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6; }
4075 fi
4076
4077
4078 fi
4079 if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
4081 for ac_prog in cl.exe
4082 do
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112 { echo "$as_me:$LINENO: result: $CC" >&5
4113 echo "${ECHO_T}$CC" >&6; }
4114 else
4115 { echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6; }
4117 fi
4118
4119
4120 test -n "$CC" && break
4121 done
4122 fi
4123 if test -z "$CC"; then
4124 ac_ct_CC=$CC
4125 for ac_prog in cl.exe
4126 do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_ac_ct_CC="$ac_prog"
4145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155 if test -n "$ac_ct_CC"; then
4156 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4157 echo "${ECHO_T}$ac_ct_CC" >&6; }
4158 else
4159 { echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6; }
4161 fi
4162
4163
4164 test -n "$ac_ct_CC" && break
4165 done
4166
4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171 yes:)
4172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4173 whose name does not start with the host triplet. If you think this
4174 configuration is useful to you, please write to autoconf@gnu.org." >&5
4175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4176 whose name does not start with the host triplet. If you think this
4177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4178 ac_tool_warned=yes ;;
4179 esac
4180 CC=$ac_ct_CC
4181 fi
4182 fi
4183
4184 fi
4185
4186
4187 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4188 See \`config.log' for more details." >&5
4189 echo "$as_me: error: no acceptable C compiler found in \$PATH
4190 See \`config.log' for more details." >&2;}
4191 { (exit 1); exit 1; }; }
4192
4193 # Provide some information about the compiler.
4194 echo "$as_me:$LINENO: checking for C compiler version" >&5
4195 ac_compiler=`set X $ac_compile; echo $2`
4196 { (ac_try="$ac_compiler --version >&5"
4197 case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_compiler --version >&5") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }
4206 { (ac_try="$ac_compiler -v >&5"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compiler -v >&5") 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }
4216 { (ac_try="$ac_compiler -V >&5"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_compiler -V >&5") 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }
4226
4227 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4228 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4229 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238
4239 int
4240 main ()
4241 {
4242 #ifndef __GNUC__
4243 choke me
4244 #endif
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (ac_try="$ac_compile"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_compile") 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_compiler_gnu=yes
4285 else
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289 ac_compiler_gnu=no
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4294
4295 fi
4296 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4297 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4298 GCC=`test $ac_compiler_gnu = yes && echo yes`
4299 ac_test_CFLAGS=${CFLAGS+set}
4300 ac_save_CFLAGS=$CFLAGS
4301 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4302 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_cc_g+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 ac_save_c_werror_flag=$ac_c_werror_flag
4307 ac_c_werror_flag=yes
4308 ac_cv_prog_cc_g=no
4309 CFLAGS="-g"
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4327 case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4340 { (case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343 esac
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_try") 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353 esac
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_try") 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_prog_cc_g=yes
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 CFLAGS=""
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371
4372 int
4373 main ()
4374 {
4375
4376 ;
4377 return 0;
4378 }
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4395 { (case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398 esac
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_try") 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_try") 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 :
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 ac_c_werror_flag=$ac_save_c_werror_flag
4420 CFLAGS="-g"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427
4428 int
4429 main ()
4430 {
4431
4432 ;
4433 return 0;
4434 }
4435 _ACEOF
4436 rm -f conftest.$ac_objext
4437 if { (ac_try="$ac_compile"
4438 case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_compile") 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_prog_cc_g=yes
4471 else
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475
4476 fi
4477
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 fi
4480
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 fi
4483
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 ac_c_werror_flag=$ac_save_c_werror_flag
4486 fi
4487 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4488 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4489 if test "$ac_test_CFLAGS" = set; then
4490 CFLAGS=$ac_save_CFLAGS
4491 elif test $ac_cv_prog_cc_g = yes; then
4492 if test "$GCC" = yes; then
4493 CFLAGS="-g -O2"
4494 else
4495 CFLAGS="-g"
4496 fi
4497 else
4498 if test "$GCC" = yes; then
4499 CFLAGS="-O2"
4500 else
4501 CFLAGS=
4502 fi
4503 fi
4504 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4505 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4506 if test "${ac_cv_prog_cc_c89+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 ac_cv_prog_cc_c89=no
4510 ac_save_CC=$CC
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <stdarg.h>
4518 #include <stdio.h>
4519 #include <sys/types.h>
4520 #include <sys/stat.h>
4521 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4522 struct buf { int x; };
4523 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4524 static char *e (p, i)
4525 char **p;
4526 int i;
4527 {
4528 return p[i];
4529 }
4530 static char *f (char * (*g) (char **, int), char **p, ...)
4531 {
4532 char *s;
4533 va_list v;
4534 va_start (v,p);
4535 s = g (p, va_arg (v,int));
4536 va_end (v);
4537 return s;
4538 }
4539
4540 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4541 function prototypes and stuff, but not '\xHH' hex character constants.
4542 These don't provoke an error unfortunately, instead are silently treated
4543 as 'x'. The following induces an error, until -std is added to get
4544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4545 array size at least. It's necessary to write '\x00'==0 to get something
4546 that's true only with -std. */
4547 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4548
4549 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4550 inside strings and character constants. */
4551 #define FOO(x) 'x'
4552 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4553
4554 int test (int i, double x);
4555 struct s1 {int (*f) (int a);};
4556 struct s2 {int (*f) (double a);};
4557 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4558 int argc;
4559 char **argv;
4560 int
4561 main ()
4562 {
4563 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4569 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4570 do
4571 CC="$ac_save_CC $ac_arg"
4572 rm -f conftest.$ac_objext
4573 if { (ac_try="$ac_compile"
4574 case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_compile") 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4587 { (case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590 esac
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_try") 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_try") 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_prog_cc_c89=$ac_arg
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611
4612 fi
4613
4614 rm -f core conftest.err conftest.$ac_objext
4615 test "x$ac_cv_prog_cc_c89" != "xno" && break
4616 done
4617 rm -f conftest.$ac_ext
4618 CC=$ac_save_CC
4619
4620 fi
4621 # AC_CACHE_VAL
4622 case "x$ac_cv_prog_cc_c89" in
4623 x)
4624 { echo "$as_me:$LINENO: result: none needed" >&5
4625 echo "${ECHO_T}none needed" >&6; } ;;
4626 xno)
4627 { echo "$as_me:$LINENO: result: unsupported" >&5
4628 echo "${ECHO_T}unsupported" >&6; } ;;
4629 *)
4630 CC="$CC $ac_cv_prog_cc_c89"
4631 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4632 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4633 esac
4634
4635
4636 ac_ext=c
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
4642 depcc="$CC" am_compiler_list=
4643
4644 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4645 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4646 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4650 # We make a subdir and do the tests there. Otherwise we can end up
4651 # making bogus files that we don't know about and never remove. For
4652 # instance it was reported that on HP-UX the gcc test will end up
4653 # making a dummy file named `D' -- because `-MD' means `put the output
4654 # in D'.
4655 mkdir conftest.dir
4656 # Copy depcomp to subdir because otherwise we won't find it if we're
4657 # using a relative directory.
4658 cp "$am_depcomp" conftest.dir
4659 cd conftest.dir
4660 # We will build objects and dependencies in a subdirectory because
4661 # it helps to detect inapplicable dependency modes. For instance
4662 # both Tru64's cc and ICC support -MD to output dependencies as a
4663 # side effect of compilation, but ICC will put the dependencies in
4664 # the current directory while Tru64 will put them in the object
4665 # directory.
4666 mkdir sub
4667
4668 am_cv_CC_dependencies_compiler_type=none
4669 if test "$am_compiler_list" = ""; then
4670 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4671 fi
4672 for depmode in $am_compiler_list; do
4673 # Setup a source with many dependencies, because some compilers
4674 # like to wrap large dependency lists on column 80 (with \), and
4675 # we should not choose a depcomp mode which is confused by this.
4676 #
4677 # We need to recreate these files for each test, as the compiler may
4678 # overwrite some of them when testing with obscure command lines.
4679 # This happens at least with the AIX C compiler.
4680 : > sub/conftest.c
4681 for i in 1 2 3 4 5 6; do
4682 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4683 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4684 # Solaris 8's {/usr,}/bin/sh.
4685 touch sub/conftst$i.h
4686 done
4687 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4688
4689 case $depmode in
4690 nosideeffect)
4691 # after this tag, mechanisms are not by side-effect, so they'll
4692 # only be used when explicitly requested
4693 if test "x$enable_dependency_tracking" = xyes; then
4694 continue
4695 else
4696 break
4697 fi
4698 ;;
4699 none) break ;;
4700 esac
4701 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4702 # mode. It turns out that the SunPro C++ compiler does not properly
4703 # handle `-M -o', and we need to detect this.
4704 if depmode=$depmode \
4705 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4708 >/dev/null 2>conftest.err &&
4709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4710 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4712 # icc doesn't choke on unknown options, it will just issue warnings
4713 # or remarks (even with -Werror). So we grep stderr for any message
4714 # that says an option was ignored or not supported.
4715 # When given -MP, icc 7.0 and 7.1 complain thusly:
4716 # icc: Command line warning: ignoring option '-M'; no argument required
4717 # The diagnosis changed in icc 8.0:
4718 # icc: Command line remark: option '-MP' not supported
4719 if (grep 'ignoring option' conftest.err ||
4720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4721 am_cv_CC_dependencies_compiler_type=$depmode
4722 break
4723 fi
4724 fi
4725 done
4726
4727 cd ..
4728 rm -rf conftest.dir
4729 else
4730 am_cv_CC_dependencies_compiler_type=none
4731 fi
4732
4733 fi
4734 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4735 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4736 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4737
4738
4739
4740 if
4741 test "x$enable_dependency_tracking" != xno \
4742 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4743 am__fastdepCC_TRUE=
4744 am__fastdepCC_FALSE='#'
4745 else
4746 am__fastdepCC_TRUE='#'
4747 am__fastdepCC_FALSE=
4748 fi
4749
4750
4751 # Find a good install program. We prefer a C program (faster),
4752 # so one script is as good as another. But avoid the broken or
4753 # incompatible versions:
4754 # SysV /etc/install, /usr/sbin/install
4755 # SunOS /usr/etc/install
4756 # IRIX /sbin/install
4757 # AIX /bin/install
4758 # AmigaOS /C/install, which installs bootblocks on floppy discs
4759 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4760 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4761 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4762 # OS/2's system install, which has a completely different semantic
4763 # ./install, which can be erroneously created by make from ./install.sh.
4764 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4765 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4766 if test -z "$INSTALL"; then
4767 if test "${ac_cv_path_install+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 # Account for people who put trailing slashes in PATH elements.
4776 case $as_dir/ in
4777 ./ | .// | /cC/* | \
4778 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4779 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4780 /usr/ucb/* ) ;;
4781 *)
4782 # OSF1 and SCO ODT 3.0 have their own names for install.
4783 # Don't use installbsd from OSF since it installs stuff as root
4784 # by default.
4785 for ac_prog in ginstall scoinst install; do
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4788 if test $ac_prog = install &&
4789 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4790 # AIX install. It has an incompatible calling convention.
4791 :
4792 elif test $ac_prog = install &&
4793 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4794 # program-specific install script used by HP pwplus--don't use.
4795 :
4796 else
4797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4798 break 3
4799 fi
4800 fi
4801 done
4802 done
4803 ;;
4804 esac
4805 done
4806 IFS=$as_save_IFS
4807
4808
4809 fi
4810 if test "${ac_cv_path_install+set}" = set; then
4811 INSTALL=$ac_cv_path_install
4812 else
4813 # As a last resort, use the slow shell script. Don't cache a
4814 # value for INSTALL within a source directory, because that will
4815 # break other packages using the cache if that directory is
4816 # removed, or if the value is a relative name.
4817 INSTALL=$ac_install_sh
4818 fi
4819 fi
4820 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4821 echo "${ECHO_T}$INSTALL" >&6; }
4822
4823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4824 # It thinks the first close brace ends the variable substitution.
4825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4826
4827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4828
4829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4830
4831
4832 if test -n "$ac_tool_prefix"; then
4833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4834 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4837 if test "${ac_cv_prog_RANLIB+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 if test -n "$RANLIB"; then
4841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854 done
4855 done
4856 IFS=$as_save_IFS
4857
4858 fi
4859 fi
4860 RANLIB=$ac_cv_prog_RANLIB
4861 if test -n "$RANLIB"; then
4862 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4863 echo "${ECHO_T}$RANLIB" >&6; }
4864 else
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4867 fi
4868
4869
4870 fi
4871 if test -z "$ac_cv_prog_RANLIB"; then
4872 ac_ct_RANLIB=$RANLIB
4873 # Extract the first word of "ranlib", so it can be a program name with args.
4874 set dummy ranlib; ac_word=$2
4875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4877 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 if test -n "$ac_ct_RANLIB"; then
4881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4890 ac_cv_prog_ac_ct_RANLIB="ranlib"
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4893 fi
4894 done
4895 done
4896 IFS=$as_save_IFS
4897
4898 fi
4899 fi
4900 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4901 if test -n "$ac_ct_RANLIB"; then
4902 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4903 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4904 else
4905 { echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6; }
4907 fi
4908
4909 if test "x$ac_ct_RANLIB" = x; then
4910 RANLIB=":"
4911 else
4912 case $cross_compiling:$ac_tool_warned in
4913 yes:)
4914 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4915 whose name does not start with the host triplet. If you think this
4916 configuration is useful to you, please write to autoconf@gnu.org." >&5
4917 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4918 whose name does not start with the host triplet. If you think this
4919 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4920 ac_tool_warned=yes ;;
4921 esac
4922 RANLIB=$ac_ct_RANLIB
4923 fi
4924 else
4925 RANLIB="$ac_cv_prog_RANLIB"
4926 fi
4927
4928
4929 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4930 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4931 LN_S=$as_ln_s
4932 if test "$LN_S" = "ln -s"; then
4933 { echo "$as_me:$LINENO: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6; }
4935 else
4936 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4937 echo "${ECHO_T}no, using $LN_S" >&6; }
4938 fi
4939
4940 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4941 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4942 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4943 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946 cat >conftest.make <<\_ACEOF
4947 SHELL = /bin/sh
4948 all:
4949 @echo '@@@%%%=$(MAKE)=@@@%%%'
4950 _ACEOF
4951 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4952 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4953 *@@@%%%=?*=@@@%%%*)
4954 eval ac_cv_prog_make_${ac_make}_set=yes;;
4955 *)
4956 eval ac_cv_prog_make_${ac_make}_set=no;;
4957 esac
4958 rm -f conftest.make
4959 fi
4960 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4961 { echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6; }
4963 SET_MAKE=
4964 else
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4967 SET_MAKE="MAKE=${MAKE-make}"
4968 fi
4969
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4976 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4977 # On Suns, sometimes $CPP names a directory.
4978 if test -n "$CPP" && test -d "$CPP"; then
4979 CPP=
4980 fi
4981 if test -z "$CPP"; then
4982 if test "${ac_cv_prog_CPP+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 # Double quotes because CPP needs to be expanded
4986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987 do
4988 ac_preproc_ok=false
4989 for ac_c_preproc_warn_flag in '' yes
4990 do
4991 # Use a header file that comes with gcc, so configuring glibc
4992 # with a fresh cross-compiler works.
4993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994 # <limits.h> exists even on freestanding compilers.
4995 # On the NeXT, cc -E runs the code through the compiler's parser,
4996 # not just through cpp. "Syntax error" is here to catch this case.
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #ifdef __STDC__
5004 # include <limits.h>
5005 #else
5006 # include <assert.h>
5007 #endif
5008 Syntax error
5009 _ACEOF
5010 if { (ac_try="$ac_cpp conftest.$ac_ext"
5011 case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014 esac
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null; then
5023 if test -s conftest.err; then
5024 ac_cpp_err=$ac_c_preproc_warn_flag
5025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5026 else
5027 ac_cpp_err=
5028 fi
5029 else
5030 ac_cpp_err=yes
5031 fi
5032 if test -z "$ac_cpp_err"; then
5033 :
5034 else
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038 # Broken: fails on valid input.
5039 continue
5040 fi
5041
5042 rm -f conftest.err conftest.$ac_ext
5043
5044 # OK, works on sane cases. Now check whether nonexistent headers
5045 # can be detected and how.
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <ac_nonexistent.h>
5053 _ACEOF
5054 if { (ac_try="$ac_cpp conftest.$ac_ext"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } >/dev/null; then
5067 if test -s conftest.err; then
5068 ac_cpp_err=$ac_c_preproc_warn_flag
5069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5070 else
5071 ac_cpp_err=
5072 fi
5073 else
5074 ac_cpp_err=yes
5075 fi
5076 if test -z "$ac_cpp_err"; then
5077 # Broken: success on invalid input.
5078 continue
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 # Passes both tests.
5084 ac_preproc_ok=:
5085 break
5086 fi
5087
5088 rm -f conftest.err conftest.$ac_ext
5089
5090 done
5091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092 rm -f conftest.err conftest.$ac_ext
5093 if $ac_preproc_ok; then
5094 break
5095 fi
5096
5097 done
5098 ac_cv_prog_CPP=$CPP
5099
5100 fi
5101 CPP=$ac_cv_prog_CPP
5102 else
5103 ac_cv_prog_CPP=$CPP
5104 fi
5105 { echo "$as_me:$LINENO: result: $CPP" >&5
5106 echo "${ECHO_T}$CPP" >&6; }
5107 ac_preproc_ok=false
5108 for ac_c_preproc_warn_flag in '' yes
5109 do
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #ifdef __STDC__
5123 # include <limits.h>
5124 #else
5125 # include <assert.h>
5126 #endif
5127 Syntax error
5128 _ACEOF
5129 if { (ac_try="$ac_cpp conftest.$ac_ext"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_c_preproc_warn_flag
5144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5145 else
5146 ac_cpp_err=
5147 fi
5148 else
5149 ac_cpp_err=yes
5150 fi
5151 if test -z "$ac_cpp_err"; then
5152 :
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 # Broken: fails on valid input.
5158 continue
5159 fi
5160
5161 rm -f conftest.err conftest.$ac_ext
5162
5163 # OK, works on sane cases. Now check whether nonexistent headers
5164 # can be detected and how.
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <ac_nonexistent.h>
5172 _ACEOF
5173 if { (ac_try="$ac_cpp conftest.$ac_ext"
5174 case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177 esac
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev/null; then
5186 if test -s conftest.err; then
5187 ac_cpp_err=$ac_c_preproc_warn_flag
5188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5189 else
5190 ac_cpp_err=
5191 fi
5192 else
5193 ac_cpp_err=yes
5194 fi
5195 if test -z "$ac_cpp_err"; then
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 # Passes both tests.
5203 ac_preproc_ok=:
5204 break
5205 fi
5206
5207 rm -f conftest.err conftest.$ac_ext
5208
5209 done
5210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5211 rm -f conftest.err conftest.$ac_ext
5212 if $ac_preproc_ok; then
5213 :
5214 else
5215 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5216 See \`config.log' for more details." >&5
5217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5218 See \`config.log' for more details." >&2;}
5219 { (exit 1); exit 1; }; }
5220 fi
5221
5222 ac_ext=c
5223 ac_cpp='$CPP $CPPFLAGS'
5224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227
5228
5229 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5230 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_GREP+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 # Extract the first word of "grep ggrep" to use in msg output
5235 if test -z "$GREP"; then
5236 set dummy grep ggrep; ac_prog_name=$2
5237 if test "${ac_cv_path_GREP+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 ac_path_GREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in grep ggrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5250 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5251 # Check for GNU ac_path_GREP and select it if it is found.
5252 # Check for GNU $ac_path_GREP
5253 case `"$ac_path_GREP" --version 2>&1` in
5254 *GNU*)
5255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5256 *)
5257 ac_count=0
5258 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5259 while :
5260 do
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 echo 'GREP' >> "conftest.nl"
5265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 ac_count=`expr $ac_count + 1`
5268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_GREP="$ac_path_GREP"
5271 ac_path_GREP_max=$ac_count
5272 fi
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5278
5279
5280 $ac_path_GREP_found && break 3
5281 done
5282 done
5283
5284 done
5285 IFS=$as_save_IFS
5286
5287
5288 fi
5289
5290 GREP="$ac_cv_path_GREP"
5291 if test -z "$GREP"; then
5292 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5293 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5294 { (exit 1); exit 1; }; }
5295 fi
5296
5297 else
5298 ac_cv_path_GREP=$GREP
5299 fi
5300
5301
5302 fi
5303 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5304 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5305 GREP="$ac_cv_path_GREP"
5306
5307
5308 { echo "$as_me:$LINENO: checking for egrep" >&5
5309 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5310 if test "${ac_cv_path_EGREP+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5314 then ac_cv_path_EGREP="$GREP -E"
5315 else
5316 # Extract the first word of "egrep" to use in msg output
5317 if test -z "$EGREP"; then
5318 set dummy egrep; ac_prog_name=$2
5319 if test "${ac_cv_path_EGREP+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 ac_path_EGREP_found=false
5323 # Loop through the user's path and test for each of PROGNAME-LIST
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5326 do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_prog in egrep; do
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5332 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5333 # Check for GNU ac_path_EGREP and select it if it is found.
5334 # Check for GNU $ac_path_EGREP
5335 case `"$ac_path_EGREP" --version 2>&1` in
5336 *GNU*)
5337 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5338 *)
5339 ac_count=0
5340 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5341 while :
5342 do
5343 cat "conftest.in" "conftest.in" >"conftest.tmp"
5344 mv "conftest.tmp" "conftest.in"
5345 cp "conftest.in" "conftest.nl"
5346 echo 'EGREP' >> "conftest.nl"
5347 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349 ac_count=`expr $ac_count + 1`
5350 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5351 # Best one so far, save it but keep looking for a better one
5352 ac_cv_path_EGREP="$ac_path_EGREP"
5353 ac_path_EGREP_max=$ac_count
5354 fi
5355 # 10*(2^10) chars as input seems more than enough
5356 test $ac_count -gt 10 && break
5357 done
5358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359 esac
5360
5361
5362 $ac_path_EGREP_found && break 3
5363 done
5364 done
5365
5366 done
5367 IFS=$as_save_IFS
5368
5369
5370 fi
5371
5372 EGREP="$ac_cv_path_EGREP"
5373 if test -z "$EGREP"; then
5374 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5375 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5376 { (exit 1); exit 1; }; }
5377 fi
5378
5379 else
5380 ac_cv_path_EGREP=$EGREP
5381 fi
5382
5383
5384 fi
5385 fi
5386 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5387 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5388 EGREP="$ac_cv_path_EGREP"
5389
5390
5391 if test $ac_cv_c_compiler_gnu = yes; then
5392 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5393 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5394 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397 ac_pattern="Autoconf.*'x'"
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 #include <sgtty.h>
5405 Autoconf TIOCGETP
5406 _ACEOF
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5409 ac_cv_prog_gcc_traditional=yes
5410 else
5411 ac_cv_prog_gcc_traditional=no
5412 fi
5413 rm -f conftest*
5414
5415
5416 if test $ac_cv_prog_gcc_traditional = no; then
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <termio.h>
5424 Autoconf TCGETA
5425 _ACEOF
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5428 ac_cv_prog_gcc_traditional=yes
5429 fi
5430 rm -f conftest*
5431
5432 fi
5433 fi
5434 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5435 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5436 if test $ac_cv_prog_gcc_traditional = yes; then
5437 CC="$CC -traditional"
5438 fi
5439 fi
5440
5441 # Extract the first word of "gmake", so it can be a program name with args.
5442 set dummy gmake; ac_word=$2
5443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5445 if test "${ac_cv_prog_MAKER+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448 if test -n "$MAKER"; then
5449 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_MAKER="gmake"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462 done
5463 done
5464 IFS=$as_save_IFS
5465
5466 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5467 fi
5468 fi
5469 MAKER=$ac_cv_prog_MAKER
5470 if test -n "$MAKER"; then
5471 { echo "$as_me:$LINENO: result: $MAKER" >&5
5472 echo "${ECHO_T}$MAKER" >&6; }
5473 else
5474 { echo "$as_me:$LINENO: result: no" >&5
5475 echo "${ECHO_T}no" >&6; }
5476 fi
5477
5478
5479
5480 case $target in
5481 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5482 ANSI_SRC=""
5483 ;;
5484 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5485 ANSI_SRC=""
5486 ;;
5487 *-solaris*)
5488 EXTRA_DEFINE="-D__SOLARIS__"
5489 ANSI_SRC="-fno-builtin"
5490 ;;
5491 *-cygwin)
5492 ANSI_SRC="-fno-builtin"
5493 ;;
5494 *-linux*)
5495 EXTRA_DEFINE="-D_GNU_SOURCE"
5496 ANSI_SRC=""
5497 ;;
5498 *)
5499 ANSI_SRC=""
5500 ;;
5501 esac
5502 CFLAGS="$CFLAGS $EXTRA_DEFINE"
5503
5504
5505 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5506 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5507 if test "${ac_cv_lib_socket_socket+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 ac_check_lib_save_LIBS=$LIBS
5511 LIBS="-lsocket $LIBS"
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518
5519 /* Override any GCC internal prototype to avoid an error.
5520 Use char because int might match the return type of a GCC
5521 builtin and then its argument prototype would still apply. */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 char socket ();
5526 int
5527 main ()
5528 {
5529 return socket ();
5530 ;
5531 return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (ac_try="$ac_link"
5536 case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_link") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5549 { (case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_try") 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; } &&
5558 { ac_try='test -s conftest$ac_exeext'
5559 { (case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_try") 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_lib_socket_socket=yes
5569 else
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5572
5573 ac_cv_lib_socket_socket=no
5574 fi
5575
5576 rm -f core conftest.err conftest.$ac_objext \
5577 conftest$ac_exeext conftest.$ac_ext
5578 LIBS=$ac_check_lib_save_LIBS
5579 fi
5580 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5581 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5582 if test $ac_cv_lib_socket_socket = yes; then
5583 cat >>confdefs.h <<_ACEOF
5584 #define HAVE_LIBSOCKET 1
5585 _ACEOF
5586
5587 LIBS="-lsocket $LIBS"
5588
5589 fi
5590
5591
5592 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5593 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5594 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 ac_check_lib_save_LIBS=$LIBS
5598 LIBS="-lnsl $LIBS"
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605
5606 /* Override any GCC internal prototype to avoid an error.
5607 Use char because int might match the return type of a GCC
5608 builtin and then its argument prototype would still apply. */
5609 #ifdef __cplusplus
5610 extern "C"
5611 #endif
5612 char gethostbyname ();
5613 int
5614 main ()
5615 {
5616 return gethostbyname ();
5617 ;
5618 return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_link") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest$ac_exeext'
5646 { (case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_cv_lib_nsl_gethostbyname=yes
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_cv_lib_nsl_gethostbyname=no
5661 fi
5662
5663 rm -f core conftest.err conftest.$ac_objext \
5664 conftest$ac_exeext conftest.$ac_ext
5665 LIBS=$ac_check_lib_save_LIBS
5666 fi
5667 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5668 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5669 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5670 cat >>confdefs.h <<_ACEOF
5671 #define HAVE_LIBNSL 1
5672 _ACEOF
5673
5674 LIBS="-lnsl $LIBS"
5675
5676 fi
5677
5678
5679 { echo "$as_me:$LINENO: checking for main in -lm" >&5
5680 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
5681 if test "${ac_cv_lib_m_main+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 ac_check_lib_save_LIBS=$LIBS
5685 LIBS="-lm $LIBS"
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692
5693
5694 int
5695 main ()
5696 {
5697 return main ();
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (ac_try="$ac_link"
5704 case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_link") 2>conftest.er1
5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
5716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5717 { (case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_try") 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest$ac_exeext'
5727 { (case "(($ac_try" in
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5730 esac
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_try") 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_lib_m_main=yes
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_cv_lib_m_main=no
5742 fi
5743
5744 rm -f core conftest.err conftest.$ac_objext \
5745 conftest$ac_exeext conftest.$ac_ext
5746 LIBS=$ac_check_lib_save_LIBS
5747 fi
5748 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5749 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
5750 if test $ac_cv_lib_m_main = yes; then
5751 cat >>confdefs.h <<_ACEOF
5752 #define HAVE_LIBM 1
5753 _ACEOF
5754
5755 LIBS="-lm $LIBS"
5756
5757 fi
5758
5759
5760 { echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5761 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
5762 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 ac_check_lib_save_LIBS=$LIBS
5766 LIBS="-lGeoIP $LIBS"
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773
5774 /* Override any GCC internal prototype to avoid an error.
5775 Use char because int might match the return type of a GCC
5776 builtin and then its argument prototype would still apply. */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 char GeoIP_open ();
5781 int
5782 main ()
5783 {
5784 return GeoIP_open ();
5785 ;
5786 return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (ac_try="$ac_link"
5791 case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_link") 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest$ac_exeext'
5814 { (case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_try") 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_cv_lib_GeoIP_GeoIP_open=yes
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_cv_lib_GeoIP_GeoIP_open=no
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5833 LIBS=$ac_check_lib_save_LIBS
5834 fi
5835 { echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5836 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
5837 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5838 cat >>confdefs.h <<_ACEOF
5839 #define HAVE_LIBGEOIP 1
5840 _ACEOF
5841
5842 LIBS="-lGeoIP $LIBS"
5843
5844 fi
5845
5846
5847 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5849 if test "${ac_cv_header_stdc+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 #include <stdlib.h>
5859 #include <stdarg.h>
5860 #include <string.h>
5861 #include <float.h>
5862
5863 int
5864 main ()
5865 {
5866
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_header_stdc=yes
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_header_stdc=no
5911 fi
5912
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914
5915 if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #include <string.h>
5924
5925 _ACEOF
5926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "memchr" >/dev/null 2>&1; then
5928 :
5929 else
5930 ac_cv_header_stdc=no
5931 fi
5932 rm -f conftest*
5933
5934 fi
5935
5936 if test $ac_cv_header_stdc = yes; then
5937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <stdlib.h>
5945
5946 _ACEOF
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "free" >/dev/null 2>&1; then
5949 :
5950 else
5951 ac_cv_header_stdc=no
5952 fi
5953 rm -f conftest*
5954
5955 fi
5956
5957 if test $ac_cv_header_stdc = yes; then
5958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5959 if test "$cross_compiling" = yes; then
5960 :
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <ctype.h>
5969 #include <stdlib.h>
5970 #if ((' ' & 0x0FF) == 0x020)
5971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5973 #else
5974 # define ISLOWER(c) \
5975 (('a' <= (c) && (c) <= 'i') \
5976 || ('j' <= (c) && (c) <= 'r') \
5977 || ('s' <= (c) && (c) <= 'z'))
5978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5979 #endif
5980
5981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5982 int
5983 main ()
5984 {
5985 int i;
5986 for (i = 0; i < 256; i++)
5987 if (XOR (islower (i), ISLOWER (i))
5988 || toupper (i) != TOUPPER (i))
5989 return 2;
5990 return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 :
6014 else
6015 echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 ( exit $ac_status )
6020 ac_cv_header_stdc=no
6021 fi
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 fi
6024
6025
6026 fi
6027 fi
6028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6030 if test $ac_cv_header_stdc = yes; then
6031
6032 cat >>confdefs.h <<\_ACEOF
6033 #define STDC_HEADERS 1
6034 _ACEOF
6035
6036 fi
6037
6038
6039 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6040 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6041 if test "${ac_cv_header_time+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #include <sys/types.h>
6051 #include <sys/time.h>
6052 #include <time.h>
6053
6054 int
6055 main ()
6056 {
6057 if ((struct tm *) 0)
6058 return 0;
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6065 case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_try") 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_header_time=yes
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_header_time=no
6103 fi
6104
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6108 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6109 if test $ac_cv_header_time = yes; then
6110
6111 cat >>confdefs.h <<\_ACEOF
6112 #define TIME_WITH_SYS_TIME 1
6113 _ACEOF
6114
6115 fi
6116
6117 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6118 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6119 if test "${ac_cv_struct_tm+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <sys/types.h>
6129 #include <time.h>
6130
6131 int
6132 main ()
6133 {
6134 struct tm *tp; tp->tm_sec;
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_compile") 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167 esac
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_try") 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_struct_tm=time.h
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 ac_cv_struct_tm=sys/time.h
6179 fi
6180
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 fi
6183 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6184 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6185 if test $ac_cv_struct_tm = sys/time.h; then
6186
6187 cat >>confdefs.h <<\_ACEOF
6188 #define TM_IN_SYS_TIME 1
6189 _ACEOF
6190
6191 fi
6192
6193
6194 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6205 inttypes.h stdint.h unistd.h
6206 do
6207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 $ac_includes_default
6220
6221 #include <$ac_header>
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_try") 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 eval "$as_ac_Header=yes"
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 eval "$as_ac_Header=no"
6263 fi
6264
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266 fi
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6271 cat >>confdefs.h <<_ACEOF
6272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273 _ACEOF
6274
6275 fi
6276
6277 done
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 for ac_header in GeoIP.h GeoIPCity.h fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
6303 do
6304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 fi
6311 ac_res=`eval echo '${'$as_ac_Header'}'`
6312 { echo "$as_me:$LINENO: result: $ac_res" >&5
6313 echo "${ECHO_T}$ac_res" >&6; }
6314 else
6315 # Is the header compilable?
6316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 $ac_includes_default
6325 #include <$ac_header>
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6329 case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332 esac
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compile") 2>conftest.er1
6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6342 { (case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345 esac
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_try") 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try='test -s conftest.$ac_objext'
6352 { (case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355 esac
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_try") 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_header_compiler=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 ac_header_compiler=no
6367 fi
6368
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6371 echo "${ECHO_T}$ac_header_compiler" >&6; }
6372
6373 # Is the header present?
6374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <$ac_header>
6383 _ACEOF
6384 if { (ac_try="$ac_cpp conftest.$ac_ext"
6385 case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null; then
6397 if test -s conftest.err; then
6398 ac_cpp_err=$ac_c_preproc_warn_flag
6399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6400 else
6401 ac_cpp_err=
6402 fi
6403 else
6404 ac_cpp_err=yes
6405 fi
6406 if test -z "$ac_cpp_err"; then
6407 ac_header_preproc=yes
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 ac_header_preproc=no
6413 fi
6414
6415 rm -f conftest.err conftest.$ac_ext
6416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6417 echo "${ECHO_T}$ac_header_preproc" >&6; }
6418
6419 # So? What about this header?
6420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6421 yes:no: )
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6426 ac_header_preproc=yes
6427 ;;
6428 no:yes:* )
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6441 ( cat <<\_ASBOX
6442 ## -------------------------------------------------- ##
6443 ## Report this to evilnet-devel@lists.sourceforge.net ##
6444 ## -------------------------------------------------- ##
6445 _ASBOX
6446 ) | sed "s/^/$as_me: WARNING: /" >&2
6447 ;;
6448 esac
6449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 eval "$as_ac_Header=\$ac_header_preproc"
6455 fi
6456 ac_res=`eval echo '${'$as_ac_Header'}'`
6457 { echo "$as_me:$LINENO: result: $ac_res" >&5
6458 echo "${ECHO_T}$ac_res" >&6; }
6459
6460 fi
6461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6462 cat >>confdefs.h <<_ACEOF
6463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6464 _ACEOF
6465
6466 fi
6467
6468 done
6469
6470
6471 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6472 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
6473 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476 cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h. */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 #include <sys/types.h>
6483 #include <sys/socket.h>
6484
6485 int
6486 main ()
6487 {
6488 static struct sockaddr ac_aggr;
6489 if (ac_aggr.sa_len)
6490 return 0;
6491 ;
6492 return 0;
6493 }
6494 _ACEOF
6495 rm -f conftest.$ac_objext
6496 if { (ac_try="$ac_compile"
6497 case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500 esac
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_compile") 2>conftest.er1
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6510 { (case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_try") 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
6520 { (case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_try") 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 ac_cv_member_struct_sockaddr_sa_len=yes
6530 else
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6533
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <sys/types.h>
6541 #include <sys/socket.h>
6542
6543 int
6544 main ()
6545 {
6546 static struct sockaddr ac_aggr;
6547 if (sizeof ac_aggr.sa_len)
6548 return 0;
6549 ;
6550 return 0;
6551 }
6552 _ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (ac_try="$ac_compile"
6555 case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558 esac
6559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6568 { (case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_try") 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; } &&
6577 { ac_try='test -s conftest.$ac_objext'
6578 { (case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_try") 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 ac_cv_member_struct_sockaddr_sa_len=yes
6588 else
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 ac_cv_member_struct_sockaddr_sa_len=no
6593 fi
6594
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 fi
6600 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6601 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
6602 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
6603
6604 cat >>confdefs.h <<\_ACEOF
6605 #define HAVE_SOCKADDR_SA_LEN
6606 _ACEOF
6607
6608 fi
6609
6610 { echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6611 echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
6612 if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <sys/types.h>
6622 #include <sys/socket.h>
6623 #include <netdb.h>
6624
6625 int
6626 main ()
6627 {
6628 static struct addrinfo ac_aggr;
6629 if (ac_aggr.ai_flags)
6630 return 0;
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6650 { (case "(($ac_try" in
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6653 esac
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_try") 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_try") 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_member_struct_addrinfo_ai_flags=yes
6670 else
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <sys/types.h>
6681 #include <sys/socket.h>
6682 #include <netdb.h>
6683
6684 int
6685 main ()
6686 {
6687 static struct addrinfo ac_aggr;
6688 if (sizeof ac_aggr.ai_flags)
6689 return 0;
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6696 case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_try") 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_member_struct_addrinfo_ai_flags=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 ac_cv_member_struct_addrinfo_ai_flags=no
6734 fi
6735
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 fi
6738
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740 fi
6741 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6742 echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
6743 if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6744
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_STRUCT_ADDRINFO
6747 _ACEOF
6748
6749 fi
6750
6751
6752
6753 for ac_func in gettimeofday
6754 do
6755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h. */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6769 #define $ac_func innocuous_$ac_func
6770
6771 /* System header to define __stub macros and hopefully few prototypes,
6772 which can conflict with char $ac_func (); below.
6773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6774 <limits.h> exists even on freestanding compilers. */
6775
6776 #ifdef __STDC__
6777 # include <limits.h>
6778 #else
6779 # include <assert.h>
6780 #endif
6781
6782 #undef $ac_func
6783
6784 /* Override any GCC internal prototype to avoid an error.
6785 Use char because int might match the return type of a GCC
6786 builtin and then its argument prototype would still apply. */
6787 #ifdef __cplusplus
6788 extern "C"
6789 #endif
6790 char $ac_func ();
6791 /* The GNU C library defines this for functions which it implements
6792 to always fail with ENOSYS. Some functions are actually named
6793 something starting with __ and the normal name is an alias. */
6794 #if defined __stub_$ac_func || defined __stub___$ac_func
6795 choke me
6796 #endif
6797
6798 int
6799 main ()
6800 {
6801 return $ac_func ();
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext conftest$ac_exeext
6807 if { (ac_try="$ac_link"
6808 case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6811 esac
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 (eval "$ac_link") 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6821 { (case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824 esac
6825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6826 (eval "$ac_try") 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest$ac_exeext'
6831 { (case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6834 esac
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_try") 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 eval "$as_ac_var=yes"
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 eval "$as_ac_var=no"
6846 fi
6847
6848 rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
6850 fi
6851 ac_res=`eval echo '${'$as_ac_var'}'`
6852 { echo "$as_me:$LINENO: result: $ac_res" >&5
6853 echo "${ECHO_T}$ac_res" >&6; }
6854 if test `eval echo '${'$as_ac_var'}'` = yes; then
6855 cat >>confdefs.h <<_ACEOF
6856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6857 _ACEOF
6858
6859 fi
6860 done
6861
6862 if test $ac_cv_func_gettimeofday = no; then
6863
6864 for ac_func in ftime
6865 do
6866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6880 #define $ac_func innocuous_$ac_func
6881
6882 /* System header to define __stub macros and hopefully few prototypes,
6883 which can conflict with char $ac_func (); below.
6884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6885 <limits.h> exists even on freestanding compilers. */
6886
6887 #ifdef __STDC__
6888 # include <limits.h>
6889 #else
6890 # include <assert.h>
6891 #endif
6892
6893 #undef $ac_func
6894
6895 /* Override any GCC internal prototype to avoid an error.
6896 Use char because int might match the return type of a GCC
6897 builtin and then its argument prototype would still apply. */
6898 #ifdef __cplusplus
6899 extern "C"
6900 #endif
6901 char $ac_func ();
6902 /* The GNU C library defines this for functions which it implements
6903 to always fail with ENOSYS. Some functions are actually named
6904 something starting with __ and the normal name is an alias. */
6905 #if defined __stub_$ac_func || defined __stub___$ac_func
6906 choke me
6907 #endif
6908
6909 int
6910 main ()
6911 {
6912 return $ac_func ();
6913 ;
6914 return 0;
6915 }
6916 _ACEOF
6917 rm -f conftest.$ac_objext conftest$ac_exeext
6918 if { (ac_try="$ac_link"
6919 case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922 esac
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_link") 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6932 { (case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935 esac
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937 (eval "$ac_try") 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest$ac_exeext'
6942 { (case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945 esac
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_try") 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 eval "$as_ac_var=yes"
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 eval "$as_ac_var=no"
6957 fi
6958
6959 rm -f core conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6961 fi
6962 ac_res=`eval echo '${'$as_ac_var'}'`
6963 { echo "$as_me:$LINENO: result: $ac_res" >&5
6964 echo "${ECHO_T}$ac_res" >&6; }
6965 if test `eval echo '${'$as_ac_var'}'` = yes; then
6966 cat >>confdefs.h <<_ACEOF
6967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6968 _ACEOF
6969
6970 else
6971 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6972 echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
6973 { (exit 1); exit 1; }; }
6974 fi
6975 done
6976
6977 fi
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
6994 do
6995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7009 #define $ac_func innocuous_$ac_func
7010
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func (); below.
7013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 <limits.h> exists even on freestanding compilers. */
7015
7016 #ifdef __STDC__
7017 # include <limits.h>
7018 #else
7019 # include <assert.h>
7020 #endif
7021
7022 #undef $ac_func
7023
7024 /* Override any GCC internal prototype to avoid an error.
7025 Use char because int might match the return type of a GCC
7026 builtin and then its argument prototype would still apply. */
7027 #ifdef __cplusplus
7028 extern "C"
7029 #endif
7030 char $ac_func ();
7031 /* The GNU C library defines this for functions which it implements
7032 to always fail with ENOSYS. Some functions are actually named
7033 something starting with __ and the normal name is an alias. */
7034 #if defined __stub_$ac_func || defined __stub___$ac_func
7035 choke me
7036 #endif
7037
7038 int
7039 main ()
7040 {
7041 return $ac_func ();
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 rm -f conftest.$ac_objext conftest$ac_exeext
7047 if { (ac_try="$ac_link"
7048 case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_link") 2>conftest.er1
7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7061 { (case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_try") 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest$ac_exeext'
7071 { (case "(($ac_try" in
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7074 esac
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_try") 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 eval "$as_ac_var=yes"
7081 else
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7084
7085 eval "$as_ac_var=no"
7086 fi
7087
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 fi
7091 ac_res=`eval echo '${'$as_ac_var'}'`
7092 { echo "$as_me:$LINENO: result: $ac_res" >&5
7093 echo "${ECHO_T}$ac_res" >&6; }
7094 if test `eval echo '${'$as_ac_var'}'` = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7097 _ACEOF
7098
7099 fi
7100 done
7101
7102
7103
7104
7105
7106
7107
7108
7109 for ac_func in select socket strcspn strspn strtod strtoul
7110 do
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7125 #define $ac_func innocuous_$ac_func
7126
7127 /* System header to define __stub macros and hopefully few prototypes,
7128 which can conflict with char $ac_func (); below.
7129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130 <limits.h> exists even on freestanding compilers. */
7131
7132 #ifdef __STDC__
7133 # include <limits.h>
7134 #else
7135 # include <assert.h>
7136 #endif
7137
7138 #undef $ac_func
7139
7140 /* Override any GCC internal prototype to avoid an error.
7141 Use char because int might match the return type of a GCC
7142 builtin and then its argument prototype would still apply. */
7143 #ifdef __cplusplus
7144 extern "C"
7145 #endif
7146 char $ac_func ();
7147 /* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
7150 #if defined __stub_$ac_func || defined __stub___$ac_func
7151 choke me
7152 #endif
7153
7154 int
7155 main ()
7156 {
7157 return $ac_func ();
7158 ;
7159 return 0;
7160 }
7161 _ACEOF
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (ac_try="$ac_link"
7164 case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167 esac
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_link") 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7177 { (case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180 esac
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_try") 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest$ac_exeext'
7187 { (case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_try") 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 eval "$as_ac_var=yes"
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 eval "$as_ac_var=no"
7202 fi
7203
7204 rm -f core conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7206 fi
7207 ac_res=`eval echo '${'$as_ac_var'}'`
7208 { echo "$as_me:$LINENO: result: $ac_res" >&5
7209 echo "${ECHO_T}$ac_res" >&6; }
7210 if test `eval echo '${'$as_ac_var'}'` = yes; then
7211 cat >>confdefs.h <<_ACEOF
7212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7213 _ACEOF
7214
7215 else
7216 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
7217 echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
7218 { (exit 1); exit 1; }; }
7219 fi
7220 done
7221
7222
7223 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7224 # for constant arguments. Useless!
7225 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7226 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7227 if test "${ac_cv_working_alloca_h+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h. */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 #include <alloca.h>
7237 int
7238 main ()
7239 {
7240 char *p = (char *) alloca (2 * sizeof (int));
7241 if (p) return 0;
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7248 case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251 esac
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_link") 2>conftest.er1
7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7261 { (case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_try") 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest$ac_exeext'
7271 { (case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_try") 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_cv_working_alloca_h=yes
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285 ac_cv_working_alloca_h=no
7286 fi
7287
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 fi
7291 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7292 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7293 if test $ac_cv_working_alloca_h = yes; then
7294
7295 cat >>confdefs.h <<\_ACEOF
7296 #define HAVE_ALLOCA_H 1
7297 _ACEOF
7298
7299 fi
7300
7301 { echo "$as_me:$LINENO: checking for alloca" >&5
7302 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7303 if test "${ac_cv_func_alloca_works+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h. */
7308 _ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 #ifdef __GNUC__
7313 # define alloca __builtin_alloca
7314 #else
7315 # ifdef _MSC_VER
7316 # include <malloc.h>
7317 # define alloca _alloca
7318 # else
7319 # if HAVE_ALLOCA_H
7320 # include <alloca.h>
7321 # else
7322 # ifdef _AIX
7323 #pragma alloca
7324 # else
7325 # ifndef alloca /* predefined by HP cc +Olibcalls */
7326 char *alloca ();
7327 # endif
7328 # endif
7329 # endif
7330 # endif
7331 #endif
7332
7333 int
7334 main ()
7335 {
7336 char *p = (char *) alloca (1);
7337 if (p) return 0;
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (ac_try="$ac_link"
7344 case "(($ac_try" in
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_link") 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } &&
7356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7357 { (case "(($ac_try" in
7358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7359 *) ac_try_echo=$ac_try;;
7360 esac
7361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7362 (eval "$ac_try") 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest$ac_exeext'
7367 { (case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370 esac
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_try") 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7376 ac_cv_func_alloca_works=yes
7377 else
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381 ac_cv_func_alloca_works=no
7382 fi
7383
7384 rm -f core conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
7386 fi
7387 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7388 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7389
7390 if test $ac_cv_func_alloca_works = yes; then
7391
7392 cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_ALLOCA 1
7394 _ACEOF
7395
7396 else
7397 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7398 # that cause trouble. Some versions do not even contain alloca or
7399 # contain a buggy version. If you still want to use their alloca,
7400 # use ar to extract alloca.o from them instead of compiling alloca.c.
7401
7402 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7403
7404 cat >>confdefs.h <<\_ACEOF
7405 #define C_ALLOCA 1
7406 _ACEOF
7407
7408
7409 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7410 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7411 if test "${ac_cv_os_cray+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h. */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 #if defined CRAY && ! defined CRAY2
7421 webecray
7422 #else
7423 wenotbecray
7424 #endif
7425
7426 _ACEOF
7427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7428 $EGREP "webecray" >/dev/null 2>&1; then
7429 ac_cv_os_cray=yes
7430 else
7431 ac_cv_os_cray=no
7432 fi
7433 rm -f conftest*
7434
7435 fi
7436 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7437 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7438 if test $ac_cv_os_cray = yes; then
7439 for ac_func in _getb67 GETB67 getb67; do
7440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h. */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7454 #define $ac_func innocuous_$ac_func
7455
7456 /* System header to define __stub macros and hopefully few prototypes,
7457 which can conflict with char $ac_func (); below.
7458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7459 <limits.h> exists even on freestanding compilers. */
7460
7461 #ifdef __STDC__
7462 # include <limits.h>
7463 #else
7464 # include <assert.h>
7465 #endif
7466
7467 #undef $ac_func
7468
7469 /* Override any GCC internal prototype to avoid an error.
7470 Use char because int might match the return type of a GCC
7471 builtin and then its argument prototype would still apply. */
7472 #ifdef __cplusplus
7473 extern "C"
7474 #endif
7475 char $ac_func ();
7476 /* The GNU C library defines this for functions which it implements
7477 to always fail with ENOSYS. Some functions are actually named
7478 something starting with __ and the normal name is an alias. */
7479 #if defined __stub_$ac_func || defined __stub___$ac_func
7480 choke me
7481 #endif
7482
7483 int
7484 main ()
7485 {
7486 return $ac_func ();
7487 ;
7488 return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext conftest$ac_exeext
7492 if { (ac_try="$ac_link"
7493 case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_link") 2>conftest.er1
7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } &&
7505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7506 { (case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509 esac
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_try") 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest$ac_exeext'
7516 { (case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_try") 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 eval "$as_ac_var=yes"
7526 else
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 eval "$as_ac_var=no"
7531 fi
7532
7533 rm -f core conftest.err conftest.$ac_objext \
7534 conftest$ac_exeext conftest.$ac_ext
7535 fi
7536 ac_res=`eval echo '${'$as_ac_var'}'`
7537 { echo "$as_me:$LINENO: result: $ac_res" >&5
7538 echo "${ECHO_T}$ac_res" >&6; }
7539 if test `eval echo '${'$as_ac_var'}'` = yes; then
7540
7541 cat >>confdefs.h <<_ACEOF
7542 #define CRAY_STACKSEG_END $ac_func
7543 _ACEOF
7544
7545 break
7546 fi
7547
7548 done
7549 fi
7550
7551 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7552 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7553 if test "${ac_cv_c_stack_direction+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 if test "$cross_compiling" = yes; then
7557 ac_cv_c_stack_direction=0
7558 else
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 $ac_includes_default
7566 int
7567 find_stack_direction ()
7568 {
7569 static char *addr = 0;
7570 auto char dummy;
7571 if (addr == 0)
7572 {
7573 addr = &dummy;
7574 return find_stack_direction ();
7575 }
7576 else
7577 return (&dummy > addr) ? 1 : -1;
7578 }
7579
7580 int
7581 main ()
7582 {
7583 return find_stack_direction () < 0;
7584 }
7585 _ACEOF
7586 rm -f conftest$ac_exeext
7587 if { (ac_try="$ac_link"
7588 case "(($ac_try" in
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591 esac
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_link") 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7597 { (case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7600 esac
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_try") 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_c_stack_direction=1
7607 else
7608 echo "$as_me: program exited with status $ac_status" >&5
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7611
7612 ( exit $ac_status )
7613 ac_cv_c_stack_direction=-1
7614 fi
7615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7616 fi
7617
7618
7619 fi
7620 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7621 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7622
7623 cat >>confdefs.h <<_ACEOF
7624 #define STACK_DIRECTION $ac_cv_c_stack_direction
7625 _ACEOF
7626
7627
7628 fi
7629
7630
7631
7632 for ac_header in stdlib.h unistd.h
7633 do
7634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 fi
7641 ac_res=`eval echo '${'$as_ac_Header'}'`
7642 { echo "$as_me:$LINENO: result: $ac_res" >&5
7643 echo "${ECHO_T}$ac_res" >&6; }
7644 else
7645 # Is the header compilable?
7646 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7648 cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h. */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7655 #include <$ac_header>
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7659 case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7672 { (case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675 esac
7676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_try") 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest.$ac_objext'
7682 { (case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685 esac
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_try") 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_header_compiler=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_header_compiler=no
7697 fi
7698
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7701 echo "${ECHO_T}$ac_header_compiler" >&6; }
7702
7703 # Is the header present?
7704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 #include <$ac_header>
7713 _ACEOF
7714 if { (ac_try="$ac_cpp conftest.$ac_ext"
7715 case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718 esac
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } >/dev/null; then
7727 if test -s conftest.err; then
7728 ac_cpp_err=$ac_c_preproc_warn_flag
7729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7730 else
7731 ac_cpp_err=
7732 fi
7733 else
7734 ac_cpp_err=yes
7735 fi
7736 if test -z "$ac_cpp_err"; then
7737 ac_header_preproc=yes
7738 else
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7741
7742 ac_header_preproc=no
7743 fi
7744
7745 rm -f conftest.err conftest.$ac_ext
7746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7747 echo "${ECHO_T}$ac_header_preproc" >&6; }
7748
7749 # So? What about this header?
7750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7751 yes:no: )
7752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7756 ac_header_preproc=yes
7757 ;;
7758 no:yes:* )
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7771 ( cat <<\_ASBOX
7772 ## -------------------------------------------------- ##
7773 ## Report this to evilnet-devel@lists.sourceforge.net ##
7774 ## -------------------------------------------------- ##
7775 _ASBOX
7776 ) | sed "s/^/$as_me: WARNING: /" >&2
7777 ;;
7778 esac
7779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 eval "$as_ac_Header=\$ac_header_preproc"
7785 fi
7786 ac_res=`eval echo '${'$as_ac_Header'}'`
7787 { echo "$as_me:$LINENO: result: $ac_res" >&5
7788 echo "${ECHO_T}$ac_res" >&6; }
7789
7790 fi
7791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7792 cat >>confdefs.h <<_ACEOF
7793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7794 _ACEOF
7795
7796 fi
7797
7798 done
7799
7800
7801 for ac_func in getpagesize
7802 do
7803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7817 #define $ac_func innocuous_$ac_func
7818
7819 /* System header to define __stub macros and hopefully few prototypes,
7820 which can conflict with char $ac_func (); below.
7821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7822 <limits.h> exists even on freestanding compilers. */
7823
7824 #ifdef __STDC__
7825 # include <limits.h>
7826 #else
7827 # include <assert.h>
7828 #endif
7829
7830 #undef $ac_func
7831
7832 /* Override any GCC internal prototype to avoid an error.
7833 Use char because int might match the return type of a GCC
7834 builtin and then its argument prototype would still apply. */
7835 #ifdef __cplusplus
7836 extern "C"
7837 #endif
7838 char $ac_func ();
7839 /* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842 #if defined __stub_$ac_func || defined __stub___$ac_func
7843 choke me
7844 #endif
7845
7846 int
7847 main ()
7848 {
7849 return $ac_func ();
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (ac_try="$ac_link"
7856 case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_link") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882 esac
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_try") 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 eval "$as_ac_var=yes"
7889 else
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 eval "$as_ac_var=no"
7894 fi
7895
7896 rm -f core conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7898 fi
7899 ac_res=`eval echo '${'$as_ac_var'}'`
7900 { echo "$as_me:$LINENO: result: $ac_res" >&5
7901 echo "${ECHO_T}$ac_res" >&6; }
7902 if test `eval echo '${'$as_ac_var'}'` = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7905 _ACEOF
7906
7907 fi
7908 done
7909
7910 { echo "$as_me:$LINENO: checking for working mmap" >&5
7911 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7912 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 if test "$cross_compiling" = yes; then
7916 ac_cv_func_mmap_fixed_mapped=no
7917 else
7918 cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h. */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7925 /* malloc might have been renamed as rpl_malloc. */
7926 #undef malloc
7927
7928 /* Thanks to Mike Haertel and Jim Avera for this test.
7929 Here is a matrix of mmap possibilities:
7930 mmap private not fixed
7931 mmap private fixed at somewhere currently unmapped
7932 mmap private fixed at somewhere already mapped
7933 mmap shared not fixed
7934 mmap shared fixed at somewhere currently unmapped
7935 mmap shared fixed at somewhere already mapped
7936 For private mappings, we should verify that changes cannot be read()
7937 back from the file, nor mmap's back from the file at a different
7938 address. (There have been systems where private was not correctly
7939 implemented like the infamous i386 svr4.0, and systems where the
7940 VM page cache was not coherent with the file system buffer cache
7941 like early versions of FreeBSD and possibly contemporary NetBSD.)
7942 For shared mappings, we should conversely verify that changes get
7943 propagated back to all the places they're supposed to be.
7944
7945 Grep wants private fixed already mapped.
7946 The main things grep needs to know about mmap are:
7947 * does it exist and is it safe to write into the mmap'd area
7948 * how to use it (BSD variants) */
7949
7950 #include <fcntl.h>
7951 #include <sys/mman.h>
7952
7953 #if !STDC_HEADERS && !HAVE_STDLIB_H
7954 char *malloc ();
7955 #endif
7956
7957 /* This mess was copied from the GNU getpagesize.h. */
7958 #if !HAVE_GETPAGESIZE
7959 /* Assume that all systems that can run configure have sys/param.h. */
7960 # if !HAVE_SYS_PARAM_H
7961 # define HAVE_SYS_PARAM_H 1
7962 # endif
7963
7964 # ifdef _SC_PAGESIZE
7965 # define getpagesize() sysconf(_SC_PAGESIZE)
7966 # else /* no _SC_PAGESIZE */
7967 # if HAVE_SYS_PARAM_H
7968 # include <sys/param.h>
7969 # ifdef EXEC_PAGESIZE
7970 # define getpagesize() EXEC_PAGESIZE
7971 # else /* no EXEC_PAGESIZE */
7972 # ifdef NBPG
7973 # define getpagesize() NBPG * CLSIZE
7974 # ifndef CLSIZE
7975 # define CLSIZE 1
7976 # endif /* no CLSIZE */
7977 # else /* no NBPG */
7978 # ifdef NBPC
7979 # define getpagesize() NBPC
7980 # else /* no NBPC */
7981 # ifdef PAGESIZE
7982 # define getpagesize() PAGESIZE
7983 # endif /* PAGESIZE */
7984 # endif /* no NBPC */
7985 # endif /* no NBPG */
7986 # endif /* no EXEC_PAGESIZE */
7987 # else /* no HAVE_SYS_PARAM_H */
7988 # define getpagesize() 8192 /* punt totally */
7989 # endif /* no HAVE_SYS_PARAM_H */
7990 # endif /* no _SC_PAGESIZE */
7991
7992 #endif /* no HAVE_GETPAGESIZE */
7993
7994 int
7995 main ()
7996 {
7997 char *data, *data2, *data3;
7998 int i, pagesize;
7999 int fd;
8000
8001 pagesize = getpagesize ();
8002
8003 /* First, make a file with some known garbage in it. */
8004 data = (char *) malloc (pagesize);
8005 if (!data)
8006 return 1;
8007 for (i = 0; i < pagesize; ++i)
8008 *(data + i) = rand ();
8009 umask (0);
8010 fd = creat ("conftest.mmap", 0600);
8011 if (fd < 0)
8012 return 1;
8013 if (write (fd, data, pagesize) != pagesize)
8014 return 1;
8015 close (fd);
8016
8017 /* Next, try to mmap the file at a fixed address which already has
8018 something else allocated at it. If we can, also make sure that
8019 we see the same garbage. */
8020 fd = open ("conftest.mmap", O_RDWR);
8021 if (fd < 0)
8022 return 1;
8023 data2 = (char *) malloc (2 * pagesize);
8024 if (!data2)
8025 return 1;
8026 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8027 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8029 return 1;
8030 for (i = 0; i < pagesize; ++i)
8031 if (*(data + i) != *(data2 + i))
8032 return 1;
8033
8034 /* Finally, make sure that changes to the mapped area do not
8035 percolate back to the file as seen by read(). (This is a bug on
8036 some variants of i386 svr4.0.) */
8037 for (i = 0; i < pagesize; ++i)
8038 *(data2 + i) = *(data2 + i) + 1;
8039 data3 = (char *) malloc (pagesize);
8040 if (!data3)
8041 return 1;
8042 if (read (fd, data3, pagesize) != pagesize)
8043 return 1;
8044 for (i = 0; i < pagesize; ++i)
8045 if (*(data + i) != *(data3 + i))
8046 return 1;
8047 close (fd);
8048 return 0;
8049 }
8050 _ACEOF
8051 rm -f conftest$ac_exeext
8052 if { (ac_try="$ac_link"
8053 case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_link") 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 ac_cv_func_mmap_fixed_mapped=yes
8072 else
8073 echo "$as_me: program exited with status $ac_status" >&5
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077 ( exit $ac_status )
8078 ac_cv_func_mmap_fixed_mapped=no
8079 fi
8080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8081 fi
8082
8083
8084 fi
8085 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8086 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8087 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8088
8089 cat >>confdefs.h <<\_ACEOF
8090 #define HAVE_MMAP 1
8091 _ACEOF
8092
8093 fi
8094 rm -f conftest.mmap
8095
8096
8097 { echo "$as_me:$LINENO: checking for sin_len" >&5
8098 echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
8099 if test "${ac_cv_sin_len+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h. */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 #include <sys/types.h>
8109 #include <netinet/in.h>
8110 int
8111 main ()
8112 {
8113 struct sockaddr_in *sin; sin->sin_len = 0;
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext
8119 if { (ac_try="$ac_compile"
8120 case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8123 esac
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_compile") 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133 { (case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_try") 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146 esac
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_try") 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_sin_len="yes"
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 ac_cv_sin_len="no"
8158 fi
8159
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 fi
8162 { echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
8163 echo "${ECHO_T}$ac_cv_sin_len" >&6; }
8164 if test $ac_cv_sin_len = yes ; then
8165
8166 cat >>confdefs.h <<\_ACEOF
8167 #define HAVE_SIN_LEN 1
8168 _ACEOF
8169
8170 fi
8171
8172 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8173 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8174 if test "${ac_cv_type_socklen_t+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 #include <sys/types.h>
8184 #include<sys/socket.h>
8185
8186 typedef socklen_t ac__type_new_;
8187 int
8188 main ()
8189 {
8190 if ((ac__type_new_ *) 0)
8191 return 0;
8192 if (sizeof (ac__type_new_))
8193 return 0;
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (ac_try="$ac_compile"
8200 case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_compile") 2>conftest.er1
8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216 esac
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_type_socklen_t=yes
8233 else
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8236
8237 ac_cv_type_socklen_t=no
8238 fi
8239
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 fi
8242 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8243 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8244 if test $ac_cv_type_socklen_t = yes; then
8245 :
8246 else
8247
8248 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8249 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
8250 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253
8254 curl_cv_socklen_t_equiv=
8255 for arg2 in "struct sockaddr" void ; do
8256 for t in int size_t unsigned long "unsigned long" ; do
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 #include <sys/types.h>
8264 #include <sys/socket.h>
8265 int getpeername (int $arg2 *, $t *);
8266 int
8267 main ()
8268 {
8269 $t len;
8270 getpeername(0, 0, &len);
8271 ;
8272 return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 curl_cv_socklen_t_equiv="$t"
8310 break
8311 else
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 done
8320 done
8321
8322 fi
8323
8324 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8325 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
8326
8327 cat >>confdefs.h <<_ACEOF
8328 #define socklen_t $curl_cv_socklen_t_equiv
8329 _ACEOF
8330
8331 fi
8332
8333
8334 OLD_CFLAGS=$CFLAGS
8335 CFLAGS="$CFLAGS -W -Wall -Werror"
8336
8337 { echo "$as_me:$LINENO: checking for time_t format" >&5
8338 echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
8339 if test "${ac_cv_fmt_time_t+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342
8343 ac_cv_fmt_time_t=no
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #include <sys/types.h>
8346 #include <stdio.h>
8347 void myfunc(void) {
8348 time_t test=0;
8349 printf("%li", test);
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (ac_try="$ac_compile"
8354 case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357 esac
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_try") 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_fmt_time_t="\"%li\""
8387 else
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391
8392 fi
8393
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 if test $ac_cv_fmt_time_t = no; then
8396 cat >conftest.$ac_ext <<_ACEOF
8397 #include <sys/types.h>
8398 #include <stdio.h>
8399 void myfunc(void) {
8400 time_t test=0;
8401 printf("%i", test);
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8406 case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8419 { (case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_try") 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest.$ac_objext'
8429 { (case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_try") 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_fmt_time_t="\"%i\""
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443
8444 fi
8445
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 if test $ac_cv_fmt_time_t = no; then
8449 { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
8450 Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
8451 echo "$as_me: error: Cannot detect format string for time_t
8452 Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
8453 { (exit 1); exit 1; }; }
8454 fi
8455
8456 fi
8457
8458
8459 cat >>confdefs.h <<_ACEOF
8460 #define FMT_TIME_T $ac_cv_fmt_time_t
8461 _ACEOF
8462
8463 { echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
8464 echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
8465
8466 { echo "$as_me:$LINENO: checking for va_copy" >&5
8467 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
8468 if test "${ac_cv_c_va_copy+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471 cat >conftest.$ac_ext <<_ACEOF
8472 /* confdefs.h. */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 #include <stdarg.h>
8478 int
8479 main ()
8480 {
8481 va_list ap1, ap2; va_copy(ap1, ap2);
8482 ;
8483 return 0;
8484 }
8485 _ACEOF
8486 rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (ac_try="$ac_link"
8488 case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_link") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_try") 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_cv_c_va_copy="yes"
8521 else
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 ac_cv_c_va_copy="no"
8526
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext \
8530 conftest$ac_exeext conftest.$ac_ext
8531 fi
8532 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8533 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
8534 if test "$ac_cv_c_va_copy" = "yes" ; then
8535
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_VA_COPY 1
8538 _ACEOF
8539
8540 fi
8541
8542 { echo "$as_me:$LINENO: checking for __va_copy" >&5
8543 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
8544 if test "${ac_cv_c___va_copy+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547 cat >conftest.$ac_ext <<_ACEOF
8548 /* confdefs.h. */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8553 #include <stdarg.h>
8554 int
8555 main ()
8556 {
8557 va_list ap1, ap2; __va_copy(ap1, ap2);
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577 { (case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_try") 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest$ac_exeext'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 ac_cv_c___va_copy="yes"
8597 else
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601 ac_cv_c___va_copy="no"
8602
8603 fi
8604
8605 rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8607 fi
8608 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8609 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
8610 if test "$ac_cv_c___va_copy" = "yes" ; then
8611
8612 cat >>confdefs.h <<\_ACEOF
8613 #define HAVE___VA_COPY 1
8614 _ACEOF
8615
8616 fi
8617
8618 CFLAGS=$OLD_CFLAGS
8619
8620 { echo "$as_me:$LINENO: checking which malloc to use" >&5
8621 echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
8622
8623 # Check whether --with-malloc was given.
8624 if test "${with_malloc+set}" = set; then
8625 withval=$with_malloc;
8626 else
8627 withval="system"
8628 fi
8629
8630 if test "x$withval" = "xsystem" ; then
8631 { echo "$as_me:$LINENO: result: system" >&5
8632 echo "${ECHO_T}system" >&6; }
8633
8634 cat >>confdefs.h <<\_ACEOF
8635 #define WITH_MALLOC_SYSTEM 1
8636 _ACEOF
8637
8638 x3_malloc="System"
8639 elif test "x$withval" = "xdmalloc" ; then
8640 { echo "$as_me:$LINENO: result: dmalloc" >&5
8641 echo "${ECHO_T}dmalloc" >&6; }
8642
8643 for ac_header in dmalloc.h
8644 do
8645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 fi
8652 ac_res=`eval echo '${'$as_ac_Header'}'`
8653 { echo "$as_me:$LINENO: result: $ac_res" >&5
8654 echo "${ECHO_T}$ac_res" >&6; }
8655 else
8656 # Is the header compilable?
8657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h. */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 #include <$ac_header>
8667 _ACEOF
8668 rm -f conftest.$ac_objext
8669 if { (ac_try="$ac_compile"
8670 case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673 esac
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_compile") 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8683 { (case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_try") 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest.$ac_objext'
8693 { (case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_try") 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_header_compiler=yes
8703 else
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 ac_header_compiler=no
8708 fi
8709
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8712 echo "${ECHO_T}$ac_header_compiler" >&6; }
8713
8714 # Is the header present?
8715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h. */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 #include <$ac_header>
8724 _ACEOF
8725 if { (ac_try="$ac_cpp conftest.$ac_ext"
8726 case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } >/dev/null; then
8738 if test -s conftest.err; then
8739 ac_cpp_err=$ac_c_preproc_warn_flag
8740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8741 else
8742 ac_cpp_err=
8743 fi
8744 else
8745 ac_cpp_err=yes
8746 fi
8747 if test -z "$ac_cpp_err"; then
8748 ac_header_preproc=yes
8749 else
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 ac_header_preproc=no
8754 fi
8755
8756 rm -f conftest.err conftest.$ac_ext
8757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8758 echo "${ECHO_T}$ac_header_preproc" >&6; }
8759
8760 # So? What about this header?
8761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8762 yes:no: )
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8767 ac_header_preproc=yes
8768 ;;
8769 no:yes:* )
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8782 ( cat <<\_ASBOX
8783 ## -------------------------------------------------- ##
8784 ## Report this to evilnet-devel@lists.sourceforge.net ##
8785 ## -------------------------------------------------- ##
8786 _ASBOX
8787 ) | sed "s/^/$as_me: WARNING: /" >&2
8788 ;;
8789 esac
8790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795 eval "$as_ac_Header=\$ac_header_preproc"
8796 fi
8797 ac_res=`eval echo '${'$as_ac_Header'}'`
8798 { echo "$as_me:$LINENO: result: $ac_res" >&5
8799 echo "${ECHO_T}$ac_res" >&6; }
8800
8801 fi
8802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8803 cat >>confdefs.h <<_ACEOF
8804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8805 _ACEOF
8806
8807 else
8808 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8809 echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8810 { (exit 1); exit 1; }; }
8811 fi
8812
8813 done
8814
8815
8816 { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8817 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
8818 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 ac_check_lib_save_LIBS=$LIBS
8822 LIBS="-ldmalloc $LIBS"
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829
8830 /* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 char malloc ();
8837 int
8838 main ()
8839 {
8840 return malloc ();
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8847 case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_lib_dmalloc_malloc=yes
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 ac_cv_lib_dmalloc_malloc=no
8885 fi
8886
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 LIBS=$ac_check_lib_save_LIBS
8890 fi
8891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8892 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
8893 if test $ac_cv_lib_dmalloc_malloc = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895 #define HAVE_LIBDMALLOC 1
8896 _ACEOF
8897
8898 LIBS="-ldmalloc $LIBS"
8899
8900 else
8901 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8902 echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8903 { (exit 1); exit 1; }; }
8904 fi
8905
8906
8907 cat >>confdefs.h <<\_ACEOF
8908 #define WITH_MALLOC_DMALLOC 1
8909 _ACEOF
8910
8911 x3_malloc="DMalloc"
8912 elif test "x$withval" = "xmpatrol" ; then
8913 { echo "$as_me:$LINENO: result: mpatrol" >&5
8914 echo "${ECHO_T}mpatrol" >&6; }
8915
8916 for ac_header in mpatrol.h
8917 do
8918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 fi
8925 ac_res=`eval echo '${'$as_ac_Header'}'`
8926 { echo "$as_me:$LINENO: result: $ac_res" >&5
8927 echo "${ECHO_T}$ac_res" >&6; }
8928 else
8929 # Is the header compilable?
8930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h. */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 $ac_includes_default
8939 #include <$ac_header>
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8956 { (case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_try") 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; } &&
8965 { ac_try='test -s conftest.$ac_objext'
8966 { (case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_try") 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_header_compiler=yes
8976 else
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ac_header_compiler=no
8981 fi
8982
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985 echo "${ECHO_T}$ac_header_compiler" >&6; }
8986
8987 # Is the header present?
8988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <$ac_header>
8997 _ACEOF
8998 if { (ac_try="$ac_cpp conftest.$ac_ext"
8999 case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null; then
9011 if test -s conftest.err; then
9012 ac_cpp_err=$ac_c_preproc_warn_flag
9013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9014 else
9015 ac_cpp_err=
9016 fi
9017 else
9018 ac_cpp_err=yes
9019 fi
9020 if test -z "$ac_cpp_err"; then
9021 ac_header_preproc=yes
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 ac_header_preproc=no
9027 fi
9028
9029 rm -f conftest.err conftest.$ac_ext
9030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9031 echo "${ECHO_T}$ac_header_preproc" >&6; }
9032
9033 # So? What about this header?
9034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9035 yes:no: )
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9040 ac_header_preproc=yes
9041 ;;
9042 no:yes:* )
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9055 ( cat <<\_ASBOX
9056 ## -------------------------------------------------- ##
9057 ## Report this to evilnet-devel@lists.sourceforge.net ##
9058 ## -------------------------------------------------- ##
9059 _ASBOX
9060 ) | sed "s/^/$as_me: WARNING: /" >&2
9061 ;;
9062 esac
9063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068 eval "$as_ac_Header=\$ac_header_preproc"
9069 fi
9070 ac_res=`eval echo '${'$as_ac_Header'}'`
9071 { echo "$as_me:$LINENO: result: $ac_res" >&5
9072 echo "${ECHO_T}$ac_res" >&6; }
9073
9074 fi
9075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078 _ACEOF
9079
9080 else
9081 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
9082 echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
9083 { (exit 1); exit 1; }; }
9084 fi
9085
9086 done
9087
9088
9089 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9090 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
9091 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094 ac_check_lib_save_LIBS=$LIBS
9095 LIBS="-lelf $LIBS"
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102
9103 /* Override any GCC internal prototype to avoid an error.
9104 Use char because int might match the return type of a GCC
9105 builtin and then its argument prototype would still apply. */
9106 #ifdef __cplusplus
9107 extern "C"
9108 #endif
9109 char elf_begin ();
9110 int
9111 main ()
9112 {
9113 return elf_begin ();
9114 ;
9115 return 0;
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext conftest$ac_exeext
9119 if { (ac_try="$ac_link"
9120 case "(($ac_try" in
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9123 esac
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_link") 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9133 { (case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_try") 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_try") 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_lib_elf_elf_begin=yes
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 ac_cv_lib_elf_elf_begin=no
9158 fi
9159
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LIBS=$ac_check_lib_save_LIBS
9163 fi
9164 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
9165 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
9166 if test $ac_cv_lib_elf_elf_begin = yes; then
9167 cat >>confdefs.h <<_ACEOF
9168 #define HAVE_LIBELF 1
9169 _ACEOF
9170
9171 LIBS="-lelf $LIBS"
9172
9173 fi
9174
9175
9176 { echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
9177 echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
9178 if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 ac_check_lib_save_LIBS=$LIBS
9182 LIBS="-lmpatrol $LIBS"
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 char __mp_atexit ();
9197 int
9198 main ()
9199 {
9200 return __mp_atexit ();
9201 ;
9202 return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (ac_try="$ac_link"
9207 case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210 esac
9211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>conftest.er1
9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9220 { (case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_try") 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; } &&
9229 { ac_try='test -s conftest$ac_exeext'
9230 { (case "(($ac_try" in
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9233 esac
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_try") 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_lib_mpatrol___mp_atexit=yes
9240 else
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 ac_cv_lib_mpatrol___mp_atexit=no
9245 fi
9246
9247 rm -f core conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9249 LIBS=$ac_check_lib_save_LIBS
9250 fi
9251 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
9252 echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
9253 if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
9254 cat >>confdefs.h <<_ACEOF
9255 #define HAVE_LIBMPATROL 1
9256 _ACEOF
9257
9258 LIBS="-lmpatrol $LIBS"
9259
9260 else
9261 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
9262 echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
9263 { (exit 1); exit 1; }; }
9264 fi
9265
9266
9267 cat >>confdefs.h <<\_ACEOF
9268 #define WITH_MALLOC_MPATROL 1
9269 _ACEOF
9270
9271 x3_malloc="MPatrol"
9272 elif test "x$withval" = "xboehm-gc" ; then
9273 { echo "$as_me:$LINENO: result: boehm-gc" >&5
9274 echo "${ECHO_T}boehm-gc" >&6; }
9275
9276 for ac_header in gc/gc.h
9277 do
9278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 fi
9285 ac_res=`eval echo '${'$as_ac_Header'}'`
9286 { echo "$as_me:$LINENO: result: $ac_res" >&5
9287 echo "${ECHO_T}$ac_res" >&6; }
9288 else
9289 # Is the header compilable?
9290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 $ac_includes_default
9299 #include <$ac_header>
9300 _ACEOF
9301 rm -f conftest.$ac_objext
9302 if { (ac_try="$ac_compile"
9303 case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_compile") 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329 esac
9330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9335 ac_header_compiler=yes
9336 else
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9339
9340 ac_header_compiler=no
9341 fi
9342
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9345 echo "${ECHO_T}$ac_header_compiler" >&6; }
9346
9347 # Is the header present?
9348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 #include <$ac_header>
9357 _ACEOF
9358 if { (ac_try="$ac_cpp conftest.$ac_ext"
9359 case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } >/dev/null; then
9371 if test -s conftest.err; then
9372 ac_cpp_err=$ac_c_preproc_warn_flag
9373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9374 else
9375 ac_cpp_err=
9376 fi
9377 else
9378 ac_cpp_err=yes
9379 fi
9380 if test -z "$ac_cpp_err"; then
9381 ac_header_preproc=yes
9382 else
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 ac_header_preproc=no
9387 fi
9388
9389 rm -f conftest.err conftest.$ac_ext
9390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9391 echo "${ECHO_T}$ac_header_preproc" >&6; }
9392
9393 # So? What about this header?
9394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9395 yes:no: )
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9400 ac_header_preproc=yes
9401 ;;
9402 no:yes:* )
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9415 ( cat <<\_ASBOX
9416 ## -------------------------------------------------- ##
9417 ## Report this to evilnet-devel@lists.sourceforge.net ##
9418 ## -------------------------------------------------- ##
9419 _ASBOX
9420 ) | sed "s/^/$as_me: WARNING: /" >&2
9421 ;;
9422 esac
9423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428 eval "$as_ac_Header=\$ac_header_preproc"
9429 fi
9430 ac_res=`eval echo '${'$as_ac_Header'}'`
9431 { echo "$as_me:$LINENO: result: $ac_res" >&5
9432 echo "${ECHO_T}$ac_res" >&6; }
9433
9434 fi
9435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9436 cat >>confdefs.h <<_ACEOF
9437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9438 _ACEOF
9439
9440 else
9441 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
9442 echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
9443 { (exit 1); exit 1; }; }
9444 fi
9445
9446 done
9447
9448
9449 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454 ac_check_lib_save_LIBS=$LIBS
9455 LIBS="-ldl $LIBS"
9456 cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h. */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char dlopen ();
9470 int
9471 main ()
9472 {
9473 return dlopen ();
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9493 { (case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496 esac
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_try") 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_try") 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_lib_dl_dlopen=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_cv_lib_dl_dlopen=no
9518 fi
9519
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9525 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9526 if test $ac_cv_lib_dl_dlopen = yes; then
9527 cat >>confdefs.h <<_ACEOF
9528 #define HAVE_LIBDL 1
9529 _ACEOF
9530
9531 LIBS="-ldl $LIBS"
9532
9533 else
9534 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
9535 echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
9536 { (exit 1); exit 1; }; }
9537 fi
9538
9539
9540 { echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
9541 echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
9542 if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545 ac_check_lib_save_LIBS=$LIBS
9546 LIBS="-lgc $LIBS"
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553
9554 /* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 char GC_gcollect ();
9561 int
9562 main ()
9563 {
9564 return GC_gcollect ();
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9571 case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9584 { (case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_try") 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest$ac_exeext'
9594 { (case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_try") 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_lib_gc_GC_gcollect=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_cv_lib_gc_GC_gcollect=no
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9614 fi
9615 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
9616 echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
9617 if test $ac_cv_lib_gc_GC_gcollect = yes; then
9618 cat >>confdefs.h <<_ACEOF
9619 #define HAVE_LIBGC 1
9620 _ACEOF
9621
9622 LIBS="-lgc $LIBS"
9623
9624 else
9625 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
9626 echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
9627 { (exit 1); exit 1; }; }
9628 fi
9629
9630
9631 cat >>confdefs.h <<\_ACEOF
9632 #define WITH_MALLOC_BOEHM_GC 1
9633 _ACEOF
9634
9635 x3_malloc="Boehm"
9636 elif test "x$withval" = "xx3" ; then
9637 { echo "$as_me:$LINENO: result: x3" >&5
9638 echo "${ECHO_T}x3" >&6; }
9639
9640 cat >>confdefs.h <<\_ACEOF
9641 #define WITH_MALLOC_X3 1
9642 _ACEOF
9643
9644 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
9645 x3_malloc="X3"
9646 elif test "x$withval" = "xslab" ; then
9647 { echo "$as_me:$LINENO: result: slab" >&5
9648 echo "${ECHO_T}slab" >&6; }
9649
9650 cat >>confdefs.h <<\_ACEOF
9651 #define WITH_MALLOC_SLAB 1
9652 _ACEOF
9653
9654 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
9655 x3_malloc="Slab"
9656 else
9657 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
9658 echo "$as_me: error: Unknown malloc type $withval" >&2;}
9659 { (exit 1); exit 1; }; }
9660 fi
9661
9662 { echo "$as_me:$LINENO: checking which protocol to use" >&5
9663 echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
9664
9665 # Check whether --with-protocol was given.
9666 if test "${with_protocol+set}" = set; then
9667 withval=$with_protocol;
9668 else
9669 withval="p10"
9670 fi
9671
9672 if test "x$withval" = "xp10" ; then
9673 { echo "$as_me:$LINENO: result: P10" >&5
9674 echo "${ECHO_T}P10" >&6; }
9675
9676 cat >>confdefs.h <<\_ACEOF
9677 #define WITH_PROTOCOL_P10 1
9678 _ACEOF
9679
9680 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
9681 PROTO_FILES=proto-p10.c
9682 x3_ircd="P10"
9683 else
9684 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
9685 echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
9686 { (exit 1); exit 1; }; }
9687 fi
9688
9689
9690 # Check whether --with-getopt was given.
9691 if test "${with_getopt+set}" = set; then
9692 withval=$with_getopt; if test "$withval" = no; then
9693
9694 cat >>confdefs.h <<\_ACEOF
9695 #define IGNORE_GETOPT 1
9696 _ACEOF
9697
9698 fi
9699 fi
9700
9701
9702 { echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
9703 echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
9704 # Check whether --enable-tokens was given.
9705 if test "${enable_tokens+set}" = set; then
9706 enableval=$enable_tokens;
9707 else
9708 enableval=yes
9709 fi
9710
9711 if test "z$enableval" = zno ; then
9712 { echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6; }
9714 else
9715
9716 cat >>confdefs.h <<\_ACEOF
9717 #define ENABLE_TOKENS 1
9718 _ACEOF
9719
9720 { echo "$as_me:$LINENO: result: yes" >&5
9721 echo "${ECHO_T}yes" >&6; }
9722 fi
9723
9724 { echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
9725 echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
9726 # Check whether --enable-debug was given.
9727 if test "${enable_debug+set}" = set; then
9728 enableval=$enable_debug;
9729 CPPFLAGS="$CPPFLAGS"
9730 { echo "$as_me:$LINENO: result: yes" >&5
9731 echo "${ECHO_T}yes" >&6; }
9732 x3_debug="Enabled"
9733
9734 else
9735
9736 CPPFLAGS="$CPPFLAGS -DNDEBUG"
9737 { echo "$as_me:$LINENO: result: no" >&5
9738 echo "${ECHO_T}no" >&6; }
9739 x3_debug="Disabled"
9740
9741 fi
9742
9743
9744 if test -e src ; then
9745 if test ! -d src ; then
9746 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
9747 echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
9748 { (exit 1); exit 1; }; }
9749 fi
9750 else
9751 mkdir src
9752 fi
9753 { echo "$as_me:$LINENO: checking for extra module files" >&5
9754 echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
9755 MODULE_DEFINES="src/modules-list.h"
9756 echo > $MODULE_DEFINES
9757 touch $MODULE_DEFINES
9758 # Check whether --enable-modules was given.
9759 if test "${enable_modules+set}" = set; then
9760 enableval=$enable_modules;
9761 OIFS="$IFS"
9762 IFS=','
9763 EXTRA_MODULE_OBJS=""
9764 module_list=""
9765 for module in $enableval ; do
9766 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
9767 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
9768 module_list="$module_list $module"
9769 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
9770 if test "x$module" = "xtrack" ; then
9771 TRACK="-D HAVE_TRACK"
9772
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_TRACK 1
9775 _ACEOF
9776
9777 fi
9778 if test "x$module" = "xhelpserv" ; then
9779 TRACK="-D HAVE_HELPSERV"
9780
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_HELPSERV 1
9783 _ACEOF
9784
9785 fi
9786 done
9787 IFS="$OIFS"
9788 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
9789 { echo "$as_me:$LINENO: result: $module_list" >&5
9790 echo "${ECHO_T}$module_list" >&6; }
9791
9792 else
9793
9794 { echo "$as_me:$LINENO: result: none" >&5
9795 echo "${ECHO_T}none" >&6; }
9796
9797 fi
9798
9799
9800 MY_SUBDIRS=""
9801 RX_INCLUDES=""
9802 RX_LIBS=""
9803 if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9804 MY_SUBDIRS="rx $MY_SUBDIRS"
9805 RX_INCLUDES="-I../rx"
9806 RX_LIBS="../rx/librx.a"
9807 fi
9808 MY_SUBDIRS="$MY_SUBDIRS src"
9809 CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9810 if test "z$USE_MAINTAINER_MODE" = zyes ; then
9811 CFLAGS="$CFLAGS -Werror"
9812 fi
9813
9814
9815 tre_version="0.7.5"
9816 withval=''
9817
9818 # Check whether --with-tre was given.
9819 if test "${with_tre+set}" = set; then
9820 withval=$with_tre;
9821 fi
9822
9823 if test "x$withval" != "x"; then
9824 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9825 echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
9826 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9827 LIBS="$LIBS -L$withval/lib"
9828 else
9829 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9830 echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
9831 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
9832 LIBS="$LIBS -L${HOME}/lib"
9833 fi
9834 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9835 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9836 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9837 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 fi
9840 { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9841 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
9842 else
9843 # Is the header compilable?
9844 { echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9845 echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h. */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 $ac_includes_default
9853 #include <tre/regex.h>
9854 _ACEOF
9855 rm -f conftest.$ac_objext
9856 if { (ac_try="$ac_compile"
9857 case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_compile") 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9870 { (case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_try") 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest.$ac_objext'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_header_compiler=yes
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894 ac_header_compiler=no
9895 fi
9896
9897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9899 echo "${ECHO_T}$ac_header_compiler" >&6; }
9900
9901 # Is the header present?
9902 { echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9903 echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h. */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9910 #include <tre/regex.h>
9911 _ACEOF
9912 if { (ac_try="$ac_cpp conftest.$ac_ext"
9913 case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } >/dev/null; then
9925 if test -s conftest.err; then
9926 ac_cpp_err=$ac_c_preproc_warn_flag
9927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9928 else
9929 ac_cpp_err=
9930 fi
9931 else
9932 ac_cpp_err=yes
9933 fi
9934 if test -z "$ac_cpp_err"; then
9935 ac_header_preproc=yes
9936 else
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940 ac_header_preproc=no
9941 fi
9942
9943 rm -f conftest.err conftest.$ac_ext
9944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9945 echo "${ECHO_T}$ac_header_preproc" >&6; }
9946
9947 # So? What about this header?
9948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9949 yes:no: )
9950 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9951 echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9953 echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
9954 ac_header_preproc=yes
9955 ;;
9956 no:yes:* )
9957 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9958 echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9959 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9960 echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9962 echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9964 echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9965 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9966 echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9968 echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
9969 ( cat <<\_ASBOX
9970 ## -------------------------------------------------- ##
9971 ## Report this to evilnet-devel@lists.sourceforge.net ##
9972 ## -------------------------------------------------- ##
9973 _ASBOX
9974 ) | sed "s/^/$as_me: WARNING: /" >&2
9975 ;;
9976 esac
9977 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9978 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9979 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 ac_cv_header_tre_regex_h=$ac_header_preproc
9983 fi
9984 { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9985 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
9986
9987 fi
9988 if test $ac_cv_header_tre_regex_h = yes; then
9989 :
9990 else
9991 { { echo "$as_me:$LINENO: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
9992 echo "$as_me: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
9993 { (exit 1); exit 1; }; }
9994 fi
9995
9996
9997
9998 { echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9999 echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
10000 if test "${ac_cv_lib_tre_regexec+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 ac_check_lib_save_LIBS=$LIBS
10004 LIBS="-ltre $LIBS"
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char regexec ();
10019 int
10020 main ()
10021 {
10022 return regexec ();
10023 ;
10024 return 0;
10025 }
10026 _ACEOF
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (ac_try="$ac_link"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10042 { (case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_try") 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_lib_tre_regexec=yes
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 ac_cv_lib_tre_regexec=no
10067 fi
10068
10069 rm -f core conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10072 fi
10073 { echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
10074 echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
10075 if test $ac_cv_lib_tre_regexec = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_LIBTRE 1
10078 _ACEOF
10079
10080 LIBS="-ltre $LIBS"
10081
10082 else
10083 { { echo "$as_me:$LINENO: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
10084 echo "$as_me: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
10085 { (exit 1); exit 1; }; }
10086 fi
10087
10088
10089 core_version="1.1"
10090 withval=''
10091
10092 # Check whether --with-coredumper was given.
10093 if test "${with_coredumper+set}" = set; then
10094 withval=$with_coredumper;
10095 fi
10096
10097 if test "x$withval" != "x"; then
10098 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
10099 echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
10100 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
10101 LIBS="$LIBS -L$withval/lib"
10102 else
10103 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
10104 echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
10105 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
10106 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
10107 fi
10108 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10109 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10110 echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10111 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 fi
10114 { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10115 echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10116 else
10117 # Is the header compilable?
10118 { echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
10119 echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <google/coredumper.h>
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_compile") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest.$ac_objext'
10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_header_compiler=yes
10164 else
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 ac_header_compiler=no
10169 fi
10170
10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 echo "${ECHO_T}$ac_header_compiler" >&6; }
10174
10175 # Is the header present?
10176 { echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
10177 echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <google/coredumper.h>
10185 _ACEOF
10186 if { (ac_try="$ac_cpp conftest.$ac_ext"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } >/dev/null; then
10199 if test -s conftest.err; then
10200 ac_cpp_err=$ac_c_preproc_warn_flag
10201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10202 else
10203 ac_cpp_err=
10204 fi
10205 else
10206 ac_cpp_err=yes
10207 fi
10208 if test -z "$ac_cpp_err"; then
10209 ac_header_preproc=yes
10210 else
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214 ac_header_preproc=no
10215 fi
10216
10217 rm -f conftest.err conftest.$ac_ext
10218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10219 echo "${ECHO_T}$ac_header_preproc" >&6; }
10220
10221 # So? What about this header?
10222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10223 yes:no: )
10224 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
10225 echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
10227 echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
10228 ac_header_preproc=yes
10229 ;;
10230 no:yes:* )
10231 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
10232 echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
10234 echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
10236 echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
10238 echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
10240 echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
10242 echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
10243 ( cat <<\_ASBOX
10244 ## -------------------------------------------------- ##
10245 ## Report this to evilnet-devel@lists.sourceforge.net ##
10246 ## -------------------------------------------------- ##
10247 _ASBOX
10248 ) | sed "s/^/$as_me: WARNING: /" >&2
10249 ;;
10250 esac
10251 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10252 echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10253 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256 ac_cv_header_google_coredumper_h=$ac_header_preproc
10257 fi
10258 { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10259 echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10260
10261 fi
10262 if test $ac_cv_header_google_coredumper_h = yes; then
10263 :
10264 else
10265 { echo "$as_me:$LINENO: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
10266 echo "${ECHO_T}google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
10267 fi
10268
10269
10270
10271 { echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
10272 echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
10273 if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276 ac_check_lib_save_LIBS=$LIBS
10277 LIBS="-lcoredumper $LIBS"
10278 cat >conftest.$ac_ext <<_ACEOF
10279 /* confdefs.h. */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284
10285 /* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10288 #ifdef __cplusplus
10289 extern "C"
10290 #endif
10291 char WriteCoreDump ();
10292 int
10293 main ()
10294 {
10295 return WriteCoreDump ();
10296 ;
10297 return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (ac_try="$ac_link"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_link") 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10315 { (case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_try") 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_lib_coredumper_WriteCoreDump=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 ac_cv_lib_coredumper_WriteCoreDump=no
10340 fi
10341
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10345 fi
10346 { echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
10347 echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
10348 if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
10349 cat >>confdefs.h <<_ACEOF
10350 #define HAVE_LIBCOREDUMPER 1
10351 _ACEOF
10352
10353 LIBS="-lcoredumper $LIBS"
10354
10355 else
10356 { echo "$as_me:$LINENO: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
10357 echo "${ECHO_T}Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
10358 fi
10359
10360
10361 withval=''
10362
10363 # Check whether --with-ssl was given.
10364 if test "${with_ssl+set}" = set; then
10365 withval=$with_ssl;
10366 fi
10367
10368 if test "x$withval" != "x"; then
10369 { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5
10370 echo "${ECHO_T}Using include dir $withval to find openssl" >&6; }
10371 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
10372 LIBS="$LIBS -L$withval/lib"
10373 else
10374 { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5
10375 echo "${ECHO_T}Looking for openssl in system " >&6; }
10376 fi
10377
10378 { echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5
10379 echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; }
10380 if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383 ac_check_lib_save_LIBS=$LIBS
10384 LIBS="-lssl $LIBS"
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391
10392 /* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10395 #ifdef __cplusplus
10396 extern "C"
10397 #endif
10398 char BIO_new ();
10399 int
10400 main ()
10401 {
10402 return BIO_new ();
10403 ;
10404 return 0;
10405 }
10406 _ACEOF
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (ac_try="$ac_link"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; } &&
10431 { ac_try='test -s conftest$ac_exeext'
10432 { (case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_try") 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_cv_lib_ssl_BIO_new=yes
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10445
10446 ac_cv_lib_ssl_BIO_new=no
10447 fi
10448
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LIBS=$ac_check_lib_save_LIBS
10452 fi
10453 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5
10454 echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; }
10455 if test $ac_cv_lib_ssl_BIO_new = yes; then
10456
10457 LIBS="-lssl $LIBS"
10458
10459 for ac_header in openssl/bio.h
10460 do
10461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 fi
10468 ac_res=`eval echo '${'$as_ac_Header'}'`
10469 { echo "$as_me:$LINENO: result: $ac_res" >&5
10470 echo "${ECHO_T}$ac_res" >&6; }
10471 else
10472 # Is the header compilable?
10473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10482 #include <$ac_header>
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (ac_try="$ac_compile"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_compile") 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } &&
10508 { ac_try='test -s conftest.$ac_objext'
10509 { (case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512 esac
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_try") 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_header_compiler=yes
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_header_compiler=no
10524 fi
10525
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10528 echo "${ECHO_T}$ac_header_compiler" >&6; }
10529
10530 # Is the header present?
10531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539 #include <$ac_header>
10540 _ACEOF
10541 if { (ac_try="$ac_cpp conftest.$ac_ext"
10542 case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } >/dev/null; then
10554 if test -s conftest.err; then
10555 ac_cpp_err=$ac_c_preproc_warn_flag
10556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10557 else
10558 ac_cpp_err=
10559 fi
10560 else
10561 ac_cpp_err=yes
10562 fi
10563 if test -z "$ac_cpp_err"; then
10564 ac_header_preproc=yes
10565 else
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_header_preproc=no
10570 fi
10571
10572 rm -f conftest.err conftest.$ac_ext
10573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10574 echo "${ECHO_T}$ac_header_preproc" >&6; }
10575
10576 # So? What about this header?
10577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10578 yes:no: )
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10583 ac_header_preproc=yes
10584 ;;
10585 no:yes:* )
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10598 ( cat <<\_ASBOX
10599 ## -------------------------------------------------- ##
10600 ## Report this to evilnet-devel@lists.sourceforge.net ##
10601 ## -------------------------------------------------- ##
10602 _ASBOX
10603 ) | sed "s/^/$as_me: WARNING: /" >&2
10604 ;;
10605 esac
10606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 eval "$as_ac_Header=\$ac_header_preproc"
10612 fi
10613 ac_res=`eval echo '${'$as_ac_Header'}'`
10614 { echo "$as_me:$LINENO: result: $ac_res" >&5
10615 echo "${ECHO_T}$ac_res" >&6; }
10616
10617 fi
10618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10619 cat >>confdefs.h <<_ACEOF
10620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10621 _ACEOF
10622
10623
10624 cat >>confdefs.h <<\_ACEOF
10625 #define WITH_SSL 1
10626 _ACEOF
10627
10628 ssl_message="LDAP library: enabled"
10629
10630 else
10631
10632 if test "x$withval" != "x"; then
10633 { { echo "$as_me:$LINENO: error: ssl headers not found" >&5
10634 echo "$as_me: error: ssl headers not found" >&2;}
10635 { (exit 1); exit 1; }; }
10636 fi
10637
10638 fi
10639
10640 done
10641
10642
10643 else
10644
10645 if test "x$withval" != "x"; then
10646 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
10647 echo "$as_me: error: libldap not found or not valid" >&2;}
10648 { (exit 1); exit 1; }; }
10649 fi
10650
10651
10652 fi
10653
10654 { echo "$as_me:$LINENO: result: $LIBS" >&5
10655 echo "${ECHO_T}$LIBS" >&6; }
10656
10657
10658 withval=''
10659
10660 # Check whether --with-ldap was given.
10661 if test "${with_ldap+set}" = set; then
10662 withval=$with_ldap;
10663 fi
10664
10665 if test "x$withval" != "x"; then
10666 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
10667 echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
10668 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
10669 LIBS="$LIBS -L$withval/lib"
10670 else
10671 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
10672 echo "${ECHO_T}Looking for ldap in system " >&6; }
10673 fi
10674
10675 { echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
10676 echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; }
10677 if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-lldap $LIBS"
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688
10689 /* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 char ldap_simple_bind_s ();
10696 int
10697 main ()
10698 {
10699 return ldap_simple_bind_s ();
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (ac_try="$ac_link"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_link") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 { (case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_try") 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest$ac_exeext'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_lib_ldap_ldap_simple_bind_s=yes
10739 else
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_cv_lib_ldap_ldap_simple_bind_s=no
10744 fi
10745
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10749 fi
10750 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
10751 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
10752 if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
10753
10754 LIBS="-lldap $LIBS"
10755
10756 for ac_header in ldap.h
10757 do
10758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 fi
10765 ac_res=`eval echo '${'$as_ac_Header'}'`
10766 { echo "$as_me:$LINENO: result: $ac_res" >&5
10767 echo "${ECHO_T}$ac_res" >&6; }
10768 else
10769 # Is the header compilable?
10770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 $ac_includes_default
10779 #include <$ac_header>
10780 _ACEOF
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796 { (case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_try") 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest.$ac_objext'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809 esac
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_header_compiler=yes
10816 else
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10819
10820 ac_header_compiler=no
10821 fi
10822
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10825 echo "${ECHO_T}$ac_header_compiler" >&6; }
10826
10827 # Is the header present?
10828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 #include <$ac_header>
10837 _ACEOF
10838 if { (ac_try="$ac_cpp conftest.$ac_ext"
10839 case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } >/dev/null; then
10851 if test -s conftest.err; then
10852 ac_cpp_err=$ac_c_preproc_warn_flag
10853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10854 else
10855 ac_cpp_err=
10856 fi
10857 else
10858 ac_cpp_err=yes
10859 fi
10860 if test -z "$ac_cpp_err"; then
10861 ac_header_preproc=yes
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866 ac_header_preproc=no
10867 fi
10868
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10872
10873 # So? What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 yes:no: )
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10881 ;;
10882 no:yes:* )
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10895 ( cat <<\_ASBOX
10896 ## -------------------------------------------------- ##
10897 ## Report this to evilnet-devel@lists.sourceforge.net ##
10898 ## -------------------------------------------------- ##
10899 _ASBOX
10900 ) | sed "s/^/$as_me: WARNING: /" >&2
10901 ;;
10902 esac
10903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908 eval "$as_ac_Header=\$ac_header_preproc"
10909 fi
10910 ac_res=`eval echo '${'$as_ac_Header'}'`
10911 { echo "$as_me:$LINENO: result: $ac_res" >&5
10912 echo "${ECHO_T}$ac_res" >&6; }
10913
10914 fi
10915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10916 cat >>confdefs.h <<_ACEOF
10917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10918 _ACEOF
10919
10920
10921 cat >>confdefs.h <<\_ACEOF
10922 #define WITH_LDAP 1
10923 _ACEOF
10924
10925 ldap_message="LDAP library: enabled"
10926
10927 else
10928
10929 if test "x$withval" != "x"; then
10930 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
10931 echo "$as_me: error: ldap.h not found" >&2;}
10932 { (exit 1); exit 1; }; }
10933 fi
10934
10935 fi
10936
10937 done
10938
10939
10940 else
10941
10942 if test "x$withval" != "x"; then
10943 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
10944 echo "$as_me: error: libldap not found or not valid" >&2;}
10945 { (exit 1); exit 1; }; }
10946 fi
10947
10948
10949 fi
10950
10951 { echo "$as_me:$LINENO: result: $LIBS" >&5
10952 echo "${ECHO_T}$LIBS" >&6; }
10953
10954
10955 cat >>confdefs.h <<_ACEOF
10956 #define CODENAME "${CODENAME}"
10957 _ACEOF
10958
10959
10960
10961
10962
10963
10964 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10965
10966 cat >confcache <<\_ACEOF
10967 # This file is a shell script that caches the results of configure
10968 # tests run on this system so they can be shared between configure
10969 # scripts and configure runs, see configure's option --config-cache.
10970 # It is not useful on other systems. If it contains results you don't
10971 # want to keep, you may remove or edit it.
10972 #
10973 # config.status only pays attention to the cache file if you give it
10974 # the --recheck option to rerun configure.
10975 #
10976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10978 # following values.
10979
10980 _ACEOF
10981
10982 # The following way of writing the cache mishandles newlines in values,
10983 # but we know of no workaround that is simple, portable, and efficient.
10984 # So, we kill variables containing newlines.
10985 # Ultrix sh set writes to stderr and can't be redirected directly,
10986 # and sets the high bit in the cache file unless we assign to the vars.
10987 (
10988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10989 eval ac_val=\$$ac_var
10990 case $ac_val in #(
10991 *${as_nl}*)
10992 case $ac_var in #(
10993 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10994 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10995 esac
10996 case $ac_var in #(
10997 _ | IFS | as_nl) ;; #(
10998 *) $as_unset $ac_var ;;
10999 esac ;;
11000 esac
11001 done
11002
11003 (set) 2>&1 |
11004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11005 *${as_nl}ac_space=\ *)
11006 # `set' does not quote correctly, so add quotes (double-quote
11007 # substitution turns \\\\ into \\, and sed turns \\ into \).
11008 sed -n \
11009 "s/'/'\\\\''/g;
11010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11011 ;; #(
11012 *)
11013 # `set' quotes correctly as required by POSIX, so do not add quotes.
11014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11015 ;;
11016 esac |
11017 sort
11018 ) |
11019 sed '
11020 /^ac_cv_env_/b end
11021 t clear
11022 :clear
11023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11024 t end
11025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11026 :end' >>confcache
11027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11028 if test -w "$cache_file"; then
11029 test "x$cache_file" != "x/dev/null" &&
11030 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11031 echo "$as_me: updating cache $cache_file" >&6;}
11032 cat confcache >$cache_file
11033 else
11034 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11035 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11036 fi
11037 fi
11038 rm -f confcache
11039
11040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11041 # Let make expand exec_prefix.
11042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11043
11044 DEFS=-DHAVE_CONFIG_H
11045
11046 ac_libobjs=
11047 ac_ltlibobjs=
11048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11049 # 1. Remove the extension, and $U if already installed.
11050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11051 ac_i=`echo "$ac_i" | sed "$ac_script"`
11052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11053 # will be set to the directory where LIBOBJS objects are built.
11054 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11055 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11056 done
11057 LIBOBJS=$ac_libobjs
11058
11059 LTLIBOBJS=$ac_ltlibobjs
11060
11061
11062 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11063 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11064 Usually this means the macro was only invoked conditionally." >&5
11065 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11066 Usually this means the macro was only invoked conditionally." >&2;}
11067 { (exit 1); exit 1; }; }
11068 fi
11069 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11070 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11071 Usually this means the macro was only invoked conditionally." >&5
11072 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11073 Usually this means the macro was only invoked conditionally." >&2;}
11074 { (exit 1); exit 1; }; }
11075 fi
11076 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11077 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11078 Usually this means the macro was only invoked conditionally." >&5
11079 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11080 Usually this means the macro was only invoked conditionally." >&2;}
11081 { (exit 1); exit 1; }; }
11082 fi
11083 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11084 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11085 Usually this means the macro was only invoked conditionally." >&5
11086 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11087 Usually this means the macro was only invoked conditionally." >&2;}
11088 { (exit 1); exit 1; }; }
11089 fi
11090
11091 : ${CONFIG_STATUS=./config.status}
11092 ac_clean_files_save=$ac_clean_files
11093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11094 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11095 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11096 cat >$CONFIG_STATUS <<_ACEOF
11097 #! $SHELL
11098 # Generated by $as_me.
11099 # Run this file to recreate the current configuration.
11100 # Compiler output produced by configure, useful for debugging
11101 # configure, is in config.log if it exists.
11102
11103 debug=false
11104 ac_cs_recheck=false
11105 ac_cs_silent=false
11106 SHELL=\${CONFIG_SHELL-$SHELL}
11107 _ACEOF
11108
11109 cat >>$CONFIG_STATUS <<\_ACEOF
11110 ## --------------------- ##
11111 ## M4sh Initialization. ##
11112 ## --------------------- ##
11113
11114 # Be Bourne compatible
11115 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11116 emulate sh
11117 NULLCMD=:
11118 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11119 # is contrary to our usage. Disable this feature.
11120 alias -g '${1+"$@"}'='"$@"'
11121 setopt NO_GLOB_SUBST
11122 else
11123 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
11124 fi
11125 BIN_SH=xpg4; export BIN_SH # for Tru64
11126 DUALCASE=1; export DUALCASE # for MKS sh
11127
11128
11129 # PATH needs CR
11130 # Avoid depending upon Character Ranges.
11131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11134 as_cr_digits='0123456789'
11135 as_cr_alnum=$as_cr_Letters$as_cr_digits
11136
11137 # The user is always right.
11138 if test "${PATH_SEPARATOR+set}" != set; then
11139 echo "#! /bin/sh" >conf$$.sh
11140 echo "exit 0" >>conf$$.sh
11141 chmod +x conf$$.sh
11142 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11143 PATH_SEPARATOR=';'
11144 else
11145 PATH_SEPARATOR=:
11146 fi
11147 rm -f conf$$.sh
11148 fi
11149
11150 # Support unset when possible.
11151 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11152 as_unset=unset
11153 else
11154 as_unset=false
11155 fi
11156
11157
11158 # IFS
11159 # We need space, tab and new line, in precisely that order. Quoting is
11160 # there to prevent editors from complaining about space-tab.
11161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11162 # splitting by setting IFS to empty value.)
11163 as_nl='
11164 '
11165 IFS=" "" $as_nl"
11166
11167 # Find who we are. Look in the path if we contain no directory separator.
11168 case $0 in
11169 *[\\/]* ) as_myself=$0 ;;
11170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11172 do
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11176 done
11177 IFS=$as_save_IFS
11178
11179 ;;
11180 esac
11181 # We did not find ourselves, most probably we were run as `sh COMMAND'
11182 # in which case we are not to be found in the path.
11183 if test "x$as_myself" = x; then
11184 as_myself=$0
11185 fi
11186 if test ! -f "$as_myself"; then
11187 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11188 { (exit 1); exit 1; }
11189 fi
11190
11191 # Work around bugs in pre-3.0 UWIN ksh.
11192 for as_var in ENV MAIL MAILPATH
11193 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11194 done
11195 PS1='$ '
11196 PS2='> '
11197 PS4='+ '
11198
11199 # NLS nuisances.
11200 for as_var in \
11201 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11202 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11203 LC_TELEPHONE LC_TIME
11204 do
11205 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11206 eval $as_var=C; export $as_var
11207 else
11208 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11209 fi
11210 done
11211
11212 # Required to use basename.
11213 if expr a : '\(a\)' >/dev/null 2>&1 &&
11214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11215 as_expr=expr
11216 else
11217 as_expr=false
11218 fi
11219
11220 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11221 as_basename=basename
11222 else
11223 as_basename=false
11224 fi
11225
11226
11227 # Name of the executable.
11228 as_me=`$as_basename -- "$0" ||
11229 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11230 X"$0" : 'X\(//\)$' \| \
11231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11232 echo X/"$0" |
11233 sed '/^.*\/\([^/][^/]*\)\/*$/{
11234 s//\1/
11235 q
11236 }
11237 /^X\/\(\/\/\)$/{
11238 s//\1/
11239 q
11240 }
11241 /^X\/\(\/\).*/{
11242 s//\1/
11243 q
11244 }
11245 s/.*/./; q'`
11246
11247 # CDPATH.
11248 $as_unset CDPATH
11249
11250
11251
11252 as_lineno_1=$LINENO
11253 as_lineno_2=$LINENO
11254 test "x$as_lineno_1" != "x$as_lineno_2" &&
11255 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11256
11257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11258 # uniformly replaced by the line number. The first 'sed' inserts a
11259 # line-number line after each line using $LINENO; the second 'sed'
11260 # does the real work. The second script uses 'N' to pair each
11261 # line-number line with the line containing $LINENO, and appends
11262 # trailing '-' during substitution so that $LINENO is not a special
11263 # case at line end.
11264 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11265 # scripts with optimization help from Paolo Bonzini. Blame Lee
11266 # E. McMahon (1931-1989) for sed's syntax. :-)
11267 sed -n '
11268 p
11269 /[$]LINENO/=
11270 ' <$as_myself |
11271 sed '
11272 s/[$]LINENO.*/&-/
11273 t lineno
11274 b
11275 :lineno
11276 N
11277 :loop
11278 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11279 t loop
11280 s/-\n.*//
11281 ' >$as_me.lineno &&
11282 chmod +x "$as_me.lineno" ||
11283 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11284 { (exit 1); exit 1; }; }
11285
11286 # Don't try to exec as it changes $[0], causing all sort of problems
11287 # (the dirname of $[0] is not the place where we might find the
11288 # original and so on. Autoconf is especially sensitive to this).
11289 . "./$as_me.lineno"
11290 # Exit status is that of the last command.
11291 exit
11292 }
11293
11294
11295 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11296 as_dirname=dirname
11297 else
11298 as_dirname=false
11299 fi
11300
11301 ECHO_C= ECHO_N= ECHO_T=
11302 case `echo -n x` in
11303 -n*)
11304 case `echo 'x\c'` in
11305 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11306 *) ECHO_C='\c';;
11307 esac;;
11308 *)
11309 ECHO_N='-n';;
11310 esac
11311
11312 if expr a : '\(a\)' >/dev/null 2>&1 &&
11313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11314 as_expr=expr
11315 else
11316 as_expr=false
11317 fi
11318
11319 rm -f conf$$ conf$$.exe conf$$.file
11320 if test -d conf$$.dir; then
11321 rm -f conf$$.dir/conf$$.file
11322 else
11323 rm -f conf$$.dir
11324 mkdir conf$$.dir
11325 fi
11326 echo >conf$$.file
11327 if ln -s conf$$.file conf$$ 2>/dev/null; then
11328 as_ln_s='ln -s'
11329 # ... but there are two gotchas:
11330 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11331 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11332 # In both cases, we have to default to `cp -p'.
11333 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11334 as_ln_s='cp -p'
11335 elif ln conf$$.file conf$$ 2>/dev/null; then
11336 as_ln_s=ln
11337 else
11338 as_ln_s='cp -p'
11339 fi
11340 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11341 rmdir conf$$.dir 2>/dev/null
11342
11343 if mkdir -p . 2>/dev/null; then
11344 as_mkdir_p=:
11345 else
11346 test -d ./-p && rmdir ./-p
11347 as_mkdir_p=false
11348 fi
11349
11350 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
11351 # systems may use methods other than mode bits to determine executability.
11352 cat >conf$$.file <<_ASEOF
11353 #! /bin/sh
11354 exit 0
11355 _ASEOF
11356 chmod +x conf$$.file
11357 if test -x conf$$.file >/dev/null 2>&1; then
11358 as_executable_p="test -x"
11359 else
11360 as_executable_p=:
11361 fi
11362 rm -f conf$$.file
11363
11364 # Sed expression to map a string onto a valid CPP name.
11365 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11366
11367 # Sed expression to map a string onto a valid variable name.
11368 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11369
11370
11371 exec 6>&1
11372
11373 # Save the log message, to keep $[0] and so on meaningful, and to
11374 # report actual input values of CONFIG_FILES etc. instead of their
11375 # values after options handling.
11376 ac_log="
11377 This file was extended by X3 $as_me 1.5, which was
11378 generated by GNU Autoconf 2.60. Invocation command line was
11379
11380 CONFIG_FILES = $CONFIG_FILES
11381 CONFIG_HEADERS = $CONFIG_HEADERS
11382 CONFIG_LINKS = $CONFIG_LINKS
11383 CONFIG_COMMANDS = $CONFIG_COMMANDS
11384 $ $0 $@
11385
11386 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11387 "
11388
11389 _ACEOF
11390
11391 cat >>$CONFIG_STATUS <<_ACEOF
11392 # Files that config.status was made for.
11393 config_files="$ac_config_files"
11394 config_headers="$ac_config_headers"
11395 config_commands="$ac_config_commands"
11396
11397 _ACEOF
11398
11399 cat >>$CONFIG_STATUS <<\_ACEOF
11400 ac_cs_usage="\
11401 \`$as_me' instantiates files from templates according to the
11402 current configuration.
11403
11404 Usage: $0 [OPTIONS] [FILE]...
11405
11406 -h, --help print this help, then exit
11407 -V, --version print version number, then exit
11408 -q, --quiet do not print progress messages
11409 -d, --debug don't remove temporary files
11410 --recheck update $as_me by reconfiguring in the same conditions
11411 --file=FILE[:TEMPLATE]
11412 instantiate the configuration file FILE
11413 --header=FILE[:TEMPLATE]
11414 instantiate the configuration header FILE
11415
11416 Configuration files:
11417 $config_files
11418
11419 Configuration headers:
11420 $config_headers
11421
11422 Configuration commands:
11423 $config_commands
11424
11425 Report bugs to <bug-autoconf@gnu.org>."
11426
11427 _ACEOF
11428 cat >>$CONFIG_STATUS <<_ACEOF
11429 ac_cs_version="\\
11430 X3 config.status 1.5
11431 configured by $0, generated by GNU Autoconf 2.60,
11432 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11433
11434 Copyright (C) 2006 Free Software Foundation, Inc.
11435 This config.status script is free software; the Free Software Foundation
11436 gives unlimited permission to copy, distribute and modify it."
11437
11438 ac_pwd='$ac_pwd'
11439 srcdir='$srcdir'
11440 INSTALL='$INSTALL'
11441 _ACEOF
11442
11443 cat >>$CONFIG_STATUS <<\_ACEOF
11444 # If no file are specified by the user, then we need to provide default
11445 # value. By we need to know if files were specified by the user.
11446 ac_need_defaults=:
11447 while test $# != 0
11448 do
11449 case $1 in
11450 --*=*)
11451 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11452 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11453 ac_shift=:
11454 ;;
11455 *)
11456 ac_option=$1
11457 ac_optarg=$2
11458 ac_shift=shift
11459 ;;
11460 esac
11461
11462 case $ac_option in
11463 # Handling of the options.
11464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11465 ac_cs_recheck=: ;;
11466 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11467 echo "$ac_cs_version"; exit ;;
11468 --debug | --debu | --deb | --de | --d | -d )
11469 debug=: ;;
11470 --file | --fil | --fi | --f )
11471 $ac_shift
11472 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11473 ac_need_defaults=false;;
11474 --header | --heade | --head | --hea )
11475 $ac_shift
11476 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11477 ac_need_defaults=false;;
11478 --he | --h)
11479 # Conflict between --help and --header
11480 { echo "$as_me: error: ambiguous option: $1
11481 Try \`$0 --help' for more information." >&2
11482 { (exit 1); exit 1; }; };;
11483 --help | --hel | -h )
11484 echo "$ac_cs_usage"; exit ;;
11485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11487 ac_cs_silent=: ;;
11488
11489 # This is an error.
11490 -*) { echo "$as_me: error: unrecognized option: $1
11491 Try \`$0 --help' for more information." >&2
11492 { (exit 1); exit 1; }; } ;;
11493
11494 *) ac_config_targets="$ac_config_targets $1"
11495 ac_need_defaults=false ;;
11496
11497 esac
11498 shift
11499 done
11500
11501 ac_configure_extra_args=
11502
11503 if $ac_cs_silent; then
11504 exec 6>/dev/null
11505 ac_configure_extra_args="$ac_configure_extra_args --silent"
11506 fi
11507
11508 _ACEOF
11509 cat >>$CONFIG_STATUS <<_ACEOF
11510 if \$ac_cs_recheck; then
11511 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11512 CONFIG_SHELL=$SHELL
11513 export CONFIG_SHELL
11514 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11515 fi
11516
11517 _ACEOF
11518 cat >>$CONFIG_STATUS <<\_ACEOF
11519 exec 5>>config.log
11520 {
11521 echo
11522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11523 ## Running $as_me. ##
11524 _ASBOX
11525 echo "$ac_log"
11526 } >&5
11527
11528 _ACEOF
11529 cat >>$CONFIG_STATUS <<_ACEOF
11530 #
11531 # INIT-COMMANDS
11532 #
11533 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11534
11535 _ACEOF
11536
11537 cat >>$CONFIG_STATUS <<\_ACEOF
11538
11539 # Handling of arguments.
11540 for ac_config_target in $ac_config_targets
11541 do
11542 case $ac_config_target in
11543 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11544 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11545 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11546 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
11547 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11548
11549 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11550 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11551 { (exit 1); exit 1; }; };;
11552 esac
11553 done
11554
11555
11556 # If the user did not use the arguments to specify the items to instantiate,
11557 # then the envvar interface is used. Set only those that are not.
11558 # We use the long form for the default assignment because of an extremely
11559 # bizarre bug on SunOS 4.1.3.
11560 if $ac_need_defaults; then
11561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11564 fi
11565
11566 # Have a temporary directory for convenience. Make it in the build tree
11567 # simply because there is no reason against having it here, and in addition,
11568 # creating and moving files from /tmp can sometimes cause problems.
11569 # Hook for its removal unless debugging.
11570 # Note that there is a small window in which the directory will not be cleaned:
11571 # after its creation but before its name has been assigned to `$tmp'.
11572 $debug ||
11573 {
11574 tmp=
11575 trap 'exit_status=$?
11576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11577 ' 0
11578 trap '{ (exit 1); exit 1; }' 1 2 13 15
11579 }
11580 # Create a (secure) tmp directory for tmp files.
11581
11582 {
11583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11584 test -n "$tmp" && test -d "$tmp"
11585 } ||
11586 {
11587 tmp=./conf$$-$RANDOM
11588 (umask 077 && mkdir "$tmp")
11589 } ||
11590 {
11591 echo "$me: cannot create a temporary directory in ." >&2
11592 { (exit 1); exit 1; }
11593 }
11594
11595 #
11596 # Set up the sed scripts for CONFIG_FILES section.
11597 #
11598
11599 # No need to generate the scripts if there are no CONFIG_FILES.
11600 # This happens for instance when ./config.status config.h
11601 if test -n "$CONFIG_FILES"; then
11602
11603 _ACEOF
11604
11605
11606
11607 ac_delim='%!_!# '
11608 for ac_last_try in false false false false false :; do
11609 cat >conf$$subs.sed <<_ACEOF
11610 SHELL!$SHELL$ac_delim
11611 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11612 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11613 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11614 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11615 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11616 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11617 exec_prefix!$exec_prefix$ac_delim
11618 prefix!$prefix$ac_delim
11619 program_transform_name!$program_transform_name$ac_delim
11620 bindir!$bindir$ac_delim
11621 sbindir!$sbindir$ac_delim
11622 libexecdir!$libexecdir$ac_delim
11623 datarootdir!$datarootdir$ac_delim
11624 datadir!$datadir$ac_delim
11625 sysconfdir!$sysconfdir$ac_delim
11626 sharedstatedir!$sharedstatedir$ac_delim
11627 localstatedir!$localstatedir$ac_delim
11628 includedir!$includedir$ac_delim
11629 oldincludedir!$oldincludedir$ac_delim
11630 docdir!$docdir$ac_delim
11631 infodir!$infodir$ac_delim
11632 htmldir!$htmldir$ac_delim
11633 dvidir!$dvidir$ac_delim
11634 pdfdir!$pdfdir$ac_delim
11635 psdir!$psdir$ac_delim
11636 libdir!$libdir$ac_delim
11637 localedir!$localedir$ac_delim
11638 mandir!$mandir$ac_delim
11639 DEFS!$DEFS$ac_delim
11640 ECHO_C!$ECHO_C$ac_delim
11641 ECHO_N!$ECHO_N$ac_delim
11642 ECHO_T!$ECHO_T$ac_delim
11643 LIBS!$LIBS$ac_delim
11644 build_alias!$build_alias$ac_delim
11645 host_alias!$host_alias$ac_delim
11646 target_alias!$target_alias$ac_delim
11647 build!$build$ac_delim
11648 build_cpu!$build_cpu$ac_delim
11649 build_vendor!$build_vendor$ac_delim
11650 build_os!$build_os$ac_delim
11651 host!$host$ac_delim
11652 host_cpu!$host_cpu$ac_delim
11653 host_vendor!$host_vendor$ac_delim
11654 host_os!$host_os$ac_delim
11655 target!$target$ac_delim
11656 target_cpu!$target_cpu$ac_delim
11657 target_vendor!$target_vendor$ac_delim
11658 target_os!$target_os$ac_delim
11659 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11660 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11661 INSTALL_DATA!$INSTALL_DATA$ac_delim
11662 CYGPATH_W!$CYGPATH_W$ac_delim
11663 PACKAGE!$PACKAGE$ac_delim
11664 VERSION!$VERSION$ac_delim
11665 ACLOCAL!$ACLOCAL$ac_delim
11666 AUTOCONF!$AUTOCONF$ac_delim
11667 AUTOMAKE!$AUTOMAKE$ac_delim
11668 AUTOHEADER!$AUTOHEADER$ac_delim
11669 MAKEINFO!$MAKEINFO$ac_delim
11670 install_sh!$install_sh$ac_delim
11671 STRIP!$STRIP$ac_delim
11672 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11673 mkdir_p!$mkdir_p$ac_delim
11674 AWK!$AWK$ac_delim
11675 SET_MAKE!$SET_MAKE$ac_delim
11676 am__leading_dot!$am__leading_dot$ac_delim
11677 AMTAR!$AMTAR$ac_delim
11678 am__tar!$am__tar$ac_delim
11679 am__untar!$am__untar$ac_delim
11680 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11681 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11682 MAINT!$MAINT$ac_delim
11683 CC!$CC$ac_delim
11684 CFLAGS!$CFLAGS$ac_delim
11685 LDFLAGS!$LDFLAGS$ac_delim
11686 CPPFLAGS!$CPPFLAGS$ac_delim
11687 ac_ct_CC!$ac_ct_CC$ac_delim
11688 EXEEXT!$EXEEXT$ac_delim
11689 OBJEXT!$OBJEXT$ac_delim
11690 DEPDIR!$DEPDIR$ac_delim
11691 am__include!$am__include$ac_delim
11692 am__quote!$am__quote$ac_delim
11693 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11694 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11695 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11696 CCDEPMODE!$CCDEPMODE$ac_delim
11697 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11698 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11699 RANLIB!$RANLIB$ac_delim
11700 LN_S!$LN_S$ac_delim
11701 CPP!$CPP$ac_delim
11702 GREP!$GREP$ac_delim
11703 EGREP!$EGREP$ac_delim
11704 MAKER!$MAKER$ac_delim
11705 ALLOCA!$ALLOCA$ac_delim
11706 MODULE_OBJS!$MODULE_OBJS$ac_delim
11707 _ACEOF
11708
11709 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11710 break
11711 elif $ac_last_try; then
11712 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11713 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11714 { (exit 1); exit 1; }; }
11715 else
11716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11717 fi
11718 done
11719
11720 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11721 if test -n "$ac_eof"; then
11722 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11723 ac_eof=`expr $ac_eof + 1`
11724 fi
11725
11726 cat >>$CONFIG_STATUS <<_ACEOF
11727 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11729 _ACEOF
11730 sed '
11731 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11732 s/^/s,@/; s/!/@,|#_!!_#|/
11733 :n
11734 t n
11735 s/'"$ac_delim"'$/,g/; t
11736 s/$/\\/; p
11737 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11738 ' >>$CONFIG_STATUS <conf$$subs.sed
11739 rm -f conf$$subs.sed
11740 cat >>$CONFIG_STATUS <<_ACEOF
11741 CEOF$ac_eof
11742 _ACEOF
11743
11744
11745 ac_delim='%!_!# '
11746 for ac_last_try in false false false false false :; do
11747 cat >conf$$subs.sed <<_ACEOF
11748 MY_SUBDIRS!$MY_SUBDIRS$ac_delim
11749 RX_INCLUDES!$RX_INCLUDES$ac_delim
11750 RX_LIBS!$RX_LIBS$ac_delim
11751 TRACK!$TRACK$ac_delim
11752 LIBOBJS!$LIBOBJS$ac_delim
11753 LTLIBOBJS!$LTLIBOBJS$ac_delim
11754 _ACEOF
11755
11756 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
11757 break
11758 elif $ac_last_try; then
11759 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11760 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11761 { (exit 1); exit 1; }; }
11762 else
11763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11764 fi
11765 done
11766
11767 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11768 if test -n "$ac_eof"; then
11769 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11770 ac_eof=`expr $ac_eof + 1`
11771 fi
11772
11773 cat >>$CONFIG_STATUS <<_ACEOF
11774 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11776 _ACEOF
11777 sed '
11778 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11779 s/^/s,@/; s/!/@,|#_!!_#|/
11780 :n
11781 t n
11782 s/'"$ac_delim"'$/,g/; t
11783 s/$/\\/; p
11784 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11785 ' >>$CONFIG_STATUS <conf$$subs.sed
11786 rm -f conf$$subs.sed
11787 cat >>$CONFIG_STATUS <<_ACEOF
11788 :end
11789 s/|#_!!_#|//g
11790 CEOF$ac_eof
11791 _ACEOF
11792
11793
11794 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11795 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11796 # trailing colons and then remove the whole line if VPATH becomes empty
11797 # (actually we leave an empty line to preserve line numbers).
11798 if test "x$srcdir" = x.; then
11799 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11800 s/:*\$(srcdir):*/:/
11801 s/:*\${srcdir}:*/:/
11802 s/:*@srcdir@:*/:/
11803 s/^\([^=]*=[ ]*\):*/\1/
11804 s/:*$//
11805 s/^[^=]*=[ ]*$//
11806 }'
11807 fi
11808
11809 cat >>$CONFIG_STATUS <<\_ACEOF
11810 fi # test -n "$CONFIG_FILES"
11811
11812
11813 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11814 do
11815 case $ac_tag in
11816 :[FHLC]) ac_mode=$ac_tag; continue;;
11817 esac
11818 case $ac_mode$ac_tag in
11819 :[FHL]*:*);;
11820 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11821 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11822 { (exit 1); exit 1; }; };;
11823 :[FH]-) ac_tag=-:-;;
11824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11825 esac
11826 ac_save_IFS=$IFS
11827 IFS=:
11828 set x $ac_tag
11829 IFS=$ac_save_IFS
11830 shift
11831 ac_file=$1
11832 shift
11833
11834 case $ac_mode in
11835 :L) ac_source=$1;;
11836 :[FH])
11837 ac_file_inputs=
11838 for ac_f
11839 do
11840 case $ac_f in
11841 -) ac_f="$tmp/stdin";;
11842 *) # Look for the file first in the build tree, then in the source tree
11843 # (if the path is not absolute). The absolute path cannot be DOS-style,
11844 # because $ac_f cannot contain `:'.
11845 test -f "$ac_f" ||
11846 case $ac_f in
11847 [\\/$]*) false;;
11848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11849 esac ||
11850 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11851 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11852 { (exit 1); exit 1; }; };;
11853 esac
11854 ac_file_inputs="$ac_file_inputs $ac_f"
11855 done
11856
11857 # Let's still pretend it is `configure' which instantiates (i.e., don't
11858 # use $as_me), people would be surprised to read:
11859 # /* config.h. Generated by config.status. */
11860 configure_input="Generated from "`IFS=:
11861 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11862 if test x"$ac_file" != x-; then
11863 configure_input="$ac_file. $configure_input"
11864 { echo "$as_me:$LINENO: creating $ac_file" >&5
11865 echo "$as_me: creating $ac_file" >&6;}
11866 fi
11867
11868 case $ac_tag in
11869 *:-:* | *:-) cat >"$tmp/stdin";;
11870 esac
11871 ;;
11872 esac
11873
11874 ac_dir=`$as_dirname -- "$ac_file" ||
11875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11876 X"$ac_file" : 'X\(//\)[^/]' \| \
11877 X"$ac_file" : 'X\(//\)$' \| \
11878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11879 echo X"$ac_file" |
11880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11881 s//\1/
11882 q
11883 }
11884 /^X\(\/\/\)[^/].*/{
11885 s//\1/
11886 q
11887 }
11888 /^X\(\/\/\)$/{
11889 s//\1/
11890 q
11891 }
11892 /^X\(\/\).*/{
11893 s//\1/
11894 q
11895 }
11896 s/.*/./; q'`
11897 { as_dir="$ac_dir"
11898 case $as_dir in #(
11899 -*) as_dir=./$as_dir;;
11900 esac
11901 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11902 as_dirs=
11903 while :; do
11904 case $as_dir in #(
11905 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11906 *) as_qdir=$as_dir;;
11907 esac
11908 as_dirs="'$as_qdir' $as_dirs"
11909 as_dir=`$as_dirname -- "$as_dir" ||
11910 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11911 X"$as_dir" : 'X\(//\)[^/]' \| \
11912 X"$as_dir" : 'X\(//\)$' \| \
11913 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11914 echo X"$as_dir" |
11915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11916 s//\1/
11917 q
11918 }
11919 /^X\(\/\/\)[^/].*/{
11920 s//\1/
11921 q
11922 }
11923 /^X\(\/\/\)$/{
11924 s//\1/
11925 q
11926 }
11927 /^X\(\/\).*/{
11928 s//\1/
11929 q
11930 }
11931 s/.*/./; q'`
11932 test -d "$as_dir" && break
11933 done
11934 test -z "$as_dirs" || eval "mkdir $as_dirs"
11935 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11936 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11937 { (exit 1); exit 1; }; }; }
11938 ac_builddir=.
11939
11940 case "$ac_dir" in
11941 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11942 *)
11943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11944 # A ".." for each directory in $ac_dir_suffix.
11945 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11946 case $ac_top_builddir_sub in
11947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11949 esac ;;
11950 esac
11951 ac_abs_top_builddir=$ac_pwd
11952 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11953 # for backward compatibility:
11954 ac_top_builddir=$ac_top_build_prefix
11955
11956 case $srcdir in
11957 .) # We are building in place.
11958 ac_srcdir=.
11959 ac_top_srcdir=$ac_top_builddir_sub
11960 ac_abs_top_srcdir=$ac_pwd ;;
11961 [\\/]* | ?:[\\/]* ) # Absolute name.
11962 ac_srcdir=$srcdir$ac_dir_suffix;
11963 ac_top_srcdir=$srcdir
11964 ac_abs_top_srcdir=$srcdir ;;
11965 *) # Relative name.
11966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11967 ac_top_srcdir=$ac_top_build_prefix$srcdir
11968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11969 esac
11970 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11971
11972
11973 case $ac_mode in
11974 :F)
11975 #
11976 # CONFIG_FILE
11977 #
11978
11979 case $INSTALL in
11980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11982 esac
11983 _ACEOF
11984
11985 cat >>$CONFIG_STATUS <<\_ACEOF
11986 # If the template does not know about datarootdir, expand it.
11987 # FIXME: This hack should be removed a few years after 2.60.
11988 ac_datarootdir_hack=; ac_datarootdir_seen=
11989
11990 case `sed -n '/datarootdir/ {
11991 p
11992 q
11993 }
11994 /@datadir@/p
11995 /@docdir@/p
11996 /@infodir@/p
11997 /@localedir@/p
11998 /@mandir@/p
11999 ' $ac_file_inputs` in
12000 *datarootdir*) ac_datarootdir_seen=yes;;
12001 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12002 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12003 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12004 _ACEOF
12005 cat >>$CONFIG_STATUS <<_ACEOF
12006 ac_datarootdir_hack='
12007 s&@datadir@&$datadir&g
12008 s&@docdir@&$docdir&g
12009 s&@infodir@&$infodir&g
12010 s&@localedir@&$localedir&g
12011 s&@mandir@&$mandir&g
12012 s&\\\${datarootdir}&$datarootdir&g' ;;
12013 esac
12014 _ACEOF
12015
12016 # Neutralize VPATH when `$srcdir' = `.'.
12017 # Shell code in configure.ac might set extrasub.
12018 # FIXME: do we really want to maintain this feature?
12019 cat >>$CONFIG_STATUS <<_ACEOF
12020 sed "$ac_vpsub
12021 $extrasub
12022 _ACEOF
12023 cat >>$CONFIG_STATUS <<\_ACEOF
12024 :t
12025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12026 s&@configure_input@&$configure_input&;t t
12027 s&@top_builddir@&$ac_top_builddir_sub&;t t
12028 s&@srcdir@&$ac_srcdir&;t t
12029 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12030 s&@top_srcdir@&$ac_top_srcdir&;t t
12031 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12032 s&@builddir@&$ac_builddir&;t t
12033 s&@abs_builddir@&$ac_abs_builddir&;t t
12034 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12035 s&@INSTALL@&$ac_INSTALL&;t t
12036 $ac_datarootdir_hack
12037 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12038
12039 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12040 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12041 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12042 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12043 which seems to be undefined. Please make sure it is defined." >&5
12044 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12045 which seems to be undefined. Please make sure it is defined." >&2;}
12046
12047 rm -f "$tmp/stdin"
12048 case $ac_file in
12049 -) cat "$tmp/out"; rm -f "$tmp/out";;
12050 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12051 esac
12052 ;;
12053 :H)
12054 #
12055 # CONFIG_HEADER
12056 #
12057 _ACEOF
12058
12059 # Transform confdefs.h into a sed script `conftest.defines', that
12060 # substitutes the proper values into config.h.in to produce config.h.
12061 rm -f conftest.defines conftest.tail
12062 # First, append a space to every undef/define line, to ease matching.
12063 echo 's/$/ /' >conftest.defines
12064 # Then, protect against being on the right side of a sed subst, or in
12065 # an unquoted here document, in config.status. If some macros were
12066 # called several times there might be several #defines for the same
12067 # symbol, which is useless. But do not sort them, since the last
12068 # AC_DEFINE must be honored.
12069 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12070 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12071 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12072 # PARAMS is the parameter list in the macro definition--in most cases, it's
12073 # just an empty string.
12074 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12075 ac_dB='\\)[ (].*,\\1define\\2'
12076 ac_dC=' '
12077 ac_dD=' ,'
12078
12079 uniq confdefs.h |
12080 sed -n '
12081 t rset
12082 :rset
12083 s/^[ ]*#[ ]*define[ ][ ]*//
12084 t ok
12085 d
12086 :ok
12087 s/[\\&,]/\\&/g
12088 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12089 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12090 ' >>conftest.defines
12091
12092 # Remove the space that was appended to ease matching.
12093 # Then replace #undef with comments. This is necessary, for
12094 # example, in the case of _POSIX_SOURCE, which is predefined and required
12095 # on some systems where configure will not decide to define it.
12096 # (The regexp can be short, since the line contains either #define or #undef.)
12097 echo 's/ $//
12098 s,^[ #]*u.*,/* & */,' >>conftest.defines
12099
12100 # Break up conftest.defines:
12101 ac_max_sed_lines=50
12102
12103 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12104 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12105 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12106 # et cetera.
12107 ac_in='$ac_file_inputs'
12108 ac_out='"$tmp/out1"'
12109 ac_nxt='"$tmp/out2"'
12110
12111 while :
12112 do
12113 # Write a here document:
12114 cat >>$CONFIG_STATUS <<_ACEOF
12115 # First, check the format of the line:
12116 cat >"\$tmp/defines.sed" <<\\CEOF
12117 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12118 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12119 b
12120 :def
12121 _ACEOF
12122 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12123 echo 'CEOF
12124 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12125 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12126 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12127 grep . conftest.tail >/dev/null || break
12128 rm -f conftest.defines
12129 mv conftest.tail conftest.defines
12130 done
12131 rm -f conftest.defines conftest.tail
12132
12133 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12134 cat >>$CONFIG_STATUS <<\_ACEOF
12135 if test x"$ac_file" != x-; then
12136 echo "/* $configure_input */" >"$tmp/config.h"
12137 cat "$ac_result" >>"$tmp/config.h"
12138 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12139 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12140 echo "$as_me: $ac_file is unchanged" >&6;}
12141 else
12142 rm -f $ac_file
12143 mv "$tmp/config.h" $ac_file
12144 fi
12145 else
12146 echo "/* $configure_input */"
12147 cat "$ac_result"
12148 fi
12149 rm -f "$tmp/out12"
12150 # Compute $ac_file's index in $config_headers.
12151 _am_stamp_count=1
12152 for _am_header in $config_headers :; do
12153 case $_am_header in
12154 $ac_file | $ac_file:* )
12155 break ;;
12156 * )
12157 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12158 esac
12159 done
12160 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12161 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12162 X$ac_file : 'X\(//\)[^/]' \| \
12163 X$ac_file : 'X\(//\)$' \| \
12164 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12165 echo X$ac_file |
12166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12167 s//\1/
12168 q
12169 }
12170 /^X\(\/\/\)[^/].*/{
12171 s//\1/
12172 q
12173 }
12174 /^X\(\/\/\)$/{
12175 s//\1/
12176 q
12177 }
12178 /^X\(\/\).*/{
12179 s//\1/
12180 q
12181 }
12182 s/.*/./; q'`/stamp-h$_am_stamp_count
12183 ;;
12184
12185 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12186 echo "$as_me: executing $ac_file commands" >&6;}
12187 ;;
12188 esac
12189
12190
12191 case $ac_file$ac_mode in
12192 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12193 # Strip MF so we end up with the name of the file.
12194 mf=`echo "$mf" | sed -e 's/:.*$//'`
12195 # Check whether this is an Automake generated Makefile or not.
12196 # We used to match only the files named `Makefile.in', but
12197 # some people rename them; so instead we look at the file content.
12198 # Grep'ing the first line is not enough: some people post-process
12199 # each Makefile.in and add a new line on top of each file to say so.
12200 # So let's grep whole file.
12201 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12202 dirpart=`$as_dirname -- "$mf" ||
12203 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12204 X"$mf" : 'X\(//\)[^/]' \| \
12205 X"$mf" : 'X\(//\)$' \| \
12206 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12207 echo X"$mf" |
12208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12209 s//\1/
12210 q
12211 }
12212 /^X\(\/\/\)[^/].*/{
12213 s//\1/
12214 q
12215 }
12216 /^X\(\/\/\)$/{
12217 s//\1/
12218 q
12219 }
12220 /^X\(\/\).*/{
12221 s//\1/
12222 q
12223 }
12224 s/.*/./; q'`
12225 else
12226 continue
12227 fi
12228 # Extract the definition of DEPDIR, am__include, and am__quote
12229 # from the Makefile without running `make'.
12230 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12231 test -z "$DEPDIR" && continue
12232 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12233 test -z "am__include" && continue
12234 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12235 # When using ansi2knr, U may be empty or an underscore; expand it
12236 U=`sed -n 's/^U = //p' < "$mf"`
12237 # Find all dependency output files, they are included files with
12238 # $(DEPDIR) in their names. We invoke sed twice because it is the
12239 # simplest approach to changing $(DEPDIR) to its actual value in the
12240 # expansion.
12241 for file in `sed -n "
12242 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12243 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12244 # Make sure the directory exists.
12245 test -f "$dirpart/$file" && continue
12246 fdir=`$as_dirname -- "$file" ||
12247 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12248 X"$file" : 'X\(//\)[^/]' \| \
12249 X"$file" : 'X\(//\)$' \| \
12250 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12251 echo X"$file" |
12252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12253 s//\1/
12254 q
12255 }
12256 /^X\(\/\/\)[^/].*/{
12257 s//\1/
12258 q
12259 }
12260 /^X\(\/\/\)$/{
12261 s//\1/
12262 q
12263 }
12264 /^X\(\/\).*/{
12265 s//\1/
12266 q
12267 }
12268 s/.*/./; q'`
12269 { as_dir=$dirpart/$fdir
12270 case $as_dir in #(
12271 -*) as_dir=./$as_dir;;
12272 esac
12273 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12274 as_dirs=
12275 while :; do
12276 case $as_dir in #(
12277 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12278 *) as_qdir=$as_dir;;
12279 esac
12280 as_dirs="'$as_qdir' $as_dirs"
12281 as_dir=`$as_dirname -- "$as_dir" ||
12282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12283 X"$as_dir" : 'X\(//\)[^/]' \| \
12284 X"$as_dir" : 'X\(//\)$' \| \
12285 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12286 echo X"$as_dir" |
12287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12288 s//\1/
12289 q
12290 }
12291 /^X\(\/\/\)[^/].*/{
12292 s//\1/
12293 q
12294 }
12295 /^X\(\/\/\)$/{
12296 s//\1/
12297 q
12298 }
12299 /^X\(\/\).*/{
12300 s//\1/
12301 q
12302 }
12303 s/.*/./; q'`
12304 test -d "$as_dir" && break
12305 done
12306 test -z "$as_dirs" || eval "mkdir $as_dirs"
12307 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12308 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12309 { (exit 1); exit 1; }; }; }
12310 # echo "creating $dirpart/$file"
12311 echo '# dummy' > "$dirpart/$file"
12312 done
12313 done
12314 ;;
12315
12316 esac
12317 done # for ac_tag
12318
12319
12320 { (exit 0); exit 0; }
12321 _ACEOF
12322 chmod +x $CONFIG_STATUS
12323 ac_clean_files=$ac_clean_files_save
12324
12325
12326 # configure is writing to config.log, and then calls config.status.
12327 # config.status does its own redirection, appending to config.log.
12328 # Unfortunately, on DOS this fails, as config.log is still kept open
12329 # by configure, so config.status won't be able to write to it; its
12330 # output is simply discarded. So we exec the FD to /dev/null,
12331 # effectively closing config.log, so it can be properly (re)opened and
12332 # appended to by config.status. When coming back to configure, we
12333 # need to make the FD available again.
12334 if test "$no_create" != yes; then
12335 ac_cs_success=:
12336 ac_config_status_args=
12337 test "$silent" = yes &&
12338 ac_config_status_args="$ac_config_status_args --quiet"
12339 exec 5>/dev/null
12340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12341 exec 5>>config.log
12342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12343 # would make configure fail if this is the last instruction.
12344 $ac_cs_success || { (exit 1); exit 1; }
12345 fi
12346
12347
12348
12349
12350 cat <<EOF
12351
12352 Configuration summary
12353 =====================
12354
12355 X3 is now configured as follows:
12356
12357 * Compilation environment
12358
12359 CC = $CC
12360 CFLAGS = $CFLAGS
12361 CPP = $CPP
12362 CPPFLAGS = $CPPFLAGS
12363 LD = $LD
12364 LDFLAGS = $LDFLAGS
12365 LIBS = $LIBS
12366
12367 * X3 options
12368
12369 Debug: $x3_debug
12370 Extra Modules: $module_list
12371 Malloc: $x3_malloc
12372 Protocol: $x3_ircd
12373 Regexp Library TRE $tre_version
12374 Coredumper Library Coredumper $core_version
12375 $ldap_message
12376
12377 Install to: $prefix
12378
12379 Now you can proceed with compiling X3
12380
12381 EOF
12382