]> jfr.im git - irc/evilnet/x3.git/blame - configure
ive been quite busy on helpserv while ive been away, see the ChangeLog
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
3da28d8e 2# From configure.in Id: configure.in 1855 2006-12-20 19:50:50Z rubin .
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
a8b2ad8d 4# Generated by GNU Autoconf 2.60 for X3 1.5.
b3076f16 5#
63c95a47 6# Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 7#
a8b2ad8d 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16
AS
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
17if 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+"$@"}'='"$@"'
a8b2ad8d 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
b3076f16 26fi
a8b2ad8d 27BIN_SH=xpg4; export BIN_SH # for Tru64
b3076f16
AS
28DUALCASE=1; export DUALCASE # for MKS sh
29
a8b2ad8d 30
31# PATH needs CR
32# Avoid depending upon Character Ranges.
33as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36as_cr_digits='0123456789'
37as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39# The user is always right.
40if 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
50fi
51
b3076f16
AS
52# Support unset when possible.
53if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55else
56 as_unset=false
57fi
58
59
a8b2ad8d 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.)
65as_nl='
66'
67IFS=" "" $as_nl"
68
69# Find who we are. Look in the path if we contain no directory separator.
70case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73for as_dir in $PATH
74do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78done
79IFS=$as_save_IFS
80
81 ;;
82esac
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.
85if test "x$as_myself" = x; then
86 as_myself=$0
87fi
88if 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; }
91fi
92
b3076f16 93# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 94for as_var in ENV MAIL MAILPATH
95do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96done
b3076f16
AS
97PS1='$ '
98PS2='> '
99PS4='+ '
100
101# NLS nuisances.
102for 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
106do
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
a8b2ad8d 110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16
AS
111 fi
112done
113
114# Required to use basename.
a8b2ad8d 115if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16
AS
117 as_expr=expr
118else
119 as_expr=false
120fi
121
a8b2ad8d 122if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16
AS
123 as_basename=basename
124else
125 as_basename=false
126fi
127
128
129# Name of the executable.
a8b2ad8d 130as_me=`$as_basename -- "$0" ||
b3076f16
AS
131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 134echo X/"$0" |
a8b2ad8d 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'`
b3076f16 148
a8b2ad8d 149# CDPATH.
150$as_unset CDPATH
b3076f16 151
b3076f16 152
a8b2ad8d 153if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156else
157 as_have_required=no
b3076f16
AS
158fi
159
a8b2ad8d 160 if test $as_have_required = yes && (eval ":
161(as_func_return () {
162 (exit \$1)
163}
164as_func_success () {
165 as_func_return 0
166}
167as_func_failure () {
168 as_func_return 1
169}
170as_func_ret_success () {
171 return 0
172}
173as_func_ret_failure () {
174 return 1
175}
b3076f16 176
a8b2ad8d 177exitcode=0
178if as_func_success; then
179 :
180else
181 exitcode=1
182 echo as_func_success failed.
183fi
b3076f16 184
a8b2ad8d 185if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188fi
189
190if as_func_ret_success; then
191 :
192else
193 exitcode=1
194 echo as_func_ret_success failed.
195fi
196
197if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200fi
201
202if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204else
205 exitcode=1
206 echo positional parameters were not saved.
207fi
208
209test \$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 :
218else
219 as_candidate_shells=
b3076f16 220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a8b2ad8d 221for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b3076f16
AS
222do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
a8b2ad8d 225 case $as_dir in
b3076f16 226 /*)
a8b2ad8d 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
231done
232IFS=$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
240if 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
247else
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249fi
250BIN_SH=xpg4; export BIN_SH # for Tru64
251DUALCASE=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
260if 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
267else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269fi
270BIN_SH=xpg4; export BIN_SH # for Tru64
271DUALCASE=1; export DUALCASE # for MKS sh
272
273:
274(as_func_return () {
275 (exit $1)
276}
277as_func_success () {
278 as_func_return 0
279}
280as_func_failure () {
281 as_func_return 1
282}
283as_func_ret_success () {
284 return 0
285}
286as_func_ret_failure () {
287 return 1
288}
289
290exitcode=0
291if as_func_success; then
292 :
293else
294 exitcode=1
295 echo as_func_success failed.
296fi
297
298if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
301fi
302
303if as_func_ret_success; then
304 :
305else
306 exitcode=1
307 echo as_func_ret_success failed.
308fi
309
310if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
313fi
314
315if ( set x; as_func_ret_success y && test x = "$1" ); then
316 :
317else
318 exitcode=1
319 echo positional parameters were not saved.
320fi
321
322test $exitcode = 0) || { (exit 1); exit 1; }
323
324(
b3076f16
AS
325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
b3076f16 327 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330_ASEOF
331}; then
332 break
333fi
334
335fi
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+"$@"}
345fi
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; }
354fi
355
356
357fi
358
359fi
360
361
362
363(eval "as_func_return () {
364 (exit \$1)
365}
366as_func_success () {
367 as_func_return 0
368}
369as_func_failure () {
370 as_func_return 1
371}
372as_func_ret_success () {
373 return 0
374}
375as_func_ret_failure () {
376 return 1
377}
378
379exitcode=0
380if as_func_success; then
381 :
382else
383 exitcode=1
384 echo as_func_success failed.
385fi
386
387if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
390fi
391
392if as_func_ret_success; then
393 :
394else
395 exitcode=1
396 echo as_func_ret_success failed.
397fi
398
399if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
402fi
403
404if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 :
406else
407 exitcode=1
408 echo positional parameters were not saved.
409fi
410
411test \$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" || {
b3076f16
AS
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
a8b2ad8d 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.
b3076f16 432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 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 |
b3076f16 439 sed '
a8b2ad8d 440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
b3076f16 444 N
a8b2ad8d 445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 447 t loop
a8b2ad8d 448 s/-\n.*//
b3076f16 449 ' >$as_me.lineno &&
a8b2ad8d 450 chmod +x "$as_me.lineno" ||
b3076f16
AS
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
a8b2ad8d 456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
b3076f16
AS
458 # Exit status is that of the last command.
459 exit
460}
461
462
a8b2ad8d 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465else
466 as_dirname=false
467fi
468
469ECHO_C= ECHO_N= ECHO_T=
470case `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';;
b3076f16
AS
478esac
479
a8b2ad8d 480if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16
AS
482 as_expr=expr
483else
484 as_expr=false
485fi
486
487rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 488if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
493fi
b3076f16
AS
494echo >conf$$.file
495if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 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 ||
b3076f16 502 as_ln_s='cp -p'
b3076f16
AS
503elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505else
506 as_ln_s='cp -p'
507fi
a8b2ad8d 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
b3076f16
AS
510
511if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
a8b2ad8d 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.
520cat >conf$$.file <<_ASEOF
521#! /bin/sh
522exit 0
523_ASEOF
524chmod +x conf$$.file
525if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527else
528 as_executable_p=:
529fi
530rm -f conf$$.file
b3076f16
AS
531
532# Sed expression to map a string onto a valid CPP name.
533as_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.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
b3076f16 539
a8b2ad8d 540exec 7<&0 </dev/null 6>&1
b3076f16
AS
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.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
b3076f16
AS
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
a8b2ad8d 551ac_clean_files=
b3076f16 552ac_config_libobj_dir=.
a8b2ad8d 553LIBOBJS=
b3076f16
AS
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558SHELL=${CONFIG_SHELL-/bin/sh}
559
b3076f16 560# Identity of this package.
ceafd592 561PACKAGE_NAME='X3'
562PACKAGE_TARNAME='x3'
63c95a47 563PACKAGE_VERSION='1.5'
564PACKAGE_STRING='X3 1.5'
565PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
b3076f16
AS
566
567ac_unique_file="src/opserv.c"
568# Factoring default headers for most tests.
569ac_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>
a8b2ad8d 596#endif
597#if HAVE_STDINT_H
598# include <stdint.h>
b3076f16
AS
599#endif
600#if HAVE_UNISTD_H
601# include <unistd.h>
602#endif"
603
a8b2ad8d 604ac_subst_vars='SHELL
605PATH_SEPARATOR
606PACKAGE_NAME
607PACKAGE_TARNAME
608PACKAGE_VERSION
609PACKAGE_STRING
610PACKAGE_BUGREPORT
611exec_prefix
612prefix
613program_transform_name
614bindir
615sbindir
616libexecdir
617datarootdir
618datadir
619sysconfdir
620sharedstatedir
621localstatedir
622includedir
623oldincludedir
624docdir
625infodir
626htmldir
627dvidir
628pdfdir
629psdir
630libdir
631localedir
632mandir
633DEFS
634ECHO_C
635ECHO_N
636ECHO_T
637LIBS
638build_alias
639host_alias
640target_alias
641build
642build_cpu
643build_vendor
644build_os
645host
646host_cpu
647host_vendor
648host_os
649target
650target_cpu
651target_vendor
652target_os
653INSTALL_PROGRAM
654INSTALL_SCRIPT
655INSTALL_DATA
656CYGPATH_W
657PACKAGE
658VERSION
659ACLOCAL
660AUTOCONF
661AUTOMAKE
662AUTOHEADER
663MAKEINFO
664install_sh
665STRIP
666INSTALL_STRIP_PROGRAM
667mkdir_p
668AWK
669SET_MAKE
670am__leading_dot
671AMTAR
672am__tar
673am__untar
674MAINTAINER_MODE_TRUE
675MAINTAINER_MODE_FALSE
676MAINT
677CC
678CFLAGS
679LDFLAGS
680CPPFLAGS
681ac_ct_CC
682EXEEXT
683OBJEXT
684DEPDIR
685am__include
686am__quote
687AMDEP_TRUE
688AMDEP_FALSE
689AMDEPBACKSLASH
690CCDEPMODE
691am__fastdepCC_TRUE
692am__fastdepCC_FALSE
693RANLIB
694LN_S
695CPP
696GREP
697EGREP
698MAKER
699ALLOCA
700MODULE_OBJS
701MY_SUBDIRS
702RX_INCLUDES
703RX_LIBS
704TRACK
705LIBOBJS
706LTLIBOBJS'
b3076f16 707ac_subst_files=''
a8b2ad8d 708 ac_precious_vars='build_alias
709host_alias
710target_alias
711CC
712CFLAGS
713LDFLAGS
714CPPFLAGS
715CPP'
716
b3076f16
AS
717
718# Initialize some variables set by options.
719ac_init_help=
720ac_init_version=false
721# The variables have the same names as the options, with
722# dashes changed to underlines.
723cache_file=/dev/null
724exec_prefix=NONE
725no_create=
726no_recursion=
727prefix=NONE
728program_prefix=NONE
729program_suffix=NONE
730program_transform_name=s,x,x,
731silent=
732site=
733srcdir=
734verbose=
735x_includes=NONE
736x_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.
a8b2ad8d 743# (The list follows the same order as the GNU Coding Standards.)
b3076f16
AS
744bindir='${exec_prefix}/bin'
745sbindir='${exec_prefix}/sbin'
746libexecdir='${exec_prefix}/libexec'
a8b2ad8d 747datarootdir='${prefix}/share'
748datadir='${datarootdir}'
b3076f16
AS
749sysconfdir='${prefix}/etc'
750sharedstatedir='${prefix}/com'
751localstatedir='${prefix}/var'
b3076f16
AS
752includedir='${prefix}/include'
753oldincludedir='/usr/include'
a8b2ad8d 754docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755infodir='${datarootdir}/info'
756htmldir='${docdir}'
757dvidir='${docdir}'
758pdfdir='${docdir}'
759psdir='${docdir}'
760libdir='${exec_prefix}/lib'
761localedir='${datarootdir}/locale'
762mandir='${datarootdir}/man'
b3076f16
AS
763
764ac_prev=
a8b2ad8d 765ac_dashdash=
b3076f16
AS
766for ac_option
767do
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
a8b2ad8d 770 eval $ac_prev=\$ac_option
b3076f16
AS
771 ac_prev=
772 continue
773 fi
774
a8b2ad8d 775 case $ac_option in
776 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *) ac_optarg=yes ;;
778 esac
b3076f16
AS
779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
a8b2ad8d 782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
b3076f16
AS
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
a8b2ad8d 806 -datadir | --datadir | --datadi | --datad)
b3076f16 807 ac_prev=datadir ;;
a8b2ad8d 808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b3076f16
AS
809 datadir=$ac_optarg ;;
810
a8b2ad8d 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
b3076f16
AS
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'`
a8b2ad8d 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 ;;
b3076f16
AS
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'`
a8b2ad8d 844 eval enable_$ac_feature=\$ac_optarg ;;
b3076f16
AS
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
a8b2ad8d 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
b3076f16
AS
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
a8b2ad8d 901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
b3076f16 906 -localstatedir | --localstatedir | --localstatedi | --localstated \
a8b2ad8d 907 | --localstate | --localstat | --localsta | --localst | --locals)
b3076f16
AS
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a8b2ad8d 910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b3076f16
AS
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
a8b2ad8d 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
b3076f16
AS
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'`
a8b2ad8d 1041 eval with_$ac_package=\$ac_optarg ;;
b3076f16
AS
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'`
a8b2ad8d 1050 eval with_$ac_package=no ;;
b3076f16
AS
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
1071Try \`$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; }; }
a8b2ad8d 1081 eval $ac_envvar=\$ac_optarg
b3076f16
AS
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
1093done
1094
1095if 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; }; }
1099fi
1100
a8b2ad8d 1101# Be sure to have absolute directory names.
1102for 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
b3076f16 1106do
a8b2ad8d 1107 eval ac_val=\$$ac_var
b3076f16 1108 case $ac_val in
a8b2ad8d 1109 [\\/$]* | ?:[\\/]* ) continue;;
1110 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b3076f16 1111 esac
a8b2ad8d 1112 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1113 { (exit 1); exit 1; }; }
b3076f16
AS
1114done
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.
1119build=$build_alias
1120host=$host_alias
1121target=$target_alias
1122
1123# FIXME: To remove some day.
1124if 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
1132fi
1133
1134ac_tool_prefix=
1135test -n "$host_alias" && ac_tool_prefix=$host_alias-
1136
1137test "$silent" = yes && exec 6>/dev/null
1138
1139
a8b2ad8d 1140ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141ac_ls_di=`ls -di .` &&
1142ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143 { echo "$as_me: error: Working directory cannot be determined" >&2
1144 { (exit 1); exit 1; }; }
1145test "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
b3076f16
AS
1150# Find the source files, if location was not specified.
1151if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
a8b2ad8d 1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$0" ||
b3076f16
AS
1155$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$0" : 'X\(//\)[^/]' \| \
1157 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 1158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 1159echo X"$0" |
a8b2ad8d 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'`
b3076f16 1177 srcdir=$ac_confdir
a8b2ad8d 1178 if test ! -r "$srcdir/$ac_unique_file"; then
b3076f16
AS
1179 srcdir=..
1180 fi
1181else
1182 ac_srcdir_defaulted=no
1183fi
a8b2ad8d 1184if 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
b3076f16 1187 { (exit 1); exit 1; }; }
b3076f16 1188fi
a8b2ad8d 1189ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1190ac_abs_confdir=`(
1191 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
b3076f16 1192 { (exit 1); exit 1; }; }
a8b2ad8d 1193 pwd)`
1194# When building in place, set srcdir=.
1195if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 srcdir=.
1197fi
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.
1201case $srcdir in
1202*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203esac
1204for 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}
1209done
b3076f16
AS
1210
1211#
1212# Report the --help message.
1213#
1214if 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
63c95a47 1218\`configure' configures X3 1.5 to adapt to many kinds of systems.
b3076f16
AS
1219
1220Usage: $0 [OPTION]... [VAR=VALUE]...
1221
1222To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223VAR=VALUE. See below for descriptions of some of the useful variables.
1224
1225Defaults for the options are specified in brackets.
1226
1227Configuration:
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
b3076f16
AS
1238Installation 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
1244By default, \`make install' will install all the files in
1245\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247for instance \`--prefix=\$HOME'.
1248
1249For better control, use the options below.
1250
1251Fine 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]
b3076f16
AS
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]
a8b2ad8d 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]
b3076f16
AS
1271_ACEOF
1272
1273 cat <<\_ACEOF
1274
1275Program 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
1280System 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
1285fi
1286
1287if test -n "$ac_init_help"; then
1288 case $ac_init_help in
63c95a47 1289 short | recursive ) echo "Configuration of X3 1.5:";;
b3076f16
AS
1290 esac
1291 cat <<\_ACEOF
1292
1293Optional Features:
1294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 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
b3076f16
AS
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
1305Optional 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:
b8cb2a14 1309 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 1310 --with-protocol=name Choose IRC dialect to support; one of:
7827220c 1311 p10 (the default)
b3076f16 1312 --without-getopt Disables building of the GNU getopt library
a8b2ad8d 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.
b3076f16
AS
1318
1319Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
a8b2ad8d 1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
b3076f16
AS
1326 CPP C preprocessor
1327
1328Use these variables to override the choices made by `configure' or to help
1329it to find libraries and programs with nonstandard names/locations.
1330
63c95a47 1331Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1332_ACEOF
a8b2ad8d 1333ac_status=$?
b3076f16
AS
1334fi
1335
1336if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
b3076f16 1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a8b2ad8d 1339 test -d "$ac_dir" || continue
b3076f16
AS
1340 ac_builddir=.
1341
a8b2ad8d 1342case "$ac_dir" in
1343.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344*)
b3076f16 1345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 esac ;;
1352esac
1353ac_abs_top_builddir=$ac_pwd
1354ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355# for backward compatibility:
1356ac_top_builddir=$ac_top_build_prefix
b3076f16
AS
1357
1358case $srcdir in
a8b2ad8d 1359 .) # We are building in place.
b3076f16 1360 ac_srcdir=.
a8b2ad8d 1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1364 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1367 *) # Relative name.
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1371esac
a8b2ad8d 1372ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1377 echo &&
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16
AS
1382 else
1383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1384 fi || ac_status=$?
1385 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16
AS
1386 done
1387fi
1388
a8b2ad8d 1389test -n "$ac_init_help" && exit $ac_status
b3076f16
AS
1390if $ac_init_version; then
1391 cat <<\_ACEOF
63c95a47 1392X3 configure 1.5
a8b2ad8d 1393generated by GNU Autoconf 2.60
b3076f16 1394
a8b2ad8d 1395Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13962002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16
AS
1397This configure script is free software; the Free Software Foundation
1398gives unlimited permission to copy, distribute and modify it.
1399_ACEOF
a8b2ad8d 1400 exit
b3076f16 1401fi
a8b2ad8d 1402cat >config.log <<_ACEOF
b3076f16
AS
1403This file contains any messages produced by compilers while
1404running configure, to aid debugging if configure makes a mistake.
1405
63c95a47 1406It was created by X3 $as_me 1.5, which was
a8b2ad8d 1407generated by GNU Autoconf 2.60. Invocation command line was
b3076f16
AS
1408
1409 $ $0 $@
1410
1411_ACEOF
a8b2ad8d 1412exec 5>>config.log
b3076f16
AS
1413{
1414cat <<_ASUNAME
1415## --------- ##
1416## Platform. ##
1417## --------- ##
1418
1419hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423uname -v = `(uname -v) 2>/dev/null || echo unknown`
1424
1425/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1427
1428/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
a8b2ad8d 1431/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b3076f16
AS
1432/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1435
1436_ASUNAME
1437
1438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439for as_dir in $PATH
1440do
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 echo "PATH: $as_dir"
1444done
a8b2ad8d 1445IFS=$as_save_IFS
b3076f16
AS
1446
1447} >&5
1448
1449cat >&5 <<_ACEOF
1450
1451
1452## ----------- ##
1453## Core tests. ##
1454## ----------- ##
1455
1456_ACEOF
1457
1458
1459# Keep a trace of the command line.
1460# Strip out --no-create and --no-recursion so they do not pile up.
1461# Strip out --silent because we don't want to record it for future runs.
1462# Also quote any args containing shell meta-characters.
1463# Make two passes to allow for proper duplicate-argument suppression.
1464ac_configure_args=
1465ac_configure_args0=
1466ac_configure_args1=
b3076f16
AS
1467ac_must_keep_next=false
1468for ac_pass in 1 2
1469do
1470 for ac_arg
1471 do
1472 case $ac_arg in
1473 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1476 continue ;;
a8b2ad8d 1477 *\'*)
b3076f16
AS
1478 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 esac
1480 case $ac_pass in
1481 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1482 2)
1483 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1484 if test $ac_must_keep_next = true; then
1485 ac_must_keep_next=false # Got value, back to normal.
1486 else
1487 case $ac_arg in
1488 *=* | --config-cache | -C | -disable-* | --disable-* \
1489 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1490 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1491 | -with-* | --with-* | -without-* | --without-* | --x)
1492 case "$ac_configure_args0 " in
1493 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494 esac
1495 ;;
1496 -* ) ac_must_keep_next=true ;;
1497 esac
1498 fi
a8b2ad8d 1499 ac_configure_args="$ac_configure_args '$ac_arg'"
b3076f16
AS
1500 ;;
1501 esac
1502 done
1503done
1504$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1505$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1506
1507# When interrupted or exit'd, cleanup temporary files, and complete
1508# config.log. We remove comments because anyway the quotes in there
1509# would cause problems or look ugly.
a8b2ad8d 1510# WARNING: Use '\'' to represent an apostrophe within the trap.
1511# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16
AS
1512trap 'exit_status=$?
1513 # Save into config.log some information that might help in debugging.
1514 {
1515 echo
1516
1517 cat <<\_ASBOX
1518## ---------------- ##
1519## Cache variables. ##
1520## ---------------- ##
1521_ASBOX
1522 echo
1523 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 1524(
1525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526 eval ac_val=\$$ac_var
1527 case $ac_val in #(
1528 *${as_nl}*)
1529 case $ac_var in #(
1530 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532 esac
1533 case $ac_var in #(
1534 _ | IFS | as_nl) ;; #(
1535 *) $as_unset $ac_var ;;
1536 esac ;;
1537 esac
1538 done
b3076f16 1539 (set) 2>&1 |
a8b2ad8d 1540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541 *${as_nl}ac_space=\ *)
b3076f16 1542 sed -n \
a8b2ad8d 1543 "s/'\''/'\''\\\\'\'''\''/g;
1544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545 ;; #(
b3076f16 1546 *)
a8b2ad8d 1547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 1548 ;;
a8b2ad8d 1549 esac |
1550 sort
1551)
b3076f16
AS
1552 echo
1553
1554 cat <<\_ASBOX
1555## ----------------- ##
1556## Output variables. ##
1557## ----------------- ##
1558_ASBOX
1559 echo
1560 for ac_var in $ac_subst_vars
1561 do
a8b2ad8d 1562 eval ac_val=\$$ac_var
1563 case $ac_val in
1564 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 esac
1566 echo "$ac_var='\''$ac_val'\''"
b3076f16
AS
1567 done | sort
1568 echo
1569
1570 if test -n "$ac_subst_files"; then
1571 cat <<\_ASBOX
a8b2ad8d 1572## ------------------- ##
1573## File substitutions. ##
1574## ------------------- ##
b3076f16
AS
1575_ASBOX
1576 echo
1577 for ac_var in $ac_subst_files
1578 do
a8b2ad8d 1579 eval ac_val=\$$ac_var
1580 case $ac_val in
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582 esac
1583 echo "$ac_var='\''$ac_val'\''"
b3076f16
AS
1584 done | sort
1585 echo
1586 fi
1587
1588 if test -s confdefs.h; then
1589 cat <<\_ASBOX
1590## ----------- ##
1591## confdefs.h. ##
1592## ----------- ##
1593_ASBOX
1594 echo
a8b2ad8d 1595 cat confdefs.h
b3076f16
AS
1596 echo
1597 fi
1598 test "$ac_signal" != 0 &&
1599 echo "$as_me: caught signal $ac_signal"
1600 echo "$as_me: exit $exit_status"
1601 } >&5
a8b2ad8d 1602 rm -f core *.core core.conftest.* &&
1603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 1604 exit $exit_status
a8b2ad8d 1605' 0
b3076f16
AS
1606for ac_signal in 1 2 13 15; do
1607 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608done
1609ac_signal=0
1610
1611# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 1612rm -f -r conftest* confdefs.h
b3076f16
AS
1613
1614# Predefined preprocessor variables.
1615
1616cat >>confdefs.h <<_ACEOF
1617#define PACKAGE_NAME "$PACKAGE_NAME"
1618_ACEOF
1619
1620
1621cat >>confdefs.h <<_ACEOF
1622#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623_ACEOF
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define PACKAGE_VERSION "$PACKAGE_VERSION"
1628_ACEOF
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_STRING "$PACKAGE_STRING"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638_ACEOF
1639
1640
1641# Let the site file select an alternate cache file if it wants to.
1642# Prefer explicitly selected file to automatically selected ones.
a8b2ad8d 1643if test -n "$CONFIG_SITE"; then
1644 set x "$CONFIG_SITE"
1645elif test "x$prefix" != xNONE; then
1646 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647else
1648 set x "$ac_default_prefix/share/config.site" \
1649 "$ac_default_prefix/etc/config.site"
b3076f16 1650fi
a8b2ad8d 1651shift
1652for ac_site_file
1653do
b3076f16
AS
1654 if test -r "$ac_site_file"; then
1655 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656echo "$as_me: loading site script $ac_site_file" >&6;}
1657 sed 's/^/| /' "$ac_site_file" >&5
1658 . "$ac_site_file"
1659 fi
1660done
1661
1662if test -r "$cache_file"; then
1663 # Some versions of bash will fail to source /dev/null (special
1664 # files actually), so we avoid doing that.
1665 if test -f "$cache_file"; then
1666 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667echo "$as_me: loading cache $cache_file" >&6;}
1668 case $cache_file in
a8b2ad8d 1669 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1670 *) . "./$cache_file";;
b3076f16
AS
1671 esac
1672 fi
1673else
1674 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675echo "$as_me: creating cache $cache_file" >&6;}
1676 >$cache_file
1677fi
1678
1679# Check that the precious variables saved in the cache have kept the same
1680# value.
1681ac_cache_corrupted=false
a8b2ad8d 1682for ac_var in $ac_precious_vars; do
b3076f16
AS
1683 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1684 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 1685 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1686 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16
AS
1687 case $ac_old_set,$ac_new_set in
1688 set,)
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1690echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1692 ,set)
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1694echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695 ac_cache_corrupted=: ;;
1696 ,);;
1697 *)
1698 if test "x$ac_old_val" != "x$ac_new_val"; then
1699 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1700echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1702echo "$as_me: former value: $ac_old_val" >&2;}
1703 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1704echo "$as_me: current value: $ac_new_val" >&2;}
1705 ac_cache_corrupted=:
1706 fi;;
1707 esac
1708 # Pass precious variables to config.status.
1709 if test "$ac_new_set" = set; then
1710 case $ac_new_val in
a8b2ad8d 1711 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16
AS
1712 *) ac_arg=$ac_var=$ac_new_val ;;
1713 esac
1714 case " $ac_configure_args " in
1715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1716 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1717 esac
1718 fi
1719done
1720if $ac_cache_corrupted; then
1721 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1722echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1723 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1724echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725 { (exit 1); exit 1; }; }
1726fi
1727
b3076f16
AS
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
a8b2ad8d 1752ac_ext=c
1753ac_cpp='$CPP $CPPFLAGS'
1754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16
AS
1757
1758
ceafd592 1759CODENAME=X3
a8b2ad8d 1760ac_config_headers="$ac_config_headers src/config.h"
b3076f16
AS
1761
1762
1763ac_aux_dir=
a8b2ad8d 1764for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1765 if test -f "$ac_dir/install-sh"; then
b3076f16
AS
1766 ac_aux_dir=$ac_dir
1767 ac_install_sh="$ac_aux_dir/install-sh -c"
1768 break
a8b2ad8d 1769 elif test -f "$ac_dir/install.sh"; then
b3076f16
AS
1770 ac_aux_dir=$ac_dir
1771 ac_install_sh="$ac_aux_dir/install.sh -c"
1772 break
a8b2ad8d 1773 elif test -f "$ac_dir/shtool"; then
b3076f16
AS
1774 ac_aux_dir=$ac_dir
1775 ac_install_sh="$ac_aux_dir/shtool install -c"
1776 break
1777 fi
1778done
1779if test -z "$ac_aux_dir"; then
a8b2ad8d 1780 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1781echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b3076f16
AS
1782 { (exit 1); exit 1; }; }
1783fi
a8b2ad8d 1784
1785# These three variables are undocumented and unsupported,
1786# and are intended to be withdrawn in a future Autoconf release.
1787# They can cause serious problems if a builder's source tree is in a directory
1788# whose full name contains unusual characters.
1789ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1790ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1791ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1792
b3076f16
AS
1793
1794# Make sure we can run config.sub.
a8b2ad8d 1795$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1796 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1797echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b3076f16
AS
1798 { (exit 1); exit 1; }; }
1799
a8b2ad8d 1800{ echo "$as_me:$LINENO: checking build system type" >&5
1801echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b3076f16
AS
1802if test "${ac_cv_build+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
a8b2ad8d 1805 ac_build_alias=$build_alias
1806test "x$ac_build_alias" = x &&
1807 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1808test "x$ac_build_alias" = x &&
b3076f16
AS
1809 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1810echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1811 { (exit 1); exit 1; }; }
a8b2ad8d 1812ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1813 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1814echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b3076f16
AS
1815 { (exit 1); exit 1; }; }
1816
1817fi
a8b2ad8d 1818{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1819echo "${ECHO_T}$ac_cv_build" >&6; }
1820case $ac_cv_build in
1821*-*-*) ;;
1822*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1823echo "$as_me: error: invalid value of canonical build" >&2;}
1824 { (exit 1); exit 1; }; };;
1825esac
b3076f16 1826build=$ac_cv_build
a8b2ad8d 1827ac_save_IFS=$IFS; IFS='-'
1828set x $ac_cv_build
1829shift
1830build_cpu=$1
1831build_vendor=$2
1832shift; shift
1833# Remember, the first character of IFS is used to create $*,
1834# except with old shells:
1835build_os=$*
1836IFS=$ac_save_IFS
1837case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1838
1839
1840{ echo "$as_me:$LINENO: checking host system type" >&5
1841echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b3076f16
AS
1842if test "${ac_cv_host+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
a8b2ad8d 1845 if test "x$host_alias" = x; then
1846 ac_cv_host=$ac_cv_build
1847else
1848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1849 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1850echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b3076f16 1851 { (exit 1); exit 1; }; }
a8b2ad8d 1852fi
b3076f16
AS
1853
1854fi
a8b2ad8d 1855{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856echo "${ECHO_T}$ac_cv_host" >&6; }
1857case $ac_cv_host in
1858*-*-*) ;;
1859*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1860echo "$as_me: error: invalid value of canonical host" >&2;}
1861 { (exit 1); exit 1; }; };;
1862esac
b3076f16 1863host=$ac_cv_host
a8b2ad8d 1864ac_save_IFS=$IFS; IFS='-'
1865set x $ac_cv_host
1866shift
1867host_cpu=$1
1868host_vendor=$2
1869shift; shift
1870# Remember, the first character of IFS is used to create $*,
1871# except with old shells:
1872host_os=$*
1873IFS=$ac_save_IFS
1874case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1875
1876
1877{ echo "$as_me:$LINENO: checking target system type" >&5
1878echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b3076f16
AS
1879if test "${ac_cv_target+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
a8b2ad8d 1882 if test "x$target_alias" = x; then
1883 ac_cv_target=$ac_cv_host
1884else
1885 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1886 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1887echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b3076f16 1888 { (exit 1); exit 1; }; }
a8b2ad8d 1889fi
b3076f16
AS
1890
1891fi
a8b2ad8d 1892{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1893echo "${ECHO_T}$ac_cv_target" >&6; }
1894case $ac_cv_target in
1895*-*-*) ;;
1896*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1897echo "$as_me: error: invalid value of canonical target" >&2;}
1898 { (exit 1); exit 1; }; };;
1899esac
b3076f16 1900target=$ac_cv_target
a8b2ad8d 1901ac_save_IFS=$IFS; IFS='-'
1902set x $ac_cv_target
1903shift
1904target_cpu=$1
1905target_vendor=$2
1906shift; shift
1907# Remember, the first character of IFS is used to create $*,
1908# except with old shells:
1909target_os=$*
1910IFS=$ac_save_IFS
1911case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16
AS
1912
1913
1914# The aliases save the names the user supplied, while $host etc.
1915# will get canonicalized.
1916test -n "$target_alias" &&
1917 test "$program_prefix$program_suffix$program_transform_name" = \
1918 NONENONEs,x,x, &&
1919 program_prefix=${target_alias}-
ec1a68c8 1920am__api_version="1.9"
b3076f16
AS
1921# Find a good install program. We prefer a C program (faster),
1922# so one script is as good as another. But avoid the broken or
1923# incompatible versions:
1924# SysV /etc/install, /usr/sbin/install
1925# SunOS /usr/etc/install
1926# IRIX /sbin/install
1927# AIX /bin/install
1928# AmigaOS /C/install, which installs bootblocks on floppy discs
1929# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1930# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1931# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1932# OS/2's system install, which has a completely different semantic
1933# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 1934{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1935echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16
AS
1936if test -z "$INSTALL"; then
1937if test "${ac_cv_path_install+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 # Account for people who put trailing slashes in PATH elements.
1946case $as_dir/ in
1947 ./ | .// | /cC/* | \
1948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1950 /usr/ucb/* ) ;;
1951 *)
1952 # OSF1 and SCO ODT 3.0 have their own names for install.
1953 # Don't use installbsd from OSF since it installs stuff as root
1954 # by default.
1955 for ac_prog in ginstall scoinst install; do
1956 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 1957 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16
AS
1958 if test $ac_prog = install &&
1959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1960 # AIX install. It has an incompatible calling convention.
1961 :
1962 elif test $ac_prog = install &&
1963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1964 # program-specific install script used by HP pwplus--don't use.
1965 :
1966 else
1967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1968 break 3
1969 fi
1970 fi
1971 done
1972 done
1973 ;;
1974esac
1975done
a8b2ad8d 1976IFS=$as_save_IFS
b3076f16
AS
1977
1978
1979fi
1980 if test "${ac_cv_path_install+set}" = set; then
1981 INSTALL=$ac_cv_path_install
1982 else
a8b2ad8d 1983 # As a last resort, use the slow shell script. Don't cache a
1984 # value for INSTALL within a source directory, because that will
b3076f16 1985 # break other packages using the cache if that directory is
a8b2ad8d 1986 # removed, or if the value is a relative name.
b3076f16
AS
1987 INSTALL=$ac_install_sh
1988 fi
1989fi
a8b2ad8d 1990{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1991echo "${ECHO_T}$INSTALL" >&6; }
b3076f16
AS
1992
1993# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1994# It thinks the first close brace ends the variable substitution.
1995test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1996
1997test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1998
1999test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2000
a8b2ad8d 2001{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2002echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
b3076f16
AS
2003# Just in case
2004sleep 1
ec1a68c8 2005echo timestamp > conftest.file
b3076f16
AS
2006# Do `set' in a subshell so we don't clobber the current shell's
2007# arguments. Must try -L first in case configure is actually a
2008# symlink; some systems play weird games with the mod time of symlinks
2009# (eg FreeBSD returns the mod time of the symlink's containing
2010# directory).
2011if (
ec1a68c8 2012 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16
AS
2013 if test "$*" = "X"; then
2014 # -L didn't work.
ec1a68c8 2015 set X `ls -t $srcdir/configure conftest.file`
b3076f16 2016 fi
ec1a68c8 2017 rm -f conftest.file
2018 if test "$*" != "X $srcdir/configure conftest.file" \
2019 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16
AS
2020
2021 # If neither matched, then we have a broken ls. This can happen
2022 # if, for instance, CONFIG_SHELL is bash and it inherits a
2023 # broken ls alias from the environment. This has actually
2024 # happened. Such a system could not be considered "sane".
2025 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2026alias in your environment" >&5
2027echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2028alias in your environment" >&2;}
2029 { (exit 1); exit 1; }; }
2030 fi
2031
ec1a68c8 2032 test "$2" = conftest.file
b3076f16
AS
2033 )
2034then
2035 # Ok.
2036 :
2037else
2038 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2039Check your system clock" >&5
2040echo "$as_me: error: newly created file is older than distributed files!
2041Check your system clock" >&2;}
2042 { (exit 1); exit 1; }; }
2043fi
a8b2ad8d 2044{ echo "$as_me:$LINENO: result: yes" >&5
2045echo "${ECHO_T}yes" >&6; }
b3076f16 2046test "$program_prefix" != NONE &&
a8b2ad8d 2047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16
AS
2048# Use a double $ so make ignores it.
2049test "$program_suffix" != NONE &&
a8b2ad8d 2050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b3076f16
AS
2051# Double any \ or $. echo might interpret backslashes.
2052# By default was `s,x,x', remove it if useless.
2053cat <<\_ACEOF >conftest.sed
2054s/[\\$]/&&/g;s/;s,x,x,$//
2055_ACEOF
2056program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
a8b2ad8d 2057rm -f conftest.sed
b3076f16 2058
ec1a68c8 2059# expand $ac_aux_dir to an absolute path
2060am_aux_dir=`cd $ac_aux_dir && pwd`
2061
2062test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2063# Use eval to expand $SHELL
2064if eval "$MISSING --run true"; then
2065 am_missing_run="$MISSING --run "
2066else
2067 am_missing_run=
2068 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2069echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2070fi
2071
2072if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2073 # We used to keeping the `.' as first argument, in order to
2074 # allow $(mkdir_p) to be used without argument. As in
2075 # $(mkdir_p) $(somedir)
2076 # where $(somedir) is conditionally defined. However this is wrong
2077 # for two reasons:
2078 # 1. if the package is installed by a user who cannot write `.'
2079 # make install will fail,
2080 # 2. the above comment should most certainly read
2081 # $(mkdir_p) $(DESTDIR)$(somedir)
2082 # so it does not work when $(somedir) is undefined and
2083 # $(DESTDIR) is not.
2084 # To support the latter case, we have to write
2085 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2086 # so the `.' trick is pointless.
2087 mkdir_p='mkdir -p --'
2088else
2089 # On NextStep and OpenStep, the `mkdir' command does not
2090 # recognize any option. It will interpret all options as
2091 # directories to create, and then abort because `.' already
2092 # exists.
2093 for d in ./-p ./--version;
2094 do
2095 test -d $d && rmdir $d
2096 done
2097 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2098 if test -f "$ac_aux_dir/mkinstalldirs"; then
2099 mkdir_p='$(mkinstalldirs)'
2100 else
2101 mkdir_p='$(install_sh) -d'
2102 fi
2103fi
2104
2105for ac_prog in gawk mawk nawk awk
2106do
2107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2108set dummy $ac_prog; ac_word=$2
a8b2ad8d 2109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2111if test "${ac_cv_prog_AWK+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114 if test -n "$AWK"; then
2115 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2116else
2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH
2119do
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2124 ac_cv_prog_AWK="$ac_prog"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 break 2
2127 fi
2128done
2129done
a8b2ad8d 2130IFS=$as_save_IFS
ec1a68c8 2131
2132fi
2133fi
2134AWK=$ac_cv_prog_AWK
2135if test -n "$AWK"; then
a8b2ad8d 2136 { echo "$as_me:$LINENO: result: $AWK" >&5
2137echo "${ECHO_T}$AWK" >&6; }
ec1a68c8 2138else
a8b2ad8d 2139 { echo "$as_me:$LINENO: result: no" >&5
2140echo "${ECHO_T}no" >&6; }
ec1a68c8 2141fi
2142
a8b2ad8d 2143
ec1a68c8 2144 test -n "$AWK" && break
2145done
2146
a8b2ad8d 2147{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2148echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2149set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2150if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 cat >conftest.make <<\_ACEOF
a8b2ad8d 2154SHELL = /bin/sh
b3076f16 2155all:
a8b2ad8d 2156 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16
AS
2157_ACEOF
2158# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2159case `${MAKE-make} -f conftest.make 2>/dev/null` in
2160 *@@@%%%=?*=@@@%%%*)
2161 eval ac_cv_prog_make_${ac_make}_set=yes;;
2162 *)
2163 eval ac_cv_prog_make_${ac_make}_set=no;;
2164esac
b3076f16
AS
2165rm -f conftest.make
2166fi
a8b2ad8d 2167if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2168 { echo "$as_me:$LINENO: result: yes" >&5
2169echo "${ECHO_T}yes" >&6; }
b3076f16
AS
2170 SET_MAKE=
2171else
a8b2ad8d 2172 { echo "$as_me:$LINENO: result: no" >&5
2173echo "${ECHO_T}no" >&6; }
b3076f16
AS
2174 SET_MAKE="MAKE=${MAKE-make}"
2175fi
2176
ec1a68c8 2177rm -rf .tst 2>/dev/null
2178mkdir .tst 2>/dev/null
2179if test -d .tst; then
2180 am__leading_dot=.
2181else
2182 am__leading_dot=_
2183fi
2184rmdir .tst 2>/dev/null
b3076f16 2185
ec1a68c8 2186# test to see if srcdir already configured
2187if test "`cd $srcdir && pwd`" != "`pwd`" &&
2188 test -f $srcdir/config.status; then
b3076f16
AS
2189 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2190echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2191 { (exit 1); exit 1; }; }
2192fi
2193
ec1a68c8 2194# test whether we have cygpath
2195if test -z "$CYGPATH_W"; then
2196 if (cygpath --version) >/dev/null 2>/dev/null; then
2197 CYGPATH_W='cygpath -w'
2198 else
2199 CYGPATH_W=echo
2200 fi
2201fi
2202
2203
2204# Define the identity of the package.
ceafd592 2205 PACKAGE='x3'
63c95a47 2206 VERSION='1.5'
ec1a68c8 2207
2208
b3076f16
AS
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE "$PACKAGE"
2211_ACEOF
2212
2213
2214cat >>confdefs.h <<_ACEOF
2215#define VERSION "$VERSION"
2216_ACEOF
2217
ec1a68c8 2218# Some tools Automake needs.
b3076f16 2219
ec1a68c8 2220ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2221
ec1a68c8 2222
2223AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2224
2225
2226AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2227
2228
2229AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2230
2231
2232MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2233
2234install_sh=${install_sh-"$am_aux_dir/install-sh"}
2235
2236# Installed binaries are usually stripped using `strip' when the user
2237# run `make install-strip'. However `strip' might not be the right
2238# tool to use in cross-compilation environments, therefore Automake
2239# will honor the `STRIP' environment variable to overrule this program.
2240if test "$cross_compiling" != no; then
2241 if test -n "$ac_tool_prefix"; then
2242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2243set dummy ${ac_tool_prefix}strip; ac_word=$2
a8b2ad8d 2244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2246if test "${ac_cv_prog_STRIP+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 2248else
ec1a68c8 2249 if test -n "$STRIP"; then
2250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2251else
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2262 fi
2263done
2264done
a8b2ad8d 2265IFS=$as_save_IFS
b3076f16 2266
ec1a68c8 2267fi
2268fi
2269STRIP=$ac_cv_prog_STRIP
2270if test -n "$STRIP"; then
a8b2ad8d 2271 { echo "$as_me:$LINENO: result: $STRIP" >&5
2272echo "${ECHO_T}$STRIP" >&6; }
b3076f16 2273else
a8b2ad8d 2274 { echo "$as_me:$LINENO: result: no" >&5
2275echo "${ECHO_T}no" >&6; }
b3076f16 2276fi
b2cf3d66 2277
a8b2ad8d 2278
b3076f16 2279fi
ec1a68c8 2280if test -z "$ac_cv_prog_STRIP"; then
2281 ac_ct_STRIP=$STRIP
2282 # Extract the first word of "strip", so it can be a program name with args.
2283set dummy strip; ac_word=$2
a8b2ad8d 2284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2286if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289 if test -n "$ac_ct_STRIP"; then
2290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2291else
2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293for as_dir in $PATH
2294do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2299 ac_cv_prog_ac_ct_STRIP="strip"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2302 fi
2303done
2304done
a8b2ad8d 2305IFS=$as_save_IFS
b3076f16 2306
ec1a68c8 2307fi
2308fi
2309ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2310if test -n "$ac_ct_STRIP"; then
a8b2ad8d 2311 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2312echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b3076f16 2313else
a8b2ad8d 2314 { echo "$as_me:$LINENO: result: no" >&5
2315echo "${ECHO_T}no" >&6; }
b3076f16
AS
2316fi
2317
a8b2ad8d 2318 if test "x$ac_ct_STRIP" = x; then
2319 STRIP=":"
2320 else
2321 case $cross_compiling:$ac_tool_warned in
2322yes:)
2323{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2324whose name does not start with the host triplet. If you think this
2325configuration is useful to you, please write to autoconf@gnu.org." >&5
2326echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2327whose name does not start with the host triplet. If you think this
2328configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2329ac_tool_warned=yes ;;
2330esac
2331 STRIP=$ac_ct_STRIP
2332 fi
b2cf3d66 2333else
ec1a68c8 2334 STRIP="$ac_cv_prog_STRIP"
b3076f16 2335fi
b3076f16 2336
ec1a68c8 2337fi
2338INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2339
2340# We need awk for the "check" target. The system "awk" is bad on
2341# some platforms.
2342# Always define AMTAR for backward compatibility.
2343
2344AMTAR=${AMTAR-"${am_missing_run}tar"}
2345
2346am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2347
2348
2349
2350
b3076f16 2351
a8b2ad8d 2352{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2353echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2354 # Check whether --enable-maintainer-mode was given.
b3076f16 2355if test "${enable_maintainer_mode+set}" = set; then
a8b2ad8d 2356 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16
AS
2357else
2358 USE_MAINTAINER_MODE=no
a8b2ad8d 2359fi
2360
2361 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2362echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
b3076f16
AS
2363
2364
2365if test $USE_MAINTAINER_MODE = yes; then
2366 MAINTAINER_MODE_TRUE=
2367 MAINTAINER_MODE_FALSE='#'
2368else
2369 MAINTAINER_MODE_TRUE='#'
2370 MAINTAINER_MODE_FALSE=
2371fi
ec1a68c8 2372
b3076f16
AS
2373 MAINT=$MAINTAINER_MODE_TRUE
2374
2375
2376
ec1a68c8 2377DEPDIR="${am__leading_dot}deps"
2378
a8b2ad8d 2379ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2380
2381
2382am_make=${MAKE-make}
2383cat > confinc << 'END'
2384am__doit:
2385 @echo done
2386.PHONY: am__doit
2387END
2388# If we don't find an include directive, just comment out the code.
a8b2ad8d 2389{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2390echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
ec1a68c8 2391am__include="#"
2392am__quote=
2393_am_result=none
2394# First try GNU make style include.
2395echo "include confinc" > confmf
2396# We grep out `Entering directory' and `Leaving directory'
2397# messages which can occur if `w' ends up in MAKEFLAGS.
2398# In particular we don't look at `^make:' because GNU make might
2399# be invoked under some other name (usually "gmake"), in which
2400# case it prints its new name instead of `make'.
2401if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2402 am__include=include
2403 am__quote=
2404 _am_result=GNU
2405fi
2406# Now try BSD make style include.
2407if test "$am__include" = "#"; then
2408 echo '.include "confinc"' > confmf
2409 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2410 am__include=.include
2411 am__quote="\""
2412 _am_result=BSD
2413 fi
2414fi
2415
2416
a8b2ad8d 2417{ echo "$as_me:$LINENO: result: $_am_result" >&5
2418echo "${ECHO_T}$_am_result" >&6; }
ec1a68c8 2419rm -f confinc confmf
2420
a8b2ad8d 2421# Check whether --enable-dependency-tracking was given.
ec1a68c8 2422if test "${enable_dependency_tracking+set}" = set; then
a8b2ad8d 2423 enableval=$enable_dependency_tracking;
2424fi
ec1a68c8 2425
ec1a68c8 2426if test "x$enable_dependency_tracking" != xno; then
2427 am_depcomp="$ac_aux_dir/depcomp"
2428 AMDEPBACKSLASH='\'
2429fi
2430
2431
2432if test "x$enable_dependency_tracking" != xno; then
2433 AMDEP_TRUE=
2434 AMDEP_FALSE='#'
2435else
2436 AMDEP_TRUE='#'
2437 AMDEP_FALSE=
2438fi
2439
2440
2441
b3076f16
AS
2442ac_ext=c
2443ac_cpp='$CPP $CPPFLAGS'
2444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2449set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 2450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
2452if test "${ac_cv_prog_CC+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457else
2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
2465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2468 fi
2469done
2470done
a8b2ad8d 2471IFS=$as_save_IFS
b3076f16
AS
2472
2473fi
2474fi
2475CC=$ac_cv_prog_CC
2476if test -n "$CC"; then
a8b2ad8d 2477 { echo "$as_me:$LINENO: result: $CC" >&5
2478echo "${ECHO_T}$CC" >&6; }
b3076f16 2479else
a8b2ad8d 2480 { echo "$as_me:$LINENO: result: no" >&5
2481echo "${ECHO_T}no" >&6; }
b3076f16
AS
2482fi
2483
a8b2ad8d 2484
b3076f16
AS
2485fi
2486if test -z "$ac_cv_prog_CC"; then
2487 ac_ct_CC=$CC
2488 # Extract the first word of "gcc", so it can be a program name with args.
2489set dummy gcc; ac_word=$2
a8b2ad8d 2490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
2492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495 if test -n "$ac_ct_CC"; then
2496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
2505 ac_cv_prog_ac_ct_CC="gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509done
2510done
a8b2ad8d 2511IFS=$as_save_IFS
b3076f16
AS
2512
2513fi
2514fi
2515ac_ct_CC=$ac_cv_prog_ac_ct_CC
2516if test -n "$ac_ct_CC"; then
a8b2ad8d 2517 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2518echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2519else
a8b2ad8d 2520 { echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6; }
b3076f16
AS
2522fi
2523
a8b2ad8d 2524 if test "x$ac_ct_CC" = x; then
2525 CC=""
2526 else
2527 case $cross_compiling:$ac_tool_warned in
2528yes:)
2529{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2530whose name does not start with the host triplet. If you think this
2531configuration is useful to you, please write to autoconf@gnu.org." >&5
2532echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2533whose name does not start with the host triplet. If you think this
2534configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2535ac_tool_warned=yes ;;
2536esac
2537 CC=$ac_ct_CC
2538 fi
b3076f16
AS
2539else
2540 CC="$ac_cv_prog_CC"
2541fi
2542
2543if test -z "$CC"; then
a8b2ad8d 2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 2546set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 2547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
2549if test "${ac_cv_prog_CC+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
2562 ac_cv_prog_CC="${ac_tool_prefix}cc"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566done
2567done
a8b2ad8d 2568IFS=$as_save_IFS
b3076f16
AS
2569
2570fi
2571fi
2572CC=$ac_cv_prog_CC
2573if test -n "$CC"; then
a8b2ad8d 2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575echo "${ECHO_T}$CC" >&6; }
b3076f16 2576else
a8b2ad8d 2577 { echo "$as_me:$LINENO: result: no" >&5
2578echo "${ECHO_T}no" >&6; }
b3076f16
AS
2579fi
2580
b3076f16 2581
a8b2ad8d 2582 fi
b3076f16
AS
2583fi
2584if test -z "$CC"; then
2585 # Extract the first word of "cc", so it can be a program name with args.
2586set dummy cc; ac_word=$2
a8b2ad8d 2587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
2589if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595 ac_prog_rejected=no
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
2603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2604 ac_prog_rejected=yes
2605 continue
2606 fi
2607 ac_cv_prog_CC="cc"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611done
2612done
a8b2ad8d 2613IFS=$as_save_IFS
b3076f16
AS
2614
2615if test $ac_prog_rejected = yes; then
2616 # We found a bogon in the path, so make sure we never use it.
2617 set dummy $ac_cv_prog_CC
2618 shift
2619 if test $# != 0; then
2620 # We chose a different compiler from the bogus one.
2621 # However, it has the same basename, so the bogon will be chosen
2622 # first if we set CC to just the basename; use the full file name.
2623 shift
2624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2625 fi
2626fi
2627fi
2628fi
2629CC=$ac_cv_prog_CC
2630if test -n "$CC"; then
a8b2ad8d 2631 { echo "$as_me:$LINENO: result: $CC" >&5
2632echo "${ECHO_T}$CC" >&6; }
b3076f16 2633else
a8b2ad8d 2634 { echo "$as_me:$LINENO: result: no" >&5
2635echo "${ECHO_T}no" >&6; }
b3076f16
AS
2636fi
2637
a8b2ad8d 2638
b3076f16
AS
2639fi
2640if test -z "$CC"; then
2641 if test -n "$ac_tool_prefix"; then
a8b2ad8d 2642 for ac_prog in cl.exe
b3076f16
AS
2643 do
2644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 2646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
2648if test "${ac_cv_prog_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
2661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
a8b2ad8d 2667IFS=$as_save_IFS
b3076f16
AS
2668
2669fi
2670fi
2671CC=$ac_cv_prog_CC
2672if test -n "$CC"; then
a8b2ad8d 2673 { echo "$as_me:$LINENO: result: $CC" >&5
2674echo "${ECHO_T}$CC" >&6; }
b3076f16 2675else
a8b2ad8d 2676 { echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6; }
b3076f16
AS
2678fi
2679
a8b2ad8d 2680
b3076f16
AS
2681 test -n "$CC" && break
2682 done
2683fi
2684if test -z "$CC"; then
2685 ac_ct_CC=$CC
a8b2ad8d 2686 for ac_prog in cl.exe
b3076f16
AS
2687do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689set dummy $ac_prog; ac_word=$2
a8b2ad8d 2690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
2692if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695 if test -n "$ac_ct_CC"; then
2696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
2705 ac_cv_prog_ac_ct_CC="$ac_prog"
2706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709done
2710done
a8b2ad8d 2711IFS=$as_save_IFS
b3076f16
AS
2712
2713fi
2714fi
2715ac_ct_CC=$ac_cv_prog_ac_ct_CC
2716if test -n "$ac_ct_CC"; then
a8b2ad8d 2717 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2718echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2719else
a8b2ad8d 2720 { echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6; }
b3076f16
AS
2722fi
2723
a8b2ad8d 2724
b3076f16
AS
2725 test -n "$ac_ct_CC" && break
2726done
2727
a8b2ad8d 2728 if test "x$ac_ct_CC" = x; then
2729 CC=""
2730 else
2731 case $cross_compiling:$ac_tool_warned in
2732yes:)
2733{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2734whose name does not start with the host triplet. If you think this
2735configuration is useful to you, please write to autoconf@gnu.org." >&5
2736echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2737whose name does not start with the host triplet. If you think this
2738configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2739ac_tool_warned=yes ;;
2740esac
2741 CC=$ac_ct_CC
2742 fi
b3076f16
AS
2743fi
2744
2745fi
2746
2747
2748test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2749See \`config.log' for more details." >&5
2750echo "$as_me: error: no acceptable C compiler found in \$PATH
2751See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2753
2754# Provide some information about the compiler.
a8b2ad8d 2755echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 2756ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 2757{ (ac_try="$ac_compiler --version >&5"
2758case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
2762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler --version >&5") 2>&5
b3076f16
AS
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
a8b2ad8d 2767{ (ac_try="$ac_compiler -v >&5"
2768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -v >&5") 2>&5
b3076f16
AS
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
a8b2ad8d 2777{ (ac_try="$ac_compiler -V >&5"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler -V >&5") 2>&5
b3076f16
AS
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2787
2788cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h. */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h. */
2794
2795int
2796main ()
2797{
2798
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803ac_clean_files_save=$ac_clean_files
2804ac_clean_files="$ac_clean_files a.out a.exe b.out"
2805# Try to create an executable without -o first, disregard a.out.
2806# It will help us diagnose broken compilers, and finding out an intuition
2807# of exeext.
a8b2ad8d 2808{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2809echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b3076f16 2810ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a8b2ad8d 2811#
2812# List of possible output files, starting from the most likely.
2813# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2814# only as a last resort. b.out is created by i960 compilers.
2815ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2816#
2817# The IRIX 6 linker writes into existing files which may not be
2818# executable, retaining their permissions. Remove them first so a
2819# subsequent execution test works.
2820ac_rmfiles=
2821for ac_file in $ac_files
2822do
2823 case $ac_file in
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2825 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2826 esac
2827done
2828rm -f $ac_rmfiles
2829
2830if { (ac_try="$ac_link_default"
2831case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834esac
2835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_link_default") 2>&5
b3076f16
AS
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
a8b2ad8d 2840 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2841# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2842# in a Makefile. We should not override ac_cv_exeext if it was cached,
2843# so that the user can short-circuit this test for compilers unknown to
2844# Autoconf.
2845for ac_file in $ac_files
b3076f16
AS
2846do
2847 test -f "$ac_file" || continue
2848 case $ac_file in
a8b2ad8d 2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b3076f16
AS
2850 ;;
2851 [ab].out )
2852 # We found the default executable, but exeext='' is most
2853 # certainly right.
2854 break;;
2855 *.* )
a8b2ad8d 2856 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2857 then :; else
2858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2859 fi
2860 # We set ac_cv_exeext here because the later test for it is not
2861 # safe: cross compilers may not add the suffix if given an `-o'
2862 # argument, so we may need to know it at that point already.
2863 # Even if this section looks crufty: it has the advantage of
2864 # actually working.
b3076f16
AS
2865 break;;
2866 * )
2867 break;;
2868 esac
2869done
a8b2ad8d 2870test "$ac_cv_exeext" = no && ac_cv_exeext=
2871
b3076f16
AS
2872else
2873 echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2877See \`config.log' for more details." >&5
2878echo "$as_me: error: C compiler cannot create executables
2879See \`config.log' for more details." >&2;}
2880 { (exit 77); exit 77; }; }
2881fi
2882
2883ac_exeext=$ac_cv_exeext
a8b2ad8d 2884{ echo "$as_me:$LINENO: result: $ac_file" >&5
2885echo "${ECHO_T}$ac_file" >&6; }
b3076f16 2886
a8b2ad8d 2887# Check that the compiler produces executables we can run. If not, either
b3076f16 2888# the compiler is broken, or we cross compile.
a8b2ad8d 2889{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2890echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b3076f16
AS
2891# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2892# If not cross compiling, check that we can run a simple program.
2893if test "$cross_compiling" != yes; then
2894 if { ac_try='./$ac_file'
a8b2ad8d 2895 { (case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_try") 2>&5
b3076f16
AS
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 cross_compiling=no
2905 else
2906 if test "$cross_compiling" = maybe; then
2907 cross_compiling=yes
2908 else
2909 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2910If you meant to cross compile, use \`--host'.
2911See \`config.log' for more details." >&5
2912echo "$as_me: error: cannot run C compiled programs.
2913If you meant to cross compile, use \`--host'.
2914See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2916 fi
2917 fi
2918fi
a8b2ad8d 2919{ echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6; }
b3076f16
AS
2921
2922rm -f a.out a.exe conftest$ac_cv_exeext b.out
2923ac_clean_files=$ac_clean_files_save
a8b2ad8d 2924# Check that the compiler produces executables we can run. If not, either
b3076f16 2925# the compiler is broken, or we cross compile.
a8b2ad8d 2926{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2927echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2928{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2929echo "${ECHO_T}$cross_compiling" >&6; }
2930
2931{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2932echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2933if { (ac_try="$ac_link"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
2938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_link") 2>&5
b3076f16
AS
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2945# work properly (i.e., refer to `conftest.exe'), while it won't with
2946# `rm'.
2947for ac_file in conftest.exe conftest conftest.*; do
2948 test -f "$ac_file" || continue
2949 case $ac_file in
a8b2ad8d 2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b3076f16 2951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16
AS
2952 break;;
2953 * ) break;;
2954 esac
2955done
2956else
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958See \`config.log' for more details." >&5
2959echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2962fi
2963
2964rm -f conftest$ac_cv_exeext
a8b2ad8d 2965{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966echo "${ECHO_T}$ac_cv_exeext" >&6; }
b3076f16
AS
2967
2968rm -f conftest.$ac_ext
2969EXEEXT=$ac_cv_exeext
2970ac_exeext=$EXEEXT
a8b2ad8d 2971{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b3076f16
AS
2973if test "${ac_cv_objext+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975else
2976 cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
2981/* end confdefs.h. */
2982
2983int
2984main ()
2985{
2986
2987 ;
2988 return 0;
2989}
2990_ACEOF
2991rm -f conftest.o conftest.obj
a8b2ad8d 2992if { (ac_try="$ac_compile"
2993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>&5
b3076f16
AS
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; then
a8b2ad8d 3002 for ac_file in conftest.o conftest.obj conftest.*; do
3003 test -f "$ac_file" || continue;
b3076f16 3004 case $ac_file in
a8b2ad8d 3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b3076f16
AS
3006 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3007 break;;
3008 esac
3009done
3010else
3011 echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3015See \`config.log' for more details." >&5
3016echo "$as_me: error: cannot compute suffix of object files: cannot compile
3017See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }
3019fi
3020
3021rm -f conftest.$ac_cv_objext conftest.$ac_ext
3022fi
a8b2ad8d 3023{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3024echo "${ECHO_T}$ac_cv_objext" >&6; }
b3076f16
AS
3025OBJEXT=$ac_cv_objext
3026ac_objext=$OBJEXT
a8b2ad8d 3027{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3028echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16
AS
3029if test "${ac_cv_c_compiler_gnu+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032 cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h. */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h. */
3038
3039int
3040main ()
3041{
3042#ifndef __GNUC__
3043 choke me
3044#endif
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050rm -f conftest.$ac_objext
a8b2ad8d 3051if { (ac_try="$ac_compile"
3052case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
a8b2ad8d 3064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
b3076f16
AS
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
b3076f16
AS
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 ac_compiler_gnu=yes
3085else
3086 echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
a8b2ad8d 3089 ac_compiler_gnu=no
b3076f16 3090fi
a8b2ad8d 3091
3092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16
AS
3093ac_cv_c_compiler_gnu=$ac_compiler_gnu
3094
3095fi
a8b2ad8d 3096{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3097echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16
AS
3098GCC=`test $ac_compiler_gnu = yes && echo yes`
3099ac_test_CFLAGS=${CFLAGS+set}
3100ac_save_CFLAGS=$CFLAGS
a8b2ad8d 3101{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3102echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16
AS
3103if test "${ac_cv_prog_cc_g+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105else
a8b2ad8d 3106 ac_save_c_werror_flag=$ac_c_werror_flag
3107 ac_c_werror_flag=yes
3108 ac_cv_prog_cc_g=no
3109 CFLAGS="-g"
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_prog_cc_g=yes
3160else
3161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 CFLAGS=""
3165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
3180rm -f conftest.$ac_objext
3181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 :
3215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 ac_c_werror_flag=$ac_save_c_werror_flag
3220 CFLAGS="-g"
3221 cat >conftest.$ac_ext <<_ACEOF
b3076f16
AS
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227
3228int
3229main ()
3230{
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext
a8b2ad8d 3237if { (ac_try="$ac_compile"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
a8b2ad8d 3250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
b3076f16
AS
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3261 { (case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_try") 2>&5
b3076f16
AS
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_prog_cc_g=yes
3271else
3272 echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
a8b2ad8d 3275
3276fi
3277
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279fi
3280
3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3282fi
a8b2ad8d 3283
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3286fi
a8b2ad8d 3287{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3288echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16
AS
3289if test "$ac_test_CFLAGS" = set; then
3290 CFLAGS=$ac_save_CFLAGS
3291elif test $ac_cv_prog_cc_g = yes; then
3292 if test "$GCC" = yes; then
3293 CFLAGS="-g -O2"
3294 else
3295 CFLAGS="-g"
3296 fi
3297else
3298 if test "$GCC" = yes; then
3299 CFLAGS="-O2"
3300 else
3301 CFLAGS=
3302 fi
3303fi
a8b2ad8d 3304{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3305echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3306if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16
AS
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
a8b2ad8d 3309 ac_cv_prog_cc_c89=no
b3076f16
AS
3310ac_save_CC=$CC
3311cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
3317#include <stdarg.h>
3318#include <stdio.h>
3319#include <sys/types.h>
3320#include <sys/stat.h>
3321/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322struct buf { int x; };
3323FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324static char *e (p, i)
3325 char **p;
3326 int i;
3327{
3328 return p[i];
3329}
3330static char *f (char * (*g) (char **, int), char **p, ...)
3331{
3332 char *s;
3333 va_list v;
3334 va_start (v,p);
3335 s = g (p, va_arg (v,int));
3336 va_end (v);
3337 return s;
3338}
3339
3340/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3343 as 'x'. The following induces an error, until -std is added to get
b3076f16
AS
3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3346 that's true only with -std. */
b3076f16
AS
3347int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3348
a8b2ad8d 3349/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3351#define FOO(x) 'x'
3352int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3353
b3076f16
AS
3354int test (int i, double x);
3355struct s1 {int (*f) (int a);};
3356struct s2 {int (*f) (double a);};
3357int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358int argc;
3359char **argv;
3360int
3361main ()
3362{
3363return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3364 ;
3365 return 0;
3366}
3367_ACEOF
a8b2ad8d 3368for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16
AS
3370do
3371 CC="$ac_save_CC $ac_arg"
3372 rm -f conftest.$ac_objext
a8b2ad8d 3373if { (ac_try="$ac_compile"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
a8b2ad8d 3386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
b3076f16
AS
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; } &&
3396 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3397 { (case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_try") 2>&5
b3076f16
AS
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
a8b2ad8d 3406 ac_cv_prog_cc_c89=$ac_arg
b3076f16
AS
3407else
3408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
a8b2ad8d 3411
b3076f16 3412fi
a8b2ad8d 3413
3414rm -f core conftest.err conftest.$ac_objext
3415 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3416done
a8b2ad8d 3417rm -f conftest.$ac_ext
b3076f16
AS
3418CC=$ac_save_CC
3419
3420fi
a8b2ad8d 3421# AC_CACHE_VAL
3422case "x$ac_cv_prog_cc_c89" in
3423 x)
3424 { echo "$as_me:$LINENO: result: none needed" >&5
3425echo "${ECHO_T}none needed" >&6; } ;;
3426 xno)
3427 { echo "$as_me:$LINENO: result: unsupported" >&5
3428echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 3429 *)
a8b2ad8d 3430 CC="$CC $ac_cv_prog_cc_c89"
3431 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3432echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16
AS
3433esac
3434
b3076f16 3435
b3076f16
AS
3436ac_ext=c
3437ac_cpp='$CPP $CPPFLAGS'
3438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441
ec1a68c8 3442depcc="$CC" am_compiler_list=
3443
a8b2ad8d 3444{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3445echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 3446if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3450 # We make a subdir and do the tests there. Otherwise we can end up
3451 # making bogus files that we don't know about and never remove. For
3452 # instance it was reported that on HP-UX the gcc test will end up
3453 # making a dummy file named `D' -- because `-MD' means `put the output
3454 # in D'.
3455 mkdir conftest.dir
3456 # Copy depcomp to subdir because otherwise we won't find it if we're
3457 # using a relative directory.
3458 cp "$am_depcomp" conftest.dir
3459 cd conftest.dir
3460 # We will build objects and dependencies in a subdirectory because
3461 # it helps to detect inapplicable dependency modes. For instance
3462 # both Tru64's cc and ICC support -MD to output dependencies as a
3463 # side effect of compilation, but ICC will put the dependencies in
3464 # the current directory while Tru64 will put them in the object
3465 # directory.
3466 mkdir sub
3467
3468 am_cv_CC_dependencies_compiler_type=none
3469 if test "$am_compiler_list" = ""; then
3470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3471 fi
3472 for depmode in $am_compiler_list; do
3473 # Setup a source with many dependencies, because some compilers
3474 # like to wrap large dependency lists on column 80 (with \), and
3475 # we should not choose a depcomp mode which is confused by this.
3476 #
3477 # We need to recreate these files for each test, as the compiler may
3478 # overwrite some of them when testing with obscure command lines.
3479 # This happens at least with the AIX C compiler.
3480 : > sub/conftest.c
3481 for i in 1 2 3 4 5 6; do
3482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3484 # Solaris 8's {/usr,}/bin/sh.
3485 touch sub/conftst$i.h
3486 done
3487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3488
3489 case $depmode in
3490 nosideeffect)
3491 # after this tag, mechanisms are not by side-effect, so they'll
3492 # only be used when explicitly requested
3493 if test "x$enable_dependency_tracking" = xyes; then
3494 continue
3495 else
3496 break
3497 fi
3498 ;;
3499 none) break ;;
3500 esac
3501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3502 # mode. It turns out that the SunPro C++ compiler does not properly
3503 # handle `-M -o', and we need to detect this.
3504 if depmode=$depmode \
3505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3508 >/dev/null 2>conftest.err &&
3509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3510 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3512 # icc doesn't choke on unknown options, it will just issue warnings
3513 # or remarks (even with -Werror). So we grep stderr for any message
3514 # that says an option was ignored or not supported.
3515 # When given -MP, icc 7.0 and 7.1 complain thusly:
3516 # icc: Command line warning: ignoring option '-M'; no argument required
3517 # The diagnosis changed in icc 8.0:
3518 # icc: Command line remark: option '-MP' not supported
3519 if (grep 'ignoring option' conftest.err ||
3520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3521 am_cv_CC_dependencies_compiler_type=$depmode
3522 break
3523 fi
3524 fi
3525 done
3526
3527 cd ..
3528 rm -rf conftest.dir
3529else
3530 am_cv_CC_dependencies_compiler_type=none
3531fi
3532
3533fi
a8b2ad8d 3534{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3535echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3536CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3537
3538
3539
3540if
3541 test "x$enable_dependency_tracking" != xno \
3542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3543 am__fastdepCC_TRUE=
3544 am__fastdepCC_FALSE='#'
3545else
3546 am__fastdepCC_TRUE='#'
3547 am__fastdepCC_FALSE=
3548fi
3549
3550
b3076f16 3551
a8b2ad8d 3552{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3553echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
b3076f16
AS
3554if test "${ac_cv_type_signal+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563#include <sys/types.h>
3564#include <signal.h>
b3076f16
AS
3565
3566int
3567main ()
3568{
a8b2ad8d 3569return *(signal (0, 0)) (0) == 1;
b3076f16
AS
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574rm -f conftest.$ac_objext
a8b2ad8d 3575if { (ac_try="$ac_compile"
3576case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579esac
3580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
a8b2ad8d 3588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3589 { (case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
3593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_try") 2>&5
b3076f16
AS
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; } &&
3598 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3599 { (case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602esac
3603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_try") 2>&5
b3076f16
AS
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; }; then
a8b2ad8d 3608 ac_cv_type_signal=int
b3076f16
AS
3609else
3610 echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
a8b2ad8d 3613 ac_cv_type_signal=void
b3076f16 3614fi
a8b2ad8d 3615
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3617fi
a8b2ad8d 3618{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3619echo "${ECHO_T}$ac_cv_type_signal" >&6; }
b3076f16
AS
3620
3621cat >>confdefs.h <<_ACEOF
3622#define RETSIGTYPE $ac_cv_type_signal
3623_ACEOF
3624
3625
a8b2ad8d 3626{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3627echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
b3076f16
AS
3628if test "${ac_cv_c_const+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 cat >conftest.$ac_ext <<_ACEOF
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
3636/* end confdefs.h. */
3637
3638int
3639main ()
3640{
3641/* FIXME: Include the comments suggested by Paul. */
3642#ifndef __cplusplus
3643 /* Ultrix mips cc rejects this. */
3644 typedef int charset[2];
3645 const charset x;
3646 /* SunOS 4.1.1 cc rejects this. */
3647 char const *const *ccp;
3648 char **p;
3649 /* NEC SVR4.0.2 mips cc rejects this. */
3650 struct point {int x, y;};
3651 static struct point const zero = {0,0};
3652 /* AIX XL C 1.02.0.0 rejects this.
3653 It does not let you subtract one const X* pointer from another in
3654 an arm of an if-expression whose if-part is not a constant
3655 expression */
3656 const char *g = "string";
3657 ccp = &g + (g ? g-g : 0);
3658 /* HPUX 7.0 cc rejects these. */
3659 ++ccp;
3660 p = (char**) ccp;
3661 ccp = (char const *const *) p;
3662 { /* SCO 3.2v4 cc rejects this. */
3663 char *t;
3664 char const *s = 0 ? (char *) 0 : (char const *) 0;
3665
3666 *t++ = 0;
a8b2ad8d 3667 if (s) return 0;
b3076f16
AS
3668 }
3669 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3670 int x[] = {25, 17};
3671 const int *foo = &x[0];
3672 ++foo;
3673 }
3674 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3675 typedef const int *iptr;
3676 iptr p = 0;
3677 ++p;
3678 }
3679 { /* AIX XL C 1.02.0.0 rejects this saying
3680 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3681 struct s { int j; const int *ap[3]; };
3682 struct s *b; b->j = 5;
3683 }
3684 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3685 const int foo = 10;
a8b2ad8d 3686 if (!foo) return 0;
b3076f16 3687 }
a8b2ad8d 3688 return !x[0] && !zero.x;
b3076f16
AS
3689#endif
3690
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
a8b2ad8d 3696if { (ac_try="$ac_compile"
3697case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700esac
3701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
a8b2ad8d 3709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3710 { (case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
3714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715 (eval "$ac_try") 2>&5
b3076f16
AS
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3720 { (case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
3724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_try") 2>&5
b3076f16
AS
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_c_const=yes
3730else
3731 echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
a8b2ad8d 3734 ac_cv_c_const=no
b3076f16 3735fi
a8b2ad8d 3736
3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3738fi
a8b2ad8d 3739{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3740echo "${ECHO_T}$ac_cv_c_const" >&6; }
b3076f16
AS
3741if test $ac_cv_c_const = no; then
3742
3743cat >>confdefs.h <<\_ACEOF
3744#define const
3745_ACEOF
3746
3747fi
3748
a8b2ad8d 3749{ echo "$as_me:$LINENO: checking for inline" >&5
3750echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
b3076f16
AS
3751if test "${ac_cv_c_inline+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 ac_cv_c_inline=no
3755for ac_kw in inline __inline__ __inline; do
3756 cat >conftest.$ac_ext <<_ACEOF
3757/* confdefs.h. */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h. */
3762#ifndef __cplusplus
3763typedef int foo_t;
3764static $ac_kw foo_t static_foo () {return 0; }
3765$ac_kw foo_t foo () {return 0; }
3766#endif
3767
3768_ACEOF
3769rm -f conftest.$ac_objext
a8b2ad8d 3770if { (ac_try="$ac_compile"
3771case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774esac
3775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
a8b2ad8d 3783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3784 { (case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787esac
3788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_try") 2>&5
b3076f16
AS
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3794 { (case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797esac
3798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_try") 2>&5
b3076f16
AS
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
a8b2ad8d 3803 ac_cv_c_inline=$ac_kw
b3076f16
AS
3804else
3805 echo "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
3807
a8b2ad8d 3808
b3076f16 3809fi
a8b2ad8d 3810
3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 test "$ac_cv_c_inline" != no && break
b3076f16
AS
3813done
3814
3815fi
a8b2ad8d 3816{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3817echo "${ECHO_T}$ac_cv_c_inline" >&6; }
b3076f16
AS
3818
3819
3820case $ac_cv_c_inline in
3821 inline | yes) ;;
3822 *)
3823 case $ac_cv_c_inline in
3824 no) ac_val=;;
3825 *) ac_val=$ac_cv_c_inline;;
3826 esac
3827 cat >>confdefs.h <<_ACEOF
3828#ifndef __cplusplus
3829#define inline $ac_val
3830#endif
3831_ACEOF
3832 ;;
3833esac
3834
3835
3836for ac_prog in gawk mawk nawk awk
3837do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839set dummy $ac_prog; ac_word=$2
a8b2ad8d 3840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
3842if test "${ac_cv_prog_AWK+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845 if test -n "$AWK"; then
3846 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
3855 ac_cv_prog_AWK="$ac_prog"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
3860done
a8b2ad8d 3861IFS=$as_save_IFS
b3076f16
AS
3862
3863fi
3864fi
3865AWK=$ac_cv_prog_AWK
3866if test -n "$AWK"; then
a8b2ad8d 3867 { echo "$as_me:$LINENO: result: $AWK" >&5
3868echo "${ECHO_T}$AWK" >&6; }
b3076f16 3869else
a8b2ad8d 3870 { echo "$as_me:$LINENO: result: no" >&5
3871echo "${ECHO_T}no" >&6; }
b3076f16
AS
3872fi
3873
a8b2ad8d 3874
b3076f16
AS
3875 test -n "$AWK" && break
3876done
3877
3878ac_ext=c
3879ac_cpp='$CPP $CPPFLAGS'
3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3885set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 3886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
3888if test "${ac_cv_prog_CC+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3893else
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
3901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905done
3906done
a8b2ad8d 3907IFS=$as_save_IFS
b3076f16
AS
3908
3909fi
3910fi
3911CC=$ac_cv_prog_CC
3912if test -n "$CC"; then
a8b2ad8d 3913 { echo "$as_me:$LINENO: result: $CC" >&5
3914echo "${ECHO_T}$CC" >&6; }
b3076f16 3915else
a8b2ad8d 3916 { echo "$as_me:$LINENO: result: no" >&5
3917echo "${ECHO_T}no" >&6; }
b3076f16
AS
3918fi
3919
a8b2ad8d 3920
b3076f16
AS
3921fi
3922if test -z "$ac_cv_prog_CC"; then
3923 ac_ct_CC=$CC
3924 # Extract the first word of "gcc", so it can be a program name with args.
3925set dummy gcc; ac_word=$2
a8b2ad8d 3926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
3928if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930else
3931 if test -n "$ac_ct_CC"; then
3932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
3941 ac_cv_prog_ac_ct_CC="gcc"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945done
3946done
a8b2ad8d 3947IFS=$as_save_IFS
b3076f16
AS
3948
3949fi
3950fi
3951ac_ct_CC=$ac_cv_prog_ac_ct_CC
3952if test -n "$ac_ct_CC"; then
a8b2ad8d 3953 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3954echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 3955else
a8b2ad8d 3956 { echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6; }
b3076f16
AS
3958fi
3959
a8b2ad8d 3960 if test "x$ac_ct_CC" = x; then
3961 CC=""
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964yes:)
3965{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3966whose name does not start with the host triplet. If you think this
3967configuration is useful to you, please write to autoconf@gnu.org." >&5
3968echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3969whose name does not start with the host triplet. If you think this
3970configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3971ac_tool_warned=yes ;;
3972esac
3973 CC=$ac_ct_CC
3974 fi
b3076f16
AS
3975else
3976 CC="$ac_cv_prog_CC"
3977fi
3978
3979if test -z "$CC"; then
a8b2ad8d 3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3982set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 3983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
3985if test "${ac_cv_prog_CC+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987else
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
3990else
3991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992for as_dir in $PATH
3993do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
3998 ac_cv_prog_CC="${ac_tool_prefix}cc"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002done
4003done
a8b2ad8d 4004IFS=$as_save_IFS
b3076f16
AS
4005
4006fi
4007fi
4008CC=$ac_cv_prog_CC
4009if test -n "$CC"; then
a8b2ad8d 4010 { echo "$as_me:$LINENO: result: $CC" >&5
4011echo "${ECHO_T}$CC" >&6; }
b3076f16 4012else
a8b2ad8d 4013 { echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6; }
b3076f16
AS
4015fi
4016
b3076f16 4017
a8b2ad8d 4018 fi
b3076f16
AS
4019fi
4020if test -z "$CC"; then
4021 # Extract the first word of "cc", so it can be a program name with args.
4022set dummy cc; ac_word=$2
a8b2ad8d 4023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
4025if test "${ac_cv_prog_CC+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030else
4031 ac_prog_rejected=no
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
4039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4040 ac_prog_rejected=yes
4041 continue
4042 fi
4043 ac_cv_prog_CC="cc"
4044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047done
4048done
a8b2ad8d 4049IFS=$as_save_IFS
b3076f16
AS
4050
4051if test $ac_prog_rejected = yes; then
4052 # We found a bogon in the path, so make sure we never use it.
4053 set dummy $ac_cv_prog_CC
4054 shift
4055 if test $# != 0; then
4056 # We chose a different compiler from the bogus one.
4057 # However, it has the same basename, so the bogon will be chosen
4058 # first if we set CC to just the basename; use the full file name.
4059 shift
4060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4061 fi
4062fi
4063fi
4064fi
4065CC=$ac_cv_prog_CC
4066if test -n "$CC"; then
a8b2ad8d 4067 { echo "$as_me:$LINENO: result: $CC" >&5
4068echo "${ECHO_T}$CC" >&6; }
b3076f16 4069else
a8b2ad8d 4070 { echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6; }
b3076f16
AS
4072fi
4073
a8b2ad8d 4074
b3076f16
AS
4075fi
4076if test -z "$CC"; then
4077 if test -n "$ac_tool_prefix"; then
a8b2ad8d 4078 for ac_prog in cl.exe
b3076f16
AS
4079 do
4080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 4082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
4084if test "${ac_cv_prog_CC+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
4097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101done
4102done
a8b2ad8d 4103IFS=$as_save_IFS
b3076f16
AS
4104
4105fi
4106fi
4107CC=$ac_cv_prog_CC
4108if test -n "$CC"; then
a8b2ad8d 4109 { echo "$as_me:$LINENO: result: $CC" >&5
4110echo "${ECHO_T}$CC" >&6; }
b3076f16 4111else
a8b2ad8d 4112 { echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6; }
b3076f16
AS
4114fi
4115
a8b2ad8d 4116
b3076f16
AS
4117 test -n "$CC" && break
4118 done
4119fi
4120if test -z "$CC"; then
4121 ac_ct_CC=$CC
a8b2ad8d 4122 for ac_prog in cl.exe
b3076f16
AS
4123do
4124 # Extract the first word of "$ac_prog", so it can be a program name with args.
4125set dummy $ac_prog; ac_word=$2
a8b2ad8d 4126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16
AS
4128if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131 if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16
AS
4141 ac_cv_prog_ac_ct_CC="$ac_prog"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145done
4146done
a8b2ad8d 4147IFS=$as_save_IFS
b3076f16
AS
4148
4149fi
4150fi
4151ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152if test -n "$ac_ct_CC"; then
a8b2ad8d 4153 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4154echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 4155else
a8b2ad8d 4156 { echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6; }
b3076f16
AS
4158fi
4159
a8b2ad8d 4160
b3076f16
AS
4161 test -n "$ac_ct_CC" && break
4162done
4163
a8b2ad8d 4164 if test "x$ac_ct_CC" = x; then
4165 CC=""
4166 else
4167 case $cross_compiling:$ac_tool_warned in
4168yes:)
4169{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4170whose name does not start with the host triplet. If you think this
4171configuration is useful to you, please write to autoconf@gnu.org." >&5
4172echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4173whose name does not start with the host triplet. If you think this
4174configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4175ac_tool_warned=yes ;;
4176esac
4177 CC=$ac_ct_CC
4178 fi
b3076f16
AS
4179fi
4180
4181fi
4182
4183
4184test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4185See \`config.log' for more details." >&5
4186echo "$as_me: error: no acceptable C compiler found in \$PATH
4187See \`config.log' for more details." >&2;}
4188 { (exit 1); exit 1; }; }
4189
4190# Provide some information about the compiler.
a8b2ad8d 4191echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 4192ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 4193{ (ac_try="$ac_compiler --version >&5"
4194case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compiler --version >&5") 2>&5
b3076f16
AS
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }
a8b2ad8d 4203{ (ac_try="$ac_compiler -v >&5"
4204case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compiler -v >&5") 2>&5
b3076f16
AS
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
a8b2ad8d 4213{ (ac_try="$ac_compiler -V >&5"
4214case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compiler -V >&5") 2>&5
b3076f16
AS
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }
4223
a8b2ad8d 4224{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4225echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16
AS
4226if test "${ac_cv_c_compiler_gnu+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235
4236int
4237main ()
4238{
4239#ifndef __GNUC__
4240 choke me
4241#endif
4242
4243 ;
4244 return 0;
4245}
4246_ACEOF
4247rm -f conftest.$ac_objext
a8b2ad8d 4248if { (ac_try="$ac_compile"
4249case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
a8b2ad8d 4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
b3076f16
AS
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
b3076f16
AS
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_compiler_gnu=yes
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
a8b2ad8d 4286 ac_compiler_gnu=no
b3076f16 4287fi
a8b2ad8d 4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16
AS
4290ac_cv_c_compiler_gnu=$ac_compiler_gnu
4291
4292fi
a8b2ad8d 4293{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4294echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16
AS
4295GCC=`test $ac_compiler_gnu = yes && echo yes`
4296ac_test_CFLAGS=${CFLAGS+set}
4297ac_save_CFLAGS=$CFLAGS
a8b2ad8d 4298{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4299echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16
AS
4300if test "${ac_cv_prog_cc_g+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
a8b2ad8d 4303 ac_save_c_werror_flag=$ac_c_werror_flag
4304 ac_c_werror_flag=yes
4305 ac_cv_prog_cc_g=no
4306 CFLAGS="-g"
4307 cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313
4314int
4315main ()
4316{
4317
4318 ;
4319 return 0;
4320}
4321_ACEOF
4322rm -f conftest.$ac_objext
4323if { (ac_try="$ac_compile"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4337 { (case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340esac
4341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_try") 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; } &&
4346 { ac_try='test -s conftest.$ac_objext'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_prog_cc_g=yes
4357else
4358 echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 CFLAGS=""
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368
4369int
4370main ()
4371{
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext
4378if { (ac_try="$ac_compile"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
4396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_try") 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 :
4412else
4413 echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_c_werror_flag=$ac_save_c_werror_flag
4417 CFLAGS="-g"
4418 cat >conftest.$ac_ext <<_ACEOF
b3076f16
AS
4419/* confdefs.h. */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h. */
4424
4425int
4426main ()
4427{
4428
4429 ;
4430 return 0;
4431}
4432_ACEOF
4433rm -f conftest.$ac_objext
a8b2ad8d 4434if { (ac_try="$ac_compile"
4435case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438esac
4439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
a8b2ad8d 4447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4448 { (case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_try") 2>&5
b3076f16
AS
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4458 { (case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_try") 2>&5
b3076f16
AS
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_prog_cc_g=yes
4468else
4469 echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
a8b2ad8d 4472
4473fi
4474
4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476fi
4477
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4479fi
a8b2ad8d 4480
4481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4483fi
a8b2ad8d 4484{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4485echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16
AS
4486if test "$ac_test_CFLAGS" = set; then
4487 CFLAGS=$ac_save_CFLAGS
4488elif test $ac_cv_prog_cc_g = yes; then
4489 if test "$GCC" = yes; then
4490 CFLAGS="-g -O2"
4491 else
4492 CFLAGS="-g"
4493 fi
4494else
4495 if test "$GCC" = yes; then
4496 CFLAGS="-O2"
4497 else
4498 CFLAGS=
4499 fi
4500fi
a8b2ad8d 4501{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4502echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4503if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16
AS
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
a8b2ad8d 4506 ac_cv_prog_cc_c89=no
b3076f16
AS
4507ac_save_CC=$CC
4508cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h. */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h. */
4514#include <stdarg.h>
4515#include <stdio.h>
4516#include <sys/types.h>
4517#include <sys/stat.h>
4518/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4519struct buf { int x; };
4520FILE * (*rcsopen) (struct buf *, struct stat *, int);
4521static char *e (p, i)
4522 char **p;
4523 int i;
4524{
4525 return p[i];
4526}
4527static char *f (char * (*g) (char **, int), char **p, ...)
4528{
4529 char *s;
4530 va_list v;
4531 va_start (v,p);
4532 s = g (p, va_arg (v,int));
4533 va_end (v);
4534 return s;
4535}
4536
4537/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4538 function prototypes and stuff, but not '\xHH' hex character constants.
4539 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4540 as 'x'. The following induces an error, until -std is added to get
b3076f16
AS
4541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4542 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4543 that's true only with -std. */
b3076f16
AS
4544int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4545
a8b2ad8d 4546/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4547 inside strings and character constants. */
4548#define FOO(x) 'x'
4549int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4550
b3076f16
AS
4551int test (int i, double x);
4552struct s1 {int (*f) (int a);};
4553struct s2 {int (*f) (double a);};
4554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4555int argc;
4556char **argv;
4557int
4558main ()
4559{
4560return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4561 ;
4562 return 0;
4563}
4564_ACEOF
a8b2ad8d 4565for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16
AS
4567do
4568 CC="$ac_save_CC $ac_arg"
4569 rm -f conftest.$ac_objext
a8b2ad8d 4570if { (ac_try="$ac_compile"
4571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
4575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
a8b2ad8d 4583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
4588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
b3076f16
AS
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_try") 2>&5
b3076f16
AS
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
a8b2ad8d 4603 ac_cv_prog_cc_c89=$ac_arg
b3076f16
AS
4604else
4605 echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
a8b2ad8d 4608
b3076f16 4609fi
a8b2ad8d 4610
4611rm -f core conftest.err conftest.$ac_objext
4612 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4613done
a8b2ad8d 4614rm -f conftest.$ac_ext
b3076f16
AS
4615CC=$ac_save_CC
4616
4617fi
a8b2ad8d 4618# AC_CACHE_VAL
4619case "x$ac_cv_prog_cc_c89" in
4620 x)
4621 { echo "$as_me:$LINENO: result: none needed" >&5
4622echo "${ECHO_T}none needed" >&6; } ;;
4623 xno)
4624 { echo "$as_me:$LINENO: result: unsupported" >&5
4625echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 4626 *)
a8b2ad8d 4627 CC="$CC $ac_cv_prog_cc_c89"
4628 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4629echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16
AS
4630esac
4631
b3076f16 4632
b3076f16
AS
4633ac_ext=c
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
ec1a68c8 4639depcc="$CC" am_compiler_list=
4640
a8b2ad8d 4641{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4642echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 4643if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4647 # We make a subdir and do the tests there. Otherwise we can end up
4648 # making bogus files that we don't know about and never remove. For
4649 # instance it was reported that on HP-UX the gcc test will end up
4650 # making a dummy file named `D' -- because `-MD' means `put the output
4651 # in D'.
4652 mkdir conftest.dir
4653 # Copy depcomp to subdir because otherwise we won't find it if we're
4654 # using a relative directory.
4655 cp "$am_depcomp" conftest.dir
4656 cd conftest.dir
4657 # We will build objects and dependencies in a subdirectory because
4658 # it helps to detect inapplicable dependency modes. For instance
4659 # both Tru64's cc and ICC support -MD to output dependencies as a
4660 # side effect of compilation, but ICC will put the dependencies in
4661 # the current directory while Tru64 will put them in the object
4662 # directory.
4663 mkdir sub
4664
4665 am_cv_CC_dependencies_compiler_type=none
4666 if test "$am_compiler_list" = ""; then
4667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4668 fi
4669 for depmode in $am_compiler_list; do
4670 # Setup a source with many dependencies, because some compilers
4671 # like to wrap large dependency lists on column 80 (with \), and
4672 # we should not choose a depcomp mode which is confused by this.
4673 #
4674 # We need to recreate these files for each test, as the compiler may
4675 # overwrite some of them when testing with obscure command lines.
4676 # This happens at least with the AIX C compiler.
4677 : > sub/conftest.c
4678 for i in 1 2 3 4 5 6; do
4679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4681 # Solaris 8's {/usr,}/bin/sh.
4682 touch sub/conftst$i.h
4683 done
4684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4685
4686 case $depmode in
4687 nosideeffect)
4688 # after this tag, mechanisms are not by side-effect, so they'll
4689 # only be used when explicitly requested
4690 if test "x$enable_dependency_tracking" = xyes; then
4691 continue
4692 else
4693 break
4694 fi
4695 ;;
4696 none) break ;;
4697 esac
4698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4699 # mode. It turns out that the SunPro C++ compiler does not properly
4700 # handle `-M -o', and we need to detect this.
4701 if depmode=$depmode \
4702 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4704 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4705 >/dev/null 2>conftest.err &&
4706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4707 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4709 # icc doesn't choke on unknown options, it will just issue warnings
4710 # or remarks (even with -Werror). So we grep stderr for any message
4711 # that says an option was ignored or not supported.
4712 # When given -MP, icc 7.0 and 7.1 complain thusly:
4713 # icc: Command line warning: ignoring option '-M'; no argument required
4714 # The diagnosis changed in icc 8.0:
4715 # icc: Command line remark: option '-MP' not supported
4716 if (grep 'ignoring option' conftest.err ||
4717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4718 am_cv_CC_dependencies_compiler_type=$depmode
4719 break
4720 fi
4721 fi
4722 done
4723
4724 cd ..
4725 rm -rf conftest.dir
4726else
4727 am_cv_CC_dependencies_compiler_type=none
4728fi
4729
4730fi
a8b2ad8d 4731{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4732echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4733CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4734
4735
4736
4737if
4738 test "x$enable_dependency_tracking" != xno \
4739 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4740 am__fastdepCC_TRUE=
4741 am__fastdepCC_FALSE='#'
4742else
4743 am__fastdepCC_TRUE='#'
4744 am__fastdepCC_FALSE=
4745fi
4746
4747
b3076f16
AS
4748# Find a good install program. We prefer a C program (faster),
4749# so one script is as good as another. But avoid the broken or
4750# incompatible versions:
4751# SysV /etc/install, /usr/sbin/install
4752# SunOS /usr/etc/install
4753# IRIX /sbin/install
4754# AIX /bin/install
4755# AmigaOS /C/install, which installs bootblocks on floppy discs
4756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4757# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4759# OS/2's system install, which has a completely different semantic
4760# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 4761{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4762echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16
AS
4763if test -z "$INSTALL"; then
4764if test "${ac_cv_path_install+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 # Account for people who put trailing slashes in PATH elements.
4773case $as_dir/ in
4774 ./ | .// | /cC/* | \
4775 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4776 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4777 /usr/ucb/* ) ;;
4778 *)
4779 # OSF1 and SCO ODT 3.0 have their own names for install.
4780 # Don't use installbsd from OSF since it installs stuff as root
4781 # by default.
4782 for ac_prog in ginstall scoinst install; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4784 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16
AS
4785 if test $ac_prog = install &&
4786 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787 # AIX install. It has an incompatible calling convention.
4788 :
4789 elif test $ac_prog = install &&
4790 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791 # program-specific install script used by HP pwplus--don't use.
4792 :
4793 else
4794 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4795 break 3
4796 fi
4797 fi
4798 done
4799 done
4800 ;;
4801esac
4802done
a8b2ad8d 4803IFS=$as_save_IFS
b3076f16
AS
4804
4805
4806fi
4807 if test "${ac_cv_path_install+set}" = set; then
4808 INSTALL=$ac_cv_path_install
4809 else
a8b2ad8d 4810 # As a last resort, use the slow shell script. Don't cache a
4811 # value for INSTALL within a source directory, because that will
b3076f16 4812 # break other packages using the cache if that directory is
a8b2ad8d 4813 # removed, or if the value is a relative name.
b3076f16
AS
4814 INSTALL=$ac_install_sh
4815 fi
4816fi
a8b2ad8d 4817{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4818echo "${ECHO_T}$INSTALL" >&6; }
b3076f16
AS
4819
4820# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4821# It thinks the first close brace ends the variable substitution.
4822test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4823
4824test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4825
4826test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4827
2f61d1d7 4828
35305a49
AS
4829if test -n "$ac_tool_prefix"; then
4830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4831set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8b2ad8d 4832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4834if test "${ac_cv_prog_RANLIB+set}" = set; then
2f61d1d7 4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
35305a49
AS
4837 if test -n "$RANLIB"; then
4838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4839else
2f61d1d7 4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
35305a49 4845 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49
AS
4847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
2f61d1d7 4850 fi
35305a49 4851done
2f61d1d7 4852done
a8b2ad8d 4853IFS=$as_save_IFS
2f61d1d7 4854
b3076f16 4855fi
35305a49
AS
4856fi
4857RANLIB=$ac_cv_prog_RANLIB
4858if test -n "$RANLIB"; then
a8b2ad8d 4859 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4860echo "${ECHO_T}$RANLIB" >&6; }
b3076f16 4861else
a8b2ad8d 4862 { echo "$as_me:$LINENO: result: no" >&5
4863echo "${ECHO_T}no" >&6; }
2f61d1d7 4864fi
2f61d1d7 4865
a8b2ad8d 4866
b3076f16 4867fi
35305a49
AS
4868if test -z "$ac_cv_prog_RANLIB"; then
4869 ac_ct_RANLIB=$RANLIB
4870 # Extract the first word of "ranlib", so it can be a program name with args.
4871set dummy ranlib; ac_word=$2
a8b2ad8d 4872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4874if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2f61d1d7 4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
35305a49
AS
4877 if test -n "$ac_ct_RANLIB"; then
4878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4879else
35305a49
AS
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49
AS
4887 ac_cv_prog_ac_ct_RANLIB="ranlib"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891done
4892done
a8b2ad8d 4893IFS=$as_save_IFS
35305a49 4894
b3076f16 4895fi
2f61d1d7 4896fi
35305a49
AS
4897ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4898if test -n "$ac_ct_RANLIB"; then
a8b2ad8d 4899 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4900echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
b3076f16 4901else
a8b2ad8d 4902 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; }
b3076f16
AS
4904fi
4905
a8b2ad8d 4906 if test "x$ac_ct_RANLIB" = x; then
4907 RANLIB=":"
4908 else
4909 case $cross_compiling:$ac_tool_warned in
4910yes:)
4911{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4912whose name does not start with the host triplet. If you think this
4913configuration is useful to you, please write to autoconf@gnu.org." >&5
4914echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4915whose name does not start with the host triplet. If you think this
4916configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4917ac_tool_warned=yes ;;
4918esac
4919 RANLIB=$ac_ct_RANLIB
4920 fi
2f61d1d7 4921else
35305a49 4922 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4923fi
2f61d1d7 4924
2f61d1d7 4925
a8b2ad8d 4926{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4927echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2f61d1d7 4928LN_S=$as_ln_s
4929if test "$LN_S" = "ln -s"; then
a8b2ad8d 4930 { echo "$as_me:$LINENO: result: yes" >&5
4931echo "${ECHO_T}yes" >&6; }
2f61d1d7 4932else
a8b2ad8d 4933 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4934echo "${ECHO_T}no, using $LN_S" >&6; }
2f61d1d7 4935fi
4936
a8b2ad8d 4937{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4938echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4939set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4940if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2f61d1d7 4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
35305a49 4943 cat >conftest.make <<\_ACEOF
a8b2ad8d 4944SHELL = /bin/sh
35305a49 4945all:
a8b2ad8d 4946 @echo '@@@%%%=$(MAKE)=@@@%%%'
35305a49
AS
4947_ACEOF
4948# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 4949case `${MAKE-make} -f conftest.make 2>/dev/null` in
4950 *@@@%%%=?*=@@@%%%*)
4951 eval ac_cv_prog_make_${ac_make}_set=yes;;
4952 *)
4953 eval ac_cv_prog_make_${ac_make}_set=no;;
4954esac
35305a49
AS
4955rm -f conftest.make
4956fi
a8b2ad8d 4957if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4958 { echo "$as_me:$LINENO: result: yes" >&5
4959echo "${ECHO_T}yes" >&6; }
35305a49
AS
4960 SET_MAKE=
4961else
a8b2ad8d 4962 { echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6; }
35305a49 4964 SET_MAKE="MAKE=${MAKE-make}"
2f61d1d7 4965fi
2f61d1d7 4966
4967ac_ext=c
4968ac_cpp='$CPP $CPPFLAGS'
4969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971ac_compiler_gnu=$ac_cv_c_compiler_gnu
a8b2ad8d 4972{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4973echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2f61d1d7 4974# On Suns, sometimes $CPP names a directory.
4975if test -n "$CPP" && test -d "$CPP"; then
4976 CPP=
4977fi
4978if test -z "$CPP"; then
4979 if test "${ac_cv_prog_CPP+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 # Double quotes because CPP needs to be expanded
4983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4984 do
4985 ac_preproc_ok=false
4986for ac_c_preproc_warn_flag in '' yes
4987do
4988 # Use a header file that comes with gcc, so configuring glibc
b3076f16
AS
4989 # with a fresh cross-compiler works.
4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991 # <limits.h> exists even on freestanding compilers.
4992 # On the NeXT, cc -E runs the code through the compiler's parser,
4993 # not just through cpp. "Syntax error" is here to catch this case.
4994 cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h. */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h. */
5000#ifdef __STDC__
5001# include <limits.h>
5002#else
5003# include <assert.h>
5004#endif
5005 Syntax error
5006_ACEOF
a8b2ad8d 5007if { (ac_try="$ac_cpp conftest.$ac_ext"
5008case "(($ac_try" in
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5011esac
5012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } >/dev/null; then
5020 if test -s conftest.err; then
5021 ac_cpp_err=$ac_c_preproc_warn_flag
5022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5023 else
5024 ac_cpp_err=
5025 fi
5026else
5027 ac_cpp_err=yes
5028fi
5029if test -z "$ac_cpp_err"; then
5030 :
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 # Broken: fails on valid input.
5036continue
5037fi
a8b2ad8d 5038
b3076f16
AS
5039rm -f conftest.err conftest.$ac_ext
5040
a8b2ad8d 5041 # OK, works on sane cases. Now check whether nonexistent headers
b3076f16
AS
5042 # can be detected and how.
5043 cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
5049#include <ac_nonexistent.h>
5050_ACEOF
a8b2ad8d 5051if { (ac_try="$ac_cpp conftest.$ac_ext"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null; then
5064 if test -s conftest.err; then
5065 ac_cpp_err=$ac_c_preproc_warn_flag
5066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5067 else
5068 ac_cpp_err=
5069 fi
5070else
5071 ac_cpp_err=yes
5072fi
5073if test -z "$ac_cpp_err"; then
5074 # Broken: success on invalid input.
5075continue
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 # Passes both tests.
5081ac_preproc_ok=:
5082break
5083fi
a8b2ad8d 5084
b3076f16
AS
5085rm -f conftest.err conftest.$ac_ext
5086
5087done
5088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089rm -f conftest.err conftest.$ac_ext
5090if $ac_preproc_ok; then
5091 break
5092fi
5093
5094 done
5095 ac_cv_prog_CPP=$CPP
5096
5097fi
5098 CPP=$ac_cv_prog_CPP
5099else
5100 ac_cv_prog_CPP=$CPP
5101fi
a8b2ad8d 5102{ echo "$as_me:$LINENO: result: $CPP" >&5
5103echo "${ECHO_T}$CPP" >&6; }
b3076f16
AS
5104ac_preproc_ok=false
5105for ac_c_preproc_warn_flag in '' yes
5106do
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119#ifdef __STDC__
5120# include <limits.h>
5121#else
5122# include <assert.h>
5123#endif
5124 Syntax error
5125_ACEOF
a8b2ad8d 5126if { (ac_try="$ac_cpp conftest.$ac_ext"
5127case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130esac
5131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
5133 ac_status=$?
5134 grep -v '^ *+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null; then
5139 if test -s conftest.err; then
5140 ac_cpp_err=$ac_c_preproc_warn_flag
5141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5142 else
5143 ac_cpp_err=
5144 fi
5145else
5146 ac_cpp_err=yes
5147fi
5148if test -z "$ac_cpp_err"; then
5149 :
5150else
5151 echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 # Broken: fails on valid input.
5155continue
5156fi
a8b2ad8d 5157
b3076f16
AS
5158rm -f conftest.err conftest.$ac_ext
5159
a8b2ad8d 5160 # OK, works on sane cases. Now check whether nonexistent headers
b3076f16
AS
5161 # can be detected and how.
5162 cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h. */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h. */
5168#include <ac_nonexistent.h>
5169_ACEOF
a8b2ad8d 5170if { (ac_try="$ac_cpp conftest.$ac_ext"
5171case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174esac
5175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_c_preproc_warn_flag
5185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5186 else
5187 ac_cpp_err=
5188 fi
5189else
5190 ac_cpp_err=yes
5191fi
5192if test -z "$ac_cpp_err"; then
5193 # Broken: success on invalid input.
5194continue
5195else
5196 echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 # Passes both tests.
5200ac_preproc_ok=:
5201break
5202fi
a8b2ad8d 5203
b3076f16
AS
5204rm -f conftest.err conftest.$ac_ext
5205
5206done
5207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5208rm -f conftest.err conftest.$ac_ext
5209if $ac_preproc_ok; then
5210 :
5211else
5212 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5213See \`config.log' for more details." >&5
5214echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5215See \`config.log' for more details." >&2;}
5216 { (exit 1); exit 1; }; }
5217fi
5218
2f61d1d7 5219ac_ext=c
5220ac_cpp='$CPP $CPPFLAGS'
5221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225
a8b2ad8d 5226{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5227echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5228if test "${ac_cv_path_GREP+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 # Extract the first word of "grep ggrep" to use in msg output
5232if test -z "$GREP"; then
5233set dummy grep ggrep; ac_prog_name=$2
5234if test "${ac_cv_path_GREP+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 ac_path_GREP_found=false
5238# Loop through the user's path and test for each of PROGNAME-LIST
5239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5241do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_prog in grep ggrep; do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5247 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5248 # Check for GNU ac_path_GREP and select it if it is found.
5249 # Check for GNU $ac_path_GREP
5250case `"$ac_path_GREP" --version 2>&1` in
5251*GNU*)
5252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5253*)
5254 ac_count=0
5255 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 echo 'GREP' >> "conftest.nl"
5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 ac_count=`expr $ac_count + 1`
5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_GREP="$ac_path_GREP"
5268 ac_path_GREP_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274esac
5275
5276
5277 $ac_path_GREP_found && break 3
5278 done
5279done
5280
5281done
5282IFS=$as_save_IFS
5283
5284
5285fi
5286
5287GREP="$ac_cv_path_GREP"
5288if test -z "$GREP"; then
5289 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5290echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5291 { (exit 1); exit 1; }; }
5292fi
5293
5294else
5295 ac_cv_path_GREP=$GREP
5296fi
5297
5298
5299fi
5300{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5301echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5302 GREP="$ac_cv_path_GREP"
5303
5304
5305{ echo "$as_me:$LINENO: checking for egrep" >&5
5306echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5307if test "${ac_cv_path_EGREP+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5311 then ac_cv_path_EGREP="$GREP -E"
5312 else
5313 # Extract the first word of "egrep" to use in msg output
5314if test -z "$EGREP"; then
5315set dummy egrep; ac_prog_name=$2
5316if test "${ac_cv_path_EGREP+set}" = set; then
2f61d1d7 5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
a8b2ad8d 5319 ac_path_EGREP_found=false
5320# Loop through the user's path and test for each of PROGNAME-LIST
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_prog in egrep; do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5329 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5330 # Check for GNU ac_path_EGREP and select it if it is found.
5331 # Check for GNU $ac_path_EGREP
5332case `"$ac_path_EGREP" --version 2>&1` in
5333*GNU*)
5334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5335*)
5336 ac_count=0
5337 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5338 while :
5339 do
5340 cat "conftest.in" "conftest.in" >"conftest.tmp"
5341 mv "conftest.tmp" "conftest.in"
5342 cp "conftest.in" "conftest.nl"
5343 echo 'EGREP' >> "conftest.nl"
5344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346 ac_count=`expr $ac_count + 1`
5347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5348 # Best one so far, save it but keep looking for a better one
5349 ac_cv_path_EGREP="$ac_path_EGREP"
5350 ac_path_EGREP_max=$ac_count
35305a49 5351 fi
a8b2ad8d 5352 # 10*(2^10) chars as input seems more than enough
5353 test $ac_count -gt 10 && break
5354 done
5355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356esac
5357
5358
5359 $ac_path_EGREP_found && break 3
5360 done
5361done
5362
5363done
5364IFS=$as_save_IFS
5365
5366
5367fi
5368
5369EGREP="$ac_cv_path_EGREP"
5370if test -z "$EGREP"; then
5371 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5372echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5373 { (exit 1); exit 1; }; }
5374fi
5375
5376else
5377 ac_cv_path_EGREP=$EGREP
5378fi
5379
5380
5381 fi
2f61d1d7 5382fi
a8b2ad8d 5383{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5384echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5385 EGREP="$ac_cv_path_EGREP"
35305a49 5386
b3076f16
AS
5387
5388if test $ac_cv_c_compiler_gnu = yes; then
a8b2ad8d 5389 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5390echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
b3076f16
AS
5391if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394 ac_pattern="Autoconf.*'x'"
5395 cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401#include <sgtty.h>
5402Autoconf TIOCGETP
5403_ACEOF
5404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5405 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5406 ac_cv_prog_gcc_traditional=yes
5407else
5408 ac_cv_prog_gcc_traditional=no
5409fi
5410rm -f conftest*
5411
5412
5413 if test $ac_cv_prog_gcc_traditional = no; then
5414 cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h. */
5420#include <termio.h>
5421Autoconf TCGETA
5422_ACEOF
5423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5425 ac_cv_prog_gcc_traditional=yes
5426fi
5427rm -f conftest*
5428
5429 fi
5430fi
a8b2ad8d 5431{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5432echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
b3076f16
AS
5433 if test $ac_cv_prog_gcc_traditional = yes; then
5434 CC="$CC -traditional"
5435 fi
5436fi
5437
5b1166fd 5438# Extract the first word of "gmake", so it can be a program name with args.
5439set dummy gmake; ac_word=$2
a8b2ad8d 5440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5b1166fd 5442if test "${ac_cv_prog_MAKER+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 if test -n "$MAKER"; then
5446 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5b1166fd 5455 ac_cv_prog_MAKER="gmake"
5456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459done
5460done
a8b2ad8d 5461IFS=$as_save_IFS
5b1166fd 5462
5463 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5464fi
5465fi
5466MAKER=$ac_cv_prog_MAKER
5467if test -n "$MAKER"; then
a8b2ad8d 5468 { echo "$as_me:$LINENO: result: $MAKER" >&5
5469echo "${ECHO_T}$MAKER" >&6; }
5b1166fd 5470else
a8b2ad8d 5471 { echo "$as_me:$LINENO: result: no" >&5
5472echo "${ECHO_T}no" >&6; }
5b1166fd 5473fi
5474
b3076f16 5475
a8b2ad8d 5476
b3076f16
AS
5477case $target in
5478 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5479 ANSI_SRC=""
5480 ;;
5481 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5482 ANSI_SRC=""
b3076f16
AS
5483 ;;
5484 *-solaris*)
5485 EXTRA_DEFINE="-D__SOLARIS__"
5486 ANSI_SRC="-fno-builtin"
5487 ;;
5488 *-cygwin)
5489 ANSI_SRC="-fno-builtin"
5490 ;;
5491 *-linux*)
5492 EXTRA_DEFINE="-D_GNU_SOURCE"
5493 ANSI_SRC=""
5494 ;;
5495 *)
5496 ANSI_SRC=""
5497 ;;
5498esac
5499CFLAGS="$CFLAGS $EXTRA_DEFINE"
5500
5501
a8b2ad8d 5502{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5503echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
b3076f16
AS
5504if test "${ac_cv_lib_socket_socket+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507 ac_check_lib_save_LIBS=$LIBS
5508LIBS="-lsocket $LIBS"
5509cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515
a8b2ad8d 5516/* Override any GCC internal prototype to avoid an error.
5517 Use char because int might match the return type of a GCC
5518 builtin and then its argument prototype would still apply. */
b3076f16
AS
5519#ifdef __cplusplus
5520extern "C"
5521#endif
b3076f16
AS
5522char socket ();
5523int
5524main ()
5525{
a8b2ad8d 5526return socket ();
b3076f16
AS
5527 ;
5528 return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5532if { (ac_try="$ac_link"
5533case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536esac
5537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
a8b2ad8d 5545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5546 { (case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549esac
5550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_try") 2>&5
b3076f16
AS
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
b3076f16
AS
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 ac_cv_lib_socket_socket=yes
5566else
5567 echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
a8b2ad8d 5570 ac_cv_lib_socket_socket=no
b3076f16 5571fi
a8b2ad8d 5572
5573rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
5574 conftest$ac_exeext conftest.$ac_ext
5575LIBS=$ac_check_lib_save_LIBS
5576fi
a8b2ad8d 5577{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5578echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
b3076f16
AS
5579if test $ac_cv_lib_socket_socket = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581#define HAVE_LIBSOCKET 1
5582_ACEOF
5583
5584 LIBS="-lsocket $LIBS"
5585
5586fi
5587
5588
a8b2ad8d 5589{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5590echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
b3076f16
AS
5591if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 ac_check_lib_save_LIBS=$LIBS
5595LIBS="-lnsl $LIBS"
5596cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h. */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */
5602
a8b2ad8d 5603/* Override any GCC internal prototype to avoid an error.
5604 Use char because int might match the return type of a GCC
5605 builtin and then its argument prototype would still apply. */
b3076f16
AS
5606#ifdef __cplusplus
5607extern "C"
5608#endif
b3076f16
AS
5609char gethostbyname ();
5610int
5611main ()
5612{
a8b2ad8d 5613return gethostbyname ();
b3076f16
AS
5614 ;
5615 return 0;
5616}
5617_ACEOF
5618rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5619if { (ac_try="$ac_link"
5620case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623esac
5624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
a8b2ad8d 5632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5633 { (case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636esac
5637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_try") 2>&5
b3076f16
AS
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5643 { (case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646esac
5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_try") 2>&5
b3076f16
AS
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_lib_nsl_gethostbyname=yes
5653else
5654 echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
a8b2ad8d 5657 ac_cv_lib_nsl_gethostbyname=no
b3076f16 5658fi
a8b2ad8d 5659
5660rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
5661 conftest$ac_exeext conftest.$ac_ext
5662LIBS=$ac_check_lib_save_LIBS
5663fi
a8b2ad8d 5664{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5665echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
b3076f16
AS
5666if test $ac_cv_lib_nsl_gethostbyname = yes; then
5667 cat >>confdefs.h <<_ACEOF
5668#define HAVE_LIBNSL 1
5669_ACEOF
5670
5671 LIBS="-lnsl $LIBS"
5672
5673fi
5674
5675
a8b2ad8d 5676{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5677echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
b3076f16
AS
5678if test "${ac_cv_lib_m_main+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681 ac_check_lib_save_LIBS=$LIBS
5682LIBS="-lm $LIBS"
5683cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689
5690
5691int
5692main ()
5693{
a8b2ad8d 5694return main ();
b3076f16
AS
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5700if { (ac_try="$ac_link"
5701case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
a8b2ad8d 5713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5714 { (case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_try") 2>&5
b3076f16
AS
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5724 { (case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_try") 2>&5
b3076f16
AS
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_lib_m_main=yes
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
a8b2ad8d 5738 ac_cv_lib_m_main=no
b3076f16 5739fi
a8b2ad8d 5740
5741rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
5742 conftest$ac_exeext conftest.$ac_ext
5743LIBS=$ac_check_lib_save_LIBS
5744fi
a8b2ad8d 5745{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5746echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
b3076f16
AS
5747if test $ac_cv_lib_m_main = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749#define HAVE_LIBM 1
5750_ACEOF
5751
5752 LIBS="-lm $LIBS"
5753
5754fi
5755
5756
a8b2ad8d 5757{ echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5758echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
21f6caee 5759if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 ac_check_lib_save_LIBS=$LIBS
5763LIBS="-lGeoIP $LIBS"
5764cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h. */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h. */
5770
a8b2ad8d 5771/* Override any GCC internal prototype to avoid an error.
5772 Use char because int might match the return type of a GCC
5773 builtin and then its argument prototype would still apply. */
21f6caee 5774#ifdef __cplusplus
5775extern "C"
5776#endif
21f6caee 5777char GeoIP_open ();
5778int
5779main ()
5780{
a8b2ad8d 5781return GeoIP_open ();
21f6caee 5782 ;
5783 return 0;
5784}
5785_ACEOF
5786rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5787if { (ac_try="$ac_link"
5788case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_link") 2>conftest.er1
21f6caee 5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
a8b2ad8d 5800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
21f6caee 5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5811 { (case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814esac
5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_try") 2>&5
21f6caee 5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_cv_lib_GeoIP_GeoIP_open=yes
5821else
5822 echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
a8b2ad8d 5825 ac_cv_lib_GeoIP_GeoIP_open=no
21f6caee 5826fi
a8b2ad8d 5827
5828rm -f core conftest.err conftest.$ac_objext \
21f6caee 5829 conftest$ac_exeext conftest.$ac_ext
5830LIBS=$ac_check_lib_save_LIBS
5831fi
a8b2ad8d 5832{ echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5833echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
21f6caee 5834if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5835 cat >>confdefs.h <<_ACEOF
5836#define HAVE_LIBGEOIP 1
5837_ACEOF
5838
5839 LIBS="-lGeoIP $LIBS"
5840
5841fi
5842
5843
a8b2ad8d 5844{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5845echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
b3076f16
AS
5846if test "${ac_cv_header_stdc+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849 cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855#include <stdlib.h>
5856#include <stdarg.h>
5857#include <string.h>
5858#include <float.h>
5859
5860int
5861main ()
5862{
5863
5864 ;
5865 return 0;
5866}
5867_ACEOF
5868rm -f conftest.$ac_objext
a8b2ad8d 5869if { (ac_try="$ac_compile"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
a8b2ad8d 5882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
b3076f16
AS
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
b3076f16
AS
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_cv_header_stdc=yes
5903else
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
a8b2ad8d 5907 ac_cv_header_stdc=no
b3076f16 5908fi
a8b2ad8d 5909
5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16
AS
5911
5912if test $ac_cv_header_stdc = yes; then
5913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920#include <string.h>
5921
5922_ACEOF
5923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "memchr" >/dev/null 2>&1; then
5925 :
5926else
5927 ac_cv_header_stdc=no
5928fi
5929rm -f conftest*
5930
5931fi
5932
5933if test $ac_cv_header_stdc = yes; then
5934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5935 cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
5941#include <stdlib.h>
5942
5943_ACEOF
5944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5945 $EGREP "free" >/dev/null 2>&1; then
5946 :
5947else
5948 ac_cv_header_stdc=no
5949fi
5950rm -f conftest*
5951
5952fi
5953
5954if test $ac_cv_header_stdc = yes; then
5955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5956 if test "$cross_compiling" = yes; then
5957 :
5958else
5959 cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965#include <ctype.h>
a8b2ad8d 5966#include <stdlib.h>
b3076f16
AS
5967#if ((' ' & 0x0FF) == 0x020)
5968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5970#else
5971# define ISLOWER(c) \
5972 (('a' <= (c) && (c) <= 'i') \
5973 || ('j' <= (c) && (c) <= 'r') \
5974 || ('s' <= (c) && (c) <= 'z'))
5975# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5976#endif
5977
5978#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5979int
5980main ()
5981{
5982 int i;
5983 for (i = 0; i < 256; i++)
5984 if (XOR (islower (i), ISLOWER (i))
5985 || toupper (i) != TOUPPER (i))
a8b2ad8d 5986 return 2;
5987 return 0;
b3076f16
AS
5988}
5989_ACEOF
5990rm -f conftest$ac_exeext
a8b2ad8d 5991if { (ac_try="$ac_link"
5992case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_link") 2>&5
b3076f16
AS
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 6001 { (case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004esac
6005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_try") 2>&5
b3076f16
AS
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 :
6011else
6012 echo "$as_me: program exited with status $ac_status" >&5
6013echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016( exit $ac_status )
6017ac_cv_header_stdc=no
6018fi
a8b2ad8d 6019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 6020fi
a8b2ad8d 6021
6022
b3076f16
AS
6023fi
6024fi
a8b2ad8d 6025{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6026echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
b3076f16
AS
6027if test $ac_cv_header_stdc = yes; then
6028
6029cat >>confdefs.h <<\_ACEOF
6030#define STDC_HEADERS 1
6031_ACEOF
6032
6033fi
6034
6035
a8b2ad8d 6036{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6037echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
b3076f16
AS
6038if test "${ac_cv_header_time+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047#include <sys/types.h>
6048#include <sys/time.h>
6049#include <time.h>
6050
6051int
6052main ()
6053{
6054if ((struct tm *) 0)
6055return 0;
6056 ;
6057 return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext
a8b2ad8d 6061if { (ac_try="$ac_compile"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
a8b2ad8d 6074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
b3076f16
AS
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
b3076f16
AS
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_header_time=yes
6095else
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
a8b2ad8d 6099 ac_cv_header_time=no
b3076f16 6100fi
a8b2ad8d 6101
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6103fi
a8b2ad8d 6104{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6105echo "${ECHO_T}$ac_cv_header_time" >&6; }
b3076f16
AS
6106if test $ac_cv_header_time = yes; then
6107
6108cat >>confdefs.h <<\_ACEOF
6109#define TIME_WITH_SYS_TIME 1
6110_ACEOF
6111
6112fi
6113
a8b2ad8d 6114{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6115echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
b3076f16
AS
6116if test "${ac_cv_struct_tm+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h. */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h. */
6125#include <sys/types.h>
6126#include <time.h>
6127
6128int
6129main ()
6130{
6131struct tm *tp; tp->tm_sec;
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext
a8b2ad8d 6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
a8b2ad8d 6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
b3076f16
AS
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
b3076f16
AS
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_struct_tm=time.h
6171else
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
a8b2ad8d 6175 ac_cv_struct_tm=sys/time.h
b3076f16 6176fi
a8b2ad8d 6177
6178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6179fi
a8b2ad8d 6180{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6181echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
b3076f16
AS
6182if test $ac_cv_struct_tm = sys/time.h; then
6183
6184cat >>confdefs.h <<\_ACEOF
6185#define TM_IN_SYS_TIME 1
6186_ACEOF
6187
6188fi
6189
6190
35305a49
AS
6191# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6202 inttypes.h stdint.h unistd.h
6203do
6204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35305a49
AS
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 cat >conftest.$ac_ext <<_ACEOF
6211/* confdefs.h. */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h. */
6216$ac_includes_default
6217
6218#include <$ac_header>
6219_ACEOF
6220rm -f conftest.$ac_objext
a8b2ad8d 6221if { (ac_try="$ac_compile"
6222case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
35305a49
AS
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
a8b2ad8d 6234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6235 { (case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
35305a49
AS
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6245 { (case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248esac
6249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_try") 2>&5
35305a49
AS
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 eval "$as_ac_Header=yes"
6255else
6256 echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
a8b2ad8d 6259 eval "$as_ac_Header=no"
35305a49 6260fi
a8b2ad8d 6261
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305a49 6263fi
a8b2ad8d 6264ac_res=`eval echo '${'$as_ac_Header'}'`
6265 { echo "$as_me:$LINENO: result: $ac_res" >&5
6266echo "${ECHO_T}$ac_res" >&6; }
35305a49
AS
6267if test `eval echo '${'$as_ac_Header'}'` = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6270_ACEOF
6271
6272fi
6273
6274done
6275
6276
b3076f16
AS
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
21f6caee 6297
6298
6299for 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
b3076f16
AS
6300do
6301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307fi
a8b2ad8d 6308ac_res=`eval echo '${'$as_ac_Header'}'`
6309 { echo "$as_me:$LINENO: result: $ac_res" >&5
6310echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
6311else
6312 # Is the header compilable?
a8b2ad8d 6313{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16
AS
6315cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321$ac_includes_default
6322#include <$ac_header>
6323_ACEOF
6324rm -f conftest.$ac_objext
a8b2ad8d 6325if { (ac_try="$ac_compile"
6326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
a8b2ad8d 6338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6339 { (case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_try") 2>&5
b3076f16
AS
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6349 { (case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_try") 2>&5
b3076f16
AS
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_header_compiler=yes
6359else
6360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
a8b2ad8d 6363 ac_header_compiler=no
b3076f16 6364fi
a8b2ad8d 6365
6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6368echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16
AS
6369
6370# Is the header present?
a8b2ad8d 6371{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16
AS
6373cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
6379#include <$ac_header>
6380_ACEOF
a8b2ad8d 6381if { (ac_try="$ac_cpp conftest.$ac_ext"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } >/dev/null; then
6394 if test -s conftest.err; then
6395 ac_cpp_err=$ac_c_preproc_warn_flag
6396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6397 else
6398 ac_cpp_err=
6399 fi
6400else
6401 ac_cpp_err=yes
6402fi
6403if test -z "$ac_cpp_err"; then
6404 ac_header_preproc=yes
6405else
6406 echo "$as_me: failed program was:" >&5
6407sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_header_preproc=no
6410fi
a8b2ad8d 6411
b3076f16 6412rm -f conftest.err conftest.$ac_ext
a8b2ad8d 6413{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6414echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16
AS
6415
6416# So? What about this header?
6417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6418 yes:no: )
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6423 ac_header_preproc=yes
6424 ;;
6425 no:yes:* )
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6433echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 6438 ( cat <<\_ASBOX
63c95a47 6439## -------------------------------------------------- ##
6440## Report this to evilnet-devel@lists.sourceforge.net ##
6441## -------------------------------------------------- ##
b3076f16 6442_ASBOX
a8b2ad8d 6443 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16
AS
6444 ;;
6445esac
a8b2ad8d 6446{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 eval "$as_ac_Header=\$ac_header_preproc"
6452fi
a8b2ad8d 6453ac_res=`eval echo '${'$as_ac_Header'}'`
6454 { echo "$as_me:$LINENO: result: $ac_res" >&5
6455echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
6456
6457fi
6458if test `eval echo '${'$as_ac_Header'}'` = yes; then
6459 cat >>confdefs.h <<_ACEOF
6460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6461_ACEOF
6462
6463fi
6464
6465done
6466
6467
a8b2ad8d 6468{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6469echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
2f61d1d7 6470if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16
AS
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
6473 cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h. */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h. */
2f61d1d7 6479#include <sys/types.h>
6480#include <sys/socket.h>
b3076f16
AS
6481
6482int
6483main ()
6484{
2f61d1d7 6485static struct sockaddr ac_aggr;
6486if (ac_aggr.sa_len)
b3076f16
AS
6487return 0;
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492rm -f conftest.$ac_objext
a8b2ad8d 6493if { (ac_try="$ac_compile"
6494case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
a8b2ad8d 6506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6507 { (case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510esac
6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_try") 2>&5
b3076f16
AS
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; } &&
6516 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6517 { (case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520esac
6521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_try") 2>&5
b3076f16
AS
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
2f61d1d7 6526 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16
AS
6527else
6528 echo "$as_me: failed program was:" >&5
6529sed 's/^/| /' conftest.$ac_ext >&5
6530
a8b2ad8d 6531 cat >conftest.$ac_ext <<_ACEOF
b3076f16
AS
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
2f61d1d7 6537#include <sys/types.h>
6538#include <sys/socket.h>
b3076f16
AS
6539
6540int
6541main ()
6542{
2f61d1d7 6543static struct sockaddr ac_aggr;
6544if (sizeof ac_aggr.sa_len)
b3076f16
AS
6545return 0;
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext
a8b2ad8d 6551if { (ac_try="$ac_compile"
6552case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555esac
6556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
a8b2ad8d 6564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6565 { (case "(($ac_try" in
6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567 *) ac_try_echo=$ac_try;;
6568esac
6569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570 (eval "$ac_try") 2>&5
b3076f16
AS
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6575 { (case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_try") 2>&5
b3076f16
AS
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
2f61d1d7 6584 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16
AS
6585else
6586 echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
a8b2ad8d 6589 ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 6590fi
a8b2ad8d 6591
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6593fi
a8b2ad8d 6594
6595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6596fi
a8b2ad8d 6597{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6598echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
2f61d1d7 6599if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16
AS
6600
6601cat >>confdefs.h <<\_ACEOF
2f61d1d7 6602#define HAVE_SOCKADDR_SA_LEN
6603_ACEOF
6604
6605fi
6606
a8b2ad8d 6607{ echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6608echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
2f61d1d7 6609if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612 cat >conftest.$ac_ext <<_ACEOF
6613/* confdefs.h. */
6614_ACEOF
6615cat confdefs.h >>conftest.$ac_ext
6616cat >>conftest.$ac_ext <<_ACEOF
6617/* end confdefs.h. */
6618#include <sys/types.h>
6619#include <sys/socket.h>
6620#include <netdb.h>
6621
6622int
6623main ()
6624{
6625static struct addrinfo ac_aggr;
6626if (ac_aggr.ai_flags)
6627return 0;
6628 ;
6629 return 0;
6630}
6631_ACEOF
6632rm -f conftest.$ac_objext
a8b2ad8d 6633if { (ac_try="$ac_compile"
6634case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637esac
6638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
a8b2ad8d 6646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6647 { (case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650esac
6651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_try") 2>&5
2f61d1d7 6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6657 { (case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6660esac
6661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_try") 2>&5
2f61d1d7 6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 ac_cv_member_struct_addrinfo_ai_flags=yes
6667else
6668 echo "$as_me: failed program was:" >&5
6669sed 's/^/| /' conftest.$ac_ext >&5
6670
a8b2ad8d 6671 cat >conftest.$ac_ext <<_ACEOF
2f61d1d7 6672/* confdefs.h. */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h. */
6677#include <sys/types.h>
6678#include <sys/socket.h>
6679#include <netdb.h>
6680
6681int
6682main ()
6683{
6684static struct addrinfo ac_aggr;
6685if (sizeof ac_aggr.ai_flags)
6686return 0;
6687 ;
6688 return 0;
6689}
b3076f16 6690_ACEOF
2f61d1d7 6691rm -f conftest.$ac_objext
a8b2ad8d 6692if { (ac_try="$ac_compile"
6693case "(($ac_try" in
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6696esac
6697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
a8b2ad8d 6705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6706 { (case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709esac
6710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_try") 2>&5
2f61d1d7 6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6716 { (case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_try") 2>&5
2f61d1d7 6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_cv_member_struct_addrinfo_ai_flags=yes
6726else
6727 echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6729
a8b2ad8d 6730 ac_cv_member_struct_addrinfo_ai_flags=no
2f61d1d7 6731fi
a8b2ad8d 6732
6733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f61d1d7 6734fi
a8b2ad8d 6735
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6737fi
a8b2ad8d 6738{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6739echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
2f61d1d7 6740if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6741
6742cat >>confdefs.h <<\_ACEOF
6743#define HAVE_STRUCT_ADDRINFO
6744_ACEOF
b3076f16 6745
2f61d1d7 6746fi
b3076f16
AS
6747
6748
21f6caee 6749
b3076f16
AS
6750for ac_func in gettimeofday
6751do
6752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 cat >conftest.$ac_ext <<_ACEOF
6759/* confdefs.h. */
6760_ACEOF
6761cat confdefs.h >>conftest.$ac_ext
6762cat >>conftest.$ac_ext <<_ACEOF
6763/* end confdefs.h. */
6764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6766#define $ac_func innocuous_$ac_func
6767
6768/* System header to define __stub macros and hopefully few prototypes,
6769 which can conflict with char $ac_func (); below.
6770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6771 <limits.h> exists even on freestanding compilers. */
6772
6773#ifdef __STDC__
6774# include <limits.h>
6775#else
6776# include <assert.h>
6777#endif
6778
6779#undef $ac_func
6780
a8b2ad8d 6781/* Override any GCC internal prototype to avoid an error.
6782 Use char because int might match the return type of a GCC
6783 builtin and then its argument prototype would still apply. */
b3076f16
AS
6784#ifdef __cplusplus
6785extern "C"
b3076f16 6786#endif
b3076f16
AS
6787char $ac_func ();
6788/* The GNU C library defines this for functions which it implements
6789 to always fail with ENOSYS. Some functions are actually named
6790 something starting with __ and the normal name is an alias. */
a8b2ad8d 6791#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6792choke me
b3076f16
AS
6793#endif
6794
6795int
6796main ()
6797{
a8b2ad8d 6798return $ac_func ();
b3076f16
AS
6799 ;
6800 return 0;
6801}
6802_ACEOF
6803rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6804if { (ac_try="$ac_link"
6805case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808esac
6809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
a8b2ad8d 6817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6818 { (case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
6822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_try") 2>&5
b3076f16
AS
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 6828 { (case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831esac
6832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_try") 2>&5
b3076f16
AS
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 eval "$as_ac_var=yes"
6838else
6839 echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
a8b2ad8d 6842 eval "$as_ac_var=no"
b3076f16 6843fi
a8b2ad8d 6844
6845rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
6846 conftest$ac_exeext conftest.$ac_ext
6847fi
a8b2ad8d 6848ac_res=`eval echo '${'$as_ac_var'}'`
6849 { echo "$as_me:$LINENO: result: $ac_res" >&5
6850echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
6851if test `eval echo '${'$as_ac_var'}'` = yes; then
6852 cat >>confdefs.h <<_ACEOF
6853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6854_ACEOF
6855
6856fi
6857done
6858
6859if test $ac_cv_func_gettimeofday = no; then
6860
6861for ac_func in ftime
6862do
6863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6864{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6866if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869 cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h. */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h. */
6875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6877#define $ac_func innocuous_$ac_func
6878
6879/* System header to define __stub macros and hopefully few prototypes,
6880 which can conflict with char $ac_func (); below.
6881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6882 <limits.h> exists even on freestanding compilers. */
6883
6884#ifdef __STDC__
6885# include <limits.h>
6886#else
6887# include <assert.h>
6888#endif
6889
6890#undef $ac_func
6891
a8b2ad8d 6892/* Override any GCC internal prototype to avoid an error.
6893 Use char because int might match the return type of a GCC
6894 builtin and then its argument prototype would still apply. */
b3076f16
AS
6895#ifdef __cplusplus
6896extern "C"
b3076f16 6897#endif
b3076f16
AS
6898char $ac_func ();
6899/* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
a8b2ad8d 6902#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6903choke me
b3076f16
AS
6904#endif
6905
6906int
6907main ()
6908{
a8b2ad8d 6909return $ac_func ();
b3076f16
AS
6910 ;
6911 return 0;
6912}
6913_ACEOF
6914rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6915if { (ac_try="$ac_link"
6916case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919esac
6920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
a8b2ad8d 6928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6929 { (case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932esac
6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_try") 2>&5
b3076f16
AS
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942esac
6943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
b3076f16
AS
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 eval "$as_ac_var=yes"
6949else
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
a8b2ad8d 6953 eval "$as_ac_var=no"
b3076f16 6954fi
a8b2ad8d 6955
6956rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
6957 conftest$ac_exeext conftest.$ac_ext
6958fi
a8b2ad8d 6959ac_res=`eval echo '${'$as_ac_var'}'`
6960 { echo "$as_me:$LINENO: result: $ac_res" >&5
6961echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
6962if test `eval echo '${'$as_ac_var'}'` = yes; then
6963 cat >>confdefs.h <<_ACEOF
6964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6965_ACEOF
6966
6967else
2f61d1d7 6968 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6969echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
b3076f16
AS
6970 { (exit 1); exit 1; }; }
6971fi
6972done
6973
6974fi
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
5b1166fd 6990for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
b3076f16
AS
6991do
6992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6993{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998 cat >conftest.$ac_ext <<_ACEOF
6999/* confdefs.h. */
7000_ACEOF
7001cat confdefs.h >>conftest.$ac_ext
7002cat >>conftest.$ac_ext <<_ACEOF
7003/* end confdefs.h. */
7004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7006#define $ac_func innocuous_$ac_func
7007
7008/* System header to define __stub macros and hopefully few prototypes,
7009 which can conflict with char $ac_func (); below.
7010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7011 <limits.h> exists even on freestanding compilers. */
7012
7013#ifdef __STDC__
7014# include <limits.h>
7015#else
7016# include <assert.h>
7017#endif
7018
7019#undef $ac_func
7020
a8b2ad8d 7021/* Override any GCC internal prototype to avoid an error.
7022 Use char because int might match the return type of a GCC
7023 builtin and then its argument prototype would still apply. */
b3076f16
AS
7024#ifdef __cplusplus
7025extern "C"
b3076f16 7026#endif
b3076f16
AS
7027char $ac_func ();
7028/* The GNU C library defines this for functions which it implements
7029 to always fail with ENOSYS. Some functions are actually named
7030 something starting with __ and the normal name is an alias. */
a8b2ad8d 7031#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7032choke me
b3076f16
AS
7033#endif
7034
7035int
7036main ()
7037{
a8b2ad8d 7038return $ac_func ();
b3076f16
AS
7039 ;
7040 return 0;
7041}
7042_ACEOF
7043rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7044if { (ac_try="$ac_link"
7045case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048esac
7049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
a8b2ad8d 7057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7058 { (case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061esac
7062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_try") 2>&5
b3076f16
AS
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; } &&
7067 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7068 { (case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
7072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_try") 2>&5
b3076f16
AS
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 eval "$as_ac_var=yes"
7078else
7079 echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5
7081
a8b2ad8d 7082 eval "$as_ac_var=no"
b3076f16 7083fi
a8b2ad8d 7084
7085rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
7086 conftest$ac_exeext conftest.$ac_ext
7087fi
a8b2ad8d 7088ac_res=`eval echo '${'$as_ac_var'}'`
7089 { echo "$as_me:$LINENO: result: $ac_res" >&5
7090echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
7091if test `eval echo '${'$as_ac_var'}'` = yes; then
7092 cat >>confdefs.h <<_ACEOF
7093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7094_ACEOF
7095
7096fi
7097done
7098
7099
7100
7101
7102
7103
7104
7105
7106for ac_func in select socket strcspn strspn strtod strtoul
7107do
7108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7109{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7111if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114 cat >conftest.$ac_ext <<_ACEOF
7115/* confdefs.h. */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
7119/* end confdefs.h. */
7120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7122#define $ac_func innocuous_$ac_func
7123
7124/* System header to define __stub macros and hopefully few prototypes,
7125 which can conflict with char $ac_func (); below.
7126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7127 <limits.h> exists even on freestanding compilers. */
7128
7129#ifdef __STDC__
7130# include <limits.h>
7131#else
7132# include <assert.h>
7133#endif
7134
7135#undef $ac_func
7136
a8b2ad8d 7137/* Override any GCC internal prototype to avoid an error.
7138 Use char because int might match the return type of a GCC
7139 builtin and then its argument prototype would still apply. */
b3076f16
AS
7140#ifdef __cplusplus
7141extern "C"
b3076f16 7142#endif
b3076f16
AS
7143char $ac_func ();
7144/* The GNU C library defines this for functions which it implements
7145 to always fail with ENOSYS. Some functions are actually named
7146 something starting with __ and the normal name is an alias. */
a8b2ad8d 7147#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7148choke me
b3076f16
AS
7149#endif
7150
7151int
7152main ()
7153{
a8b2ad8d 7154return $ac_func ();
b3076f16
AS
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7160if { (ac_try="$ac_link"
7161case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164esac
7165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
a8b2ad8d 7173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7174 { (case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177esac
7178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_try") 2>&5
b3076f16
AS
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; } &&
7183 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7184 { (case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
7188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_try") 2>&5
b3076f16
AS
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 eval "$as_ac_var=yes"
7194else
7195 echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
a8b2ad8d 7198 eval "$as_ac_var=no"
b3076f16 7199fi
a8b2ad8d 7200
7201rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
7202 conftest$ac_exeext conftest.$ac_ext
7203fi
a8b2ad8d 7204ac_res=`eval echo '${'$as_ac_var'}'`
7205 { echo "$as_me:$LINENO: result: $ac_res" >&5
7206echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
7207if test `eval echo '${'$as_ac_var'}'` = yes; then
7208 cat >>confdefs.h <<_ACEOF
7209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7210_ACEOF
7211
7212else
2f61d1d7 7213 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
7214echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16
AS
7215 { (exit 1); exit 1; }; }
7216fi
7217done
7218
7219
7220# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7221# for constant arguments. Useless!
a8b2ad8d 7222{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
7223echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
b3076f16
AS
7224if test "${ac_cv_working_alloca_h+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h. */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h. */
7233#include <alloca.h>
7234int
7235main ()
7236{
7237char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 7238 if (p) return 0;
b3076f16
AS
7239 ;
7240 return 0;
7241}
7242_ACEOF
7243rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7244if { (ac_try="$ac_link"
7245case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248esac
7249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
a8b2ad8d 7257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7258 { (case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7261esac
7262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_try") 2>&5
b3076f16
AS
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7268 { (case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271esac
7272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_try") 2>&5
b3076f16
AS
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_working_alloca_h=yes
7278else
7279 echo "$as_me: failed program was:" >&5
7280sed 's/^/| /' conftest.$ac_ext >&5
7281
a8b2ad8d 7282 ac_cv_working_alloca_h=no
b3076f16 7283fi
a8b2ad8d 7284
7285rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
7286 conftest$ac_exeext conftest.$ac_ext
7287fi
a8b2ad8d 7288{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7289echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
b3076f16
AS
7290if test $ac_cv_working_alloca_h = yes; then
7291
7292cat >>confdefs.h <<\_ACEOF
7293#define HAVE_ALLOCA_H 1
7294_ACEOF
7295
7296fi
7297
a8b2ad8d 7298{ echo "$as_me:$LINENO: checking for alloca" >&5
7299echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
b3076f16
AS
7300if test "${ac_cv_func_alloca_works+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303 cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h. */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h. */
7309#ifdef __GNUC__
7310# define alloca __builtin_alloca
7311#else
7312# ifdef _MSC_VER
7313# include <malloc.h>
7314# define alloca _alloca
7315# else
7316# if HAVE_ALLOCA_H
7317# include <alloca.h>
7318# else
7319# ifdef _AIX
7320 #pragma alloca
7321# else
7322# ifndef alloca /* predefined by HP cc +Olibcalls */
7323char *alloca ();
7324# endif
7325# endif
7326# endif
7327# endif
7328#endif
7329
7330int
7331main ()
7332{
7333char *p = (char *) alloca (1);
a8b2ad8d 7334 if (p) return 0;
b3076f16
AS
7335 ;
7336 return 0;
7337}
7338_ACEOF
7339rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7340if { (ac_try="$ac_link"
7341case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344esac
7345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
a8b2ad8d 7353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7354 { (case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357esac
7358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_try") 2>&5
b3076f16
AS
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; } &&
7363 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7364 { (case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367esac
7368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7369 (eval "$ac_try") 2>&5
b3076f16
AS
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 ac_cv_func_alloca_works=yes
7374else
7375 echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
a8b2ad8d 7378 ac_cv_func_alloca_works=no
b3076f16 7379fi
a8b2ad8d 7380
7381rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
7382 conftest$ac_exeext conftest.$ac_ext
7383fi
a8b2ad8d 7384{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7385echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
b3076f16
AS
7386
7387if test $ac_cv_func_alloca_works = yes; then
7388
7389cat >>confdefs.h <<\_ACEOF
7390#define HAVE_ALLOCA 1
7391_ACEOF
7392
7393else
7394 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7395# that cause trouble. Some versions do not even contain alloca or
7396# contain a buggy version. If you still want to use their alloca,
7397# use ar to extract alloca.o from them instead of compiling alloca.c.
7398
a8b2ad8d 7399ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16
AS
7400
7401cat >>confdefs.h <<\_ACEOF
7402#define C_ALLOCA 1
7403_ACEOF
7404
7405
a8b2ad8d 7406{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7407echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
b3076f16
AS
7408if test "${ac_cv_os_cray+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411 cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
a8b2ad8d 7417#if defined CRAY && ! defined CRAY2
b3076f16
AS
7418webecray
7419#else
7420wenotbecray
7421#endif
7422
7423_ACEOF
7424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 $EGREP "webecray" >/dev/null 2>&1; then
7426 ac_cv_os_cray=yes
7427else
7428 ac_cv_os_cray=no
7429fi
7430rm -f conftest*
7431
7432fi
a8b2ad8d 7433{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7434echo "${ECHO_T}$ac_cv_os_cray" >&6; }
b3076f16
AS
7435if test $ac_cv_os_cray = yes; then
7436 for ac_func in _getb67 GETB67 getb67; do
7437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7438{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443 cat >conftest.$ac_ext <<_ACEOF
7444/* confdefs.h. */
7445_ACEOF
7446cat confdefs.h >>conftest.$ac_ext
7447cat >>conftest.$ac_ext <<_ACEOF
7448/* end confdefs.h. */
7449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7451#define $ac_func innocuous_$ac_func
7452
7453/* System header to define __stub macros and hopefully few prototypes,
7454 which can conflict with char $ac_func (); below.
7455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7456 <limits.h> exists even on freestanding compilers. */
7457
7458#ifdef __STDC__
7459# include <limits.h>
7460#else
7461# include <assert.h>
7462#endif
7463
7464#undef $ac_func
7465
a8b2ad8d 7466/* Override any GCC internal prototype to avoid an error.
7467 Use char because int might match the return type of a GCC
7468 builtin and then its argument prototype would still apply. */
b3076f16
AS
7469#ifdef __cplusplus
7470extern "C"
b3076f16 7471#endif
b3076f16
AS
7472char $ac_func ();
7473/* The GNU C library defines this for functions which it implements
7474 to always fail with ENOSYS. Some functions are actually named
7475 something starting with __ and the normal name is an alias. */
a8b2ad8d 7476#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7477choke me
b3076f16
AS
7478#endif
7479
7480int
7481main ()
7482{
a8b2ad8d 7483return $ac_func ();
b3076f16
AS
7484 ;
7485 return 0;
7486}
7487_ACEOF
7488rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7489if { (ac_try="$ac_link"
7490case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493esac
7494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
a8b2ad8d 7502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7503 { (case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506esac
7507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_try") 2>&5
b3076f16
AS
7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; } &&
7512 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7513 { (case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516esac
7517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_try") 2>&5
b3076f16
AS
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 eval "$as_ac_var=yes"
7523else
7524 echo "$as_me: failed program was:" >&5
7525sed 's/^/| /' conftest.$ac_ext >&5
7526
a8b2ad8d 7527 eval "$as_ac_var=no"
b3076f16 7528fi
a8b2ad8d 7529
7530rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
7531 conftest$ac_exeext conftest.$ac_ext
7532fi
a8b2ad8d 7533ac_res=`eval echo '${'$as_ac_var'}'`
7534 { echo "$as_me:$LINENO: result: $ac_res" >&5
7535echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
7536if test `eval echo '${'$as_ac_var'}'` = yes; then
7537
7538cat >>confdefs.h <<_ACEOF
7539#define CRAY_STACKSEG_END $ac_func
7540_ACEOF
7541
7542 break
7543fi
7544
7545 done
7546fi
7547
a8b2ad8d 7548{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7549echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
b3076f16
AS
7550if test "${ac_cv_c_stack_direction+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
7553 if test "$cross_compiling" = yes; then
7554 ac_cv_c_stack_direction=0
7555else
7556 cat >conftest.$ac_ext <<_ACEOF
7557/* confdefs.h. */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h. */
a8b2ad8d 7562$ac_includes_default
b3076f16
AS
7563int
7564find_stack_direction ()
7565{
7566 static char *addr = 0;
7567 auto char dummy;
7568 if (addr == 0)
7569 {
7570 addr = &dummy;
7571 return find_stack_direction ();
7572 }
7573 else
7574 return (&dummy > addr) ? 1 : -1;
7575}
7576
7577int
7578main ()
7579{
a8b2ad8d 7580 return find_stack_direction () < 0;
b3076f16
AS
7581}
7582_ACEOF
7583rm -f conftest$ac_exeext
a8b2ad8d 7584if { (ac_try="$ac_link"
7585case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588esac
7589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_link") 2>&5
b3076f16
AS
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7594 { (case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597esac
7598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_try") 2>&5
b3076f16
AS
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_cv_c_stack_direction=1
7604else
7605 echo "$as_me: program exited with status $ac_status" >&5
7606echo "$as_me: failed program was:" >&5
7607sed 's/^/| /' conftest.$ac_ext >&5
7608
7609( exit $ac_status )
7610ac_cv_c_stack_direction=-1
7611fi
a8b2ad8d 7612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7613fi
a8b2ad8d 7614
7615
b3076f16 7616fi
a8b2ad8d 7617{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7618echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
b3076f16
AS
7619
7620cat >>confdefs.h <<_ACEOF
7621#define STACK_DIRECTION $ac_cv_c_stack_direction
7622_ACEOF
7623
7624
7625fi
7626
7627
7628
7629for ac_header in stdlib.h unistd.h
7630do
7631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637fi
a8b2ad8d 7638ac_res=`eval echo '${'$as_ac_Header'}'`
7639 { echo "$as_me:$LINENO: result: $ac_res" >&5
7640echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
7641else
7642 # Is the header compilable?
a8b2ad8d 7643{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16
AS
7645cat >conftest.$ac_ext <<_ACEOF
7646/* confdefs.h. */
7647_ACEOF
7648cat confdefs.h >>conftest.$ac_ext
7649cat >>conftest.$ac_ext <<_ACEOF
7650/* end confdefs.h. */
7651$ac_includes_default
7652#include <$ac_header>
7653_ACEOF
7654rm -f conftest.$ac_objext
a8b2ad8d 7655if { (ac_try="$ac_compile"
7656case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659esac
7660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
a8b2ad8d 7668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7669 { (case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672esac
7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_try") 2>&5
b3076f16
AS
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 7679 { (case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682esac
7683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_try") 2>&5
b3076f16
AS
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 ac_header_compiler=yes
7689else
7690 echo "$as_me: failed program was:" >&5
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
a8b2ad8d 7693 ac_header_compiler=no
b3076f16 7694fi
a8b2ad8d 7695
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7698echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16
AS
7699
7700# Is the header present?
a8b2ad8d 7701{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16
AS
7703cat >conftest.$ac_ext <<_ACEOF
7704/* confdefs.h. */
7705_ACEOF
7706cat confdefs.h >>conftest.$ac_ext
7707cat >>conftest.$ac_ext <<_ACEOF
7708/* end confdefs.h. */
7709#include <$ac_header>
7710_ACEOF
a8b2ad8d 7711if { (ac_try="$ac_cpp conftest.$ac_ext"
7712case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715esac
7716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } >/dev/null; then
7724 if test -s conftest.err; then
7725 ac_cpp_err=$ac_c_preproc_warn_flag
7726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7727 else
7728 ac_cpp_err=
7729 fi
7730else
7731 ac_cpp_err=yes
7732fi
7733if test -z "$ac_cpp_err"; then
7734 ac_header_preproc=yes
7735else
7736 echo "$as_me: failed program was:" >&5
7737sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 ac_header_preproc=no
7740fi
a8b2ad8d 7741
b3076f16 7742rm -f conftest.err conftest.$ac_ext
a8b2ad8d 7743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7744echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16
AS
7745
7746# So? What about this header?
7747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7748 yes:no: )
7749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7753 ac_header_preproc=yes
7754 ;;
7755 no:yes:* )
7756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7759echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7763echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 7768 ( cat <<\_ASBOX
63c95a47 7769## -------------------------------------------------- ##
7770## Report this to evilnet-devel@lists.sourceforge.net ##
7771## -------------------------------------------------- ##
b3076f16 7772_ASBOX
a8b2ad8d 7773 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16
AS
7774 ;;
7775esac
a8b2ad8d 7776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781 eval "$as_ac_Header=\$ac_header_preproc"
7782fi
a8b2ad8d 7783ac_res=`eval echo '${'$as_ac_Header'}'`
7784 { echo "$as_me:$LINENO: result: $ac_res" >&5
7785echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
7786
7787fi
7788if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791_ACEOF
7792
7793fi
7794
7795done
7796
7797
7798for ac_func in getpagesize
7799do
7800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7801{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7803if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806 cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
7812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7814#define $ac_func innocuous_$ac_func
7815
7816/* System header to define __stub macros and hopefully few prototypes,
7817 which can conflict with char $ac_func (); below.
7818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7819 <limits.h> exists even on freestanding compilers. */
7820
7821#ifdef __STDC__
7822# include <limits.h>
7823#else
7824# include <assert.h>
7825#endif
7826
7827#undef $ac_func
7828
a8b2ad8d 7829/* Override any GCC internal prototype to avoid an error.
7830 Use char because int might match the return type of a GCC
7831 builtin and then its argument prototype would still apply. */
b3076f16
AS
7832#ifdef __cplusplus
7833extern "C"
b3076f16 7834#endif
b3076f16
AS
7835char $ac_func ();
7836/* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
a8b2ad8d 7839#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7840choke me
b3076f16
AS
7841#endif
7842
7843int
7844main ()
7845{
a8b2ad8d 7846return $ac_func ();
b3076f16
AS
7847 ;
7848 return 0;
7849}
7850_ACEOF
7851rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7852if { (ac_try="$ac_link"
7853case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
a8b2ad8d 7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869esac
7870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
b3076f16
AS
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879esac
7880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
b3076f16
AS
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 eval "$as_ac_var=yes"
7886else
7887 echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
a8b2ad8d 7890 eval "$as_ac_var=no"
b3076f16 7891fi
a8b2ad8d 7892
7893rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
7894 conftest$ac_exeext conftest.$ac_ext
7895fi
a8b2ad8d 7896ac_res=`eval echo '${'$as_ac_var'}'`
7897 { echo "$as_me:$LINENO: result: $ac_res" >&5
7898echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
7899if test `eval echo '${'$as_ac_var'}'` = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7902_ACEOF
7903
7904fi
7905done
7906
a8b2ad8d 7907{ echo "$as_me:$LINENO: checking for working mmap" >&5
7908echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
b3076f16
AS
7909if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 if test "$cross_compiling" = yes; then
7913 ac_cv_func_mmap_fixed_mapped=no
7914else
7915 cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h. */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h. */
7921$ac_includes_default
7922/* malloc might have been renamed as rpl_malloc. */
7923#undef malloc
7924
7925/* Thanks to Mike Haertel and Jim Avera for this test.
7926 Here is a matrix of mmap possibilities:
7927 mmap private not fixed
7928 mmap private fixed at somewhere currently unmapped
7929 mmap private fixed at somewhere already mapped
7930 mmap shared not fixed
7931 mmap shared fixed at somewhere currently unmapped
7932 mmap shared fixed at somewhere already mapped
7933 For private mappings, we should verify that changes cannot be read()
7934 back from the file, nor mmap's back from the file at a different
7935 address. (There have been systems where private was not correctly
7936 implemented like the infamous i386 svr4.0, and systems where the
7937 VM page cache was not coherent with the file system buffer cache
7938 like early versions of FreeBSD and possibly contemporary NetBSD.)
7939 For shared mappings, we should conversely verify that changes get
7940 propagated back to all the places they're supposed to be.
7941
7942 Grep wants private fixed already mapped.
7943 The main things grep needs to know about mmap are:
7944 * does it exist and is it safe to write into the mmap'd area
7945 * how to use it (BSD variants) */
7946
7947#include <fcntl.h>
7948#include <sys/mman.h>
7949
7950#if !STDC_HEADERS && !HAVE_STDLIB_H
7951char *malloc ();
7952#endif
7953
7954/* This mess was copied from the GNU getpagesize.h. */
7955#if !HAVE_GETPAGESIZE
7956/* Assume that all systems that can run configure have sys/param.h. */
7957# if !HAVE_SYS_PARAM_H
7958# define HAVE_SYS_PARAM_H 1
7959# endif
7960
7961# ifdef _SC_PAGESIZE
7962# define getpagesize() sysconf(_SC_PAGESIZE)
7963# else /* no _SC_PAGESIZE */
7964# if HAVE_SYS_PARAM_H
7965# include <sys/param.h>
7966# ifdef EXEC_PAGESIZE
7967# define getpagesize() EXEC_PAGESIZE
7968# else /* no EXEC_PAGESIZE */
7969# ifdef NBPG
7970# define getpagesize() NBPG * CLSIZE
7971# ifndef CLSIZE
7972# define CLSIZE 1
7973# endif /* no CLSIZE */
7974# else /* no NBPG */
7975# ifdef NBPC
7976# define getpagesize() NBPC
7977# else /* no NBPC */
7978# ifdef PAGESIZE
7979# define getpagesize() PAGESIZE
7980# endif /* PAGESIZE */
7981# endif /* no NBPC */
7982# endif /* no NBPG */
7983# endif /* no EXEC_PAGESIZE */
7984# else /* no HAVE_SYS_PARAM_H */
7985# define getpagesize() 8192 /* punt totally */
7986# endif /* no HAVE_SYS_PARAM_H */
7987# endif /* no _SC_PAGESIZE */
7988
7989#endif /* no HAVE_GETPAGESIZE */
7990
7991int
7992main ()
7993{
7994 char *data, *data2, *data3;
7995 int i, pagesize;
7996 int fd;
7997
7998 pagesize = getpagesize ();
7999
8000 /* First, make a file with some known garbage in it. */
8001 data = (char *) malloc (pagesize);
8002 if (!data)
a8b2ad8d 8003 return 1;
b3076f16
AS
8004 for (i = 0; i < pagesize; ++i)
8005 *(data + i) = rand ();
8006 umask (0);
8007 fd = creat ("conftest.mmap", 0600);
8008 if (fd < 0)
a8b2ad8d 8009 return 1;
b3076f16 8010 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 8011 return 1;
b3076f16
AS
8012 close (fd);
8013
8014 /* Next, try to mmap the file at a fixed address which already has
8015 something else allocated at it. If we can, also make sure that
8016 we see the same garbage. */
8017 fd = open ("conftest.mmap", O_RDWR);
8018 if (fd < 0)
a8b2ad8d 8019 return 1;
b3076f16
AS
8020 data2 = (char *) malloc (2 * pagesize);
8021 if (!data2)
a8b2ad8d 8022 return 1;
8023 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16
AS
8024 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8025 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 8026 return 1;
b3076f16
AS
8027 for (i = 0; i < pagesize; ++i)
8028 if (*(data + i) != *(data2 + i))
a8b2ad8d 8029 return 1;
b3076f16
AS
8030
8031 /* Finally, make sure that changes to the mapped area do not
8032 percolate back to the file as seen by read(). (This is a bug on
8033 some variants of i386 svr4.0.) */
8034 for (i = 0; i < pagesize; ++i)
8035 *(data2 + i) = *(data2 + i) + 1;
8036 data3 = (char *) malloc (pagesize);
8037 if (!data3)
a8b2ad8d 8038 return 1;
b3076f16 8039 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 8040 return 1;
b3076f16
AS
8041 for (i = 0; i < pagesize; ++i)
8042 if (*(data + i) != *(data3 + i))
a8b2ad8d 8043 return 1;
b3076f16 8044 close (fd);
a8b2ad8d 8045 return 0;
b3076f16
AS
8046}
8047_ACEOF
8048rm -f conftest$ac_exeext
a8b2ad8d 8049if { (ac_try="$ac_link"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>&5
b3076f16
AS
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
b3076f16
AS
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_func_mmap_fixed_mapped=yes
8069else
8070 echo "$as_me: program exited with status $ac_status" >&5
8071echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
8074( exit $ac_status )
8075ac_cv_func_mmap_fixed_mapped=no
8076fi
a8b2ad8d 8077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 8078fi
a8b2ad8d 8079
8080
b3076f16 8081fi
a8b2ad8d 8082{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8083echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16
AS
8084if test $ac_cv_func_mmap_fixed_mapped = yes; then
8085
8086cat >>confdefs.h <<\_ACEOF
8087#define HAVE_MMAP 1
8088_ACEOF
8089
8090fi
8091rm -f conftest.mmap
8092
8093
a8b2ad8d 8094{ echo "$as_me:$LINENO: checking for sin_len" >&5
8095echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
b3076f16
AS
8096if test "${ac_cv_sin_len+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099 cat >conftest.$ac_ext <<_ACEOF
8100/* confdefs.h. */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h. */
8105#include <sys/types.h>
8106#include <netinet/in.h>
8107int
8108main ()
8109{
8110struct sockaddr_in *sin; sin->sin_len = 0;
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext
a8b2ad8d 8116if { (ac_try="$ac_compile"
8117case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
a8b2ad8d 8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
b3076f16
AS
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
b3076f16
AS
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_sin_len="yes"
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
a8b2ad8d 8154 ac_cv_sin_len="no"
b3076f16 8155fi
a8b2ad8d 8156
8157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8158fi
a8b2ad8d 8159{ echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
8160echo "${ECHO_T}$ac_cv_sin_len" >&6; }
b3076f16
AS
8161if test $ac_cv_sin_len = yes ; then
8162
8163cat >>confdefs.h <<\_ACEOF
8164#define HAVE_SIN_LEN 1
8165_ACEOF
8166
8167fi
8168
a8b2ad8d 8169{ echo "$as_me:$LINENO: checking for socklen_t" >&5
8170echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
79886419 8171if test "${ac_cv_type_socklen_t+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173else
8174 cat >conftest.$ac_ext <<_ACEOF
8175/* confdefs.h. */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
8179/* end confdefs.h. */
8180#include <sys/types.h>
8181#include<sys/socket.h>
8182
a8b2ad8d 8183typedef socklen_t ac__type_new_;
79886419 8184int
8185main ()
8186{
a8b2ad8d 8187if ((ac__type_new_ *) 0)
79886419 8188 return 0;
a8b2ad8d 8189if (sizeof (ac__type_new_))
79886419 8190 return 0;
8191 ;
8192 return 0;
8193}
8194_ACEOF
8195rm -f conftest.$ac_objext
a8b2ad8d 8196if { (ac_try="$ac_compile"
8197case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200esac
8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
79886419 8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
a8b2ad8d 8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213esac
8214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
79886419 8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223esac
8224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
79886419 8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_type_socklen_t=yes
8230else
8231 echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
a8b2ad8d 8234 ac_cv_type_socklen_t=no
79886419 8235fi
a8b2ad8d 8236
8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 8238fi
a8b2ad8d 8239{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8240echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
79886419 8241if test $ac_cv_type_socklen_t = yes; then
8242 :
8243else
8244
a8b2ad8d 8245 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8246echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
79886419 8247 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250
8251 curl_cv_socklen_t_equiv=
8252 for arg2 in "struct sockaddr" void ; do
8253 for t in int size_t unsigned long "unsigned long" ; do
8254 cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8260#include <sys/types.h>
8261#include <sys/socket.h>
8262int getpeername (int $arg2 *, $t *);
8263int
8264main ()
8265{
8266$t len;
8267 getpeername(0, 0, &len);
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272rm -f conftest.$ac_objext
a8b2ad8d 8273if { (ac_try="$ac_compile"
8274case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_compile") 2>conftest.er1
79886419 8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
a8b2ad8d 8286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8287 { (case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290esac
8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_try") 2>&5
79886419 8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300esac
8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
79886419 8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 curl_cv_socklen_t_equiv="$t"
8307 break
8308else
8309 echo "$as_me: failed program was:" >&5
8310sed 's/^/| /' conftest.$ac_ext >&5
8311
a8b2ad8d 8312
79886419 8313fi
a8b2ad8d 8314
8315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 8316 done
8317 done
8318
8319fi
8320
a8b2ad8d 8321 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8322echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
79886419 8323
8324cat >>confdefs.h <<_ACEOF
8325#define socklen_t $curl_cv_socklen_t_equiv
8326_ACEOF
8327
8328fi
8329
8330
b3076f16
AS
8331OLD_CFLAGS=$CFLAGS
8332CFLAGS="$CFLAGS -W -Wall -Werror"
8333
a8b2ad8d 8334{ echo "$as_me:$LINENO: checking for time_t format" >&5
8335echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
b3076f16
AS
8336if test "${ac_cv_fmt_time_t+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338else
8339
8340ac_cv_fmt_time_t=no
8341cat >conftest.$ac_ext <<_ACEOF
8342#include <sys/types.h>
8343#include <stdio.h>
8344void myfunc(void) {
8345 time_t test=0;
8346 printf("%li", test);
8347}
8348_ACEOF
8349rm -f conftest.$ac_objext
a8b2ad8d 8350if { (ac_try="$ac_compile"
8351case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
a8b2ad8d 8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
b3076f16
AS
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
b3076f16
AS
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_fmt_time_t="\"%li\""
8384else
8385 echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
a8b2ad8d 8388
b3076f16 8389fi
a8b2ad8d 8390
8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16
AS
8392if test $ac_cv_fmt_time_t = no; then
8393cat >conftest.$ac_ext <<_ACEOF
8394#include <sys/types.h>
8395#include <stdio.h>
8396void myfunc(void) {
8397 time_t test=0;
8398 printf("%i", test);
8399}
8400_ACEOF
8401rm -f conftest.$ac_objext
a8b2ad8d 8402if { (ac_try="$ac_compile"
8403case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
a8b2ad8d 8415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
b3076f16
AS
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8426 { (case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429esac
8430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_try") 2>&5
b3076f16
AS
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_fmt_time_t="\"%i\""
8436else
8437 echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
a8b2ad8d 8440
b3076f16 8441fi
a8b2ad8d 8442
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16
AS
8444fi
8445if test $ac_cv_fmt_time_t = no; then
8446{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
8447Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
8448echo "$as_me: error: Cannot detect format string for time_t
8449Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
8450 { (exit 1); exit 1; }; }
8451fi
8452
8453fi
8454
8455
8456cat >>confdefs.h <<_ACEOF
8457#define FMT_TIME_T $ac_cv_fmt_time_t
8458_ACEOF
8459
a8b2ad8d 8460{ echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
8461echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
b3076f16 8462
a8b2ad8d 8463{ echo "$as_me:$LINENO: checking for va_copy" >&5
8464echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
b3076f16
AS
8465if test "${ac_cv_c_va_copy+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467else
8468 cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474#include <stdarg.h>
8475int
8476main ()
8477{
8478va_list ap1, ap2; va_copy(ap1, ap2);
8479 ;
8480 return 0;
8481}
8482_ACEOF
8483rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8484if { (ac_try="$ac_link"
8485case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
a8b2ad8d 8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501esac
8502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
b3076f16
AS
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511esac
8512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
b3076f16
AS
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_c_va_copy="yes"
8518else
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
a8b2ad8d 8522 ac_cv_c_va_copy="no"
b3076f16
AS
8523
8524fi
a8b2ad8d 8525
8526rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
8527 conftest$ac_exeext conftest.$ac_ext
8528fi
a8b2ad8d 8529{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8530echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
b3076f16
AS
8531if test "$ac_cv_c_va_copy" = "yes" ; then
8532
8533cat >>confdefs.h <<\_ACEOF
8534#define HAVE_VA_COPY 1
8535_ACEOF
8536
8537fi
8538
a8b2ad8d 8539{ echo "$as_me:$LINENO: checking for __va_copy" >&5
8540echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
b3076f16
AS
8541if test "${ac_cv_c___va_copy+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544 cat >conftest.$ac_ext <<_ACEOF
8545/* confdefs.h. */
8546_ACEOF
8547cat confdefs.h >>conftest.$ac_ext
8548cat >>conftest.$ac_ext <<_ACEOF
8549/* end confdefs.h. */
8550#include <stdarg.h>
8551int
8552main ()
8553{
8554va_list ap1, ap2; __va_copy(ap1, ap2);
8555 ;
8556 return 0;
8557}
8558_ACEOF
8559rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8560if { (ac_try="$ac_link"
8561case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564esac
8565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
a8b2ad8d 8573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8574 { (case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577esac
8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_try") 2>&5
b3076f16
AS
8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8584 { (case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587esac
8588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_try") 2>&5
b3076f16
AS
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_c___va_copy="yes"
8594else
8595 echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
a8b2ad8d 8598 ac_cv_c___va_copy="no"
b3076f16
AS
8599
8600fi
a8b2ad8d 8601
8602rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
8603 conftest$ac_exeext conftest.$ac_ext
8604fi
a8b2ad8d 8605{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8606echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
b3076f16
AS
8607if test "$ac_cv_c___va_copy" = "yes" ; then
8608
8609cat >>confdefs.h <<\_ACEOF
8610#define HAVE___VA_COPY 1
8611_ACEOF
8612
8613fi
8614
8615CFLAGS=$OLD_CFLAGS
8616
a8b2ad8d 8617{ echo "$as_me:$LINENO: checking which malloc to use" >&5
8618echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
b3076f16 8619
a8b2ad8d 8620# Check whether --with-malloc was given.
b3076f16 8621if test "${with_malloc+set}" = set; then
a8b2ad8d 8622 withval=$with_malloc;
b3076f16
AS
8623else
8624 withval="system"
a8b2ad8d 8625fi
8626
b3076f16 8627if test "x$withval" = "xsystem" ; then
a8b2ad8d 8628 { echo "$as_me:$LINENO: result: system" >&5
8629echo "${ECHO_T}system" >&6; }
b3076f16
AS
8630
8631cat >>confdefs.h <<\_ACEOF
8632#define WITH_MALLOC_SYSTEM 1
8633_ACEOF
8634
5b1166fd 8635 x3_malloc="System"
b3076f16 8636elif test "x$withval" = "xdmalloc" ; then
a8b2ad8d 8637 { echo "$as_me:$LINENO: result: dmalloc" >&5
8638echo "${ECHO_T}dmalloc" >&6; }
b3076f16
AS
8639
8640for ac_header in dmalloc.h
8641do
8642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648fi
a8b2ad8d 8649ac_res=`eval echo '${'$as_ac_Header'}'`
8650 { echo "$as_me:$LINENO: result: $ac_res" >&5
8651echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
8652else
8653 # Is the header compilable?
a8b2ad8d 8654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16
AS
8656cat >conftest.$ac_ext <<_ACEOF
8657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
8662$ac_includes_default
8663#include <$ac_header>
8664_ACEOF
8665rm -f conftest.$ac_objext
a8b2ad8d 8666if { (ac_try="$ac_compile"
8667case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670esac
8671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
a8b2ad8d 8679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8680 { (case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683esac
8684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_try") 2>&5
b3076f16
AS
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8690 { (case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693esac
8694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_try") 2>&5
b3076f16
AS
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_header_compiler=yes
8700else
8701 echo "$as_me: failed program was:" >&5
8702sed 's/^/| /' conftest.$ac_ext >&5
8703
a8b2ad8d 8704 ac_header_compiler=no
b3076f16 8705fi
a8b2ad8d 8706
8707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16
AS
8710
8711# Is the header present?
a8b2ad8d 8712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16
AS
8714cat >conftest.$ac_ext <<_ACEOF
8715/* confdefs.h. */
8716_ACEOF
8717cat confdefs.h >>conftest.$ac_ext
8718cat >>conftest.$ac_ext <<_ACEOF
8719/* end confdefs.h. */
8720#include <$ac_header>
8721_ACEOF
a8b2ad8d 8722if { (ac_try="$ac_cpp conftest.$ac_ext"
8723case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726esac
8727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } >/dev/null; then
8735 if test -s conftest.err; then
8736 ac_cpp_err=$ac_c_preproc_warn_flag
8737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8738 else
8739 ac_cpp_err=
8740 fi
8741else
8742 ac_cpp_err=yes
8743fi
8744if test -z "$ac_cpp_err"; then
8745 ac_header_preproc=yes
8746else
8747 echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_header_preproc=no
8751fi
a8b2ad8d 8752
b3076f16 8753rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16
AS
8756
8757# So? What about this header?
8758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8759 yes:no: )
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8764 ac_header_preproc=yes
8765 ;;
8766 no:yes:* )
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8779 ( cat <<\_ASBOX
63c95a47 8780## -------------------------------------------------- ##
8781## Report this to evilnet-devel@lists.sourceforge.net ##
8782## -------------------------------------------------- ##
b3076f16 8783_ASBOX
a8b2ad8d 8784 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16
AS
8785 ;;
8786esac
a8b2ad8d 8787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791else
8792 eval "$as_ac_Header=\$ac_header_preproc"
8793fi
a8b2ad8d 8794ac_res=`eval echo '${'$as_ac_Header'}'`
8795 { echo "$as_me:$LINENO: result: $ac_res" >&5
8796echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
8797
8798fi
8799if test `eval echo '${'$as_ac_Header'}'` = yes; then
8800 cat >>confdefs.h <<_ACEOF
8801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8802_ACEOF
8803
8804else
8805 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8806echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8807 { (exit 1); exit 1; }; }
8808fi
8809
8810done
8811
8812
a8b2ad8d 8813{ echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8814echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
b3076f16
AS
8815if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817else
8818 ac_check_lib_save_LIBS=$LIBS
8819LIBS="-ldmalloc $LIBS"
8820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826
a8b2ad8d 8827/* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
b3076f16
AS
8830#ifdef __cplusplus
8831extern "C"
8832#endif
b3076f16
AS
8833char malloc ();
8834int
8835main ()
8836{
a8b2ad8d 8837return malloc ();
b3076f16
AS
8838 ;
8839 return 0;
8840}
8841_ACEOF
8842rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8843if { (ac_try="$ac_link"
8844case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847esac
8848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
a8b2ad8d 8856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
b3076f16
AS
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870esac
8871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
b3076f16
AS
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_lib_dmalloc_malloc=yes
8877else
8878 echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
a8b2ad8d 8881 ac_cv_lib_dmalloc_malloc=no
b3076f16 8882fi
a8b2ad8d 8883
8884rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
8885 conftest$ac_exeext conftest.$ac_ext
8886LIBS=$ac_check_lib_save_LIBS
8887fi
a8b2ad8d 8888{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8889echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
b3076f16
AS
8890if test $ac_cv_lib_dmalloc_malloc = yes; then
8891 cat >>confdefs.h <<_ACEOF
8892#define HAVE_LIBDMALLOC 1
8893_ACEOF
8894
8895 LIBS="-ldmalloc $LIBS"
8896
8897else
8898 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8899echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8900 { (exit 1); exit 1; }; }
8901fi
8902
8903
8904cat >>confdefs.h <<\_ACEOF
8905#define WITH_MALLOC_DMALLOC 1
8906_ACEOF
8907
5b1166fd 8908 x3_malloc="DMalloc"
b3076f16 8909elif test "x$withval" = "xmpatrol" ; then
a8b2ad8d 8910 { echo "$as_me:$LINENO: result: mpatrol" >&5
8911echo "${ECHO_T}mpatrol" >&6; }
b3076f16
AS
8912
8913for ac_header in mpatrol.h
8914do
8915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921fi
a8b2ad8d 8922ac_res=`eval echo '${'$as_ac_Header'}'`
8923 { echo "$as_me:$LINENO: result: $ac_res" >&5
8924echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
8925else
8926 # Is the header compilable?
a8b2ad8d 8927{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16
AS
8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
8935$ac_includes_default
8936#include <$ac_header>
8937_ACEOF
8938rm -f conftest.$ac_objext
a8b2ad8d 8939if { (ac_try="$ac_compile"
8940case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8943esac
8944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
a8b2ad8d 8952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956esac
8957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
b3076f16
AS
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8963 { (case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966esac
8967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_try") 2>&5
b3076f16
AS
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_header_compiler=yes
8973else
8974 echo "$as_me: failed program was:" >&5
8975sed 's/^/| /' conftest.$ac_ext >&5
8976
a8b2ad8d 8977 ac_header_compiler=no
b3076f16 8978fi
a8b2ad8d 8979
8980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16
AS
8983
8984# Is the header present?
a8b2ad8d 8985{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16
AS
8987cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h. */
8993#include <$ac_header>
8994_ACEOF
a8b2ad8d 8995if { (ac_try="$ac_cpp conftest.$ac_ext"
8996case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999esac
9000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev/null; then
9008 if test -s conftest.err; then
9009 ac_cpp_err=$ac_c_preproc_warn_flag
9010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9011 else
9012 ac_cpp_err=
9013 fi
9014else
9015 ac_cpp_err=yes
9016fi
9017if test -z "$ac_cpp_err"; then
9018 ac_header_preproc=yes
9019else
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 ac_header_preproc=no
9024fi
a8b2ad8d 9025
b3076f16 9026rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9027{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9028echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16
AS
9029
9030# So? What about this header?
9031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9032 yes:no: )
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9037 ac_header_preproc=yes
9038 ;;
9039 no:yes:* )
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9052 ( cat <<\_ASBOX
63c95a47 9053## -------------------------------------------------- ##
9054## Report this to evilnet-devel@lists.sourceforge.net ##
9055## -------------------------------------------------- ##
b3076f16 9056_ASBOX
a8b2ad8d 9057 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16
AS
9058 ;;
9059esac
a8b2ad8d 9060{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064else
9065 eval "$as_ac_Header=\$ac_header_preproc"
9066fi
a8b2ad8d 9067ac_res=`eval echo '${'$as_ac_Header'}'`
9068 { echo "$as_me:$LINENO: result: $ac_res" >&5
9069echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
9070
9071fi
9072if test `eval echo '${'$as_ac_Header'}'` = yes; then
9073 cat >>confdefs.h <<_ACEOF
9074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075_ACEOF
9076
9077else
9078 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
9079echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
9080 { (exit 1); exit 1; }; }
9081fi
9082
9083done
9084
9085
a8b2ad8d 9086{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9087echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
b3076f16
AS
9088if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091 ac_check_lib_save_LIBS=$LIBS
9092LIBS="-lelf $LIBS"
9093cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099
a8b2ad8d 9100/* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
b3076f16
AS
9103#ifdef __cplusplus
9104extern "C"
9105#endif
b3076f16
AS
9106char elf_begin ();
9107int
9108main ()
9109{
a8b2ad8d 9110return elf_begin ();
b3076f16
AS
9111 ;
9112 return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9116if { (ac_try="$ac_link"
9117case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120esac
9121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
a8b2ad8d 9129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9130 { (case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133esac
9134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_try") 2>&5
b3076f16
AS
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9140 { (case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143esac
9144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_try") 2>&5
b3076f16
AS
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_lib_elf_elf_begin=yes
9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
a8b2ad8d 9154 ac_cv_lib_elf_elf_begin=no
b3076f16 9155fi
a8b2ad8d 9156
9157rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
9158 conftest$ac_exeext conftest.$ac_ext
9159LIBS=$ac_check_lib_save_LIBS
9160fi
a8b2ad8d 9161{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
9162echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
b3076f16
AS
9163if test $ac_cv_lib_elf_elf_begin = yes; then
9164 cat >>confdefs.h <<_ACEOF
9165#define HAVE_LIBELF 1
9166_ACEOF
9167
9168 LIBS="-lelf $LIBS"
9169
9170fi
9171
9172
a8b2ad8d 9173{ echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
9174echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
b3076f16
AS
9175if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177else
9178 ac_check_lib_save_LIBS=$LIBS
9179LIBS="-lmpatrol $LIBS"
9180cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */
9186
a8b2ad8d 9187/* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
b3076f16
AS
9190#ifdef __cplusplus
9191extern "C"
9192#endif
b3076f16
AS
9193char __mp_atexit ();
9194int
9195main ()
9196{
a8b2ad8d 9197return __mp_atexit ();
b3076f16
AS
9198 ;
9199 return 0;
9200}
9201_ACEOF
9202rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9203if { (ac_try="$ac_link"
9204case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207esac
9208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
a8b2ad8d 9216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9217 { (case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220esac
9221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_try") 2>&5
b3076f16
AS
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9227 { (case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230esac
9231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_try") 2>&5
b3076f16
AS
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_lib_mpatrol___mp_atexit=yes
9237else
9238 echo "$as_me: failed program was:" >&5
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
a8b2ad8d 9241 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 9242fi
a8b2ad8d 9243
9244rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
9245 conftest$ac_exeext conftest.$ac_ext
9246LIBS=$ac_check_lib_save_LIBS
9247fi
a8b2ad8d 9248{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
9249echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
b3076f16
AS
9250if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
9251 cat >>confdefs.h <<_ACEOF
9252#define HAVE_LIBMPATROL 1
9253_ACEOF
9254
9255 LIBS="-lmpatrol $LIBS"
9256
9257else
9258 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
9259echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
9260 { (exit 1); exit 1; }; }
9261fi
9262
9263
9264cat >>confdefs.h <<\_ACEOF
9265#define WITH_MALLOC_MPATROL 1
9266_ACEOF
9267
5b1166fd 9268 x3_malloc="MPatrol"
b3076f16 9269elif test "x$withval" = "xboehm-gc" ; then
a8b2ad8d 9270 { echo "$as_me:$LINENO: result: boehm-gc" >&5
9271echo "${ECHO_T}boehm-gc" >&6; }
b3076f16
AS
9272
9273for ac_header in gc/gc.h
9274do
9275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 9276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281fi
a8b2ad8d 9282ac_res=`eval echo '${'$as_ac_Header'}'`
9283 { echo "$as_me:$LINENO: result: $ac_res" >&5
9284echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
9285else
9286 # Is the header compilable?
a8b2ad8d 9287{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16
AS
9289cat >conftest.$ac_ext <<_ACEOF
9290/* confdefs.h. */
9291_ACEOF
9292cat confdefs.h >>conftest.$ac_ext
9293cat >>conftest.$ac_ext <<_ACEOF
9294/* end confdefs.h. */
9295$ac_includes_default
9296#include <$ac_header>
9297_ACEOF
9298rm -f conftest.$ac_objext
a8b2ad8d 9299if { (ac_try="$ac_compile"
9300case "(($ac_try" in
9301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9303esac
9304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_compile") 2>conftest.er1
b3076f16
AS
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
a8b2ad8d 9312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316esac
9317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
b3076f16
AS
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; } &&
9322 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 9323 { (case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326esac
9327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_try") 2>&5
b3076f16
AS
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_header_compiler=yes
9333else
9334 echo "$as_me: failed program was:" >&5
9335sed 's/^/| /' conftest.$ac_ext >&5
9336
a8b2ad8d 9337 ac_header_compiler=no
b3076f16 9338fi
a8b2ad8d 9339
9340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9342echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16
AS
9343
9344# Is the header present?
a8b2ad8d 9345{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16
AS
9347cat >conftest.$ac_ext <<_ACEOF
9348/* confdefs.h. */
9349_ACEOF
9350cat confdefs.h >>conftest.$ac_ext
9351cat >>conftest.$ac_ext <<_ACEOF
9352/* end confdefs.h. */
9353#include <$ac_header>
9354_ACEOF
a8b2ad8d 9355if { (ac_try="$ac_cpp conftest.$ac_ext"
9356case "(($ac_try" in
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9359esac
9360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16
AS
9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } >/dev/null; then
9368 if test -s conftest.err; then
9369 ac_cpp_err=$ac_c_preproc_warn_flag
9370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371 else
9372 ac_cpp_err=
9373 fi
9374else
9375 ac_cpp_err=yes
9376fi
9377if test -z "$ac_cpp_err"; then
9378 ac_header_preproc=yes
9379else
9380 echo "$as_me: failed program was:" >&5
9381sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 ac_header_preproc=no
9384fi
a8b2ad8d 9385
b3076f16 9386rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9387{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9388echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16
AS
9389
9390# So? What about this header?
9391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9392 yes:no: )
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9397 ac_header_preproc=yes
9398 ;;
9399 no:yes:* )
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9403echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9407echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9412 ( cat <<\_ASBOX
63c95a47 9413## -------------------------------------------------- ##
9414## Report this to evilnet-devel@lists.sourceforge.net ##
9415## -------------------------------------------------- ##
b3076f16 9416_ASBOX
a8b2ad8d 9417 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16
AS
9418 ;;
9419esac
a8b2ad8d 9420{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16
AS
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425 eval "$as_ac_Header=\$ac_header_preproc"
9426fi
a8b2ad8d 9427ac_res=`eval echo '${'$as_ac_Header'}'`
9428 { echo "$as_me:$LINENO: result: $ac_res" >&5
9429echo "${ECHO_T}$ac_res" >&6; }
b3076f16
AS
9430
9431fi
9432if test `eval echo '${'$as_ac_Header'}'` = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9435_ACEOF
9436
9437else
9438 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
9439echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
9440 { (exit 1); exit 1; }; }
9441fi
9442
9443done
9444
9445
a8b2ad8d 9446{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9447echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
b3076f16
AS
9448if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9450else
9451 ac_check_lib_save_LIBS=$LIBS
9452LIBS="-ldl $LIBS"
9453cat >conftest.$ac_ext <<_ACEOF
9454/* confdefs.h. */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h. */
9459
a8b2ad8d 9460/* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
b3076f16
AS
9463#ifdef __cplusplus
9464extern "C"
9465#endif
b3076f16
AS
9466char dlopen ();
9467int
9468main ()
9469{
a8b2ad8d 9470return dlopen ();
b3076f16
AS
9471 ;
9472 return 0;
9473}
9474_ACEOF
9475rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9476if { (ac_try="$ac_link"
9477case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480esac
9481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
a8b2ad8d 9489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9490 { (case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493esac
9494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_try") 2>&5
b3076f16
AS
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9500 { (case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503esac
9504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_try") 2>&5
b3076f16
AS
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_lib_dl_dlopen=yes
9510else
9511 echo "$as_me: failed program was:" >&5
9512sed 's/^/| /' conftest.$ac_ext >&5
9513
a8b2ad8d 9514 ac_cv_lib_dl_dlopen=no
b3076f16 9515fi
a8b2ad8d 9516
9517rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
9518 conftest$ac_exeext conftest.$ac_ext
9519LIBS=$ac_check_lib_save_LIBS
9520fi
a8b2ad8d 9521{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9522echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
b3076f16
AS
9523if test $ac_cv_lib_dl_dlopen = yes; then
9524 cat >>confdefs.h <<_ACEOF
9525#define HAVE_LIBDL 1
9526_ACEOF
9527
9528 LIBS="-ldl $LIBS"
9529
9530else
9531 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
9532echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
9533 { (exit 1); exit 1; }; }
9534fi
9535
9536
a8b2ad8d 9537{ echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
9538echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
b3076f16
AS
9539if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542 ac_check_lib_save_LIBS=$LIBS
9543LIBS="-lgc $LIBS"
9544cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h. */
9550
a8b2ad8d 9551/* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
b3076f16
AS
9554#ifdef __cplusplus
9555extern "C"
9556#endif
b3076f16
AS
9557char GC_gcollect ();
9558int
9559main ()
9560{
a8b2ad8d 9561return GC_gcollect ();
b3076f16
AS
9562 ;
9563 return 0;
9564}
9565_ACEOF
9566rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9567if { (ac_try="$ac_link"
9568case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_link") 2>conftest.er1
b3076f16
AS
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
a8b2ad8d 9580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9581 { (case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584esac
9585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_try") 2>&5
b3076f16
AS
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9591 { (case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_try") 2>&5
b3076f16
AS
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_gc_GC_gcollect=yes
9601else
9602 echo "$as_me: failed program was:" >&5
9603sed 's/^/| /' conftest.$ac_ext >&5
9604
a8b2ad8d 9605 ac_cv_lib_gc_GC_gcollect=no
b3076f16 9606fi
a8b2ad8d 9607
9608rm -f core conftest.err conftest.$ac_objext \
b3076f16
AS
9609 conftest$ac_exeext conftest.$ac_ext
9610LIBS=$ac_check_lib_save_LIBS
9611fi
a8b2ad8d 9612{ echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
9613echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
b3076f16
AS
9614if test $ac_cv_lib_gc_GC_gcollect = yes; then
9615 cat >>confdefs.h <<_ACEOF
9616#define HAVE_LIBGC 1
9617_ACEOF
9618
9619 LIBS="-lgc $LIBS"
9620
9621else
9622 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
9623echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
9624 { (exit 1); exit 1; }; }
9625fi
9626
9627
9628cat >>confdefs.h <<\_ACEOF
9629#define WITH_MALLOC_BOEHM_GC 1
9630_ACEOF
9631
5b1166fd 9632 x3_malloc="Boehm"
b8cb2a14 9633elif test "x$withval" = "xx3" ; then
a8b2ad8d 9634 { echo "$as_me:$LINENO: result: x3" >&5
9635echo "${ECHO_T}x3" >&6; }
ec1a68c8 9636
9637cat >>confdefs.h <<\_ACEOF
b8cb2a14 9638#define WITH_MALLOC_X3 1
ec1a68c8 9639_ACEOF
9640
b8cb2a14 9641 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 9642 x3_malloc="X3"
ceafd592 9643elif test "x$withval" = "xslab" ; then
a8b2ad8d 9644 { echo "$as_me:$LINENO: result: slab" >&5
9645echo "${ECHO_T}slab" >&6; }
ceafd592 9646
9647cat >>confdefs.h <<\_ACEOF
9648#define WITH_MALLOC_SLAB 1
9649_ACEOF
9650
9651 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 9652 x3_malloc="Slab"
b3076f16
AS
9653else
9654 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
9655echo "$as_me: error: Unknown malloc type $withval" >&2;}
9656 { (exit 1); exit 1; }; }
9657fi
9658
a8b2ad8d 9659{ echo "$as_me:$LINENO: checking which protocol to use" >&5
9660echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
b3076f16 9661
a8b2ad8d 9662# Check whether --with-protocol was given.
b3076f16 9663if test "${with_protocol+set}" = set; then
a8b2ad8d 9664 withval=$with_protocol;
b3076f16
AS
9665else
9666 withval="p10"
a8b2ad8d 9667fi
9668
b3076f16 9669if test "x$withval" = "xp10" ; then
a8b2ad8d 9670 { echo "$as_me:$LINENO: result: P10" >&5
9671echo "${ECHO_T}P10" >&6; }
b3076f16
AS
9672
9673cat >>confdefs.h <<\_ACEOF
9674#define WITH_PROTOCOL_P10 1
9675_ACEOF
9676
2f61d1d7 9677 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
b3076f16 9678 PROTO_FILES=proto-p10.c
5b1166fd 9679 x3_ircd="P10"
b3076f16
AS
9680else
9681 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
9682echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
9683 { (exit 1); exit 1; }; }
9684fi
9685
9686
a8b2ad8d 9687# Check whether --with-getopt was given.
b3076f16 9688if test "${with_getopt+set}" = set; then
a8b2ad8d 9689 withval=$with_getopt; if test "$withval" = no; then
b3076f16
AS
9690
9691cat >>confdefs.h <<\_ACEOF
9692#define IGNORE_GETOPT 1
9693_ACEOF
9694
9695fi
a8b2ad8d 9696fi
b3076f16 9697
b3076f16 9698
a8b2ad8d 9699{ echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
9700echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
9701# Check whether --enable-tokens was given.
9702if test "${enable_tokens+set}" = set; then
9703 enableval=$enable_tokens;
b3076f16
AS
9704else
9705 enableval=yes
a8b2ad8d 9706fi
9707
b3076f16 9708if test "z$enableval" = zno ; then
a8b2ad8d 9709 { echo "$as_me:$LINENO: result: no" >&5
9710echo "${ECHO_T}no" >&6; }
b3076f16
AS
9711else
9712
9713cat >>confdefs.h <<\_ACEOF
9714#define ENABLE_TOKENS 1
9715_ACEOF
9716
a8b2ad8d 9717 { echo "$as_me:$LINENO: result: yes" >&5
9718echo "${ECHO_T}yes" >&6; }
b3076f16
AS
9719fi
9720
a8b2ad8d 9721{ echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
9722echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
9723# Check whether --enable-debug was given.
b3076f16 9724if test "${enable_debug+set}" = set; then
a8b2ad8d 9725 enableval=$enable_debug;
b3076f16 9726 CPPFLAGS="$CPPFLAGS"
a8b2ad8d 9727 { echo "$as_me:$LINENO: result: yes" >&5
9728echo "${ECHO_T}yes" >&6; }
5b1166fd 9729 x3_debug="Enabled"
b3076f16
AS
9730
9731else
9732
9733 CPPFLAGS="$CPPFLAGS -DNDEBUG"
a8b2ad8d 9734 { echo "$as_me:$LINENO: result: no" >&5
9735echo "${ECHO_T}no" >&6; }
5b1166fd 9736 x3_debug="Disabled"
b3076f16 9737
a8b2ad8d 9738fi
9739
b3076f16
AS
9740
9741if test -e src ; then
9742 if test ! -d src ; then
9743 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
9744echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
9745 { (exit 1); exit 1; }; }
9746 fi
9747else
9748 mkdir src
9749fi
a8b2ad8d 9750{ echo "$as_me:$LINENO: checking for extra module files" >&5
9751echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
b3076f16
AS
9752MODULE_DEFINES="src/modules-list.h"
9753echo > $MODULE_DEFINES
9754touch $MODULE_DEFINES
a8b2ad8d 9755# Check whether --enable-modules was given.
b3076f16 9756if test "${enable_modules+set}" = set; then
a8b2ad8d 9757 enableval=$enable_modules;
b3076f16
AS
9758 OIFS="$IFS"
9759 IFS=','
9760 EXTRA_MODULE_OBJS=""
9761 module_list=""
9762 for module in $enableval ; do
9763 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
2f61d1d7 9764 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
b3076f16
AS
9765 module_list="$module_list $module"
9766 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
ec311f39 9767 if test "x$module" = "xtrack" ; then
9768 TRACK="-D HAVE_TRACK"
8de34abd
AS
9769
9770cat >>confdefs.h <<\_ACEOF
9771#define HAVE_TRACK 1
3da28d8e 9772_ACEOF
9773
9774 fi
9775 if test "x$module" = "xhelpserv" ; then
9776 TRACK="-D HAVE_HELPSERV"
9777
9778cat >>confdefs.h <<\_ACEOF
9779#define HAVE_HELPSERV 1
8de34abd
AS
9780_ACEOF
9781
ec311f39 9782 fi
b3076f16
AS
9783 done
9784 IFS="$OIFS"
9785 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
a8b2ad8d 9786 { echo "$as_me:$LINENO: result: $module_list" >&5
9787echo "${ECHO_T}$module_list" >&6; }
b3076f16
AS
9788
9789else
9790
a8b2ad8d 9791 { echo "$as_me:$LINENO: result: none" >&5
9792echo "${ECHO_T}none" >&6; }
9793
9794fi
b3076f16 9795
b3076f16
AS
9796
9797MY_SUBDIRS=""
9798RX_INCLUDES=""
9799RX_LIBS=""
9800if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9801 MY_SUBDIRS="rx $MY_SUBDIRS"
9802 RX_INCLUDES="-I../rx"
9803 RX_LIBS="../rx/librx.a"
9804fi
9805MY_SUBDIRS="$MY_SUBDIRS src"
9806CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9807if test "z$USE_MAINTAINER_MODE" = zyes ; then
9808 CFLAGS="$CFLAGS -Werror"
9809fi
9810
35305a49 9811
a8b2ad8d 9812tre_version="0.7.5"
35305a49
AS
9813withval=''
9814
a8b2ad8d 9815# Check whether --with-tre was given.
35305a49 9816if test "${with_tre+set}" = set; then
a8b2ad8d 9817 withval=$with_tre;
9818fi
35305a49 9819
35305a49 9820if test "x$withval" != "x"; then
a8b2ad8d 9821 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9822echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
35305a49 9823 CPPFLAGS="-I$withval/include -L$withval/lib"
0754f993 9824 LIBS="$LIBS -L$withval/lib"
35305a49 9825else
a8b2ad8d 9826 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9827echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
35305a49 9828 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
0754f993 9829 LIBS="$LIBS -L${HOME}/lib"
35305a49
AS
9830fi
9831if test "${ac_cv_header_tre_regex_h+set}" = set; then
a8b2ad8d 9832 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9833echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
35305a49
AS
9834if test "${ac_cv_header_tre_regex_h+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836fi
a8b2ad8d 9837{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9838echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
35305a49
AS
9839else
9840 # Is the header compilable?
a8b2ad8d 9841{ echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9842echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
35305a49
AS
9843cat >conftest.$ac_ext <<_ACEOF
9844/* confdefs.h. */
9845_ACEOF
9846cat confdefs.h >>conftest.$ac_ext
9847cat >>conftest.$ac_ext <<_ACEOF
9848/* end confdefs.h. */
9849$ac_includes_default
9850#include <tre/regex.h>
9851_ACEOF
9852rm -f conftest.$ac_objext
a8b2ad8d 9853if { (ac_try="$ac_compile"
9854case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857esac
9858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_compile") 2>conftest.er1
35305a49
AS
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
a8b2ad8d 9866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9867 { (case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870esac
9871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_try") 2>&5
35305a49
AS
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; } &&
9876 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
35305a49
AS
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_header_compiler=yes
9887else
9888 echo "$as_me: failed program was:" >&5
9889sed 's/^/| /' conftest.$ac_ext >&5
9890
a8b2ad8d 9891 ac_header_compiler=no
35305a49 9892fi
a8b2ad8d 9893
9894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9896echo "${ECHO_T}$ac_header_compiler" >&6; }
35305a49
AS
9897
9898# Is the header present?
a8b2ad8d 9899{ echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9900echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
35305a49
AS
9901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */
9907#include <tre/regex.h>
9908_ACEOF
a8b2ad8d 9909if { (ac_try="$ac_cpp conftest.$ac_ext"
9910case "(($ac_try" in
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9913esac
9914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35305a49
AS
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } >/dev/null; then
9922 if test -s conftest.err; then
9923 ac_cpp_err=$ac_c_preproc_warn_flag
9924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9925 else
9926 ac_cpp_err=
9927 fi
9928else
9929 ac_cpp_err=yes
9930fi
9931if test -z "$ac_cpp_err"; then
9932 ac_header_preproc=yes
9933else
9934 echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 ac_header_preproc=no
9938fi
a8b2ad8d 9939
35305a49 9940rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9941{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9942echo "${ECHO_T}$ac_header_preproc" >&6; }
35305a49
AS
9943
9944# So? What about this header?
9945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9946 yes:no: )
9947 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9948echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9950echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
9951 ac_header_preproc=yes
9952 ;;
9953 no:yes:* )
9954 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9955echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9956 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9957echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9959echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9961echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9963echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9965echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9966 ( cat <<\_ASBOX
35305a49
AS
9967## -------------------------------------------------- ##
9968## Report this to evilnet-devel@lists.sourceforge.net ##
9969## -------------------------------------------------- ##
9970_ASBOX
a8b2ad8d 9971 ) | sed "s/^/$as_me: WARNING: /" >&2
35305a49
AS
9972 ;;
9973esac
a8b2ad8d 9974{ echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9975echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
35305a49
AS
9976if test "${ac_cv_header_tre_regex_h+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978else
9979 ac_cv_header_tre_regex_h=$ac_header_preproc
9980fi
a8b2ad8d 9981{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9982echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
35305a49
AS
9983
9984fi
9985if test $ac_cv_header_tre_regex_h = yes; then
9986 :
9987else
9988 { { 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
9989echo "$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;}
9990 { (exit 1); exit 1; }; }
9991fi
9992
9993
9994
a8b2ad8d 9995{ echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9996echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
35305a49
AS
9997if test "${ac_cv_lib_tre_regexec+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999else
10000 ac_check_lib_save_LIBS=$LIBS
10001LIBS="-ltre $LIBS"
10002cat >conftest.$ac_ext <<_ACEOF
10003/* confdefs.h. */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h. */
10008
a8b2ad8d 10009/* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
35305a49
AS
10012#ifdef __cplusplus
10013extern "C"
10014#endif
35305a49
AS
10015char regexec ();
10016int
10017main ()
10018{
a8b2ad8d 10019return regexec ();
35305a49
AS
10020 ;
10021 return 0;
10022}
10023_ACEOF
10024rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 10025if { (ac_try="$ac_link"
10026case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029esac
10030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_link") 2>conftest.er1
35305a49
AS
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
a8b2ad8d 10038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10039 { (case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042esac
10043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_try") 2>&5
35305a49
AS
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; } &&
10048 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 10049 { (case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_try") 2>&5
35305a49
AS
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 ac_cv_lib_tre_regexec=yes
5b1166fd 10059else
35305a49
AS
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
a8b2ad8d 10063 ac_cv_lib_tre_regexec=no
35305a49 10064fi
a8b2ad8d 10065
10066rm -f core conftest.err conftest.$ac_objext \
35305a49
AS
10067 conftest$ac_exeext conftest.$ac_ext
10068LIBS=$ac_check_lib_save_LIBS
5b1166fd 10069fi
a8b2ad8d 10070{ echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
10071echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
35305a49
AS
10072if test $ac_cv_lib_tre_regexec = yes; then
10073 cat >>confdefs.h <<_ACEOF
10074#define HAVE_LIBTRE 1
10075_ACEOF
10076
10077 LIBS="-ltre $LIBS"
5b1166fd 10078
5b1166fd 10079else
35305a49
AS
10080 { { 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
10081echo "$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;}
10082 { (exit 1); exit 1; }; }
5b1166fd 10083fi
10084
5b1166fd 10085
a8b2ad8d 10086core_version="0.2"
10087withval=''
b3076f16 10088
a8b2ad8d 10089# Check whether --with-coredumper was given.
10090if test "${with_coredumper+set}" = set; then
10091 withval=$with_coredumper;
10092fi
b3076f16 10093
a8b2ad8d 10094if test "x$withval" != "x"; then
10095 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
10096echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
10097 CPPFLAGS="-I$withval/include -L$withval/lib"
10098 LIBS="$LIBS -L$withval/lib"
10099else
10100 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
10101echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
10102 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
10103 LIBS="$LIBS -L${HOME}/lib"
10104fi
10105if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10106 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10107echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10108if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110fi
10111{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10112echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10113else
10114 # Is the header compilable?
10115{ echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
10116echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
10117cat >conftest.$ac_ext <<_ACEOF
10118/* confdefs.h. */
10119_ACEOF
10120cat confdefs.h >>conftest.$ac_ext
10121cat >>conftest.$ac_ext <<_ACEOF
10122/* end confdefs.h. */
10123$ac_includes_default
10124#include <google/coredumper.h>
10125_ACEOF
10126rm -f conftest.$ac_objext
10127if { (ac_try="$ac_compile"
10128case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131esac
10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10141 { (case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144esac
10145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_try") 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest.$ac_objext'
10151 { (case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154esac
10155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_header_compiler=yes
10161else
10162 echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10164
a8b2ad8d 10165 ac_header_compiler=no
10166fi
b3076f16 10167
a8b2ad8d 10168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10170echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 10171
a8b2ad8d 10172# Is the header present?
10173{ echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
10174echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
10175cat >conftest.$ac_ext <<_ACEOF
10176/* confdefs.h. */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h. */
10181#include <google/coredumper.h>
10182_ACEOF
10183if { (ac_try="$ac_cpp conftest.$ac_ext"
10184case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187esac
10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } >/dev/null; then
10196 if test -s conftest.err; then
10197 ac_cpp_err=$ac_c_preproc_warn_flag
10198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10199 else
10200 ac_cpp_err=
10201 fi
10202else
10203 ac_cpp_err=yes
10204fi
10205if test -z "$ac_cpp_err"; then
10206 ac_header_preproc=yes
10207else
10208 echo "$as_me: failed program was:" >&5
10209sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10210
a8b2ad8d 10211 ac_header_preproc=no
10212fi
ec311f39 10213
a8b2ad8d 10214rm -f conftest.err conftest.$ac_ext
10215{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10216echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 10217
a8b2ad8d 10218# So? What about this header?
10219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10220 yes:no: )
10221 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
10222echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
10224echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
10225 ac_header_preproc=yes
10226 ;;
10227 no:yes:* )
10228 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
10229echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
10231echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
10233echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
10234 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
10235echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
10237echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
10239echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
10240 ( cat <<\_ASBOX
10241## -------------------------------------------------- ##
10242## Report this to evilnet-devel@lists.sourceforge.net ##
10243## -------------------------------------------------- ##
10244_ASBOX
10245 ) | sed "s/^/$as_me: WARNING: /" >&2
10246 ;;
10247esac
10248{ echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10249echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10250if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10252else
10253 ac_cv_header_google_coredumper_h=$ac_header_preproc
10254fi
10255{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10256echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10257
10258fi
10259if test $ac_cv_header_google_coredumper_h = yes; then
10260 :
10261else
d82cf2f0
AS
10262 { 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
10263echo "${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; }
a8b2ad8d 10264fi
10265
10266
10267
10268{ echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
10269echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
10270if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272else
10273 ac_check_lib_save_LIBS=$LIBS
10274LIBS="-lcoredumper $LIBS"
10275cat >conftest.$ac_ext <<_ACEOF
10276/* confdefs.h. */
10277_ACEOF
10278cat confdefs.h >>conftest.$ac_ext
10279cat >>conftest.$ac_ext <<_ACEOF
10280/* end confdefs.h. */
10281
10282/* Override any GCC internal prototype to avoid an error.
10283 Use char because int might match the return type of a GCC
10284 builtin and then its argument prototype would still apply. */
10285#ifdef __cplusplus
10286extern "C"
10287#endif
10288char WriteCoreDump ();
10289int
10290main ()
10291{
10292return WriteCoreDump ();
10293 ;
10294 return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext conftest$ac_exeext
10298if { (ac_try="$ac_link"
10299case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302esac
10303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_link") 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10312 { (case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315esac
10316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_try") 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325esac
10326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_try") 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_cv_lib_coredumper_WriteCoreDump=yes
10332else
10333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_cv_lib_coredumper_WriteCoreDump=no
10337fi
10338
10339rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341LIBS=$ac_check_lib_save_LIBS
10342fi
10343{ echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
10344echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
10345if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
10346 cat >>confdefs.h <<_ACEOF
10347#define HAVE_LIBCOREDUMPER 1
10348_ACEOF
10349
10350 LIBS="-lcoredumper $LIBS"
10351
10352else
d82cf2f0
AS
10353 { 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
10354echo "${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; }
a8b2ad8d 10355fi
10356
10357
10358
10359cat >>confdefs.h <<_ACEOF
10360#define CODENAME "${CODENAME}"
10361_ACEOF
10362
10363
10364
10365
10366
10367
10368ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10369
10370cat >confcache <<\_ACEOF
10371# This file is a shell script that caches the results of configure
10372# tests run on this system so they can be shared between configure
10373# scripts and configure runs, see configure's option --config-cache.
10374# It is not useful on other systems. If it contains results you don't
10375# want to keep, you may remove or edit it.
10376#
b3076f16
AS
10377# config.status only pays attention to the cache file if you give it
10378# the --recheck option to rerun configure.
10379#
10380# `ac_cv_env_foo' variables (set or unset) will be overridden when
10381# loading this file, other *unset* `ac_cv_foo' will be assigned the
10382# following values.
10383
10384_ACEOF
10385
10386# The following way of writing the cache mishandles newlines in values,
10387# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 10388# So, we kill variables containing newlines.
b3076f16
AS
10389# Ultrix sh set writes to stderr and can't be redirected directly,
10390# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 10391(
10392 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10393 eval ac_val=\$$ac_var
10394 case $ac_val in #(
10395 *${as_nl}*)
10396 case $ac_var in #(
10397 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10398echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10399 esac
10400 case $ac_var in #(
10401 _ | IFS | as_nl) ;; #(
10402 *) $as_unset $ac_var ;;
10403 esac ;;
10404 esac
10405 done
10406
b3076f16 10407 (set) 2>&1 |
a8b2ad8d 10408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10409 *${as_nl}ac_space=\ *)
b3076f16
AS
10410 # `set' does not quote correctly, so add quotes (double-quote
10411 # substitution turns \\\\ into \\, and sed turns \\ into \).
10412 sed -n \
10413 "s/'/'\\\\''/g;
10414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 10415 ;; #(
b3076f16
AS
10416 *)
10417 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 10418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 10419 ;;
a8b2ad8d 10420 esac |
10421 sort
10422) |
b3076f16 10423 sed '
a8b2ad8d 10424 /^ac_cv_env_/b end
b3076f16 10425 t clear
a8b2ad8d 10426 :clear
b3076f16
AS
10427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10428 t end
a8b2ad8d 10429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10430 :end' >>confcache
10431if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10432 if test -w "$cache_file"; then
10433 test "x$cache_file" != "x/dev/null" &&
10434 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10435echo "$as_me: updating cache $cache_file" >&6;}
b3076f16
AS
10436 cat confcache >$cache_file
10437 else
a8b2ad8d 10438 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10439echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16
AS
10440 fi
10441fi
10442rm -f confcache
10443
10444test "x$prefix" = xNONE && prefix=$ac_default_prefix
10445# Let make expand exec_prefix.
10446test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10447
b3076f16
AS
10448DEFS=-DHAVE_CONFIG_H
10449
10450ac_libobjs=
10451ac_ltlibobjs=
10452for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10453 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 10454 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10455 ac_i=`echo "$ac_i" | sed "$ac_script"`
10456 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10457 # will be set to the directory where LIBOBJS objects are built.
10458 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10459 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16
AS
10460done
10461LIBOBJS=$ac_libobjs
10462
10463LTLIBOBJS=$ac_ltlibobjs
10464
10465
ec1a68c8 10466if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10467 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10468Usually this means the macro was only invoked conditionally." >&5
10469echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10470Usually this means the macro was only invoked conditionally." >&2;}
10471 { (exit 1); exit 1; }; }
10472fi
10473if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10474 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10475Usually this means the macro was only invoked conditionally." >&5
10476echo "$as_me: error: conditional \"AMDEP\" was never defined.
10477Usually this means the macro was only invoked conditionally." >&2;}
10478 { (exit 1); exit 1; }; }
10479fi
10480if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10481 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10482Usually this means the macro was only invoked conditionally." >&5
10483echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10484Usually this means the macro was only invoked conditionally." >&2;}
10485 { (exit 1); exit 1; }; }
10486fi
10487if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10488 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10489Usually this means the macro was only invoked conditionally." >&5
10490echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10491Usually this means the macro was only invoked conditionally." >&2;}
10492 { (exit 1); exit 1; }; }
10493fi
b3076f16
AS
10494
10495: ${CONFIG_STATUS=./config.status}
10496ac_clean_files_save=$ac_clean_files
10497ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10498{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10499echo "$as_me: creating $CONFIG_STATUS" >&6;}
10500cat >$CONFIG_STATUS <<_ACEOF
10501#! $SHELL
10502# Generated by $as_me.
10503# Run this file to recreate the current configuration.
10504# Compiler output produced by configure, useful for debugging
10505# configure, is in config.log if it exists.
10506
10507debug=false
10508ac_cs_recheck=false
10509ac_cs_silent=false
10510SHELL=\${CONFIG_SHELL-$SHELL}
10511_ACEOF
10512
10513cat >>$CONFIG_STATUS <<\_ACEOF
10514## --------------------- ##
10515## M4sh Initialization. ##
10516## --------------------- ##
10517
10518# Be Bourne compatible
10519if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10520 emulate sh
10521 NULLCMD=:
10522 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10523 # is contrary to our usage. Disable this feature.
10524 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 10525 setopt NO_GLOB_SUBST
10526else
10527 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
b3076f16 10528fi
a8b2ad8d 10529BIN_SH=xpg4; export BIN_SH # for Tru64
b3076f16
AS
10530DUALCASE=1; export DUALCASE # for MKS sh
10531
a8b2ad8d 10532
10533# PATH needs CR
10534# Avoid depending upon Character Ranges.
10535as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10536as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10537as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10538as_cr_digits='0123456789'
10539as_cr_alnum=$as_cr_Letters$as_cr_digits
10540
10541# The user is always right.
10542if test "${PATH_SEPARATOR+set}" != set; then
10543 echo "#! /bin/sh" >conf$$.sh
10544 echo "exit 0" >>conf$$.sh
10545 chmod +x conf$$.sh
10546 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10547 PATH_SEPARATOR=';'
10548 else
10549 PATH_SEPARATOR=:
10550 fi
10551 rm -f conf$$.sh
10552fi
10553
b3076f16
AS
10554# Support unset when possible.
10555if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10556 as_unset=unset
10557else
10558 as_unset=false
10559fi
10560
10561
a8b2ad8d 10562# IFS
10563# We need space, tab and new line, in precisely that order. Quoting is
10564# there to prevent editors from complaining about space-tab.
10565# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10566# splitting by setting IFS to empty value.)
10567as_nl='
10568'
10569IFS=" "" $as_nl"
10570
10571# Find who we are. Look in the path if we contain no directory separator.
10572case $0 in
10573 *[\\/]* ) as_myself=$0 ;;
10574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10580done
10581IFS=$as_save_IFS
10582
10583 ;;
10584esac
10585# We did not find ourselves, most probably we were run as `sh COMMAND'
10586# in which case we are not to be found in the path.
10587if test "x$as_myself" = x; then
10588 as_myself=$0
10589fi
10590if test ! -f "$as_myself"; then
10591 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10592 { (exit 1); exit 1; }
10593fi
10594
b3076f16 10595# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 10596for as_var in ENV MAIL MAILPATH
10597do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10598done
b3076f16
AS
10599PS1='$ '
10600PS2='> '
10601PS4='+ '
10602
10603# NLS nuisances.
10604for as_var in \
10605 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10606 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10607 LC_TELEPHONE LC_TIME
10608do
10609 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10610 eval $as_var=C; export $as_var
10611 else
a8b2ad8d 10612 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16
AS
10613 fi
10614done
10615
10616# Required to use basename.
a8b2ad8d 10617if expr a : '\(a\)' >/dev/null 2>&1 &&
10618 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16
AS
10619 as_expr=expr
10620else
10621 as_expr=false
10622fi
10623
a8b2ad8d 10624if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16
AS
10625 as_basename=basename
10626else
10627 as_basename=false
10628fi
10629
10630
10631# Name of the executable.
a8b2ad8d 10632as_me=`$as_basename -- "$0" ||
b3076f16
AS
10633$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10634 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 10635 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 10636echo X/"$0" |
a8b2ad8d 10637 sed '/^.*\/\([^/][^/]*\)\/*$/{
10638 s//\1/
10639 q
10640 }
10641 /^X\/\(\/\/\)$/{
10642 s//\1/
10643 q
10644 }
10645 /^X\/\(\/\).*/{
10646 s//\1/
10647 q
10648 }
10649 s/.*/./; q'`
b3076f16 10650
a8b2ad8d 10651# CDPATH.
10652$as_unset CDPATH
b3076f16
AS
10653
10654
b3076f16 10655
b3076f16
AS
10656 as_lineno_1=$LINENO
10657 as_lineno_2=$LINENO
b3076f16 10658 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 10659 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16
AS
10660
10661 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10662 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 10663 # line-number line after each line using $LINENO; the second 'sed'
10664 # does the real work. The second script uses 'N' to pair each
10665 # line-number line with the line containing $LINENO, and appends
10666 # trailing '-' during substitution so that $LINENO is not a special
10667 # case at line end.
b3076f16 10668 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 10669 # scripts with optimization help from Paolo Bonzini. Blame Lee
10670 # E. McMahon (1931-1989) for sed's syntax. :-)
10671 sed -n '
10672 p
10673 /[$]LINENO/=
10674 ' <$as_myself |
b3076f16 10675 sed '
a8b2ad8d 10676 s/[$]LINENO.*/&-/
10677 t lineno
10678 b
10679 :lineno
b3076f16 10680 N
a8b2ad8d 10681 :loop
10682 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 10683 t loop
a8b2ad8d 10684 s/-\n.*//
b3076f16 10685 ' >$as_me.lineno &&
a8b2ad8d 10686 chmod +x "$as_me.lineno" ||
10687 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b3076f16
AS
10688 { (exit 1); exit 1; }; }
10689
10690 # Don't try to exec as it changes $[0], causing all sort of problems
10691 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 10692 # original and so on. Autoconf is especially sensitive to this).
10693 . "./$as_me.lineno"
b3076f16
AS
10694 # Exit status is that of the last command.
10695 exit
10696}
10697
10698
a8b2ad8d 10699if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10700 as_dirname=dirname
10701else
10702 as_dirname=false
10703fi
10704
10705ECHO_C= ECHO_N= ECHO_T=
10706case `echo -n x` in
10707-n*)
10708 case `echo 'x\c'` in
10709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10710 *) ECHO_C='\c';;
10711 esac;;
10712*)
10713 ECHO_N='-n';;
b3076f16
AS
10714esac
10715
a8b2ad8d 10716if expr a : '\(a\)' >/dev/null 2>&1 &&
10717 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16
AS
10718 as_expr=expr
10719else
10720 as_expr=false
10721fi
10722
10723rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 10724if test -d conf$$.dir; then
10725 rm -f conf$$.dir/conf$$.file
10726else
10727 rm -f conf$$.dir
10728 mkdir conf$$.dir
10729fi
b3076f16
AS
10730echo >conf$$.file
10731if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 10732 as_ln_s='ln -s'
10733 # ... but there are two gotchas:
10734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10736 # In both cases, we have to default to `cp -p'.
10737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 10738 as_ln_s='cp -p'
b3076f16
AS
10739elif ln conf$$.file conf$$ 2>/dev/null; then
10740 as_ln_s=ln
10741else
10742 as_ln_s='cp -p'
10743fi
a8b2ad8d 10744rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10745rmdir conf$$.dir 2>/dev/null
b3076f16
AS
10746
10747if mkdir -p . 2>/dev/null; then
10748 as_mkdir_p=:
10749else
10750 test -d ./-p && rmdir ./-p
10751 as_mkdir_p=false
10752fi
10753
a8b2ad8d 10754# Find out whether ``test -x'' works. Don't use a zero-byte file, as
10755# systems may use methods other than mode bits to determine executability.
10756cat >conf$$.file <<_ASEOF
10757#! /bin/sh
10758exit 0
10759_ASEOF
10760chmod +x conf$$.file
10761if test -x conf$$.file >/dev/null 2>&1; then
10762 as_executable_p="test -x"
10763else
10764 as_executable_p=:
10765fi
10766rm -f conf$$.file
b3076f16
AS
10767
10768# Sed expression to map a string onto a valid CPP name.
10769as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10770
10771# Sed expression to map a string onto a valid variable name.
10772as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10773
10774
b3076f16
AS
10775exec 6>&1
10776
a8b2ad8d 10777# Save the log message, to keep $[0] and so on meaningful, and to
b3076f16 10778# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 10779# values after options handling.
10780ac_log="
63c95a47 10781This file was extended by X3 $as_me 1.5, which was
a8b2ad8d 10782generated by GNU Autoconf 2.60. Invocation command line was
b3076f16
AS
10783
10784 CONFIG_FILES = $CONFIG_FILES
10785 CONFIG_HEADERS = $CONFIG_HEADERS
10786 CONFIG_LINKS = $CONFIG_LINKS
10787 CONFIG_COMMANDS = $CONFIG_COMMANDS
10788 $ $0 $@
10789
a8b2ad8d 10790on `(hostname || uname -n) 2>/dev/null | sed 1q`
10791"
10792
b3076f16
AS
10793_ACEOF
10794
a8b2ad8d 10795cat >>$CONFIG_STATUS <<_ACEOF
b3076f16 10796# Files that config.status was made for.
a8b2ad8d 10797config_files="$ac_config_files"
10798config_headers="$ac_config_headers"
10799config_commands="$ac_config_commands"
b3076f16 10800
a8b2ad8d 10801_ACEOF
b3076f16
AS
10802
10803cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16
AS
10804ac_cs_usage="\
10805\`$as_me' instantiates files from templates according to the
10806current configuration.
10807
10808Usage: $0 [OPTIONS] [FILE]...
10809
10810 -h, --help print this help, then exit
10811 -V, --version print version number, then exit
10812 -q, --quiet do not print progress messages
10813 -d, --debug don't remove temporary files
10814 --recheck update $as_me by reconfiguring in the same conditions
10815 --file=FILE[:TEMPLATE]
10816 instantiate the configuration file FILE
10817 --header=FILE[:TEMPLATE]
10818 instantiate the configuration header FILE
10819
10820Configuration files:
10821$config_files
10822
10823Configuration headers:
10824$config_headers
10825
ec1a68c8 10826Configuration commands:
10827$config_commands
10828
b3076f16 10829Report bugs to <bug-autoconf@gnu.org>."
b3076f16 10830
a8b2ad8d 10831_ACEOF
b3076f16
AS
10832cat >>$CONFIG_STATUS <<_ACEOF
10833ac_cs_version="\\
63c95a47 10834X3 config.status 1.5
a8b2ad8d 10835configured by $0, generated by GNU Autoconf 2.60,
10836 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 10837
a8b2ad8d 10838Copyright (C) 2006 Free Software Foundation, Inc.
b3076f16
AS
10839This config.status script is free software; the Free Software Foundation
10840gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 10841
10842ac_pwd='$ac_pwd'
10843srcdir='$srcdir'
10844INSTALL='$INSTALL'
b3076f16
AS
10845_ACEOF
10846
10847cat >>$CONFIG_STATUS <<\_ACEOF
10848# If no file are specified by the user, then we need to provide default
10849# value. By we need to know if files were specified by the user.
10850ac_need_defaults=:
10851while test $# != 0
10852do
10853 case $1 in
10854 --*=*)
a8b2ad8d 10855 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10856 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16
AS
10857 ac_shift=:
10858 ;;
a8b2ad8d 10859 *)
b3076f16
AS
10860 ac_option=$1
10861 ac_optarg=$2
10862 ac_shift=shift
10863 ;;
b3076f16
AS
10864 esac
10865
10866 case $ac_option in
10867 # Handling of the options.
b3076f16
AS
10868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10869 ac_cs_recheck=: ;;
a8b2ad8d 10870 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10871 echo "$ac_cs_version"; exit ;;
10872 --debug | --debu | --deb | --de | --d | -d )
b3076f16
AS
10873 debug=: ;;
10874 --file | --fil | --fi | --f )
10875 $ac_shift
10876 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10877 ac_need_defaults=false;;
10878 --header | --heade | --head | --hea )
10879 $ac_shift
10880 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10881 ac_need_defaults=false;;
a8b2ad8d 10882 --he | --h)
10883 # Conflict between --help and --header
10884 { echo "$as_me: error: ambiguous option: $1
10885Try \`$0 --help' for more information." >&2
10886 { (exit 1); exit 1; }; };;
10887 --help | --hel | -h )
10888 echo "$ac_cs_usage"; exit ;;
b3076f16
AS
10889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10891 ac_cs_silent=: ;;
10892
10893 # This is an error.
a8b2ad8d 10894 -*) { echo "$as_me: error: unrecognized option: $1
10895Try \`$0 --help' for more information." >&2
b3076f16
AS
10896 { (exit 1); exit 1; }; } ;;
10897
a8b2ad8d 10898 *) ac_config_targets="$ac_config_targets $1"
10899 ac_need_defaults=false ;;
b3076f16
AS
10900
10901 esac
10902 shift
10903done
10904
10905ac_configure_extra_args=
10906
10907if $ac_cs_silent; then
10908 exec 6>/dev/null
10909 ac_configure_extra_args="$ac_configure_extra_args --silent"
10910fi
10911
10912_ACEOF
10913cat >>$CONFIG_STATUS <<_ACEOF
10914if \$ac_cs_recheck; then
a8b2ad8d 10915 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10916 CONFIG_SHELL=$SHELL
10917 export CONFIG_SHELL
10918 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b3076f16
AS
10919fi
10920
10921_ACEOF
a8b2ad8d 10922cat >>$CONFIG_STATUS <<\_ACEOF
10923exec 5>>config.log
10924{
10925 echo
10926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10927## Running $as_me. ##
10928_ASBOX
10929 echo "$ac_log"
10930} >&5
b3076f16 10931
a8b2ad8d 10932_ACEOF
ec1a68c8 10933cat >>$CONFIG_STATUS <<_ACEOF
10934#
a8b2ad8d 10935# INIT-COMMANDS
ec1a68c8 10936#
ec1a68c8 10937AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10938
10939_ACEOF
b3076f16 10940
b3076f16 10941cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 10942
10943# Handling of arguments.
b3076f16
AS
10944for ac_config_target in $ac_config_targets
10945do
a8b2ad8d 10946 case $ac_config_target in
10947 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10948 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10950 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
10951 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10952
b3076f16
AS
10953 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10954echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10955 { (exit 1); exit 1; }; };;
10956 esac
10957done
10958
a8b2ad8d 10959
b3076f16
AS
10960# If the user did not use the arguments to specify the items to instantiate,
10961# then the envvar interface is used. Set only those that are not.
10962# We use the long form for the default assignment because of an extremely
10963# bizarre bug on SunOS 4.1.3.
10964if $ac_need_defaults; then
10965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 10967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16
AS
10968fi
10969
10970# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 10971# simply because there is no reason against having it here, and in addition,
b3076f16 10972# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 10973# Hook for its removal unless debugging.
10974# Note that there is a small window in which the directory will not be cleaned:
10975# after its creation but before its name has been assigned to `$tmp'.
b3076f16
AS
10976$debug ||
10977{
a8b2ad8d 10978 tmp=
10979 trap 'exit_status=$?
10980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10981' 0
b3076f16
AS
10982 trap '{ (exit 1); exit 1; }' 1 2 13 15
10983}
b3076f16
AS
10984# Create a (secure) tmp directory for tmp files.
10985
10986{
a8b2ad8d 10987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16
AS
10988 test -n "$tmp" && test -d "$tmp"
10989} ||
10990{
a8b2ad8d 10991 tmp=./conf$$-$RANDOM
10992 (umask 077 && mkdir "$tmp")
b3076f16
AS
10993} ||
10994{
10995 echo "$me: cannot create a temporary directory in ." >&2
10996 { (exit 1); exit 1; }
10997}
10998
b3076f16 10999#
a8b2ad8d 11000# Set up the sed scripts for CONFIG_FILES section.
b3076f16
AS
11001#
11002
11003# No need to generate the scripts if there are no CONFIG_FILES.
11004# This happens for instance when ./config.status config.h
a8b2ad8d 11005if test -n "$CONFIG_FILES"; then
11006
11007_ACEOF
11008
11009
11010
11011ac_delim='%!_!# '
11012for ac_last_try in false false false false false :; do
11013 cat >conf$$subs.sed <<_ACEOF
11014SHELL!$SHELL$ac_delim
11015PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11016PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11017PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11018PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11019PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11020PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11021exec_prefix!$exec_prefix$ac_delim
11022prefix!$prefix$ac_delim
11023program_transform_name!$program_transform_name$ac_delim
11024bindir!$bindir$ac_delim
11025sbindir!$sbindir$ac_delim
11026libexecdir!$libexecdir$ac_delim
11027datarootdir!$datarootdir$ac_delim
11028datadir!$datadir$ac_delim
11029sysconfdir!$sysconfdir$ac_delim
11030sharedstatedir!$sharedstatedir$ac_delim
11031localstatedir!$localstatedir$ac_delim
11032includedir!$includedir$ac_delim
11033oldincludedir!$oldincludedir$ac_delim
11034docdir!$docdir$ac_delim
11035infodir!$infodir$ac_delim
11036htmldir!$htmldir$ac_delim
11037dvidir!$dvidir$ac_delim
11038pdfdir!$pdfdir$ac_delim
11039psdir!$psdir$ac_delim
11040libdir!$libdir$ac_delim
11041localedir!$localedir$ac_delim
11042mandir!$mandir$ac_delim
11043DEFS!$DEFS$ac_delim
11044ECHO_C!$ECHO_C$ac_delim
11045ECHO_N!$ECHO_N$ac_delim
11046ECHO_T!$ECHO_T$ac_delim
11047LIBS!$LIBS$ac_delim
11048build_alias!$build_alias$ac_delim
11049host_alias!$host_alias$ac_delim
11050target_alias!$target_alias$ac_delim
11051build!$build$ac_delim
11052build_cpu!$build_cpu$ac_delim
11053build_vendor!$build_vendor$ac_delim
11054build_os!$build_os$ac_delim
11055host!$host$ac_delim
11056host_cpu!$host_cpu$ac_delim
11057host_vendor!$host_vendor$ac_delim
11058host_os!$host_os$ac_delim
11059target!$target$ac_delim
11060target_cpu!$target_cpu$ac_delim
11061target_vendor!$target_vendor$ac_delim
11062target_os!$target_os$ac_delim
11063INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11064INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11065INSTALL_DATA!$INSTALL_DATA$ac_delim
11066CYGPATH_W!$CYGPATH_W$ac_delim
11067PACKAGE!$PACKAGE$ac_delim
11068VERSION!$VERSION$ac_delim
11069ACLOCAL!$ACLOCAL$ac_delim
11070AUTOCONF!$AUTOCONF$ac_delim
11071AUTOMAKE!$AUTOMAKE$ac_delim
11072AUTOHEADER!$AUTOHEADER$ac_delim
11073MAKEINFO!$MAKEINFO$ac_delim
11074install_sh!$install_sh$ac_delim
11075STRIP!$STRIP$ac_delim
11076INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11077mkdir_p!$mkdir_p$ac_delim
11078AWK!$AWK$ac_delim
11079SET_MAKE!$SET_MAKE$ac_delim
11080am__leading_dot!$am__leading_dot$ac_delim
11081AMTAR!$AMTAR$ac_delim
11082am__tar!$am__tar$ac_delim
11083am__untar!$am__untar$ac_delim
11084MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11085MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11086MAINT!$MAINT$ac_delim
11087CC!$CC$ac_delim
11088CFLAGS!$CFLAGS$ac_delim
11089LDFLAGS!$LDFLAGS$ac_delim
11090CPPFLAGS!$CPPFLAGS$ac_delim
11091ac_ct_CC!$ac_ct_CC$ac_delim
11092EXEEXT!$EXEEXT$ac_delim
11093OBJEXT!$OBJEXT$ac_delim
11094DEPDIR!$DEPDIR$ac_delim
11095am__include!$am__include$ac_delim
11096am__quote!$am__quote$ac_delim
11097AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11098AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11099AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11100CCDEPMODE!$CCDEPMODE$ac_delim
11101am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11102am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11103RANLIB!$RANLIB$ac_delim
11104LN_S!$LN_S$ac_delim
11105CPP!$CPP$ac_delim
11106GREP!$GREP$ac_delim
11107EGREP!$EGREP$ac_delim
11108MAKER!$MAKER$ac_delim
11109ALLOCA!$ALLOCA$ac_delim
11110MODULE_OBJS!$MODULE_OBJS$ac_delim
11111_ACEOF
11112
11113 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11114 break
11115 elif $ac_last_try; then
11116 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11117echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11118 { (exit 1); exit 1; }; }
11119 else
11120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b3076f16 11121 fi
a8b2ad8d 11122done
b3076f16 11123
a8b2ad8d 11124ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11125if test -n "$ac_eof"; then
11126 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11127 ac_eof=`expr $ac_eof + 1`
11128fi
11129
11130cat >>$CONFIG_STATUS <<_ACEOF
11131cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11132/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b3076f16 11133_ACEOF
a8b2ad8d 11134sed '
11135s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11136s/^/s,@/; s/!/@,|#_!!_#|/
11137:n
11138t n
11139s/'"$ac_delim"'$/,g/; t
11140s/$/\\/; p
11141N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11142' >>$CONFIG_STATUS <conf$$subs.sed
11143rm -f conf$$subs.sed
11144cat >>$CONFIG_STATUS <<_ACEOF
11145CEOF$ac_eof
11146_ACEOF
11147
11148
11149ac_delim='%!_!# '
11150for ac_last_try in false false false false false :; do
11151 cat >conf$$subs.sed <<_ACEOF
11152MY_SUBDIRS!$MY_SUBDIRS$ac_delim
11153RX_INCLUDES!$RX_INCLUDES$ac_delim
11154RX_LIBS!$RX_LIBS$ac_delim
11155TRACK!$TRACK$ac_delim
11156LIBOBJS!$LIBOBJS$ac_delim
11157LTLIBOBJS!$LTLIBOBJS$ac_delim
11158_ACEOF
11159
11160 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
11161 break
11162 elif $ac_last_try; then
11163 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11164echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11165 { (exit 1); exit 1; }; }
11166 else
11167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11168 fi
11169done
11170
11171ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11172if test -n "$ac_eof"; then
11173 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11174 ac_eof=`expr $ac_eof + 1`
11175fi
11176
11177cat >>$CONFIG_STATUS <<_ACEOF
11178cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11179/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11180_ACEOF
11181sed '
11182s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11183s/^/s,@/; s/!/@,|#_!!_#|/
11184:n
11185t n
11186s/'"$ac_delim"'$/,g/; t
11187s/$/\\/; p
11188N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11189' >>$CONFIG_STATUS <conf$$subs.sed
11190rm -f conf$$subs.sed
11191cat >>$CONFIG_STATUS <<_ACEOF
11192:end
11193s/|#_!!_#|//g
11194CEOF$ac_eof
11195_ACEOF
11196
11197
11198# VPATH may cause trouble with some makes, so we remove $(srcdir),
11199# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11200# trailing colons and then remove the whole line if VPATH becomes empty
11201# (actually we leave an empty line to preserve line numbers).
11202if test "x$srcdir" = x.; then
11203 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11204s/:*\$(srcdir):*/:/
11205s/:*\${srcdir}:*/:/
11206s/:*@srcdir@:*/:/
11207s/^\([^=]*=[ ]*\):*/\1/
11208s/:*$//
11209s/^[^=]*=[ ]*$//
11210}'
11211fi
11212
b3076f16 11213cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 11214fi # test -n "$CONFIG_FILES"
11215
11216
11217for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11218do
11219 case $ac_tag in
11220 :[FHLC]) ac_mode=$ac_tag; continue;;
11221 esac
11222 case $ac_mode$ac_tag in
11223 :[FHL]*:*);;
11224 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11225echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11226 { (exit 1); exit 1; }; };;
11227 :[FH]-) ac_tag=-:-;;
11228 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11229 esac
11230 ac_save_IFS=$IFS
11231 IFS=:
11232 set x $ac_tag
11233 IFS=$ac_save_IFS
11234 shift
11235 ac_file=$1
11236 shift
11237
11238 case $ac_mode in
11239 :L) ac_source=$1;;
11240 :[FH])
11241 ac_file_inputs=
11242 for ac_f
11243 do
11244 case $ac_f in
11245 -) ac_f="$tmp/stdin";;
11246 *) # Look for the file first in the build tree, then in the source tree
11247 # (if the path is not absolute). The absolute path cannot be DOS-style,
11248 # because $ac_f cannot contain `:'.
11249 test -f "$ac_f" ||
11250 case $ac_f in
11251 [\\/$]*) false;;
11252 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11253 esac ||
11254 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11255echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11256 { (exit 1); exit 1; }; };;
11257 esac
11258 ac_file_inputs="$ac_file_inputs $ac_f"
11259 done
11260
11261 # Let's still pretend it is `configure' which instantiates (i.e., don't
11262 # use $as_me), people would be surprised to read:
11263 # /* config.h. Generated by config.status. */
11264 configure_input="Generated from "`IFS=:
11265 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11266 if test x"$ac_file" != x-; then
11267 configure_input="$ac_file. $configure_input"
11268 { echo "$as_me:$LINENO: creating $ac_file" >&5
11269echo "$as_me: creating $ac_file" >&6;}
11270 fi
11271
11272 case $ac_tag in
11273 *:-:* | *:-) cat >"$tmp/stdin";;
11274 esac
11275 ;;
b3076f16
AS
11276 esac
11277
a8b2ad8d 11278 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16
AS
11279$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11280 X"$ac_file" : 'X\(//\)[^/]' \| \
11281 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 11282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11283echo X"$ac_file" |
a8b2ad8d 11284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11285 s//\1/
11286 q
11287 }
11288 /^X\(\/\/\)[^/].*/{
11289 s//\1/
11290 q
11291 }
11292 /^X\(\/\/\)$/{
11293 s//\1/
11294 q
11295 }
11296 /^X\(\/\).*/{
11297 s//\1/
11298 q
11299 }
11300 s/.*/./; q'`
11301 { as_dir="$ac_dir"
11302 case $as_dir in #(
11303 -*) as_dir=./$as_dir;;
11304 esac
11305 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b3076f16 11306 as_dirs=
a8b2ad8d 11307 while :; do
11308 case $as_dir in #(
11309 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11310 *) as_qdir=$as_dir;;
11311 esac
11312 as_dirs="'$as_qdir' $as_dirs"
11313 as_dir=`$as_dirname -- "$as_dir" ||
b3076f16
AS
11314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11315 X"$as_dir" : 'X\(//\)[^/]' \| \
11316 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11318echo X"$as_dir" |
a8b2ad8d 11319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11320 s//\1/
11321 q
11322 }
11323 /^X\(\/\/\)[^/].*/{
11324 s//\1/
11325 q
11326 }
11327 /^X\(\/\/\)$/{
11328 s//\1/
11329 q
11330 }
11331 /^X\(\/\).*/{
11332 s//\1/
11333 q
11334 }
11335 s/.*/./; q'`
11336 test -d "$as_dir" && break
b3076f16 11337 done
a8b2ad8d 11338 test -z "$as_dirs" || eval "mkdir $as_dirs"
11339 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11340echo "$as_me: error: cannot create directory $as_dir" >&2;}
b3076f16 11341 { (exit 1); exit 1; }; }; }
b3076f16
AS
11342 ac_builddir=.
11343
a8b2ad8d 11344case "$ac_dir" in
11345.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11346*)
b3076f16 11347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 11348 # A ".." for each directory in $ac_dir_suffix.
11349 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11350 case $ac_top_builddir_sub in
11351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11353 esac ;;
11354esac
11355ac_abs_top_builddir=$ac_pwd
11356ac_abs_builddir=$ac_pwd$ac_dir_suffix
11357# for backward compatibility:
11358ac_top_builddir=$ac_top_build_prefix
b3076f16
AS
11359
11360case $srcdir in
a8b2ad8d 11361 .) # We are building in place.
b3076f16 11362 ac_srcdir=.
a8b2ad8d 11363 ac_top_srcdir=$ac_top_builddir_sub
11364 ac_abs_top_srcdir=$ac_pwd ;;
11365 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 11366 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 11367 ac_top_srcdir=$srcdir
11368 ac_abs_top_srcdir=$srcdir ;;
11369 *) # Relative name.
11370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11371 ac_top_srcdir=$ac_top_build_prefix$srcdir
11372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 11373esac
a8b2ad8d 11374ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 11375
b3076f16 11376
a8b2ad8d 11377 case $ac_mode in
11378 :F)
11379 #
11380 # CONFIG_FILE
11381 #
b3076f16
AS
11382
11383 case $INSTALL in
11384 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 11385 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 11386 esac
a8b2ad8d 11387_ACEOF
b3076f16 11388
a8b2ad8d 11389cat >>$CONFIG_STATUS <<\_ACEOF
11390# If the template does not know about datarootdir, expand it.
11391# FIXME: This hack should be removed a few years after 2.60.
11392ac_datarootdir_hack=; ac_datarootdir_seen=
b8cb2a14 11393
a8b2ad8d 11394case `sed -n '/datarootdir/ {
11395 p
11396 q
11397}
11398/@datadir@/p
11399/@docdir@/p
11400/@infodir@/p
11401/@localedir@/p
11402/@mandir@/p
11403' $ac_file_inputs` in
11404*datarootdir*) ac_datarootdir_seen=yes;;
11405*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11406 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11407echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11408_ACEOF
11409cat >>$CONFIG_STATUS <<_ACEOF
11410 ac_datarootdir_hack='
11411 s&@datadir@&$datadir&g
11412 s&@docdir@&$docdir&g
11413 s&@infodir@&$infodir&g
11414 s&@localedir@&$localedir&g
11415 s&@mandir@&$mandir&g
11416 s&\\\${datarootdir}&$datarootdir&g' ;;
11417esac
b3076f16 11418_ACEOF
a8b2ad8d 11419
11420# Neutralize VPATH when `$srcdir' = `.'.
11421# Shell code in configure.ac might set extrasub.
11422# FIXME: do we really want to maintain this feature?
b3076f16
AS
11423cat >>$CONFIG_STATUS <<_ACEOF
11424 sed "$ac_vpsub
11425$extrasub
11426_ACEOF
11427cat >>$CONFIG_STATUS <<\_ACEOF
11428:t
11429/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a8b2ad8d 11430s&@configure_input@&$configure_input&;t t
11431s&@top_builddir@&$ac_top_builddir_sub&;t t
11432s&@srcdir@&$ac_srcdir&;t t
11433s&@abs_srcdir@&$ac_abs_srcdir&;t t
11434s&@top_srcdir@&$ac_top_srcdir&;t t
11435s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11436s&@builddir@&$ac_builddir&;t t
11437s&@abs_builddir@&$ac_abs_builddir&;t t
11438s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11439s&@INSTALL@&$ac_INSTALL&;t t
11440$ac_datarootdir_hack
11441" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11442
11443test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11444 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11446 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11447which seems to be undefined. Please make sure it is defined." >&5
11448echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11449which seems to be undefined. Please make sure it is defined." >&2;}
11450
11451 rm -f "$tmp/stdin"
b3076f16 11452 case $ac_file in
a8b2ad8d 11453 -) cat "$tmp/out"; rm -f "$tmp/out";;
11454 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
b3076f16 11455 esac
a8b2ad8d 11456 ;;
11457 :H)
11458 #
11459 # CONFIG_HEADER
11460 #
11461_ACEOF
11462
11463# Transform confdefs.h into a sed script `conftest.defines', that
11464# substitutes the proper values into config.h.in to produce config.h.
11465rm -f conftest.defines conftest.tail
11466# First, append a space to every undef/define line, to ease matching.
11467echo 's/$/ /' >conftest.defines
11468# Then, protect against being on the right side of a sed subst, or in
11469# an unquoted here document, in config.status. If some macros were
11470# called several times there might be several #defines for the same
11471# symbol, which is useless. But do not sort them, since the last
11472# AC_DEFINE must be honored.
11473ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11474# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11475# NAME is the cpp macro being defined, VALUE is the value it is being given.
11476# PARAMS is the parameter list in the macro definition--in most cases, it's
11477# just an empty string.
11478ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11479ac_dB='\\)[ (].*,\\1define\\2'
11480ac_dC=' '
11481ac_dD=' ,'
11482
11483uniq confdefs.h |
11484 sed -n '
11485 t rset
11486 :rset
11487 s/^[ ]*#[ ]*define[ ][ ]*//
11488 t ok
11489 d
11490 :ok
11491 s/[\\&,]/\\&/g
11492 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11493 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11494 ' >>conftest.defines
11495
11496# Remove the space that was appended to ease matching.
11497# Then replace #undef with comments. This is necessary, for
b3076f16
AS
11498# example, in the case of _POSIX_SOURCE, which is predefined and required
11499# on some systems where configure will not decide to define it.
a8b2ad8d 11500# (The regexp can be short, since the line contains either #define or #undef.)
11501echo 's/ $//
11502s,^[ #]*u.*,/* & */,' >>conftest.defines
11503
11504# Break up conftest.defines:
11505ac_max_sed_lines=50
11506
11507# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11508# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11509# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11510# et cetera.
11511ac_in='$ac_file_inputs'
11512ac_out='"$tmp/out1"'
11513ac_nxt='"$tmp/out2"'
11514
11515while :
b3076f16 11516do
a8b2ad8d 11517 # Write a here document:
11518 cat >>$CONFIG_STATUS <<_ACEOF
11519 # First, check the format of the line:
11520 cat >"\$tmp/defines.sed" <<\\CEOF
11521/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11522/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11523b
11524:def
11525_ACEOF
11526 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
b3076f16 11527 echo 'CEOF
a8b2ad8d 11528 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11529 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11530 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11531 grep . conftest.tail >/dev/null || break
b3076f16
AS
11532 rm -f conftest.defines
11533 mv conftest.tail conftest.defines
11534done
a8b2ad8d 11535rm -f conftest.defines conftest.tail
b3076f16 11536
a8b2ad8d 11537echo "ac_result=$ac_in" >>$CONFIG_STATUS
b3076f16 11538cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 11539 if test x"$ac_file" != x-; then
a8b2ad8d 11540 echo "/* $configure_input */" >"$tmp/config.h"
11541 cat "$ac_result" >>"$tmp/config.h"
11542 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
b3076f16
AS
11543 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11544echo "$as_me: $ac_file is unchanged" >&6;}
11545 else
b3076f16 11546 rm -f $ac_file
a8b2ad8d 11547 mv "$tmp/config.h" $ac_file
b3076f16
AS
11548 fi
11549 else
a8b2ad8d 11550 echo "/* $configure_input */"
11551 cat "$ac_result"
b3076f16 11552 fi
a8b2ad8d 11553 rm -f "$tmp/out12"
ec1a68c8 11554# Compute $ac_file's index in $config_headers.
11555_am_stamp_count=1
11556for _am_header in $config_headers :; do
11557 case $_am_header in
11558 $ac_file | $ac_file:* )
11559 break ;;
11560 * )
11561 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11562 esac
11563done
a8b2ad8d 11564echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
ec1a68c8 11565$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566 X$ac_file : 'X\(//\)[^/]' \| \
11567 X$ac_file : 'X\(//\)$' \| \
a8b2ad8d 11568 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11569echo X$ac_file |
a8b2ad8d 11570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11571 s//\1/
11572 q
11573 }
11574 /^X\(\/\/\)[^/].*/{
11575 s//\1/
11576 q
11577 }
11578 /^X\(\/\/\)$/{
11579 s//\1/
11580 q
11581 }
11582 /^X\(\/\).*/{
11583 s//\1/
11584 q
11585 }
11586 s/.*/./; q'`/stamp-h$_am_stamp_count
11587 ;;
ec1a68c8 11588
a8b2ad8d 11589 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11590echo "$as_me: executing $ac_file commands" >&6;}
11591 ;;
11592 esac
ec1a68c8 11593
11594
a8b2ad8d 11595 case $ac_file$ac_mode in
11596 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
ec1a68c8 11597 # Strip MF so we end up with the name of the file.
11598 mf=`echo "$mf" | sed -e 's/:.*$//'`
11599 # Check whether this is an Automake generated Makefile or not.
11600 # We used to match only the files named `Makefile.in', but
11601 # some people rename them; so instead we look at the file content.
11602 # Grep'ing the first line is not enough: some people post-process
11603 # each Makefile.in and add a new line on top of each file to say so.
11604 # So let's grep whole file.
11605 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
a8b2ad8d 11606 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 11607$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11608 X"$mf" : 'X\(//\)[^/]' \| \
11609 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 11610 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11611echo X"$mf" |
a8b2ad8d 11612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11613 s//\1/
11614 q
11615 }
11616 /^X\(\/\/\)[^/].*/{
11617 s//\1/
11618 q
11619 }
11620 /^X\(\/\/\)$/{
11621 s//\1/
11622 q
11623 }
11624 /^X\(\/\).*/{
11625 s//\1/
11626 q
11627 }
11628 s/.*/./; q'`
ec1a68c8 11629 else
11630 continue
11631 fi
11632 # Extract the definition of DEPDIR, am__include, and am__quote
11633 # from the Makefile without running `make'.
11634 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11635 test -z "$DEPDIR" && continue
11636 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11637 test -z "am__include" && continue
11638 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11639 # When using ansi2knr, U may be empty or an underscore; expand it
11640 U=`sed -n 's/^U = //p' < "$mf"`
11641 # Find all dependency output files, they are included files with
11642 # $(DEPDIR) in their names. We invoke sed twice because it is the
11643 # simplest approach to changing $(DEPDIR) to its actual value in the
11644 # expansion.
11645 for file in `sed -n "
11646 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11647 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11648 # Make sure the directory exists.
11649 test -f "$dirpart/$file" && continue
a8b2ad8d 11650 fdir=`$as_dirname -- "$file" ||
ec1a68c8 11651$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11652 X"$file" : 'X\(//\)[^/]' \| \
11653 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 11654 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11655echo X"$file" |
a8b2ad8d 11656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11657 s//\1/
11658 q
11659 }
11660 /^X\(\/\/\)[^/].*/{
11661 s//\1/
11662 q
11663 }
11664 /^X\(\/\/\)$/{
11665 s//\1/
11666 q
11667 }
11668 /^X\(\/\).*/{
11669 s//\1/
11670 q
11671 }
11672 s/.*/./; q'`
11673 { as_dir=$dirpart/$fdir
11674 case $as_dir in #(
11675 -*) as_dir=./$as_dir;;
11676 esac
11677 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ec1a68c8 11678 as_dirs=
a8b2ad8d 11679 while :; do
11680 case $as_dir in #(
11681 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11682 *) as_qdir=$as_dir;;
11683 esac
11684 as_dirs="'$as_qdir' $as_dirs"
11685 as_dir=`$as_dirname -- "$as_dir" ||
ec1a68c8 11686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11687 X"$as_dir" : 'X\(//\)[^/]' \| \
11688 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11689 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11690echo X"$as_dir" |
a8b2ad8d 11691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11692 s//\1/
11693 q
11694 }
11695 /^X\(\/\/\)[^/].*/{
11696 s//\1/
11697 q
11698 }
11699 /^X\(\/\/\)$/{
11700 s//\1/
11701 q
11702 }
11703 /^X\(\/\).*/{
11704 s//\1/
11705 q
11706 }
11707 s/.*/./; q'`
11708 test -d "$as_dir" && break
ec1a68c8 11709 done
a8b2ad8d 11710 test -z "$as_dirs" || eval "mkdir $as_dirs"
11711 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11712echo "$as_me: error: cannot create directory $as_dir" >&2;}
ec1a68c8 11713 { (exit 1); exit 1; }; }; }
ec1a68c8 11714 # echo "creating $dirpart/$file"
11715 echo '# dummy' > "$dirpart/$file"
11716 done
11717done
11718 ;;
a8b2ad8d 11719
ec1a68c8 11720 esac
a8b2ad8d 11721done # for ac_tag
b3076f16 11722
b3076f16
AS
11723
11724{ (exit 0); exit 0; }
11725_ACEOF
11726chmod +x $CONFIG_STATUS
11727ac_clean_files=$ac_clean_files_save
11728
11729
11730# configure is writing to config.log, and then calls config.status.
11731# config.status does its own redirection, appending to config.log.
11732# Unfortunately, on DOS this fails, as config.log is still kept open
11733# by configure, so config.status won't be able to write to it; its
11734# output is simply discarded. So we exec the FD to /dev/null,
11735# effectively closing config.log, so it can be properly (re)opened and
11736# appended to by config.status. When coming back to configure, we
11737# need to make the FD available again.
11738if test "$no_create" != yes; then
11739 ac_cs_success=:
11740 ac_config_status_args=
11741 test "$silent" = yes &&
11742 ac_config_status_args="$ac_config_status_args --quiet"
11743 exec 5>/dev/null
11744 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11745 exec 5>>config.log
11746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11747 # would make configure fail if this is the last instruction.
11748 $ac_cs_success || { (exit 1); exit 1; }
11749fi
11750
5b1166fd 11751
11752
11753
11754cat <<EOF
11755
11756Configuration summary
11757=====================
11758
11759X3 is now configured as follows:
11760
11761* Compilation environment
11762
11763 CC = $CC
11764 CFLAGS = $CFLAGS
11765 CPP = $CPP
11766 CPPFLAGS = $CPPFLAGS
11767 LD = $LD
11768 LDFLAGS = $LDFLAGS
11769 LIBS = $LIBS
11770
11771* X3 options
11772
a8b2ad8d 11773 Debug: $x3_debug
11774 Extra Modules: $module_list
11775 Malloc: $x3_malloc
11776 Protocol: $x3_ircd
11777 Regexp Library TRE $tre_version
11778 Coredumper Library Coredumper $core_version
5b1166fd 11779
a8b2ad8d 11780 Install to: $prefix
35305a49 11781
5b1166fd 11782Now you can proceed with compiling X3
11783
11784EOF
11785