]> jfr.im git - irc/evilnet/x3.git/blame - configure
ignore ALIST messages
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
2784452e 2# From configure.in Id: configure.in 1910 2007-02-09 00:36:52Z 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 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 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 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 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 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 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 123 as_basename=basename
124else
125 as_basename=false
126fi
127
128
129# Name of the executable.
a8b2ad8d 130as_me=`$as_basename -- "$0" ||
b3076f16 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 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 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 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 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 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 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 478esac
479
a8b2ad8d 480if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 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 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 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 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 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 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 547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
a8b2ad8d 551ac_clean_files=
b3076f16 552ac_config_libobj_dir=.
a8b2ad8d 553LIBOBJS=
b3076f16 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 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 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 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 744bindir='${exec_prefix}/bin'
745sbindir='${exec_prefix}/sbin'
746libexecdir='${exec_prefix}/libexec'
a8b2ad8d 747datarootdir='${prefix}/share'
748datadir='${datarootdir}'
b3076f16 749sysconfdir='${prefix}/etc'
750sharedstatedir='${prefix}/com'
751localstatedir='${prefix}/var'
b3076f16 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 763
764ac_prev=
a8b2ad8d 765ac_dashdash=
b3076f16 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 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 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 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 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 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 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 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 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 908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a8b2ad8d 910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b3076f16 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.
73d4cc91 1318 --with-ssl=PATH Base path to where openssl is installed
8da89711 1319 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1320 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
b3076f16 1321
1322Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
a8b2ad8d 1327 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1328 you have headers in a nonstandard directory <include dir>
b3076f16 1329 CPP C preprocessor
1330
1331Use these variables to override the choices made by `configure' or to help
1332it to find libraries and programs with nonstandard names/locations.
1333
63c95a47 1334Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1335_ACEOF
a8b2ad8d 1336ac_status=$?
b3076f16 1337fi
1338
1339if test "$ac_init_help" = "recursive"; then
1340 # If there are subdirs, report their specific --help.
b3076f16 1341 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a8b2ad8d 1342 test -d "$ac_dir" || continue
b3076f16 1343 ac_builddir=.
1344
a8b2ad8d 1345case "$ac_dir" in
1346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347*)
b3076f16 1348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 1349 # A ".." for each directory in $ac_dir_suffix.
1350 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1351 case $ac_top_builddir_sub in
1352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1354 esac ;;
1355esac
1356ac_abs_top_builddir=$ac_pwd
1357ac_abs_builddir=$ac_pwd$ac_dir_suffix
1358# for backward compatibility:
1359ac_top_builddir=$ac_top_build_prefix
b3076f16 1360
1361case $srcdir in
a8b2ad8d 1362 .) # We are building in place.
b3076f16 1363 ac_srcdir=.
a8b2ad8d 1364 ac_top_srcdir=$ac_top_builddir_sub
1365 ac_abs_top_srcdir=$ac_pwd ;;
1366 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1367 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1368 ac_top_srcdir=$srcdir
1369 ac_abs_top_srcdir=$srcdir ;;
1370 *) # Relative name.
1371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1372 ac_top_srcdir=$ac_top_build_prefix$srcdir
1373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1374esac
a8b2ad8d 1375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1376
1377 cd "$ac_dir" || { ac_status=$?; continue; }
1378 # Check for guested configure.
1379 if test -f "$ac_srcdir/configure.gnu"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1382 elif test -f "$ac_srcdir/configure"; then
1383 echo &&
1384 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1385 else
1386 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1387 fi || ac_status=$?
1388 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1389 done
1390fi
1391
a8b2ad8d 1392test -n "$ac_init_help" && exit $ac_status
b3076f16 1393if $ac_init_version; then
1394 cat <<\_ACEOF
63c95a47 1395X3 configure 1.5
a8b2ad8d 1396generated by GNU Autoconf 2.60
b3076f16 1397
a8b2ad8d 1398Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13992002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 1400This configure script is free software; the Free Software Foundation
1401gives unlimited permission to copy, distribute and modify it.
1402_ACEOF
a8b2ad8d 1403 exit
b3076f16 1404fi
a8b2ad8d 1405cat >config.log <<_ACEOF
b3076f16 1406This file contains any messages produced by compilers while
1407running configure, to aid debugging if configure makes a mistake.
1408
63c95a47 1409It was created by X3 $as_me 1.5, which was
a8b2ad8d 1410generated by GNU Autoconf 2.60. Invocation command line was
b3076f16 1411
1412 $ $0 $@
1413
1414_ACEOF
a8b2ad8d 1415exec 5>>config.log
b3076f16 1416{
1417cat <<_ASUNAME
1418## --------- ##
1419## Platform. ##
1420## --------- ##
1421
1422hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1423uname -m = `(uname -m) 2>/dev/null || echo unknown`
1424uname -r = `(uname -r) 2>/dev/null || echo unknown`
1425uname -s = `(uname -s) 2>/dev/null || echo unknown`
1426uname -v = `(uname -v) 2>/dev/null || echo unknown`
1427
1428/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1429/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1430
1431/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1432/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1433/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
a8b2ad8d 1434/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b3076f16 1435/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1436/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1437/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1438
1439_ASUNAME
1440
1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442for as_dir in $PATH
1443do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 echo "PATH: $as_dir"
1447done
a8b2ad8d 1448IFS=$as_save_IFS
b3076f16 1449
1450} >&5
1451
1452cat >&5 <<_ACEOF
1453
1454
1455## ----------- ##
1456## Core tests. ##
1457## ----------- ##
1458
1459_ACEOF
1460
1461
1462# Keep a trace of the command line.
1463# Strip out --no-create and --no-recursion so they do not pile up.
1464# Strip out --silent because we don't want to record it for future runs.
1465# Also quote any args containing shell meta-characters.
1466# Make two passes to allow for proper duplicate-argument suppression.
1467ac_configure_args=
1468ac_configure_args0=
1469ac_configure_args1=
b3076f16 1470ac_must_keep_next=false
1471for ac_pass in 1 2
1472do
1473 for ac_arg
1474 do
1475 case $ac_arg in
1476 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1478 | -silent | --silent | --silen | --sile | --sil)
1479 continue ;;
a8b2ad8d 1480 *\'*)
b3076f16 1481 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1482 esac
1483 case $ac_pass in
1484 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1485 2)
1486 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1487 if test $ac_must_keep_next = true; then
1488 ac_must_keep_next=false # Got value, back to normal.
1489 else
1490 case $ac_arg in
1491 *=* | --config-cache | -C | -disable-* | --disable-* \
1492 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1493 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1494 | -with-* | --with-* | -without-* | --without-* | --x)
1495 case "$ac_configure_args0 " in
1496 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1497 esac
1498 ;;
1499 -* ) ac_must_keep_next=true ;;
1500 esac
1501 fi
a8b2ad8d 1502 ac_configure_args="$ac_configure_args '$ac_arg'"
b3076f16 1503 ;;
1504 esac
1505 done
1506done
1507$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1508$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1509
1510# When interrupted or exit'd, cleanup temporary files, and complete
1511# config.log. We remove comments because anyway the quotes in there
1512# would cause problems or look ugly.
a8b2ad8d 1513# WARNING: Use '\'' to represent an apostrophe within the trap.
1514# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 1515trap 'exit_status=$?
1516 # Save into config.log some information that might help in debugging.
1517 {
1518 echo
1519
1520 cat <<\_ASBOX
1521## ---------------- ##
1522## Cache variables. ##
1523## ---------------- ##
1524_ASBOX
1525 echo
1526 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 1527(
1528 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1529 eval ac_val=\$$ac_var
1530 case $ac_val in #(
1531 *${as_nl}*)
1532 case $ac_var in #(
1533 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1534echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1535 esac
1536 case $ac_var in #(
1537 _ | IFS | as_nl) ;; #(
1538 *) $as_unset $ac_var ;;
1539 esac ;;
1540 esac
1541 done
b3076f16 1542 (set) 2>&1 |
a8b2ad8d 1543 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1544 *${as_nl}ac_space=\ *)
b3076f16 1545 sed -n \
a8b2ad8d 1546 "s/'\''/'\''\\\\'\'''\''/g;
1547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1548 ;; #(
b3076f16 1549 *)
a8b2ad8d 1550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 1551 ;;
a8b2ad8d 1552 esac |
1553 sort
1554)
b3076f16 1555 echo
1556
1557 cat <<\_ASBOX
1558## ----------------- ##
1559## Output variables. ##
1560## ----------------- ##
1561_ASBOX
1562 echo
1563 for ac_var in $ac_subst_vars
1564 do
a8b2ad8d 1565 eval ac_val=\$$ac_var
1566 case $ac_val in
1567 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 esac
1569 echo "$ac_var='\''$ac_val'\''"
b3076f16 1570 done | sort
1571 echo
1572
1573 if test -n "$ac_subst_files"; then
1574 cat <<\_ASBOX
a8b2ad8d 1575## ------------------- ##
1576## File substitutions. ##
1577## ------------------- ##
b3076f16 1578_ASBOX
1579 echo
1580 for ac_var in $ac_subst_files
1581 do
a8b2ad8d 1582 eval ac_val=\$$ac_var
1583 case $ac_val in
1584 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1585 esac
1586 echo "$ac_var='\''$ac_val'\''"
b3076f16 1587 done | sort
1588 echo
1589 fi
1590
1591 if test -s confdefs.h; then
1592 cat <<\_ASBOX
1593## ----------- ##
1594## confdefs.h. ##
1595## ----------- ##
1596_ASBOX
1597 echo
a8b2ad8d 1598 cat confdefs.h
b3076f16 1599 echo
1600 fi
1601 test "$ac_signal" != 0 &&
1602 echo "$as_me: caught signal $ac_signal"
1603 echo "$as_me: exit $exit_status"
1604 } >&5
a8b2ad8d 1605 rm -f core *.core core.conftest.* &&
1606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 1607 exit $exit_status
a8b2ad8d 1608' 0
b3076f16 1609for ac_signal in 1 2 13 15; do
1610 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1611done
1612ac_signal=0
1613
1614# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 1615rm -f -r conftest* confdefs.h
b3076f16 1616
1617# Predefined preprocessor variables.
1618
1619cat >>confdefs.h <<_ACEOF
1620#define PACKAGE_NAME "$PACKAGE_NAME"
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define PACKAGE_VERSION "$PACKAGE_VERSION"
1631_ACEOF
1632
1633
1634cat >>confdefs.h <<_ACEOF
1635#define PACKAGE_STRING "$PACKAGE_STRING"
1636_ACEOF
1637
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1641_ACEOF
1642
1643
1644# Let the site file select an alternate cache file if it wants to.
1645# Prefer explicitly selected file to automatically selected ones.
a8b2ad8d 1646if test -n "$CONFIG_SITE"; then
1647 set x "$CONFIG_SITE"
1648elif test "x$prefix" != xNONE; then
1649 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1650else
1651 set x "$ac_default_prefix/share/config.site" \
1652 "$ac_default_prefix/etc/config.site"
b3076f16 1653fi
a8b2ad8d 1654shift
1655for ac_site_file
1656do
b3076f16 1657 if test -r "$ac_site_file"; then
1658 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1659echo "$as_me: loading site script $ac_site_file" >&6;}
1660 sed 's/^/| /' "$ac_site_file" >&5
1661 . "$ac_site_file"
1662 fi
1663done
1664
1665if test -r "$cache_file"; then
1666 # Some versions of bash will fail to source /dev/null (special
1667 # files actually), so we avoid doing that.
1668 if test -f "$cache_file"; then
1669 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1670echo "$as_me: loading cache $cache_file" >&6;}
1671 case $cache_file in
a8b2ad8d 1672 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1673 *) . "./$cache_file";;
b3076f16 1674 esac
1675 fi
1676else
1677 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1678echo "$as_me: creating cache $cache_file" >&6;}
1679 >$cache_file
1680fi
1681
1682# Check that the precious variables saved in the cache have kept the same
1683# value.
1684ac_cache_corrupted=false
a8b2ad8d 1685for ac_var in $ac_precious_vars; do
b3076f16 1686 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1687 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 1688 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1689 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 1690 case $ac_old_set,$ac_new_set in
1691 set,)
1692 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1693echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1694 ac_cache_corrupted=: ;;
1695 ,set)
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1697echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1699 ,);;
1700 *)
1701 if test "x$ac_old_val" != "x$ac_new_val"; then
1702 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1703echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1704 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1705echo "$as_me: former value: $ac_old_val" >&2;}
1706 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1707echo "$as_me: current value: $ac_new_val" >&2;}
1708 ac_cache_corrupted=:
1709 fi;;
1710 esac
1711 # Pass precious variables to config.status.
1712 if test "$ac_new_set" = set; then
1713 case $ac_new_val in
a8b2ad8d 1714 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 1715 *) ac_arg=$ac_var=$ac_new_val ;;
1716 esac
1717 case " $ac_configure_args " in
1718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1719 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1720 esac
1721 fi
1722done
1723if $ac_cache_corrupted; then
1724 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1725echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1726 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1727echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1728 { (exit 1); exit 1; }; }
1729fi
1730
b3076f16 1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
a8b2ad8d 1755ac_ext=c
1756ac_cpp='$CPP $CPPFLAGS'
1757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 1760
1761
ceafd592 1762CODENAME=X3
a8b2ad8d 1763ac_config_headers="$ac_config_headers src/config.h"
b3076f16 1764
1765
1766ac_aux_dir=
a8b2ad8d 1767for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1768 if test -f "$ac_dir/install-sh"; then
b3076f16 1769 ac_aux_dir=$ac_dir
1770 ac_install_sh="$ac_aux_dir/install-sh -c"
1771 break
a8b2ad8d 1772 elif test -f "$ac_dir/install.sh"; then
b3076f16 1773 ac_aux_dir=$ac_dir
1774 ac_install_sh="$ac_aux_dir/install.sh -c"
1775 break
a8b2ad8d 1776 elif test -f "$ac_dir/shtool"; then
b3076f16 1777 ac_aux_dir=$ac_dir
1778 ac_install_sh="$ac_aux_dir/shtool install -c"
1779 break
1780 fi
1781done
1782if test -z "$ac_aux_dir"; then
a8b2ad8d 1783 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1784echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b3076f16 1785 { (exit 1); exit 1; }; }
1786fi
a8b2ad8d 1787
1788# These three variables are undocumented and unsupported,
1789# and are intended to be withdrawn in a future Autoconf release.
1790# They can cause serious problems if a builder's source tree is in a directory
1791# whose full name contains unusual characters.
1792ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1793ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1794ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1795
b3076f16 1796
1797# Make sure we can run config.sub.
a8b2ad8d 1798$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1799 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1800echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b3076f16 1801 { (exit 1); exit 1; }; }
1802
a8b2ad8d 1803{ echo "$as_me:$LINENO: checking build system type" >&5
1804echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b3076f16 1805if test "${ac_cv_build+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
a8b2ad8d 1808 ac_build_alias=$build_alias
1809test "x$ac_build_alias" = x &&
1810 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1811test "x$ac_build_alias" = x &&
b3076f16 1812 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1813echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1814 { (exit 1); exit 1; }; }
a8b2ad8d 1815ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1816 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1817echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b3076f16 1818 { (exit 1); exit 1; }; }
1819
1820fi
a8b2ad8d 1821{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1822echo "${ECHO_T}$ac_cv_build" >&6; }
1823case $ac_cv_build in
1824*-*-*) ;;
1825*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1826echo "$as_me: error: invalid value of canonical build" >&2;}
1827 { (exit 1); exit 1; }; };;
1828esac
b3076f16 1829build=$ac_cv_build
a8b2ad8d 1830ac_save_IFS=$IFS; IFS='-'
1831set x $ac_cv_build
1832shift
1833build_cpu=$1
1834build_vendor=$2
1835shift; shift
1836# Remember, the first character of IFS is used to create $*,
1837# except with old shells:
1838build_os=$*
1839IFS=$ac_save_IFS
1840case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1841
1842
1843{ echo "$as_me:$LINENO: checking host system type" >&5
1844echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b3076f16 1845if test "${ac_cv_host+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847else
a8b2ad8d 1848 if test "x$host_alias" = x; then
1849 ac_cv_host=$ac_cv_build
1850else
1851 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1852 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1853echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b3076f16 1854 { (exit 1); exit 1; }; }
a8b2ad8d 1855fi
b3076f16 1856
1857fi
a8b2ad8d 1858{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1859echo "${ECHO_T}$ac_cv_host" >&6; }
1860case $ac_cv_host in
1861*-*-*) ;;
1862*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1863echo "$as_me: error: invalid value of canonical host" >&2;}
1864 { (exit 1); exit 1; }; };;
1865esac
b3076f16 1866host=$ac_cv_host
a8b2ad8d 1867ac_save_IFS=$IFS; IFS='-'
1868set x $ac_cv_host
1869shift
1870host_cpu=$1
1871host_vendor=$2
1872shift; shift
1873# Remember, the first character of IFS is used to create $*,
1874# except with old shells:
1875host_os=$*
1876IFS=$ac_save_IFS
1877case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1878
1879
1880{ echo "$as_me:$LINENO: checking target system type" >&5
1881echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b3076f16 1882if test "${ac_cv_target+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
a8b2ad8d 1885 if test "x$target_alias" = x; then
1886 ac_cv_target=$ac_cv_host
1887else
1888 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1889 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1890echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b3076f16 1891 { (exit 1); exit 1; }; }
a8b2ad8d 1892fi
b3076f16 1893
1894fi
a8b2ad8d 1895{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1896echo "${ECHO_T}$ac_cv_target" >&6; }
1897case $ac_cv_target in
1898*-*-*) ;;
1899*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1900echo "$as_me: error: invalid value of canonical target" >&2;}
1901 { (exit 1); exit 1; }; };;
1902esac
b3076f16 1903target=$ac_cv_target
a8b2ad8d 1904ac_save_IFS=$IFS; IFS='-'
1905set x $ac_cv_target
1906shift
1907target_cpu=$1
1908target_vendor=$2
1909shift; shift
1910# Remember, the first character of IFS is used to create $*,
1911# except with old shells:
1912target_os=$*
1913IFS=$ac_save_IFS
1914case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 1915
1916
1917# The aliases save the names the user supplied, while $host etc.
1918# will get canonicalized.
1919test -n "$target_alias" &&
1920 test "$program_prefix$program_suffix$program_transform_name" = \
1921 NONENONEs,x,x, &&
1922 program_prefix=${target_alias}-
ec1a68c8 1923am__api_version="1.9"
b3076f16 1924# Find a good install program. We prefer a C program (faster),
1925# so one script is as good as another. But avoid the broken or
1926# incompatible versions:
1927# SysV /etc/install, /usr/sbin/install
1928# SunOS /usr/etc/install
1929# IRIX /sbin/install
1930# AIX /bin/install
1931# AmigaOS /C/install, which installs bootblocks on floppy discs
1932# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1933# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1934# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1935# OS/2's system install, which has a completely different semantic
1936# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 1937{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1938echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 1939if test -z "$INSTALL"; then
1940if test "${ac_cv_path_install+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 # Account for people who put trailing slashes in PATH elements.
1949case $as_dir/ in
1950 ./ | .// | /cC/* | \
1951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1952 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1953 /usr/ucb/* ) ;;
1954 *)
1955 # OSF1 and SCO ODT 3.0 have their own names for install.
1956 # Don't use installbsd from OSF since it installs stuff as root
1957 # by default.
1958 for ac_prog in ginstall scoinst install; do
1959 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 1960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 1961 if test $ac_prog = install &&
1962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1963 # AIX install. It has an incompatible calling convention.
1964 :
1965 elif test $ac_prog = install &&
1966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1967 # program-specific install script used by HP pwplus--don't use.
1968 :
1969 else
1970 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1971 break 3
1972 fi
1973 fi
1974 done
1975 done
1976 ;;
1977esac
1978done
a8b2ad8d 1979IFS=$as_save_IFS
b3076f16 1980
1981
1982fi
1983 if test "${ac_cv_path_install+set}" = set; then
1984 INSTALL=$ac_cv_path_install
1985 else
a8b2ad8d 1986 # As a last resort, use the slow shell script. Don't cache a
1987 # value for INSTALL within a source directory, because that will
b3076f16 1988 # break other packages using the cache if that directory is
a8b2ad8d 1989 # removed, or if the value is a relative name.
b3076f16 1990 INSTALL=$ac_install_sh
1991 fi
1992fi
a8b2ad8d 1993{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1994echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 1995
1996# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1997# It thinks the first close brace ends the variable substitution.
1998test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1999
2000test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2001
2002test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2003
a8b2ad8d 2004{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2005echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
b3076f16 2006# Just in case
2007sleep 1
ec1a68c8 2008echo timestamp > conftest.file
b3076f16 2009# Do `set' in a subshell so we don't clobber the current shell's
2010# arguments. Must try -L first in case configure is actually a
2011# symlink; some systems play weird games with the mod time of symlinks
2012# (eg FreeBSD returns the mod time of the symlink's containing
2013# directory).
2014if (
ec1a68c8 2015 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 2016 if test "$*" = "X"; then
2017 # -L didn't work.
ec1a68c8 2018 set X `ls -t $srcdir/configure conftest.file`
b3076f16 2019 fi
ec1a68c8 2020 rm -f conftest.file
2021 if test "$*" != "X $srcdir/configure conftest.file" \
2022 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2023
2024 # If neither matched, then we have a broken ls. This can happen
2025 # if, for instance, CONFIG_SHELL is bash and it inherits a
2026 # broken ls alias from the environment. This has actually
2027 # happened. Such a system could not be considered "sane".
2028 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2029alias in your environment" >&5
2030echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2031alias in your environment" >&2;}
2032 { (exit 1); exit 1; }; }
2033 fi
2034
ec1a68c8 2035 test "$2" = conftest.file
b3076f16 2036 )
2037then
2038 # Ok.
2039 :
2040else
2041 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2042Check your system clock" >&5
2043echo "$as_me: error: newly created file is older than distributed files!
2044Check your system clock" >&2;}
2045 { (exit 1); exit 1; }; }
2046fi
a8b2ad8d 2047{ echo "$as_me:$LINENO: result: yes" >&5
2048echo "${ECHO_T}yes" >&6; }
b3076f16 2049test "$program_prefix" != NONE &&
a8b2ad8d 2050 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2051# Use a double $ so make ignores it.
2052test "$program_suffix" != NONE &&
a8b2ad8d 2053 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b3076f16 2054# Double any \ or $. echo might interpret backslashes.
2055# By default was `s,x,x', remove it if useless.
2056cat <<\_ACEOF >conftest.sed
2057s/[\\$]/&&/g;s/;s,x,x,$//
2058_ACEOF
2059program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
a8b2ad8d 2060rm -f conftest.sed
b3076f16 2061
ec1a68c8 2062# expand $ac_aux_dir to an absolute path
2063am_aux_dir=`cd $ac_aux_dir && pwd`
2064
2065test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2066# Use eval to expand $SHELL
2067if eval "$MISSING --run true"; then
2068 am_missing_run="$MISSING --run "
2069else
2070 am_missing_run=
2071 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2072echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2073fi
2074
2075if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2076 # We used to keeping the `.' as first argument, in order to
2077 # allow $(mkdir_p) to be used without argument. As in
2078 # $(mkdir_p) $(somedir)
2079 # where $(somedir) is conditionally defined. However this is wrong
2080 # for two reasons:
2081 # 1. if the package is installed by a user who cannot write `.'
2082 # make install will fail,
2083 # 2. the above comment should most certainly read
2084 # $(mkdir_p) $(DESTDIR)$(somedir)
2085 # so it does not work when $(somedir) is undefined and
2086 # $(DESTDIR) is not.
2087 # To support the latter case, we have to write
2088 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2089 # so the `.' trick is pointless.
2090 mkdir_p='mkdir -p --'
2091else
2092 # On NextStep and OpenStep, the `mkdir' command does not
2093 # recognize any option. It will interpret all options as
2094 # directories to create, and then abort because `.' already
2095 # exists.
2096 for d in ./-p ./--version;
2097 do
2098 test -d $d && rmdir $d
2099 done
2100 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2101 if test -f "$ac_aux_dir/mkinstalldirs"; then
2102 mkdir_p='$(mkinstalldirs)'
2103 else
2104 mkdir_p='$(install_sh) -d'
2105 fi
2106fi
2107
2108for ac_prog in gawk mawk nawk awk
2109do
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111set dummy $ac_prog; ac_word=$2
a8b2ad8d 2112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2114if test "${ac_cv_prog_AWK+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117 if test -n "$AWK"; then
2118 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2119else
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2127 ac_cv_prog_AWK="$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131done
2132done
a8b2ad8d 2133IFS=$as_save_IFS
ec1a68c8 2134
2135fi
2136fi
2137AWK=$ac_cv_prog_AWK
2138if test -n "$AWK"; then
a8b2ad8d 2139 { echo "$as_me:$LINENO: result: $AWK" >&5
2140echo "${ECHO_T}$AWK" >&6; }
ec1a68c8 2141else
a8b2ad8d 2142 { echo "$as_me:$LINENO: result: no" >&5
2143echo "${ECHO_T}no" >&6; }
ec1a68c8 2144fi
2145
a8b2ad8d 2146
ec1a68c8 2147 test -n "$AWK" && break
2148done
2149
a8b2ad8d 2150{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2151echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2152set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2153if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156 cat >conftest.make <<\_ACEOF
a8b2ad8d 2157SHELL = /bin/sh
b3076f16 2158all:
a8b2ad8d 2159 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2160_ACEOF
2161# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2162case `${MAKE-make} -f conftest.make 2>/dev/null` in
2163 *@@@%%%=?*=@@@%%%*)
2164 eval ac_cv_prog_make_${ac_make}_set=yes;;
2165 *)
2166 eval ac_cv_prog_make_${ac_make}_set=no;;
2167esac
b3076f16 2168rm -f conftest.make
2169fi
a8b2ad8d 2170if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2171 { echo "$as_me:$LINENO: result: yes" >&5
2172echo "${ECHO_T}yes" >&6; }
b3076f16 2173 SET_MAKE=
2174else
a8b2ad8d 2175 { echo "$as_me:$LINENO: result: no" >&5
2176echo "${ECHO_T}no" >&6; }
b3076f16 2177 SET_MAKE="MAKE=${MAKE-make}"
2178fi
2179
ec1a68c8 2180rm -rf .tst 2>/dev/null
2181mkdir .tst 2>/dev/null
2182if test -d .tst; then
2183 am__leading_dot=.
2184else
2185 am__leading_dot=_
2186fi
2187rmdir .tst 2>/dev/null
b3076f16 2188
ec1a68c8 2189# test to see if srcdir already configured
2190if test "`cd $srcdir && pwd`" != "`pwd`" &&
2191 test -f $srcdir/config.status; then
b3076f16 2192 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2193echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2194 { (exit 1); exit 1; }; }
2195fi
2196
ec1a68c8 2197# test whether we have cygpath
2198if test -z "$CYGPATH_W"; then
2199 if (cygpath --version) >/dev/null 2>/dev/null; then
2200 CYGPATH_W='cygpath -w'
2201 else
2202 CYGPATH_W=echo
2203 fi
2204fi
2205
2206
2207# Define the identity of the package.
ceafd592 2208 PACKAGE='x3'
63c95a47 2209 VERSION='1.5'
ec1a68c8 2210
2211
b3076f16 2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE "$PACKAGE"
2214_ACEOF
2215
2216
2217cat >>confdefs.h <<_ACEOF
2218#define VERSION "$VERSION"
2219_ACEOF
2220
ec1a68c8 2221# Some tools Automake needs.
b3076f16 2222
ec1a68c8 2223ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2224
ec1a68c8 2225
2226AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2227
2228
2229AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2230
2231
2232AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2233
2234
2235MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2236
2237install_sh=${install_sh-"$am_aux_dir/install-sh"}
2238
2239# Installed binaries are usually stripped using `strip' when the user
2240# run `make install-strip'. However `strip' might not be the right
2241# tool to use in cross-compilation environments, therefore Automake
2242# will honor the `STRIP' environment variable to overrule this program.
2243if test "$cross_compiling" != no; then
2244 if test -n "$ac_tool_prefix"; then
2245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2246set dummy ${ac_tool_prefix}strip; ac_word=$2
a8b2ad8d 2247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2249if test "${ac_cv_prog_STRIP+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 2251else
ec1a68c8 2252 if test -n "$STRIP"; then
2253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2254else
2255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 break 2
2265 fi
2266done
2267done
a8b2ad8d 2268IFS=$as_save_IFS
b3076f16 2269
ec1a68c8 2270fi
2271fi
2272STRIP=$ac_cv_prog_STRIP
2273if test -n "$STRIP"; then
a8b2ad8d 2274 { echo "$as_me:$LINENO: result: $STRIP" >&5
2275echo "${ECHO_T}$STRIP" >&6; }
b3076f16 2276else
a8b2ad8d 2277 { echo "$as_me:$LINENO: result: no" >&5
2278echo "${ECHO_T}no" >&6; }
b3076f16 2279fi
b2cf3d66 2280
a8b2ad8d 2281
b3076f16 2282fi
ec1a68c8 2283if test -z "$ac_cv_prog_STRIP"; then
2284 ac_ct_STRIP=$STRIP
2285 # Extract the first word of "strip", so it can be a program name with args.
2286set dummy strip; ac_word=$2
a8b2ad8d 2287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2289if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292 if test -n "$ac_ct_STRIP"; then
2293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2294else
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2302 ac_cv_prog_ac_ct_STRIP="strip"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2305 fi
2306done
2307done
a8b2ad8d 2308IFS=$as_save_IFS
b3076f16 2309
ec1a68c8 2310fi
2311fi
2312ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2313if test -n "$ac_ct_STRIP"; then
a8b2ad8d 2314 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2315echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b3076f16 2316else
a8b2ad8d 2317 { echo "$as_me:$LINENO: result: no" >&5
2318echo "${ECHO_T}no" >&6; }
b3076f16 2319fi
2320
a8b2ad8d 2321 if test "x$ac_ct_STRIP" = x; then
2322 STRIP=":"
2323 else
2324 case $cross_compiling:$ac_tool_warned in
2325yes:)
2326{ echo "$as_me:$LINENO: 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." >&5
2329echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2330whose name does not start with the host triplet. If you think this
2331configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2332ac_tool_warned=yes ;;
2333esac
2334 STRIP=$ac_ct_STRIP
2335 fi
b2cf3d66 2336else
ec1a68c8 2337 STRIP="$ac_cv_prog_STRIP"
b3076f16 2338fi
b3076f16 2339
ec1a68c8 2340fi
2341INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2342
2343# We need awk for the "check" target. The system "awk" is bad on
2344# some platforms.
2345# Always define AMTAR for backward compatibility.
2346
2347AMTAR=${AMTAR-"${am_missing_run}tar"}
2348
2349am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2350
2351
2352
2353
b3076f16 2354
a8b2ad8d 2355{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2356echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2357 # Check whether --enable-maintainer-mode was given.
b3076f16 2358if test "${enable_maintainer_mode+set}" = set; then
a8b2ad8d 2359 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2360else
2361 USE_MAINTAINER_MODE=no
a8b2ad8d 2362fi
2363
2364 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2365echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
b3076f16 2366
2367
2368if test $USE_MAINTAINER_MODE = yes; then
2369 MAINTAINER_MODE_TRUE=
2370 MAINTAINER_MODE_FALSE='#'
2371else
2372 MAINTAINER_MODE_TRUE='#'
2373 MAINTAINER_MODE_FALSE=
2374fi
ec1a68c8 2375
b3076f16 2376 MAINT=$MAINTAINER_MODE_TRUE
2377
2378
2379
ec1a68c8 2380DEPDIR="${am__leading_dot}deps"
2381
a8b2ad8d 2382ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2383
2384
2385am_make=${MAKE-make}
2386cat > confinc << 'END'
2387am__doit:
2388 @echo done
2389.PHONY: am__doit
2390END
2391# If we don't find an include directive, just comment out the code.
a8b2ad8d 2392{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2393echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
ec1a68c8 2394am__include="#"
2395am__quote=
2396_am_result=none
2397# First try GNU make style include.
2398echo "include confinc" > confmf
2399# We grep out `Entering directory' and `Leaving directory'
2400# messages which can occur if `w' ends up in MAKEFLAGS.
2401# In particular we don't look at `^make:' because GNU make might
2402# be invoked under some other name (usually "gmake"), in which
2403# case it prints its new name instead of `make'.
2404if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2405 am__include=include
2406 am__quote=
2407 _am_result=GNU
2408fi
2409# Now try BSD make style include.
2410if test "$am__include" = "#"; then
2411 echo '.include "confinc"' > confmf
2412 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2413 am__include=.include
2414 am__quote="\""
2415 _am_result=BSD
2416 fi
2417fi
2418
2419
a8b2ad8d 2420{ echo "$as_me:$LINENO: result: $_am_result" >&5
2421echo "${ECHO_T}$_am_result" >&6; }
ec1a68c8 2422rm -f confinc confmf
2423
a8b2ad8d 2424# Check whether --enable-dependency-tracking was given.
ec1a68c8 2425if test "${enable_dependency_tracking+set}" = set; then
a8b2ad8d 2426 enableval=$enable_dependency_tracking;
2427fi
ec1a68c8 2428
ec1a68c8 2429if test "x$enable_dependency_tracking" != xno; then
2430 am_depcomp="$ac_aux_dir/depcomp"
2431 AMDEPBACKSLASH='\'
2432fi
2433
2434
2435if test "x$enable_dependency_tracking" != xno; then
2436 AMDEP_TRUE=
2437 AMDEP_FALSE='#'
2438else
2439 AMDEP_TRUE='#'
2440 AMDEP_FALSE=
2441fi
2442
2443
2444
b3076f16 2445ac_ext=c
2446ac_cpp='$CPP $CPPFLAGS'
2447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2452set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 2453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2455if test "${ac_cv_prog_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458 if test -n "$CC"; then
2459 ac_cv_prog_CC="$CC" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2468 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472done
2473done
a8b2ad8d 2474IFS=$as_save_IFS
b3076f16 2475
2476fi
2477fi
2478CC=$ac_cv_prog_CC
2479if test -n "$CC"; then
a8b2ad8d 2480 { echo "$as_me:$LINENO: result: $CC" >&5
2481echo "${ECHO_T}$CC" >&6; }
b3076f16 2482else
a8b2ad8d 2483 { echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6; }
b3076f16 2485fi
2486
a8b2ad8d 2487
b3076f16 2488fi
2489if test -z "$ac_cv_prog_CC"; then
2490 ac_ct_CC=$CC
2491 # Extract the first word of "gcc", so it can be a program name with args.
2492set dummy gcc; ac_word=$2
a8b2ad8d 2493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2495if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497else
2498 if test -n "$ac_ct_CC"; then
2499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500else
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2508 ac_cv_prog_ac_ct_CC="gcc"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512done
2513done
a8b2ad8d 2514IFS=$as_save_IFS
b3076f16 2515
2516fi
2517fi
2518ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519if test -n "$ac_ct_CC"; then
a8b2ad8d 2520 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2521echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2522else
a8b2ad8d 2523 { echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6; }
b3076f16 2525fi
2526
a8b2ad8d 2527 if test "x$ac_ct_CC" = x; then
2528 CC=""
2529 else
2530 case $cross_compiling:$ac_tool_warned in
2531yes:)
2532{ echo "$as_me:$LINENO: 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." >&5
2535echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2536whose name does not start with the host triplet. If you think this
2537configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2538ac_tool_warned=yes ;;
2539esac
2540 CC=$ac_ct_CC
2541 fi
b3076f16 2542else
2543 CC="$ac_cv_prog_CC"
2544fi
2545
2546if test -z "$CC"; then
a8b2ad8d 2547 if test -n "$ac_tool_prefix"; then
2548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 2549set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 2550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2552if test "${ac_cv_prog_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2565 ac_cv_prog_CC="${ac_tool_prefix}cc"
2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569done
2570done
a8b2ad8d 2571IFS=$as_save_IFS
b3076f16 2572
2573fi
2574fi
2575CC=$ac_cv_prog_CC
2576if test -n "$CC"; then
a8b2ad8d 2577 { echo "$as_me:$LINENO: result: $CC" >&5
2578echo "${ECHO_T}$CC" >&6; }
b3076f16 2579else
a8b2ad8d 2580 { echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6; }
b3076f16 2582fi
2583
b3076f16 2584
a8b2ad8d 2585 fi
b3076f16 2586fi
2587if test -z "$CC"; then
2588 # Extract the first word of "cc", so it can be a program name with args.
2589set dummy cc; ac_word=$2
a8b2ad8d 2590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2592if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597else
2598 ac_prog_rejected=no
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2607 ac_prog_rejected=yes
2608 continue
2609 fi
2610 ac_cv_prog_CC="cc"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614done
2615done
a8b2ad8d 2616IFS=$as_save_IFS
b3076f16 2617
2618if test $ac_prog_rejected = yes; then
2619 # We found a bogon in the path, so make sure we never use it.
2620 set dummy $ac_cv_prog_CC
2621 shift
2622 if test $# != 0; then
2623 # We chose a different compiler from the bogus one.
2624 # However, it has the same basename, so the bogon will be chosen
2625 # first if we set CC to just the basename; use the full file name.
2626 shift
2627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2628 fi
2629fi
2630fi
2631fi
2632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
a8b2ad8d 2634 { echo "$as_me:$LINENO: result: $CC" >&5
2635echo "${ECHO_T}$CC" >&6; }
b3076f16 2636else
a8b2ad8d 2637 { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
b3076f16 2639fi
2640
a8b2ad8d 2641
b3076f16 2642fi
2643if test -z "$CC"; then
2644 if test -n "$ac_tool_prefix"; then
a8b2ad8d 2645 for ac_prog in cl.exe
b3076f16 2646 do
2647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 2649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2651if test "${ac_cv_prog_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654 if test -n "$CC"; then
2655 ac_cv_prog_CC="$CC" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668done
2669done
a8b2ad8d 2670IFS=$as_save_IFS
b3076f16 2671
2672fi
2673fi
2674CC=$ac_cv_prog_CC
2675if test -n "$CC"; then
a8b2ad8d 2676 { echo "$as_me:$LINENO: result: $CC" >&5
2677echo "${ECHO_T}$CC" >&6; }
b3076f16 2678else
a8b2ad8d 2679 { echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6; }
b3076f16 2681fi
2682
a8b2ad8d 2683
b3076f16 2684 test -n "$CC" && break
2685 done
2686fi
2687if test -z "$CC"; then
2688 ac_ct_CC=$CC
a8b2ad8d 2689 for ac_prog in cl.exe
b3076f16 2690do
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692set dummy $ac_prog; ac_word=$2
a8b2ad8d 2693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2695if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698 if test -n "$ac_ct_CC"; then
2699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2708 ac_cv_prog_ac_ct_CC="$ac_prog"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712done
2713done
a8b2ad8d 2714IFS=$as_save_IFS
b3076f16 2715
2716fi
2717fi
2718ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719if test -n "$ac_ct_CC"; then
a8b2ad8d 2720 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2721echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2722else
a8b2ad8d 2723 { echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6; }
b3076f16 2725fi
2726
a8b2ad8d 2727
b3076f16 2728 test -n "$ac_ct_CC" && break
2729done
2730
a8b2ad8d 2731 if test "x$ac_ct_CC" = x; then
2732 CC=""
2733 else
2734 case $cross_compiling:$ac_tool_warned in
2735yes:)
2736{ echo "$as_me:$LINENO: 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." >&5
2739echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2740whose name does not start with the host triplet. If you think this
2741configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2742ac_tool_warned=yes ;;
2743esac
2744 CC=$ac_ct_CC
2745 fi
b3076f16 2746fi
2747
2748fi
2749
2750
2751test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2752See \`config.log' for more details." >&5
2753echo "$as_me: error: no acceptable C compiler found in \$PATH
2754See \`config.log' for more details." >&2;}
2755 { (exit 1); exit 1; }; }
2756
2757# Provide some information about the compiler.
a8b2ad8d 2758echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 2759ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 2760{ (ac_try="$ac_compiler --version >&5"
2761case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764esac
2765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
a8b2ad8d 2770{ (ac_try="$ac_compiler -v >&5"
2771case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774esac
2775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }
a8b2ad8d 2780{ (ac_try="$ac_compiler -V >&5"
2781case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }
2790
2791cat >conftest.$ac_ext <<_ACEOF
2792/* confdefs.h. */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h. */
2797
2798int
2799main ()
2800{
2801
2802 ;
2803 return 0;
2804}
2805_ACEOF
2806ac_clean_files_save=$ac_clean_files
2807ac_clean_files="$ac_clean_files a.out a.exe b.out"
2808# Try to create an executable without -o first, disregard a.out.
2809# It will help us diagnose broken compilers, and finding out an intuition
2810# of exeext.
a8b2ad8d 2811{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2812echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b3076f16 2813ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a8b2ad8d 2814#
2815# List of possible output files, starting from the most likely.
2816# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2817# only as a last resort. b.out is created by i960 compilers.
2818ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2819#
2820# The IRIX 6 linker writes into existing files which may not be
2821# executable, retaining their permissions. Remove them first so a
2822# subsequent execution test works.
2823ac_rmfiles=
2824for ac_file in $ac_files
2825do
2826 case $ac_file in
2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2828 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2829 esac
2830done
2831rm -f $ac_rmfiles
2832
2833if { (ac_try="$ac_link_default"
2834case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_link_default") 2>&5
b3076f16 2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; then
a8b2ad8d 2843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2844# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2845# in a Makefile. We should not override ac_cv_exeext if it was cached,
2846# so that the user can short-circuit this test for compilers unknown to
2847# Autoconf.
2848for ac_file in $ac_files
b3076f16 2849do
2850 test -f "$ac_file" || continue
2851 case $ac_file in
a8b2ad8d 2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b3076f16 2853 ;;
2854 [ab].out )
2855 # We found the default executable, but exeext='' is most
2856 # certainly right.
2857 break;;
2858 *.* )
a8b2ad8d 2859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2860 then :; else
2861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862 fi
2863 # We set ac_cv_exeext here because the later test for it is not
2864 # safe: cross compilers may not add the suffix if given an `-o'
2865 # argument, so we may need to know it at that point already.
2866 # Even if this section looks crufty: it has the advantage of
2867 # actually working.
b3076f16 2868 break;;
2869 * )
2870 break;;
2871 esac
2872done
a8b2ad8d 2873test "$ac_cv_exeext" = no && ac_cv_exeext=
2874
b3076f16 2875else
2876 echo "$as_me: failed program was:" >&5
2877sed 's/^/| /' conftest.$ac_ext >&5
2878
2879{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2880See \`config.log' for more details." >&5
2881echo "$as_me: error: C compiler cannot create executables
2882See \`config.log' for more details." >&2;}
2883 { (exit 77); exit 77; }; }
2884fi
2885
2886ac_exeext=$ac_cv_exeext
a8b2ad8d 2887{ echo "$as_me:$LINENO: result: $ac_file" >&5
2888echo "${ECHO_T}$ac_file" >&6; }
b3076f16 2889
a8b2ad8d 2890# Check that the compiler produces executables we can run. If not, either
b3076f16 2891# the compiler is broken, or we cross compile.
a8b2ad8d 2892{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2893echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b3076f16 2894# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2895# If not cross compiling, check that we can run a simple program.
2896if test "$cross_compiling" != yes; then
2897 if { ac_try='./$ac_file'
a8b2ad8d 2898 { (case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_try") 2>&5
b3076f16 2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 cross_compiling=no
2908 else
2909 if test "$cross_compiling" = maybe; then
2910 cross_compiling=yes
2911 else
2912 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2913If you meant to cross compile, use \`--host'.
2914See \`config.log' for more details." >&5
2915echo "$as_me: error: cannot run C compiled programs.
2916If you meant to cross compile, use \`--host'.
2917See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
2919 fi
2920 fi
2921fi
a8b2ad8d 2922{ echo "$as_me:$LINENO: result: yes" >&5
2923echo "${ECHO_T}yes" >&6; }
b3076f16 2924
2925rm -f a.out a.exe conftest$ac_cv_exeext b.out
2926ac_clean_files=$ac_clean_files_save
a8b2ad8d 2927# Check that the compiler produces executables we can run. If not, either
b3076f16 2928# the compiler is broken, or we cross compile.
a8b2ad8d 2929{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2930echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2931{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2932echo "${ECHO_T}$cross_compiling" >&6; }
2933
2934{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2935echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2936if { (ac_try="$ac_link"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_link") 2>&5
b3076f16 2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2947# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2948# work properly (i.e., refer to `conftest.exe'), while it won't with
2949# `rm'.
2950for ac_file in conftest.exe conftest conftest.*; do
2951 test -f "$ac_file" || continue
2952 case $ac_file in
a8b2ad8d 2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b3076f16 2954 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 2955 break;;
2956 * ) break;;
2957 esac
2958done
2959else
2960 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2961See \`config.log' for more details." >&5
2962echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2963See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2965fi
2966
2967rm -f conftest$ac_cv_exeext
a8b2ad8d 2968{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2969echo "${ECHO_T}$ac_cv_exeext" >&6; }
b3076f16 2970
2971rm -f conftest.$ac_ext
2972EXEEXT=$ac_cv_exeext
2973ac_exeext=$EXEEXT
a8b2ad8d 2974{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2975echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b3076f16 2976if test "${ac_cv_objext+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h. */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h. */
2985
2986int
2987main ()
2988{
2989
2990 ;
2991 return 0;
2992}
2993_ACEOF
2994rm -f conftest.o conftest.obj
a8b2ad8d 2995if { (ac_try="$ac_compile"
2996case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>&5
b3076f16 3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; then
a8b2ad8d 3005 for ac_file in conftest.o conftest.obj conftest.*; do
3006 test -f "$ac_file" || continue;
b3076f16 3007 case $ac_file in
a8b2ad8d 3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b3076f16 3009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3010 break;;
3011 esac
3012done
3013else
3014 echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3018See \`config.log' for more details." >&5
3019echo "$as_me: error: cannot compute suffix of object files: cannot compile
3020See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }
3022fi
3023
3024rm -f conftest.$ac_cv_objext conftest.$ac_ext
3025fi
a8b2ad8d 3026{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3027echo "${ECHO_T}$ac_cv_objext" >&6; }
b3076f16 3028OBJEXT=$ac_cv_objext
3029ac_objext=$OBJEXT
a8b2ad8d 3030{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3031echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 3032if test "${ac_cv_c_compiler_gnu+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035 cat >conftest.$ac_ext <<_ACEOF
3036/* confdefs.h. */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h. */
3041
3042int
3043main ()
3044{
3045#ifndef __GNUC__
3046 choke me
3047#endif
3048
3049 ;
3050 return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext
a8b2ad8d 3054if { (ac_try="$ac_compile"
3055case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
b3076f16 3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
a8b2ad8d 3067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
b3076f16 3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
b3076f16 3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_compiler_gnu=yes
3088else
3089 echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
a8b2ad8d 3092 ac_compiler_gnu=no
b3076f16 3093fi
a8b2ad8d 3094
3095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3096ac_cv_c_compiler_gnu=$ac_compiler_gnu
3097
3098fi
a8b2ad8d 3099{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3100echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 3101GCC=`test $ac_compiler_gnu = yes && echo yes`
3102ac_test_CFLAGS=${CFLAGS+set}
3103ac_save_CFLAGS=$CFLAGS
a8b2ad8d 3104{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3105echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 3106if test "${ac_cv_prog_cc_g+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108else
a8b2ad8d 3109 ac_save_c_werror_flag=$ac_c_werror_flag
3110 ac_c_werror_flag=yes
3111 ac_cv_prog_cc_g=no
3112 CFLAGS="-g"
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119
3120int
3121main ()
3122{
3123
3124 ;
3125 return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_prog_cc_g=yes
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 CFLAGS=""
3168 cat >conftest.$ac_ext <<_ACEOF
3169/* confdefs.h. */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
3173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext
3184if { (ac_try="$ac_compile"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3217 :
3218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3223 CFLAGS="-g"
3224 cat >conftest.$ac_ext <<_ACEOF
b3076f16 3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h. */
3230
3231int
3232main ()
3233{
3234
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239rm -f conftest.$ac_objext
a8b2ad8d 3240if { (ac_try="$ac_compile"
3241case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_compile") 2>conftest.er1
b3076f16 3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
a8b2ad8d 3253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3254 { (case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257esac
3258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_try") 2>&5
b3076f16 3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3264 { (case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_try") 2>&5
b3076f16 3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 ac_cv_prog_cc_g=yes
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
a8b2ad8d 3278
3279fi
3280
3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282fi
3283
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3285fi
a8b2ad8d 3286
3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3289fi
a8b2ad8d 3290{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3291echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 3292if test "$ac_test_CFLAGS" = set; then
3293 CFLAGS=$ac_save_CFLAGS
3294elif test $ac_cv_prog_cc_g = yes; then
3295 if test "$GCC" = yes; then
3296 CFLAGS="-g -O2"
3297 else
3298 CFLAGS="-g"
3299 fi
3300else
3301 if test "$GCC" = yes; then
3302 CFLAGS="-O2"
3303 else
3304 CFLAGS=
3305 fi
3306fi
a8b2ad8d 3307{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3308echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3309if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
a8b2ad8d 3312 ac_cv_prog_cc_c89=no
b3076f16 3313ac_save_CC=$CC
3314cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h. */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h. */
3320#include <stdarg.h>
3321#include <stdio.h>
3322#include <sys/types.h>
3323#include <sys/stat.h>
3324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3325struct buf { int x; };
3326FILE * (*rcsopen) (struct buf *, struct stat *, int);
3327static char *e (p, i)
3328 char **p;
3329 int i;
3330{
3331 return p[i];
3332}
3333static char *f (char * (*g) (char **, int), char **p, ...)
3334{
3335 char *s;
3336 va_list v;
3337 va_start (v,p);
3338 s = g (p, va_arg (v,int));
3339 va_end (v);
3340 return s;
3341}
3342
3343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3344 function prototypes and stuff, but not '\xHH' hex character constants.
3345 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3346 as 'x'. The following induces an error, until -std is added to get
b3076f16 3347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3348 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3349 that's true only with -std. */
b3076f16 3350int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3351
a8b2ad8d 3352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3353 inside strings and character constants. */
3354#define FOO(x) 'x'
3355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356
b3076f16 3357int test (int i, double x);
3358struct s1 {int (*f) (int a);};
3359struct s2 {int (*f) (double a);};
3360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3361int argc;
3362char **argv;
3363int
3364main ()
3365{
3366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3367 ;
3368 return 0;
3369}
3370_ACEOF
a8b2ad8d 3371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3373do
3374 CC="$ac_save_CC $ac_arg"
3375 rm -f conftest.$ac_objext
a8b2ad8d 3376if { (ac_try="$ac_compile"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_compile") 2>conftest.er1
b3076f16 3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
a8b2ad8d 3389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3390 { (case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_try") 2>&5
b3076f16 3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3400 { (case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_try") 2>&5
b3076f16 3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
a8b2ad8d 3409 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3410else
3411 echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
a8b2ad8d 3414
b3076f16 3415fi
a8b2ad8d 3416
3417rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3419done
a8b2ad8d 3420rm -f conftest.$ac_ext
b3076f16 3421CC=$ac_save_CC
3422
3423fi
a8b2ad8d 3424# AC_CACHE_VAL
3425case "x$ac_cv_prog_cc_c89" in
3426 x)
3427 { echo "$as_me:$LINENO: result: none needed" >&5
3428echo "${ECHO_T}none needed" >&6; } ;;
3429 xno)
3430 { echo "$as_me:$LINENO: result: unsupported" >&5
3431echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 3432 *)
a8b2ad8d 3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3435echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3436esac
3437
b3076f16 3438
b3076f16 3439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
ec1a68c8 3445depcc="$CC" am_compiler_list=
3446
a8b2ad8d 3447{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3448echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 3449if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453 # We make a subdir and do the tests there. Otherwise we can end up
3454 # making bogus files that we don't know about and never remove. For
3455 # instance it was reported that on HP-UX the gcc test will end up
3456 # making a dummy file named `D' -- because `-MD' means `put the output
3457 # in D'.
3458 mkdir conftest.dir
3459 # Copy depcomp to subdir because otherwise we won't find it if we're
3460 # using a relative directory.
3461 cp "$am_depcomp" conftest.dir
3462 cd conftest.dir
3463 # We will build objects and dependencies in a subdirectory because
3464 # it helps to detect inapplicable dependency modes. For instance
3465 # both Tru64's cc and ICC support -MD to output dependencies as a
3466 # side effect of compilation, but ICC will put the dependencies in
3467 # the current directory while Tru64 will put them in the object
3468 # directory.
3469 mkdir sub
3470
3471 am_cv_CC_dependencies_compiler_type=none
3472 if test "$am_compiler_list" = ""; then
3473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3474 fi
3475 for depmode in $am_compiler_list; do
3476 # Setup a source with many dependencies, because some compilers
3477 # like to wrap large dependency lists on column 80 (with \), and
3478 # we should not choose a depcomp mode which is confused by this.
3479 #
3480 # We need to recreate these files for each test, as the compiler may
3481 # overwrite some of them when testing with obscure command lines.
3482 # This happens at least with the AIX C compiler.
3483 : > sub/conftest.c
3484 for i in 1 2 3 4 5 6; do
3485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3487 # Solaris 8's {/usr,}/bin/sh.
3488 touch sub/conftst$i.h
3489 done
3490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3491
3492 case $depmode in
3493 nosideeffect)
3494 # after this tag, mechanisms are not by side-effect, so they'll
3495 # only be used when explicitly requested
3496 if test "x$enable_dependency_tracking" = xyes; then
3497 continue
3498 else
3499 break
3500 fi
3501 ;;
3502 none) break ;;
3503 esac
3504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505 # mode. It turns out that the SunPro C++ compiler does not properly
3506 # handle `-M -o', and we need to detect this.
3507 if depmode=$depmode \
3508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3511 >/dev/null 2>conftest.err &&
3512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3513 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3515 # icc doesn't choke on unknown options, it will just issue warnings
3516 # or remarks (even with -Werror). So we grep stderr for any message
3517 # that says an option was ignored or not supported.
3518 # When given -MP, icc 7.0 and 7.1 complain thusly:
3519 # icc: Command line warning: ignoring option '-M'; no argument required
3520 # The diagnosis changed in icc 8.0:
3521 # icc: Command line remark: option '-MP' not supported
3522 if (grep 'ignoring option' conftest.err ||
3523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3524 am_cv_CC_dependencies_compiler_type=$depmode
3525 break
3526 fi
3527 fi
3528 done
3529
3530 cd ..
3531 rm -rf conftest.dir
3532else
3533 am_cv_CC_dependencies_compiler_type=none
3534fi
3535
3536fi
a8b2ad8d 3537{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3538echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3539CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3540
3541
3542
3543if
3544 test "x$enable_dependency_tracking" != xno \
3545 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_TRUE=
3547 am__fastdepCC_FALSE='#'
3548else
3549 am__fastdepCC_TRUE='#'
3550 am__fastdepCC_FALSE=
3551fi
3552
3553
b3076f16 3554
a8b2ad8d 3555{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3556echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
b3076f16 3557if test "${ac_cv_type_signal+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560 cat >conftest.$ac_ext <<_ACEOF
3561/* confdefs.h. */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h. */
3566#include <sys/types.h>
3567#include <signal.h>
b3076f16 3568
3569int
3570main ()
3571{
a8b2ad8d 3572return *(signal (0, 0)) (0) == 1;
b3076f16 3573 ;
3574 return 0;
3575}
3576_ACEOF
3577rm -f conftest.$ac_objext
a8b2ad8d 3578if { (ac_try="$ac_compile"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_compile") 2>conftest.er1
b3076f16 3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
a8b2ad8d 3591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3592 { (case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_try") 2>&5
b3076f16 3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3602 { (case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605esac
3606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_try") 2>&5
b3076f16 3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
a8b2ad8d 3611 ac_cv_type_signal=int
b3076f16 3612else
3613 echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
a8b2ad8d 3616 ac_cv_type_signal=void
b3076f16 3617fi
a8b2ad8d 3618
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3620fi
a8b2ad8d 3621{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3622echo "${ECHO_T}$ac_cv_type_signal" >&6; }
b3076f16 3623
3624cat >>confdefs.h <<_ACEOF
3625#define RETSIGTYPE $ac_cv_type_signal
3626_ACEOF
3627
3628
a8b2ad8d 3629{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3630echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
b3076f16 3631if test "${ac_cv_c_const+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640
3641int
3642main ()
3643{
3644/* FIXME: Include the comments suggested by Paul. */
3645#ifndef __cplusplus
3646 /* Ultrix mips cc rejects this. */
3647 typedef int charset[2];
3648 const charset x;
3649 /* SunOS 4.1.1 cc rejects this. */
3650 char const *const *ccp;
3651 char **p;
3652 /* NEC SVR4.0.2 mips cc rejects this. */
3653 struct point {int x, y;};
3654 static struct point const zero = {0,0};
3655 /* AIX XL C 1.02.0.0 rejects this.
3656 It does not let you subtract one const X* pointer from another in
3657 an arm of an if-expression whose if-part is not a constant
3658 expression */
3659 const char *g = "string";
3660 ccp = &g + (g ? g-g : 0);
3661 /* HPUX 7.0 cc rejects these. */
3662 ++ccp;
3663 p = (char**) ccp;
3664 ccp = (char const *const *) p;
3665 { /* SCO 3.2v4 cc rejects this. */
3666 char *t;
3667 char const *s = 0 ? (char *) 0 : (char const *) 0;
3668
3669 *t++ = 0;
a8b2ad8d 3670 if (s) return 0;
b3076f16 3671 }
3672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3673 int x[] = {25, 17};
3674 const int *foo = &x[0];
3675 ++foo;
3676 }
3677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3678 typedef const int *iptr;
3679 iptr p = 0;
3680 ++p;
3681 }
3682 { /* AIX XL C 1.02.0.0 rejects this saying
3683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3684 struct s { int j; const int *ap[3]; };
3685 struct s *b; b->j = 5;
3686 }
3687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3688 const int foo = 10;
a8b2ad8d 3689 if (!foo) return 0;
b3076f16 3690 }
a8b2ad8d 3691 return !x[0] && !zero.x;
b3076f16 3692#endif
3693
3694 ;
3695 return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext
a8b2ad8d 3699if { (ac_try="$ac_compile"
3700case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703esac
3704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_compile") 2>conftest.er1
b3076f16 3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
a8b2ad8d 3712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3713 { (case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716esac
3717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_try") 2>&5
b3076f16 3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3723 { (case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726esac
3727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
b3076f16 3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_c_const=yes
3733else
3734 echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
a8b2ad8d 3737 ac_cv_c_const=no
b3076f16 3738fi
a8b2ad8d 3739
3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3741fi
a8b2ad8d 3742{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3743echo "${ECHO_T}$ac_cv_c_const" >&6; }
b3076f16 3744if test $ac_cv_c_const = no; then
3745
3746cat >>confdefs.h <<\_ACEOF
3747#define const
3748_ACEOF
3749
3750fi
3751
a8b2ad8d 3752{ echo "$as_me:$LINENO: checking for inline" >&5
3753echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
b3076f16 3754if test "${ac_cv_c_inline+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757 ac_cv_c_inline=no
3758for ac_kw in inline __inline__ __inline; do
3759 cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h. */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h. */
3765#ifndef __cplusplus
3766typedef int foo_t;
3767static $ac_kw foo_t static_foo () {return 0; }
3768$ac_kw foo_t foo () {return 0; }
3769#endif
3770
3771_ACEOF
3772rm -f conftest.$ac_objext
a8b2ad8d 3773if { (ac_try="$ac_compile"
3774case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777esac
3778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
b3076f16 3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
a8b2ad8d 3786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3787 { (case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790esac
3791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_try") 2>&5
b3076f16 3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3797 { (case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800esac
3801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_try") 2>&5
b3076f16 3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
a8b2ad8d 3806 ac_cv_c_inline=$ac_kw
b3076f16 3807else
3808 echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
a8b2ad8d 3811
b3076f16 3812fi
a8b2ad8d 3813
3814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 test "$ac_cv_c_inline" != no && break
b3076f16 3816done
3817
3818fi
a8b2ad8d 3819{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3820echo "${ECHO_T}$ac_cv_c_inline" >&6; }
b3076f16 3821
3822
3823case $ac_cv_c_inline in
3824 inline | yes) ;;
3825 *)
3826 case $ac_cv_c_inline in
3827 no) ac_val=;;
3828 *) ac_val=$ac_cv_c_inline;;
3829 esac
3830 cat >>confdefs.h <<_ACEOF
3831#ifndef __cplusplus
3832#define inline $ac_val
3833#endif
3834_ACEOF
3835 ;;
3836esac
3837
3838
3839for ac_prog in gawk mawk nawk awk
3840do
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842set dummy $ac_prog; ac_word=$2
a8b2ad8d 3843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3845if test "${ac_cv_prog_AWK+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847else
3848 if test -n "$AWK"; then
3849 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3858 ac_cv_prog_AWK="$ac_prog"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863done
a8b2ad8d 3864IFS=$as_save_IFS
b3076f16 3865
3866fi
3867fi
3868AWK=$ac_cv_prog_AWK
3869if test -n "$AWK"; then
a8b2ad8d 3870 { echo "$as_me:$LINENO: result: $AWK" >&5
3871echo "${ECHO_T}$AWK" >&6; }
b3076f16 3872else
a8b2ad8d 3873 { echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6; }
b3076f16 3875fi
3876
a8b2ad8d 3877
b3076f16 3878 test -n "$AWK" && break
3879done
3880
3881ac_ext=c
3882ac_cpp='$CPP $CPPFLAGS'
3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886if test -n "$ac_tool_prefix"; then
3887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3888set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 3889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3891if test "${ac_cv_prog_CC+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908done
3909done
a8b2ad8d 3910IFS=$as_save_IFS
b3076f16 3911
3912fi
3913fi
3914CC=$ac_cv_prog_CC
3915if test -n "$CC"; then
a8b2ad8d 3916 { echo "$as_me:$LINENO: result: $CC" >&5
3917echo "${ECHO_T}$CC" >&6; }
b3076f16 3918else
a8b2ad8d 3919 { echo "$as_me:$LINENO: result: no" >&5
3920echo "${ECHO_T}no" >&6; }
b3076f16 3921fi
3922
a8b2ad8d 3923
b3076f16 3924fi
3925if test -z "$ac_cv_prog_CC"; then
3926 ac_ct_CC=$CC
3927 # Extract the first word of "gcc", so it can be a program name with args.
3928set dummy gcc; ac_word=$2
a8b2ad8d 3929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3931if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3944 ac_cv_prog_ac_ct_CC="gcc"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948done
3949done
a8b2ad8d 3950IFS=$as_save_IFS
b3076f16 3951
3952fi
3953fi
3954ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955if test -n "$ac_ct_CC"; then
a8b2ad8d 3956 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3957echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 3958else
a8b2ad8d 3959 { echo "$as_me:$LINENO: result: no" >&5
3960echo "${ECHO_T}no" >&6; }
b3076f16 3961fi
3962
a8b2ad8d 3963 if test "x$ac_ct_CC" = x; then
3964 CC=""
3965 else
3966 case $cross_compiling:$ac_tool_warned in
3967yes:)
3968{ echo "$as_me:$LINENO: 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." >&5
3971echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3972whose name does not start with the host triplet. If you think this
3973configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3974ac_tool_warned=yes ;;
3975esac
3976 CC=$ac_ct_CC
3977 fi
b3076f16 3978else
3979 CC="$ac_cv_prog_CC"
3980fi
3981
3982if test -z "$CC"; then
a8b2ad8d 3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3985set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 3986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3988if test "${ac_cv_prog_CC+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993else
3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4001 ac_cv_prog_CC="${ac_tool_prefix}cc"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005done
4006done
a8b2ad8d 4007IFS=$as_save_IFS
b3076f16 4008
4009fi
4010fi
4011CC=$ac_cv_prog_CC
4012if test -n "$CC"; then
a8b2ad8d 4013 { echo "$as_me:$LINENO: result: $CC" >&5
4014echo "${ECHO_T}$CC" >&6; }
b3076f16 4015else
a8b2ad8d 4016 { echo "$as_me:$LINENO: result: no" >&5
4017echo "${ECHO_T}no" >&6; }
b3076f16 4018fi
4019
b3076f16 4020
a8b2ad8d 4021 fi
b3076f16 4022fi
4023if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025set dummy cc; ac_word=$2
a8b2ad8d 4026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4028if test "${ac_cv_prog_CC+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033else
4034 ac_prog_rejected=no
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected=yes
4044 continue
4045 fi
4046 ac_cv_prog_CC="cc"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050done
4051done
a8b2ad8d 4052IFS=$as_save_IFS
b3076f16 4053
4054if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy $ac_cv_prog_CC
4057 shift
4058 if test $# != 0; then
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4062 shift
4063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4064 fi
4065fi
4066fi
4067fi
4068CC=$ac_cv_prog_CC
4069if test -n "$CC"; then
a8b2ad8d 4070 { echo "$as_me:$LINENO: result: $CC" >&5
4071echo "${ECHO_T}$CC" >&6; }
b3076f16 4072else
a8b2ad8d 4073 { echo "$as_me:$LINENO: result: no" >&5
4074echo "${ECHO_T}no" >&6; }
b3076f16 4075fi
4076
a8b2ad8d 4077
b3076f16 4078fi
4079if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
a8b2ad8d 4081 for ac_prog in cl.exe
b3076f16 4082 do
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 4085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4087if test "${ac_cv_prog_CC+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092else
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104done
4105done
a8b2ad8d 4106IFS=$as_save_IFS
b3076f16 4107
4108fi
4109fi
4110CC=$ac_cv_prog_CC
4111if test -n "$CC"; then
a8b2ad8d 4112 { echo "$as_me:$LINENO: result: $CC" >&5
4113echo "${ECHO_T}$CC" >&6; }
b3076f16 4114else
a8b2ad8d 4115 { echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6; }
b3076f16 4117fi
4118
a8b2ad8d 4119
b3076f16 4120 test -n "$CC" && break
4121 done
4122fi
4123if test -z "$CC"; then
4124 ac_ct_CC=$CC
a8b2ad8d 4125 for ac_prog in cl.exe
b3076f16 4126do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128set dummy $ac_prog; ac_word=$2
a8b2ad8d 4129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4131if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4144 ac_cv_prog_ac_ct_CC="$ac_prog"
4145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148done
4149done
a8b2ad8d 4150IFS=$as_save_IFS
b3076f16 4151
4152fi
4153fi
4154ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155if test -n "$ac_ct_CC"; then
a8b2ad8d 4156 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4157echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 4158else
a8b2ad8d 4159 { echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6; }
b3076f16 4161fi
4162
a8b2ad8d 4163
b3076f16 4164 test -n "$ac_ct_CC" && break
4165done
4166
a8b2ad8d 4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171yes:)
4172{ echo "$as_me:$LINENO: 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." >&5
4175echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4176whose name does not start with the host triplet. If you think this
4177configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4178ac_tool_warned=yes ;;
4179esac
4180 CC=$ac_ct_CC
4181 fi
b3076f16 4182fi
4183
4184fi
4185
4186
4187test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4188See \`config.log' for more details." >&5
4189echo "$as_me: error: no acceptable C compiler found in \$PATH
4190See \`config.log' for more details." >&2;}
4191 { (exit 1); exit 1; }; }
4192
4193# Provide some information about the compiler.
a8b2ad8d 4194echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 4195ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 4196{ (ac_try="$ac_compiler --version >&5"
4197case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
4201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }
a8b2ad8d 4206{ (ac_try="$ac_compiler -v >&5"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }
a8b2ad8d 4216{ (ac_try="$ac_compiler -V >&5"
4217case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }
4226
a8b2ad8d 4227{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4228echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 4229if test "${ac_cv_c_compiler_gnu+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
4232 cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
4238
4239int
4240main ()
4241{
4242#ifndef __GNUC__
4243 choke me
4244#endif
4245
4246 ;
4247 return 0;
4248}
4249_ACEOF
4250rm -f conftest.$ac_objext
a8b2ad8d 4251if { (ac_try="$ac_compile"
4252case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_compile") 2>conftest.er1
b3076f16 4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
a8b2ad8d 4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268esac
4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
b3076f16 4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
b3076f16 4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_compiler_gnu=yes
4285else
4286 echo "$as_me: failed program was:" >&5
4287sed 's/^/| /' conftest.$ac_ext >&5
4288
a8b2ad8d 4289 ac_compiler_gnu=no
b3076f16 4290fi
a8b2ad8d 4291
4292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4293ac_cv_c_compiler_gnu=$ac_compiler_gnu
4294
4295fi
a8b2ad8d 4296{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4297echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 4298GCC=`test $ac_compiler_gnu = yes && echo yes`
4299ac_test_CFLAGS=${CFLAGS+set}
4300ac_save_CFLAGS=$CFLAGS
a8b2ad8d 4301{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4302echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 4303if test "${ac_cv_prog_cc_g+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305else
a8b2ad8d 4306 ac_save_c_werror_flag=$ac_c_werror_flag
4307 ac_c_werror_flag=yes
4308 ac_cv_prog_cc_g=no
4309 CFLAGS="-g"
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316
4317int
4318main ()
4319{
4320
4321 ;
4322 return 0;
4323}
4324_ACEOF
4325rm -f conftest.$ac_objext
4326if { (ac_try="$ac_compile"
4327case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4340 { (case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343esac
4344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_try") 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353esac
4354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_try") 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_prog_cc_g=yes
4360else
4361 echo "$as_me: failed program was:" >&5
4362sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 CFLAGS=""
4365 cat >conftest.$ac_ext <<_ACEOF
4366/* confdefs.h. */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h. */
4371
4372int
4373main ()
4374{
4375
4376 ;
4377 return 0;
4378}
4379_ACEOF
4380rm -f conftest.$ac_objext
4381if { (ac_try="$ac_compile"
4382case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385esac
4386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4395 { (case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398esac
4399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_try") 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408esac
4409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_try") 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 :
4415else
4416 echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 ac_c_werror_flag=$ac_save_c_werror_flag
4420 CFLAGS="-g"
4421 cat >conftest.$ac_ext <<_ACEOF
b3076f16 4422/* confdefs.h. */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
4426/* end confdefs.h. */
4427
4428int
4429main ()
4430{
4431
4432 ;
4433 return 0;
4434}
4435_ACEOF
4436rm -f conftest.$ac_objext
a8b2ad8d 4437if { (ac_try="$ac_compile"
4438case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441esac
4442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_compile") 2>conftest.er1
b3076f16 4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
a8b2ad8d 4450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
4455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
b3076f16 4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464esac
4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
b3076f16 4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_prog_cc_g=yes
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
a8b2ad8d 4475
4476fi
4477
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479fi
4480
4481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4482fi
a8b2ad8d 4483
4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4486fi
a8b2ad8d 4487{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4488echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 4489if test "$ac_test_CFLAGS" = set; then
4490 CFLAGS=$ac_save_CFLAGS
4491elif test $ac_cv_prog_cc_g = yes; then
4492 if test "$GCC" = yes; then
4493 CFLAGS="-g -O2"
4494 else
4495 CFLAGS="-g"
4496 fi
4497else
4498 if test "$GCC" = yes; then
4499 CFLAGS="-O2"
4500 else
4501 CFLAGS=
4502 fi
4503fi
a8b2ad8d 4504{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4505echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4506if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
a8b2ad8d 4509 ac_cv_prog_cc_c89=no
b3076f16 4510ac_save_CC=$CC
4511cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
4517#include <stdarg.h>
4518#include <stdio.h>
4519#include <sys/types.h>
4520#include <sys/stat.h>
4521/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4522struct buf { int x; };
4523FILE * (*rcsopen) (struct buf *, struct stat *, int);
4524static char *e (p, i)
4525 char **p;
4526 int i;
4527{
4528 return p[i];
4529}
4530static char *f (char * (*g) (char **, int), char **p, ...)
4531{
4532 char *s;
4533 va_list v;
4534 va_start (v,p);
4535 s = g (p, va_arg (v,int));
4536 va_end (v);
4537 return s;
4538}
4539
4540/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4541 function prototypes and stuff, but not '\xHH' hex character constants.
4542 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4543 as 'x'. The following induces an error, until -std is added to get
b3076f16 4544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4545 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4546 that's true only with -std. */
b3076f16 4547int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4548
a8b2ad8d 4549/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4550 inside strings and character constants. */
4551#define FOO(x) 'x'
4552int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4553
b3076f16 4554int test (int i, double x);
4555struct s1 {int (*f) (int a);};
4556struct s2 {int (*f) (double a);};
4557int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4558int argc;
4559char **argv;
4560int
4561main ()
4562{
4563return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4564 ;
4565 return 0;
4566}
4567_ACEOF
a8b2ad8d 4568for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4569 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4570do
4571 CC="$ac_save_CC $ac_arg"
4572 rm -f conftest.$ac_objext
a8b2ad8d 4573if { (ac_try="$ac_compile"
4574case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577esac
4578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_compile") 2>conftest.er1
b3076f16 4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
a8b2ad8d 4586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4587 { (case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590esac
4591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_try") 2>&5
b3076f16 4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4597 { (case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
4601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_try") 2>&5
b3076f16 4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
a8b2ad8d 4606 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4607else
4608 echo "$as_me: failed program was:" >&5
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
a8b2ad8d 4611
b3076f16 4612fi
a8b2ad8d 4613
4614rm -f core conftest.err conftest.$ac_objext
4615 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4616done
a8b2ad8d 4617rm -f conftest.$ac_ext
b3076f16 4618CC=$ac_save_CC
4619
4620fi
a8b2ad8d 4621# AC_CACHE_VAL
4622case "x$ac_cv_prog_cc_c89" in
4623 x)
4624 { echo "$as_me:$LINENO: result: none needed" >&5
4625echo "${ECHO_T}none needed" >&6; } ;;
4626 xno)
4627 { echo "$as_me:$LINENO: result: unsupported" >&5
4628echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 4629 *)
a8b2ad8d 4630 CC="$CC $ac_cv_prog_cc_c89"
4631 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4632echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4633esac
4634
b3076f16 4635
b3076f16 4636ac_ext=c
4637ac_cpp='$CPP $CPPFLAGS'
4638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
ec1a68c8 4642depcc="$CC" am_compiler_list=
4643
a8b2ad8d 4644{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4645echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 4646if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4650 # We make a subdir and do the tests there. Otherwise we can end up
4651 # making bogus files that we don't know about and never remove. For
4652 # instance it was reported that on HP-UX the gcc test will end up
4653 # making a dummy file named `D' -- because `-MD' means `put the output
4654 # in D'.
4655 mkdir conftest.dir
4656 # Copy depcomp to subdir because otherwise we won't find it if we're
4657 # using a relative directory.
4658 cp "$am_depcomp" conftest.dir
4659 cd conftest.dir
4660 # We will build objects and dependencies in a subdirectory because
4661 # it helps to detect inapplicable dependency modes. For instance
4662 # both Tru64's cc and ICC support -MD to output dependencies as a
4663 # side effect of compilation, but ICC will put the dependencies in
4664 # the current directory while Tru64 will put them in the object
4665 # directory.
4666 mkdir sub
4667
4668 am_cv_CC_dependencies_compiler_type=none
4669 if test "$am_compiler_list" = ""; then
4670 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4671 fi
4672 for depmode in $am_compiler_list; do
4673 # Setup a source with many dependencies, because some compilers
4674 # like to wrap large dependency lists on column 80 (with \), and
4675 # we should not choose a depcomp mode which is confused by this.
4676 #
4677 # We need to recreate these files for each test, as the compiler may
4678 # overwrite some of them when testing with obscure command lines.
4679 # This happens at least with the AIX C compiler.
4680 : > sub/conftest.c
4681 for i in 1 2 3 4 5 6; do
4682 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4683 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4684 # Solaris 8's {/usr,}/bin/sh.
4685 touch sub/conftst$i.h
4686 done
4687 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4688
4689 case $depmode in
4690 nosideeffect)
4691 # after this tag, mechanisms are not by side-effect, so they'll
4692 # only be used when explicitly requested
4693 if test "x$enable_dependency_tracking" = xyes; then
4694 continue
4695 else
4696 break
4697 fi
4698 ;;
4699 none) break ;;
4700 esac
4701 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4702 # mode. It turns out that the SunPro C++ compiler does not properly
4703 # handle `-M -o', and we need to detect this.
4704 if depmode=$depmode \
4705 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4708 >/dev/null 2>conftest.err &&
4709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4710 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4712 # icc doesn't choke on unknown options, it will just issue warnings
4713 # or remarks (even with -Werror). So we grep stderr for any message
4714 # that says an option was ignored or not supported.
4715 # When given -MP, icc 7.0 and 7.1 complain thusly:
4716 # icc: Command line warning: ignoring option '-M'; no argument required
4717 # The diagnosis changed in icc 8.0:
4718 # icc: Command line remark: option '-MP' not supported
4719 if (grep 'ignoring option' conftest.err ||
4720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4721 am_cv_CC_dependencies_compiler_type=$depmode
4722 break
4723 fi
4724 fi
4725 done
4726
4727 cd ..
4728 rm -rf conftest.dir
4729else
4730 am_cv_CC_dependencies_compiler_type=none
4731fi
4732
4733fi
a8b2ad8d 4734{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4735echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4736CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4737
4738
4739
4740if
4741 test "x$enable_dependency_tracking" != xno \
4742 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4743 am__fastdepCC_TRUE=
4744 am__fastdepCC_FALSE='#'
4745else
4746 am__fastdepCC_TRUE='#'
4747 am__fastdepCC_FALSE=
4748fi
4749
4750
b3076f16 4751# Find a good install program. We prefer a C program (faster),
4752# so one script is as good as another. But avoid the broken or
4753# incompatible versions:
4754# SysV /etc/install, /usr/sbin/install
4755# SunOS /usr/etc/install
4756# IRIX /sbin/install
4757# AIX /bin/install
4758# AmigaOS /C/install, which installs bootblocks on floppy discs
4759# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4760# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4761# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4762# OS/2's system install, which has a completely different semantic
4763# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 4764{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4765echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 4766if test -z "$INSTALL"; then
4767if test "${ac_cv_path_install+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 # Account for people who put trailing slashes in PATH elements.
4776case $as_dir/ in
4777 ./ | .// | /cC/* | \
4778 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4779 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4780 /usr/ucb/* ) ;;
4781 *)
4782 # OSF1 and SCO ODT 3.0 have their own names for install.
4783 # Don't use installbsd from OSF since it installs stuff as root
4784 # by default.
4785 for ac_prog in ginstall scoinst install; do
4786 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4787 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 4788 if test $ac_prog = install &&
4789 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4790 # AIX install. It has an incompatible calling convention.
4791 :
4792 elif test $ac_prog = install &&
4793 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4794 # program-specific install script used by HP pwplus--don't use.
4795 :
4796 else
4797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4798 break 3
4799 fi
4800 fi
4801 done
4802 done
4803 ;;
4804esac
4805done
a8b2ad8d 4806IFS=$as_save_IFS
b3076f16 4807
4808
4809fi
4810 if test "${ac_cv_path_install+set}" = set; then
4811 INSTALL=$ac_cv_path_install
4812 else
a8b2ad8d 4813 # As a last resort, use the slow shell script. Don't cache a
4814 # value for INSTALL within a source directory, because that will
b3076f16 4815 # break other packages using the cache if that directory is
a8b2ad8d 4816 # removed, or if the value is a relative name.
b3076f16 4817 INSTALL=$ac_install_sh
4818 fi
4819fi
a8b2ad8d 4820{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4821echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 4822
4823# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4824# It thinks the first close brace ends the variable substitution.
4825test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4826
4827test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4828
4829test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4830
2f61d1d7 4831
35305a49 4832if test -n "$ac_tool_prefix"; then
4833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8b2ad8d 4835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4837if test "${ac_cv_prog_RANLIB+set}" = set; then
2f61d1d7 4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
35305a49 4840 if test -n "$RANLIB"; then
4841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4842else
2f61d1d7 4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
35305a49 4848 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
2f61d1d7 4853 fi
35305a49 4854done
2f61d1d7 4855done
a8b2ad8d 4856IFS=$as_save_IFS
2f61d1d7 4857
b3076f16 4858fi
35305a49 4859fi
4860RANLIB=$ac_cv_prog_RANLIB
4861if test -n "$RANLIB"; then
a8b2ad8d 4862 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4863echo "${ECHO_T}$RANLIB" >&6; }
b3076f16 4864else
a8b2ad8d 4865 { echo "$as_me:$LINENO: result: no" >&5
4866echo "${ECHO_T}no" >&6; }
2f61d1d7 4867fi
2f61d1d7 4868
a8b2ad8d 4869
b3076f16 4870fi
35305a49 4871if test -z "$ac_cv_prog_RANLIB"; then
4872 ac_ct_RANLIB=$RANLIB
4873 # Extract the first word of "ranlib", so it can be a program name with args.
4874set dummy ranlib; ac_word=$2
a8b2ad8d 4875{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4877if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2f61d1d7 4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
35305a49 4880 if test -n "$ac_ct_RANLIB"; then
4881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4882else
35305a49 4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4890 ac_cv_prog_ac_ct_RANLIB="ranlib"
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4893 fi
4894done
4895done
a8b2ad8d 4896IFS=$as_save_IFS
35305a49 4897
b3076f16 4898fi
2f61d1d7 4899fi
35305a49 4900ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4901if test -n "$ac_ct_RANLIB"; then
a8b2ad8d 4902 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4903echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
b3076f16 4904else
a8b2ad8d 4905 { echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6; }
b3076f16 4907fi
4908
a8b2ad8d 4909 if test "x$ac_ct_RANLIB" = x; then
4910 RANLIB=":"
4911 else
4912 case $cross_compiling:$ac_tool_warned in
4913yes:)
4914{ echo "$as_me:$LINENO: 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." >&5
4917echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4918whose name does not start with the host triplet. If you think this
4919configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4920ac_tool_warned=yes ;;
4921esac
4922 RANLIB=$ac_ct_RANLIB
4923 fi
2f61d1d7 4924else
35305a49 4925 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4926fi
2f61d1d7 4927
2f61d1d7 4928
a8b2ad8d 4929{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4930echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2f61d1d7 4931LN_S=$as_ln_s
4932if test "$LN_S" = "ln -s"; then
a8b2ad8d 4933 { echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6; }
2f61d1d7 4935else
a8b2ad8d 4936 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4937echo "${ECHO_T}no, using $LN_S" >&6; }
2f61d1d7 4938fi
4939
a8b2ad8d 4940{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4941echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4942set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4943if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2f61d1d7 4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
35305a49 4946 cat >conftest.make <<\_ACEOF
a8b2ad8d 4947SHELL = /bin/sh
35305a49 4948all:
a8b2ad8d 4949 @echo '@@@%%%=$(MAKE)=@@@%%%'
35305a49 4950_ACEOF
4951# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 4952case `${MAKE-make} -f conftest.make 2>/dev/null` in
4953 *@@@%%%=?*=@@@%%%*)
4954 eval ac_cv_prog_make_${ac_make}_set=yes;;
4955 *)
4956 eval ac_cv_prog_make_${ac_make}_set=no;;
4957esac
35305a49 4958rm -f conftest.make
4959fi
a8b2ad8d 4960if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4961 { echo "$as_me:$LINENO: result: yes" >&5
4962echo "${ECHO_T}yes" >&6; }
35305a49 4963 SET_MAKE=
4964else
a8b2ad8d 4965 { echo "$as_me:$LINENO: result: no" >&5
4966echo "${ECHO_T}no" >&6; }
35305a49 4967 SET_MAKE="MAKE=${MAKE-make}"
2f61d1d7 4968fi
2f61d1d7 4969
4970ac_ext=c
4971ac_cpp='$CPP $CPPFLAGS'
4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_c_compiler_gnu
a8b2ad8d 4975{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4976echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2f61d1d7 4977# On Suns, sometimes $CPP names a directory.
4978if test -n "$CPP" && test -d "$CPP"; then
4979 CPP=
4980fi
4981if test -z "$CPP"; then
4982 if test "${ac_cv_prog_CPP+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984else
4985 # Double quotes because CPP needs to be expanded
4986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987 do
4988 ac_preproc_ok=false
4989for ac_c_preproc_warn_flag in '' yes
4990do
4991 # Use a header file that comes with gcc, so configuring glibc
b3076f16 4992 # with a fresh cross-compiler works.
4993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994 # <limits.h> exists even on freestanding compilers.
4995 # On the NeXT, cc -E runs the code through the compiler's parser,
4996 # not just through cpp. "Syntax error" is here to catch this case.
4997 cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
5003#ifdef __STDC__
5004# include <limits.h>
5005#else
5006# include <assert.h>
5007#endif
5008 Syntax error
5009_ACEOF
a8b2ad8d 5010if { (ac_try="$ac_cpp conftest.$ac_ext"
5011case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014esac
5015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null; then
5023 if test -s conftest.err; then
5024 ac_cpp_err=$ac_c_preproc_warn_flag
5025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5026 else
5027 ac_cpp_err=
5028 fi
5029else
5030 ac_cpp_err=yes
5031fi
5032if test -z "$ac_cpp_err"; then
5033 :
5034else
5035 echo "$as_me: failed program was:" >&5
5036sed 's/^/| /' conftest.$ac_ext >&5
5037
5038 # Broken: fails on valid input.
5039continue
5040fi
a8b2ad8d 5041
b3076f16 5042rm -f conftest.err conftest.$ac_ext
5043
a8b2ad8d 5044 # OK, works on sane cases. Now check whether nonexistent headers
b3076f16 5045 # can be detected and how.
5046 cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052#include <ac_nonexistent.h>
5053_ACEOF
a8b2ad8d 5054if { (ac_try="$ac_cpp conftest.$ac_ext"
5055case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058esac
5059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } >/dev/null; then
5067 if test -s conftest.err; then
5068 ac_cpp_err=$ac_c_preproc_warn_flag
5069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5070 else
5071 ac_cpp_err=
5072 fi
5073else
5074 ac_cpp_err=yes
5075fi
5076if test -z "$ac_cpp_err"; then
5077 # Broken: success on invalid input.
5078continue
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 # Passes both tests.
5084ac_preproc_ok=:
5085break
5086fi
a8b2ad8d 5087
b3076f16 5088rm -f conftest.err conftest.$ac_ext
5089
5090done
5091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092rm -f conftest.err conftest.$ac_ext
5093if $ac_preproc_ok; then
5094 break
5095fi
5096
5097 done
5098 ac_cv_prog_CPP=$CPP
5099
5100fi
5101 CPP=$ac_cv_prog_CPP
5102else
5103 ac_cv_prog_CPP=$CPP
5104fi
a8b2ad8d 5105{ echo "$as_me:$LINENO: result: $CPP" >&5
5106echo "${ECHO_T}$CPP" >&6; }
b3076f16 5107ac_preproc_ok=false
5108for ac_c_preproc_warn_flag in '' yes
5109do
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122#ifdef __STDC__
5123# include <limits.h>
5124#else
5125# include <assert.h>
5126#endif
5127 Syntax error
5128_ACEOF
a8b2ad8d 5129if { (ac_try="$ac_cpp conftest.$ac_ext"
5130case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133esac
5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_c_preproc_warn_flag
5144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5145 else
5146 ac_cpp_err=
5147 fi
5148else
5149 ac_cpp_err=yes
5150fi
5151if test -z "$ac_cpp_err"; then
5152 :
5153else
5154 echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 # Broken: fails on valid input.
5158continue
5159fi
a8b2ad8d 5160
b3076f16 5161rm -f conftest.err conftest.$ac_ext
5162
a8b2ad8d 5163 # OK, works on sane cases. Now check whether nonexistent headers
b3076f16 5164 # can be detected and how.
5165 cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h. */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h. */
5171#include <ac_nonexistent.h>
5172_ACEOF
a8b2ad8d 5173if { (ac_try="$ac_cpp conftest.$ac_ext"
5174case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177esac
5178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev/null; then
5186 if test -s conftest.err; then
5187 ac_cpp_err=$ac_c_preproc_warn_flag
5188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5189 else
5190 ac_cpp_err=
5191 fi
5192else
5193 ac_cpp_err=yes
5194fi
5195if test -z "$ac_cpp_err"; then
5196 # Broken: success on invalid input.
5197continue
5198else
5199 echo "$as_me: failed program was:" >&5
5200sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 # Passes both tests.
5203ac_preproc_ok=:
5204break
5205fi
a8b2ad8d 5206
b3076f16 5207rm -f conftest.err conftest.$ac_ext
5208
5209done
5210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5211rm -f conftest.err conftest.$ac_ext
5212if $ac_preproc_ok; then
5213 :
5214else
5215 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5216See \`config.log' for more details." >&5
5217echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5218See \`config.log' for more details." >&2;}
5219 { (exit 1); exit 1; }; }
5220fi
5221
2f61d1d7 5222ac_ext=c
5223ac_cpp='$CPP $CPPFLAGS'
5224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227
5228
a8b2ad8d 5229{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5230echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5231if test "${ac_cv_path_GREP+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234 # Extract the first word of "grep ggrep" to use in msg output
5235if test -z "$GREP"; then
5236set dummy grep ggrep; ac_prog_name=$2
5237if test "${ac_cv_path_GREP+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239else
5240 ac_path_GREP_found=false
5241# Loop through the user's path and test for each of PROGNAME-LIST
5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in grep ggrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5250 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5251 # Check for GNU ac_path_GREP and select it if it is found.
5252 # Check for GNU $ac_path_GREP
5253case `"$ac_path_GREP" --version 2>&1` in
5254*GNU*)
5255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5256*)
5257 ac_count=0
5258 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5259 while :
5260 do
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 echo 'GREP' >> "conftest.nl"
5265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 ac_count=`expr $ac_count + 1`
5268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_GREP="$ac_path_GREP"
5271 ac_path_GREP_max=$ac_count
5272 fi
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277esac
5278
5279
5280 $ac_path_GREP_found && break 3
5281 done
5282done
5283
5284done
5285IFS=$as_save_IFS
5286
5287
5288fi
5289
5290GREP="$ac_cv_path_GREP"
5291if test -z "$GREP"; then
5292 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5293echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5294 { (exit 1); exit 1; }; }
5295fi
5296
5297else
5298 ac_cv_path_GREP=$GREP
5299fi
5300
5301
5302fi
5303{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5304echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5305 GREP="$ac_cv_path_GREP"
5306
5307
5308{ echo "$as_me:$LINENO: checking for egrep" >&5
5309echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5310if test "${ac_cv_path_EGREP+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312else
5313 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5314 then ac_cv_path_EGREP="$GREP -E"
5315 else
5316 # Extract the first word of "egrep" to use in msg output
5317if test -z "$EGREP"; then
5318set dummy egrep; ac_prog_name=$2
5319if test "${ac_cv_path_EGREP+set}" = set; then
2f61d1d7 5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
a8b2ad8d 5322 ac_path_EGREP_found=false
5323# Loop through the user's path and test for each of PROGNAME-LIST
5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5326do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_prog in egrep; do
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5332 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5333 # Check for GNU ac_path_EGREP and select it if it is found.
5334 # Check for GNU $ac_path_EGREP
5335case `"$ac_path_EGREP" --version 2>&1` in
5336*GNU*)
5337 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5338*)
5339 ac_count=0
5340 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5341 while :
5342 do
5343 cat "conftest.in" "conftest.in" >"conftest.tmp"
5344 mv "conftest.tmp" "conftest.in"
5345 cp "conftest.in" "conftest.nl"
5346 echo 'EGREP' >> "conftest.nl"
5347 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349 ac_count=`expr $ac_count + 1`
5350 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5351 # Best one so far, save it but keep looking for a better one
5352 ac_cv_path_EGREP="$ac_path_EGREP"
5353 ac_path_EGREP_max=$ac_count
35305a49 5354 fi
a8b2ad8d 5355 # 10*(2^10) chars as input seems more than enough
5356 test $ac_count -gt 10 && break
5357 done
5358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359esac
5360
5361
5362 $ac_path_EGREP_found && break 3
5363 done
5364done
5365
5366done
5367IFS=$as_save_IFS
5368
5369
5370fi
5371
5372EGREP="$ac_cv_path_EGREP"
5373if test -z "$EGREP"; then
5374 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5375echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5376 { (exit 1); exit 1; }; }
5377fi
5378
5379else
5380 ac_cv_path_EGREP=$EGREP
5381fi
5382
5383
5384 fi
2f61d1d7 5385fi
a8b2ad8d 5386{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5387echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5388 EGREP="$ac_cv_path_EGREP"
35305a49 5389
b3076f16 5390
5391if test $ac_cv_c_compiler_gnu = yes; then
a8b2ad8d 5392 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5393echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
b3076f16 5394if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 ac_pattern="Autoconf.*'x'"
5398 cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h. */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
5403/* end confdefs.h. */
5404#include <sgtty.h>
5405Autoconf TIOCGETP
5406_ACEOF
5407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5409 ac_cv_prog_gcc_traditional=yes
5410else
5411 ac_cv_prog_gcc_traditional=no
5412fi
5413rm -f conftest*
5414
5415
5416 if test $ac_cv_prog_gcc_traditional = no; then
5417 cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423#include <termio.h>
5424Autoconf TCGETA
5425_ACEOF
5426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5428 ac_cv_prog_gcc_traditional=yes
5429fi
5430rm -f conftest*
5431
5432 fi
5433fi
a8b2ad8d 5434{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5435echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
b3076f16 5436 if test $ac_cv_prog_gcc_traditional = yes; then
5437 CC="$CC -traditional"
5438 fi
5439fi
5440
5b1166fd 5441# Extract the first word of "gmake", so it can be a program name with args.
5442set dummy gmake; ac_word=$2
a8b2ad8d 5443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5b1166fd 5445if test "${ac_cv_prog_MAKER+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447else
5448 if test -n "$MAKER"; then
5449 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5b1166fd 5458 ac_cv_prog_MAKER="gmake"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462done
5463done
a8b2ad8d 5464IFS=$as_save_IFS
5b1166fd 5465
5466 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5467fi
5468fi
5469MAKER=$ac_cv_prog_MAKER
5470if test -n "$MAKER"; then
a8b2ad8d 5471 { echo "$as_me:$LINENO: result: $MAKER" >&5
5472echo "${ECHO_T}$MAKER" >&6; }
5b1166fd 5473else
a8b2ad8d 5474 { echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6; }
5b1166fd 5476fi
5477
b3076f16 5478
a8b2ad8d 5479
b3076f16 5480case $target in
5481 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5482 ANSI_SRC=""
5483 ;;
5484 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5485 ANSI_SRC=""
b3076f16 5486 ;;
5487 *-solaris*)
5488 EXTRA_DEFINE="-D__SOLARIS__"
5489 ANSI_SRC="-fno-builtin"
5490 ;;
5491 *-cygwin)
5492 ANSI_SRC="-fno-builtin"
5493 ;;
5494 *-linux*)
5495 EXTRA_DEFINE="-D_GNU_SOURCE"
5496 ANSI_SRC=""
5497 ;;
5498 *)
5499 ANSI_SRC=""
5500 ;;
5501esac
5502CFLAGS="$CFLAGS $EXTRA_DEFINE"
5503
5504
a8b2ad8d 5505{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5506echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
b3076f16 5507if test "${ac_cv_lib_socket_socket+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 ac_check_lib_save_LIBS=$LIBS
5511LIBS="-lsocket $LIBS"
5512cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
5518
a8b2ad8d 5519/* Override any GCC internal prototype to avoid an error.
5520 Use char because int might match the return type of a GCC
5521 builtin and then its argument prototype would still apply. */
b3076f16 5522#ifdef __cplusplus
5523extern "C"
5524#endif
b3076f16 5525char socket ();
5526int
5527main ()
5528{
a8b2ad8d 5529return socket ();
b3076f16 5530 ;
5531 return 0;
5532}
5533_ACEOF
5534rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5535if { (ac_try="$ac_link"
5536case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_link") 2>conftest.er1
b3076f16 5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
a8b2ad8d 5548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5549 { (case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_try") 2>&5
b3076f16 5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; } &&
5558 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5559 { (case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
5563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_try") 2>&5
b3076f16 5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_lib_socket_socket=yes
5569else
5570 echo "$as_me: failed program was:" >&5
5571sed 's/^/| /' conftest.$ac_ext >&5
5572
a8b2ad8d 5573 ac_cv_lib_socket_socket=no
b3076f16 5574fi
a8b2ad8d 5575
5576rm -f core conftest.err conftest.$ac_objext \
b3076f16 5577 conftest$ac_exeext conftest.$ac_ext
5578LIBS=$ac_check_lib_save_LIBS
5579fi
a8b2ad8d 5580{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5581echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
b3076f16 5582if test $ac_cv_lib_socket_socket = yes; then
5583 cat >>confdefs.h <<_ACEOF
5584#define HAVE_LIBSOCKET 1
5585_ACEOF
5586
5587 LIBS="-lsocket $LIBS"
5588
5589fi
5590
5591
a8b2ad8d 5592{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5593echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
b3076f16 5594if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 ac_check_lib_save_LIBS=$LIBS
5598LIBS="-lnsl $LIBS"
5599cat >conftest.$ac_ext <<_ACEOF
5600/* confdefs.h. */
5601_ACEOF
5602cat confdefs.h >>conftest.$ac_ext
5603cat >>conftest.$ac_ext <<_ACEOF
5604/* end confdefs.h. */
5605
a8b2ad8d 5606/* Override any GCC internal prototype to avoid an error.
5607 Use char because int might match the return type of a GCC
5608 builtin and then its argument prototype would still apply. */
b3076f16 5609#ifdef __cplusplus
5610extern "C"
5611#endif
b3076f16 5612char gethostbyname ();
5613int
5614main ()
5615{
a8b2ad8d 5616return gethostbyname ();
b3076f16 5617 ;
5618 return 0;
5619}
5620_ACEOF
5621rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5622if { (ac_try="$ac_link"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_link") 2>conftest.er1
b3076f16 5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
a8b2ad8d 5635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639esac
5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
b3076f16 5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5646 { (case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
b3076f16 5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_cv_lib_nsl_gethostbyname=yes
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
a8b2ad8d 5660 ac_cv_lib_nsl_gethostbyname=no
b3076f16 5661fi
a8b2ad8d 5662
5663rm -f core conftest.err conftest.$ac_objext \
b3076f16 5664 conftest$ac_exeext conftest.$ac_ext
5665LIBS=$ac_check_lib_save_LIBS
5666fi
a8b2ad8d 5667{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5668echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
b3076f16 5669if test $ac_cv_lib_nsl_gethostbyname = yes; then
5670 cat >>confdefs.h <<_ACEOF
5671#define HAVE_LIBNSL 1
5672_ACEOF
5673
5674 LIBS="-lnsl $LIBS"
5675
5676fi
5677
5678
a8b2ad8d 5679{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5680echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
b3076f16 5681if test "${ac_cv_lib_m_main+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684 ac_check_lib_save_LIBS=$LIBS
5685LIBS="-lm $LIBS"
5686cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h. */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h. */
5692
5693
5694int
5695main ()
5696{
a8b2ad8d 5697return main ();
b3076f16 5698 ;
5699 return 0;
5700}
5701_ACEOF
5702rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5703if { (ac_try="$ac_link"
5704case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_link") 2>conftest.er1
b3076f16 5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
a8b2ad8d 5716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5717 { (case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720esac
5721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_try") 2>&5
b3076f16 5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5727 { (case "(($ac_try" in
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5730esac
5731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_try") 2>&5
b3076f16 5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_lib_m_main=yes
5737else
5738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
a8b2ad8d 5741 ac_cv_lib_m_main=no
b3076f16 5742fi
a8b2ad8d 5743
5744rm -f core conftest.err conftest.$ac_objext \
b3076f16 5745 conftest$ac_exeext conftest.$ac_ext
5746LIBS=$ac_check_lib_save_LIBS
5747fi
a8b2ad8d 5748{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5749echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
b3076f16 5750if test $ac_cv_lib_m_main = yes; then
5751 cat >>confdefs.h <<_ACEOF
5752#define HAVE_LIBM 1
5753_ACEOF
5754
5755 LIBS="-lm $LIBS"
5756
5757fi
5758
5759
a8b2ad8d 5760{ echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5761echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
21f6caee 5762if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765 ac_check_lib_save_LIBS=$LIBS
5766LIBS="-lGeoIP $LIBS"
5767cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h. */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h. */
5773
a8b2ad8d 5774/* Override any GCC internal prototype to avoid an error.
5775 Use char because int might match the return type of a GCC
5776 builtin and then its argument prototype would still apply. */
21f6caee 5777#ifdef __cplusplus
5778extern "C"
5779#endif
21f6caee 5780char GeoIP_open ();
5781int
5782main ()
5783{
a8b2ad8d 5784return GeoIP_open ();
21f6caee 5785 ;
5786 return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5790if { (ac_try="$ac_link"
5791case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_link") 2>conftest.er1
21f6caee 5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
a8b2ad8d 5803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
21f6caee 5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5814 { (case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_try") 2>&5
21f6caee 5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_cv_lib_GeoIP_GeoIP_open=yes
5824else
5825 echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
a8b2ad8d 5828 ac_cv_lib_GeoIP_GeoIP_open=no
21f6caee 5829fi
a8b2ad8d 5830
5831rm -f core conftest.err conftest.$ac_objext \
21f6caee 5832 conftest$ac_exeext conftest.$ac_ext
5833LIBS=$ac_check_lib_save_LIBS
5834fi
a8b2ad8d 5835{ echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5836echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
21f6caee 5837if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5838 cat >>confdefs.h <<_ACEOF
5839#define HAVE_LIBGEOIP 1
5840_ACEOF
5841
5842 LIBS="-lGeoIP $LIBS"
5843
5844fi
5845
5846
a8b2ad8d 5847{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5848echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
b3076f16 5849if test "${ac_cv_header_stdc+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852 cat >conftest.$ac_ext <<_ACEOF
5853/* confdefs.h. */
5854_ACEOF
5855cat confdefs.h >>conftest.$ac_ext
5856cat >>conftest.$ac_ext <<_ACEOF
5857/* end confdefs.h. */
5858#include <stdlib.h>
5859#include <stdarg.h>
5860#include <string.h>
5861#include <float.h>
5862
5863int
5864main ()
5865{
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871rm -f conftest.$ac_objext
a8b2ad8d 5872if { (ac_try="$ac_compile"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
b3076f16 5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
a8b2ad8d 5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
b3076f16 5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
b3076f16 5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_header_stdc=yes
5906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
a8b2ad8d 5910 ac_cv_header_stdc=no
b3076f16 5911fi
a8b2ad8d 5912
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5914
5915if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
5923#include <string.h>
5924
5925_ACEOF
5926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "memchr" >/dev/null 2>&1; then
5928 :
5929else
5930 ac_cv_header_stdc=no
5931fi
5932rm -f conftest*
5933
5934fi
5935
5936if test $ac_cv_header_stdc = yes; then
5937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5938 cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h. */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h. */
5944#include <stdlib.h>
5945
5946_ACEOF
5947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "free" >/dev/null 2>&1; then
5949 :
5950else
5951 ac_cv_header_stdc=no
5952fi
5953rm -f conftest*
5954
5955fi
5956
5957if test $ac_cv_header_stdc = yes; then
5958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5959 if test "$cross_compiling" = yes; then
5960 :
5961else
5962 cat >conftest.$ac_ext <<_ACEOF
5963/* confdefs.h. */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h. */
5968#include <ctype.h>
a8b2ad8d 5969#include <stdlib.h>
b3076f16 5970#if ((' ' & 0x0FF) == 0x020)
5971# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5972# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5973#else
5974# define ISLOWER(c) \
5975 (('a' <= (c) && (c) <= 'i') \
5976 || ('j' <= (c) && (c) <= 'r') \
5977 || ('s' <= (c) && (c) <= 'z'))
5978# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5979#endif
5980
5981#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5982int
5983main ()
5984{
5985 int i;
5986 for (i = 0; i < 256; i++)
5987 if (XOR (islower (i), ISLOWER (i))
5988 || toupper (i) != TOUPPER (i))
a8b2ad8d 5989 return 2;
5990 return 0;
b3076f16 5991}
5992_ACEOF
5993rm -f conftest$ac_exeext
a8b2ad8d 5994if { (ac_try="$ac_link"
5995case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>&5
b3076f16 6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
b3076f16 6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 :
6014else
6015 echo "$as_me: program exited with status $ac_status" >&5
6016echo "$as_me: failed program was:" >&5
6017sed 's/^/| /' conftest.$ac_ext >&5
6018
6019( exit $ac_status )
6020ac_cv_header_stdc=no
6021fi
a8b2ad8d 6022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 6023fi
a8b2ad8d 6024
6025
b3076f16 6026fi
6027fi
a8b2ad8d 6028{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6029echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
b3076f16 6030if test $ac_cv_header_stdc = yes; then
6031
6032cat >>confdefs.h <<\_ACEOF
6033#define STDC_HEADERS 1
6034_ACEOF
6035
6036fi
6037
6038
a8b2ad8d 6039{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6040echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
b3076f16 6041if test "${ac_cv_header_time+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043else
6044 cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h. */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
6049/* end confdefs.h. */
6050#include <sys/types.h>
6051#include <sys/time.h>
6052#include <time.h>
6053
6054int
6055main ()
6056{
6057if ((struct tm *) 0)
6058return 0;
6059 ;
6060 return 0;
6061}
6062_ACEOF
6063rm -f conftest.$ac_objext
a8b2ad8d 6064if { (ac_try="$ac_compile"
6065case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
b3076f16 6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
a8b2ad8d 6077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
b3076f16 6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6088 { (case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_try") 2>&5
b3076f16 6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_header_time=yes
6098else
6099 echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
a8b2ad8d 6102 ac_cv_header_time=no
b3076f16 6103fi
a8b2ad8d 6104
6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6106fi
a8b2ad8d 6107{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6108echo "${ECHO_T}$ac_cv_header_time" >&6; }
b3076f16 6109if test $ac_cv_header_time = yes; then
6110
6111cat >>confdefs.h <<\_ACEOF
6112#define TIME_WITH_SYS_TIME 1
6113_ACEOF
6114
6115fi
6116
a8b2ad8d 6117{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6118echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
b3076f16 6119if test "${ac_cv_struct_tm+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121else
6122 cat >conftest.$ac_ext <<_ACEOF
6123/* confdefs.h. */
6124_ACEOF
6125cat confdefs.h >>conftest.$ac_ext
6126cat >>conftest.$ac_ext <<_ACEOF
6127/* end confdefs.h. */
6128#include <sys/types.h>
6129#include <time.h>
6130
6131int
6132main ()
6133{
6134struct tm *tp; tp->tm_sec;
6135 ;
6136 return 0;
6137}
6138_ACEOF
6139rm -f conftest.$ac_objext
a8b2ad8d 6140if { (ac_try="$ac_compile"
6141case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144esac
6145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_compile") 2>conftest.er1
b3076f16 6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
a8b2ad8d 6153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
b3076f16 6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6164 { (case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167esac
6168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_try") 2>&5
b3076f16 6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_struct_tm=time.h
6174else
6175 echo "$as_me: failed program was:" >&5
6176sed 's/^/| /' conftest.$ac_ext >&5
6177
a8b2ad8d 6178 ac_cv_struct_tm=sys/time.h
b3076f16 6179fi
a8b2ad8d 6180
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6182fi
a8b2ad8d 6183{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6184echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
b3076f16 6185if test $ac_cv_struct_tm = sys/time.h; then
6186
6187cat >>confdefs.h <<\_ACEOF
6188#define TM_IN_SYS_TIME 1
6189_ACEOF
6190
6191fi
6192
6193
35305a49 6194# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6205 inttypes.h stdint.h unistd.h
6206do
6207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6208{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35305a49 6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213 cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h. */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h. */
6219$ac_includes_default
6220
6221#include <$ac_header>
6222_ACEOF
6223rm -f conftest.$ac_objext
a8b2ad8d 6224if { (ac_try="$ac_compile"
6225case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228esac
6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
35305a49 6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
a8b2ad8d 6237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241esac
6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
35305a49 6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6248 { (case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251esac
6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_try") 2>&5
35305a49 6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 eval "$as_ac_Header=yes"
6258else
6259 echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
a8b2ad8d 6262 eval "$as_ac_Header=no"
35305a49 6263fi
a8b2ad8d 6264
6265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305a49 6266fi
a8b2ad8d 6267ac_res=`eval echo '${'$as_ac_Header'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269echo "${ECHO_T}$ac_res" >&6; }
35305a49 6270if test `eval echo '${'$as_ac_Header'}'` = yes; then
6271 cat >>confdefs.h <<_ACEOF
6272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273_ACEOF
6274
6275fi
6276
6277done
6278
6279
b3076f16 6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
21f6caee 6300
6301
6302for 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 6303do
6304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310fi
a8b2ad8d 6311ac_res=`eval echo '${'$as_ac_Header'}'`
6312 { echo "$as_me:$LINENO: result: $ac_res" >&5
6313echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6314else
6315 # Is the header compilable?
a8b2ad8d 6316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 6318cat >conftest.$ac_ext <<_ACEOF
6319/* confdefs.h. */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h. */
6324$ac_includes_default
6325#include <$ac_header>
6326_ACEOF
6327rm -f conftest.$ac_objext
a8b2ad8d 6328if { (ac_try="$ac_compile"
6329case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332esac
6333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compile") 2>conftest.er1
b3076f16 6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
a8b2ad8d 6341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6342 { (case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345esac
6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_try") 2>&5
b3076f16 6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6352 { (case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355esac
6356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_try") 2>&5
b3076f16 6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_header_compiler=yes
6362else
6363 echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
a8b2ad8d 6366 ac_header_compiler=no
b3076f16 6367fi
a8b2ad8d 6368
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6371echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 6372
6373# Is the header present?
a8b2ad8d 6374{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 6376cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
6382#include <$ac_header>
6383_ACEOF
a8b2ad8d 6384if { (ac_try="$ac_cpp conftest.$ac_ext"
6385case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null; then
6397 if test -s conftest.err; then
6398 ac_cpp_err=$ac_c_preproc_warn_flag
6399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6400 else
6401 ac_cpp_err=
6402 fi
6403else
6404 ac_cpp_err=yes
6405fi
6406if test -z "$ac_cpp_err"; then
6407 ac_header_preproc=yes
6408else
6409 echo "$as_me: failed program was:" >&5
6410sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 ac_header_preproc=no
6413fi
a8b2ad8d 6414
b3076f16 6415rm -f conftest.err conftest.$ac_ext
a8b2ad8d 6416{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6417echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 6418
6419# So? What about this header?
6420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6421 yes:no: )
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6426 ac_header_preproc=yes
6427 ;;
6428 no:yes:* )
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 6441 ( cat <<\_ASBOX
63c95a47 6442## -------------------------------------------------- ##
6443## Report this to evilnet-devel@lists.sourceforge.net ##
6444## -------------------------------------------------- ##
b3076f16 6445_ASBOX
a8b2ad8d 6446 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 6447 ;;
6448esac
a8b2ad8d 6449{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453else
6454 eval "$as_ac_Header=\$ac_header_preproc"
6455fi
a8b2ad8d 6456ac_res=`eval echo '${'$as_ac_Header'}'`
6457 { echo "$as_me:$LINENO: result: $ac_res" >&5
6458echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6459
6460fi
6461if test `eval echo '${'$as_ac_Header'}'` = yes; then
6462 cat >>confdefs.h <<_ACEOF
6463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6464_ACEOF
6465
6466fi
6467
6468done
6469
6470
a8b2ad8d 6471{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6472echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
2f61d1d7 6473if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16 6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
2f61d1d7 6482#include <sys/types.h>
6483#include <sys/socket.h>
b3076f16 6484
6485int
6486main ()
6487{
2f61d1d7 6488static struct sockaddr ac_aggr;
6489if (ac_aggr.sa_len)
b3076f16 6490return 0;
6491 ;
6492 return 0;
6493}
6494_ACEOF
6495rm -f conftest.$ac_objext
a8b2ad8d 6496if { (ac_try="$ac_compile"
6497case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500esac
6501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_compile") 2>conftest.er1
b3076f16 6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
a8b2ad8d 6509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6510 { (case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_try") 2>&5
b3076f16 6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6520 { (case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523esac
6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_try") 2>&5
b3076f16 6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
2f61d1d7 6529 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6530else
6531 echo "$as_me: failed program was:" >&5
6532sed 's/^/| /' conftest.$ac_ext >&5
6533
a8b2ad8d 6534 cat >conftest.$ac_ext <<_ACEOF
b3076f16 6535/* confdefs.h. */
6536_ACEOF
6537cat confdefs.h >>conftest.$ac_ext
6538cat >>conftest.$ac_ext <<_ACEOF
6539/* end confdefs.h. */
2f61d1d7 6540#include <sys/types.h>
6541#include <sys/socket.h>
b3076f16 6542
6543int
6544main ()
6545{
2f61d1d7 6546static struct sockaddr ac_aggr;
6547if (sizeof ac_aggr.sa_len)
b3076f16 6548return 0;
6549 ;
6550 return 0;
6551}
6552_ACEOF
6553rm -f conftest.$ac_objext
a8b2ad8d 6554if { (ac_try="$ac_compile"
6555case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558esac
6559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560 (eval "$ac_compile") 2>conftest.er1
b3076f16 6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
a8b2ad8d 6567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6568 { (case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571esac
6572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_try") 2>&5
b3076f16 6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; } &&
6577 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6578 { (case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581esac
6582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_try") 2>&5
b3076f16 6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
2f61d1d7 6587 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6588else
6589 echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
a8b2ad8d 6592 ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 6593fi
a8b2ad8d 6594
6595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6596fi
a8b2ad8d 6597
6598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6599fi
a8b2ad8d 6600{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6601echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
2f61d1d7 6602if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16 6603
6604cat >>confdefs.h <<\_ACEOF
2f61d1d7 6605#define HAVE_SOCKADDR_SA_LEN
6606_ACEOF
6607
6608fi
6609
a8b2ad8d 6610{ echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6611echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
2f61d1d7 6612if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615 cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621#include <sys/types.h>
6622#include <sys/socket.h>
6623#include <netdb.h>
6624
6625int
6626main ()
6627{
6628static struct addrinfo ac_aggr;
6629if (ac_aggr.ai_flags)
6630return 0;
6631 ;
6632 return 0;
6633}
6634_ACEOF
6635rm -f conftest.$ac_objext
a8b2ad8d 6636if { (ac_try="$ac_compile"
6637case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640esac
6641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
a8b2ad8d 6649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6650 { (case "(($ac_try" in
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6653esac
6654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_try") 2>&5
2f61d1d7 6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6660 { (case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663esac
6664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_try") 2>&5
2f61d1d7 6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_member_struct_addrinfo_ai_flags=yes
6670else
6671 echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
a8b2ad8d 6674 cat >conftest.$ac_ext <<_ACEOF
2f61d1d7 6675/* confdefs.h. */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h. */
6680#include <sys/types.h>
6681#include <sys/socket.h>
6682#include <netdb.h>
6683
6684int
6685main ()
6686{
6687static struct addrinfo ac_aggr;
6688if (sizeof ac_aggr.ai_flags)
6689return 0;
6690 ;
6691 return 0;
6692}
b3076f16 6693_ACEOF
2f61d1d7 6694rm -f conftest.$ac_objext
a8b2ad8d 6695if { (ac_try="$ac_compile"
6696case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699esac
6700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
a8b2ad8d 6708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_try") 2>&5
2f61d1d7 6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6719 { (case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722esac
6723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
2f61d1d7 6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_member_struct_addrinfo_ai_flags=yes
6729else
6730 echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6732
a8b2ad8d 6733 ac_cv_member_struct_addrinfo_ai_flags=no
2f61d1d7 6734fi
a8b2ad8d 6735
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f61d1d7 6737fi
a8b2ad8d 6738
6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6740fi
a8b2ad8d 6741{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6742echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
2f61d1d7 6743if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6744
6745cat >>confdefs.h <<\_ACEOF
6746#define HAVE_STRUCT_ADDRINFO
6747_ACEOF
b3076f16 6748
2f61d1d7 6749fi
b3076f16 6750
6751
21f6caee 6752
b3076f16 6753for ac_func in gettimeofday
6754do
6755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6756{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6758if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 cat >conftest.$ac_ext <<_ACEOF
6762/* confdefs.h. */
6763_ACEOF
6764cat confdefs.h >>conftest.$ac_ext
6765cat >>conftest.$ac_ext <<_ACEOF
6766/* end confdefs.h. */
6767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6769#define $ac_func innocuous_$ac_func
6770
6771/* System header to define __stub macros and hopefully few prototypes,
6772 which can conflict with char $ac_func (); below.
6773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6774 <limits.h> exists even on freestanding compilers. */
6775
6776#ifdef __STDC__
6777# include <limits.h>
6778#else
6779# include <assert.h>
6780#endif
6781
6782#undef $ac_func
6783
a8b2ad8d 6784/* Override any GCC internal prototype to avoid an error.
6785 Use char because int might match the return type of a GCC
6786 builtin and then its argument prototype would still apply. */
b3076f16 6787#ifdef __cplusplus
6788extern "C"
b3076f16 6789#endif
b3076f16 6790char $ac_func ();
6791/* The GNU C library defines this for functions which it implements
6792 to always fail with ENOSYS. Some functions are actually named
6793 something starting with __ and the normal name is an alias. */
a8b2ad8d 6794#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6795choke me
b3076f16 6796#endif
6797
6798int
6799main ()
6800{
a8b2ad8d 6801return $ac_func ();
b3076f16 6802 ;
6803 return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6807if { (ac_try="$ac_link"
6808case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6811esac
6812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 (eval "$ac_link") 2>conftest.er1
b3076f16 6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
a8b2ad8d 6820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6821 { (case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824esac
6825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6826 (eval "$ac_try") 2>&5
b3076f16 6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 6831 { (case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6834esac
6835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_try") 2>&5
b3076f16 6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 eval "$as_ac_var=yes"
6841else
6842 echo "$as_me: failed program was:" >&5
6843sed 's/^/| /' conftest.$ac_ext >&5
6844
a8b2ad8d 6845 eval "$as_ac_var=no"
b3076f16 6846fi
a8b2ad8d 6847
6848rm -f core conftest.err conftest.$ac_objext \
b3076f16 6849 conftest$ac_exeext conftest.$ac_ext
6850fi
a8b2ad8d 6851ac_res=`eval echo '${'$as_ac_var'}'`
6852 { echo "$as_me:$LINENO: result: $ac_res" >&5
6853echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6854if test `eval echo '${'$as_ac_var'}'` = yes; then
6855 cat >>confdefs.h <<_ACEOF
6856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6857_ACEOF
6858
6859fi
6860done
6861
6862if test $ac_cv_func_gettimeofday = no; then
6863
6864for ac_func in ftime
6865do
6866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6867{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
6878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6880#define $ac_func innocuous_$ac_func
6881
6882/* System header to define __stub macros and hopefully few prototypes,
6883 which can conflict with char $ac_func (); below.
6884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6885 <limits.h> exists even on freestanding compilers. */
6886
6887#ifdef __STDC__
6888# include <limits.h>
6889#else
6890# include <assert.h>
6891#endif
6892
6893#undef $ac_func
6894
a8b2ad8d 6895/* Override any GCC internal prototype to avoid an error.
6896 Use char because int might match the return type of a GCC
6897 builtin and then its argument prototype would still apply. */
b3076f16 6898#ifdef __cplusplus
6899extern "C"
b3076f16 6900#endif
b3076f16 6901char $ac_func ();
6902/* The GNU C library defines this for functions which it implements
6903 to always fail with ENOSYS. Some functions are actually named
6904 something starting with __ and the normal name is an alias. */
a8b2ad8d 6905#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6906choke me
b3076f16 6907#endif
6908
6909int
6910main ()
6911{
a8b2ad8d 6912return $ac_func ();
b3076f16 6913 ;
6914 return 0;
6915}
6916_ACEOF
6917rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6918if { (ac_try="$ac_link"
6919case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922esac
6923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_link") 2>conftest.er1
b3076f16 6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
a8b2ad8d 6931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6932 { (case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935esac
6936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937 (eval "$ac_try") 2>&5
b3076f16 6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 6942 { (case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945esac
6946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_try") 2>&5
b3076f16 6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 eval "$as_ac_var=yes"
6952else
6953 echo "$as_me: failed program was:" >&5
6954sed 's/^/| /' conftest.$ac_ext >&5
6955
a8b2ad8d 6956 eval "$as_ac_var=no"
b3076f16 6957fi
a8b2ad8d 6958
6959rm -f core conftest.err conftest.$ac_objext \
b3076f16 6960 conftest$ac_exeext conftest.$ac_ext
6961fi
a8b2ad8d 6962ac_res=`eval echo '${'$as_ac_var'}'`
6963 { echo "$as_me:$LINENO: result: $ac_res" >&5
6964echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6965if test `eval echo '${'$as_ac_var'}'` = yes; then
6966 cat >>confdefs.h <<_ACEOF
6967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6968_ACEOF
6969
6970else
2f61d1d7 6971 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6972echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
b3076f16 6973 { (exit 1); exit 1; }; }
6974fi
6975done
6976
6977fi
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
5b1166fd 6993for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
b3076f16 6994do
6995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000else
7001 cat >conftest.$ac_ext <<_ACEOF
7002/* confdefs.h. */
7003_ACEOF
7004cat confdefs.h >>conftest.$ac_ext
7005cat >>conftest.$ac_ext <<_ACEOF
7006/* end confdefs.h. */
7007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7009#define $ac_func innocuous_$ac_func
7010
7011/* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func (); below.
7013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 <limits.h> exists even on freestanding compilers. */
7015
7016#ifdef __STDC__
7017# include <limits.h>
7018#else
7019# include <assert.h>
7020#endif
7021
7022#undef $ac_func
7023
a8b2ad8d 7024/* Override any GCC internal prototype to avoid an error.
7025 Use char because int might match the return type of a GCC
7026 builtin and then its argument prototype would still apply. */
b3076f16 7027#ifdef __cplusplus
7028extern "C"
b3076f16 7029#endif
b3076f16 7030char $ac_func ();
7031/* The GNU C library defines this for functions which it implements
7032 to always fail with ENOSYS. Some functions are actually named
7033 something starting with __ and the normal name is an alias. */
a8b2ad8d 7034#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7035choke me
b3076f16 7036#endif
7037
7038int
7039main ()
7040{
a8b2ad8d 7041return $ac_func ();
b3076f16 7042 ;
7043 return 0;
7044}
7045_ACEOF
7046rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7047if { (ac_try="$ac_link"
7048case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051esac
7052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_link") 2>conftest.er1
b3076f16 7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
a8b2ad8d 7060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7061 { (case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064esac
7065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_try") 2>&5
b3076f16 7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7071 { (case "(($ac_try" in
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7074esac
7075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_try") 2>&5
b3076f16 7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 eval "$as_ac_var=yes"
7081else
7082 echo "$as_me: failed program was:" >&5
7083sed 's/^/| /' conftest.$ac_ext >&5
7084
a8b2ad8d 7085 eval "$as_ac_var=no"
b3076f16 7086fi
a8b2ad8d 7087
7088rm -f core conftest.err conftest.$ac_objext \
b3076f16 7089 conftest$ac_exeext conftest.$ac_ext
7090fi
a8b2ad8d 7091ac_res=`eval echo '${'$as_ac_var'}'`
7092 { echo "$as_me:$LINENO: result: $ac_res" >&5
7093echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7094if test `eval echo '${'$as_ac_var'}'` = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7097_ACEOF
7098
7099fi
7100done
7101
7102
7103
7104
7105
7106
7107
7108
7109for ac_func in select socket strcspn strspn strtod strtoul
7110do
7111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7112{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7114if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117 cat >conftest.$ac_ext <<_ACEOF
7118/* confdefs.h. */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h. */
7123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7125#define $ac_func innocuous_$ac_func
7126
7127/* System header to define __stub macros and hopefully few prototypes,
7128 which can conflict with char $ac_func (); below.
7129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130 <limits.h> exists even on freestanding compilers. */
7131
7132#ifdef __STDC__
7133# include <limits.h>
7134#else
7135# include <assert.h>
7136#endif
7137
7138#undef $ac_func
7139
a8b2ad8d 7140/* Override any GCC internal prototype to avoid an error.
7141 Use char because int might match the return type of a GCC
7142 builtin and then its argument prototype would still apply. */
b3076f16 7143#ifdef __cplusplus
7144extern "C"
b3076f16 7145#endif
b3076f16 7146char $ac_func ();
7147/* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
a8b2ad8d 7150#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7151choke me
b3076f16 7152#endif
7153
7154int
7155main ()
7156{
a8b2ad8d 7157return $ac_func ();
b3076f16 7158 ;
7159 return 0;
7160}
7161_ACEOF
7162rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7163if { (ac_try="$ac_link"
7164case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167esac
7168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_link") 2>conftest.er1
b3076f16 7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
a8b2ad8d 7176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7177 { (case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180esac
7181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_try") 2>&5
b3076f16 7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7187 { (case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190esac
7191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_try") 2>&5
b3076f16 7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 eval "$as_ac_var=yes"
7197else
7198 echo "$as_me: failed program was:" >&5
7199sed 's/^/| /' conftest.$ac_ext >&5
7200
a8b2ad8d 7201 eval "$as_ac_var=no"
b3076f16 7202fi
a8b2ad8d 7203
7204rm -f core conftest.err conftest.$ac_objext \
b3076f16 7205 conftest$ac_exeext conftest.$ac_ext
7206fi
a8b2ad8d 7207ac_res=`eval echo '${'$as_ac_var'}'`
7208 { echo "$as_me:$LINENO: result: $ac_res" >&5
7209echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7210if test `eval echo '${'$as_ac_var'}'` = yes; then
7211 cat >>confdefs.h <<_ACEOF
7212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7213_ACEOF
7214
7215else
2f61d1d7 7216 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
7217echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 7218 { (exit 1); exit 1; }; }
7219fi
7220done
7221
7222
7223# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7224# for constant arguments. Useless!
a8b2ad8d 7225{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
7226echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
b3076f16 7227if test "${ac_cv_working_alloca_h+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230 cat >conftest.$ac_ext <<_ACEOF
7231/* confdefs.h. */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h. */
7236#include <alloca.h>
7237int
7238main ()
7239{
7240char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 7241 if (p) return 0;
b3076f16 7242 ;
7243 return 0;
7244}
7245_ACEOF
7246rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7247if { (ac_try="$ac_link"
7248case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_link") 2>conftest.er1
b3076f16 7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
a8b2ad8d 7260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7261 { (case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264esac
7265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_try") 2>&5
b3076f16 7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7271 { (case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274esac
7275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_try") 2>&5
b3076f16 7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_cv_working_alloca_h=yes
7281else
7282 echo "$as_me: failed program was:" >&5
7283sed 's/^/| /' conftest.$ac_ext >&5
7284
a8b2ad8d 7285 ac_cv_working_alloca_h=no
b3076f16 7286fi
a8b2ad8d 7287
7288rm -f core conftest.err conftest.$ac_objext \
b3076f16 7289 conftest$ac_exeext conftest.$ac_ext
7290fi
a8b2ad8d 7291{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7292echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
b3076f16 7293if test $ac_cv_working_alloca_h = yes; then
7294
7295cat >>confdefs.h <<\_ACEOF
7296#define HAVE_ALLOCA_H 1
7297_ACEOF
7298
7299fi
7300
a8b2ad8d 7301{ echo "$as_me:$LINENO: checking for alloca" >&5
7302echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
b3076f16 7303if test "${ac_cv_func_alloca_works+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306 cat >conftest.$ac_ext <<_ACEOF
7307/* confdefs.h. */
7308_ACEOF
7309cat confdefs.h >>conftest.$ac_ext
7310cat >>conftest.$ac_ext <<_ACEOF
7311/* end confdefs.h. */
7312#ifdef __GNUC__
7313# define alloca __builtin_alloca
7314#else
7315# ifdef _MSC_VER
7316# include <malloc.h>
7317# define alloca _alloca
7318# else
7319# if HAVE_ALLOCA_H
7320# include <alloca.h>
7321# else
7322# ifdef _AIX
7323 #pragma alloca
7324# else
7325# ifndef alloca /* predefined by HP cc +Olibcalls */
7326char *alloca ();
7327# endif
7328# endif
7329# endif
7330# endif
7331#endif
7332
7333int
7334main ()
7335{
7336char *p = (char *) alloca (1);
a8b2ad8d 7337 if (p) return 0;
b3076f16 7338 ;
7339 return 0;
7340}
7341_ACEOF
7342rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7343if { (ac_try="$ac_link"
7344case "(($ac_try" in
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7347esac
7348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_link") 2>conftest.er1
b3076f16 7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } &&
a8b2ad8d 7356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7357 { (case "(($ac_try" in
7358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7359 *) ac_try_echo=$ac_try;;
7360esac
7361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7362 (eval "$ac_try") 2>&5
b3076f16 7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7367 { (case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370esac
7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_try") 2>&5
b3076f16 7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7376 ac_cv_func_alloca_works=yes
7377else
7378 echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
a8b2ad8d 7381 ac_cv_func_alloca_works=no
b3076f16 7382fi
a8b2ad8d 7383
7384rm -f core conftest.err conftest.$ac_objext \
b3076f16 7385 conftest$ac_exeext conftest.$ac_ext
7386fi
a8b2ad8d 7387{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7388echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
b3076f16 7389
7390if test $ac_cv_func_alloca_works = yes; then
7391
7392cat >>confdefs.h <<\_ACEOF
7393#define HAVE_ALLOCA 1
7394_ACEOF
7395
7396else
7397 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7398# that cause trouble. Some versions do not even contain alloca or
7399# contain a buggy version. If you still want to use their alloca,
7400# use ar to extract alloca.o from them instead of compiling alloca.c.
7401
a8b2ad8d 7402ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 7403
7404cat >>confdefs.h <<\_ACEOF
7405#define C_ALLOCA 1
7406_ACEOF
7407
7408
a8b2ad8d 7409{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7410echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
b3076f16 7411if test "${ac_cv_os_cray+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414 cat >conftest.$ac_ext <<_ACEOF
7415/* confdefs.h. */
7416_ACEOF
7417cat confdefs.h >>conftest.$ac_ext
7418cat >>conftest.$ac_ext <<_ACEOF
7419/* end confdefs.h. */
a8b2ad8d 7420#if defined CRAY && ! defined CRAY2
b3076f16 7421webecray
7422#else
7423wenotbecray
7424#endif
7425
7426_ACEOF
7427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7428 $EGREP "webecray" >/dev/null 2>&1; then
7429 ac_cv_os_cray=yes
7430else
7431 ac_cv_os_cray=no
7432fi
7433rm -f conftest*
7434
7435fi
a8b2ad8d 7436{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7437echo "${ECHO_T}$ac_cv_os_cray" >&6; }
b3076f16 7438if test $ac_cv_os_cray = yes; then
7439 for ac_func in _getb67 GETB67 getb67; do
7440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7441{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445else
7446 cat >conftest.$ac_ext <<_ACEOF
7447/* confdefs.h. */
7448_ACEOF
7449cat confdefs.h >>conftest.$ac_ext
7450cat >>conftest.$ac_ext <<_ACEOF
7451/* end confdefs.h. */
7452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7454#define $ac_func innocuous_$ac_func
7455
7456/* System header to define __stub macros and hopefully few prototypes,
7457 which can conflict with char $ac_func (); below.
7458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7459 <limits.h> exists even on freestanding compilers. */
7460
7461#ifdef __STDC__
7462# include <limits.h>
7463#else
7464# include <assert.h>
7465#endif
7466
7467#undef $ac_func
7468
a8b2ad8d 7469/* Override any GCC internal prototype to avoid an error.
7470 Use char because int might match the return type of a GCC
7471 builtin and then its argument prototype would still apply. */
b3076f16 7472#ifdef __cplusplus
7473extern "C"
b3076f16 7474#endif
b3076f16 7475char $ac_func ();
7476/* The GNU C library defines this for functions which it implements
7477 to always fail with ENOSYS. Some functions are actually named
7478 something starting with __ and the normal name is an alias. */
a8b2ad8d 7479#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7480choke me
b3076f16 7481#endif
7482
7483int
7484main ()
7485{
a8b2ad8d 7486return $ac_func ();
b3076f16 7487 ;
7488 return 0;
7489}
7490_ACEOF
7491rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7492if { (ac_try="$ac_link"
7493case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496esac
7497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_link") 2>conftest.er1
b3076f16 7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } &&
a8b2ad8d 7505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7506 { (case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
7510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_try") 2>&5
b3076f16 7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7516 { (case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519esac
7520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_try") 2>&5
b3076f16 7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 eval "$as_ac_var=yes"
7526else
7527 echo "$as_me: failed program was:" >&5
7528sed 's/^/| /' conftest.$ac_ext >&5
7529
a8b2ad8d 7530 eval "$as_ac_var=no"
b3076f16 7531fi
a8b2ad8d 7532
7533rm -f core conftest.err conftest.$ac_objext \
b3076f16 7534 conftest$ac_exeext conftest.$ac_ext
7535fi
a8b2ad8d 7536ac_res=`eval echo '${'$as_ac_var'}'`
7537 { echo "$as_me:$LINENO: result: $ac_res" >&5
7538echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7539if test `eval echo '${'$as_ac_var'}'` = yes; then
7540
7541cat >>confdefs.h <<_ACEOF
7542#define CRAY_STACKSEG_END $ac_func
7543_ACEOF
7544
7545 break
7546fi
7547
7548 done
7549fi
7550
a8b2ad8d 7551{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7552echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
b3076f16 7553if test "${ac_cv_c_stack_direction+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556 if test "$cross_compiling" = yes; then
7557 ac_cv_c_stack_direction=0
7558else
7559 cat >conftest.$ac_ext <<_ACEOF
7560/* confdefs.h. */
7561_ACEOF
7562cat confdefs.h >>conftest.$ac_ext
7563cat >>conftest.$ac_ext <<_ACEOF
7564/* end confdefs.h. */
a8b2ad8d 7565$ac_includes_default
b3076f16 7566int
7567find_stack_direction ()
7568{
7569 static char *addr = 0;
7570 auto char dummy;
7571 if (addr == 0)
7572 {
7573 addr = &dummy;
7574 return find_stack_direction ();
7575 }
7576 else
7577 return (&dummy > addr) ? 1 : -1;
7578}
7579
7580int
7581main ()
7582{
a8b2ad8d 7583 return find_stack_direction () < 0;
b3076f16 7584}
7585_ACEOF
7586rm -f conftest$ac_exeext
a8b2ad8d 7587if { (ac_try="$ac_link"
7588case "(($ac_try" in
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591esac
7592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_link") 2>&5
b3076f16 7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7597 { (case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7600esac
7601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_try") 2>&5
b3076f16 7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_c_stack_direction=1
7607else
7608 echo "$as_me: program exited with status $ac_status" >&5
7609echo "$as_me: failed program was:" >&5
7610sed 's/^/| /' conftest.$ac_ext >&5
7611
7612( exit $ac_status )
7613ac_cv_c_stack_direction=-1
7614fi
a8b2ad8d 7615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7616fi
a8b2ad8d 7617
7618
b3076f16 7619fi
a8b2ad8d 7620{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7621echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
b3076f16 7622
7623cat >>confdefs.h <<_ACEOF
7624#define STACK_DIRECTION $ac_cv_c_stack_direction
7625_ACEOF
7626
7627
7628fi
7629
7630
7631
7632for ac_header in stdlib.h unistd.h
7633do
7634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640fi
a8b2ad8d 7641ac_res=`eval echo '${'$as_ac_Header'}'`
7642 { echo "$as_me:$LINENO: result: $ac_res" >&5
7643echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7644else
7645 # Is the header compilable?
a8b2ad8d 7646{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 7648cat >conftest.$ac_ext <<_ACEOF
7649/* confdefs.h. */
7650_ACEOF
7651cat confdefs.h >>conftest.$ac_ext
7652cat >>conftest.$ac_ext <<_ACEOF
7653/* end confdefs.h. */
7654$ac_includes_default
7655#include <$ac_header>
7656_ACEOF
7657rm -f conftest.$ac_objext
a8b2ad8d 7658if { (ac_try="$ac_compile"
7659case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662esac
7663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
b3076f16 7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
a8b2ad8d 7671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7672 { (case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675esac
7676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_try") 2>&5
b3076f16 7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 7682 { (case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_try") 2>&5
b3076f16 7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_header_compiler=yes
7692else
7693 echo "$as_me: failed program was:" >&5
7694sed 's/^/| /' conftest.$ac_ext >&5
7695
a8b2ad8d 7696 ac_header_compiler=no
b3076f16 7697fi
a8b2ad8d 7698
7699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7701echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 7702
7703# Is the header present?
a8b2ad8d 7704{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7705echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 7706cat >conftest.$ac_ext <<_ACEOF
7707/* confdefs.h. */
7708_ACEOF
7709cat confdefs.h >>conftest.$ac_ext
7710cat >>conftest.$ac_ext <<_ACEOF
7711/* end confdefs.h. */
7712#include <$ac_header>
7713_ACEOF
a8b2ad8d 7714if { (ac_try="$ac_cpp conftest.$ac_ext"
7715case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718esac
7719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } >/dev/null; then
7727 if test -s conftest.err; then
7728 ac_cpp_err=$ac_c_preproc_warn_flag
7729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7730 else
7731 ac_cpp_err=
7732 fi
7733else
7734 ac_cpp_err=yes
7735fi
7736if test -z "$ac_cpp_err"; then
7737 ac_header_preproc=yes
7738else
7739 echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
7741
7742 ac_header_preproc=no
7743fi
a8b2ad8d 7744
b3076f16 7745rm -f conftest.err conftest.$ac_ext
a8b2ad8d 7746{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7747echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 7748
7749# So? What about this header?
7750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7751 yes:no: )
7752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7756 ac_header_preproc=yes
7757 ;;
7758 no:yes:* )
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 7771 ( cat <<\_ASBOX
63c95a47 7772## -------------------------------------------------- ##
7773## Report this to evilnet-devel@lists.sourceforge.net ##
7774## -------------------------------------------------- ##
b3076f16 7775_ASBOX
a8b2ad8d 7776 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 7777 ;;
7778esac
a8b2ad8d 7779{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784 eval "$as_ac_Header=\$ac_header_preproc"
7785fi
a8b2ad8d 7786ac_res=`eval echo '${'$as_ac_Header'}'`
7787 { echo "$as_me:$LINENO: result: $ac_res" >&5
7788echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7789
7790fi
7791if test `eval echo '${'$as_ac_Header'}'` = yes; then
7792 cat >>confdefs.h <<_ACEOF
7793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7794_ACEOF
7795
7796fi
7797
7798done
7799
7800
7801for ac_func in getpagesize
7802do
7803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7804{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7806if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809 cat >conftest.$ac_ext <<_ACEOF
7810/* confdefs.h. */
7811_ACEOF
7812cat confdefs.h >>conftest.$ac_ext
7813cat >>conftest.$ac_ext <<_ACEOF
7814/* end confdefs.h. */
7815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7817#define $ac_func innocuous_$ac_func
7818
7819/* System header to define __stub macros and hopefully few prototypes,
7820 which can conflict with char $ac_func (); below.
7821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7822 <limits.h> exists even on freestanding compilers. */
7823
7824#ifdef __STDC__
7825# include <limits.h>
7826#else
7827# include <assert.h>
7828#endif
7829
7830#undef $ac_func
7831
a8b2ad8d 7832/* Override any GCC internal prototype to avoid an error.
7833 Use char because int might match the return type of a GCC
7834 builtin and then its argument prototype would still apply. */
b3076f16 7835#ifdef __cplusplus
7836extern "C"
b3076f16 7837#endif
b3076f16 7838char $ac_func ();
7839/* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
a8b2ad8d 7842#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7843choke me
b3076f16 7844#endif
7845
7846int
7847main ()
7848{
a8b2ad8d 7849return $ac_func ();
b3076f16 7850 ;
7851 return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7855if { (ac_try="$ac_link"
7856case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_link") 2>conftest.er1
b3076f16 7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
a8b2ad8d 7868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872esac
7873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
b3076f16 7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7879 { (case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882esac
7883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_try") 2>&5
b3076f16 7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 eval "$as_ac_var=yes"
7889else
7890 echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
a8b2ad8d 7893 eval "$as_ac_var=no"
b3076f16 7894fi
a8b2ad8d 7895
7896rm -f core conftest.err conftest.$ac_objext \
b3076f16 7897 conftest$ac_exeext conftest.$ac_ext
7898fi
a8b2ad8d 7899ac_res=`eval echo '${'$as_ac_var'}'`
7900 { echo "$as_me:$LINENO: result: $ac_res" >&5
7901echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7902if test `eval echo '${'$as_ac_var'}'` = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7905_ACEOF
7906
7907fi
7908done
7909
a8b2ad8d 7910{ echo "$as_me:$LINENO: checking for working mmap" >&5
7911echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
b3076f16 7912if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914else
7915 if test "$cross_compiling" = yes; then
7916 ac_cv_func_mmap_fixed_mapped=no
7917else
7918 cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
7924$ac_includes_default
7925/* malloc might have been renamed as rpl_malloc. */
7926#undef malloc
7927
7928/* Thanks to Mike Haertel and Jim Avera for this test.
7929 Here is a matrix of mmap possibilities:
7930 mmap private not fixed
7931 mmap private fixed at somewhere currently unmapped
7932 mmap private fixed at somewhere already mapped
7933 mmap shared not fixed
7934 mmap shared fixed at somewhere currently unmapped
7935 mmap shared fixed at somewhere already mapped
7936 For private mappings, we should verify that changes cannot be read()
7937 back from the file, nor mmap's back from the file at a different
7938 address. (There have been systems where private was not correctly
7939 implemented like the infamous i386 svr4.0, and systems where the
7940 VM page cache was not coherent with the file system buffer cache
7941 like early versions of FreeBSD and possibly contemporary NetBSD.)
7942 For shared mappings, we should conversely verify that changes get
7943 propagated back to all the places they're supposed to be.
7944
7945 Grep wants private fixed already mapped.
7946 The main things grep needs to know about mmap are:
7947 * does it exist and is it safe to write into the mmap'd area
7948 * how to use it (BSD variants) */
7949
7950#include <fcntl.h>
7951#include <sys/mman.h>
7952
7953#if !STDC_HEADERS && !HAVE_STDLIB_H
7954char *malloc ();
7955#endif
7956
7957/* This mess was copied from the GNU getpagesize.h. */
7958#if !HAVE_GETPAGESIZE
7959/* Assume that all systems that can run configure have sys/param.h. */
7960# if !HAVE_SYS_PARAM_H
7961# define HAVE_SYS_PARAM_H 1
7962# endif
7963
7964# ifdef _SC_PAGESIZE
7965# define getpagesize() sysconf(_SC_PAGESIZE)
7966# else /* no _SC_PAGESIZE */
7967# if HAVE_SYS_PARAM_H
7968# include <sys/param.h>
7969# ifdef EXEC_PAGESIZE
7970# define getpagesize() EXEC_PAGESIZE
7971# else /* no EXEC_PAGESIZE */
7972# ifdef NBPG
7973# define getpagesize() NBPG * CLSIZE
7974# ifndef CLSIZE
7975# define CLSIZE 1
7976# endif /* no CLSIZE */
7977# else /* no NBPG */
7978# ifdef NBPC
7979# define getpagesize() NBPC
7980# else /* no NBPC */
7981# ifdef PAGESIZE
7982# define getpagesize() PAGESIZE
7983# endif /* PAGESIZE */
7984# endif /* no NBPC */
7985# endif /* no NBPG */
7986# endif /* no EXEC_PAGESIZE */
7987# else /* no HAVE_SYS_PARAM_H */
7988# define getpagesize() 8192 /* punt totally */
7989# endif /* no HAVE_SYS_PARAM_H */
7990# endif /* no _SC_PAGESIZE */
7991
7992#endif /* no HAVE_GETPAGESIZE */
7993
7994int
7995main ()
7996{
7997 char *data, *data2, *data3;
7998 int i, pagesize;
7999 int fd;
8000
8001 pagesize = getpagesize ();
8002
8003 /* First, make a file with some known garbage in it. */
8004 data = (char *) malloc (pagesize);
8005 if (!data)
a8b2ad8d 8006 return 1;
b3076f16 8007 for (i = 0; i < pagesize; ++i)
8008 *(data + i) = rand ();
8009 umask (0);
8010 fd = creat ("conftest.mmap", 0600);
8011 if (fd < 0)
a8b2ad8d 8012 return 1;
b3076f16 8013 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 8014 return 1;
b3076f16 8015 close (fd);
8016
8017 /* Next, try to mmap the file at a fixed address which already has
8018 something else allocated at it. If we can, also make sure that
8019 we see the same garbage. */
8020 fd = open ("conftest.mmap", O_RDWR);
8021 if (fd < 0)
a8b2ad8d 8022 return 1;
b3076f16 8023 data2 = (char *) malloc (2 * pagesize);
8024 if (!data2)
a8b2ad8d 8025 return 1;
8026 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16 8027 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 8029 return 1;
b3076f16 8030 for (i = 0; i < pagesize; ++i)
8031 if (*(data + i) != *(data2 + i))
a8b2ad8d 8032 return 1;
b3076f16 8033
8034 /* Finally, make sure that changes to the mapped area do not
8035 percolate back to the file as seen by read(). (This is a bug on
8036 some variants of i386 svr4.0.) */
8037 for (i = 0; i < pagesize; ++i)
8038 *(data2 + i) = *(data2 + i) + 1;
8039 data3 = (char *) malloc (pagesize);
8040 if (!data3)
a8b2ad8d 8041 return 1;
b3076f16 8042 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 8043 return 1;
b3076f16 8044 for (i = 0; i < pagesize; ++i)
8045 if (*(data + i) != *(data3 + i))
a8b2ad8d 8046 return 1;
b3076f16 8047 close (fd);
a8b2ad8d 8048 return 0;
b3076f16 8049}
8050_ACEOF
8051rm -f conftest$ac_exeext
a8b2ad8d 8052if { (ac_try="$ac_link"
8053case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056esac
8057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_link") 2>&5
b3076f16 8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
b3076f16 8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 ac_cv_func_mmap_fixed_mapped=yes
8072else
8073 echo "$as_me: program exited with status $ac_status" >&5
8074echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077( exit $ac_status )
8078ac_cv_func_mmap_fixed_mapped=no
8079fi
a8b2ad8d 8080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 8081fi
a8b2ad8d 8082
8083
b3076f16 8084fi
a8b2ad8d 8085{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8086echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 8087if test $ac_cv_func_mmap_fixed_mapped = yes; then
8088
8089cat >>confdefs.h <<\_ACEOF
8090#define HAVE_MMAP 1
8091_ACEOF
8092
8093fi
8094rm -f conftest.mmap
8095
8096
a8b2ad8d 8097{ echo "$as_me:$LINENO: checking for sin_len" >&5
8098echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
b3076f16 8099if test "${ac_cv_sin_len+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101else
8102 cat >conftest.$ac_ext <<_ACEOF
8103/* confdefs.h. */
8104_ACEOF
8105cat confdefs.h >>conftest.$ac_ext
8106cat >>conftest.$ac_ext <<_ACEOF
8107/* end confdefs.h. */
8108#include <sys/types.h>
8109#include <netinet/in.h>
8110int
8111main ()
8112{
8113struct sockaddr_in *sin; sin->sin_len = 0;
8114 ;
8115 return 0;
8116}
8117_ACEOF
8118rm -f conftest.$ac_objext
a8b2ad8d 8119if { (ac_try="$ac_compile"
8120case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8123esac
8124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_compile") 2>conftest.er1
b3076f16 8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
a8b2ad8d 8132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133 { (case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136esac
8137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_try") 2>&5
b3076f16 8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8143 { (case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146esac
8147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_try") 2>&5
b3076f16 8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_sin_len="yes"
8153else
8154 echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
a8b2ad8d 8157 ac_cv_sin_len="no"
b3076f16 8158fi
a8b2ad8d 8159
8160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8161fi
a8b2ad8d 8162{ echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
8163echo "${ECHO_T}$ac_cv_sin_len" >&6; }
b3076f16 8164if test $ac_cv_sin_len = yes ; then
8165
8166cat >>confdefs.h <<\_ACEOF
8167#define HAVE_SIN_LEN 1
8168_ACEOF
8169
8170fi
8171
a8b2ad8d 8172{ echo "$as_me:$LINENO: checking for socklen_t" >&5
8173echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
79886419 8174if test "${ac_cv_type_socklen_t+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177 cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h. */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h. */
8183#include <sys/types.h>
8184#include<sys/socket.h>
8185
a8b2ad8d 8186typedef socklen_t ac__type_new_;
79886419 8187int
8188main ()
8189{
a8b2ad8d 8190if ((ac__type_new_ *) 0)
79886419 8191 return 0;
a8b2ad8d 8192if (sizeof (ac__type_new_))
79886419 8193 return 0;
8194 ;
8195 return 0;
8196}
8197_ACEOF
8198rm -f conftest.$ac_objext
a8b2ad8d 8199if { (ac_try="$ac_compile"
8200case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203esac
8204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_compile") 2>conftest.er1
79886419 8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
a8b2ad8d 8212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216esac
8217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
79886419 8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226esac
8227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
79886419 8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_type_socklen_t=yes
8233else
8234 echo "$as_me: failed program was:" >&5
8235sed 's/^/| /' conftest.$ac_ext >&5
8236
a8b2ad8d 8237 ac_cv_type_socklen_t=no
79886419 8238fi
a8b2ad8d 8239
8240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 8241fi
a8b2ad8d 8242{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8243echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
79886419 8244if test $ac_cv_type_socklen_t = yes; then
8245 :
8246else
8247
a8b2ad8d 8248 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8249echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
79886419 8250 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252else
8253
8254 curl_cv_socklen_t_equiv=
8255 for arg2 in "struct sockaddr" void ; do
8256 for t in int size_t unsigned long "unsigned long" ; do
8257 cat >conftest.$ac_ext <<_ACEOF
8258/* confdefs.h. */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
8262/* end confdefs.h. */
8263#include <sys/types.h>
8264#include <sys/socket.h>
8265int getpeername (int $arg2 *, $t *);
8266int
8267main ()
8268{
8269$t len;
8270 getpeername(0, 0, &len);
8271 ;
8272 return 0;
8273}
8274_ACEOF
8275rm -f conftest.$ac_objext
a8b2ad8d 8276if { (ac_try="$ac_compile"
8277case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
79886419 8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
a8b2ad8d 8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
79886419 8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
79886419 8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 curl_cv_socklen_t_equiv="$t"
8310 break
8311else
8312 echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
8314
a8b2ad8d 8315
79886419 8316fi
a8b2ad8d 8317
8318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 8319 done
8320 done
8321
8322fi
8323
a8b2ad8d 8324 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8325echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
79886419 8326
8327cat >>confdefs.h <<_ACEOF
8328#define socklen_t $curl_cv_socklen_t_equiv
8329_ACEOF
8330
8331fi
8332
8333
b3076f16 8334OLD_CFLAGS=$CFLAGS
8335CFLAGS="$CFLAGS -W -Wall -Werror"
8336
a8b2ad8d 8337{ echo "$as_me:$LINENO: checking for time_t format" >&5
8338echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
b3076f16 8339if test "${ac_cv_fmt_time_t+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342
8343ac_cv_fmt_time_t=no
8344cat >conftest.$ac_ext <<_ACEOF
8345#include <sys/types.h>
8346#include <stdio.h>
8347void myfunc(void) {
8348 time_t test=0;
8349 printf("%li", test);
8350}
8351_ACEOF
8352rm -f conftest.$ac_objext
a8b2ad8d 8353if { (ac_try="$ac_compile"
8354case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357esac
8358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
b3076f16 8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
a8b2ad8d 8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
b3076f16 8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8377 { (case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
8381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_try") 2>&5
b3076f16 8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_fmt_time_t="\"%li\""
8387else
8388 echo "$as_me: failed program was:" >&5
8389sed 's/^/| /' conftest.$ac_ext >&5
8390
a8b2ad8d 8391
b3076f16 8392fi
a8b2ad8d 8393
8394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8395if test $ac_cv_fmt_time_t = no; then
8396cat >conftest.$ac_ext <<_ACEOF
8397#include <sys/types.h>
8398#include <stdio.h>
8399void myfunc(void) {
8400 time_t test=0;
8401 printf("%i", test);
8402}
8403_ACEOF
8404rm -f conftest.$ac_objext
a8b2ad8d 8405if { (ac_try="$ac_compile"
8406case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409esac
8410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
b3076f16 8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
a8b2ad8d 8418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8419 { (case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422esac
8423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_try") 2>&5
b3076f16 8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8429 { (case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_try") 2>&5
b3076f16 8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_fmt_time_t="\"%i\""
8439else
8440 echo "$as_me: failed program was:" >&5
8441sed 's/^/| /' conftest.$ac_ext >&5
8442
a8b2ad8d 8443
b3076f16 8444fi
a8b2ad8d 8445
8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8447fi
8448if test $ac_cv_fmt_time_t = no; then
8449{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
8450Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
8451echo "$as_me: error: Cannot detect format string for time_t
8452Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
8453 { (exit 1); exit 1; }; }
8454fi
8455
8456fi
8457
8458
8459cat >>confdefs.h <<_ACEOF
8460#define FMT_TIME_T $ac_cv_fmt_time_t
8461_ACEOF
8462
a8b2ad8d 8463{ echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
8464echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
b3076f16 8465
a8b2ad8d 8466{ echo "$as_me:$LINENO: checking for va_copy" >&5
8467echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
b3076f16 8468if test "${ac_cv_c_va_copy+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470else
8471 cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h. */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h. */
8477#include <stdarg.h>
8478int
8479main ()
8480{
8481va_list ap1, ap2; va_copy(ap1, ap2);
8482 ;
8483 return 0;
8484}
8485_ACEOF
8486rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8487if { (ac_try="$ac_link"
8488case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491esac
8492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_link") 2>conftest.er1
b3076f16 8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
a8b2ad8d 8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
8505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
b3076f16 8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
8515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_try") 2>&5
b3076f16 8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_cv_c_va_copy="yes"
8521else
8522 echo "$as_me: failed program was:" >&5
8523sed 's/^/| /' conftest.$ac_ext >&5
8524
a8b2ad8d 8525 ac_cv_c_va_copy="no"
b3076f16 8526
8527fi
a8b2ad8d 8528
8529rm -f core conftest.err conftest.$ac_objext \
b3076f16 8530 conftest$ac_exeext conftest.$ac_ext
8531fi
a8b2ad8d 8532{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8533echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
b3076f16 8534if test "$ac_cv_c_va_copy" = "yes" ; then
8535
8536cat >>confdefs.h <<\_ACEOF
8537#define HAVE_VA_COPY 1
8538_ACEOF
8539
8540fi
8541
a8b2ad8d 8542{ echo "$as_me:$LINENO: checking for __va_copy" >&5
8543echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
b3076f16 8544if test "${ac_cv_c___va_copy+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547 cat >conftest.$ac_ext <<_ACEOF
8548/* confdefs.h. */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h. */
8553#include <stdarg.h>
8554int
8555main ()
8556{
8557va_list ap1, ap2; __va_copy(ap1, ap2);
8558 ;
8559 return 0;
8560}
8561_ACEOF
8562rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8563if { (ac_try="$ac_link"
8564case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567esac
8568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>conftest.er1
b3076f16 8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
a8b2ad8d 8576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577 { (case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580esac
8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_try") 2>&5
b3076f16 8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
b3076f16 8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 ac_cv_c___va_copy="yes"
8597else
8598 echo "$as_me: failed program was:" >&5
8599sed 's/^/| /' conftest.$ac_ext >&5
8600
a8b2ad8d 8601 ac_cv_c___va_copy="no"
b3076f16 8602
8603fi
a8b2ad8d 8604
8605rm -f core conftest.err conftest.$ac_objext \
b3076f16 8606 conftest$ac_exeext conftest.$ac_ext
8607fi
a8b2ad8d 8608{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8609echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
b3076f16 8610if test "$ac_cv_c___va_copy" = "yes" ; then
8611
8612cat >>confdefs.h <<\_ACEOF
8613#define HAVE___VA_COPY 1
8614_ACEOF
8615
8616fi
8617
8618CFLAGS=$OLD_CFLAGS
8619
a8b2ad8d 8620{ echo "$as_me:$LINENO: checking which malloc to use" >&5
8621echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
b3076f16 8622
a8b2ad8d 8623# Check whether --with-malloc was given.
b3076f16 8624if test "${with_malloc+set}" = set; then
a8b2ad8d 8625 withval=$with_malloc;
b3076f16 8626else
8627 withval="system"
a8b2ad8d 8628fi
8629
b3076f16 8630if test "x$withval" = "xsystem" ; then
a8b2ad8d 8631 { echo "$as_me:$LINENO: result: system" >&5
8632echo "${ECHO_T}system" >&6; }
b3076f16 8633
8634cat >>confdefs.h <<\_ACEOF
8635#define WITH_MALLOC_SYSTEM 1
8636_ACEOF
8637
5b1166fd 8638 x3_malloc="System"
b3076f16 8639elif test "x$withval" = "xdmalloc" ; then
a8b2ad8d 8640 { echo "$as_me:$LINENO: result: dmalloc" >&5
8641echo "${ECHO_T}dmalloc" >&6; }
b3076f16 8642
8643for ac_header in dmalloc.h
8644do
8645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651fi
a8b2ad8d 8652ac_res=`eval echo '${'$as_ac_Header'}'`
8653 { echo "$as_me:$LINENO: result: $ac_res" >&5
8654echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8655else
8656 # Is the header compilable?
a8b2ad8d 8657{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8659cat >conftest.$ac_ext <<_ACEOF
8660/* confdefs.h. */
8661_ACEOF
8662cat confdefs.h >>conftest.$ac_ext
8663cat >>conftest.$ac_ext <<_ACEOF
8664/* end confdefs.h. */
8665$ac_includes_default
8666#include <$ac_header>
8667_ACEOF
8668rm -f conftest.$ac_objext
a8b2ad8d 8669if { (ac_try="$ac_compile"
8670case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673esac
8674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_compile") 2>conftest.er1
b3076f16 8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
a8b2ad8d 8682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8683 { (case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686esac
8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_try") 2>&5
b3076f16 8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8693 { (case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696esac
8697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_try") 2>&5
b3076f16 8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_header_compiler=yes
8703else
8704 echo "$as_me: failed program was:" >&5
8705sed 's/^/| /' conftest.$ac_ext >&5
8706
a8b2ad8d 8707 ac_header_compiler=no
b3076f16 8708fi
a8b2ad8d 8709
8710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8712echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8713
8714# Is the header present?
a8b2ad8d 8715{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8717cat >conftest.$ac_ext <<_ACEOF
8718/* confdefs.h. */
8719_ACEOF
8720cat confdefs.h >>conftest.$ac_ext
8721cat >>conftest.$ac_ext <<_ACEOF
8722/* end confdefs.h. */
8723#include <$ac_header>
8724_ACEOF
a8b2ad8d 8725if { (ac_try="$ac_cpp conftest.$ac_ext"
8726case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8729esac
8730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } >/dev/null; then
8738 if test -s conftest.err; then
8739 ac_cpp_err=$ac_c_preproc_warn_flag
8740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8741 else
8742 ac_cpp_err=
8743 fi
8744else
8745 ac_cpp_err=yes
8746fi
8747if test -z "$ac_cpp_err"; then
8748 ac_header_preproc=yes
8749else
8750 echo "$as_me: failed program was:" >&5
8751sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 ac_header_preproc=no
8754fi
a8b2ad8d 8755
b3076f16 8756rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8758echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8759
8760# So? What about this header?
8761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8762 yes:no: )
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8767 ac_header_preproc=yes
8768 ;;
8769 no:yes:* )
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8782 ( cat <<\_ASBOX
63c95a47 8783## -------------------------------------------------- ##
8784## Report this to evilnet-devel@lists.sourceforge.net ##
8785## -------------------------------------------------- ##
b3076f16 8786_ASBOX
a8b2ad8d 8787 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8788 ;;
8789esac
a8b2ad8d 8790{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794else
8795 eval "$as_ac_Header=\$ac_header_preproc"
8796fi
a8b2ad8d 8797ac_res=`eval echo '${'$as_ac_Header'}'`
8798 { echo "$as_me:$LINENO: result: $ac_res" >&5
8799echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8800
8801fi
8802if test `eval echo '${'$as_ac_Header'}'` = yes; then
8803 cat >>confdefs.h <<_ACEOF
8804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8805_ACEOF
8806
8807else
8808 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8809echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8810 { (exit 1); exit 1; }; }
8811fi
8812
8813done
8814
8815
a8b2ad8d 8816{ echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8817echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
b3076f16 8818if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820else
8821 ac_check_lib_save_LIBS=$LIBS
8822LIBS="-ldmalloc $LIBS"
8823cat >conftest.$ac_ext <<_ACEOF
8824/* confdefs.h. */
8825_ACEOF
8826cat confdefs.h >>conftest.$ac_ext
8827cat >>conftest.$ac_ext <<_ACEOF
8828/* end confdefs.h. */
8829
a8b2ad8d 8830/* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
b3076f16 8833#ifdef __cplusplus
8834extern "C"
8835#endif
b3076f16 8836char malloc ();
8837int
8838main ()
8839{
a8b2ad8d 8840return malloc ();
b3076f16 8841 ;
8842 return 0;
8843}
8844_ACEOF
8845rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8846if { (ac_try="$ac_link"
8847case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
b3076f16 8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
a8b2ad8d 8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
b3076f16 8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
b3076f16 8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_lib_dmalloc_malloc=yes
8880else
8881 echo "$as_me: failed program was:" >&5
8882sed 's/^/| /' conftest.$ac_ext >&5
8883
a8b2ad8d 8884 ac_cv_lib_dmalloc_malloc=no
b3076f16 8885fi
a8b2ad8d 8886
8887rm -f core conftest.err conftest.$ac_objext \
b3076f16 8888 conftest$ac_exeext conftest.$ac_ext
8889LIBS=$ac_check_lib_save_LIBS
8890fi
a8b2ad8d 8891{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8892echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
b3076f16 8893if test $ac_cv_lib_dmalloc_malloc = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895#define HAVE_LIBDMALLOC 1
8896_ACEOF
8897
8898 LIBS="-ldmalloc $LIBS"
8899
8900else
8901 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8902echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8903 { (exit 1); exit 1; }; }
8904fi
8905
8906
8907cat >>confdefs.h <<\_ACEOF
8908#define WITH_MALLOC_DMALLOC 1
8909_ACEOF
8910
5b1166fd 8911 x3_malloc="DMalloc"
b3076f16 8912elif test "x$withval" = "xmpatrol" ; then
a8b2ad8d 8913 { echo "$as_me:$LINENO: result: mpatrol" >&5
8914echo "${ECHO_T}mpatrol" >&6; }
b3076f16 8915
8916for ac_header in mpatrol.h
8917do
8918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924fi
a8b2ad8d 8925ac_res=`eval echo '${'$as_ac_Header'}'`
8926 { echo "$as_me:$LINENO: result: $ac_res" >&5
8927echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8928else
8929 # Is the header compilable?
a8b2ad8d 8930{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8932cat >conftest.$ac_ext <<_ACEOF
8933/* confdefs.h. */
8934_ACEOF
8935cat confdefs.h >>conftest.$ac_ext
8936cat >>conftest.$ac_ext <<_ACEOF
8937/* end confdefs.h. */
8938$ac_includes_default
8939#include <$ac_header>
8940_ACEOF
8941rm -f conftest.$ac_objext
a8b2ad8d 8942if { (ac_try="$ac_compile"
8943case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946esac
8947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
b3076f16 8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
a8b2ad8d 8955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8956 { (case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959esac
8960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_try") 2>&5
b3076f16 8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; } &&
8965 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8966 { (case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969esac
8970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_try") 2>&5
b3076f16 8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_header_compiler=yes
8976else
8977 echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
a8b2ad8d 8980 ac_header_compiler=no
b3076f16 8981fi
a8b2ad8d 8982
8983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8986
8987# Is the header present?
a8b2ad8d 8988{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996#include <$ac_header>
8997_ACEOF
a8b2ad8d 8998if { (ac_try="$ac_cpp conftest.$ac_ext"
8999case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002esac
9003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null; then
9011 if test -s conftest.err; then
9012 ac_cpp_err=$ac_c_preproc_warn_flag
9013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9014 else
9015 ac_cpp_err=
9016 fi
9017else
9018 ac_cpp_err=yes
9019fi
9020if test -z "$ac_cpp_err"; then
9021 ac_header_preproc=yes
9022else
9023 echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 ac_header_preproc=no
9027fi
a8b2ad8d 9028
b3076f16 9029rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9030{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9031echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9032
9033# So? What about this header?
9034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9035 yes:no: )
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9040 ac_header_preproc=yes
9041 ;;
9042 no:yes:* )
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9055 ( cat <<\_ASBOX
63c95a47 9056## -------------------------------------------------- ##
9057## Report this to evilnet-devel@lists.sourceforge.net ##
9058## -------------------------------------------------- ##
b3076f16 9059_ASBOX
a8b2ad8d 9060 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 9061 ;;
9062esac
a8b2ad8d 9063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067else
9068 eval "$as_ac_Header=\$ac_header_preproc"
9069fi
a8b2ad8d 9070ac_res=`eval echo '${'$as_ac_Header'}'`
9071 { echo "$as_me:$LINENO: result: $ac_res" >&5
9072echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9073
9074fi
9075if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078_ACEOF
9079
9080else
9081 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
9082echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
9083 { (exit 1); exit 1; }; }
9084fi
9085
9086done
9087
9088
a8b2ad8d 9089{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9090echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
b3076f16 9091if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093else
9094 ac_check_lib_save_LIBS=$LIBS
9095LIBS="-lelf $LIBS"
9096cat >conftest.$ac_ext <<_ACEOF
9097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
9102
a8b2ad8d 9103/* Override any GCC internal prototype to avoid an error.
9104 Use char because int might match the return type of a GCC
9105 builtin and then its argument prototype would still apply. */
b3076f16 9106#ifdef __cplusplus
9107extern "C"
9108#endif
b3076f16 9109char elf_begin ();
9110int
9111main ()
9112{
a8b2ad8d 9113return elf_begin ();
b3076f16 9114 ;
9115 return 0;
9116}
9117_ACEOF
9118rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9119if { (ac_try="$ac_link"
9120case "(($ac_try" in
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9123esac
9124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_link") 2>conftest.er1
b3076f16 9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
a8b2ad8d 9132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9133 { (case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136esac
9137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_try") 2>&5
b3076f16 9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9143 { (case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146esac
9147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_try") 2>&5
b3076f16 9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_lib_elf_elf_begin=yes
9153else
9154 echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
a8b2ad8d 9157 ac_cv_lib_elf_elf_begin=no
b3076f16 9158fi
a8b2ad8d 9159
9160rm -f core conftest.err conftest.$ac_objext \
b3076f16 9161 conftest$ac_exeext conftest.$ac_ext
9162LIBS=$ac_check_lib_save_LIBS
9163fi
a8b2ad8d 9164{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
9165echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
b3076f16 9166if test $ac_cv_lib_elf_elf_begin = yes; then
9167 cat >>confdefs.h <<_ACEOF
9168#define HAVE_LIBELF 1
9169_ACEOF
9170
9171 LIBS="-lelf $LIBS"
9172
9173fi
9174
9175
a8b2ad8d 9176{ echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
9177echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
b3076f16 9178if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 ac_check_lib_save_LIBS=$LIBS
9182LIBS="-lmpatrol $LIBS"
9183cat >conftest.$ac_ext <<_ACEOF
9184/* confdefs.h. */
9185_ACEOF
9186cat confdefs.h >>conftest.$ac_ext
9187cat >>conftest.$ac_ext <<_ACEOF
9188/* end confdefs.h. */
9189
a8b2ad8d 9190/* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
b3076f16 9193#ifdef __cplusplus
9194extern "C"
9195#endif
b3076f16 9196char __mp_atexit ();
9197int
9198main ()
9199{
a8b2ad8d 9200return __mp_atexit ();
b3076f16 9201 ;
9202 return 0;
9203}
9204_ACEOF
9205rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9206if { (ac_try="$ac_link"
9207case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210esac
9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>conftest.er1
b3076f16 9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
a8b2ad8d 9219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9220 { (case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223esac
9224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_try") 2>&5
b3076f16 9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; } &&
9229 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9230 { (case "(($ac_try" in
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9233esac
9234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_try") 2>&5
b3076f16 9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_lib_mpatrol___mp_atexit=yes
9240else
9241 echo "$as_me: failed program was:" >&5
9242sed 's/^/| /' conftest.$ac_ext >&5
9243
a8b2ad8d 9244 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 9245fi
a8b2ad8d 9246
9247rm -f core conftest.err conftest.$ac_objext \
b3076f16 9248 conftest$ac_exeext conftest.$ac_ext
9249LIBS=$ac_check_lib_save_LIBS
9250fi
a8b2ad8d 9251{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
9252echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
b3076f16 9253if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
9254 cat >>confdefs.h <<_ACEOF
9255#define HAVE_LIBMPATROL 1
9256_ACEOF
9257
9258 LIBS="-lmpatrol $LIBS"
9259
9260else
9261 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
9262echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
9263 { (exit 1); exit 1; }; }
9264fi
9265
9266
9267cat >>confdefs.h <<\_ACEOF
9268#define WITH_MALLOC_MPATROL 1
9269_ACEOF
9270
5b1166fd 9271 x3_malloc="MPatrol"
b3076f16 9272elif test "x$withval" = "xboehm-gc" ; then
a8b2ad8d 9273 { echo "$as_me:$LINENO: result: boehm-gc" >&5
9274echo "${ECHO_T}boehm-gc" >&6; }
b3076f16 9275
9276for ac_header in gc/gc.h
9277do
9278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 9279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284fi
a8b2ad8d 9285ac_res=`eval echo '${'$as_ac_Header'}'`
9286 { echo "$as_me:$LINENO: result: $ac_res" >&5
9287echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9288else
9289 # Is the header compilable?
a8b2ad8d 9290{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 9292cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h. */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h. */
9298$ac_includes_default
9299#include <$ac_header>
9300_ACEOF
9301rm -f conftest.$ac_objext
a8b2ad8d 9302if { (ac_try="$ac_compile"
9303case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306esac
9307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_compile") 2>conftest.er1
b3076f16 9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
a8b2ad8d 9315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319esac
9320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
b3076f16 9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 9326 { (case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329esac
9330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
b3076f16 9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9335 ac_header_compiler=yes
9336else
9337 echo "$as_me: failed program was:" >&5
9338sed 's/^/| /' conftest.$ac_ext >&5
9339
a8b2ad8d 9340 ac_header_compiler=no
b3076f16 9341fi
a8b2ad8d 9342
9343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9345echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 9346
9347# Is the header present?
a8b2ad8d 9348{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 9350cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
9356#include <$ac_header>
9357_ACEOF
a8b2ad8d 9358if { (ac_try="$ac_cpp conftest.$ac_ext"
9359case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362esac
9363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } >/dev/null; then
9371 if test -s conftest.err; then
9372 ac_cpp_err=$ac_c_preproc_warn_flag
9373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9374 else
9375 ac_cpp_err=
9376 fi
9377else
9378 ac_cpp_err=yes
9379fi
9380if test -z "$ac_cpp_err"; then
9381 ac_header_preproc=yes
9382else
9383 echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 ac_header_preproc=no
9387fi
a8b2ad8d 9388
b3076f16 9389rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9391echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9392
9393# So? What about this header?
9394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9395 yes:no: )
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9400 ac_header_preproc=yes
9401 ;;
9402 no:yes:* )
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9415 ( cat <<\_ASBOX
63c95a47 9416## -------------------------------------------------- ##
9417## Report this to evilnet-devel@lists.sourceforge.net ##
9418## -------------------------------------------------- ##
b3076f16 9419_ASBOX
a8b2ad8d 9420 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 9421 ;;
9422esac
a8b2ad8d 9423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428 eval "$as_ac_Header=\$ac_header_preproc"
9429fi
a8b2ad8d 9430ac_res=`eval echo '${'$as_ac_Header'}'`
9431 { echo "$as_me:$LINENO: result: $ac_res" >&5
9432echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9433
9434fi
9435if test `eval echo '${'$as_ac_Header'}'` = yes; then
9436 cat >>confdefs.h <<_ACEOF
9437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9438_ACEOF
9439
9440else
9441 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
9442echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
9443 { (exit 1); exit 1; }; }
9444fi
9445
9446done
9447
9448
a8b2ad8d 9449{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9450echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
b3076f16 9451if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453else
9454 ac_check_lib_save_LIBS=$LIBS
9455LIBS="-ldl $LIBS"
9456cat >conftest.$ac_ext <<_ACEOF
9457/* confdefs.h. */
9458_ACEOF
9459cat confdefs.h >>conftest.$ac_ext
9460cat >>conftest.$ac_ext <<_ACEOF
9461/* end confdefs.h. */
9462
a8b2ad8d 9463/* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
b3076f16 9466#ifdef __cplusplus
9467extern "C"
9468#endif
b3076f16 9469char dlopen ();
9470int
9471main ()
9472{
a8b2ad8d 9473return dlopen ();
b3076f16 9474 ;
9475 return 0;
9476}
9477_ACEOF
9478rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9479if { (ac_try="$ac_link"
9480case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483esac
9484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
b3076f16 9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
a8b2ad8d 9492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9493 { (case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496esac
9497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_try") 2>&5
b3076f16 9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9503 { (case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_try") 2>&5
b3076f16 9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_lib_dl_dlopen=yes
9513else
9514 echo "$as_me: failed program was:" >&5
9515sed 's/^/| /' conftest.$ac_ext >&5
9516
a8b2ad8d 9517 ac_cv_lib_dl_dlopen=no
b3076f16 9518fi
a8b2ad8d 9519
9520rm -f core conftest.err conftest.$ac_objext \
b3076f16 9521 conftest$ac_exeext conftest.$ac_ext
9522LIBS=$ac_check_lib_save_LIBS
9523fi
a8b2ad8d 9524{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9525echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
b3076f16 9526if test $ac_cv_lib_dl_dlopen = yes; then
9527 cat >>confdefs.h <<_ACEOF
9528#define HAVE_LIBDL 1
9529_ACEOF
9530
9531 LIBS="-ldl $LIBS"
9532
9533else
9534 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
9535echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
9536 { (exit 1); exit 1; }; }
9537fi
9538
9539
a8b2ad8d 9540{ echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
9541echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
b3076f16 9542if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544else
9545 ac_check_lib_save_LIBS=$LIBS
9546LIBS="-lgc $LIBS"
9547cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h. */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
9552/* end confdefs.h. */
9553
a8b2ad8d 9554/* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
b3076f16 9557#ifdef __cplusplus
9558extern "C"
9559#endif
b3076f16 9560char GC_gcollect ();
9561int
9562main ()
9563{
a8b2ad8d 9564return GC_gcollect ();
b3076f16 9565 ;
9566 return 0;
9567}
9568_ACEOF
9569rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9570if { (ac_try="$ac_link"
9571case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574esac
9575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
b3076f16 9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
a8b2ad8d 9583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9584 { (case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587esac
9588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_try") 2>&5
b3076f16 9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9594 { (case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597esac
9598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_try") 2>&5
b3076f16 9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_lib_gc_GC_gcollect=yes
9604else
9605 echo "$as_me: failed program was:" >&5
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
a8b2ad8d 9608 ac_cv_lib_gc_GC_gcollect=no
b3076f16 9609fi
a8b2ad8d 9610
9611rm -f core conftest.err conftest.$ac_objext \
b3076f16 9612 conftest$ac_exeext conftest.$ac_ext
9613LIBS=$ac_check_lib_save_LIBS
9614fi
a8b2ad8d 9615{ echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
9616echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
b3076f16 9617if test $ac_cv_lib_gc_GC_gcollect = yes; then
9618 cat >>confdefs.h <<_ACEOF
9619#define HAVE_LIBGC 1
9620_ACEOF
9621
9622 LIBS="-lgc $LIBS"
9623
9624else
9625 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
9626echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
9627 { (exit 1); exit 1; }; }
9628fi
9629
9630
9631cat >>confdefs.h <<\_ACEOF
9632#define WITH_MALLOC_BOEHM_GC 1
9633_ACEOF
9634
5b1166fd 9635 x3_malloc="Boehm"
b8cb2a14 9636elif test "x$withval" = "xx3" ; then
a8b2ad8d 9637 { echo "$as_me:$LINENO: result: x3" >&5
9638echo "${ECHO_T}x3" >&6; }
ec1a68c8 9639
9640cat >>confdefs.h <<\_ACEOF
b8cb2a14 9641#define WITH_MALLOC_X3 1
ec1a68c8 9642_ACEOF
9643
b8cb2a14 9644 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 9645 x3_malloc="X3"
ceafd592 9646elif test "x$withval" = "xslab" ; then
a8b2ad8d 9647 { echo "$as_me:$LINENO: result: slab" >&5
9648echo "${ECHO_T}slab" >&6; }
ceafd592 9649
9650cat >>confdefs.h <<\_ACEOF
9651#define WITH_MALLOC_SLAB 1
9652_ACEOF
9653
9654 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 9655 x3_malloc="Slab"
b3076f16 9656else
9657 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
9658echo "$as_me: error: Unknown malloc type $withval" >&2;}
9659 { (exit 1); exit 1; }; }
9660fi
9661
a8b2ad8d 9662{ echo "$as_me:$LINENO: checking which protocol to use" >&5
9663echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
b3076f16 9664
a8b2ad8d 9665# Check whether --with-protocol was given.
b3076f16 9666if test "${with_protocol+set}" = set; then
a8b2ad8d 9667 withval=$with_protocol;
b3076f16 9668else
9669 withval="p10"
a8b2ad8d 9670fi
9671
b3076f16 9672if test "x$withval" = "xp10" ; then
a8b2ad8d 9673 { echo "$as_me:$LINENO: result: P10" >&5
9674echo "${ECHO_T}P10" >&6; }
b3076f16 9675
9676cat >>confdefs.h <<\_ACEOF
9677#define WITH_PROTOCOL_P10 1
9678_ACEOF
9679
2f61d1d7 9680 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
b3076f16 9681 PROTO_FILES=proto-p10.c
5b1166fd 9682 x3_ircd="P10"
b3076f16 9683else
9684 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
9685echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
9686 { (exit 1); exit 1; }; }
9687fi
9688
8da89711 9689
9690# Check whether --with-getopt was given.
9691if test "${with_getopt+set}" = set; then
9692 withval=$with_getopt; if test "$withval" = no; then
9693
9694cat >>confdefs.h <<\_ACEOF
9695#define IGNORE_GETOPT 1
9696_ACEOF
9697
9698fi
9699fi
9700
9701
9702{ echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
9703echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
9704# Check whether --enable-tokens was given.
9705if test "${enable_tokens+set}" = set; then
9706 enableval=$enable_tokens;
9707else
9708 enableval=yes
9709fi
9710
9711if test "z$enableval" = zno ; then
9712 { echo "$as_me:$LINENO: result: no" >&5
9713echo "${ECHO_T}no" >&6; }
9714else
9715
9716cat >>confdefs.h <<\_ACEOF
9717#define ENABLE_TOKENS 1
9718_ACEOF
9719
9720 { echo "$as_me:$LINENO: result: yes" >&5
9721echo "${ECHO_T}yes" >&6; }
9722fi
9723
9724{ echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
9725echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
9726# Check whether --enable-debug was given.
9727if test "${enable_debug+set}" = set; then
9728 enableval=$enable_debug;
9729 CPPFLAGS="$CPPFLAGS"
e166c31b 9730 { echo "$as_me:$LINENO: result: yes" >&5
9731echo "${ECHO_T}yes" >&6; }
8da89711 9732 x3_debug="Enabled"
e166c31b 9733
9734else
9735
8da89711 9736 CPPFLAGS="$CPPFLAGS -DNDEBUG"
e166c31b 9737 { echo "$as_me:$LINENO: result: no" >&5
9738echo "${ECHO_T}no" >&6; }
8da89711 9739 x3_debug="Disabled"
e166c31b 9740
9741fi
9742
9743
8da89711 9744if test -e src ; then
9745 if test ! -d src ; then
9746 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
9747echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
9748 { (exit 1); exit 1; }; }
9749 fi
9750else
9751 mkdir src
9752fi
9753{ echo "$as_me:$LINENO: checking for extra module files" >&5
9754echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
9755MODULE_DEFINES="src/modules-list.h"
9756echo > $MODULE_DEFINES
9757touch $MODULE_DEFINES
9758# Check whether --enable-modules was given.
9759if test "${enable_modules+set}" = set; then
9760 enableval=$enable_modules;
9761 OIFS="$IFS"
9762 IFS=','
9763 EXTRA_MODULE_OBJS=""
9764 module_list=""
9765 for module in $enableval ; do
9766 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
9767 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
9768 module_list="$module_list $module"
9769 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
9770 if test "x$module" = "xtrack" ; then
9771 TRACK="-D HAVE_TRACK"
e166c31b 9772
9773cat >>confdefs.h <<\_ACEOF
8da89711 9774#define HAVE_TRACK 1
e166c31b 9775_ACEOF
9776
8da89711 9777 fi
9778 if test "x$module" = "xhelpserv" ; then
9779 TRACK="-D HAVE_HELPSERV"
e166c31b 9780
8da89711 9781cat >>confdefs.h <<\_ACEOF
9782#define HAVE_HELPSERV 1
e166c31b 9783_ACEOF
e166c31b 9784
8da89711 9785 fi
9786 done
9787 IFS="$OIFS"
9788 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
9789 { echo "$as_me:$LINENO: result: $module_list" >&5
9790echo "${ECHO_T}$module_list" >&6; }
9791
e166c31b 9792else
e166c31b 9793
8da89711 9794 { echo "$as_me:$LINENO: result: none" >&5
9795echo "${ECHO_T}none" >&6; }
e166c31b 9796
e166c31b 9797fi
e166c31b 9798
e166c31b 9799
8da89711 9800MY_SUBDIRS=""
9801RX_INCLUDES=""
9802RX_LIBS=""
9803if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9804 MY_SUBDIRS="rx $MY_SUBDIRS"
9805 RX_INCLUDES="-I../rx"
9806 RX_LIBS="../rx/librx.a"
9807fi
9808MY_SUBDIRS="$MY_SUBDIRS src"
9809CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9810if test "z$USE_MAINTAINER_MODE" = zyes ; then
9811 CFLAGS="$CFLAGS -Werror"
e166c31b 9812fi
9813
9814
8da89711 9815tre_version="0.7.5"
9816withval=''
9817
9818# Check whether --with-tre was given.
9819if test "${with_tre+set}" = set; then
9820 withval=$with_tre;
9821fi
9822
9823if test "x$withval" != "x"; then
9824 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9825echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
39edf54a 9826 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
8da89711 9827 LIBS="$LIBS -L$withval/lib"
9828else
9829 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9830echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
39edf54a 9831 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
8da89711 9832 LIBS="$LIBS -L${HOME}/lib"
9833fi
9834if test "${ac_cv_header_tre_regex_h+set}" = set; then
9835 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9836echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9837if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839fi
8da89711 9840{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9841echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9842else
9843 # Is the header compilable?
8da89711 9844{ echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9845echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
e166c31b 9846cat >conftest.$ac_ext <<_ACEOF
9847/* confdefs.h. */
9848_ACEOF
9849cat confdefs.h >>conftest.$ac_ext
9850cat >>conftest.$ac_ext <<_ACEOF
9851/* end confdefs.h. */
9852$ac_includes_default
8da89711 9853#include <tre/regex.h>
e166c31b 9854_ACEOF
9855rm -f conftest.$ac_objext
9856if { (ac_try="$ac_compile"
9857case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860esac
9861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_compile") 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9870 { (case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_try") 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest.$ac_objext'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_header_compiler=yes
9890else
9891 echo "$as_me: failed program was:" >&5
9892sed 's/^/| /' conftest.$ac_ext >&5
9893
9894 ac_header_compiler=no
9895fi
9896
9897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9899echo "${ECHO_T}$ac_header_compiler" >&6; }
9900
9901# Is the header present?
8da89711 9902{ echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9903echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
e166c31b 9904cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
8da89711 9910#include <tre/regex.h>
e166c31b 9911_ACEOF
9912if { (ac_try="$ac_cpp conftest.$ac_ext"
9913case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } >/dev/null; then
9925 if test -s conftest.err; then
9926 ac_cpp_err=$ac_c_preproc_warn_flag
9927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9928 else
9929 ac_cpp_err=
9930 fi
9931else
9932 ac_cpp_err=yes
9933fi
9934if test -z "$ac_cpp_err"; then
9935 ac_header_preproc=yes
9936else
9937 echo "$as_me: failed program was:" >&5
9938sed 's/^/| /' conftest.$ac_ext >&5
9939
9940 ac_header_preproc=no
9941fi
9942
9943rm -f conftest.err conftest.$ac_ext
9944{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9945echo "${ECHO_T}$ac_header_preproc" >&6; }
9946
9947# So? What about this header?
9948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9949 yes:no: )
8da89711 9950 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9951echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9953echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
e166c31b 9954 ac_header_preproc=yes
9955 ;;
9956 no:yes:* )
8da89711 9957 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9958echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9959 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9960echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9962echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9964echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9965 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9966echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9968echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
e166c31b 9969 ( cat <<\_ASBOX
9970## -------------------------------------------------- ##
9971## Report this to evilnet-devel@lists.sourceforge.net ##
9972## -------------------------------------------------- ##
9973_ASBOX
9974 ) | sed "s/^/$as_me: WARNING: /" >&2
9975 ;;
9976esac
8da89711 9977{ echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9978echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9979if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
8da89711 9982 ac_cv_header_tre_regex_h=$ac_header_preproc
e166c31b 9983fi
8da89711 9984{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9985echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9986
9987fi
8da89711 9988if test $ac_cv_header_tre_regex_h = yes; then
9989 :
e166c31b 9990else
8da89711 9991 { { echo "$as_me:$LINENO: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
9992echo "$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;}
e166c31b 9993 { (exit 1); exit 1; }; }
9994fi
9995
e166c31b 9996
b3076f16 9997
8da89711 9998{ echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9999echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
10000if test "${ac_cv_lib_tre_regexec+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 10002else
8da89711 10003 ac_check_lib_save_LIBS=$LIBS
10004LIBS="-ltre $LIBS"
10005cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
b3076f16 10007_ACEOF
8da89711 10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
b3076f16 10011
8da89711 10012/* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015#ifdef __cplusplus
10016extern "C"
10017#endif
10018char regexec ();
10019int
10020main ()
10021{
10022return regexec ();
10023 ;
10024 return 0;
10025}
10026_ACEOF
10027rm -f conftest.$ac_objext conftest$ac_exeext
10028if { (ac_try="$ac_link"
10029case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032esac
10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10042 { (case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045esac
10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_try") 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055esac
10056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_lib_tre_regexec=yes
b3076f16 10062else
8da89711 10063 echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10065
8da89711 10066 ac_cv_lib_tre_regexec=no
a8b2ad8d 10067fi
10068
8da89711 10069rm -f core conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
10071LIBS=$ac_check_lib_save_LIBS
b3076f16 10072fi
8da89711 10073{ echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
10074echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
10075if test $ac_cv_lib_tre_regexec = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077#define HAVE_LIBTRE 1
8de34abd 10078_ACEOF
10079
8da89711 10080 LIBS="-ltre $LIBS"
b3076f16 10081
10082else
8da89711 10083 { { echo "$as_me:$LINENO: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
10084echo "$as_me: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
10085 { (exit 1); exit 1; }; }
b3076f16 10086fi
10087
35305a49 10088
2784452e 10089core_version="1.1"
35305a49 10090withval=''
10091
8da89711 10092# Check whether --with-coredumper was given.
10093if test "${with_coredumper+set}" = set; then
10094 withval=$with_coredumper;
a8b2ad8d 10095fi
35305a49 10096
35305a49 10097if test "x$withval" != "x"; then
8da89711 10098 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
10099echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
39edf54a 10100 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
0754f993 10101 LIBS="$LIBS -L$withval/lib"
35305a49 10102else
8da89711 10103 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
10104echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
39edf54a 10105 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
2784452e 10106 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
35305a49 10107fi
8da89711 10108if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10109 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10110echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10111if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113fi
8da89711 10114{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10115echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
35305a49 10116else
10117 # Is the header compilable?
8da89711 10118{ echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
10119echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
35305a49 10120cat >conftest.$ac_ext <<_ACEOF
10121/* confdefs.h. */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h. */
10126$ac_includes_default
8da89711 10127#include <google/coredumper.h>
35305a49 10128_ACEOF
10129rm -f conftest.$ac_objext
a8b2ad8d 10130if { (ac_try="$ac_compile"
10131case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_compile") 2>conftest.er1
35305a49 10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
a8b2ad8d 10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
35305a49 10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157esac
10158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
35305a49 10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_header_compiler=yes
10164else
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
a8b2ad8d 10168 ac_header_compiler=no
35305a49 10169fi
a8b2ad8d 10170
10171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173echo "${ECHO_T}$ac_header_compiler" >&6; }
35305a49 10174
10175# Is the header present?
8da89711 10176{ echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
10177echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
35305a49 10178cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h. */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h. */
8da89711 10184#include <google/coredumper.h>
35305a49 10185_ACEOF
a8b2ad8d 10186if { (ac_try="$ac_cpp conftest.$ac_ext"
10187case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190esac
10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35305a49 10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } >/dev/null; then
10199 if test -s conftest.err; then
10200 ac_cpp_err=$ac_c_preproc_warn_flag
10201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10202 else
10203 ac_cpp_err=
10204 fi
10205else
10206 ac_cpp_err=yes
10207fi
10208if test -z "$ac_cpp_err"; then
10209 ac_header_preproc=yes
10210else
10211 echo "$as_me: failed program was:" >&5
10212sed 's/^/| /' conftest.$ac_ext >&5
10213
10214 ac_header_preproc=no
10215fi
a8b2ad8d 10216
35305a49 10217rm -f conftest.err conftest.$ac_ext
a8b2ad8d 10218{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10219echo "${ECHO_T}$ac_header_preproc" >&6; }
35305a49 10220
10221# So? What about this header?
10222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10223 yes:no: )
8da89711 10224 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
10225echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
10227echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
35305a49 10228 ac_header_preproc=yes
10229 ;;
10230 no:yes:* )
8da89711 10231 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
10232echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
10234echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
10236echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
10238echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
10240echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
10242echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 10243 ( cat <<\_ASBOX
35305a49 10244## -------------------------------------------------- ##
10245## Report this to evilnet-devel@lists.sourceforge.net ##
10246## -------------------------------------------------- ##
10247_ASBOX
a8b2ad8d 10248 ) | sed "s/^/$as_me: WARNING: /" >&2
35305a49 10249 ;;
10250esac
8da89711 10251{ echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10252echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10253if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255else
8da89711 10256 ac_cv_header_google_coredumper_h=$ac_header_preproc
10257fi
10258{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10259echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10260
10261fi
10262if test $ac_cv_header_google_coredumper_h = yes; then
10263 :
10264else
10265 { echo "$as_me:$LINENO: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
10266echo "${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; }
10267fi
10268
10269
10270
10271{ echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
10272echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
10273if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275else
10276 ac_check_lib_save_LIBS=$LIBS
10277LIBS="-lcoredumper $LIBS"
10278cat >conftest.$ac_ext <<_ACEOF
10279/* confdefs.h. */
10280_ACEOF
10281cat confdefs.h >>conftest.$ac_ext
10282cat >>conftest.$ac_ext <<_ACEOF
10283/* end confdefs.h. */
10284
10285/* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10288#ifdef __cplusplus
10289extern "C"
10290#endif
10291char WriteCoreDump ();
10292int
10293main ()
10294{
10295return WriteCoreDump ();
10296 ;
10297 return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
10301if { (ac_try="$ac_link"
10302case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305esac
10306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_link") 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10315 { (case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318esac
10319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_try") 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_lib_coredumper_WriteCoreDump=yes
10335else
10336 echo "$as_me: failed program was:" >&5
10337sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 ac_cv_lib_coredumper_WriteCoreDump=no
35305a49 10340fi
35305a49 10341
8da89711 10342rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344LIBS=$ac_check_lib_save_LIBS
35305a49 10345fi
8da89711 10346{ echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
10347echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
10348if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
10349 cat >>confdefs.h <<_ACEOF
10350#define HAVE_LIBCOREDUMPER 1
10351_ACEOF
10352
10353 LIBS="-lcoredumper $LIBS"
10354
35305a49 10355else
8da89711 10356 { echo "$as_me:$LINENO: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
10357echo "${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; }
35305a49 10358fi
10359
10360
73d4cc91 10361withval=''
10362
10363# Check whether --with-ssl was given.
10364if test "${with_ssl+set}" = set; then
10365 withval=$with_ssl;
10366fi
10367
10368if test "x$withval" != "x"; then
10369 { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5
10370echo "${ECHO_T}Using include dir $withval to find openssl" >&6; }
10371 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
10372 LIBS="$LIBS -L$withval/lib"
10373else
10374 { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5
10375echo "${ECHO_T}Looking for openssl in system " >&6; }
10376fi
10377
10378{ echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5
10379echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; }
10380if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382else
10383 ac_check_lib_save_LIBS=$LIBS
10384LIBS="-lssl $LIBS"
10385cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h. */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h. */
10391
10392/* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10395#ifdef __cplusplus
10396extern "C"
10397#endif
10398char BIO_new ();
10399int
10400main ()
10401{
10402return BIO_new ();
10403 ;
10404 return 0;
10405}
10406_ACEOF
10407rm -f conftest.$ac_objext conftest$ac_exeext
10408if { (ac_try="$ac_link"
10409case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10412esac
10413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; } &&
10431 { ac_try='test -s conftest$ac_exeext'
10432 { (case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435esac
10436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_try") 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_cv_lib_ssl_BIO_new=yes
10442else
10443 echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446 ac_cv_lib_ssl_BIO_new=no
10447fi
10448
10449rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451LIBS=$ac_check_lib_save_LIBS
10452fi
10453{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5
10454echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; }
10455if test $ac_cv_lib_ssl_BIO_new = yes; then
10456
10457LIBS="-lssl $LIBS"
10458
10459for ac_header in openssl/bio.h
10460do
10461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467fi
10468ac_res=`eval echo '${'$as_ac_Header'}'`
10469 { echo "$as_me:$LINENO: result: $ac_res" >&5
10470echo "${ECHO_T}$ac_res" >&6; }
10471else
10472 # Is the header compilable?
10473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10475cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h. */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h. */
10481$ac_includes_default
10482#include <$ac_header>
10483_ACEOF
10484rm -f conftest.$ac_objext
10485if { (ac_try="$ac_compile"
10486case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_compile") 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502esac
10503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } &&
10508 { ac_try='test -s conftest.$ac_objext'
10509 { (case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_try") 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_header_compiler=yes
10519else
10520 echo "$as_me: failed program was:" >&5
10521sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_header_compiler=no
10524fi
10525
10526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10528echo "${ECHO_T}$ac_header_compiler" >&6; }
10529
10530# Is the header present?
10531{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10533cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h. */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h. */
10539#include <$ac_header>
10540_ACEOF
10541if { (ac_try="$ac_cpp conftest.$ac_ext"
10542case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } >/dev/null; then
10554 if test -s conftest.err; then
10555 ac_cpp_err=$ac_c_preproc_warn_flag
10556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10557 else
10558 ac_cpp_err=
10559 fi
10560else
10561 ac_cpp_err=yes
10562fi
10563if test -z "$ac_cpp_err"; then
10564 ac_header_preproc=yes
10565else
10566 echo "$as_me: failed program was:" >&5
10567sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_header_preproc=no
10570fi
10571
10572rm -f conftest.err conftest.$ac_ext
10573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10574echo "${ECHO_T}$ac_header_preproc" >&6; }
10575
10576# So? What about this header?
10577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10578 yes:no: )
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10583 ac_header_preproc=yes
10584 ;;
10585 no:yes:* )
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10598 ( cat <<\_ASBOX
10599## -------------------------------------------------- ##
10600## Report this to evilnet-devel@lists.sourceforge.net ##
10601## -------------------------------------------------- ##
10602_ASBOX
10603 ) | sed "s/^/$as_me: WARNING: /" >&2
10604 ;;
10605esac
10606{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610else
10611 eval "$as_ac_Header=\$ac_header_preproc"
10612fi
10613ac_res=`eval echo '${'$as_ac_Header'}'`
10614 { echo "$as_me:$LINENO: result: $ac_res" >&5
10615echo "${ECHO_T}$ac_res" >&6; }
10616
10617fi
10618if test `eval echo '${'$as_ac_Header'}'` = yes; then
10619 cat >>confdefs.h <<_ACEOF
10620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10621_ACEOF
10622
10623
10624cat >>confdefs.h <<\_ACEOF
10625#define WITH_SSL 1
10626_ACEOF
10627
10628ssl_message="LDAP library: enabled"
10629
10630else
10631
10632if test "x$withval" != "x"; then
10633 { { echo "$as_me:$LINENO: error: ssl headers not found" >&5
10634echo "$as_me: error: ssl headers not found" >&2;}
10635 { (exit 1); exit 1; }; }
10636fi
10637
10638fi
10639
10640done
10641
10642
10643else
10644
10645if test "x$withval" != "x"; then
10646 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
10647echo "$as_me: error: libldap not found or not valid" >&2;}
10648 { (exit 1); exit 1; }; }
10649fi
10650
10651
10652fi
10653
10654{ echo "$as_me:$LINENO: result: $LIBS" >&5
10655echo "${ECHO_T}$LIBS" >&6; }
10656
10657
8da89711 10658withval=''
35305a49 10659
8da89711 10660# Check whether --with-ldap was given.
10661if test "${with_ldap+set}" = set; then
10662 withval=$with_ldap;
10663fi
10664
10665if test "x$withval" != "x"; then
10666 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
10667echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
10668 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
10669 LIBS="$LIBS -L$withval/lib"
10670else
10671 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
10672echo "${ECHO_T}Looking for ldap in system " >&6; }
10673fi
10674
39edf54a 10675{ echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
10676echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; }
10677if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
35305a49 10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679else
10680 ac_check_lib_save_LIBS=$LIBS
8da89711 10681LIBS="-lldap $LIBS"
35305a49 10682cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h. */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h. */
10688
a8b2ad8d 10689/* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
35305a49 10692#ifdef __cplusplus
10693extern "C"
10694#endif
39edf54a 10695char ldap_simple_bind_s ();
35305a49 10696int
10697main ()
10698{
39edf54a 10699return ldap_simple_bind_s ();
35305a49 10700 ;
10701 return 0;
10702}
10703_ACEOF
10704rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 10705if { (ac_try="$ac_link"
10706case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_link") 2>conftest.er1
35305a49 10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
a8b2ad8d 10718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 { (case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
10723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_try") 2>&5
35305a49 10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732esac
10733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
35305a49 10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
39edf54a 10738 ac_cv_lib_ldap_ldap_simple_bind_s=yes
5b1166fd 10739else
35305a49 10740 echo "$as_me: failed program was:" >&5
10741sed 's/^/| /' conftest.$ac_ext >&5
10742
39edf54a 10743 ac_cv_lib_ldap_ldap_simple_bind_s=no
35305a49 10744fi
a8b2ad8d 10745
10746rm -f core conftest.err conftest.$ac_objext \
35305a49 10747 conftest$ac_exeext conftest.$ac_ext
10748LIBS=$ac_check_lib_save_LIBS
5b1166fd 10749fi
39edf54a 10750{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
10751echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
10752if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
b3076f16 10753
39edf54a 10754LIBS="-lldap $LIBS"
b3076f16 10755
8da89711 10756for ac_header in ldap.h
10757do
10758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764fi
8da89711 10765ac_res=`eval echo '${'$as_ac_Header'}'`
10766 { echo "$as_me:$LINENO: result: $ac_res" >&5
10767echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 10768else
10769 # Is the header compilable?
8da89711 10770{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a8b2ad8d 10772cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778$ac_includes_default
8da89711 10779#include <$ac_header>
a8b2ad8d 10780_ACEOF
10781rm -f conftest.$ac_objext
10782if { (ac_try="$ac_compile"
10783case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
10787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796 { (case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799esac
10800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_try") 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest.$ac_objext'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_header_compiler=yes
10816else
10817 echo "$as_me: failed program was:" >&5
10818sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10819
a8b2ad8d 10820 ac_header_compiler=no
10821fi
b3076f16 10822
a8b2ad8d 10823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10825echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 10826
a8b2ad8d 10827# Is the header present?
8da89711 10828{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a8b2ad8d 10830cat >conftest.$ac_ext <<_ACEOF
10831/* confdefs.h. */
10832_ACEOF
10833cat confdefs.h >>conftest.$ac_ext
10834cat >>conftest.$ac_ext <<_ACEOF
10835/* end confdefs.h. */
8da89711 10836#include <$ac_header>
a8b2ad8d 10837_ACEOF
10838if { (ac_try="$ac_cpp conftest.$ac_ext"
10839case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842esac
10843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } >/dev/null; then
10851 if test -s conftest.err; then
10852 ac_cpp_err=$ac_c_preproc_warn_flag
10853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10854 else
10855 ac_cpp_err=
10856 fi
10857else
10858 ac_cpp_err=yes
10859fi
10860if test -z "$ac_cpp_err"; then
10861 ac_header_preproc=yes
10862else
10863 echo "$as_me: failed program was:" >&5
10864sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10865
a8b2ad8d 10866 ac_header_preproc=no
10867fi
ec311f39 10868
a8b2ad8d 10869rm -f conftest.err conftest.$ac_ext
10870{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 10872
a8b2ad8d 10873# So? What about this header?
10874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 yes:no: )
8da89711 10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
a8b2ad8d 10880 ac_header_preproc=yes
10881 ;;
10882 no:yes:* )
8da89711 10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 10895 ( cat <<\_ASBOX
10896## -------------------------------------------------- ##
10897## Report this to evilnet-devel@lists.sourceforge.net ##
10898## -------------------------------------------------- ##
10899_ASBOX
10900 ) | sed "s/^/$as_me: WARNING: /" >&2
10901 ;;
10902esac
8da89711 10903{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907else
8da89711 10908 eval "$as_ac_Header=\$ac_header_preproc"
a8b2ad8d 10909fi
8da89711 10910ac_res=`eval echo '${'$as_ac_Header'}'`
10911 { echo "$as_me:$LINENO: result: $ac_res" >&5
10912echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 10913
10914fi
8da89711 10915if test `eval echo '${'$as_ac_Header'}'` = yes; then
10916 cat >>confdefs.h <<_ACEOF
10917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10918_ACEOF
a8b2ad8d 10919
10920
8da89711 10921cat >>confdefs.h <<\_ACEOF
10922#define WITH_LDAP 1
a8b2ad8d 10923_ACEOF
a8b2ad8d 10924
8da89711 10925ldap_message="LDAP library: enabled"
10926
a8b2ad8d 10927else
a8b2ad8d 10928
db9a9a8a 10929if test "x$withval" != "x"; then
8da89711 10930 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
10931echo "$as_me: error: ldap.h not found" >&2;}
10932 { (exit 1); exit 1; }; }
a8b2ad8d 10933fi
10934
a8b2ad8d 10935fi
a8b2ad8d 10936
8da89711 10937done
10938
a8b2ad8d 10939
10940else
8da89711 10941
db9a9a8a 10942if test "x$withval" != "x"; then
8da89711 10943 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
10944echo "$as_me: error: libldap not found or not valid" >&2;}
10945 { (exit 1); exit 1; }; }
10946fi
10947
10948
a8b2ad8d 10949fi
10950
39edf54a 10951{ echo "$as_me:$LINENO: result: $LIBS" >&5
10952echo "${ECHO_T}$LIBS" >&6; }
a8b2ad8d 10953
10954
10955cat >>confdefs.h <<_ACEOF
10956#define CODENAME "${CODENAME}"
10957_ACEOF
10958
10959
10960
10961
10962
10963
10964ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10965
10966cat >confcache <<\_ACEOF
10967# This file is a shell script that caches the results of configure
10968# tests run on this system so they can be shared between configure
10969# scripts and configure runs, see configure's option --config-cache.
10970# It is not useful on other systems. If it contains results you don't
10971# want to keep, you may remove or edit it.
10972#
b3076f16 10973# config.status only pays attention to the cache file if you give it
10974# the --recheck option to rerun configure.
10975#
10976# `ac_cv_env_foo' variables (set or unset) will be overridden when
10977# loading this file, other *unset* `ac_cv_foo' will be assigned the
10978# following values.
10979
10980_ACEOF
10981
10982# The following way of writing the cache mishandles newlines in values,
10983# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 10984# So, we kill variables containing newlines.
b3076f16 10985# Ultrix sh set writes to stderr and can't be redirected directly,
10986# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 10987(
10988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10989 eval ac_val=\$$ac_var
10990 case $ac_val in #(
10991 *${as_nl}*)
10992 case $ac_var in #(
10993 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10994echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10995 esac
10996 case $ac_var in #(
10997 _ | IFS | as_nl) ;; #(
10998 *) $as_unset $ac_var ;;
10999 esac ;;
11000 esac
11001 done
11002
b3076f16 11003 (set) 2>&1 |
a8b2ad8d 11004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11005 *${as_nl}ac_space=\ *)
b3076f16 11006 # `set' does not quote correctly, so add quotes (double-quote
11007 # substitution turns \\\\ into \\, and sed turns \\ into \).
11008 sed -n \
11009 "s/'/'\\\\''/g;
11010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 11011 ;; #(
b3076f16 11012 *)
11013 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 11014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 11015 ;;
a8b2ad8d 11016 esac |
11017 sort
11018) |
b3076f16 11019 sed '
a8b2ad8d 11020 /^ac_cv_env_/b end
b3076f16 11021 t clear
a8b2ad8d 11022 :clear
b3076f16 11023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11024 t end
a8b2ad8d 11025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11026 :end' >>confcache
11027if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11028 if test -w "$cache_file"; then
11029 test "x$cache_file" != "x/dev/null" &&
11030 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11031echo "$as_me: updating cache $cache_file" >&6;}
b3076f16 11032 cat confcache >$cache_file
11033 else
a8b2ad8d 11034 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11035echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 11036 fi
11037fi
11038rm -f confcache
11039
11040test "x$prefix" = xNONE && prefix=$ac_default_prefix
11041# Let make expand exec_prefix.
11042test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11043
b3076f16 11044DEFS=-DHAVE_CONFIG_H
11045
11046ac_libobjs=
11047ac_ltlibobjs=
11048for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11049 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 11050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11051 ac_i=`echo "$ac_i" | sed "$ac_script"`
11052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11053 # will be set to the directory where LIBOBJS objects are built.
11054 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11055 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 11056done
11057LIBOBJS=$ac_libobjs
11058
11059LTLIBOBJS=$ac_ltlibobjs
11060
11061
ec1a68c8 11062if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11063 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11064Usually this means the macro was only invoked conditionally." >&5
11065echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11066Usually this means the macro was only invoked conditionally." >&2;}
11067 { (exit 1); exit 1; }; }
11068fi
11069if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11070 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11071Usually this means the macro was only invoked conditionally." >&5
11072echo "$as_me: error: conditional \"AMDEP\" was never defined.
11073Usually this means the macro was only invoked conditionally." >&2;}
11074 { (exit 1); exit 1; }; }
11075fi
11076if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11077 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11078Usually this means the macro was only invoked conditionally." >&5
11079echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11080Usually this means the macro was only invoked conditionally." >&2;}
11081 { (exit 1); exit 1; }; }
11082fi
11083if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11084 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11085Usually this means the macro was only invoked conditionally." >&5
11086echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11087Usually this means the macro was only invoked conditionally." >&2;}
11088 { (exit 1); exit 1; }; }
11089fi
b3076f16 11090
11091: ${CONFIG_STATUS=./config.status}
11092ac_clean_files_save=$ac_clean_files
11093ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11094{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11095echo "$as_me: creating $CONFIG_STATUS" >&6;}
11096cat >$CONFIG_STATUS <<_ACEOF
11097#! $SHELL
11098# Generated by $as_me.
11099# Run this file to recreate the current configuration.
11100# Compiler output produced by configure, useful for debugging
11101# configure, is in config.log if it exists.
11102
11103debug=false
11104ac_cs_recheck=false
11105ac_cs_silent=false
11106SHELL=\${CONFIG_SHELL-$SHELL}
11107_ACEOF
11108
11109cat >>$CONFIG_STATUS <<\_ACEOF
11110## --------------------- ##
11111## M4sh Initialization. ##
11112## --------------------- ##
11113
11114# Be Bourne compatible
11115if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11116 emulate sh
11117 NULLCMD=:
11118 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11119 # is contrary to our usage. Disable this feature.
11120 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 11121 setopt NO_GLOB_SUBST
11122else
11123 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
b3076f16 11124fi
a8b2ad8d 11125BIN_SH=xpg4; export BIN_SH # for Tru64
b3076f16 11126DUALCASE=1; export DUALCASE # for MKS sh
11127
a8b2ad8d 11128
11129# PATH needs CR
11130# Avoid depending upon Character Ranges.
11131as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11132as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11133as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11134as_cr_digits='0123456789'
11135as_cr_alnum=$as_cr_Letters$as_cr_digits
11136
11137# The user is always right.
11138if test "${PATH_SEPARATOR+set}" != set; then
11139 echo "#! /bin/sh" >conf$$.sh
11140 echo "exit 0" >>conf$$.sh
11141 chmod +x conf$$.sh
11142 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11143 PATH_SEPARATOR=';'
11144 else
11145 PATH_SEPARATOR=:
11146 fi
11147 rm -f conf$$.sh
11148fi
11149
b3076f16 11150# Support unset when possible.
11151if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11152 as_unset=unset
11153else
11154 as_unset=false
11155fi
11156
11157
a8b2ad8d 11158# IFS
11159# We need space, tab and new line, in precisely that order. Quoting is
11160# there to prevent editors from complaining about space-tab.
11161# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11162# splitting by setting IFS to empty value.)
11163as_nl='
11164'
11165IFS=" "" $as_nl"
11166
11167# Find who we are. Look in the path if we contain no directory separator.
11168case $0 in
11169 *[\\/]* ) as_myself=$0 ;;
11170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171for as_dir in $PATH
11172do
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11176done
11177IFS=$as_save_IFS
11178
11179 ;;
11180esac
11181# We did not find ourselves, most probably we were run as `sh COMMAND'
11182# in which case we are not to be found in the path.
11183if test "x$as_myself" = x; then
11184 as_myself=$0
11185fi
11186if test ! -f "$as_myself"; then
11187 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11188 { (exit 1); exit 1; }
11189fi
11190
b3076f16 11191# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 11192for as_var in ENV MAIL MAILPATH
11193do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11194done
b3076f16 11195PS1='$ '
11196PS2='> '
11197PS4='+ '
11198
11199# NLS nuisances.
11200for as_var in \
11201 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11202 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11203 LC_TELEPHONE LC_TIME
11204do
11205 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11206 eval $as_var=C; export $as_var
11207 else
a8b2ad8d 11208 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 11209 fi
11210done
11211
11212# Required to use basename.
a8b2ad8d 11213if expr a : '\(a\)' >/dev/null 2>&1 &&
11214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 11215 as_expr=expr
11216else
11217 as_expr=false
11218fi
11219
a8b2ad8d 11220if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 11221 as_basename=basename
11222else
11223 as_basename=false
11224fi
11225
11226
11227# Name of the executable.
a8b2ad8d 11228as_me=`$as_basename -- "$0" ||
b3076f16 11229$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11230 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 11231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11232echo X/"$0" |
a8b2ad8d 11233 sed '/^.*\/\([^/][^/]*\)\/*$/{
11234 s//\1/
11235 q
11236 }
11237 /^X\/\(\/\/\)$/{
11238 s//\1/
11239 q
11240 }
11241 /^X\/\(\/\).*/{
11242 s//\1/
11243 q
11244 }
11245 s/.*/./; q'`
b3076f16 11246
a8b2ad8d 11247# CDPATH.
11248$as_unset CDPATH
b3076f16 11249
11250
b3076f16 11251
b3076f16 11252 as_lineno_1=$LINENO
11253 as_lineno_2=$LINENO
b3076f16 11254 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 11255 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 11256
11257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11258 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 11259 # line-number line after each line using $LINENO; the second 'sed'
11260 # does the real work. The second script uses 'N' to pair each
11261 # line-number line with the line containing $LINENO, and appends
11262 # trailing '-' during substitution so that $LINENO is not a special
11263 # case at line end.
b3076f16 11264 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 11265 # scripts with optimization help from Paolo Bonzini. Blame Lee
11266 # E. McMahon (1931-1989) for sed's syntax. :-)
11267 sed -n '
11268 p
11269 /[$]LINENO/=
11270 ' <$as_myself |
b3076f16 11271 sed '
a8b2ad8d 11272 s/[$]LINENO.*/&-/
11273 t lineno
11274 b
11275 :lineno
b3076f16 11276 N
a8b2ad8d 11277 :loop
11278 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 11279 t loop
a8b2ad8d 11280 s/-\n.*//
b3076f16 11281 ' >$as_me.lineno &&
a8b2ad8d 11282 chmod +x "$as_me.lineno" ||
11283 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b3076f16 11284 { (exit 1); exit 1; }; }
11285
11286 # Don't try to exec as it changes $[0], causing all sort of problems
11287 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 11288 # original and so on. Autoconf is especially sensitive to this).
11289 . "./$as_me.lineno"
b3076f16 11290 # Exit status is that of the last command.
11291 exit
11292}
11293
11294
a8b2ad8d 11295if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11296 as_dirname=dirname
11297else
11298 as_dirname=false
11299fi
11300
11301ECHO_C= ECHO_N= ECHO_T=
11302case `echo -n x` in
11303-n*)
11304 case `echo 'x\c'` in
11305 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11306 *) ECHO_C='\c';;
11307 esac;;
11308*)
11309 ECHO_N='-n';;
b3076f16 11310esac
11311
a8b2ad8d 11312if expr a : '\(a\)' >/dev/null 2>&1 &&
11313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 11314 as_expr=expr
11315else
11316 as_expr=false
11317fi
11318
11319rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 11320if test -d conf$$.dir; then
11321 rm -f conf$$.dir/conf$$.file
11322else
11323 rm -f conf$$.dir
11324 mkdir conf$$.dir
11325fi
b3076f16 11326echo >conf$$.file
11327if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 11328 as_ln_s='ln -s'
11329 # ... but there are two gotchas:
11330 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11331 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11332 # In both cases, we have to default to `cp -p'.
11333 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 11334 as_ln_s='cp -p'
b3076f16 11335elif ln conf$$.file conf$$ 2>/dev/null; then
11336 as_ln_s=ln
11337else
11338 as_ln_s='cp -p'
11339fi
a8b2ad8d 11340rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11341rmdir conf$$.dir 2>/dev/null
b3076f16 11342
11343if mkdir -p . 2>/dev/null; then
11344 as_mkdir_p=:
11345else
11346 test -d ./-p && rmdir ./-p
11347 as_mkdir_p=false
11348fi
11349
a8b2ad8d 11350# Find out whether ``test -x'' works. Don't use a zero-byte file, as
11351# systems may use methods other than mode bits to determine executability.
11352cat >conf$$.file <<_ASEOF
11353#! /bin/sh
11354exit 0
11355_ASEOF
11356chmod +x conf$$.file
11357if test -x conf$$.file >/dev/null 2>&1; then
11358 as_executable_p="test -x"
11359else
11360 as_executable_p=:
11361fi
11362rm -f conf$$.file
b3076f16 11363
11364# Sed expression to map a string onto a valid CPP name.
11365as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11366
11367# Sed expression to map a string onto a valid variable name.
11368as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11369
11370
b3076f16 11371exec 6>&1
11372
a8b2ad8d 11373# Save the log message, to keep $[0] and so on meaningful, and to
b3076f16 11374# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 11375# values after options handling.
11376ac_log="
63c95a47 11377This file was extended by X3 $as_me 1.5, which was
a8b2ad8d 11378generated by GNU Autoconf 2.60. Invocation command line was
b3076f16 11379
11380 CONFIG_FILES = $CONFIG_FILES
11381 CONFIG_HEADERS = $CONFIG_HEADERS
11382 CONFIG_LINKS = $CONFIG_LINKS
11383 CONFIG_COMMANDS = $CONFIG_COMMANDS
11384 $ $0 $@
11385
a8b2ad8d 11386on `(hostname || uname -n) 2>/dev/null | sed 1q`
11387"
11388
b3076f16 11389_ACEOF
11390
a8b2ad8d 11391cat >>$CONFIG_STATUS <<_ACEOF
b3076f16 11392# Files that config.status was made for.
a8b2ad8d 11393config_files="$ac_config_files"
11394config_headers="$ac_config_headers"
11395config_commands="$ac_config_commands"
b3076f16 11396
a8b2ad8d 11397_ACEOF
b3076f16 11398
11399cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 11400ac_cs_usage="\
11401\`$as_me' instantiates files from templates according to the
11402current configuration.
11403
11404Usage: $0 [OPTIONS] [FILE]...
11405
11406 -h, --help print this help, then exit
11407 -V, --version print version number, then exit
11408 -q, --quiet do not print progress messages
11409 -d, --debug don't remove temporary files
11410 --recheck update $as_me by reconfiguring in the same conditions
11411 --file=FILE[:TEMPLATE]
11412 instantiate the configuration file FILE
11413 --header=FILE[:TEMPLATE]
11414 instantiate the configuration header FILE
11415
11416Configuration files:
11417$config_files
11418
11419Configuration headers:
11420$config_headers
11421
ec1a68c8 11422Configuration commands:
11423$config_commands
11424
b3076f16 11425Report bugs to <bug-autoconf@gnu.org>."
b3076f16 11426
a8b2ad8d 11427_ACEOF
b3076f16 11428cat >>$CONFIG_STATUS <<_ACEOF
11429ac_cs_version="\\
63c95a47 11430X3 config.status 1.5
a8b2ad8d 11431configured by $0, generated by GNU Autoconf 2.60,
11432 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 11433
a8b2ad8d 11434Copyright (C) 2006 Free Software Foundation, Inc.
b3076f16 11435This config.status script is free software; the Free Software Foundation
11436gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 11437
11438ac_pwd='$ac_pwd'
11439srcdir='$srcdir'
11440INSTALL='$INSTALL'
b3076f16 11441_ACEOF
11442
11443cat >>$CONFIG_STATUS <<\_ACEOF
11444# If no file are specified by the user, then we need to provide default
11445# value. By we need to know if files were specified by the user.
11446ac_need_defaults=:
11447while test $# != 0
11448do
11449 case $1 in
11450 --*=*)
a8b2ad8d 11451 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11452 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 11453 ac_shift=:
11454 ;;
a8b2ad8d 11455 *)
b3076f16 11456 ac_option=$1
11457 ac_optarg=$2
11458 ac_shift=shift
11459 ;;
b3076f16 11460 esac
11461
11462 case $ac_option in
11463 # Handling of the options.
b3076f16 11464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11465 ac_cs_recheck=: ;;
a8b2ad8d 11466 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11467 echo "$ac_cs_version"; exit ;;
11468 --debug | --debu | --deb | --de | --d | -d )
b3076f16 11469 debug=: ;;
11470 --file | --fil | --fi | --f )
11471 $ac_shift
11472 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11473 ac_need_defaults=false;;
11474 --header | --heade | --head | --hea )
11475 $ac_shift
11476 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11477 ac_need_defaults=false;;
a8b2ad8d 11478 --he | --h)
11479 # Conflict between --help and --header
11480 { echo "$as_me: error: ambiguous option: $1
11481Try \`$0 --help' for more information." >&2
11482 { (exit 1); exit 1; }; };;
11483 --help | --hel | -h )
11484 echo "$ac_cs_usage"; exit ;;
b3076f16 11485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11487 ac_cs_silent=: ;;
11488
11489 # This is an error.
a8b2ad8d 11490 -*) { echo "$as_me: error: unrecognized option: $1
11491Try \`$0 --help' for more information." >&2
b3076f16 11492 { (exit 1); exit 1; }; } ;;
11493
a8b2ad8d 11494 *) ac_config_targets="$ac_config_targets $1"
11495 ac_need_defaults=false ;;
b3076f16 11496
11497 esac
11498 shift
11499done
11500
11501ac_configure_extra_args=
11502
11503if $ac_cs_silent; then
11504 exec 6>/dev/null
11505 ac_configure_extra_args="$ac_configure_extra_args --silent"
11506fi
11507
11508_ACEOF
11509cat >>$CONFIG_STATUS <<_ACEOF
11510if \$ac_cs_recheck; then
a8b2ad8d 11511 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11512 CONFIG_SHELL=$SHELL
11513 export CONFIG_SHELL
11514 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b3076f16 11515fi
11516
11517_ACEOF
a8b2ad8d 11518cat >>$CONFIG_STATUS <<\_ACEOF
11519exec 5>>config.log
11520{
11521 echo
11522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11523## Running $as_me. ##
11524_ASBOX
11525 echo "$ac_log"
11526} >&5
b3076f16 11527
a8b2ad8d 11528_ACEOF
ec1a68c8 11529cat >>$CONFIG_STATUS <<_ACEOF
11530#
a8b2ad8d 11531# INIT-COMMANDS
ec1a68c8 11532#
ec1a68c8 11533AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11534
11535_ACEOF
b3076f16 11536
b3076f16 11537cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 11538
11539# Handling of arguments.
b3076f16 11540for ac_config_target in $ac_config_targets
11541do
a8b2ad8d 11542 case $ac_config_target in
11543 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11544 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11545 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11546 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
11547 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11548
b3076f16 11549 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11550echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11551 { (exit 1); exit 1; }; };;
11552 esac
11553done
11554
a8b2ad8d 11555
b3076f16 11556# If the user did not use the arguments to specify the items to instantiate,
11557# then the envvar interface is used. Set only those that are not.
11558# We use the long form for the default assignment because of an extremely
11559# bizarre bug on SunOS 4.1.3.
11560if $ac_need_defaults; then
11561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 11563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 11564fi
11565
11566# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 11567# simply because there is no reason against having it here, and in addition,
b3076f16 11568# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 11569# Hook for its removal unless debugging.
11570# Note that there is a small window in which the directory will not be cleaned:
11571# after its creation but before its name has been assigned to `$tmp'.
b3076f16 11572$debug ||
11573{
a8b2ad8d 11574 tmp=
11575 trap 'exit_status=$?
11576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11577' 0
b3076f16 11578 trap '{ (exit 1); exit 1; }' 1 2 13 15
11579}
b3076f16 11580# Create a (secure) tmp directory for tmp files.
11581
11582{
a8b2ad8d 11583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16 11584 test -n "$tmp" && test -d "$tmp"
11585} ||
11586{
a8b2ad8d 11587 tmp=./conf$$-$RANDOM
11588 (umask 077 && mkdir "$tmp")
b3076f16 11589} ||
11590{
11591 echo "$me: cannot create a temporary directory in ." >&2
11592 { (exit 1); exit 1; }
11593}
11594
b3076f16 11595#
a8b2ad8d 11596# Set up the sed scripts for CONFIG_FILES section.
b3076f16 11597#
11598
11599# No need to generate the scripts if there are no CONFIG_FILES.
11600# This happens for instance when ./config.status config.h
a8b2ad8d 11601if test -n "$CONFIG_FILES"; then
11602
11603_ACEOF
11604
11605
11606
11607ac_delim='%!_!# '
11608for ac_last_try in false false false false false :; do
11609 cat >conf$$subs.sed <<_ACEOF
11610SHELL!$SHELL$ac_delim
11611PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11612PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11613PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11614PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11615PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11616PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11617exec_prefix!$exec_prefix$ac_delim
11618prefix!$prefix$ac_delim
11619program_transform_name!$program_transform_name$ac_delim
11620bindir!$bindir$ac_delim
11621sbindir!$sbindir$ac_delim
11622libexecdir!$libexecdir$ac_delim
11623datarootdir!$datarootdir$ac_delim
11624datadir!$datadir$ac_delim
11625sysconfdir!$sysconfdir$ac_delim
11626sharedstatedir!$sharedstatedir$ac_delim
11627localstatedir!$localstatedir$ac_delim
11628includedir!$includedir$ac_delim
11629oldincludedir!$oldincludedir$ac_delim
11630docdir!$docdir$ac_delim
11631infodir!$infodir$ac_delim
11632htmldir!$htmldir$ac_delim
11633dvidir!$dvidir$ac_delim
11634pdfdir!$pdfdir$ac_delim
11635psdir!$psdir$ac_delim
11636libdir!$libdir$ac_delim
11637localedir!$localedir$ac_delim
11638mandir!$mandir$ac_delim
11639DEFS!$DEFS$ac_delim
11640ECHO_C!$ECHO_C$ac_delim
11641ECHO_N!$ECHO_N$ac_delim
11642ECHO_T!$ECHO_T$ac_delim
11643LIBS!$LIBS$ac_delim
11644build_alias!$build_alias$ac_delim
11645host_alias!$host_alias$ac_delim
11646target_alias!$target_alias$ac_delim
11647build!$build$ac_delim
11648build_cpu!$build_cpu$ac_delim
11649build_vendor!$build_vendor$ac_delim
11650build_os!$build_os$ac_delim
11651host!$host$ac_delim
11652host_cpu!$host_cpu$ac_delim
11653host_vendor!$host_vendor$ac_delim
11654host_os!$host_os$ac_delim
11655target!$target$ac_delim
11656target_cpu!$target_cpu$ac_delim
11657target_vendor!$target_vendor$ac_delim
11658target_os!$target_os$ac_delim
11659INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11660INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11661INSTALL_DATA!$INSTALL_DATA$ac_delim
11662CYGPATH_W!$CYGPATH_W$ac_delim
11663PACKAGE!$PACKAGE$ac_delim
11664VERSION!$VERSION$ac_delim
11665ACLOCAL!$ACLOCAL$ac_delim
11666AUTOCONF!$AUTOCONF$ac_delim
11667AUTOMAKE!$AUTOMAKE$ac_delim
11668AUTOHEADER!$AUTOHEADER$ac_delim
11669MAKEINFO!$MAKEINFO$ac_delim
11670install_sh!$install_sh$ac_delim
11671STRIP!$STRIP$ac_delim
11672INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11673mkdir_p!$mkdir_p$ac_delim
11674AWK!$AWK$ac_delim
11675SET_MAKE!$SET_MAKE$ac_delim
11676am__leading_dot!$am__leading_dot$ac_delim
11677AMTAR!$AMTAR$ac_delim
11678am__tar!$am__tar$ac_delim
11679am__untar!$am__untar$ac_delim
11680MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11681MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11682MAINT!$MAINT$ac_delim
11683CC!$CC$ac_delim
11684CFLAGS!$CFLAGS$ac_delim
11685LDFLAGS!$LDFLAGS$ac_delim
11686CPPFLAGS!$CPPFLAGS$ac_delim
11687ac_ct_CC!$ac_ct_CC$ac_delim
11688EXEEXT!$EXEEXT$ac_delim
11689OBJEXT!$OBJEXT$ac_delim
11690DEPDIR!$DEPDIR$ac_delim
11691am__include!$am__include$ac_delim
11692am__quote!$am__quote$ac_delim
11693AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11694AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11695AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11696CCDEPMODE!$CCDEPMODE$ac_delim
11697am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11698am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11699RANLIB!$RANLIB$ac_delim
11700LN_S!$LN_S$ac_delim
11701CPP!$CPP$ac_delim
11702GREP!$GREP$ac_delim
11703EGREP!$EGREP$ac_delim
11704MAKER!$MAKER$ac_delim
11705ALLOCA!$ALLOCA$ac_delim
11706MODULE_OBJS!$MODULE_OBJS$ac_delim
11707_ACEOF
11708
11709 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11710 break
11711 elif $ac_last_try; then
11712 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11713echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11714 { (exit 1); exit 1; }; }
11715 else
11716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b3076f16 11717 fi
a8b2ad8d 11718done
b3076f16 11719
a8b2ad8d 11720ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11721if test -n "$ac_eof"; then
11722 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11723 ac_eof=`expr $ac_eof + 1`
11724fi
11725
11726cat >>$CONFIG_STATUS <<_ACEOF
11727cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11728/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b3076f16 11729_ACEOF
a8b2ad8d 11730sed '
11731s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11732s/^/s,@/; s/!/@,|#_!!_#|/
11733:n
11734t n
11735s/'"$ac_delim"'$/,g/; t
11736s/$/\\/; p
11737N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11738' >>$CONFIG_STATUS <conf$$subs.sed
11739rm -f conf$$subs.sed
11740cat >>$CONFIG_STATUS <<_ACEOF
11741CEOF$ac_eof
11742_ACEOF
11743
11744
11745ac_delim='%!_!# '
11746for ac_last_try in false false false false false :; do
11747 cat >conf$$subs.sed <<_ACEOF
11748MY_SUBDIRS!$MY_SUBDIRS$ac_delim
11749RX_INCLUDES!$RX_INCLUDES$ac_delim
11750RX_LIBS!$RX_LIBS$ac_delim
11751TRACK!$TRACK$ac_delim
11752LIBOBJS!$LIBOBJS$ac_delim
11753LTLIBOBJS!$LTLIBOBJS$ac_delim
11754_ACEOF
11755
11756 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
11757 break
11758 elif $ac_last_try; then
11759 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11760echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11761 { (exit 1); exit 1; }; }
11762 else
11763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11764 fi
11765done
11766
11767ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11768if test -n "$ac_eof"; then
11769 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11770 ac_eof=`expr $ac_eof + 1`
11771fi
11772
11773cat >>$CONFIG_STATUS <<_ACEOF
11774cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11775/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11776_ACEOF
11777sed '
11778s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11779s/^/s,@/; s/!/@,|#_!!_#|/
11780:n
11781t n
11782s/'"$ac_delim"'$/,g/; t
11783s/$/\\/; p
11784N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11785' >>$CONFIG_STATUS <conf$$subs.sed
11786rm -f conf$$subs.sed
11787cat >>$CONFIG_STATUS <<_ACEOF
11788:end
11789s/|#_!!_#|//g
11790CEOF$ac_eof
11791_ACEOF
11792
11793
11794# VPATH may cause trouble with some makes, so we remove $(srcdir),
11795# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11796# trailing colons and then remove the whole line if VPATH becomes empty
11797# (actually we leave an empty line to preserve line numbers).
11798if test "x$srcdir" = x.; then
11799 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11800s/:*\$(srcdir):*/:/
11801s/:*\${srcdir}:*/:/
11802s/:*@srcdir@:*/:/
11803s/^\([^=]*=[ ]*\):*/\1/
11804s/:*$//
11805s/^[^=]*=[ ]*$//
11806}'
11807fi
11808
b3076f16 11809cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 11810fi # test -n "$CONFIG_FILES"
11811
11812
11813for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11814do
11815 case $ac_tag in
11816 :[FHLC]) ac_mode=$ac_tag; continue;;
11817 esac
11818 case $ac_mode$ac_tag in
11819 :[FHL]*:*);;
11820 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11821echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11822 { (exit 1); exit 1; }; };;
11823 :[FH]-) ac_tag=-:-;;
11824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11825 esac
11826 ac_save_IFS=$IFS
11827 IFS=:
11828 set x $ac_tag
11829 IFS=$ac_save_IFS
11830 shift
11831 ac_file=$1
11832 shift
11833
11834 case $ac_mode in
11835 :L) ac_source=$1;;
11836 :[FH])
11837 ac_file_inputs=
11838 for ac_f
11839 do
11840 case $ac_f in
11841 -) ac_f="$tmp/stdin";;
11842 *) # Look for the file first in the build tree, then in the source tree
11843 # (if the path is not absolute). The absolute path cannot be DOS-style,
11844 # because $ac_f cannot contain `:'.
11845 test -f "$ac_f" ||
11846 case $ac_f in
11847 [\\/$]*) false;;
11848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11849 esac ||
11850 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11851echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11852 { (exit 1); exit 1; }; };;
11853 esac
11854 ac_file_inputs="$ac_file_inputs $ac_f"
11855 done
11856
11857 # Let's still pretend it is `configure' which instantiates (i.e., don't
11858 # use $as_me), people would be surprised to read:
11859 # /* config.h. Generated by config.status. */
11860 configure_input="Generated from "`IFS=:
11861 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11862 if test x"$ac_file" != x-; then
11863 configure_input="$ac_file. $configure_input"
11864 { echo "$as_me:$LINENO: creating $ac_file" >&5
11865echo "$as_me: creating $ac_file" >&6;}
11866 fi
11867
11868 case $ac_tag in
11869 *:-:* | *:-) cat >"$tmp/stdin";;
11870 esac
11871 ;;
b3076f16 11872 esac
11873
a8b2ad8d 11874 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 11875$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11876 X"$ac_file" : 'X\(//\)[^/]' \| \
11877 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 11878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11879echo X"$ac_file" |
a8b2ad8d 11880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11881 s//\1/
11882 q
11883 }
11884 /^X\(\/\/\)[^/].*/{
11885 s//\1/
11886 q
11887 }
11888 /^X\(\/\/\)$/{
11889 s//\1/
11890 q
11891 }
11892 /^X\(\/\).*/{
11893 s//\1/
11894 q
11895 }
11896 s/.*/./; q'`
11897 { as_dir="$ac_dir"
11898 case $as_dir in #(
11899 -*) as_dir=./$as_dir;;
11900 esac
11901 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b3076f16 11902 as_dirs=
a8b2ad8d 11903 while :; do
11904 case $as_dir in #(
11905 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11906 *) as_qdir=$as_dir;;
11907 esac
11908 as_dirs="'$as_qdir' $as_dirs"
11909 as_dir=`$as_dirname -- "$as_dir" ||
b3076f16 11910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11911 X"$as_dir" : 'X\(//\)[^/]' \| \
11912 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11913 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11914echo X"$as_dir" |
a8b2ad8d 11915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11916 s//\1/
11917 q
11918 }
11919 /^X\(\/\/\)[^/].*/{
11920 s//\1/
11921 q
11922 }
11923 /^X\(\/\/\)$/{
11924 s//\1/
11925 q
11926 }
11927 /^X\(\/\).*/{
11928 s//\1/
11929 q
11930 }
11931 s/.*/./; q'`
11932 test -d "$as_dir" && break
b3076f16 11933 done
a8b2ad8d 11934 test -z "$as_dirs" || eval "mkdir $as_dirs"
11935 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11936echo "$as_me: error: cannot create directory $as_dir" >&2;}
b3076f16 11937 { (exit 1); exit 1; }; }; }
b3076f16 11938 ac_builddir=.
11939
a8b2ad8d 11940case "$ac_dir" in
11941.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11942*)
b3076f16 11943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 11944 # A ".." for each directory in $ac_dir_suffix.
11945 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11946 case $ac_top_builddir_sub in
11947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11949 esac ;;
11950esac
11951ac_abs_top_builddir=$ac_pwd
11952ac_abs_builddir=$ac_pwd$ac_dir_suffix
11953# for backward compatibility:
11954ac_top_builddir=$ac_top_build_prefix
b3076f16 11955
11956case $srcdir in
a8b2ad8d 11957 .) # We are building in place.
b3076f16 11958 ac_srcdir=.
a8b2ad8d 11959 ac_top_srcdir=$ac_top_builddir_sub
11960 ac_abs_top_srcdir=$ac_pwd ;;
11961 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 11962 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 11963 ac_top_srcdir=$srcdir
11964 ac_abs_top_srcdir=$srcdir ;;
11965 *) # Relative name.
11966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11967 ac_top_srcdir=$ac_top_build_prefix$srcdir
11968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 11969esac
a8b2ad8d 11970ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 11971
b3076f16 11972
a8b2ad8d 11973 case $ac_mode in
11974 :F)
11975 #
11976 # CONFIG_FILE
11977 #
b3076f16 11978
11979 case $INSTALL in
11980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 11981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 11982 esac
a8b2ad8d 11983_ACEOF
b3076f16 11984
a8b2ad8d 11985cat >>$CONFIG_STATUS <<\_ACEOF
11986# If the template does not know about datarootdir, expand it.
11987# FIXME: This hack should be removed a few years after 2.60.
11988ac_datarootdir_hack=; ac_datarootdir_seen=
b8cb2a14 11989
a8b2ad8d 11990case `sed -n '/datarootdir/ {
11991 p
11992 q
11993}
11994/@datadir@/p
11995/@docdir@/p
11996/@infodir@/p
11997/@localedir@/p
11998/@mandir@/p
11999' $ac_file_inputs` in
12000*datarootdir*) ac_datarootdir_seen=yes;;
12001*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12002 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12003echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12004_ACEOF
12005cat >>$CONFIG_STATUS <<_ACEOF
12006 ac_datarootdir_hack='
12007 s&@datadir@&$datadir&g
12008 s&@docdir@&$docdir&g
12009 s&@infodir@&$infodir&g
12010 s&@localedir@&$localedir&g
12011 s&@mandir@&$mandir&g
12012 s&\\\${datarootdir}&$datarootdir&g' ;;
12013esac
b3076f16 12014_ACEOF
a8b2ad8d 12015
12016# Neutralize VPATH when `$srcdir' = `.'.
12017# Shell code in configure.ac might set extrasub.
12018# FIXME: do we really want to maintain this feature?
b3076f16 12019cat >>$CONFIG_STATUS <<_ACEOF
12020 sed "$ac_vpsub
12021$extrasub
12022_ACEOF
12023cat >>$CONFIG_STATUS <<\_ACEOF
12024:t
12025/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a8b2ad8d 12026s&@configure_input@&$configure_input&;t t
12027s&@top_builddir@&$ac_top_builddir_sub&;t t
12028s&@srcdir@&$ac_srcdir&;t t
12029s&@abs_srcdir@&$ac_abs_srcdir&;t t
12030s&@top_srcdir@&$ac_top_srcdir&;t t
12031s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12032s&@builddir@&$ac_builddir&;t t
12033s&@abs_builddir@&$ac_abs_builddir&;t t
12034s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12035s&@INSTALL@&$ac_INSTALL&;t t
12036$ac_datarootdir_hack
12037" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12038
12039test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12040 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12041 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12042 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12043which seems to be undefined. Please make sure it is defined." >&5
12044echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12045which seems to be undefined. Please make sure it is defined." >&2;}
12046
12047 rm -f "$tmp/stdin"
b3076f16 12048 case $ac_file in
a8b2ad8d 12049 -) cat "$tmp/out"; rm -f "$tmp/out";;
12050 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
b3076f16 12051 esac
a8b2ad8d 12052 ;;
12053 :H)
12054 #
12055 # CONFIG_HEADER
12056 #
12057_ACEOF
12058
12059# Transform confdefs.h into a sed script `conftest.defines', that
12060# substitutes the proper values into config.h.in to produce config.h.
12061rm -f conftest.defines conftest.tail
12062# First, append a space to every undef/define line, to ease matching.
12063echo 's/$/ /' >conftest.defines
12064# Then, protect against being on the right side of a sed subst, or in
12065# an unquoted here document, in config.status. If some macros were
12066# called several times there might be several #defines for the same
12067# symbol, which is useless. But do not sort them, since the last
12068# AC_DEFINE must be honored.
12069ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12070# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12071# NAME is the cpp macro being defined, VALUE is the value it is being given.
12072# PARAMS is the parameter list in the macro definition--in most cases, it's
12073# just an empty string.
12074ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12075ac_dB='\\)[ (].*,\\1define\\2'
12076ac_dC=' '
12077ac_dD=' ,'
12078
12079uniq confdefs.h |
12080 sed -n '
12081 t rset
12082 :rset
12083 s/^[ ]*#[ ]*define[ ][ ]*//
12084 t ok
12085 d
12086 :ok
12087 s/[\\&,]/\\&/g
12088 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12089 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12090 ' >>conftest.defines
12091
12092# Remove the space that was appended to ease matching.
12093# Then replace #undef with comments. This is necessary, for
b3076f16 12094# example, in the case of _POSIX_SOURCE, which is predefined and required
12095# on some systems where configure will not decide to define it.
a8b2ad8d 12096# (The regexp can be short, since the line contains either #define or #undef.)
12097echo 's/ $//
12098s,^[ #]*u.*,/* & */,' >>conftest.defines
12099
12100# Break up conftest.defines:
12101ac_max_sed_lines=50
12102
12103# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12104# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12105# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12106# et cetera.
12107ac_in='$ac_file_inputs'
12108ac_out='"$tmp/out1"'
12109ac_nxt='"$tmp/out2"'
12110
12111while :
b3076f16 12112do
a8b2ad8d 12113 # Write a here document:
12114 cat >>$CONFIG_STATUS <<_ACEOF
12115 # First, check the format of the line:
12116 cat >"\$tmp/defines.sed" <<\\CEOF
12117/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12118/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12119b
12120:def
12121_ACEOF
12122 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
b3076f16 12123 echo 'CEOF
a8b2ad8d 12124 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12125 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12126 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12127 grep . conftest.tail >/dev/null || break
b3076f16 12128 rm -f conftest.defines
12129 mv conftest.tail conftest.defines
12130done
a8b2ad8d 12131rm -f conftest.defines conftest.tail
b3076f16 12132
a8b2ad8d 12133echo "ac_result=$ac_in" >>$CONFIG_STATUS
b3076f16 12134cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 12135 if test x"$ac_file" != x-; then
a8b2ad8d 12136 echo "/* $configure_input */" >"$tmp/config.h"
12137 cat "$ac_result" >>"$tmp/config.h"
12138 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
b3076f16 12139 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12140echo "$as_me: $ac_file is unchanged" >&6;}
12141 else
b3076f16 12142 rm -f $ac_file
a8b2ad8d 12143 mv "$tmp/config.h" $ac_file
b3076f16 12144 fi
12145 else
a8b2ad8d 12146 echo "/* $configure_input */"
12147 cat "$ac_result"
b3076f16 12148 fi
a8b2ad8d 12149 rm -f "$tmp/out12"
ec1a68c8 12150# Compute $ac_file's index in $config_headers.
12151_am_stamp_count=1
12152for _am_header in $config_headers :; do
12153 case $_am_header in
12154 $ac_file | $ac_file:* )
12155 break ;;
12156 * )
12157 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12158 esac
12159done
a8b2ad8d 12160echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
ec1a68c8 12161$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12162 X$ac_file : 'X\(//\)[^/]' \| \
12163 X$ac_file : 'X\(//\)$' \| \
a8b2ad8d 12164 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 12165echo X$ac_file |
a8b2ad8d 12166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12167 s//\1/
12168 q
12169 }
12170 /^X\(\/\/\)[^/].*/{
12171 s//\1/
12172 q
12173 }
12174 /^X\(\/\/\)$/{
12175 s//\1/
12176 q
12177 }
12178 /^X\(\/\).*/{
12179 s//\1/
12180 q
12181 }
12182 s/.*/./; q'`/stamp-h$_am_stamp_count
12183 ;;
ec1a68c8 12184
a8b2ad8d 12185 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12186echo "$as_me: executing $ac_file commands" >&6;}
12187 ;;
12188 esac
ec1a68c8 12189
12190
a8b2ad8d 12191 case $ac_file$ac_mode in
12192 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
ec1a68c8 12193 # Strip MF so we end up with the name of the file.
12194 mf=`echo "$mf" | sed -e 's/:.*$//'`
12195 # Check whether this is an Automake generated Makefile or not.
12196 # We used to match only the files named `Makefile.in', but
12197 # some people rename them; so instead we look at the file content.
12198 # Grep'ing the first line is not enough: some people post-process
12199 # each Makefile.in and add a new line on top of each file to say so.
12200 # So let's grep whole file.
12201 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
a8b2ad8d 12202 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 12203$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12204 X"$mf" : 'X\(//\)[^/]' \| \
12205 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 12206 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 12207echo X"$mf" |
a8b2ad8d 12208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12209 s//\1/
12210 q
12211 }
12212 /^X\(\/\/\)[^/].*/{
12213 s//\1/
12214 q
12215 }
12216 /^X\(\/\/\)$/{
12217 s//\1/
12218 q
12219 }
12220 /^X\(\/\).*/{
12221 s//\1/
12222 q
12223 }
12224 s/.*/./; q'`
ec1a68c8 12225 else
12226 continue
12227 fi
12228 # Extract the definition of DEPDIR, am__include, and am__quote
12229 # from the Makefile without running `make'.
12230 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12231 test -z "$DEPDIR" && continue
12232 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12233 test -z "am__include" && continue
12234 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12235 # When using ansi2knr, U may be empty or an underscore; expand it
12236 U=`sed -n 's/^U = //p' < "$mf"`
12237 # Find all dependency output files, they are included files with
12238 # $(DEPDIR) in their names. We invoke sed twice because it is the
12239 # simplest approach to changing $(DEPDIR) to its actual value in the
12240 # expansion.
12241 for file in `sed -n "
12242 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12243 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12244 # Make sure the directory exists.
12245 test -f "$dirpart/$file" && continue
a8b2ad8d 12246 fdir=`$as_dirname -- "$file" ||
ec1a68c8 12247$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12248 X"$file" : 'X\(//\)[^/]' \| \
12249 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 12250 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 12251echo X"$file" |
a8b2ad8d 12252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12253 s//\1/
12254 q
12255 }
12256 /^X\(\/\/\)[^/].*/{
12257 s//\1/
12258 q
12259 }
12260 /^X\(\/\/\)$/{
12261 s//\1/
12262 q
12263 }
12264 /^X\(\/\).*/{
12265 s//\1/
12266 q
12267 }
12268 s/.*/./; q'`
12269 { as_dir=$dirpart/$fdir
12270 case $as_dir in #(
12271 -*) as_dir=./$as_dir;;
12272 esac
12273 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ec1a68c8 12274 as_dirs=
a8b2ad8d 12275 while :; do
12276 case $as_dir in #(
12277 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12278 *) as_qdir=$as_dir;;
12279 esac
12280 as_dirs="'$as_qdir' $as_dirs"
12281 as_dir=`$as_dirname -- "$as_dir" ||
ec1a68c8 12282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12283 X"$as_dir" : 'X\(//\)[^/]' \| \
12284 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 12285 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 12286echo X"$as_dir" |
a8b2ad8d 12287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12288 s//\1/
12289 q
12290 }
12291 /^X\(\/\/\)[^/].*/{
12292 s//\1/
12293 q
12294 }
12295 /^X\(\/\/\)$/{
12296 s//\1/
12297 q
12298 }
12299 /^X\(\/\).*/{
12300 s//\1/
12301 q
12302 }
12303 s/.*/./; q'`
12304 test -d "$as_dir" && break
ec1a68c8 12305 done
a8b2ad8d 12306 test -z "$as_dirs" || eval "mkdir $as_dirs"
12307 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12308echo "$as_me: error: cannot create directory $as_dir" >&2;}
ec1a68c8 12309 { (exit 1); exit 1; }; }; }
ec1a68c8 12310 # echo "creating $dirpart/$file"
12311 echo '# dummy' > "$dirpart/$file"
12312 done
12313done
12314 ;;
a8b2ad8d 12315
ec1a68c8 12316 esac
a8b2ad8d 12317done # for ac_tag
b3076f16 12318
b3076f16 12319
12320{ (exit 0); exit 0; }
12321_ACEOF
12322chmod +x $CONFIG_STATUS
12323ac_clean_files=$ac_clean_files_save
12324
12325
12326# configure is writing to config.log, and then calls config.status.
12327# config.status does its own redirection, appending to config.log.
12328# Unfortunately, on DOS this fails, as config.log is still kept open
12329# by configure, so config.status won't be able to write to it; its
12330# output is simply discarded. So we exec the FD to /dev/null,
12331# effectively closing config.log, so it can be properly (re)opened and
12332# appended to by config.status. When coming back to configure, we
12333# need to make the FD available again.
12334if test "$no_create" != yes; then
12335 ac_cs_success=:
12336 ac_config_status_args=
12337 test "$silent" = yes &&
12338 ac_config_status_args="$ac_config_status_args --quiet"
12339 exec 5>/dev/null
12340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12341 exec 5>>config.log
12342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12343 # would make configure fail if this is the last instruction.
12344 $ac_cs_success || { (exit 1); exit 1; }
12345fi
12346
5b1166fd 12347
12348
12349
12350cat <<EOF
12351
12352Configuration summary
12353=====================
12354
12355X3 is now configured as follows:
12356
12357* Compilation environment
12358
12359 CC = $CC
12360 CFLAGS = $CFLAGS
12361 CPP = $CPP
12362 CPPFLAGS = $CPPFLAGS
12363 LD = $LD
12364 LDFLAGS = $LDFLAGS
12365 LIBS = $LIBS
12366
12367* X3 options
12368
a8b2ad8d 12369 Debug: $x3_debug
12370 Extra Modules: $module_list
12371 Malloc: $x3_malloc
12372 Protocol: $x3_ircd
12373 Regexp Library TRE $tre_version
12374 Coredumper Library Coredumper $core_version
8da89711 12375 $ldap_message
5b1166fd 12376
a8b2ad8d 12377 Install to: $prefix
35305a49 12378
5b1166fd 12379Now you can proceed with compiling X3
12380
12381EOF
12382