]> jfr.im git - irc/evilnet/x3.git/blame - configure
full support for marks
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
d82cf2f0 2# From configure.in Id: configure.in 1829 2006-12-12 10:50:48Z sirvulcan .
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.
b3076f16 1318
1319Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
a8b2ad8d 1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
b3076f16 1326 CPP C preprocessor
1327
1328Use these variables to override the choices made by `configure' or to help
1329it to find libraries and programs with nonstandard names/locations.
1330
63c95a47 1331Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1332_ACEOF
a8b2ad8d 1333ac_status=$?
b3076f16 1334fi
1335
1336if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
b3076f16 1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a8b2ad8d 1339 test -d "$ac_dir" || continue
b3076f16 1340 ac_builddir=.
1341
a8b2ad8d 1342case "$ac_dir" in
1343.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344*)
b3076f16 1345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 esac ;;
1352esac
1353ac_abs_top_builddir=$ac_pwd
1354ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355# for backward compatibility:
1356ac_top_builddir=$ac_top_build_prefix
b3076f16 1357
1358case $srcdir in
a8b2ad8d 1359 .) # We are building in place.
b3076f16 1360 ac_srcdir=.
a8b2ad8d 1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1364 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1367 *) # Relative name.
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1371esac
a8b2ad8d 1372ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1377 echo &&
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1382 else
1383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1384 fi || ac_status=$?
1385 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1386 done
1387fi
1388
a8b2ad8d 1389test -n "$ac_init_help" && exit $ac_status
b3076f16 1390if $ac_init_version; then
1391 cat <<\_ACEOF
63c95a47 1392X3 configure 1.5
a8b2ad8d 1393generated by GNU Autoconf 2.60
b3076f16 1394
a8b2ad8d 1395Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13962002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 1397This configure script is free software; the Free Software Foundation
1398gives unlimited permission to copy, distribute and modify it.
1399_ACEOF
a8b2ad8d 1400 exit
b3076f16 1401fi
a8b2ad8d 1402cat >config.log <<_ACEOF
b3076f16 1403This file contains any messages produced by compilers while
1404running configure, to aid debugging if configure makes a mistake.
1405
63c95a47 1406It was created by X3 $as_me 1.5, which was
a8b2ad8d 1407generated by GNU Autoconf 2.60. Invocation command line was
b3076f16 1408
1409 $ $0 $@
1410
1411_ACEOF
a8b2ad8d 1412exec 5>>config.log
b3076f16 1413{
1414cat <<_ASUNAME
1415## --------- ##
1416## Platform. ##
1417## --------- ##
1418
1419hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423uname -v = `(uname -v) 2>/dev/null || echo unknown`
1424
1425/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1427
1428/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
a8b2ad8d 1431/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b3076f16 1432/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1435
1436_ASUNAME
1437
1438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439for as_dir in $PATH
1440do
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 echo "PATH: $as_dir"
1444done
a8b2ad8d 1445IFS=$as_save_IFS
b3076f16 1446
1447} >&5
1448
1449cat >&5 <<_ACEOF
1450
1451
1452## ----------- ##
1453## Core tests. ##
1454## ----------- ##
1455
1456_ACEOF
1457
1458
1459# Keep a trace of the command line.
1460# Strip out --no-create and --no-recursion so they do not pile up.
1461# Strip out --silent because we don't want to record it for future runs.
1462# Also quote any args containing shell meta-characters.
1463# Make two passes to allow for proper duplicate-argument suppression.
1464ac_configure_args=
1465ac_configure_args0=
1466ac_configure_args1=
b3076f16 1467ac_must_keep_next=false
1468for ac_pass in 1 2
1469do
1470 for ac_arg
1471 do
1472 case $ac_arg in
1473 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1476 continue ;;
a8b2ad8d 1477 *\'*)
b3076f16 1478 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 esac
1480 case $ac_pass in
1481 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1482 2)
1483 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1484 if test $ac_must_keep_next = true; then
1485 ac_must_keep_next=false # Got value, back to normal.
1486 else
1487 case $ac_arg in
1488 *=* | --config-cache | -C | -disable-* | --disable-* \
1489 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1490 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1491 | -with-* | --with-* | -without-* | --without-* | --x)
1492 case "$ac_configure_args0 " in
1493 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494 esac
1495 ;;
1496 -* ) ac_must_keep_next=true ;;
1497 esac
1498 fi
a8b2ad8d 1499 ac_configure_args="$ac_configure_args '$ac_arg'"
b3076f16 1500 ;;
1501 esac
1502 done
1503done
1504$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1505$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1506
1507# When interrupted or exit'd, cleanup temporary files, and complete
1508# config.log. We remove comments because anyway the quotes in there
1509# would cause problems or look ugly.
a8b2ad8d 1510# WARNING: Use '\'' to represent an apostrophe within the trap.
1511# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 1512trap 'exit_status=$?
1513 # Save into config.log some information that might help in debugging.
1514 {
1515 echo
1516
1517 cat <<\_ASBOX
1518## ---------------- ##
1519## Cache variables. ##
1520## ---------------- ##
1521_ASBOX
1522 echo
1523 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 1524(
1525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526 eval ac_val=\$$ac_var
1527 case $ac_val in #(
1528 *${as_nl}*)
1529 case $ac_var in #(
1530 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532 esac
1533 case $ac_var in #(
1534 _ | IFS | as_nl) ;; #(
1535 *) $as_unset $ac_var ;;
1536 esac ;;
1537 esac
1538 done
b3076f16 1539 (set) 2>&1 |
a8b2ad8d 1540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541 *${as_nl}ac_space=\ *)
b3076f16 1542 sed -n \
a8b2ad8d 1543 "s/'\''/'\''\\\\'\'''\''/g;
1544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545 ;; #(
b3076f16 1546 *)
a8b2ad8d 1547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 1548 ;;
a8b2ad8d 1549 esac |
1550 sort
1551)
b3076f16 1552 echo
1553
1554 cat <<\_ASBOX
1555## ----------------- ##
1556## Output variables. ##
1557## ----------------- ##
1558_ASBOX
1559 echo
1560 for ac_var in $ac_subst_vars
1561 do
a8b2ad8d 1562 eval ac_val=\$$ac_var
1563 case $ac_val in
1564 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 esac
1566 echo "$ac_var='\''$ac_val'\''"
b3076f16 1567 done | sort
1568 echo
1569
1570 if test -n "$ac_subst_files"; then
1571 cat <<\_ASBOX
a8b2ad8d 1572## ------------------- ##
1573## File substitutions. ##
1574## ------------------- ##
b3076f16 1575_ASBOX
1576 echo
1577 for ac_var in $ac_subst_files
1578 do
a8b2ad8d 1579 eval ac_val=\$$ac_var
1580 case $ac_val in
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582 esac
1583 echo "$ac_var='\''$ac_val'\''"
b3076f16 1584 done | sort
1585 echo
1586 fi
1587
1588 if test -s confdefs.h; then
1589 cat <<\_ASBOX
1590## ----------- ##
1591## confdefs.h. ##
1592## ----------- ##
1593_ASBOX
1594 echo
a8b2ad8d 1595 cat confdefs.h
b3076f16 1596 echo
1597 fi
1598 test "$ac_signal" != 0 &&
1599 echo "$as_me: caught signal $ac_signal"
1600 echo "$as_me: exit $exit_status"
1601 } >&5
a8b2ad8d 1602 rm -f core *.core core.conftest.* &&
1603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 1604 exit $exit_status
a8b2ad8d 1605' 0
b3076f16 1606for ac_signal in 1 2 13 15; do
1607 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608done
1609ac_signal=0
1610
1611# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 1612rm -f -r conftest* confdefs.h
b3076f16 1613
1614# Predefined preprocessor variables.
1615
1616cat >>confdefs.h <<_ACEOF
1617#define PACKAGE_NAME "$PACKAGE_NAME"
1618_ACEOF
1619
1620
1621cat >>confdefs.h <<_ACEOF
1622#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623_ACEOF
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define PACKAGE_VERSION "$PACKAGE_VERSION"
1628_ACEOF
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_STRING "$PACKAGE_STRING"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638_ACEOF
1639
1640
1641# Let the site file select an alternate cache file if it wants to.
1642# Prefer explicitly selected file to automatically selected ones.
a8b2ad8d 1643if test -n "$CONFIG_SITE"; then
1644 set x "$CONFIG_SITE"
1645elif test "x$prefix" != xNONE; then
1646 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647else
1648 set x "$ac_default_prefix/share/config.site" \
1649 "$ac_default_prefix/etc/config.site"
b3076f16 1650fi
a8b2ad8d 1651shift
1652for ac_site_file
1653do
b3076f16 1654 if test -r "$ac_site_file"; then
1655 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656echo "$as_me: loading site script $ac_site_file" >&6;}
1657 sed 's/^/| /' "$ac_site_file" >&5
1658 . "$ac_site_file"
1659 fi
1660done
1661
1662if test -r "$cache_file"; then
1663 # Some versions of bash will fail to source /dev/null (special
1664 # files actually), so we avoid doing that.
1665 if test -f "$cache_file"; then
1666 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667echo "$as_me: loading cache $cache_file" >&6;}
1668 case $cache_file in
a8b2ad8d 1669 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1670 *) . "./$cache_file";;
b3076f16 1671 esac
1672 fi
1673else
1674 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675echo "$as_me: creating cache $cache_file" >&6;}
1676 >$cache_file
1677fi
1678
1679# Check that the precious variables saved in the cache have kept the same
1680# value.
1681ac_cache_corrupted=false
a8b2ad8d 1682for ac_var in $ac_precious_vars; do
b3076f16 1683 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1684 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 1685 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1686 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 1687 case $ac_old_set,$ac_new_set in
1688 set,)
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1690echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1692 ,set)
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1694echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695 ac_cache_corrupted=: ;;
1696 ,);;
1697 *)
1698 if test "x$ac_old_val" != "x$ac_new_val"; then
1699 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1700echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1702echo "$as_me: former value: $ac_old_val" >&2;}
1703 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1704echo "$as_me: current value: $ac_new_val" >&2;}
1705 ac_cache_corrupted=:
1706 fi;;
1707 esac
1708 # Pass precious variables to config.status.
1709 if test "$ac_new_set" = set; then
1710 case $ac_new_val in
a8b2ad8d 1711 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 1712 *) ac_arg=$ac_var=$ac_new_val ;;
1713 esac
1714 case " $ac_configure_args " in
1715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1716 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1717 esac
1718 fi
1719done
1720if $ac_cache_corrupted; then
1721 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1722echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1723 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1724echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725 { (exit 1); exit 1; }; }
1726fi
1727
b3076f16 1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
a8b2ad8d 1752ac_ext=c
1753ac_cpp='$CPP $CPPFLAGS'
1754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 1757
1758
ceafd592 1759CODENAME=X3
a8b2ad8d 1760ac_config_headers="$ac_config_headers src/config.h"
b3076f16 1761
1762
1763ac_aux_dir=
a8b2ad8d 1764for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1765 if test -f "$ac_dir/install-sh"; then
b3076f16 1766 ac_aux_dir=$ac_dir
1767 ac_install_sh="$ac_aux_dir/install-sh -c"
1768 break
a8b2ad8d 1769 elif test -f "$ac_dir/install.sh"; then
b3076f16 1770 ac_aux_dir=$ac_dir
1771 ac_install_sh="$ac_aux_dir/install.sh -c"
1772 break
a8b2ad8d 1773 elif test -f "$ac_dir/shtool"; then
b3076f16 1774 ac_aux_dir=$ac_dir
1775 ac_install_sh="$ac_aux_dir/shtool install -c"
1776 break
1777 fi
1778done
1779if test -z "$ac_aux_dir"; then
a8b2ad8d 1780 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1781echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b3076f16 1782 { (exit 1); exit 1; }; }
1783fi
a8b2ad8d 1784
1785# These three variables are undocumented and unsupported,
1786# and are intended to be withdrawn in a future Autoconf release.
1787# They can cause serious problems if a builder's source tree is in a directory
1788# whose full name contains unusual characters.
1789ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1790ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1791ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1792
b3076f16 1793
1794# Make sure we can run config.sub.
a8b2ad8d 1795$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1796 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1797echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b3076f16 1798 { (exit 1); exit 1; }; }
1799
a8b2ad8d 1800{ echo "$as_me:$LINENO: checking build system type" >&5
1801echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b3076f16 1802if test "${ac_cv_build+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
a8b2ad8d 1805 ac_build_alias=$build_alias
1806test "x$ac_build_alias" = x &&
1807 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1808test "x$ac_build_alias" = x &&
b3076f16 1809 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1810echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1811 { (exit 1); exit 1; }; }
a8b2ad8d 1812ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1813 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1814echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b3076f16 1815 { (exit 1); exit 1; }; }
1816
1817fi
a8b2ad8d 1818{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1819echo "${ECHO_T}$ac_cv_build" >&6; }
1820case $ac_cv_build in
1821*-*-*) ;;
1822*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1823echo "$as_me: error: invalid value of canonical build" >&2;}
1824 { (exit 1); exit 1; }; };;
1825esac
b3076f16 1826build=$ac_cv_build
a8b2ad8d 1827ac_save_IFS=$IFS; IFS='-'
1828set x $ac_cv_build
1829shift
1830build_cpu=$1
1831build_vendor=$2
1832shift; shift
1833# Remember, the first character of IFS is used to create $*,
1834# except with old shells:
1835build_os=$*
1836IFS=$ac_save_IFS
1837case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1838
1839
1840{ echo "$as_me:$LINENO: checking host system type" >&5
1841echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b3076f16 1842if test "${ac_cv_host+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
a8b2ad8d 1845 if test "x$host_alias" = x; then
1846 ac_cv_host=$ac_cv_build
1847else
1848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1849 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1850echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b3076f16 1851 { (exit 1); exit 1; }; }
a8b2ad8d 1852fi
b3076f16 1853
1854fi
a8b2ad8d 1855{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856echo "${ECHO_T}$ac_cv_host" >&6; }
1857case $ac_cv_host in
1858*-*-*) ;;
1859*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1860echo "$as_me: error: invalid value of canonical host" >&2;}
1861 { (exit 1); exit 1; }; };;
1862esac
b3076f16 1863host=$ac_cv_host
a8b2ad8d 1864ac_save_IFS=$IFS; IFS='-'
1865set x $ac_cv_host
1866shift
1867host_cpu=$1
1868host_vendor=$2
1869shift; shift
1870# Remember, the first character of IFS is used to create $*,
1871# except with old shells:
1872host_os=$*
1873IFS=$ac_save_IFS
1874case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1875
1876
1877{ echo "$as_me:$LINENO: checking target system type" >&5
1878echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b3076f16 1879if test "${ac_cv_target+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
a8b2ad8d 1882 if test "x$target_alias" = x; then
1883 ac_cv_target=$ac_cv_host
1884else
1885 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1886 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1887echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b3076f16 1888 { (exit 1); exit 1; }; }
a8b2ad8d 1889fi
b3076f16 1890
1891fi
a8b2ad8d 1892{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1893echo "${ECHO_T}$ac_cv_target" >&6; }
1894case $ac_cv_target in
1895*-*-*) ;;
1896*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1897echo "$as_me: error: invalid value of canonical target" >&2;}
1898 { (exit 1); exit 1; }; };;
1899esac
b3076f16 1900target=$ac_cv_target
a8b2ad8d 1901ac_save_IFS=$IFS; IFS='-'
1902set x $ac_cv_target
1903shift
1904target_cpu=$1
1905target_vendor=$2
1906shift; shift
1907# Remember, the first character of IFS is used to create $*,
1908# except with old shells:
1909target_os=$*
1910IFS=$ac_save_IFS
1911case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 1912
1913
1914# The aliases save the names the user supplied, while $host etc.
1915# will get canonicalized.
1916test -n "$target_alias" &&
1917 test "$program_prefix$program_suffix$program_transform_name" = \
1918 NONENONEs,x,x, &&
1919 program_prefix=${target_alias}-
ec1a68c8 1920am__api_version="1.9"
b3076f16 1921# Find a good install program. We prefer a C program (faster),
1922# so one script is as good as another. But avoid the broken or
1923# incompatible versions:
1924# SysV /etc/install, /usr/sbin/install
1925# SunOS /usr/etc/install
1926# IRIX /sbin/install
1927# AIX /bin/install
1928# AmigaOS /C/install, which installs bootblocks on floppy discs
1929# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1930# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1931# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1932# OS/2's system install, which has a completely different semantic
1933# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 1934{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1935echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 1936if test -z "$INSTALL"; then
1937if test "${ac_cv_path_install+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 # Account for people who put trailing slashes in PATH elements.
1946case $as_dir/ in
1947 ./ | .// | /cC/* | \
1948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1950 /usr/ucb/* ) ;;
1951 *)
1952 # OSF1 and SCO ODT 3.0 have their own names for install.
1953 # Don't use installbsd from OSF since it installs stuff as root
1954 # by default.
1955 for ac_prog in ginstall scoinst install; do
1956 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 1957 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 1958 if test $ac_prog = install &&
1959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1960 # AIX install. It has an incompatible calling convention.
1961 :
1962 elif test $ac_prog = install &&
1963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1964 # program-specific install script used by HP pwplus--don't use.
1965 :
1966 else
1967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1968 break 3
1969 fi
1970 fi
1971 done
1972 done
1973 ;;
1974esac
1975done
a8b2ad8d 1976IFS=$as_save_IFS
b3076f16 1977
1978
1979fi
1980 if test "${ac_cv_path_install+set}" = set; then
1981 INSTALL=$ac_cv_path_install
1982 else
a8b2ad8d 1983 # As a last resort, use the slow shell script. Don't cache a
1984 # value for INSTALL within a source directory, because that will
b3076f16 1985 # break other packages using the cache if that directory is
a8b2ad8d 1986 # removed, or if the value is a relative name.
b3076f16 1987 INSTALL=$ac_install_sh
1988 fi
1989fi
a8b2ad8d 1990{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1991echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 1992
1993# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1994# It thinks the first close brace ends the variable substitution.
1995test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1996
1997test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1998
1999test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2000
a8b2ad8d 2001{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2002echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
b3076f16 2003# Just in case
2004sleep 1
ec1a68c8 2005echo timestamp > conftest.file
b3076f16 2006# Do `set' in a subshell so we don't clobber the current shell's
2007# arguments. Must try -L first in case configure is actually a
2008# symlink; some systems play weird games with the mod time of symlinks
2009# (eg FreeBSD returns the mod time of the symlink's containing
2010# directory).
2011if (
ec1a68c8 2012 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 2013 if test "$*" = "X"; then
2014 # -L didn't work.
ec1a68c8 2015 set X `ls -t $srcdir/configure conftest.file`
b3076f16 2016 fi
ec1a68c8 2017 rm -f conftest.file
2018 if test "$*" != "X $srcdir/configure conftest.file" \
2019 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2020
2021 # If neither matched, then we have a broken ls. This can happen
2022 # if, for instance, CONFIG_SHELL is bash and it inherits a
2023 # broken ls alias from the environment. This has actually
2024 # happened. Such a system could not be considered "sane".
2025 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2026alias in your environment" >&5
2027echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2028alias in your environment" >&2;}
2029 { (exit 1); exit 1; }; }
2030 fi
2031
ec1a68c8 2032 test "$2" = conftest.file
b3076f16 2033 )
2034then
2035 # Ok.
2036 :
2037else
2038 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2039Check your system clock" >&5
2040echo "$as_me: error: newly created file is older than distributed files!
2041Check your system clock" >&2;}
2042 { (exit 1); exit 1; }; }
2043fi
a8b2ad8d 2044{ echo "$as_me:$LINENO: result: yes" >&5
2045echo "${ECHO_T}yes" >&6; }
b3076f16 2046test "$program_prefix" != NONE &&
a8b2ad8d 2047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2048# Use a double $ so make ignores it.
2049test "$program_suffix" != NONE &&
a8b2ad8d 2050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b3076f16 2051# Double any \ or $. echo might interpret backslashes.
2052# By default was `s,x,x', remove it if useless.
2053cat <<\_ACEOF >conftest.sed
2054s/[\\$]/&&/g;s/;s,x,x,$//
2055_ACEOF
2056program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
a8b2ad8d 2057rm -f conftest.sed
b3076f16 2058
ec1a68c8 2059# expand $ac_aux_dir to an absolute path
2060am_aux_dir=`cd $ac_aux_dir && pwd`
2061
2062test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2063# Use eval to expand $SHELL
2064if eval "$MISSING --run true"; then
2065 am_missing_run="$MISSING --run "
2066else
2067 am_missing_run=
2068 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2069echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2070fi
2071
2072if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2073 # We used to keeping the `.' as first argument, in order to
2074 # allow $(mkdir_p) to be used without argument. As in
2075 # $(mkdir_p) $(somedir)
2076 # where $(somedir) is conditionally defined. However this is wrong
2077 # for two reasons:
2078 # 1. if the package is installed by a user who cannot write `.'
2079 # make install will fail,
2080 # 2. the above comment should most certainly read
2081 # $(mkdir_p) $(DESTDIR)$(somedir)
2082 # so it does not work when $(somedir) is undefined and
2083 # $(DESTDIR) is not.
2084 # To support the latter case, we have to write
2085 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2086 # so the `.' trick is pointless.
2087 mkdir_p='mkdir -p --'
2088else
2089 # On NextStep and OpenStep, the `mkdir' command does not
2090 # recognize any option. It will interpret all options as
2091 # directories to create, and then abort because `.' already
2092 # exists.
2093 for d in ./-p ./--version;
2094 do
2095 test -d $d && rmdir $d
2096 done
2097 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2098 if test -f "$ac_aux_dir/mkinstalldirs"; then
2099 mkdir_p='$(mkinstalldirs)'
2100 else
2101 mkdir_p='$(install_sh) -d'
2102 fi
2103fi
2104
2105for ac_prog in gawk mawk nawk awk
2106do
2107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2108set dummy $ac_prog; ac_word=$2
a8b2ad8d 2109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2111if test "${ac_cv_prog_AWK+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114 if test -n "$AWK"; then
2115 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2116else
2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH
2119do
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2124 ac_cv_prog_AWK="$ac_prog"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 break 2
2127 fi
2128done
2129done
a8b2ad8d 2130IFS=$as_save_IFS
ec1a68c8 2131
2132fi
2133fi
2134AWK=$ac_cv_prog_AWK
2135if test -n "$AWK"; then
a8b2ad8d 2136 { echo "$as_me:$LINENO: result: $AWK" >&5
2137echo "${ECHO_T}$AWK" >&6; }
ec1a68c8 2138else
a8b2ad8d 2139 { echo "$as_me:$LINENO: result: no" >&5
2140echo "${ECHO_T}no" >&6; }
ec1a68c8 2141fi
2142
a8b2ad8d 2143
ec1a68c8 2144 test -n "$AWK" && break
2145done
2146
a8b2ad8d 2147{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2148echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2149set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2150if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 cat >conftest.make <<\_ACEOF
a8b2ad8d 2154SHELL = /bin/sh
b3076f16 2155all:
a8b2ad8d 2156 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2157_ACEOF
2158# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2159case `${MAKE-make} -f conftest.make 2>/dev/null` in
2160 *@@@%%%=?*=@@@%%%*)
2161 eval ac_cv_prog_make_${ac_make}_set=yes;;
2162 *)
2163 eval ac_cv_prog_make_${ac_make}_set=no;;
2164esac
b3076f16 2165rm -f conftest.make
2166fi
a8b2ad8d 2167if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2168 { echo "$as_me:$LINENO: result: yes" >&5
2169echo "${ECHO_T}yes" >&6; }
b3076f16 2170 SET_MAKE=
2171else
a8b2ad8d 2172 { echo "$as_me:$LINENO: result: no" >&5
2173echo "${ECHO_T}no" >&6; }
b3076f16 2174 SET_MAKE="MAKE=${MAKE-make}"
2175fi
2176
ec1a68c8 2177rm -rf .tst 2>/dev/null
2178mkdir .tst 2>/dev/null
2179if test -d .tst; then
2180 am__leading_dot=.
2181else
2182 am__leading_dot=_
2183fi
2184rmdir .tst 2>/dev/null
b3076f16 2185
ec1a68c8 2186# test to see if srcdir already configured
2187if test "`cd $srcdir && pwd`" != "`pwd`" &&
2188 test -f $srcdir/config.status; then
b3076f16 2189 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2190echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2191 { (exit 1); exit 1; }; }
2192fi
2193
ec1a68c8 2194# test whether we have cygpath
2195if test -z "$CYGPATH_W"; then
2196 if (cygpath --version) >/dev/null 2>/dev/null; then
2197 CYGPATH_W='cygpath -w'
2198 else
2199 CYGPATH_W=echo
2200 fi
2201fi
2202
2203
2204# Define the identity of the package.
ceafd592 2205 PACKAGE='x3'
63c95a47 2206 VERSION='1.5'
ec1a68c8 2207
2208
b3076f16 2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE "$PACKAGE"
2211_ACEOF
2212
2213
2214cat >>confdefs.h <<_ACEOF
2215#define VERSION "$VERSION"
2216_ACEOF
2217
ec1a68c8 2218# Some tools Automake needs.
b3076f16 2219
ec1a68c8 2220ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2221
ec1a68c8 2222
2223AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2224
2225
2226AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2227
2228
2229AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2230
2231
2232MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2233
2234install_sh=${install_sh-"$am_aux_dir/install-sh"}
2235
2236# Installed binaries are usually stripped using `strip' when the user
2237# run `make install-strip'. However `strip' might not be the right
2238# tool to use in cross-compilation environments, therefore Automake
2239# will honor the `STRIP' environment variable to overrule this program.
2240if test "$cross_compiling" != no; then
2241 if test -n "$ac_tool_prefix"; then
2242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2243set dummy ${ac_tool_prefix}strip; ac_word=$2
a8b2ad8d 2244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2246if test "${ac_cv_prog_STRIP+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 2248else
ec1a68c8 2249 if test -n "$STRIP"; then
2250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2251else
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2262 fi
2263done
2264done
a8b2ad8d 2265IFS=$as_save_IFS
b3076f16 2266
ec1a68c8 2267fi
2268fi
2269STRIP=$ac_cv_prog_STRIP
2270if test -n "$STRIP"; then
a8b2ad8d 2271 { echo "$as_me:$LINENO: result: $STRIP" >&5
2272echo "${ECHO_T}$STRIP" >&6; }
b3076f16 2273else
a8b2ad8d 2274 { echo "$as_me:$LINENO: result: no" >&5
2275echo "${ECHO_T}no" >&6; }
b3076f16 2276fi
b2cf3d66 2277
a8b2ad8d 2278
b3076f16 2279fi
ec1a68c8 2280if test -z "$ac_cv_prog_STRIP"; then
2281 ac_ct_STRIP=$STRIP
2282 # Extract the first word of "strip", so it can be a program name with args.
2283set dummy strip; ac_word=$2
a8b2ad8d 2284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2286if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289 if test -n "$ac_ct_STRIP"; then
2290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2291else
2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293for as_dir in $PATH
2294do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2299 ac_cv_prog_ac_ct_STRIP="strip"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2302 fi
2303done
2304done
a8b2ad8d 2305IFS=$as_save_IFS
b3076f16 2306
ec1a68c8 2307fi
2308fi
2309ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2310if test -n "$ac_ct_STRIP"; then
a8b2ad8d 2311 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2312echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b3076f16 2313else
a8b2ad8d 2314 { echo "$as_me:$LINENO: result: no" >&5
2315echo "${ECHO_T}no" >&6; }
b3076f16 2316fi
2317
a8b2ad8d 2318 if test "x$ac_ct_STRIP" = x; then
2319 STRIP=":"
2320 else
2321 case $cross_compiling:$ac_tool_warned in
2322yes:)
2323{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2324whose name does not start with the host triplet. If you think this
2325configuration is useful to you, please write to autoconf@gnu.org." >&5
2326echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2327whose name does not start with the host triplet. If you think this
2328configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2329ac_tool_warned=yes ;;
2330esac
2331 STRIP=$ac_ct_STRIP
2332 fi
b2cf3d66 2333else
ec1a68c8 2334 STRIP="$ac_cv_prog_STRIP"
b3076f16 2335fi
b3076f16 2336
ec1a68c8 2337fi
2338INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2339
2340# We need awk for the "check" target. The system "awk" is bad on
2341# some platforms.
2342# Always define AMTAR for backward compatibility.
2343
2344AMTAR=${AMTAR-"${am_missing_run}tar"}
2345
2346am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2347
2348
2349
2350
b3076f16 2351
a8b2ad8d 2352{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2353echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2354 # Check whether --enable-maintainer-mode was given.
b3076f16 2355if test "${enable_maintainer_mode+set}" = set; then
a8b2ad8d 2356 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2357else
2358 USE_MAINTAINER_MODE=no
a8b2ad8d 2359fi
2360
2361 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2362echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
b3076f16 2363
2364
2365if test $USE_MAINTAINER_MODE = yes; then
2366 MAINTAINER_MODE_TRUE=
2367 MAINTAINER_MODE_FALSE='#'
2368else
2369 MAINTAINER_MODE_TRUE='#'
2370 MAINTAINER_MODE_FALSE=
2371fi
ec1a68c8 2372
b3076f16 2373 MAINT=$MAINTAINER_MODE_TRUE
2374
2375
2376
ec1a68c8 2377DEPDIR="${am__leading_dot}deps"
2378
a8b2ad8d 2379ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2380
2381
2382am_make=${MAKE-make}
2383cat > confinc << 'END'
2384am__doit:
2385 @echo done
2386.PHONY: am__doit
2387END
2388# If we don't find an include directive, just comment out the code.
a8b2ad8d 2389{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2390echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
ec1a68c8 2391am__include="#"
2392am__quote=
2393_am_result=none
2394# First try GNU make style include.
2395echo "include confinc" > confmf
2396# We grep out `Entering directory' and `Leaving directory'
2397# messages which can occur if `w' ends up in MAKEFLAGS.
2398# In particular we don't look at `^make:' because GNU make might
2399# be invoked under some other name (usually "gmake"), in which
2400# case it prints its new name instead of `make'.
2401if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2402 am__include=include
2403 am__quote=
2404 _am_result=GNU
2405fi
2406# Now try BSD make style include.
2407if test "$am__include" = "#"; then
2408 echo '.include "confinc"' > confmf
2409 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2410 am__include=.include
2411 am__quote="\""
2412 _am_result=BSD
2413 fi
2414fi
2415
2416
a8b2ad8d 2417{ echo "$as_me:$LINENO: result: $_am_result" >&5
2418echo "${ECHO_T}$_am_result" >&6; }
ec1a68c8 2419rm -f confinc confmf
2420
a8b2ad8d 2421# Check whether --enable-dependency-tracking was given.
ec1a68c8 2422if test "${enable_dependency_tracking+set}" = set; then
a8b2ad8d 2423 enableval=$enable_dependency_tracking;
2424fi
ec1a68c8 2425
ec1a68c8 2426if test "x$enable_dependency_tracking" != xno; then
2427 am_depcomp="$ac_aux_dir/depcomp"
2428 AMDEPBACKSLASH='\'
2429fi
2430
2431
2432if test "x$enable_dependency_tracking" != xno; then
2433 AMDEP_TRUE=
2434 AMDEP_FALSE='#'
2435else
2436 AMDEP_TRUE='#'
2437 AMDEP_FALSE=
2438fi
2439
2440
2441
b3076f16 2442ac_ext=c
2443ac_cpp='$CPP $CPPFLAGS'
2444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2449set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 2450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2452if test "${ac_cv_prog_CC+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457else
2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2468 fi
2469done
2470done
a8b2ad8d 2471IFS=$as_save_IFS
b3076f16 2472
2473fi
2474fi
2475CC=$ac_cv_prog_CC
2476if test -n "$CC"; then
a8b2ad8d 2477 { echo "$as_me:$LINENO: result: $CC" >&5
2478echo "${ECHO_T}$CC" >&6; }
b3076f16 2479else
a8b2ad8d 2480 { echo "$as_me:$LINENO: result: no" >&5
2481echo "${ECHO_T}no" >&6; }
b3076f16 2482fi
2483
a8b2ad8d 2484
b3076f16 2485fi
2486if test -z "$ac_cv_prog_CC"; then
2487 ac_ct_CC=$CC
2488 # Extract the first word of "gcc", so it can be a program name with args.
2489set dummy gcc; ac_word=$2
a8b2ad8d 2490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495 if test -n "$ac_ct_CC"; then
2496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2505 ac_cv_prog_ac_ct_CC="gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509done
2510done
a8b2ad8d 2511IFS=$as_save_IFS
b3076f16 2512
2513fi
2514fi
2515ac_ct_CC=$ac_cv_prog_ac_ct_CC
2516if test -n "$ac_ct_CC"; then
a8b2ad8d 2517 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2518echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2519else
a8b2ad8d 2520 { echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6; }
b3076f16 2522fi
2523
a8b2ad8d 2524 if test "x$ac_ct_CC" = x; then
2525 CC=""
2526 else
2527 case $cross_compiling:$ac_tool_warned in
2528yes:)
2529{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2530whose name does not start with the host triplet. If you think this
2531configuration is useful to you, please write to autoconf@gnu.org." >&5
2532echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2533whose name does not start with the host triplet. If you think this
2534configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2535ac_tool_warned=yes ;;
2536esac
2537 CC=$ac_ct_CC
2538 fi
b3076f16 2539else
2540 CC="$ac_cv_prog_CC"
2541fi
2542
2543if test -z "$CC"; then
a8b2ad8d 2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 2546set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 2547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2549if test "${ac_cv_prog_CC+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2562 ac_cv_prog_CC="${ac_tool_prefix}cc"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566done
2567done
a8b2ad8d 2568IFS=$as_save_IFS
b3076f16 2569
2570fi
2571fi
2572CC=$ac_cv_prog_CC
2573if test -n "$CC"; then
a8b2ad8d 2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575echo "${ECHO_T}$CC" >&6; }
b3076f16 2576else
a8b2ad8d 2577 { echo "$as_me:$LINENO: result: no" >&5
2578echo "${ECHO_T}no" >&6; }
b3076f16 2579fi
2580
b3076f16 2581
a8b2ad8d 2582 fi
b3076f16 2583fi
2584if test -z "$CC"; then
2585 # Extract the first word of "cc", so it can be a program name with args.
2586set dummy cc; ac_word=$2
a8b2ad8d 2587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2589if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595 ac_prog_rejected=no
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2604 ac_prog_rejected=yes
2605 continue
2606 fi
2607 ac_cv_prog_CC="cc"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611done
2612done
a8b2ad8d 2613IFS=$as_save_IFS
b3076f16 2614
2615if test $ac_prog_rejected = yes; then
2616 # We found a bogon in the path, so make sure we never use it.
2617 set dummy $ac_cv_prog_CC
2618 shift
2619 if test $# != 0; then
2620 # We chose a different compiler from the bogus one.
2621 # However, it has the same basename, so the bogon will be chosen
2622 # first if we set CC to just the basename; use the full file name.
2623 shift
2624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2625 fi
2626fi
2627fi
2628fi
2629CC=$ac_cv_prog_CC
2630if test -n "$CC"; then
a8b2ad8d 2631 { echo "$as_me:$LINENO: result: $CC" >&5
2632echo "${ECHO_T}$CC" >&6; }
b3076f16 2633else
a8b2ad8d 2634 { echo "$as_me:$LINENO: result: no" >&5
2635echo "${ECHO_T}no" >&6; }
b3076f16 2636fi
2637
a8b2ad8d 2638
b3076f16 2639fi
2640if test -z "$CC"; then
2641 if test -n "$ac_tool_prefix"; then
a8b2ad8d 2642 for ac_prog in cl.exe
b3076f16 2643 do
2644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 2646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2648if test "${ac_cv_prog_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
a8b2ad8d 2667IFS=$as_save_IFS
b3076f16 2668
2669fi
2670fi
2671CC=$ac_cv_prog_CC
2672if test -n "$CC"; then
a8b2ad8d 2673 { echo "$as_me:$LINENO: result: $CC" >&5
2674echo "${ECHO_T}$CC" >&6; }
b3076f16 2675else
a8b2ad8d 2676 { echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6; }
b3076f16 2678fi
2679
a8b2ad8d 2680
b3076f16 2681 test -n "$CC" && break
2682 done
2683fi
2684if test -z "$CC"; then
2685 ac_ct_CC=$CC
a8b2ad8d 2686 for ac_prog in cl.exe
b3076f16 2687do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689set dummy $ac_prog; ac_word=$2
a8b2ad8d 2690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2692if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695 if test -n "$ac_ct_CC"; then
2696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2705 ac_cv_prog_ac_ct_CC="$ac_prog"
2706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709done
2710done
a8b2ad8d 2711IFS=$as_save_IFS
b3076f16 2712
2713fi
2714fi
2715ac_ct_CC=$ac_cv_prog_ac_ct_CC
2716if test -n "$ac_ct_CC"; then
a8b2ad8d 2717 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2718echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2719else
a8b2ad8d 2720 { echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6; }
b3076f16 2722fi
2723
a8b2ad8d 2724
b3076f16 2725 test -n "$ac_ct_CC" && break
2726done
2727
a8b2ad8d 2728 if test "x$ac_ct_CC" = x; then
2729 CC=""
2730 else
2731 case $cross_compiling:$ac_tool_warned in
2732yes:)
2733{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2734whose name does not start with the host triplet. If you think this
2735configuration is useful to you, please write to autoconf@gnu.org." >&5
2736echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2737whose name does not start with the host triplet. If you think this
2738configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2739ac_tool_warned=yes ;;
2740esac
2741 CC=$ac_ct_CC
2742 fi
b3076f16 2743fi
2744
2745fi
2746
2747
2748test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2749See \`config.log' for more details." >&5
2750echo "$as_me: error: no acceptable C compiler found in \$PATH
2751See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2753
2754# Provide some information about the compiler.
a8b2ad8d 2755echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 2756ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 2757{ (ac_try="$ac_compiler --version >&5"
2758case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
2762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
a8b2ad8d 2767{ (ac_try="$ac_compiler -v >&5"
2768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
a8b2ad8d 2777{ (ac_try="$ac_compiler -V >&5"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2787
2788cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h. */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h. */
2794
2795int
2796main ()
2797{
2798
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803ac_clean_files_save=$ac_clean_files
2804ac_clean_files="$ac_clean_files a.out a.exe b.out"
2805# Try to create an executable without -o first, disregard a.out.
2806# It will help us diagnose broken compilers, and finding out an intuition
2807# of exeext.
a8b2ad8d 2808{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2809echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b3076f16 2810ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a8b2ad8d 2811#
2812# List of possible output files, starting from the most likely.
2813# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2814# only as a last resort. b.out is created by i960 compilers.
2815ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2816#
2817# The IRIX 6 linker writes into existing files which may not be
2818# executable, retaining their permissions. Remove them first so a
2819# subsequent execution test works.
2820ac_rmfiles=
2821for ac_file in $ac_files
2822do
2823 case $ac_file in
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2825 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2826 esac
2827done
2828rm -f $ac_rmfiles
2829
2830if { (ac_try="$ac_link_default"
2831case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834esac
2835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_link_default") 2>&5
b3076f16 2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
a8b2ad8d 2840 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2841# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2842# in a Makefile. We should not override ac_cv_exeext if it was cached,
2843# so that the user can short-circuit this test for compilers unknown to
2844# Autoconf.
2845for ac_file in $ac_files
b3076f16 2846do
2847 test -f "$ac_file" || continue
2848 case $ac_file in
a8b2ad8d 2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b3076f16 2850 ;;
2851 [ab].out )
2852 # We found the default executable, but exeext='' is most
2853 # certainly right.
2854 break;;
2855 *.* )
a8b2ad8d 2856 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2857 then :; else
2858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2859 fi
2860 # We set ac_cv_exeext here because the later test for it is not
2861 # safe: cross compilers may not add the suffix if given an `-o'
2862 # argument, so we may need to know it at that point already.
2863 # Even if this section looks crufty: it has the advantage of
2864 # actually working.
b3076f16 2865 break;;
2866 * )
2867 break;;
2868 esac
2869done
a8b2ad8d 2870test "$ac_cv_exeext" = no && ac_cv_exeext=
2871
b3076f16 2872else
2873 echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2877See \`config.log' for more details." >&5
2878echo "$as_me: error: C compiler cannot create executables
2879See \`config.log' for more details." >&2;}
2880 { (exit 77); exit 77; }; }
2881fi
2882
2883ac_exeext=$ac_cv_exeext
a8b2ad8d 2884{ echo "$as_me:$LINENO: result: $ac_file" >&5
2885echo "${ECHO_T}$ac_file" >&6; }
b3076f16 2886
a8b2ad8d 2887# Check that the compiler produces executables we can run. If not, either
b3076f16 2888# the compiler is broken, or we cross compile.
a8b2ad8d 2889{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2890echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b3076f16 2891# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2892# If not cross compiling, check that we can run a simple program.
2893if test "$cross_compiling" != yes; then
2894 if { ac_try='./$ac_file'
a8b2ad8d 2895 { (case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_try") 2>&5
b3076f16 2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 cross_compiling=no
2905 else
2906 if test "$cross_compiling" = maybe; then
2907 cross_compiling=yes
2908 else
2909 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2910If you meant to cross compile, use \`--host'.
2911See \`config.log' for more details." >&5
2912echo "$as_me: error: cannot run C compiled programs.
2913If you meant to cross compile, use \`--host'.
2914See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2916 fi
2917 fi
2918fi
a8b2ad8d 2919{ echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6; }
b3076f16 2921
2922rm -f a.out a.exe conftest$ac_cv_exeext b.out
2923ac_clean_files=$ac_clean_files_save
a8b2ad8d 2924# Check that the compiler produces executables we can run. If not, either
b3076f16 2925# the compiler is broken, or we cross compile.
a8b2ad8d 2926{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2927echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2928{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2929echo "${ECHO_T}$cross_compiling" >&6; }
2930
2931{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2932echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2933if { (ac_try="$ac_link"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
2938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_link") 2>&5
b3076f16 2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2945# work properly (i.e., refer to `conftest.exe'), while it won't with
2946# `rm'.
2947for ac_file in conftest.exe conftest conftest.*; do
2948 test -f "$ac_file" || continue
2949 case $ac_file in
a8b2ad8d 2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b3076f16 2951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 2952 break;;
2953 * ) break;;
2954 esac
2955done
2956else
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958See \`config.log' for more details." >&5
2959echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2962fi
2963
2964rm -f conftest$ac_cv_exeext
a8b2ad8d 2965{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966echo "${ECHO_T}$ac_cv_exeext" >&6; }
b3076f16 2967
2968rm -f conftest.$ac_ext
2969EXEEXT=$ac_cv_exeext
2970ac_exeext=$EXEEXT
a8b2ad8d 2971{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b3076f16 2973if test "${ac_cv_objext+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975else
2976 cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
2981/* end confdefs.h. */
2982
2983int
2984main ()
2985{
2986
2987 ;
2988 return 0;
2989}
2990_ACEOF
2991rm -f conftest.o conftest.obj
a8b2ad8d 2992if { (ac_try="$ac_compile"
2993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>&5
b3076f16 2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; then
a8b2ad8d 3002 for ac_file in conftest.o conftest.obj conftest.*; do
3003 test -f "$ac_file" || continue;
b3076f16 3004 case $ac_file in
a8b2ad8d 3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b3076f16 3006 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3007 break;;
3008 esac
3009done
3010else
3011 echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3015See \`config.log' for more details." >&5
3016echo "$as_me: error: cannot compute suffix of object files: cannot compile
3017See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }
3019fi
3020
3021rm -f conftest.$ac_cv_objext conftest.$ac_ext
3022fi
a8b2ad8d 3023{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3024echo "${ECHO_T}$ac_cv_objext" >&6; }
b3076f16 3025OBJEXT=$ac_cv_objext
3026ac_objext=$OBJEXT
a8b2ad8d 3027{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3028echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 3029if test "${ac_cv_c_compiler_gnu+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032 cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h. */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h. */
3038
3039int
3040main ()
3041{
3042#ifndef __GNUC__
3043 choke me
3044#endif
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050rm -f conftest.$ac_objext
a8b2ad8d 3051if { (ac_try="$ac_compile"
3052case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
b3076f16 3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
a8b2ad8d 3064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
b3076f16 3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
b3076f16 3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 ac_compiler_gnu=yes
3085else
3086 echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
a8b2ad8d 3089 ac_compiler_gnu=no
b3076f16 3090fi
a8b2ad8d 3091
3092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3093ac_cv_c_compiler_gnu=$ac_compiler_gnu
3094
3095fi
a8b2ad8d 3096{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3097echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 3098GCC=`test $ac_compiler_gnu = yes && echo yes`
3099ac_test_CFLAGS=${CFLAGS+set}
3100ac_save_CFLAGS=$CFLAGS
a8b2ad8d 3101{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3102echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 3103if test "${ac_cv_prog_cc_g+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105else
a8b2ad8d 3106 ac_save_c_werror_flag=$ac_c_werror_flag
3107 ac_c_werror_flag=yes
3108 ac_cv_prog_cc_g=no
3109 CFLAGS="-g"
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_prog_cc_g=yes
3160else
3161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 CFLAGS=""
3165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
3180rm -f conftest.$ac_objext
3181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 :
3215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 ac_c_werror_flag=$ac_save_c_werror_flag
3220 CFLAGS="-g"
3221 cat >conftest.$ac_ext <<_ACEOF
b3076f16 3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227
3228int
3229main ()
3230{
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext
a8b2ad8d 3237if { (ac_try="$ac_compile"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
b3076f16 3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
a8b2ad8d 3250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
b3076f16 3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3261 { (case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_try") 2>&5
b3076f16 3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_prog_cc_g=yes
3271else
3272 echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
a8b2ad8d 3275
3276fi
3277
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279fi
3280
3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3282fi
a8b2ad8d 3283
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3286fi
a8b2ad8d 3287{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3288echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 3289if test "$ac_test_CFLAGS" = set; then
3290 CFLAGS=$ac_save_CFLAGS
3291elif test $ac_cv_prog_cc_g = yes; then
3292 if test "$GCC" = yes; then
3293 CFLAGS="-g -O2"
3294 else
3295 CFLAGS="-g"
3296 fi
3297else
3298 if test "$GCC" = yes; then
3299 CFLAGS="-O2"
3300 else
3301 CFLAGS=
3302 fi
3303fi
a8b2ad8d 3304{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3305echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3306if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
a8b2ad8d 3309 ac_cv_prog_cc_c89=no
b3076f16 3310ac_save_CC=$CC
3311cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
3317#include <stdarg.h>
3318#include <stdio.h>
3319#include <sys/types.h>
3320#include <sys/stat.h>
3321/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322struct buf { int x; };
3323FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324static char *e (p, i)
3325 char **p;
3326 int i;
3327{
3328 return p[i];
3329}
3330static char *f (char * (*g) (char **, int), char **p, ...)
3331{
3332 char *s;
3333 va_list v;
3334 va_start (v,p);
3335 s = g (p, va_arg (v,int));
3336 va_end (v);
3337 return s;
3338}
3339
3340/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3343 as 'x'. The following induces an error, until -std is added to get
b3076f16 3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3346 that's true only with -std. */
b3076f16 3347int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3348
a8b2ad8d 3349/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3351#define FOO(x) 'x'
3352int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3353
b3076f16 3354int test (int i, double x);
3355struct s1 {int (*f) (int a);};
3356struct s2 {int (*f) (double a);};
3357int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358int argc;
3359char **argv;
3360int
3361main ()
3362{
3363return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3364 ;
3365 return 0;
3366}
3367_ACEOF
a8b2ad8d 3368for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3370do
3371 CC="$ac_save_CC $ac_arg"
3372 rm -f conftest.$ac_objext
a8b2ad8d 3373if { (ac_try="$ac_compile"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_compile") 2>conftest.er1
b3076f16 3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
a8b2ad8d 3386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
b3076f16 3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; } &&
3396 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3397 { (case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_try") 2>&5
b3076f16 3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
a8b2ad8d 3406 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3407else
3408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
a8b2ad8d 3411
b3076f16 3412fi
a8b2ad8d 3413
3414rm -f core conftest.err conftest.$ac_objext
3415 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3416done
a8b2ad8d 3417rm -f conftest.$ac_ext
b3076f16 3418CC=$ac_save_CC
3419
3420fi
a8b2ad8d 3421# AC_CACHE_VAL
3422case "x$ac_cv_prog_cc_c89" in
3423 x)
3424 { echo "$as_me:$LINENO: result: none needed" >&5
3425echo "${ECHO_T}none needed" >&6; } ;;
3426 xno)
3427 { echo "$as_me:$LINENO: result: unsupported" >&5
3428echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 3429 *)
a8b2ad8d 3430 CC="$CC $ac_cv_prog_cc_c89"
3431 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3432echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3433esac
3434
b3076f16 3435
b3076f16 3436ac_ext=c
3437ac_cpp='$CPP $CPPFLAGS'
3438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441
ec1a68c8 3442depcc="$CC" am_compiler_list=
3443
a8b2ad8d 3444{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3445echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 3446if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3450 # We make a subdir and do the tests there. Otherwise we can end up
3451 # making bogus files that we don't know about and never remove. For
3452 # instance it was reported that on HP-UX the gcc test will end up
3453 # making a dummy file named `D' -- because `-MD' means `put the output
3454 # in D'.
3455 mkdir conftest.dir
3456 # Copy depcomp to subdir because otherwise we won't find it if we're
3457 # using a relative directory.
3458 cp "$am_depcomp" conftest.dir
3459 cd conftest.dir
3460 # We will build objects and dependencies in a subdirectory because
3461 # it helps to detect inapplicable dependency modes. For instance
3462 # both Tru64's cc and ICC support -MD to output dependencies as a
3463 # side effect of compilation, but ICC will put the dependencies in
3464 # the current directory while Tru64 will put them in the object
3465 # directory.
3466 mkdir sub
3467
3468 am_cv_CC_dependencies_compiler_type=none
3469 if test "$am_compiler_list" = ""; then
3470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3471 fi
3472 for depmode in $am_compiler_list; do
3473 # Setup a source with many dependencies, because some compilers
3474 # like to wrap large dependency lists on column 80 (with \), and
3475 # we should not choose a depcomp mode which is confused by this.
3476 #
3477 # We need to recreate these files for each test, as the compiler may
3478 # overwrite some of them when testing with obscure command lines.
3479 # This happens at least with the AIX C compiler.
3480 : > sub/conftest.c
3481 for i in 1 2 3 4 5 6; do
3482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3484 # Solaris 8's {/usr,}/bin/sh.
3485 touch sub/conftst$i.h
3486 done
3487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3488
3489 case $depmode in
3490 nosideeffect)
3491 # after this tag, mechanisms are not by side-effect, so they'll
3492 # only be used when explicitly requested
3493 if test "x$enable_dependency_tracking" = xyes; then
3494 continue
3495 else
3496 break
3497 fi
3498 ;;
3499 none) break ;;
3500 esac
3501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3502 # mode. It turns out that the SunPro C++ compiler does not properly
3503 # handle `-M -o', and we need to detect this.
3504 if depmode=$depmode \
3505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3508 >/dev/null 2>conftest.err &&
3509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3510 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3512 # icc doesn't choke on unknown options, it will just issue warnings
3513 # or remarks (even with -Werror). So we grep stderr for any message
3514 # that says an option was ignored or not supported.
3515 # When given -MP, icc 7.0 and 7.1 complain thusly:
3516 # icc: Command line warning: ignoring option '-M'; no argument required
3517 # The diagnosis changed in icc 8.0:
3518 # icc: Command line remark: option '-MP' not supported
3519 if (grep 'ignoring option' conftest.err ||
3520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3521 am_cv_CC_dependencies_compiler_type=$depmode
3522 break
3523 fi
3524 fi
3525 done
3526
3527 cd ..
3528 rm -rf conftest.dir
3529else
3530 am_cv_CC_dependencies_compiler_type=none
3531fi
3532
3533fi
a8b2ad8d 3534{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3535echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3536CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3537
3538
3539
3540if
3541 test "x$enable_dependency_tracking" != xno \
3542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3543 am__fastdepCC_TRUE=
3544 am__fastdepCC_FALSE='#'
3545else
3546 am__fastdepCC_TRUE='#'
3547 am__fastdepCC_FALSE=
3548fi
3549
3550
b3076f16 3551
a8b2ad8d 3552{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3553echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
b3076f16 3554if test "${ac_cv_type_signal+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563#include <sys/types.h>
3564#include <signal.h>
b3076f16 3565
3566int
3567main ()
3568{
a8b2ad8d 3569return *(signal (0, 0)) (0) == 1;
b3076f16 3570 ;
3571 return 0;
3572}
3573_ACEOF
3574rm -f conftest.$ac_objext
a8b2ad8d 3575if { (ac_try="$ac_compile"
3576case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579esac
3580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
b3076f16 3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
a8b2ad8d 3588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3589 { (case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
3593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_try") 2>&5
b3076f16 3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; } &&
3598 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3599 { (case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602esac
3603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_try") 2>&5
b3076f16 3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; }; then
a8b2ad8d 3608 ac_cv_type_signal=int
b3076f16 3609else
3610 echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
a8b2ad8d 3613 ac_cv_type_signal=void
b3076f16 3614fi
a8b2ad8d 3615
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3617fi
a8b2ad8d 3618{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3619echo "${ECHO_T}$ac_cv_type_signal" >&6; }
b3076f16 3620
3621cat >>confdefs.h <<_ACEOF
3622#define RETSIGTYPE $ac_cv_type_signal
3623_ACEOF
3624
3625
a8b2ad8d 3626{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3627echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
b3076f16 3628if test "${ac_cv_c_const+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 cat >conftest.$ac_ext <<_ACEOF
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
3636/* end confdefs.h. */
3637
3638int
3639main ()
3640{
3641/* FIXME: Include the comments suggested by Paul. */
3642#ifndef __cplusplus
3643 /* Ultrix mips cc rejects this. */
3644 typedef int charset[2];
3645 const charset x;
3646 /* SunOS 4.1.1 cc rejects this. */
3647 char const *const *ccp;
3648 char **p;
3649 /* NEC SVR4.0.2 mips cc rejects this. */
3650 struct point {int x, y;};
3651 static struct point const zero = {0,0};
3652 /* AIX XL C 1.02.0.0 rejects this.
3653 It does not let you subtract one const X* pointer from another in
3654 an arm of an if-expression whose if-part is not a constant
3655 expression */
3656 const char *g = "string";
3657 ccp = &g + (g ? g-g : 0);
3658 /* HPUX 7.0 cc rejects these. */
3659 ++ccp;
3660 p = (char**) ccp;
3661 ccp = (char const *const *) p;
3662 { /* SCO 3.2v4 cc rejects this. */
3663 char *t;
3664 char const *s = 0 ? (char *) 0 : (char const *) 0;
3665
3666 *t++ = 0;
a8b2ad8d 3667 if (s) return 0;
b3076f16 3668 }
3669 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3670 int x[] = {25, 17};
3671 const int *foo = &x[0];
3672 ++foo;
3673 }
3674 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3675 typedef const int *iptr;
3676 iptr p = 0;
3677 ++p;
3678 }
3679 { /* AIX XL C 1.02.0.0 rejects this saying
3680 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3681 struct s { int j; const int *ap[3]; };
3682 struct s *b; b->j = 5;
3683 }
3684 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3685 const int foo = 10;
a8b2ad8d 3686 if (!foo) return 0;
b3076f16 3687 }
a8b2ad8d 3688 return !x[0] && !zero.x;
b3076f16 3689#endif
3690
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
a8b2ad8d 3696if { (ac_try="$ac_compile"
3697case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700esac
3701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_compile") 2>conftest.er1
b3076f16 3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
a8b2ad8d 3709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3710 { (case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
3714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715 (eval "$ac_try") 2>&5
b3076f16 3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3720 { (case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
3724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_try") 2>&5
b3076f16 3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_c_const=yes
3730else
3731 echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
a8b2ad8d 3734 ac_cv_c_const=no
b3076f16 3735fi
a8b2ad8d 3736
3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3738fi
a8b2ad8d 3739{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3740echo "${ECHO_T}$ac_cv_c_const" >&6; }
b3076f16 3741if test $ac_cv_c_const = no; then
3742
3743cat >>confdefs.h <<\_ACEOF
3744#define const
3745_ACEOF
3746
3747fi
3748
a8b2ad8d 3749{ echo "$as_me:$LINENO: checking for inline" >&5
3750echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
b3076f16 3751if test "${ac_cv_c_inline+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 ac_cv_c_inline=no
3755for ac_kw in inline __inline__ __inline; do
3756 cat >conftest.$ac_ext <<_ACEOF
3757/* confdefs.h. */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h. */
3762#ifndef __cplusplus
3763typedef int foo_t;
3764static $ac_kw foo_t static_foo () {return 0; }
3765$ac_kw foo_t foo () {return 0; }
3766#endif
3767
3768_ACEOF
3769rm -f conftest.$ac_objext
a8b2ad8d 3770if { (ac_try="$ac_compile"
3771case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774esac
3775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
b3076f16 3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
a8b2ad8d 3783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3784 { (case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787esac
3788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_try") 2>&5
b3076f16 3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3794 { (case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797esac
3798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_try") 2>&5
b3076f16 3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
a8b2ad8d 3803 ac_cv_c_inline=$ac_kw
b3076f16 3804else
3805 echo "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
3807
a8b2ad8d 3808
b3076f16 3809fi
a8b2ad8d 3810
3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 test "$ac_cv_c_inline" != no && break
b3076f16 3813done
3814
3815fi
a8b2ad8d 3816{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3817echo "${ECHO_T}$ac_cv_c_inline" >&6; }
b3076f16 3818
3819
3820case $ac_cv_c_inline in
3821 inline | yes) ;;
3822 *)
3823 case $ac_cv_c_inline in
3824 no) ac_val=;;
3825 *) ac_val=$ac_cv_c_inline;;
3826 esac
3827 cat >>confdefs.h <<_ACEOF
3828#ifndef __cplusplus
3829#define inline $ac_val
3830#endif
3831_ACEOF
3832 ;;
3833esac
3834
3835
3836for ac_prog in gawk mawk nawk awk
3837do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839set dummy $ac_prog; ac_word=$2
a8b2ad8d 3840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3842if test "${ac_cv_prog_AWK+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845 if test -n "$AWK"; then
3846 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3855 ac_cv_prog_AWK="$ac_prog"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
3860done
a8b2ad8d 3861IFS=$as_save_IFS
b3076f16 3862
3863fi
3864fi
3865AWK=$ac_cv_prog_AWK
3866if test -n "$AWK"; then
a8b2ad8d 3867 { echo "$as_me:$LINENO: result: $AWK" >&5
3868echo "${ECHO_T}$AWK" >&6; }
b3076f16 3869else
a8b2ad8d 3870 { echo "$as_me:$LINENO: result: no" >&5
3871echo "${ECHO_T}no" >&6; }
b3076f16 3872fi
3873
a8b2ad8d 3874
b3076f16 3875 test -n "$AWK" && break
3876done
3877
3878ac_ext=c
3879ac_cpp='$CPP $CPPFLAGS'
3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3885set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 3886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3888if test "${ac_cv_prog_CC+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3893else
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905done
3906done
a8b2ad8d 3907IFS=$as_save_IFS
b3076f16 3908
3909fi
3910fi
3911CC=$ac_cv_prog_CC
3912if test -n "$CC"; then
a8b2ad8d 3913 { echo "$as_me:$LINENO: result: $CC" >&5
3914echo "${ECHO_T}$CC" >&6; }
b3076f16 3915else
a8b2ad8d 3916 { echo "$as_me:$LINENO: result: no" >&5
3917echo "${ECHO_T}no" >&6; }
b3076f16 3918fi
3919
a8b2ad8d 3920
b3076f16 3921fi
3922if test -z "$ac_cv_prog_CC"; then
3923 ac_ct_CC=$CC
3924 # Extract the first word of "gcc", so it can be a program name with args.
3925set dummy gcc; ac_word=$2
a8b2ad8d 3926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3928if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930else
3931 if test -n "$ac_ct_CC"; then
3932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3941 ac_cv_prog_ac_ct_CC="gcc"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945done
3946done
a8b2ad8d 3947IFS=$as_save_IFS
b3076f16 3948
3949fi
3950fi
3951ac_ct_CC=$ac_cv_prog_ac_ct_CC
3952if test -n "$ac_ct_CC"; then
a8b2ad8d 3953 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3954echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 3955else
a8b2ad8d 3956 { echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6; }
b3076f16 3958fi
3959
a8b2ad8d 3960 if test "x$ac_ct_CC" = x; then
3961 CC=""
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964yes:)
3965{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3966whose name does not start with the host triplet. If you think this
3967configuration is useful to you, please write to autoconf@gnu.org." >&5
3968echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3969whose name does not start with the host triplet. If you think this
3970configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3971ac_tool_warned=yes ;;
3972esac
3973 CC=$ac_ct_CC
3974 fi
b3076f16 3975else
3976 CC="$ac_cv_prog_CC"
3977fi
3978
3979if test -z "$CC"; then
a8b2ad8d 3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3982set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 3983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3985if test "${ac_cv_prog_CC+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987else
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
3990else
3991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992for as_dir in $PATH
3993do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3998 ac_cv_prog_CC="${ac_tool_prefix}cc"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002done
4003done
a8b2ad8d 4004IFS=$as_save_IFS
b3076f16 4005
4006fi
4007fi
4008CC=$ac_cv_prog_CC
4009if test -n "$CC"; then
a8b2ad8d 4010 { echo "$as_me:$LINENO: result: $CC" >&5
4011echo "${ECHO_T}$CC" >&6; }
b3076f16 4012else
a8b2ad8d 4013 { echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6; }
b3076f16 4015fi
4016
b3076f16 4017
a8b2ad8d 4018 fi
b3076f16 4019fi
4020if test -z "$CC"; then
4021 # Extract the first word of "cc", so it can be a program name with args.
4022set dummy cc; ac_word=$2
a8b2ad8d 4023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4025if test "${ac_cv_prog_CC+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030else
4031 ac_prog_rejected=no
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4040 ac_prog_rejected=yes
4041 continue
4042 fi
4043 ac_cv_prog_CC="cc"
4044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047done
4048done
a8b2ad8d 4049IFS=$as_save_IFS
b3076f16 4050
4051if test $ac_prog_rejected = yes; then
4052 # We found a bogon in the path, so make sure we never use it.
4053 set dummy $ac_cv_prog_CC
4054 shift
4055 if test $# != 0; then
4056 # We chose a different compiler from the bogus one.
4057 # However, it has the same basename, so the bogon will be chosen
4058 # first if we set CC to just the basename; use the full file name.
4059 shift
4060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4061 fi
4062fi
4063fi
4064fi
4065CC=$ac_cv_prog_CC
4066if test -n "$CC"; then
a8b2ad8d 4067 { echo "$as_me:$LINENO: result: $CC" >&5
4068echo "${ECHO_T}$CC" >&6; }
b3076f16 4069else
a8b2ad8d 4070 { echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6; }
b3076f16 4072fi
4073
a8b2ad8d 4074
b3076f16 4075fi
4076if test -z "$CC"; then
4077 if test -n "$ac_tool_prefix"; then
a8b2ad8d 4078 for ac_prog in cl.exe
b3076f16 4079 do
4080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 4082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4084if test "${ac_cv_prog_CC+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101done
4102done
a8b2ad8d 4103IFS=$as_save_IFS
b3076f16 4104
4105fi
4106fi
4107CC=$ac_cv_prog_CC
4108if test -n "$CC"; then
a8b2ad8d 4109 { echo "$as_me:$LINENO: result: $CC" >&5
4110echo "${ECHO_T}$CC" >&6; }
b3076f16 4111else
a8b2ad8d 4112 { echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6; }
b3076f16 4114fi
4115
a8b2ad8d 4116
b3076f16 4117 test -n "$CC" && break
4118 done
4119fi
4120if test -z "$CC"; then
4121 ac_ct_CC=$CC
a8b2ad8d 4122 for ac_prog in cl.exe
b3076f16 4123do
4124 # Extract the first word of "$ac_prog", so it can be a program name with args.
4125set dummy $ac_prog; ac_word=$2
a8b2ad8d 4126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4128if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131 if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4141 ac_cv_prog_ac_ct_CC="$ac_prog"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145done
4146done
a8b2ad8d 4147IFS=$as_save_IFS
b3076f16 4148
4149fi
4150fi
4151ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152if test -n "$ac_ct_CC"; then
a8b2ad8d 4153 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4154echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 4155else
a8b2ad8d 4156 { echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6; }
b3076f16 4158fi
4159
a8b2ad8d 4160
b3076f16 4161 test -n "$ac_ct_CC" && break
4162done
4163
a8b2ad8d 4164 if test "x$ac_ct_CC" = x; then
4165 CC=""
4166 else
4167 case $cross_compiling:$ac_tool_warned in
4168yes:)
4169{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4170whose name does not start with the host triplet. If you think this
4171configuration is useful to you, please write to autoconf@gnu.org." >&5
4172echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4173whose name does not start with the host triplet. If you think this
4174configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4175ac_tool_warned=yes ;;
4176esac
4177 CC=$ac_ct_CC
4178 fi
b3076f16 4179fi
4180
4181fi
4182
4183
4184test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4185See \`config.log' for more details." >&5
4186echo "$as_me: error: no acceptable C compiler found in \$PATH
4187See \`config.log' for more details." >&2;}
4188 { (exit 1); exit 1; }; }
4189
4190# Provide some information about the compiler.
a8b2ad8d 4191echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 4192ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 4193{ (ac_try="$ac_compiler --version >&5"
4194case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }
a8b2ad8d 4203{ (ac_try="$ac_compiler -v >&5"
4204case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
a8b2ad8d 4213{ (ac_try="$ac_compiler -V >&5"
4214case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }
4223
a8b2ad8d 4224{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4225echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 4226if test "${ac_cv_c_compiler_gnu+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235
4236int
4237main ()
4238{
4239#ifndef __GNUC__
4240 choke me
4241#endif
4242
4243 ;
4244 return 0;
4245}
4246_ACEOF
4247rm -f conftest.$ac_objext
a8b2ad8d 4248if { (ac_try="$ac_compile"
4249case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
b3076f16 4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
a8b2ad8d 4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
b3076f16 4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
b3076f16 4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_compiler_gnu=yes
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
a8b2ad8d 4286 ac_compiler_gnu=no
b3076f16 4287fi
a8b2ad8d 4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4290ac_cv_c_compiler_gnu=$ac_compiler_gnu
4291
4292fi
a8b2ad8d 4293{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4294echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 4295GCC=`test $ac_compiler_gnu = yes && echo yes`
4296ac_test_CFLAGS=${CFLAGS+set}
4297ac_save_CFLAGS=$CFLAGS
a8b2ad8d 4298{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4299echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 4300if test "${ac_cv_prog_cc_g+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
a8b2ad8d 4303 ac_save_c_werror_flag=$ac_c_werror_flag
4304 ac_c_werror_flag=yes
4305 ac_cv_prog_cc_g=no
4306 CFLAGS="-g"
4307 cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313
4314int
4315main ()
4316{
4317
4318 ;
4319 return 0;
4320}
4321_ACEOF
4322rm -f conftest.$ac_objext
4323if { (ac_try="$ac_compile"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4337 { (case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340esac
4341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_try") 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; } &&
4346 { ac_try='test -s conftest.$ac_objext'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_prog_cc_g=yes
4357else
4358 echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 CFLAGS=""
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368
4369int
4370main ()
4371{
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext
4378if { (ac_try="$ac_compile"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
4396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_try") 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 :
4412else
4413 echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_c_werror_flag=$ac_save_c_werror_flag
4417 CFLAGS="-g"
4418 cat >conftest.$ac_ext <<_ACEOF
b3076f16 4419/* confdefs.h. */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h. */
4424
4425int
4426main ()
4427{
4428
4429 ;
4430 return 0;
4431}
4432_ACEOF
4433rm -f conftest.$ac_objext
a8b2ad8d 4434if { (ac_try="$ac_compile"
4435case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438esac
4439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_compile") 2>conftest.er1
b3076f16 4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
a8b2ad8d 4447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4448 { (case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_try") 2>&5
b3076f16 4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4458 { (case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_try") 2>&5
b3076f16 4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_prog_cc_g=yes
4468else
4469 echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
a8b2ad8d 4472
4473fi
4474
4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476fi
4477
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4479fi
a8b2ad8d 4480
4481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4483fi
a8b2ad8d 4484{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4485echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 4486if test "$ac_test_CFLAGS" = set; then
4487 CFLAGS=$ac_save_CFLAGS
4488elif test $ac_cv_prog_cc_g = yes; then
4489 if test "$GCC" = yes; then
4490 CFLAGS="-g -O2"
4491 else
4492 CFLAGS="-g"
4493 fi
4494else
4495 if test "$GCC" = yes; then
4496 CFLAGS="-O2"
4497 else
4498 CFLAGS=
4499 fi
4500fi
a8b2ad8d 4501{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4502echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4503if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
a8b2ad8d 4506 ac_cv_prog_cc_c89=no
b3076f16 4507ac_save_CC=$CC
4508cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h. */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h. */
4514#include <stdarg.h>
4515#include <stdio.h>
4516#include <sys/types.h>
4517#include <sys/stat.h>
4518/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4519struct buf { int x; };
4520FILE * (*rcsopen) (struct buf *, struct stat *, int);
4521static char *e (p, i)
4522 char **p;
4523 int i;
4524{
4525 return p[i];
4526}
4527static char *f (char * (*g) (char **, int), char **p, ...)
4528{
4529 char *s;
4530 va_list v;
4531 va_start (v,p);
4532 s = g (p, va_arg (v,int));
4533 va_end (v);
4534 return s;
4535}
4536
4537/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4538 function prototypes and stuff, but not '\xHH' hex character constants.
4539 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4540 as 'x'. The following induces an error, until -std is added to get
b3076f16 4541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4542 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4543 that's true only with -std. */
b3076f16 4544int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4545
a8b2ad8d 4546/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4547 inside strings and character constants. */
4548#define FOO(x) 'x'
4549int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4550
b3076f16 4551int test (int i, double x);
4552struct s1 {int (*f) (int a);};
4553struct s2 {int (*f) (double a);};
4554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4555int argc;
4556char **argv;
4557int
4558main ()
4559{
4560return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4561 ;
4562 return 0;
4563}
4564_ACEOF
a8b2ad8d 4565for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4567do
4568 CC="$ac_save_CC $ac_arg"
4569 rm -f conftest.$ac_objext
a8b2ad8d 4570if { (ac_try="$ac_compile"
4571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
4575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
b3076f16 4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
a8b2ad8d 4583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
4588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
b3076f16 4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_try") 2>&5
b3076f16 4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
a8b2ad8d 4603 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4604else
4605 echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
a8b2ad8d 4608
b3076f16 4609fi
a8b2ad8d 4610
4611rm -f core conftest.err conftest.$ac_objext
4612 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4613done
a8b2ad8d 4614rm -f conftest.$ac_ext
b3076f16 4615CC=$ac_save_CC
4616
4617fi
a8b2ad8d 4618# AC_CACHE_VAL
4619case "x$ac_cv_prog_cc_c89" in
4620 x)
4621 { echo "$as_me:$LINENO: result: none needed" >&5
4622echo "${ECHO_T}none needed" >&6; } ;;
4623 xno)
4624 { echo "$as_me:$LINENO: result: unsupported" >&5
4625echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 4626 *)
a8b2ad8d 4627 CC="$CC $ac_cv_prog_cc_c89"
4628 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4629echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4630esac
4631
b3076f16 4632
b3076f16 4633ac_ext=c
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
ec1a68c8 4639depcc="$CC" am_compiler_list=
4640
a8b2ad8d 4641{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4642echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 4643if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4647 # We make a subdir and do the tests there. Otherwise we can end up
4648 # making bogus files that we don't know about and never remove. For
4649 # instance it was reported that on HP-UX the gcc test will end up
4650 # making a dummy file named `D' -- because `-MD' means `put the output
4651 # in D'.
4652 mkdir conftest.dir
4653 # Copy depcomp to subdir because otherwise we won't find it if we're
4654 # using a relative directory.
4655 cp "$am_depcomp" conftest.dir
4656 cd conftest.dir
4657 # We will build objects and dependencies in a subdirectory because
4658 # it helps to detect inapplicable dependency modes. For instance
4659 # both Tru64's cc and ICC support -MD to output dependencies as a
4660 # side effect of compilation, but ICC will put the dependencies in
4661 # the current directory while Tru64 will put them in the object
4662 # directory.
4663 mkdir sub
4664
4665 am_cv_CC_dependencies_compiler_type=none
4666 if test "$am_compiler_list" = ""; then
4667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4668 fi
4669 for depmode in $am_compiler_list; do
4670 # Setup a source with many dependencies, because some compilers
4671 # like to wrap large dependency lists on column 80 (with \), and
4672 # we should not choose a depcomp mode which is confused by this.
4673 #
4674 # We need to recreate these files for each test, as the compiler may
4675 # overwrite some of them when testing with obscure command lines.
4676 # This happens at least with the AIX C compiler.
4677 : > sub/conftest.c
4678 for i in 1 2 3 4 5 6; do
4679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4681 # Solaris 8's {/usr,}/bin/sh.
4682 touch sub/conftst$i.h
4683 done
4684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4685
4686 case $depmode in
4687 nosideeffect)
4688 # after this tag, mechanisms are not by side-effect, so they'll
4689 # only be used when explicitly requested
4690 if test "x$enable_dependency_tracking" = xyes; then
4691 continue
4692 else
4693 break
4694 fi
4695 ;;
4696 none) break ;;
4697 esac
4698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4699 # mode. It turns out that the SunPro C++ compiler does not properly
4700 # handle `-M -o', and we need to detect this.
4701 if depmode=$depmode \
4702 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4704 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4705 >/dev/null 2>conftest.err &&
4706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4707 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4709 # icc doesn't choke on unknown options, it will just issue warnings
4710 # or remarks (even with -Werror). So we grep stderr for any message
4711 # that says an option was ignored or not supported.
4712 # When given -MP, icc 7.0 and 7.1 complain thusly:
4713 # icc: Command line warning: ignoring option '-M'; no argument required
4714 # The diagnosis changed in icc 8.0:
4715 # icc: Command line remark: option '-MP' not supported
4716 if (grep 'ignoring option' conftest.err ||
4717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4718 am_cv_CC_dependencies_compiler_type=$depmode
4719 break
4720 fi
4721 fi
4722 done
4723
4724 cd ..
4725 rm -rf conftest.dir
4726else
4727 am_cv_CC_dependencies_compiler_type=none
4728fi
4729
4730fi
a8b2ad8d 4731{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4732echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4733CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4734
4735
4736
4737if
4738 test "x$enable_dependency_tracking" != xno \
4739 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4740 am__fastdepCC_TRUE=
4741 am__fastdepCC_FALSE='#'
4742else
4743 am__fastdepCC_TRUE='#'
4744 am__fastdepCC_FALSE=
4745fi
4746
4747
b3076f16 4748# Find a good install program. We prefer a C program (faster),
4749# so one script is as good as another. But avoid the broken or
4750# incompatible versions:
4751# SysV /etc/install, /usr/sbin/install
4752# SunOS /usr/etc/install
4753# IRIX /sbin/install
4754# AIX /bin/install
4755# AmigaOS /C/install, which installs bootblocks on floppy discs
4756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4757# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4759# OS/2's system install, which has a completely different semantic
4760# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 4761{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4762echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 4763if test -z "$INSTALL"; then
4764if test "${ac_cv_path_install+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 # Account for people who put trailing slashes in PATH elements.
4773case $as_dir/ in
4774 ./ | .// | /cC/* | \
4775 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4776 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4777 /usr/ucb/* ) ;;
4778 *)
4779 # OSF1 and SCO ODT 3.0 have their own names for install.
4780 # Don't use installbsd from OSF since it installs stuff as root
4781 # by default.
4782 for ac_prog in ginstall scoinst install; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4784 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 4785 if test $ac_prog = install &&
4786 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787 # AIX install. It has an incompatible calling convention.
4788 :
4789 elif test $ac_prog = install &&
4790 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791 # program-specific install script used by HP pwplus--don't use.
4792 :
4793 else
4794 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4795 break 3
4796 fi
4797 fi
4798 done
4799 done
4800 ;;
4801esac
4802done
a8b2ad8d 4803IFS=$as_save_IFS
b3076f16 4804
4805
4806fi
4807 if test "${ac_cv_path_install+set}" = set; then
4808 INSTALL=$ac_cv_path_install
4809 else
a8b2ad8d 4810 # As a last resort, use the slow shell script. Don't cache a
4811 # value for INSTALL within a source directory, because that will
b3076f16 4812 # break other packages using the cache if that directory is
a8b2ad8d 4813 # removed, or if the value is a relative name.
b3076f16 4814 INSTALL=$ac_install_sh
4815 fi
4816fi
a8b2ad8d 4817{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4818echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 4819
4820# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4821# It thinks the first close brace ends the variable substitution.
4822test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4823
4824test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4825
4826test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4827
2f61d1d7 4828
35305a49 4829if test -n "$ac_tool_prefix"; then
4830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4831set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8b2ad8d 4832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4834if test "${ac_cv_prog_RANLIB+set}" = set; then
2f61d1d7 4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
35305a49 4837 if test -n "$RANLIB"; then
4838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4839else
2f61d1d7 4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
35305a49 4845 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
2f61d1d7 4850 fi
35305a49 4851done
2f61d1d7 4852done
a8b2ad8d 4853IFS=$as_save_IFS
2f61d1d7 4854
b3076f16 4855fi
35305a49 4856fi
4857RANLIB=$ac_cv_prog_RANLIB
4858if test -n "$RANLIB"; then
a8b2ad8d 4859 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4860echo "${ECHO_T}$RANLIB" >&6; }
b3076f16 4861else
a8b2ad8d 4862 { echo "$as_me:$LINENO: result: no" >&5
4863echo "${ECHO_T}no" >&6; }
2f61d1d7 4864fi
2f61d1d7 4865
a8b2ad8d 4866
b3076f16 4867fi
35305a49 4868if test -z "$ac_cv_prog_RANLIB"; then
4869 ac_ct_RANLIB=$RANLIB
4870 # Extract the first word of "ranlib", so it can be a program name with args.
4871set dummy ranlib; ac_word=$2
a8b2ad8d 4872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4874if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2f61d1d7 4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
35305a49 4877 if test -n "$ac_ct_RANLIB"; then
4878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4879else
35305a49 4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4887 ac_cv_prog_ac_ct_RANLIB="ranlib"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891done
4892done
a8b2ad8d 4893IFS=$as_save_IFS
35305a49 4894
b3076f16 4895fi
2f61d1d7 4896fi
35305a49 4897ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4898if test -n "$ac_ct_RANLIB"; then
a8b2ad8d 4899 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4900echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
b3076f16 4901else
a8b2ad8d 4902 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; }
b3076f16 4904fi
4905
a8b2ad8d 4906 if test "x$ac_ct_RANLIB" = x; then
4907 RANLIB=":"
4908 else
4909 case $cross_compiling:$ac_tool_warned in
4910yes:)
4911{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4912whose name does not start with the host triplet. If you think this
4913configuration is useful to you, please write to autoconf@gnu.org." >&5
4914echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4915whose name does not start with the host triplet. If you think this
4916configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4917ac_tool_warned=yes ;;
4918esac
4919 RANLIB=$ac_ct_RANLIB
4920 fi
2f61d1d7 4921else
35305a49 4922 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4923fi
2f61d1d7 4924
2f61d1d7 4925
a8b2ad8d 4926{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4927echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2f61d1d7 4928LN_S=$as_ln_s
4929if test "$LN_S" = "ln -s"; then
a8b2ad8d 4930 { echo "$as_me:$LINENO: result: yes" >&5
4931echo "${ECHO_T}yes" >&6; }
2f61d1d7 4932else
a8b2ad8d 4933 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4934echo "${ECHO_T}no, using $LN_S" >&6; }
2f61d1d7 4935fi
4936
a8b2ad8d 4937{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4938echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4939set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4940if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2f61d1d7 4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
35305a49 4943 cat >conftest.make <<\_ACEOF
a8b2ad8d 4944SHELL = /bin/sh
35305a49 4945all:
a8b2ad8d 4946 @echo '@@@%%%=$(MAKE)=@@@%%%'
35305a49 4947_ACEOF
4948# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 4949case `${MAKE-make} -f conftest.make 2>/dev/null` in
4950 *@@@%%%=?*=@@@%%%*)
4951 eval ac_cv_prog_make_${ac_make}_set=yes;;
4952 *)
4953 eval ac_cv_prog_make_${ac_make}_set=no;;
4954esac
35305a49 4955rm -f conftest.make
4956fi
a8b2ad8d 4957if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4958 { echo "$as_me:$LINENO: result: yes" >&5
4959echo "${ECHO_T}yes" >&6; }
35305a49 4960 SET_MAKE=
4961else
a8b2ad8d 4962 { echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6; }
35305a49 4964 SET_MAKE="MAKE=${MAKE-make}"
2f61d1d7 4965fi
2f61d1d7 4966
4967ac_ext=c
4968ac_cpp='$CPP $CPPFLAGS'
4969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971ac_compiler_gnu=$ac_cv_c_compiler_gnu
a8b2ad8d 4972{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4973echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2f61d1d7 4974# On Suns, sometimes $CPP names a directory.
4975if test -n "$CPP" && test -d "$CPP"; then
4976 CPP=
4977fi
4978if test -z "$CPP"; then
4979 if test "${ac_cv_prog_CPP+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 # Double quotes because CPP needs to be expanded
4983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4984 do
4985 ac_preproc_ok=false
4986for ac_c_preproc_warn_flag in '' yes
4987do
4988 # Use a header file that comes with gcc, so configuring glibc
b3076f16 4989 # with a fresh cross-compiler works.
4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991 # <limits.h> exists even on freestanding compilers.
4992 # On the NeXT, cc -E runs the code through the compiler's parser,
4993 # not just through cpp. "Syntax error" is here to catch this case.
4994 cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h. */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h. */
5000#ifdef __STDC__
5001# include <limits.h>
5002#else
5003# include <assert.h>
5004#endif
5005 Syntax error
5006_ACEOF
a8b2ad8d 5007if { (ac_try="$ac_cpp conftest.$ac_ext"
5008case "(($ac_try" in
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5011esac
5012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } >/dev/null; then
5020 if test -s conftest.err; then
5021 ac_cpp_err=$ac_c_preproc_warn_flag
5022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5023 else
5024 ac_cpp_err=
5025 fi
5026else
5027 ac_cpp_err=yes
5028fi
5029if test -z "$ac_cpp_err"; then
5030 :
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 # Broken: fails on valid input.
5036continue
5037fi
a8b2ad8d 5038
b3076f16 5039rm -f conftest.err conftest.$ac_ext
5040
a8b2ad8d 5041 # OK, works on sane cases. Now check whether nonexistent headers
b3076f16 5042 # can be detected and how.
5043 cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
5049#include <ac_nonexistent.h>
5050_ACEOF
a8b2ad8d 5051if { (ac_try="$ac_cpp conftest.$ac_ext"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null; then
5064 if test -s conftest.err; then
5065 ac_cpp_err=$ac_c_preproc_warn_flag
5066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5067 else
5068 ac_cpp_err=
5069 fi
5070else
5071 ac_cpp_err=yes
5072fi
5073if test -z "$ac_cpp_err"; then
5074 # Broken: success on invalid input.
5075continue
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 # Passes both tests.
5081ac_preproc_ok=:
5082break
5083fi
a8b2ad8d 5084
b3076f16 5085rm -f conftest.err conftest.$ac_ext
5086
5087done
5088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089rm -f conftest.err conftest.$ac_ext
5090if $ac_preproc_ok; then
5091 break
5092fi
5093
5094 done
5095 ac_cv_prog_CPP=$CPP
5096
5097fi
5098 CPP=$ac_cv_prog_CPP
5099else
5100 ac_cv_prog_CPP=$CPP
5101fi
a8b2ad8d 5102{ echo "$as_me:$LINENO: result: $CPP" >&5
5103echo "${ECHO_T}$CPP" >&6; }
b3076f16 5104ac_preproc_ok=false
5105for ac_c_preproc_warn_flag in '' yes
5106do
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119#ifdef __STDC__
5120# include <limits.h>
5121#else
5122# include <assert.h>
5123#endif
5124 Syntax error
5125_ACEOF
a8b2ad8d 5126if { (ac_try="$ac_cpp conftest.$ac_ext"
5127case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130esac
5131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5133 ac_status=$?
5134 grep -v '^ *+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null; then
5139 if test -s conftest.err; then
5140 ac_cpp_err=$ac_c_preproc_warn_flag
5141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5142 else
5143 ac_cpp_err=
5144 fi
5145else
5146 ac_cpp_err=yes
5147fi
5148if test -z "$ac_cpp_err"; then
5149 :
5150else
5151 echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 # Broken: fails on valid input.
5155continue
5156fi
a8b2ad8d 5157
b3076f16 5158rm -f conftest.err conftest.$ac_ext
5159
a8b2ad8d 5160 # OK, works on sane cases. Now check whether nonexistent headers
b3076f16 5161 # can be detected and how.
5162 cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h. */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h. */
5168#include <ac_nonexistent.h>
5169_ACEOF
a8b2ad8d 5170if { (ac_try="$ac_cpp conftest.$ac_ext"
5171case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174esac
5175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_c_preproc_warn_flag
5185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5186 else
5187 ac_cpp_err=
5188 fi
5189else
5190 ac_cpp_err=yes
5191fi
5192if test -z "$ac_cpp_err"; then
5193 # Broken: success on invalid input.
5194continue
5195else
5196 echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 # Passes both tests.
5200ac_preproc_ok=:
5201break
5202fi
a8b2ad8d 5203
b3076f16 5204rm -f conftest.err conftest.$ac_ext
5205
5206done
5207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5208rm -f conftest.err conftest.$ac_ext
5209if $ac_preproc_ok; then
5210 :
5211else
5212 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5213See \`config.log' for more details." >&5
5214echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5215See \`config.log' for more details." >&2;}
5216 { (exit 1); exit 1; }; }
5217fi
5218
2f61d1d7 5219ac_ext=c
5220ac_cpp='$CPP $CPPFLAGS'
5221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225
a8b2ad8d 5226{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5227echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5228if test "${ac_cv_path_GREP+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 # Extract the first word of "grep ggrep" to use in msg output
5232if test -z "$GREP"; then
5233set dummy grep ggrep; ac_prog_name=$2
5234if test "${ac_cv_path_GREP+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 ac_path_GREP_found=false
5238# Loop through the user's path and test for each of PROGNAME-LIST
5239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5241do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_prog in grep ggrep; do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5247 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5248 # Check for GNU ac_path_GREP and select it if it is found.
5249 # Check for GNU $ac_path_GREP
5250case `"$ac_path_GREP" --version 2>&1` in
5251*GNU*)
5252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5253*)
5254 ac_count=0
5255 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 echo 'GREP' >> "conftest.nl"
5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 ac_count=`expr $ac_count + 1`
5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_GREP="$ac_path_GREP"
5268 ac_path_GREP_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274esac
5275
5276
5277 $ac_path_GREP_found && break 3
5278 done
5279done
5280
5281done
5282IFS=$as_save_IFS
5283
5284
5285fi
5286
5287GREP="$ac_cv_path_GREP"
5288if test -z "$GREP"; then
5289 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5290echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5291 { (exit 1); exit 1; }; }
5292fi
5293
5294else
5295 ac_cv_path_GREP=$GREP
5296fi
5297
5298
5299fi
5300{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5301echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5302 GREP="$ac_cv_path_GREP"
5303
5304
5305{ echo "$as_me:$LINENO: checking for egrep" >&5
5306echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5307if test "${ac_cv_path_EGREP+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5311 then ac_cv_path_EGREP="$GREP -E"
5312 else
5313 # Extract the first word of "egrep" to use in msg output
5314if test -z "$EGREP"; then
5315set dummy egrep; ac_prog_name=$2
5316if test "${ac_cv_path_EGREP+set}" = set; then
2f61d1d7 5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
a8b2ad8d 5319 ac_path_EGREP_found=false
5320# Loop through the user's path and test for each of PROGNAME-LIST
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_prog in egrep; do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5329 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5330 # Check for GNU ac_path_EGREP and select it if it is found.
5331 # Check for GNU $ac_path_EGREP
5332case `"$ac_path_EGREP" --version 2>&1` in
5333*GNU*)
5334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5335*)
5336 ac_count=0
5337 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5338 while :
5339 do
5340 cat "conftest.in" "conftest.in" >"conftest.tmp"
5341 mv "conftest.tmp" "conftest.in"
5342 cp "conftest.in" "conftest.nl"
5343 echo 'EGREP' >> "conftest.nl"
5344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346 ac_count=`expr $ac_count + 1`
5347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5348 # Best one so far, save it but keep looking for a better one
5349 ac_cv_path_EGREP="$ac_path_EGREP"
5350 ac_path_EGREP_max=$ac_count
35305a49 5351 fi
a8b2ad8d 5352 # 10*(2^10) chars as input seems more than enough
5353 test $ac_count -gt 10 && break
5354 done
5355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356esac
5357
5358
5359 $ac_path_EGREP_found && break 3
5360 done
5361done
5362
5363done
5364IFS=$as_save_IFS
5365
5366
5367fi
5368
5369EGREP="$ac_cv_path_EGREP"
5370if test -z "$EGREP"; then
5371 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5372echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5373 { (exit 1); exit 1; }; }
5374fi
5375
5376else
5377 ac_cv_path_EGREP=$EGREP
5378fi
5379
5380
5381 fi
2f61d1d7 5382fi
a8b2ad8d 5383{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5384echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5385 EGREP="$ac_cv_path_EGREP"
35305a49 5386
b3076f16 5387
5388if test $ac_cv_c_compiler_gnu = yes; then
a8b2ad8d 5389 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5390echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
b3076f16 5391if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394 ac_pattern="Autoconf.*'x'"
5395 cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401#include <sgtty.h>
5402Autoconf TIOCGETP
5403_ACEOF
5404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5405 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5406 ac_cv_prog_gcc_traditional=yes
5407else
5408 ac_cv_prog_gcc_traditional=no
5409fi
5410rm -f conftest*
5411
5412
5413 if test $ac_cv_prog_gcc_traditional = no; then
5414 cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h. */
5420#include <termio.h>
5421Autoconf TCGETA
5422_ACEOF
5423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5425 ac_cv_prog_gcc_traditional=yes
5426fi
5427rm -f conftest*
5428
5429 fi
5430fi
a8b2ad8d 5431{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5432echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
b3076f16 5433 if test $ac_cv_prog_gcc_traditional = yes; then
5434 CC="$CC -traditional"
5435 fi
5436fi
5437
5b1166fd 5438# Extract the first word of "gmake", so it can be a program name with args.
5439set dummy gmake; ac_word=$2
a8b2ad8d 5440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5b1166fd 5442if test "${ac_cv_prog_MAKER+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 if test -n "$MAKER"; then
5446 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5b1166fd 5455 ac_cv_prog_MAKER="gmake"
5456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459done
5460done
a8b2ad8d 5461IFS=$as_save_IFS
5b1166fd 5462
5463 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5464fi
5465fi
5466MAKER=$ac_cv_prog_MAKER
5467if test -n "$MAKER"; then
a8b2ad8d 5468 { echo "$as_me:$LINENO: result: $MAKER" >&5
5469echo "${ECHO_T}$MAKER" >&6; }
5b1166fd 5470else
a8b2ad8d 5471 { echo "$as_me:$LINENO: result: no" >&5
5472echo "${ECHO_T}no" >&6; }
5b1166fd 5473fi
5474
b3076f16 5475
a8b2ad8d 5476
b3076f16 5477case $target in
5478 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5479 ANSI_SRC=""
5480 ;;
5481 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5482 ANSI_SRC=""
b3076f16 5483 ;;
5484 *-solaris*)
5485 EXTRA_DEFINE="-D__SOLARIS__"
5486 ANSI_SRC="-fno-builtin"
5487 ;;
5488 *-cygwin)
5489 ANSI_SRC="-fno-builtin"
5490 ;;
5491 *-linux*)
5492 EXTRA_DEFINE="-D_GNU_SOURCE"
5493 ANSI_SRC=""
5494 ;;
5495 *)
5496 ANSI_SRC=""
5497 ;;
5498esac
5499CFLAGS="$CFLAGS $EXTRA_DEFINE"
5500
5501
a8b2ad8d 5502{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5503echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
b3076f16 5504if test "${ac_cv_lib_socket_socket+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507 ac_check_lib_save_LIBS=$LIBS
5508LIBS="-lsocket $LIBS"
5509cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515
a8b2ad8d 5516/* Override any GCC internal prototype to avoid an error.
5517 Use char because int might match the return type of a GCC
5518 builtin and then its argument prototype would still apply. */
b3076f16 5519#ifdef __cplusplus
5520extern "C"
5521#endif
b3076f16 5522char socket ();
5523int
5524main ()
5525{
a8b2ad8d 5526return socket ();
b3076f16 5527 ;
5528 return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5532if { (ac_try="$ac_link"
5533case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536esac
5537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_link") 2>conftest.er1
b3076f16 5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
a8b2ad8d 5545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5546 { (case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549esac
5550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_try") 2>&5
b3076f16 5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
b3076f16 5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 ac_cv_lib_socket_socket=yes
5566else
5567 echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
a8b2ad8d 5570 ac_cv_lib_socket_socket=no
b3076f16 5571fi
a8b2ad8d 5572
5573rm -f core conftest.err conftest.$ac_objext \
b3076f16 5574 conftest$ac_exeext conftest.$ac_ext
5575LIBS=$ac_check_lib_save_LIBS
5576fi
a8b2ad8d 5577{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5578echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
b3076f16 5579if test $ac_cv_lib_socket_socket = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581#define HAVE_LIBSOCKET 1
5582_ACEOF
5583
5584 LIBS="-lsocket $LIBS"
5585
5586fi
5587
5588
a8b2ad8d 5589{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5590echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
b3076f16 5591if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 ac_check_lib_save_LIBS=$LIBS
5595LIBS="-lnsl $LIBS"
5596cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h. */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */
5602
a8b2ad8d 5603/* Override any GCC internal prototype to avoid an error.
5604 Use char because int might match the return type of a GCC
5605 builtin and then its argument prototype would still apply. */
b3076f16 5606#ifdef __cplusplus
5607extern "C"
5608#endif
b3076f16 5609char gethostbyname ();
5610int
5611main ()
5612{
a8b2ad8d 5613return gethostbyname ();
b3076f16 5614 ;
5615 return 0;
5616}
5617_ACEOF
5618rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5619if { (ac_try="$ac_link"
5620case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623esac
5624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_link") 2>conftest.er1
b3076f16 5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
a8b2ad8d 5632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5633 { (case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636esac
5637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_try") 2>&5
b3076f16 5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5643 { (case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646esac
5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_try") 2>&5
b3076f16 5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_lib_nsl_gethostbyname=yes
5653else
5654 echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
a8b2ad8d 5657 ac_cv_lib_nsl_gethostbyname=no
b3076f16 5658fi
a8b2ad8d 5659
5660rm -f core conftest.err conftest.$ac_objext \
b3076f16 5661 conftest$ac_exeext conftest.$ac_ext
5662LIBS=$ac_check_lib_save_LIBS
5663fi
a8b2ad8d 5664{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5665echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
b3076f16 5666if test $ac_cv_lib_nsl_gethostbyname = yes; then
5667 cat >>confdefs.h <<_ACEOF
5668#define HAVE_LIBNSL 1
5669_ACEOF
5670
5671 LIBS="-lnsl $LIBS"
5672
5673fi
5674
5675
a8b2ad8d 5676{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5677echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
b3076f16 5678if test "${ac_cv_lib_m_main+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681 ac_check_lib_save_LIBS=$LIBS
5682LIBS="-lm $LIBS"
5683cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689
5690
5691int
5692main ()
5693{
a8b2ad8d 5694return main ();
b3076f16 5695 ;
5696 return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5700if { (ac_try="$ac_link"
5701case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_link") 2>conftest.er1
b3076f16 5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
a8b2ad8d 5713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5714 { (case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_try") 2>&5
b3076f16 5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5724 { (case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_try") 2>&5
b3076f16 5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_lib_m_main=yes
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
a8b2ad8d 5738 ac_cv_lib_m_main=no
b3076f16 5739fi
a8b2ad8d 5740
5741rm -f core conftest.err conftest.$ac_objext \
b3076f16 5742 conftest$ac_exeext conftest.$ac_ext
5743LIBS=$ac_check_lib_save_LIBS
5744fi
a8b2ad8d 5745{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5746echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
b3076f16 5747if test $ac_cv_lib_m_main = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749#define HAVE_LIBM 1
5750_ACEOF
5751
5752 LIBS="-lm $LIBS"
5753
5754fi
5755
5756
a8b2ad8d 5757{ echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5758echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
21f6caee 5759if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 ac_check_lib_save_LIBS=$LIBS
5763LIBS="-lGeoIP $LIBS"
5764cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h. */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h. */
5770
a8b2ad8d 5771/* Override any GCC internal prototype to avoid an error.
5772 Use char because int might match the return type of a GCC
5773 builtin and then its argument prototype would still apply. */
21f6caee 5774#ifdef __cplusplus
5775extern "C"
5776#endif
21f6caee 5777char GeoIP_open ();
5778int
5779main ()
5780{
a8b2ad8d 5781return GeoIP_open ();
21f6caee 5782 ;
5783 return 0;
5784}
5785_ACEOF
5786rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5787if { (ac_try="$ac_link"
5788case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_link") 2>conftest.er1
21f6caee 5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
a8b2ad8d 5800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
21f6caee 5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5811 { (case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814esac
5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_try") 2>&5
21f6caee 5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_cv_lib_GeoIP_GeoIP_open=yes
5821else
5822 echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
a8b2ad8d 5825 ac_cv_lib_GeoIP_GeoIP_open=no
21f6caee 5826fi
a8b2ad8d 5827
5828rm -f core conftest.err conftest.$ac_objext \
21f6caee 5829 conftest$ac_exeext conftest.$ac_ext
5830LIBS=$ac_check_lib_save_LIBS
5831fi
a8b2ad8d 5832{ echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5833echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
21f6caee 5834if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5835 cat >>confdefs.h <<_ACEOF
5836#define HAVE_LIBGEOIP 1
5837_ACEOF
5838
5839 LIBS="-lGeoIP $LIBS"
5840
5841fi
5842
5843
a8b2ad8d 5844{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5845echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
b3076f16 5846if test "${ac_cv_header_stdc+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849 cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855#include <stdlib.h>
5856#include <stdarg.h>
5857#include <string.h>
5858#include <float.h>
5859
5860int
5861main ()
5862{
5863
5864 ;
5865 return 0;
5866}
5867_ACEOF
5868rm -f conftest.$ac_objext
a8b2ad8d 5869if { (ac_try="$ac_compile"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
b3076f16 5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
a8b2ad8d 5882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
b3076f16 5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
b3076f16 5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_cv_header_stdc=yes
5903else
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
a8b2ad8d 5907 ac_cv_header_stdc=no
b3076f16 5908fi
a8b2ad8d 5909
5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5911
5912if test $ac_cv_header_stdc = yes; then
5913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920#include <string.h>
5921
5922_ACEOF
5923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "memchr" >/dev/null 2>&1; then
5925 :
5926else
5927 ac_cv_header_stdc=no
5928fi
5929rm -f conftest*
5930
5931fi
5932
5933if test $ac_cv_header_stdc = yes; then
5934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5935 cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
5941#include <stdlib.h>
5942
5943_ACEOF
5944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5945 $EGREP "free" >/dev/null 2>&1; then
5946 :
5947else
5948 ac_cv_header_stdc=no
5949fi
5950rm -f conftest*
5951
5952fi
5953
5954if test $ac_cv_header_stdc = yes; then
5955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5956 if test "$cross_compiling" = yes; then
5957 :
5958else
5959 cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965#include <ctype.h>
a8b2ad8d 5966#include <stdlib.h>
b3076f16 5967#if ((' ' & 0x0FF) == 0x020)
5968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5970#else
5971# define ISLOWER(c) \
5972 (('a' <= (c) && (c) <= 'i') \
5973 || ('j' <= (c) && (c) <= 'r') \
5974 || ('s' <= (c) && (c) <= 'z'))
5975# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5976#endif
5977
5978#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5979int
5980main ()
5981{
5982 int i;
5983 for (i = 0; i < 256; i++)
5984 if (XOR (islower (i), ISLOWER (i))
5985 || toupper (i) != TOUPPER (i))
a8b2ad8d 5986 return 2;
5987 return 0;
b3076f16 5988}
5989_ACEOF
5990rm -f conftest$ac_exeext
a8b2ad8d 5991if { (ac_try="$ac_link"
5992case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_link") 2>&5
b3076f16 5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 6001 { (case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004esac
6005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_try") 2>&5
b3076f16 6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 :
6011else
6012 echo "$as_me: program exited with status $ac_status" >&5
6013echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016( exit $ac_status )
6017ac_cv_header_stdc=no
6018fi
a8b2ad8d 6019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 6020fi
a8b2ad8d 6021
6022
b3076f16 6023fi
6024fi
a8b2ad8d 6025{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6026echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
b3076f16 6027if test $ac_cv_header_stdc = yes; then
6028
6029cat >>confdefs.h <<\_ACEOF
6030#define STDC_HEADERS 1
6031_ACEOF
6032
6033fi
6034
6035
a8b2ad8d 6036{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6037echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
b3076f16 6038if test "${ac_cv_header_time+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047#include <sys/types.h>
6048#include <sys/time.h>
6049#include <time.h>
6050
6051int
6052main ()
6053{
6054if ((struct tm *) 0)
6055return 0;
6056 ;
6057 return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext
a8b2ad8d 6061if { (ac_try="$ac_compile"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
b3076f16 6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
a8b2ad8d 6074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
b3076f16 6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
b3076f16 6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_header_time=yes
6095else
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
a8b2ad8d 6099 ac_cv_header_time=no
b3076f16 6100fi
a8b2ad8d 6101
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6103fi
a8b2ad8d 6104{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6105echo "${ECHO_T}$ac_cv_header_time" >&6; }
b3076f16 6106if test $ac_cv_header_time = yes; then
6107
6108cat >>confdefs.h <<\_ACEOF
6109#define TIME_WITH_SYS_TIME 1
6110_ACEOF
6111
6112fi
6113
a8b2ad8d 6114{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6115echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
b3076f16 6116if test "${ac_cv_struct_tm+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h. */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h. */
6125#include <sys/types.h>
6126#include <time.h>
6127
6128int
6129main ()
6130{
6131struct tm *tp; tp->tm_sec;
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext
a8b2ad8d 6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
b3076f16 6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
a8b2ad8d 6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
b3076f16 6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
b3076f16 6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_struct_tm=time.h
6171else
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
a8b2ad8d 6175 ac_cv_struct_tm=sys/time.h
b3076f16 6176fi
a8b2ad8d 6177
6178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6179fi
a8b2ad8d 6180{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6181echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
b3076f16 6182if test $ac_cv_struct_tm = sys/time.h; then
6183
6184cat >>confdefs.h <<\_ACEOF
6185#define TM_IN_SYS_TIME 1
6186_ACEOF
6187
6188fi
6189
6190
35305a49 6191# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6202 inttypes.h stdint.h unistd.h
6203do
6204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35305a49 6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 cat >conftest.$ac_ext <<_ACEOF
6211/* confdefs.h. */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h. */
6216$ac_includes_default
6217
6218#include <$ac_header>
6219_ACEOF
6220rm -f conftest.$ac_objext
a8b2ad8d 6221if { (ac_try="$ac_compile"
6222case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
35305a49 6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
a8b2ad8d 6234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6235 { (case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
35305a49 6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6245 { (case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248esac
6249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_try") 2>&5
35305a49 6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 eval "$as_ac_Header=yes"
6255else
6256 echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
a8b2ad8d 6259 eval "$as_ac_Header=no"
35305a49 6260fi
a8b2ad8d 6261
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305a49 6263fi
a8b2ad8d 6264ac_res=`eval echo '${'$as_ac_Header'}'`
6265 { echo "$as_me:$LINENO: result: $ac_res" >&5
6266echo "${ECHO_T}$ac_res" >&6; }
35305a49 6267if test `eval echo '${'$as_ac_Header'}'` = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6270_ACEOF
6271
6272fi
6273
6274done
6275
6276
b3076f16 6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
21f6caee 6297
6298
6299for ac_header in GeoIP.h GeoIPCity.h fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
b3076f16 6300do
6301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307fi
a8b2ad8d 6308ac_res=`eval echo '${'$as_ac_Header'}'`
6309 { echo "$as_me:$LINENO: result: $ac_res" >&5
6310echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6311else
6312 # Is the header compilable?
a8b2ad8d 6313{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 6315cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321$ac_includes_default
6322#include <$ac_header>
6323_ACEOF
6324rm -f conftest.$ac_objext
a8b2ad8d 6325if { (ac_try="$ac_compile"
6326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
b3076f16 6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
a8b2ad8d 6338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6339 { (case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_try") 2>&5
b3076f16 6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6349 { (case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_try") 2>&5
b3076f16 6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_header_compiler=yes
6359else
6360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
a8b2ad8d 6363 ac_header_compiler=no
b3076f16 6364fi
a8b2ad8d 6365
6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6368echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 6369
6370# Is the header present?
a8b2ad8d 6371{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 6373cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
6379#include <$ac_header>
6380_ACEOF
a8b2ad8d 6381if { (ac_try="$ac_cpp conftest.$ac_ext"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } >/dev/null; then
6394 if test -s conftest.err; then
6395 ac_cpp_err=$ac_c_preproc_warn_flag
6396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6397 else
6398 ac_cpp_err=
6399 fi
6400else
6401 ac_cpp_err=yes
6402fi
6403if test -z "$ac_cpp_err"; then
6404 ac_header_preproc=yes
6405else
6406 echo "$as_me: failed program was:" >&5
6407sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_header_preproc=no
6410fi
a8b2ad8d 6411
b3076f16 6412rm -f conftest.err conftest.$ac_ext
a8b2ad8d 6413{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6414echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 6415
6416# So? What about this header?
6417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6418 yes:no: )
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6423 ac_header_preproc=yes
6424 ;;
6425 no:yes:* )
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6433echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 6438 ( cat <<\_ASBOX
63c95a47 6439## -------------------------------------------------- ##
6440## Report this to evilnet-devel@lists.sourceforge.net ##
6441## -------------------------------------------------- ##
b3076f16 6442_ASBOX
a8b2ad8d 6443 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 6444 ;;
6445esac
a8b2ad8d 6446{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 eval "$as_ac_Header=\$ac_header_preproc"
6452fi
a8b2ad8d 6453ac_res=`eval echo '${'$as_ac_Header'}'`
6454 { echo "$as_me:$LINENO: result: $ac_res" >&5
6455echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6456
6457fi
6458if test `eval echo '${'$as_ac_Header'}'` = yes; then
6459 cat >>confdefs.h <<_ACEOF
6460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6461_ACEOF
6462
6463fi
6464
6465done
6466
6467
a8b2ad8d 6468{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6469echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
2f61d1d7 6470if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16 6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
6473 cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h. */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h. */
2f61d1d7 6479#include <sys/types.h>
6480#include <sys/socket.h>
b3076f16 6481
6482int
6483main ()
6484{
2f61d1d7 6485static struct sockaddr ac_aggr;
6486if (ac_aggr.sa_len)
b3076f16 6487return 0;
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492rm -f conftest.$ac_objext
a8b2ad8d 6493if { (ac_try="$ac_compile"
6494case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compile") 2>conftest.er1
b3076f16 6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
a8b2ad8d 6506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6507 { (case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510esac
6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_try") 2>&5
b3076f16 6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; } &&
6516 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6517 { (case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520esac
6521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_try") 2>&5
b3076f16 6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
2f61d1d7 6526 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6527else
6528 echo "$as_me: failed program was:" >&5
6529sed 's/^/| /' conftest.$ac_ext >&5
6530
a8b2ad8d 6531 cat >conftest.$ac_ext <<_ACEOF
b3076f16 6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
2f61d1d7 6537#include <sys/types.h>
6538#include <sys/socket.h>
b3076f16 6539
6540int
6541main ()
6542{
2f61d1d7 6543static struct sockaddr ac_aggr;
6544if (sizeof ac_aggr.sa_len)
b3076f16 6545return 0;
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext
a8b2ad8d 6551if { (ac_try="$ac_compile"
6552case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555esac
6556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_compile") 2>conftest.er1
b3076f16 6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
a8b2ad8d 6564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6565 { (case "(($ac_try" in
6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567 *) ac_try_echo=$ac_try;;
6568esac
6569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570 (eval "$ac_try") 2>&5
b3076f16 6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6575 { (case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_try") 2>&5
b3076f16 6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
2f61d1d7 6584 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6585else
6586 echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
a8b2ad8d 6589 ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 6590fi
a8b2ad8d 6591
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6593fi
a8b2ad8d 6594
6595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6596fi
a8b2ad8d 6597{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6598echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
2f61d1d7 6599if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16 6600
6601cat >>confdefs.h <<\_ACEOF
2f61d1d7 6602#define HAVE_SOCKADDR_SA_LEN
6603_ACEOF
6604
6605fi
6606
a8b2ad8d 6607{ echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6608echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
2f61d1d7 6609if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612 cat >conftest.$ac_ext <<_ACEOF
6613/* confdefs.h. */
6614_ACEOF
6615cat confdefs.h >>conftest.$ac_ext
6616cat >>conftest.$ac_ext <<_ACEOF
6617/* end confdefs.h. */
6618#include <sys/types.h>
6619#include <sys/socket.h>
6620#include <netdb.h>
6621
6622int
6623main ()
6624{
6625static struct addrinfo ac_aggr;
6626if (ac_aggr.ai_flags)
6627return 0;
6628 ;
6629 return 0;
6630}
6631_ACEOF
6632rm -f conftest.$ac_objext
a8b2ad8d 6633if { (ac_try="$ac_compile"
6634case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637esac
6638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
a8b2ad8d 6646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6647 { (case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650esac
6651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_try") 2>&5
2f61d1d7 6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6657 { (case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6660esac
6661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_try") 2>&5
2f61d1d7 6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 ac_cv_member_struct_addrinfo_ai_flags=yes
6667else
6668 echo "$as_me: failed program was:" >&5
6669sed 's/^/| /' conftest.$ac_ext >&5
6670
a8b2ad8d 6671 cat >conftest.$ac_ext <<_ACEOF
2f61d1d7 6672/* confdefs.h. */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h. */
6677#include <sys/types.h>
6678#include <sys/socket.h>
6679#include <netdb.h>
6680
6681int
6682main ()
6683{
6684static struct addrinfo ac_aggr;
6685if (sizeof ac_aggr.ai_flags)
6686return 0;
6687 ;
6688 return 0;
6689}
b3076f16 6690_ACEOF
2f61d1d7 6691rm -f conftest.$ac_objext
a8b2ad8d 6692if { (ac_try="$ac_compile"
6693case "(($ac_try" in
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6696esac
6697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
a8b2ad8d 6705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6706 { (case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709esac
6710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_try") 2>&5
2f61d1d7 6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6716 { (case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_try") 2>&5
2f61d1d7 6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_cv_member_struct_addrinfo_ai_flags=yes
6726else
6727 echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6729
a8b2ad8d 6730 ac_cv_member_struct_addrinfo_ai_flags=no
2f61d1d7 6731fi
a8b2ad8d 6732
6733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f61d1d7 6734fi
a8b2ad8d 6735
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6737fi
a8b2ad8d 6738{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6739echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
2f61d1d7 6740if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6741
6742cat >>confdefs.h <<\_ACEOF
6743#define HAVE_STRUCT_ADDRINFO
6744_ACEOF
b3076f16 6745
2f61d1d7 6746fi
b3076f16 6747
6748
21f6caee 6749
b3076f16 6750for ac_func in gettimeofday
6751do
6752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 cat >conftest.$ac_ext <<_ACEOF
6759/* confdefs.h. */
6760_ACEOF
6761cat confdefs.h >>conftest.$ac_ext
6762cat >>conftest.$ac_ext <<_ACEOF
6763/* end confdefs.h. */
6764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6766#define $ac_func innocuous_$ac_func
6767
6768/* System header to define __stub macros and hopefully few prototypes,
6769 which can conflict with char $ac_func (); below.
6770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6771 <limits.h> exists even on freestanding compilers. */
6772
6773#ifdef __STDC__
6774# include <limits.h>
6775#else
6776# include <assert.h>
6777#endif
6778
6779#undef $ac_func
6780
a8b2ad8d 6781/* Override any GCC internal prototype to avoid an error.
6782 Use char because int might match the return type of a GCC
6783 builtin and then its argument prototype would still apply. */
b3076f16 6784#ifdef __cplusplus
6785extern "C"
b3076f16 6786#endif
b3076f16 6787char $ac_func ();
6788/* The GNU C library defines this for functions which it implements
6789 to always fail with ENOSYS. Some functions are actually named
6790 something starting with __ and the normal name is an alias. */
a8b2ad8d 6791#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6792choke me
b3076f16 6793#endif
6794
6795int
6796main ()
6797{
a8b2ad8d 6798return $ac_func ();
b3076f16 6799 ;
6800 return 0;
6801}
6802_ACEOF
6803rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6804if { (ac_try="$ac_link"
6805case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808esac
6809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_link") 2>conftest.er1
b3076f16 6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
a8b2ad8d 6817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6818 { (case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
6822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_try") 2>&5
b3076f16 6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 6828 { (case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831esac
6832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_try") 2>&5
b3076f16 6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 eval "$as_ac_var=yes"
6838else
6839 echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
a8b2ad8d 6842 eval "$as_ac_var=no"
b3076f16 6843fi
a8b2ad8d 6844
6845rm -f core conftest.err conftest.$ac_objext \
b3076f16 6846 conftest$ac_exeext conftest.$ac_ext
6847fi
a8b2ad8d 6848ac_res=`eval echo '${'$as_ac_var'}'`
6849 { echo "$as_me:$LINENO: result: $ac_res" >&5
6850echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6851if test `eval echo '${'$as_ac_var'}'` = yes; then
6852 cat >>confdefs.h <<_ACEOF
6853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6854_ACEOF
6855
6856fi
6857done
6858
6859if test $ac_cv_func_gettimeofday = no; then
6860
6861for ac_func in ftime
6862do
6863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6864{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6866if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869 cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h. */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h. */
6875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6877#define $ac_func innocuous_$ac_func
6878
6879/* System header to define __stub macros and hopefully few prototypes,
6880 which can conflict with char $ac_func (); below.
6881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6882 <limits.h> exists even on freestanding compilers. */
6883
6884#ifdef __STDC__
6885# include <limits.h>
6886#else
6887# include <assert.h>
6888#endif
6889
6890#undef $ac_func
6891
a8b2ad8d 6892/* Override any GCC internal prototype to avoid an error.
6893 Use char because int might match the return type of a GCC
6894 builtin and then its argument prototype would still apply. */
b3076f16 6895#ifdef __cplusplus
6896extern "C"
b3076f16 6897#endif
b3076f16 6898char $ac_func ();
6899/* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
a8b2ad8d 6902#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6903choke me
b3076f16 6904#endif
6905
6906int
6907main ()
6908{
a8b2ad8d 6909return $ac_func ();
b3076f16 6910 ;
6911 return 0;
6912}
6913_ACEOF
6914rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6915if { (ac_try="$ac_link"
6916case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919esac
6920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>conftest.er1
b3076f16 6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
a8b2ad8d 6928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6929 { (case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932esac
6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_try") 2>&5
b3076f16 6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942esac
6943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
b3076f16 6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 eval "$as_ac_var=yes"
6949else
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
a8b2ad8d 6953 eval "$as_ac_var=no"
b3076f16 6954fi
a8b2ad8d 6955
6956rm -f core conftest.err conftest.$ac_objext \
b3076f16 6957 conftest$ac_exeext conftest.$ac_ext
6958fi
a8b2ad8d 6959ac_res=`eval echo '${'$as_ac_var'}'`
6960 { echo "$as_me:$LINENO: result: $ac_res" >&5
6961echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6962if test `eval echo '${'$as_ac_var'}'` = yes; then
6963 cat >>confdefs.h <<_ACEOF
6964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6965_ACEOF
6966
6967else
2f61d1d7 6968 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6969echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
b3076f16 6970 { (exit 1); exit 1; }; }
6971fi
6972done
6973
6974fi
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
5b1166fd 6990for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
b3076f16 6991do
6992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6993{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998 cat >conftest.$ac_ext <<_ACEOF
6999/* confdefs.h. */
7000_ACEOF
7001cat confdefs.h >>conftest.$ac_ext
7002cat >>conftest.$ac_ext <<_ACEOF
7003/* end confdefs.h. */
7004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7006#define $ac_func innocuous_$ac_func
7007
7008/* System header to define __stub macros and hopefully few prototypes,
7009 which can conflict with char $ac_func (); below.
7010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7011 <limits.h> exists even on freestanding compilers. */
7012
7013#ifdef __STDC__
7014# include <limits.h>
7015#else
7016# include <assert.h>
7017#endif
7018
7019#undef $ac_func
7020
a8b2ad8d 7021/* Override any GCC internal prototype to avoid an error.
7022 Use char because int might match the return type of a GCC
7023 builtin and then its argument prototype would still apply. */
b3076f16 7024#ifdef __cplusplus
7025extern "C"
b3076f16 7026#endif
b3076f16 7027char $ac_func ();
7028/* The GNU C library defines this for functions which it implements
7029 to always fail with ENOSYS. Some functions are actually named
7030 something starting with __ and the normal name is an alias. */
a8b2ad8d 7031#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7032choke me
b3076f16 7033#endif
7034
7035int
7036main ()
7037{
a8b2ad8d 7038return $ac_func ();
b3076f16 7039 ;
7040 return 0;
7041}
7042_ACEOF
7043rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7044if { (ac_try="$ac_link"
7045case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048esac
7049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_link") 2>conftest.er1
b3076f16 7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
a8b2ad8d 7057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7058 { (case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061esac
7062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_try") 2>&5
b3076f16 7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; } &&
7067 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7068 { (case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
7072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_try") 2>&5
b3076f16 7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 eval "$as_ac_var=yes"
7078else
7079 echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5
7081
a8b2ad8d 7082 eval "$as_ac_var=no"
b3076f16 7083fi
a8b2ad8d 7084
7085rm -f core conftest.err conftest.$ac_objext \
b3076f16 7086 conftest$ac_exeext conftest.$ac_ext
7087fi
a8b2ad8d 7088ac_res=`eval echo '${'$as_ac_var'}'`
7089 { echo "$as_me:$LINENO: result: $ac_res" >&5
7090echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7091if test `eval echo '${'$as_ac_var'}'` = yes; then
7092 cat >>confdefs.h <<_ACEOF
7093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7094_ACEOF
7095
7096fi
7097done
7098
7099
7100
7101
7102
7103
7104
7105
7106for ac_func in select socket strcspn strspn strtod strtoul
7107do
7108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7109{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7111if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114 cat >conftest.$ac_ext <<_ACEOF
7115/* confdefs.h. */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
7119/* end confdefs.h. */
7120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7122#define $ac_func innocuous_$ac_func
7123
7124/* System header to define __stub macros and hopefully few prototypes,
7125 which can conflict with char $ac_func (); below.
7126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7127 <limits.h> exists even on freestanding compilers. */
7128
7129#ifdef __STDC__
7130# include <limits.h>
7131#else
7132# include <assert.h>
7133#endif
7134
7135#undef $ac_func
7136
a8b2ad8d 7137/* Override any GCC internal prototype to avoid an error.
7138 Use char because int might match the return type of a GCC
7139 builtin and then its argument prototype would still apply. */
b3076f16 7140#ifdef __cplusplus
7141extern "C"
b3076f16 7142#endif
b3076f16 7143char $ac_func ();
7144/* The GNU C library defines this for functions which it implements
7145 to always fail with ENOSYS. Some functions are actually named
7146 something starting with __ and the normal name is an alias. */
a8b2ad8d 7147#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7148choke me
b3076f16 7149#endif
7150
7151int
7152main ()
7153{
a8b2ad8d 7154return $ac_func ();
b3076f16 7155 ;
7156 return 0;
7157}
7158_ACEOF
7159rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7160if { (ac_try="$ac_link"
7161case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164esac
7165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_link") 2>conftest.er1
b3076f16 7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
a8b2ad8d 7173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7174 { (case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177esac
7178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_try") 2>&5
b3076f16 7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; } &&
7183 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7184 { (case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
7188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_try") 2>&5
b3076f16 7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 eval "$as_ac_var=yes"
7194else
7195 echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
a8b2ad8d 7198 eval "$as_ac_var=no"
b3076f16 7199fi
a8b2ad8d 7200
7201rm -f core conftest.err conftest.$ac_objext \
b3076f16 7202 conftest$ac_exeext conftest.$ac_ext
7203fi
a8b2ad8d 7204ac_res=`eval echo '${'$as_ac_var'}'`
7205 { echo "$as_me:$LINENO: result: $ac_res" >&5
7206echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7207if test `eval echo '${'$as_ac_var'}'` = yes; then
7208 cat >>confdefs.h <<_ACEOF
7209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7210_ACEOF
7211
7212else
2f61d1d7 7213 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
7214echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 7215 { (exit 1); exit 1; }; }
7216fi
7217done
7218
7219
7220# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7221# for constant arguments. Useless!
a8b2ad8d 7222{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
7223echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
b3076f16 7224if test "${ac_cv_working_alloca_h+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h. */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h. */
7233#include <alloca.h>
7234int
7235main ()
7236{
7237char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 7238 if (p) return 0;
b3076f16 7239 ;
7240 return 0;
7241}
7242_ACEOF
7243rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7244if { (ac_try="$ac_link"
7245case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248esac
7249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_link") 2>conftest.er1
b3076f16 7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
a8b2ad8d 7257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7258 { (case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7261esac
7262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_try") 2>&5
b3076f16 7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7268 { (case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271esac
7272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_try") 2>&5
b3076f16 7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_working_alloca_h=yes
7278else
7279 echo "$as_me: failed program was:" >&5
7280sed 's/^/| /' conftest.$ac_ext >&5
7281
a8b2ad8d 7282 ac_cv_working_alloca_h=no
b3076f16 7283fi
a8b2ad8d 7284
7285rm -f core conftest.err conftest.$ac_objext \
b3076f16 7286 conftest$ac_exeext conftest.$ac_ext
7287fi
a8b2ad8d 7288{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7289echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
b3076f16 7290if test $ac_cv_working_alloca_h = yes; then
7291
7292cat >>confdefs.h <<\_ACEOF
7293#define HAVE_ALLOCA_H 1
7294_ACEOF
7295
7296fi
7297
a8b2ad8d 7298{ echo "$as_me:$LINENO: checking for alloca" >&5
7299echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
b3076f16 7300if test "${ac_cv_func_alloca_works+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303 cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h. */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h. */
7309#ifdef __GNUC__
7310# define alloca __builtin_alloca
7311#else
7312# ifdef _MSC_VER
7313# include <malloc.h>
7314# define alloca _alloca
7315# else
7316# if HAVE_ALLOCA_H
7317# include <alloca.h>
7318# else
7319# ifdef _AIX
7320 #pragma alloca
7321# else
7322# ifndef alloca /* predefined by HP cc +Olibcalls */
7323char *alloca ();
7324# endif
7325# endif
7326# endif
7327# endif
7328#endif
7329
7330int
7331main ()
7332{
7333char *p = (char *) alloca (1);
a8b2ad8d 7334 if (p) return 0;
b3076f16 7335 ;
7336 return 0;
7337}
7338_ACEOF
7339rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7340if { (ac_try="$ac_link"
7341case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344esac
7345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
b3076f16 7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
a8b2ad8d 7353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7354 { (case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357esac
7358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_try") 2>&5
b3076f16 7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; } &&
7363 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7364 { (case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367esac
7368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7369 (eval "$ac_try") 2>&5
b3076f16 7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 ac_cv_func_alloca_works=yes
7374else
7375 echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
a8b2ad8d 7378 ac_cv_func_alloca_works=no
b3076f16 7379fi
a8b2ad8d 7380
7381rm -f core conftest.err conftest.$ac_objext \
b3076f16 7382 conftest$ac_exeext conftest.$ac_ext
7383fi
a8b2ad8d 7384{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7385echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
b3076f16 7386
7387if test $ac_cv_func_alloca_works = yes; then
7388
7389cat >>confdefs.h <<\_ACEOF
7390#define HAVE_ALLOCA 1
7391_ACEOF
7392
7393else
7394 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7395# that cause trouble. Some versions do not even contain alloca or
7396# contain a buggy version. If you still want to use their alloca,
7397# use ar to extract alloca.o from them instead of compiling alloca.c.
7398
a8b2ad8d 7399ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 7400
7401cat >>confdefs.h <<\_ACEOF
7402#define C_ALLOCA 1
7403_ACEOF
7404
7405
a8b2ad8d 7406{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7407echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
b3076f16 7408if test "${ac_cv_os_cray+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411 cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
a8b2ad8d 7417#if defined CRAY && ! defined CRAY2
b3076f16 7418webecray
7419#else
7420wenotbecray
7421#endif
7422
7423_ACEOF
7424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 $EGREP "webecray" >/dev/null 2>&1; then
7426 ac_cv_os_cray=yes
7427else
7428 ac_cv_os_cray=no
7429fi
7430rm -f conftest*
7431
7432fi
a8b2ad8d 7433{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7434echo "${ECHO_T}$ac_cv_os_cray" >&6; }
b3076f16 7435if test $ac_cv_os_cray = yes; then
7436 for ac_func in _getb67 GETB67 getb67; do
7437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7438{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443 cat >conftest.$ac_ext <<_ACEOF
7444/* confdefs.h. */
7445_ACEOF
7446cat confdefs.h >>conftest.$ac_ext
7447cat >>conftest.$ac_ext <<_ACEOF
7448/* end confdefs.h. */
7449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7451#define $ac_func innocuous_$ac_func
7452
7453/* System header to define __stub macros and hopefully few prototypes,
7454 which can conflict with char $ac_func (); below.
7455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7456 <limits.h> exists even on freestanding compilers. */
7457
7458#ifdef __STDC__
7459# include <limits.h>
7460#else
7461# include <assert.h>
7462#endif
7463
7464#undef $ac_func
7465
a8b2ad8d 7466/* Override any GCC internal prototype to avoid an error.
7467 Use char because int might match the return type of a GCC
7468 builtin and then its argument prototype would still apply. */
b3076f16 7469#ifdef __cplusplus
7470extern "C"
b3076f16 7471#endif
b3076f16 7472char $ac_func ();
7473/* The GNU C library defines this for functions which it implements
7474 to always fail with ENOSYS. Some functions are actually named
7475 something starting with __ and the normal name is an alias. */
a8b2ad8d 7476#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7477choke me
b3076f16 7478#endif
7479
7480int
7481main ()
7482{
a8b2ad8d 7483return $ac_func ();
b3076f16 7484 ;
7485 return 0;
7486}
7487_ACEOF
7488rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7489if { (ac_try="$ac_link"
7490case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493esac
7494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_link") 2>conftest.er1
b3076f16 7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
a8b2ad8d 7502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7503 { (case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506esac
7507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_try") 2>&5
b3076f16 7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; } &&
7512 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7513 { (case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516esac
7517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_try") 2>&5
b3076f16 7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 eval "$as_ac_var=yes"
7523else
7524 echo "$as_me: failed program was:" >&5
7525sed 's/^/| /' conftest.$ac_ext >&5
7526
a8b2ad8d 7527 eval "$as_ac_var=no"
b3076f16 7528fi
a8b2ad8d 7529
7530rm -f core conftest.err conftest.$ac_objext \
b3076f16 7531 conftest$ac_exeext conftest.$ac_ext
7532fi
a8b2ad8d 7533ac_res=`eval echo '${'$as_ac_var'}'`
7534 { echo "$as_me:$LINENO: result: $ac_res" >&5
7535echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7536if test `eval echo '${'$as_ac_var'}'` = yes; then
7537
7538cat >>confdefs.h <<_ACEOF
7539#define CRAY_STACKSEG_END $ac_func
7540_ACEOF
7541
7542 break
7543fi
7544
7545 done
7546fi
7547
a8b2ad8d 7548{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7549echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
b3076f16 7550if test "${ac_cv_c_stack_direction+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
7553 if test "$cross_compiling" = yes; then
7554 ac_cv_c_stack_direction=0
7555else
7556 cat >conftest.$ac_ext <<_ACEOF
7557/* confdefs.h. */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h. */
a8b2ad8d 7562$ac_includes_default
b3076f16 7563int
7564find_stack_direction ()
7565{
7566 static char *addr = 0;
7567 auto char dummy;
7568 if (addr == 0)
7569 {
7570 addr = &dummy;
7571 return find_stack_direction ();
7572 }
7573 else
7574 return (&dummy > addr) ? 1 : -1;
7575}
7576
7577int
7578main ()
7579{
a8b2ad8d 7580 return find_stack_direction () < 0;
b3076f16 7581}
7582_ACEOF
7583rm -f conftest$ac_exeext
a8b2ad8d 7584if { (ac_try="$ac_link"
7585case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588esac
7589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_link") 2>&5
b3076f16 7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7594 { (case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597esac
7598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_try") 2>&5
b3076f16 7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_cv_c_stack_direction=1
7604else
7605 echo "$as_me: program exited with status $ac_status" >&5
7606echo "$as_me: failed program was:" >&5
7607sed 's/^/| /' conftest.$ac_ext >&5
7608
7609( exit $ac_status )
7610ac_cv_c_stack_direction=-1
7611fi
a8b2ad8d 7612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7613fi
a8b2ad8d 7614
7615
b3076f16 7616fi
a8b2ad8d 7617{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7618echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
b3076f16 7619
7620cat >>confdefs.h <<_ACEOF
7621#define STACK_DIRECTION $ac_cv_c_stack_direction
7622_ACEOF
7623
7624
7625fi
7626
7627
7628
7629for ac_header in stdlib.h unistd.h
7630do
7631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637fi
a8b2ad8d 7638ac_res=`eval echo '${'$as_ac_Header'}'`
7639 { echo "$as_me:$LINENO: result: $ac_res" >&5
7640echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7641else
7642 # Is the header compilable?
a8b2ad8d 7643{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 7645cat >conftest.$ac_ext <<_ACEOF
7646/* confdefs.h. */
7647_ACEOF
7648cat confdefs.h >>conftest.$ac_ext
7649cat >>conftest.$ac_ext <<_ACEOF
7650/* end confdefs.h. */
7651$ac_includes_default
7652#include <$ac_header>
7653_ACEOF
7654rm -f conftest.$ac_objext
a8b2ad8d 7655if { (ac_try="$ac_compile"
7656case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659esac
7660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_compile") 2>conftest.er1
b3076f16 7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
a8b2ad8d 7668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7669 { (case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672esac
7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_try") 2>&5
b3076f16 7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 7679 { (case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682esac
7683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_try") 2>&5
b3076f16 7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 ac_header_compiler=yes
7689else
7690 echo "$as_me: failed program was:" >&5
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
a8b2ad8d 7693 ac_header_compiler=no
b3076f16 7694fi
a8b2ad8d 7695
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7698echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 7699
7700# Is the header present?
a8b2ad8d 7701{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 7703cat >conftest.$ac_ext <<_ACEOF
7704/* confdefs.h. */
7705_ACEOF
7706cat confdefs.h >>conftest.$ac_ext
7707cat >>conftest.$ac_ext <<_ACEOF
7708/* end confdefs.h. */
7709#include <$ac_header>
7710_ACEOF
a8b2ad8d 7711if { (ac_try="$ac_cpp conftest.$ac_ext"
7712case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715esac
7716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } >/dev/null; then
7724 if test -s conftest.err; then
7725 ac_cpp_err=$ac_c_preproc_warn_flag
7726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7727 else
7728 ac_cpp_err=
7729 fi
7730else
7731 ac_cpp_err=yes
7732fi
7733if test -z "$ac_cpp_err"; then
7734 ac_header_preproc=yes
7735else
7736 echo "$as_me: failed program was:" >&5
7737sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 ac_header_preproc=no
7740fi
a8b2ad8d 7741
b3076f16 7742rm -f conftest.err conftest.$ac_ext
a8b2ad8d 7743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7744echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 7745
7746# So? What about this header?
7747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7748 yes:no: )
7749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7753 ac_header_preproc=yes
7754 ;;
7755 no:yes:* )
7756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7759echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7763echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 7768 ( cat <<\_ASBOX
63c95a47 7769## -------------------------------------------------- ##
7770## Report this to evilnet-devel@lists.sourceforge.net ##
7771## -------------------------------------------------- ##
b3076f16 7772_ASBOX
a8b2ad8d 7773 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 7774 ;;
7775esac
a8b2ad8d 7776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781 eval "$as_ac_Header=\$ac_header_preproc"
7782fi
a8b2ad8d 7783ac_res=`eval echo '${'$as_ac_Header'}'`
7784 { echo "$as_me:$LINENO: result: $ac_res" >&5
7785echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7786
7787fi
7788if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791_ACEOF
7792
7793fi
7794
7795done
7796
7797
7798for ac_func in getpagesize
7799do
7800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7801{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7803if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806 cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
7812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7814#define $ac_func innocuous_$ac_func
7815
7816/* System header to define __stub macros and hopefully few prototypes,
7817 which can conflict with char $ac_func (); below.
7818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7819 <limits.h> exists even on freestanding compilers. */
7820
7821#ifdef __STDC__
7822# include <limits.h>
7823#else
7824# include <assert.h>
7825#endif
7826
7827#undef $ac_func
7828
a8b2ad8d 7829/* Override any GCC internal prototype to avoid an error.
7830 Use char because int might match the return type of a GCC
7831 builtin and then its argument prototype would still apply. */
b3076f16 7832#ifdef __cplusplus
7833extern "C"
b3076f16 7834#endif
b3076f16 7835char $ac_func ();
7836/* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
a8b2ad8d 7839#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7840choke me
b3076f16 7841#endif
7842
7843int
7844main ()
7845{
a8b2ad8d 7846return $ac_func ();
b3076f16 7847 ;
7848 return 0;
7849}
7850_ACEOF
7851rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7852if { (ac_try="$ac_link"
7853case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>conftest.er1
b3076f16 7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
a8b2ad8d 7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869esac
7870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
b3076f16 7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879esac
7880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
b3076f16 7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 eval "$as_ac_var=yes"
7886else
7887 echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
a8b2ad8d 7890 eval "$as_ac_var=no"
b3076f16 7891fi
a8b2ad8d 7892
7893rm -f core conftest.err conftest.$ac_objext \
b3076f16 7894 conftest$ac_exeext conftest.$ac_ext
7895fi
a8b2ad8d 7896ac_res=`eval echo '${'$as_ac_var'}'`
7897 { echo "$as_me:$LINENO: result: $ac_res" >&5
7898echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7899if test `eval echo '${'$as_ac_var'}'` = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7902_ACEOF
7903
7904fi
7905done
7906
a8b2ad8d 7907{ echo "$as_me:$LINENO: checking for working mmap" >&5
7908echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
b3076f16 7909if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 if test "$cross_compiling" = yes; then
7913 ac_cv_func_mmap_fixed_mapped=no
7914else
7915 cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h. */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h. */
7921$ac_includes_default
7922/* malloc might have been renamed as rpl_malloc. */
7923#undef malloc
7924
7925/* Thanks to Mike Haertel and Jim Avera for this test.
7926 Here is a matrix of mmap possibilities:
7927 mmap private not fixed
7928 mmap private fixed at somewhere currently unmapped
7929 mmap private fixed at somewhere already mapped
7930 mmap shared not fixed
7931 mmap shared fixed at somewhere currently unmapped
7932 mmap shared fixed at somewhere already mapped
7933 For private mappings, we should verify that changes cannot be read()
7934 back from the file, nor mmap's back from the file at a different
7935 address. (There have been systems where private was not correctly
7936 implemented like the infamous i386 svr4.0, and systems where the
7937 VM page cache was not coherent with the file system buffer cache
7938 like early versions of FreeBSD and possibly contemporary NetBSD.)
7939 For shared mappings, we should conversely verify that changes get
7940 propagated back to all the places they're supposed to be.
7941
7942 Grep wants private fixed already mapped.
7943 The main things grep needs to know about mmap are:
7944 * does it exist and is it safe to write into the mmap'd area
7945 * how to use it (BSD variants) */
7946
7947#include <fcntl.h>
7948#include <sys/mman.h>
7949
7950#if !STDC_HEADERS && !HAVE_STDLIB_H
7951char *malloc ();
7952#endif
7953
7954/* This mess was copied from the GNU getpagesize.h. */
7955#if !HAVE_GETPAGESIZE
7956/* Assume that all systems that can run configure have sys/param.h. */
7957# if !HAVE_SYS_PARAM_H
7958# define HAVE_SYS_PARAM_H 1
7959# endif
7960
7961# ifdef _SC_PAGESIZE
7962# define getpagesize() sysconf(_SC_PAGESIZE)
7963# else /* no _SC_PAGESIZE */
7964# if HAVE_SYS_PARAM_H
7965# include <sys/param.h>
7966# ifdef EXEC_PAGESIZE
7967# define getpagesize() EXEC_PAGESIZE
7968# else /* no EXEC_PAGESIZE */
7969# ifdef NBPG
7970# define getpagesize() NBPG * CLSIZE
7971# ifndef CLSIZE
7972# define CLSIZE 1
7973# endif /* no CLSIZE */
7974# else /* no NBPG */
7975# ifdef NBPC
7976# define getpagesize() NBPC
7977# else /* no NBPC */
7978# ifdef PAGESIZE
7979# define getpagesize() PAGESIZE
7980# endif /* PAGESIZE */
7981# endif /* no NBPC */
7982# endif /* no NBPG */
7983# endif /* no EXEC_PAGESIZE */
7984# else /* no HAVE_SYS_PARAM_H */
7985# define getpagesize() 8192 /* punt totally */
7986# endif /* no HAVE_SYS_PARAM_H */
7987# endif /* no _SC_PAGESIZE */
7988
7989#endif /* no HAVE_GETPAGESIZE */
7990
7991int
7992main ()
7993{
7994 char *data, *data2, *data3;
7995 int i, pagesize;
7996 int fd;
7997
7998 pagesize = getpagesize ();
7999
8000 /* First, make a file with some known garbage in it. */
8001 data = (char *) malloc (pagesize);
8002 if (!data)
a8b2ad8d 8003 return 1;
b3076f16 8004 for (i = 0; i < pagesize; ++i)
8005 *(data + i) = rand ();
8006 umask (0);
8007 fd = creat ("conftest.mmap", 0600);
8008 if (fd < 0)
a8b2ad8d 8009 return 1;
b3076f16 8010 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 8011 return 1;
b3076f16 8012 close (fd);
8013
8014 /* Next, try to mmap the file at a fixed address which already has
8015 something else allocated at it. If we can, also make sure that
8016 we see the same garbage. */
8017 fd = open ("conftest.mmap", O_RDWR);
8018 if (fd < 0)
a8b2ad8d 8019 return 1;
b3076f16 8020 data2 = (char *) malloc (2 * pagesize);
8021 if (!data2)
a8b2ad8d 8022 return 1;
8023 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16 8024 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8025 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 8026 return 1;
b3076f16 8027 for (i = 0; i < pagesize; ++i)
8028 if (*(data + i) != *(data2 + i))
a8b2ad8d 8029 return 1;
b3076f16 8030
8031 /* Finally, make sure that changes to the mapped area do not
8032 percolate back to the file as seen by read(). (This is a bug on
8033 some variants of i386 svr4.0.) */
8034 for (i = 0; i < pagesize; ++i)
8035 *(data2 + i) = *(data2 + i) + 1;
8036 data3 = (char *) malloc (pagesize);
8037 if (!data3)
a8b2ad8d 8038 return 1;
b3076f16 8039 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 8040 return 1;
b3076f16 8041 for (i = 0; i < pagesize; ++i)
8042 if (*(data + i) != *(data3 + i))
a8b2ad8d 8043 return 1;
b3076f16 8044 close (fd);
a8b2ad8d 8045 return 0;
b3076f16 8046}
8047_ACEOF
8048rm -f conftest$ac_exeext
a8b2ad8d 8049if { (ac_try="$ac_link"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>&5
b3076f16 8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
b3076f16 8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_func_mmap_fixed_mapped=yes
8069else
8070 echo "$as_me: program exited with status $ac_status" >&5
8071echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
8074( exit $ac_status )
8075ac_cv_func_mmap_fixed_mapped=no
8076fi
a8b2ad8d 8077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 8078fi
a8b2ad8d 8079
8080
b3076f16 8081fi
a8b2ad8d 8082{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8083echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 8084if test $ac_cv_func_mmap_fixed_mapped = yes; then
8085
8086cat >>confdefs.h <<\_ACEOF
8087#define HAVE_MMAP 1
8088_ACEOF
8089
8090fi
8091rm -f conftest.mmap
8092
8093
a8b2ad8d 8094{ echo "$as_me:$LINENO: checking for sin_len" >&5
8095echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
b3076f16 8096if test "${ac_cv_sin_len+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099 cat >conftest.$ac_ext <<_ACEOF
8100/* confdefs.h. */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h. */
8105#include <sys/types.h>
8106#include <netinet/in.h>
8107int
8108main ()
8109{
8110struct sockaddr_in *sin; sin->sin_len = 0;
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext
a8b2ad8d 8116if { (ac_try="$ac_compile"
8117case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
b3076f16 8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
a8b2ad8d 8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
b3076f16 8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
b3076f16 8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_sin_len="yes"
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
a8b2ad8d 8154 ac_cv_sin_len="no"
b3076f16 8155fi
a8b2ad8d 8156
8157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8158fi
a8b2ad8d 8159{ echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
8160echo "${ECHO_T}$ac_cv_sin_len" >&6; }
b3076f16 8161if test $ac_cv_sin_len = yes ; then
8162
8163cat >>confdefs.h <<\_ACEOF
8164#define HAVE_SIN_LEN 1
8165_ACEOF
8166
8167fi
8168
a8b2ad8d 8169{ echo "$as_me:$LINENO: checking for socklen_t" >&5
8170echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
79886419 8171if test "${ac_cv_type_socklen_t+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173else
8174 cat >conftest.$ac_ext <<_ACEOF
8175/* confdefs.h. */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
8179/* end confdefs.h. */
8180#include <sys/types.h>
8181#include<sys/socket.h>
8182
a8b2ad8d 8183typedef socklen_t ac__type_new_;
79886419 8184int
8185main ()
8186{
a8b2ad8d 8187if ((ac__type_new_ *) 0)
79886419 8188 return 0;
a8b2ad8d 8189if (sizeof (ac__type_new_))
79886419 8190 return 0;
8191 ;
8192 return 0;
8193}
8194_ACEOF
8195rm -f conftest.$ac_objext
a8b2ad8d 8196if { (ac_try="$ac_compile"
8197case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200esac
8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
79886419 8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
a8b2ad8d 8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213esac
8214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
79886419 8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223esac
8224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
79886419 8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_type_socklen_t=yes
8230else
8231 echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
a8b2ad8d 8234 ac_cv_type_socklen_t=no
79886419 8235fi
a8b2ad8d 8236
8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 8238fi
a8b2ad8d 8239{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8240echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
79886419 8241if test $ac_cv_type_socklen_t = yes; then
8242 :
8243else
8244
a8b2ad8d 8245 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8246echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
79886419 8247 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250
8251 curl_cv_socklen_t_equiv=
8252 for arg2 in "struct sockaddr" void ; do
8253 for t in int size_t unsigned long "unsigned long" ; do
8254 cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8260#include <sys/types.h>
8261#include <sys/socket.h>
8262int getpeername (int $arg2 *, $t *);
8263int
8264main ()
8265{
8266$t len;
8267 getpeername(0, 0, &len);
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272rm -f conftest.$ac_objext
a8b2ad8d 8273if { (ac_try="$ac_compile"
8274case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_compile") 2>conftest.er1
79886419 8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
a8b2ad8d 8286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8287 { (case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290esac
8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_try") 2>&5
79886419 8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300esac
8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
79886419 8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 curl_cv_socklen_t_equiv="$t"
8307 break
8308else
8309 echo "$as_me: failed program was:" >&5
8310sed 's/^/| /' conftest.$ac_ext >&5
8311
a8b2ad8d 8312
79886419 8313fi
a8b2ad8d 8314
8315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 8316 done
8317 done
8318
8319fi
8320
a8b2ad8d 8321 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8322echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
79886419 8323
8324cat >>confdefs.h <<_ACEOF
8325#define socklen_t $curl_cv_socklen_t_equiv
8326_ACEOF
8327
8328fi
8329
8330
b3076f16 8331OLD_CFLAGS=$CFLAGS
8332CFLAGS="$CFLAGS -W -Wall -Werror"
8333
a8b2ad8d 8334{ echo "$as_me:$LINENO: checking for time_t format" >&5
8335echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
b3076f16 8336if test "${ac_cv_fmt_time_t+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338else
8339
8340ac_cv_fmt_time_t=no
8341cat >conftest.$ac_ext <<_ACEOF
8342#include <sys/types.h>
8343#include <stdio.h>
8344void myfunc(void) {
8345 time_t test=0;
8346 printf("%li", test);
8347}
8348_ACEOF
8349rm -f conftest.$ac_objext
a8b2ad8d 8350if { (ac_try="$ac_compile"
8351case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
b3076f16 8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
a8b2ad8d 8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
b3076f16 8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
b3076f16 8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_fmt_time_t="\"%li\""
8384else
8385 echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
a8b2ad8d 8388
b3076f16 8389fi
a8b2ad8d 8390
8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8392if test $ac_cv_fmt_time_t = no; then
8393cat >conftest.$ac_ext <<_ACEOF
8394#include <sys/types.h>
8395#include <stdio.h>
8396void myfunc(void) {
8397 time_t test=0;
8398 printf("%i", test);
8399}
8400_ACEOF
8401rm -f conftest.$ac_objext
a8b2ad8d 8402if { (ac_try="$ac_compile"
8403case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
b3076f16 8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
a8b2ad8d 8415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
b3076f16 8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8426 { (case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429esac
8430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_try") 2>&5
b3076f16 8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_fmt_time_t="\"%i\""
8436else
8437 echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
a8b2ad8d 8440
b3076f16 8441fi
a8b2ad8d 8442
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8444fi
8445if test $ac_cv_fmt_time_t = no; then
8446{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
8447Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
8448echo "$as_me: error: Cannot detect format string for time_t
8449Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
8450 { (exit 1); exit 1; }; }
8451fi
8452
8453fi
8454
8455
8456cat >>confdefs.h <<_ACEOF
8457#define FMT_TIME_T $ac_cv_fmt_time_t
8458_ACEOF
8459
a8b2ad8d 8460{ echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
8461echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
b3076f16 8462
a8b2ad8d 8463{ echo "$as_me:$LINENO: checking for va_copy" >&5
8464echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
b3076f16 8465if test "${ac_cv_c_va_copy+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467else
8468 cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474#include <stdarg.h>
8475int
8476main ()
8477{
8478va_list ap1, ap2; va_copy(ap1, ap2);
8479 ;
8480 return 0;
8481}
8482_ACEOF
8483rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8484if { (ac_try="$ac_link"
8485case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
b3076f16 8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
a8b2ad8d 8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501esac
8502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
b3076f16 8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511esac
8512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
b3076f16 8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_c_va_copy="yes"
8518else
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
a8b2ad8d 8522 ac_cv_c_va_copy="no"
b3076f16 8523
8524fi
a8b2ad8d 8525
8526rm -f core conftest.err conftest.$ac_objext \
b3076f16 8527 conftest$ac_exeext conftest.$ac_ext
8528fi
a8b2ad8d 8529{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8530echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
b3076f16 8531if test "$ac_cv_c_va_copy" = "yes" ; then
8532
8533cat >>confdefs.h <<\_ACEOF
8534#define HAVE_VA_COPY 1
8535_ACEOF
8536
8537fi
8538
a8b2ad8d 8539{ echo "$as_me:$LINENO: checking for __va_copy" >&5
8540echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
b3076f16 8541if test "${ac_cv_c___va_copy+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544 cat >conftest.$ac_ext <<_ACEOF
8545/* confdefs.h. */
8546_ACEOF
8547cat confdefs.h >>conftest.$ac_ext
8548cat >>conftest.$ac_ext <<_ACEOF
8549/* end confdefs.h. */
8550#include <stdarg.h>
8551int
8552main ()
8553{
8554va_list ap1, ap2; __va_copy(ap1, ap2);
8555 ;
8556 return 0;
8557}
8558_ACEOF
8559rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8560if { (ac_try="$ac_link"
8561case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564esac
8565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_link") 2>conftest.er1
b3076f16 8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
a8b2ad8d 8573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8574 { (case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577esac
8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_try") 2>&5
b3076f16 8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8584 { (case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587esac
8588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_try") 2>&5
b3076f16 8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_c___va_copy="yes"
8594else
8595 echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
a8b2ad8d 8598 ac_cv_c___va_copy="no"
b3076f16 8599
8600fi
a8b2ad8d 8601
8602rm -f core conftest.err conftest.$ac_objext \
b3076f16 8603 conftest$ac_exeext conftest.$ac_ext
8604fi
a8b2ad8d 8605{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8606echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
b3076f16 8607if test "$ac_cv_c___va_copy" = "yes" ; then
8608
8609cat >>confdefs.h <<\_ACEOF
8610#define HAVE___VA_COPY 1
8611_ACEOF
8612
8613fi
8614
8615CFLAGS=$OLD_CFLAGS
8616
a8b2ad8d 8617{ echo "$as_me:$LINENO: checking which malloc to use" >&5
8618echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
b3076f16 8619
a8b2ad8d 8620# Check whether --with-malloc was given.
b3076f16 8621if test "${with_malloc+set}" = set; then
a8b2ad8d 8622 withval=$with_malloc;
b3076f16 8623else
8624 withval="system"
a8b2ad8d 8625fi
8626
b3076f16 8627if test "x$withval" = "xsystem" ; then
a8b2ad8d 8628 { echo "$as_me:$LINENO: result: system" >&5
8629echo "${ECHO_T}system" >&6; }
b3076f16 8630
8631cat >>confdefs.h <<\_ACEOF
8632#define WITH_MALLOC_SYSTEM 1
8633_ACEOF
8634
5b1166fd 8635 x3_malloc="System"
b3076f16 8636elif test "x$withval" = "xdmalloc" ; then
a8b2ad8d 8637 { echo "$as_me:$LINENO: result: dmalloc" >&5
8638echo "${ECHO_T}dmalloc" >&6; }
b3076f16 8639
8640for ac_header in dmalloc.h
8641do
8642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648fi
a8b2ad8d 8649ac_res=`eval echo '${'$as_ac_Header'}'`
8650 { echo "$as_me:$LINENO: result: $ac_res" >&5
8651echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8652else
8653 # Is the header compilable?
a8b2ad8d 8654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8656cat >conftest.$ac_ext <<_ACEOF
8657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
8662$ac_includes_default
8663#include <$ac_header>
8664_ACEOF
8665rm -f conftest.$ac_objext
a8b2ad8d 8666if { (ac_try="$ac_compile"
8667case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670esac
8671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_compile") 2>conftest.er1
b3076f16 8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
a8b2ad8d 8679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8680 { (case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683esac
8684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_try") 2>&5
b3076f16 8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8690 { (case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693esac
8694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_try") 2>&5
b3076f16 8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_header_compiler=yes
8700else
8701 echo "$as_me: failed program was:" >&5
8702sed 's/^/| /' conftest.$ac_ext >&5
8703
a8b2ad8d 8704 ac_header_compiler=no
b3076f16 8705fi
a8b2ad8d 8706
8707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8710
8711# Is the header present?
a8b2ad8d 8712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8714cat >conftest.$ac_ext <<_ACEOF
8715/* confdefs.h. */
8716_ACEOF
8717cat confdefs.h >>conftest.$ac_ext
8718cat >>conftest.$ac_ext <<_ACEOF
8719/* end confdefs.h. */
8720#include <$ac_header>
8721_ACEOF
a8b2ad8d 8722if { (ac_try="$ac_cpp conftest.$ac_ext"
8723case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726esac
8727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } >/dev/null; then
8735 if test -s conftest.err; then
8736 ac_cpp_err=$ac_c_preproc_warn_flag
8737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8738 else
8739 ac_cpp_err=
8740 fi
8741else
8742 ac_cpp_err=yes
8743fi
8744if test -z "$ac_cpp_err"; then
8745 ac_header_preproc=yes
8746else
8747 echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_header_preproc=no
8751fi
a8b2ad8d 8752
b3076f16 8753rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8756
8757# So? What about this header?
8758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8759 yes:no: )
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8764 ac_header_preproc=yes
8765 ;;
8766 no:yes:* )
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8779 ( cat <<\_ASBOX
63c95a47 8780## -------------------------------------------------- ##
8781## Report this to evilnet-devel@lists.sourceforge.net ##
8782## -------------------------------------------------- ##
b3076f16 8783_ASBOX
a8b2ad8d 8784 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8785 ;;
8786esac
a8b2ad8d 8787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791else
8792 eval "$as_ac_Header=\$ac_header_preproc"
8793fi
a8b2ad8d 8794ac_res=`eval echo '${'$as_ac_Header'}'`
8795 { echo "$as_me:$LINENO: result: $ac_res" >&5
8796echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8797
8798fi
8799if test `eval echo '${'$as_ac_Header'}'` = yes; then
8800 cat >>confdefs.h <<_ACEOF
8801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8802_ACEOF
8803
8804else
8805 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8806echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8807 { (exit 1); exit 1; }; }
8808fi
8809
8810done
8811
8812
a8b2ad8d 8813{ echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8814echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
b3076f16 8815if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817else
8818 ac_check_lib_save_LIBS=$LIBS
8819LIBS="-ldmalloc $LIBS"
8820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826
a8b2ad8d 8827/* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
b3076f16 8830#ifdef __cplusplus
8831extern "C"
8832#endif
b3076f16 8833char malloc ();
8834int
8835main ()
8836{
a8b2ad8d 8837return malloc ();
b3076f16 8838 ;
8839 return 0;
8840}
8841_ACEOF
8842rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8843if { (ac_try="$ac_link"
8844case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847esac
8848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_link") 2>conftest.er1
b3076f16 8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
a8b2ad8d 8856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
b3076f16 8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870esac
8871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
b3076f16 8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_lib_dmalloc_malloc=yes
8877else
8878 echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
a8b2ad8d 8881 ac_cv_lib_dmalloc_malloc=no
b3076f16 8882fi
a8b2ad8d 8883
8884rm -f core conftest.err conftest.$ac_objext \
b3076f16 8885 conftest$ac_exeext conftest.$ac_ext
8886LIBS=$ac_check_lib_save_LIBS
8887fi
a8b2ad8d 8888{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8889echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
b3076f16 8890if test $ac_cv_lib_dmalloc_malloc = yes; then
8891 cat >>confdefs.h <<_ACEOF
8892#define HAVE_LIBDMALLOC 1
8893_ACEOF
8894
8895 LIBS="-ldmalloc $LIBS"
8896
8897else
8898 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8899echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8900 { (exit 1); exit 1; }; }
8901fi
8902
8903
8904cat >>confdefs.h <<\_ACEOF
8905#define WITH_MALLOC_DMALLOC 1
8906_ACEOF
8907
5b1166fd 8908 x3_malloc="DMalloc"
b3076f16 8909elif test "x$withval" = "xmpatrol" ; then
a8b2ad8d 8910 { echo "$as_me:$LINENO: result: mpatrol" >&5
8911echo "${ECHO_T}mpatrol" >&6; }
b3076f16 8912
8913for ac_header in mpatrol.h
8914do
8915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921fi
a8b2ad8d 8922ac_res=`eval echo '${'$as_ac_Header'}'`
8923 { echo "$as_me:$LINENO: result: $ac_res" >&5
8924echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8925else
8926 # Is the header compilable?
a8b2ad8d 8927{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
8935$ac_includes_default
8936#include <$ac_header>
8937_ACEOF
8938rm -f conftest.$ac_objext
a8b2ad8d 8939if { (ac_try="$ac_compile"
8940case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8943esac
8944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945 (eval "$ac_compile") 2>conftest.er1
b3076f16 8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
a8b2ad8d 8952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956esac
8957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
b3076f16 8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8963 { (case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966esac
8967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_try") 2>&5
b3076f16 8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_header_compiler=yes
8973else
8974 echo "$as_me: failed program was:" >&5
8975sed 's/^/| /' conftest.$ac_ext >&5
8976
a8b2ad8d 8977 ac_header_compiler=no
b3076f16 8978fi
a8b2ad8d 8979
8980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8983
8984# Is the header present?
a8b2ad8d 8985{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8987cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h. */
8993#include <$ac_header>
8994_ACEOF
a8b2ad8d 8995if { (ac_try="$ac_cpp conftest.$ac_ext"
8996case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999esac
9000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev/null; then
9008 if test -s conftest.err; then
9009 ac_cpp_err=$ac_c_preproc_warn_flag
9010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9011 else
9012 ac_cpp_err=
9013 fi
9014else
9015 ac_cpp_err=yes
9016fi
9017if test -z "$ac_cpp_err"; then
9018 ac_header_preproc=yes
9019else
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 ac_header_preproc=no
9024fi
a8b2ad8d 9025
b3076f16 9026rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9027{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9028echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9029
9030# So? What about this header?
9031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9032 yes:no: )
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9037 ac_header_preproc=yes
9038 ;;
9039 no:yes:* )
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9052 ( cat <<\_ASBOX
63c95a47 9053## -------------------------------------------------- ##
9054## Report this to evilnet-devel@lists.sourceforge.net ##
9055## -------------------------------------------------- ##
b3076f16 9056_ASBOX
a8b2ad8d 9057 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 9058 ;;
9059esac
a8b2ad8d 9060{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064else
9065 eval "$as_ac_Header=\$ac_header_preproc"
9066fi
a8b2ad8d 9067ac_res=`eval echo '${'$as_ac_Header'}'`
9068 { echo "$as_me:$LINENO: result: $ac_res" >&5
9069echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9070
9071fi
9072if test `eval echo '${'$as_ac_Header'}'` = yes; then
9073 cat >>confdefs.h <<_ACEOF
9074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075_ACEOF
9076
9077else
9078 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
9079echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
9080 { (exit 1); exit 1; }; }
9081fi
9082
9083done
9084
9085
a8b2ad8d 9086{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9087echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
b3076f16 9088if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091 ac_check_lib_save_LIBS=$LIBS
9092LIBS="-lelf $LIBS"
9093cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099
a8b2ad8d 9100/* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
b3076f16 9103#ifdef __cplusplus
9104extern "C"
9105#endif
b3076f16 9106char elf_begin ();
9107int
9108main ()
9109{
a8b2ad8d 9110return elf_begin ();
b3076f16 9111 ;
9112 return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9116if { (ac_try="$ac_link"
9117case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120esac
9121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_link") 2>conftest.er1
b3076f16 9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
a8b2ad8d 9129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9130 { (case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133esac
9134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_try") 2>&5
b3076f16 9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9140 { (case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143esac
9144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_try") 2>&5
b3076f16 9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_lib_elf_elf_begin=yes
9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
a8b2ad8d 9154 ac_cv_lib_elf_elf_begin=no
b3076f16 9155fi
a8b2ad8d 9156
9157rm -f core conftest.err conftest.$ac_objext \
b3076f16 9158 conftest$ac_exeext conftest.$ac_ext
9159LIBS=$ac_check_lib_save_LIBS
9160fi
a8b2ad8d 9161{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
9162echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
b3076f16 9163if test $ac_cv_lib_elf_elf_begin = yes; then
9164 cat >>confdefs.h <<_ACEOF
9165#define HAVE_LIBELF 1
9166_ACEOF
9167
9168 LIBS="-lelf $LIBS"
9169
9170fi
9171
9172
a8b2ad8d 9173{ echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
9174echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
b3076f16 9175if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177else
9178 ac_check_lib_save_LIBS=$LIBS
9179LIBS="-lmpatrol $LIBS"
9180cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */
9186
a8b2ad8d 9187/* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
b3076f16 9190#ifdef __cplusplus
9191extern "C"
9192#endif
b3076f16 9193char __mp_atexit ();
9194int
9195main ()
9196{
a8b2ad8d 9197return __mp_atexit ();
b3076f16 9198 ;
9199 return 0;
9200}
9201_ACEOF
9202rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9203if { (ac_try="$ac_link"
9204case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207esac
9208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_link") 2>conftest.er1
b3076f16 9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
a8b2ad8d 9216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9217 { (case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220esac
9221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_try") 2>&5
b3076f16 9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9227 { (case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230esac
9231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_try") 2>&5
b3076f16 9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_lib_mpatrol___mp_atexit=yes
9237else
9238 echo "$as_me: failed program was:" >&5
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
a8b2ad8d 9241 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 9242fi
a8b2ad8d 9243
9244rm -f core conftest.err conftest.$ac_objext \
b3076f16 9245 conftest$ac_exeext conftest.$ac_ext
9246LIBS=$ac_check_lib_save_LIBS
9247fi
a8b2ad8d 9248{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
9249echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
b3076f16 9250if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
9251 cat >>confdefs.h <<_ACEOF
9252#define HAVE_LIBMPATROL 1
9253_ACEOF
9254
9255 LIBS="-lmpatrol $LIBS"
9256
9257else
9258 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
9259echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
9260 { (exit 1); exit 1; }; }
9261fi
9262
9263
9264cat >>confdefs.h <<\_ACEOF
9265#define WITH_MALLOC_MPATROL 1
9266_ACEOF
9267
5b1166fd 9268 x3_malloc="MPatrol"
b3076f16 9269elif test "x$withval" = "xboehm-gc" ; then
a8b2ad8d 9270 { echo "$as_me:$LINENO: result: boehm-gc" >&5
9271echo "${ECHO_T}boehm-gc" >&6; }
b3076f16 9272
9273for ac_header in gc/gc.h
9274do
9275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 9276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281fi
a8b2ad8d 9282ac_res=`eval echo '${'$as_ac_Header'}'`
9283 { echo "$as_me:$LINENO: result: $ac_res" >&5
9284echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9285else
9286 # Is the header compilable?
a8b2ad8d 9287{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 9289cat >conftest.$ac_ext <<_ACEOF
9290/* confdefs.h. */
9291_ACEOF
9292cat confdefs.h >>conftest.$ac_ext
9293cat >>conftest.$ac_ext <<_ACEOF
9294/* end confdefs.h. */
9295$ac_includes_default
9296#include <$ac_header>
9297_ACEOF
9298rm -f conftest.$ac_objext
a8b2ad8d 9299if { (ac_try="$ac_compile"
9300case "(($ac_try" in
9301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9303esac
9304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_compile") 2>conftest.er1
b3076f16 9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
a8b2ad8d 9312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316esac
9317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
b3076f16 9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; } &&
9322 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 9323 { (case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326esac
9327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_try") 2>&5
b3076f16 9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_header_compiler=yes
9333else
9334 echo "$as_me: failed program was:" >&5
9335sed 's/^/| /' conftest.$ac_ext >&5
9336
a8b2ad8d 9337 ac_header_compiler=no
b3076f16 9338fi
a8b2ad8d 9339
9340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9342echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 9343
9344# Is the header present?
a8b2ad8d 9345{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 9347cat >conftest.$ac_ext <<_ACEOF
9348/* confdefs.h. */
9349_ACEOF
9350cat confdefs.h >>conftest.$ac_ext
9351cat >>conftest.$ac_ext <<_ACEOF
9352/* end confdefs.h. */
9353#include <$ac_header>
9354_ACEOF
a8b2ad8d 9355if { (ac_try="$ac_cpp conftest.$ac_ext"
9356case "(($ac_try" in
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9359esac
9360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } >/dev/null; then
9368 if test -s conftest.err; then
9369 ac_cpp_err=$ac_c_preproc_warn_flag
9370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371 else
9372 ac_cpp_err=
9373 fi
9374else
9375 ac_cpp_err=yes
9376fi
9377if test -z "$ac_cpp_err"; then
9378 ac_header_preproc=yes
9379else
9380 echo "$as_me: failed program was:" >&5
9381sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 ac_header_preproc=no
9384fi
a8b2ad8d 9385
b3076f16 9386rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9387{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9388echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9389
9390# So? What about this header?
9391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9392 yes:no: )
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9397 ac_header_preproc=yes
9398 ;;
9399 no:yes:* )
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9403echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9407echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9412 ( cat <<\_ASBOX
63c95a47 9413## -------------------------------------------------- ##
9414## Report this to evilnet-devel@lists.sourceforge.net ##
9415## -------------------------------------------------- ##
b3076f16 9416_ASBOX
a8b2ad8d 9417 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 9418 ;;
9419esac
a8b2ad8d 9420{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425 eval "$as_ac_Header=\$ac_header_preproc"
9426fi
a8b2ad8d 9427ac_res=`eval echo '${'$as_ac_Header'}'`
9428 { echo "$as_me:$LINENO: result: $ac_res" >&5
9429echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9430
9431fi
9432if test `eval echo '${'$as_ac_Header'}'` = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9435_ACEOF
9436
9437else
9438 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
9439echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
9440 { (exit 1); exit 1; }; }
9441fi
9442
9443done
9444
9445
a8b2ad8d 9446{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9447echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
b3076f16 9448if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9450else
9451 ac_check_lib_save_LIBS=$LIBS
9452LIBS="-ldl $LIBS"
9453cat >conftest.$ac_ext <<_ACEOF
9454/* confdefs.h. */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h. */
9459
a8b2ad8d 9460/* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
b3076f16 9463#ifdef __cplusplus
9464extern "C"
9465#endif
b3076f16 9466char dlopen ();
9467int
9468main ()
9469{
a8b2ad8d 9470return dlopen ();
b3076f16 9471 ;
9472 return 0;
9473}
9474_ACEOF
9475rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9476if { (ac_try="$ac_link"
9477case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480esac
9481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_link") 2>conftest.er1
b3076f16 9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
a8b2ad8d 9489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9490 { (case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493esac
9494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_try") 2>&5
b3076f16 9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9500 { (case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503esac
9504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_try") 2>&5
b3076f16 9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_lib_dl_dlopen=yes
9510else
9511 echo "$as_me: failed program was:" >&5
9512sed 's/^/| /' conftest.$ac_ext >&5
9513
a8b2ad8d 9514 ac_cv_lib_dl_dlopen=no
b3076f16 9515fi
a8b2ad8d 9516
9517rm -f core conftest.err conftest.$ac_objext \
b3076f16 9518 conftest$ac_exeext conftest.$ac_ext
9519LIBS=$ac_check_lib_save_LIBS
9520fi
a8b2ad8d 9521{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9522echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
b3076f16 9523if test $ac_cv_lib_dl_dlopen = yes; then
9524 cat >>confdefs.h <<_ACEOF
9525#define HAVE_LIBDL 1
9526_ACEOF
9527
9528 LIBS="-ldl $LIBS"
9529
9530else
9531 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
9532echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
9533 { (exit 1); exit 1; }; }
9534fi
9535
9536
a8b2ad8d 9537{ echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
9538echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
b3076f16 9539if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542 ac_check_lib_save_LIBS=$LIBS
9543LIBS="-lgc $LIBS"
9544cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h. */
9550
a8b2ad8d 9551/* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
b3076f16 9554#ifdef __cplusplus
9555extern "C"
9556#endif
b3076f16 9557char GC_gcollect ();
9558int
9559main ()
9560{
a8b2ad8d 9561return GC_gcollect ();
b3076f16 9562 ;
9563 return 0;
9564}
9565_ACEOF
9566rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9567if { (ac_try="$ac_link"
9568case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_link") 2>conftest.er1
b3076f16 9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
a8b2ad8d 9580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9581 { (case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584esac
9585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_try") 2>&5
b3076f16 9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9591 { (case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_try") 2>&5
b3076f16 9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_gc_GC_gcollect=yes
9601else
9602 echo "$as_me: failed program was:" >&5
9603sed 's/^/| /' conftest.$ac_ext >&5
9604
a8b2ad8d 9605 ac_cv_lib_gc_GC_gcollect=no
b3076f16 9606fi
a8b2ad8d 9607
9608rm -f core conftest.err conftest.$ac_objext \
b3076f16 9609 conftest$ac_exeext conftest.$ac_ext
9610LIBS=$ac_check_lib_save_LIBS
9611fi
a8b2ad8d 9612{ echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
9613echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
b3076f16 9614if test $ac_cv_lib_gc_GC_gcollect = yes; then
9615 cat >>confdefs.h <<_ACEOF
9616#define HAVE_LIBGC 1
9617_ACEOF
9618
9619 LIBS="-lgc $LIBS"
9620
9621else
9622 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
9623echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
9624 { (exit 1); exit 1; }; }
9625fi
9626
9627
9628cat >>confdefs.h <<\_ACEOF
9629#define WITH_MALLOC_BOEHM_GC 1
9630_ACEOF
9631
5b1166fd 9632 x3_malloc="Boehm"
b8cb2a14 9633elif test "x$withval" = "xx3" ; then
a8b2ad8d 9634 { echo "$as_me:$LINENO: result: x3" >&5
9635echo "${ECHO_T}x3" >&6; }
ec1a68c8 9636
9637cat >>confdefs.h <<\_ACEOF
b8cb2a14 9638#define WITH_MALLOC_X3 1
ec1a68c8 9639_ACEOF
9640
b8cb2a14 9641 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 9642 x3_malloc="X3"
ceafd592 9643elif test "x$withval" = "xslab" ; then
a8b2ad8d 9644 { echo "$as_me:$LINENO: result: slab" >&5
9645echo "${ECHO_T}slab" >&6; }
ceafd592 9646
9647cat >>confdefs.h <<\_ACEOF
9648#define WITH_MALLOC_SLAB 1
9649_ACEOF
9650
9651 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 9652 x3_malloc="Slab"
b3076f16 9653else
9654 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
9655echo "$as_me: error: Unknown malloc type $withval" >&2;}
9656 { (exit 1); exit 1; }; }
9657fi
9658
a8b2ad8d 9659{ echo "$as_me:$LINENO: checking which protocol to use" >&5
9660echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
b3076f16 9661
a8b2ad8d 9662# Check whether --with-protocol was given.
b3076f16 9663if test "${with_protocol+set}" = set; then
a8b2ad8d 9664 withval=$with_protocol;
b3076f16 9665else
9666 withval="p10"
a8b2ad8d 9667fi
9668
b3076f16 9669if test "x$withval" = "xp10" ; then
a8b2ad8d 9670 { echo "$as_me:$LINENO: result: P10" >&5
9671echo "${ECHO_T}P10" >&6; }
b3076f16 9672
9673cat >>confdefs.h <<\_ACEOF
9674#define WITH_PROTOCOL_P10 1
9675_ACEOF
9676
2f61d1d7 9677 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
b3076f16 9678 PROTO_FILES=proto-p10.c
5b1166fd 9679 x3_ircd="P10"
b3076f16 9680else
9681 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
9682echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
9683 { (exit 1); exit 1; }; }
9684fi
9685
9686
a8b2ad8d 9687# Check whether --with-getopt was given.
b3076f16 9688if test "${with_getopt+set}" = set; then
a8b2ad8d 9689 withval=$with_getopt; if test "$withval" = no; then
b3076f16 9690
9691cat >>confdefs.h <<\_ACEOF
9692#define IGNORE_GETOPT 1
9693_ACEOF
9694
9695fi
a8b2ad8d 9696fi
b3076f16 9697
b3076f16 9698
a8b2ad8d 9699{ echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
9700echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
9701# Check whether --enable-tokens was given.
9702if test "${enable_tokens+set}" = set; then
9703 enableval=$enable_tokens;
b3076f16 9704else
9705 enableval=yes
a8b2ad8d 9706fi
9707
b3076f16 9708if test "z$enableval" = zno ; then
a8b2ad8d 9709 { echo "$as_me:$LINENO: result: no" >&5
9710echo "${ECHO_T}no" >&6; }
b3076f16 9711else
9712
9713cat >>confdefs.h <<\_ACEOF
9714#define ENABLE_TOKENS 1
9715_ACEOF
9716
a8b2ad8d 9717 { echo "$as_me:$LINENO: result: yes" >&5
9718echo "${ECHO_T}yes" >&6; }
b3076f16 9719fi
9720
a8b2ad8d 9721{ echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
9722echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
9723# Check whether --enable-debug was given.
b3076f16 9724if test "${enable_debug+set}" = set; then
a8b2ad8d 9725 enableval=$enable_debug;
b3076f16 9726 CPPFLAGS="$CPPFLAGS"
a8b2ad8d 9727 { echo "$as_me:$LINENO: result: yes" >&5
9728echo "${ECHO_T}yes" >&6; }
5b1166fd 9729 x3_debug="Enabled"
b3076f16 9730
9731else
9732
9733 CPPFLAGS="$CPPFLAGS -DNDEBUG"
a8b2ad8d 9734 { echo "$as_me:$LINENO: result: no" >&5
9735echo "${ECHO_T}no" >&6; }
5b1166fd 9736 x3_debug="Disabled"
b3076f16 9737
a8b2ad8d 9738fi
9739
b3076f16 9740
9741if test -e src ; then
9742 if test ! -d src ; then
9743 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
9744echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
9745 { (exit 1); exit 1; }; }
9746 fi
9747else
9748 mkdir src
9749fi
a8b2ad8d 9750{ echo "$as_me:$LINENO: checking for extra module files" >&5
9751echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
b3076f16 9752MODULE_DEFINES="src/modules-list.h"
9753echo > $MODULE_DEFINES
9754touch $MODULE_DEFINES
a8b2ad8d 9755# Check whether --enable-modules was given.
b3076f16 9756if test "${enable_modules+set}" = set; then
a8b2ad8d 9757 enableval=$enable_modules;
b3076f16 9758 OIFS="$IFS"
9759 IFS=','
9760 EXTRA_MODULE_OBJS=""
9761 module_list=""
9762 for module in $enableval ; do
9763 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
2f61d1d7 9764 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
b3076f16 9765 module_list="$module_list $module"
9766 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
ec311f39 9767 if test "x$module" = "xtrack" ; then
9768 TRACK="-D HAVE_TRACK"
9769 fi
b3076f16 9770 done
9771 IFS="$OIFS"
9772 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
a8b2ad8d 9773 { echo "$as_me:$LINENO: result: $module_list" >&5
9774echo "${ECHO_T}$module_list" >&6; }
b3076f16 9775
9776else
9777
a8b2ad8d 9778 { echo "$as_me:$LINENO: result: none" >&5
9779echo "${ECHO_T}none" >&6; }
9780
9781fi
b3076f16 9782
b3076f16 9783
9784MY_SUBDIRS=""
9785RX_INCLUDES=""
9786RX_LIBS=""
9787if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9788 MY_SUBDIRS="rx $MY_SUBDIRS"
9789 RX_INCLUDES="-I../rx"
9790 RX_LIBS="../rx/librx.a"
9791fi
9792MY_SUBDIRS="$MY_SUBDIRS src"
9793CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9794if test "z$USE_MAINTAINER_MODE" = zyes ; then
9795 CFLAGS="$CFLAGS -Werror"
9796fi
9797
35305a49 9798
a8b2ad8d 9799tre_version="0.7.5"
35305a49 9800withval=''
9801
a8b2ad8d 9802# Check whether --with-tre was given.
35305a49 9803if test "${with_tre+set}" = set; then
a8b2ad8d 9804 withval=$with_tre;
9805fi
35305a49 9806
35305a49 9807if test "x$withval" != "x"; then
a8b2ad8d 9808 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9809echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
35305a49 9810 CPPFLAGS="-I$withval/include -L$withval/lib"
0754f993 9811 LIBS="$LIBS -L$withval/lib"
35305a49 9812else
a8b2ad8d 9813 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9814echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
35305a49 9815 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
0754f993 9816 LIBS="$LIBS -L${HOME}/lib"
35305a49 9817fi
9818if test "${ac_cv_header_tre_regex_h+set}" = set; then
a8b2ad8d 9819 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9820echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
35305a49 9821if test "${ac_cv_header_tre_regex_h+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823fi
a8b2ad8d 9824{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9825echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
35305a49 9826else
9827 # Is the header compilable?
a8b2ad8d 9828{ echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9829echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
35305a49 9830cat >conftest.$ac_ext <<_ACEOF
9831/* confdefs.h. */
9832_ACEOF
9833cat confdefs.h >>conftest.$ac_ext
9834cat >>conftest.$ac_ext <<_ACEOF
9835/* end confdefs.h. */
9836$ac_includes_default
9837#include <tre/regex.h>
9838_ACEOF
9839rm -f conftest.$ac_objext
a8b2ad8d 9840if { (ac_try="$ac_compile"
9841case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844esac
9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_compile") 2>conftest.er1
35305a49 9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
a8b2ad8d 9853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857esac
9858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
35305a49 9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867esac
9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
35305a49 9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_header_compiler=yes
9874else
9875 echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
a8b2ad8d 9878 ac_header_compiler=no
35305a49 9879fi
a8b2ad8d 9880
9881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9883echo "${ECHO_T}$ac_header_compiler" >&6; }
35305a49 9884
9885# Is the header present?
a8b2ad8d 9886{ echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9887echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
35305a49 9888cat >conftest.$ac_ext <<_ACEOF
9889/* confdefs.h. */
9890_ACEOF
9891cat confdefs.h >>conftest.$ac_ext
9892cat >>conftest.$ac_ext <<_ACEOF
9893/* end confdefs.h. */
9894#include <tre/regex.h>
9895_ACEOF
a8b2ad8d 9896if { (ac_try="$ac_cpp conftest.$ac_ext"
9897case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35305a49 9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } >/dev/null; then
9909 if test -s conftest.err; then
9910 ac_cpp_err=$ac_c_preproc_warn_flag
9911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9912 else
9913 ac_cpp_err=
9914 fi
9915else
9916 ac_cpp_err=yes
9917fi
9918if test -z "$ac_cpp_err"; then
9919 ac_header_preproc=yes
9920else
9921 echo "$as_me: failed program was:" >&5
9922sed 's/^/| /' conftest.$ac_ext >&5
9923
9924 ac_header_preproc=no
9925fi
a8b2ad8d 9926
35305a49 9927rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9929echo "${ECHO_T}$ac_header_preproc" >&6; }
35305a49 9930
9931# So? What about this header?
9932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9933 yes:no: )
9934 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9935echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9937echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
9938 ac_header_preproc=yes
9939 ;;
9940 no:yes:* )
9941 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9942echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9944echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9946echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9948echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9950echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9952echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9953 ( cat <<\_ASBOX
35305a49 9954## -------------------------------------------------- ##
9955## Report this to evilnet-devel@lists.sourceforge.net ##
9956## -------------------------------------------------- ##
9957_ASBOX
a8b2ad8d 9958 ) | sed "s/^/$as_me: WARNING: /" >&2
35305a49 9959 ;;
9960esac
a8b2ad8d 9961{ echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9962echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
35305a49 9963if test "${ac_cv_header_tre_regex_h+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966 ac_cv_header_tre_regex_h=$ac_header_preproc
9967fi
a8b2ad8d 9968{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9969echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
35305a49 9970
9971fi
9972if test $ac_cv_header_tre_regex_h = yes; then
9973 :
9974else
9975 { { 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
9976echo "$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;}
9977 { (exit 1); exit 1; }; }
9978fi
9979
9980
9981
a8b2ad8d 9982{ echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9983echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
35305a49 9984if test "${ac_cv_lib_tre_regexec+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986else
9987 ac_check_lib_save_LIBS=$LIBS
9988LIBS="-ltre $LIBS"
9989cat >conftest.$ac_ext <<_ACEOF
9990/* confdefs.h. */
9991_ACEOF
9992cat confdefs.h >>conftest.$ac_ext
9993cat >>conftest.$ac_ext <<_ACEOF
9994/* end confdefs.h. */
9995
a8b2ad8d 9996/* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
35305a49 9999#ifdef __cplusplus
10000extern "C"
10001#endif
35305a49 10002char regexec ();
10003int
10004main ()
10005{
a8b2ad8d 10006return regexec ();
35305a49 10007 ;
10008 return 0;
10009}
10010_ACEOF
10011rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 10012if { (ac_try="$ac_link"
10013case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10016esac
10017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_link") 2>conftest.er1
35305a49 10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
a8b2ad8d 10025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026 { (case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029esac
10030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_try") 2>&5
35305a49 10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; } &&
10035 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039esac
10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
35305a49 10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_lib_tre_regexec=yes
5b1166fd 10046else
35305a49 10047 echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
a8b2ad8d 10050 ac_cv_lib_tre_regexec=no
35305a49 10051fi
a8b2ad8d 10052
10053rm -f core conftest.err conftest.$ac_objext \
35305a49 10054 conftest$ac_exeext conftest.$ac_ext
10055LIBS=$ac_check_lib_save_LIBS
5b1166fd 10056fi
a8b2ad8d 10057{ echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
10058echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
35305a49 10059if test $ac_cv_lib_tre_regexec = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061#define HAVE_LIBTRE 1
10062_ACEOF
10063
10064 LIBS="-ltre $LIBS"
5b1166fd 10065
5b1166fd 10066else
35305a49 10067 { { 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
10068echo "$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;}
10069 { (exit 1); exit 1; }; }
5b1166fd 10070fi
10071
5b1166fd 10072
a8b2ad8d 10073core_version="0.2"
10074withval=''
b3076f16 10075
a8b2ad8d 10076# Check whether --with-coredumper was given.
10077if test "${with_coredumper+set}" = set; then
10078 withval=$with_coredumper;
10079fi
b3076f16 10080
a8b2ad8d 10081if test "x$withval" != "x"; then
10082 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
10083echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
10084 CPPFLAGS="-I$withval/include -L$withval/lib"
10085 LIBS="$LIBS -L$withval/lib"
10086else
10087 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
10088echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
10089 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
10090 LIBS="$LIBS -L${HOME}/lib"
10091fi
10092if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10093 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10094echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10095if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097fi
10098{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10099echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10100else
10101 # Is the header compilable?
10102{ echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
10103echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
10104cat >conftest.$ac_ext <<_ACEOF
10105/* confdefs.h. */
10106_ACEOF
10107cat confdefs.h >>conftest.$ac_ext
10108cat >>conftest.$ac_ext <<_ACEOF
10109/* end confdefs.h. */
10110$ac_includes_default
10111#include <google/coredumper.h>
10112_ACEOF
10113rm -f conftest.$ac_objext
10114if { (ac_try="$ac_compile"
10115case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118esac
10119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_compile") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10128 { (case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131esac
10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_try") 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest.$ac_objext'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141esac
10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_header_compiler=yes
10148else
10149 echo "$as_me: failed program was:" >&5
10150sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10151
a8b2ad8d 10152 ac_header_compiler=no
10153fi
b3076f16 10154
a8b2ad8d 10155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 10158
a8b2ad8d 10159# Is the header present?
10160{ echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
10161echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
10162cat >conftest.$ac_ext <<_ACEOF
10163/* confdefs.h. */
10164_ACEOF
10165cat confdefs.h >>conftest.$ac_ext
10166cat >>conftest.$ac_ext <<_ACEOF
10167/* end confdefs.h. */
10168#include <google/coredumper.h>
10169_ACEOF
10170if { (ac_try="$ac_cpp conftest.$ac_ext"
10171case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174esac
10175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } >/dev/null; then
10183 if test -s conftest.err; then
10184 ac_cpp_err=$ac_c_preproc_warn_flag
10185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10186 else
10187 ac_cpp_err=
10188 fi
10189else
10190 ac_cpp_err=yes
10191fi
10192if test -z "$ac_cpp_err"; then
10193 ac_header_preproc=yes
10194else
10195 echo "$as_me: failed program was:" >&5
10196sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10197
a8b2ad8d 10198 ac_header_preproc=no
10199fi
ec311f39 10200
a8b2ad8d 10201rm -f conftest.err conftest.$ac_ext
10202{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10203echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 10204
a8b2ad8d 10205# So? What about this header?
10206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10207 yes:no: )
10208 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
10209echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
10211echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
10212 ac_header_preproc=yes
10213 ;;
10214 no:yes:* )
10215 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
10216echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
10218echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
10220echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
10222echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
10224echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
10226echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
10227 ( cat <<\_ASBOX
10228## -------------------------------------------------- ##
10229## Report this to evilnet-devel@lists.sourceforge.net ##
10230## -------------------------------------------------- ##
10231_ASBOX
10232 ) | sed "s/^/$as_me: WARNING: /" >&2
10233 ;;
10234esac
10235{ echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10236echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10237if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239else
10240 ac_cv_header_google_coredumper_h=$ac_header_preproc
10241fi
10242{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10243echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10244
10245fi
10246if test $ac_cv_header_google_coredumper_h = yes; then
10247 :
10248else
d82cf2f0 10249 { 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
10250echo "${ECHO_T}google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
a8b2ad8d 10251fi
10252
10253
10254
10255{ echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
10256echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
10257if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259else
10260 ac_check_lib_save_LIBS=$LIBS
10261LIBS="-lcoredumper $LIBS"
10262cat >conftest.$ac_ext <<_ACEOF
10263/* confdefs.h. */
10264_ACEOF
10265cat confdefs.h >>conftest.$ac_ext
10266cat >>conftest.$ac_ext <<_ACEOF
10267/* end confdefs.h. */
10268
10269/* Override any GCC internal prototype to avoid an error.
10270 Use char because int might match the return type of a GCC
10271 builtin and then its argument prototype would still apply. */
10272#ifdef __cplusplus
10273extern "C"
10274#endif
10275char WriteCoreDump ();
10276int
10277main ()
10278{
10279return WriteCoreDump ();
10280 ;
10281 return 0;
10282}
10283_ACEOF
10284rm -f conftest.$ac_objext conftest$ac_exeext
10285if { (ac_try="$ac_link"
10286case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289esac
10290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_link") 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10299 { (case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302esac
10303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_try") 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312esac
10313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_lib_coredumper_WriteCoreDump=yes
10319else
10320 echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 ac_cv_lib_coredumper_WriteCoreDump=no
10324fi
10325
10326rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328LIBS=$ac_check_lib_save_LIBS
10329fi
10330{ echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
10331echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
10332if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
10333 cat >>confdefs.h <<_ACEOF
10334#define HAVE_LIBCOREDUMPER 1
10335_ACEOF
10336
10337 LIBS="-lcoredumper $LIBS"
10338
10339else
d82cf2f0 10340 { 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
10341echo "${ECHO_T}Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
a8b2ad8d 10342fi
10343
10344
10345
10346cat >>confdefs.h <<_ACEOF
10347#define CODENAME "${CODENAME}"
10348_ACEOF
10349
10350
10351
10352
10353
10354
10355ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10356
10357cat >confcache <<\_ACEOF
10358# This file is a shell script that caches the results of configure
10359# tests run on this system so they can be shared between configure
10360# scripts and configure runs, see configure's option --config-cache.
10361# It is not useful on other systems. If it contains results you don't
10362# want to keep, you may remove or edit it.
10363#
b3076f16 10364# config.status only pays attention to the cache file if you give it
10365# the --recheck option to rerun configure.
10366#
10367# `ac_cv_env_foo' variables (set or unset) will be overridden when
10368# loading this file, other *unset* `ac_cv_foo' will be assigned the
10369# following values.
10370
10371_ACEOF
10372
10373# The following way of writing the cache mishandles newlines in values,
10374# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 10375# So, we kill variables containing newlines.
b3076f16 10376# Ultrix sh set writes to stderr and can't be redirected directly,
10377# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 10378(
10379 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10380 eval ac_val=\$$ac_var
10381 case $ac_val in #(
10382 *${as_nl}*)
10383 case $ac_var in #(
10384 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10385echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10386 esac
10387 case $ac_var in #(
10388 _ | IFS | as_nl) ;; #(
10389 *) $as_unset $ac_var ;;
10390 esac ;;
10391 esac
10392 done
10393
b3076f16 10394 (set) 2>&1 |
a8b2ad8d 10395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10396 *${as_nl}ac_space=\ *)
b3076f16 10397 # `set' does not quote correctly, so add quotes (double-quote
10398 # substitution turns \\\\ into \\, and sed turns \\ into \).
10399 sed -n \
10400 "s/'/'\\\\''/g;
10401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 10402 ;; #(
b3076f16 10403 *)
10404 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 10405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 10406 ;;
a8b2ad8d 10407 esac |
10408 sort
10409) |
b3076f16 10410 sed '
a8b2ad8d 10411 /^ac_cv_env_/b end
b3076f16 10412 t clear
a8b2ad8d 10413 :clear
b3076f16 10414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10415 t end
a8b2ad8d 10416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10417 :end' >>confcache
10418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10419 if test -w "$cache_file"; then
10420 test "x$cache_file" != "x/dev/null" &&
10421 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10422echo "$as_me: updating cache $cache_file" >&6;}
b3076f16 10423 cat confcache >$cache_file
10424 else
a8b2ad8d 10425 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10426echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 10427 fi
10428fi
10429rm -f confcache
10430
10431test "x$prefix" = xNONE && prefix=$ac_default_prefix
10432# Let make expand exec_prefix.
10433test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10434
b3076f16 10435DEFS=-DHAVE_CONFIG_H
10436
10437ac_libobjs=
10438ac_ltlibobjs=
10439for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10440 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 10441 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10442 ac_i=`echo "$ac_i" | sed "$ac_script"`
10443 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10444 # will be set to the directory where LIBOBJS objects are built.
10445 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10446 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 10447done
10448LIBOBJS=$ac_libobjs
10449
10450LTLIBOBJS=$ac_ltlibobjs
10451
10452
ec1a68c8 10453if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10454 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10455Usually this means the macro was only invoked conditionally." >&5
10456echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10457Usually this means the macro was only invoked conditionally." >&2;}
10458 { (exit 1); exit 1; }; }
10459fi
10460if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10461 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10462Usually this means the macro was only invoked conditionally." >&5
10463echo "$as_me: error: conditional \"AMDEP\" was never defined.
10464Usually this means the macro was only invoked conditionally." >&2;}
10465 { (exit 1); exit 1; }; }
10466fi
10467if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10468 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10469Usually this means the macro was only invoked conditionally." >&5
10470echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10471Usually this means the macro was only invoked conditionally." >&2;}
10472 { (exit 1); exit 1; }; }
10473fi
10474if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10475 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10476Usually this means the macro was only invoked conditionally." >&5
10477echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10478Usually this means the macro was only invoked conditionally." >&2;}
10479 { (exit 1); exit 1; }; }
10480fi
b3076f16 10481
10482: ${CONFIG_STATUS=./config.status}
10483ac_clean_files_save=$ac_clean_files
10484ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10485{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10486echo "$as_me: creating $CONFIG_STATUS" >&6;}
10487cat >$CONFIG_STATUS <<_ACEOF
10488#! $SHELL
10489# Generated by $as_me.
10490# Run this file to recreate the current configuration.
10491# Compiler output produced by configure, useful for debugging
10492# configure, is in config.log if it exists.
10493
10494debug=false
10495ac_cs_recheck=false
10496ac_cs_silent=false
10497SHELL=\${CONFIG_SHELL-$SHELL}
10498_ACEOF
10499
10500cat >>$CONFIG_STATUS <<\_ACEOF
10501## --------------------- ##
10502## M4sh Initialization. ##
10503## --------------------- ##
10504
10505# Be Bourne compatible
10506if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10507 emulate sh
10508 NULLCMD=:
10509 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10510 # is contrary to our usage. Disable this feature.
10511 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 10512 setopt NO_GLOB_SUBST
10513else
10514 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
b3076f16 10515fi
a8b2ad8d 10516BIN_SH=xpg4; export BIN_SH # for Tru64
b3076f16 10517DUALCASE=1; export DUALCASE # for MKS sh
10518
a8b2ad8d 10519
10520# PATH needs CR
10521# Avoid depending upon Character Ranges.
10522as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10524as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10525as_cr_digits='0123456789'
10526as_cr_alnum=$as_cr_Letters$as_cr_digits
10527
10528# The user is always right.
10529if test "${PATH_SEPARATOR+set}" != set; then
10530 echo "#! /bin/sh" >conf$$.sh
10531 echo "exit 0" >>conf$$.sh
10532 chmod +x conf$$.sh
10533 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10534 PATH_SEPARATOR=';'
10535 else
10536 PATH_SEPARATOR=:
10537 fi
10538 rm -f conf$$.sh
10539fi
10540
b3076f16 10541# Support unset when possible.
10542if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10543 as_unset=unset
10544else
10545 as_unset=false
10546fi
10547
10548
a8b2ad8d 10549# IFS
10550# We need space, tab and new line, in precisely that order. Quoting is
10551# there to prevent editors from complaining about space-tab.
10552# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10553# splitting by setting IFS to empty value.)
10554as_nl='
10555'
10556IFS=" "" $as_nl"
10557
10558# Find who we are. Look in the path if we contain no directory separator.
10559case $0 in
10560 *[\\/]* ) as_myself=$0 ;;
10561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10567done
10568IFS=$as_save_IFS
10569
10570 ;;
10571esac
10572# We did not find ourselves, most probably we were run as `sh COMMAND'
10573# in which case we are not to be found in the path.
10574if test "x$as_myself" = x; then
10575 as_myself=$0
10576fi
10577if test ! -f "$as_myself"; then
10578 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10579 { (exit 1); exit 1; }
10580fi
10581
b3076f16 10582# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 10583for as_var in ENV MAIL MAILPATH
10584do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10585done
b3076f16 10586PS1='$ '
10587PS2='> '
10588PS4='+ '
10589
10590# NLS nuisances.
10591for as_var in \
10592 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10593 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10594 LC_TELEPHONE LC_TIME
10595do
10596 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10597 eval $as_var=C; export $as_var
10598 else
a8b2ad8d 10599 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 10600 fi
10601done
10602
10603# Required to use basename.
a8b2ad8d 10604if expr a : '\(a\)' >/dev/null 2>&1 &&
10605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10606 as_expr=expr
10607else
10608 as_expr=false
10609fi
10610
a8b2ad8d 10611if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 10612 as_basename=basename
10613else
10614 as_basename=false
10615fi
10616
10617
10618# Name of the executable.
a8b2ad8d 10619as_me=`$as_basename -- "$0" ||
b3076f16 10620$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10621 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 10622 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 10623echo X/"$0" |
a8b2ad8d 10624 sed '/^.*\/\([^/][^/]*\)\/*$/{
10625 s//\1/
10626 q
10627 }
10628 /^X\/\(\/\/\)$/{
10629 s//\1/
10630 q
10631 }
10632 /^X\/\(\/\).*/{
10633 s//\1/
10634 q
10635 }
10636 s/.*/./; q'`
b3076f16 10637
a8b2ad8d 10638# CDPATH.
10639$as_unset CDPATH
b3076f16 10640
10641
b3076f16 10642
b3076f16 10643 as_lineno_1=$LINENO
10644 as_lineno_2=$LINENO
b3076f16 10645 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 10646 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 10647
10648 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10649 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 10650 # line-number line after each line using $LINENO; the second 'sed'
10651 # does the real work. The second script uses 'N' to pair each
10652 # line-number line with the line containing $LINENO, and appends
10653 # trailing '-' during substitution so that $LINENO is not a special
10654 # case at line end.
b3076f16 10655 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 10656 # scripts with optimization help from Paolo Bonzini. Blame Lee
10657 # E. McMahon (1931-1989) for sed's syntax. :-)
10658 sed -n '
10659 p
10660 /[$]LINENO/=
10661 ' <$as_myself |
b3076f16 10662 sed '
a8b2ad8d 10663 s/[$]LINENO.*/&-/
10664 t lineno
10665 b
10666 :lineno
b3076f16 10667 N
a8b2ad8d 10668 :loop
10669 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 10670 t loop
a8b2ad8d 10671 s/-\n.*//
b3076f16 10672 ' >$as_me.lineno &&
a8b2ad8d 10673 chmod +x "$as_me.lineno" ||
10674 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b3076f16 10675 { (exit 1); exit 1; }; }
10676
10677 # Don't try to exec as it changes $[0], causing all sort of problems
10678 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 10679 # original and so on. Autoconf is especially sensitive to this).
10680 . "./$as_me.lineno"
b3076f16 10681 # Exit status is that of the last command.
10682 exit
10683}
10684
10685
a8b2ad8d 10686if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10687 as_dirname=dirname
10688else
10689 as_dirname=false
10690fi
10691
10692ECHO_C= ECHO_N= ECHO_T=
10693case `echo -n x` in
10694-n*)
10695 case `echo 'x\c'` in
10696 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10697 *) ECHO_C='\c';;
10698 esac;;
10699*)
10700 ECHO_N='-n';;
b3076f16 10701esac
10702
a8b2ad8d 10703if expr a : '\(a\)' >/dev/null 2>&1 &&
10704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10705 as_expr=expr
10706else
10707 as_expr=false
10708fi
10709
10710rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 10711if test -d conf$$.dir; then
10712 rm -f conf$$.dir/conf$$.file
10713else
10714 rm -f conf$$.dir
10715 mkdir conf$$.dir
10716fi
b3076f16 10717echo >conf$$.file
10718if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 10719 as_ln_s='ln -s'
10720 # ... but there are two gotchas:
10721 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10722 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10723 # In both cases, we have to default to `cp -p'.
10724 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 10725 as_ln_s='cp -p'
b3076f16 10726elif ln conf$$.file conf$$ 2>/dev/null; then
10727 as_ln_s=ln
10728else
10729 as_ln_s='cp -p'
10730fi
a8b2ad8d 10731rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10732rmdir conf$$.dir 2>/dev/null
b3076f16 10733
10734if mkdir -p . 2>/dev/null; then
10735 as_mkdir_p=:
10736else
10737 test -d ./-p && rmdir ./-p
10738 as_mkdir_p=false
10739fi
10740
a8b2ad8d 10741# Find out whether ``test -x'' works. Don't use a zero-byte file, as
10742# systems may use methods other than mode bits to determine executability.
10743cat >conf$$.file <<_ASEOF
10744#! /bin/sh
10745exit 0
10746_ASEOF
10747chmod +x conf$$.file
10748if test -x conf$$.file >/dev/null 2>&1; then
10749 as_executable_p="test -x"
10750else
10751 as_executable_p=:
10752fi
10753rm -f conf$$.file
b3076f16 10754
10755# Sed expression to map a string onto a valid CPP name.
10756as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10757
10758# Sed expression to map a string onto a valid variable name.
10759as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10760
10761
b3076f16 10762exec 6>&1
10763
a8b2ad8d 10764# Save the log message, to keep $[0] and so on meaningful, and to
b3076f16 10765# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 10766# values after options handling.
10767ac_log="
63c95a47 10768This file was extended by X3 $as_me 1.5, which was
a8b2ad8d 10769generated by GNU Autoconf 2.60. Invocation command line was
b3076f16 10770
10771 CONFIG_FILES = $CONFIG_FILES
10772 CONFIG_HEADERS = $CONFIG_HEADERS
10773 CONFIG_LINKS = $CONFIG_LINKS
10774 CONFIG_COMMANDS = $CONFIG_COMMANDS
10775 $ $0 $@
10776
a8b2ad8d 10777on `(hostname || uname -n) 2>/dev/null | sed 1q`
10778"
10779
b3076f16 10780_ACEOF
10781
a8b2ad8d 10782cat >>$CONFIG_STATUS <<_ACEOF
b3076f16 10783# Files that config.status was made for.
a8b2ad8d 10784config_files="$ac_config_files"
10785config_headers="$ac_config_headers"
10786config_commands="$ac_config_commands"
b3076f16 10787
a8b2ad8d 10788_ACEOF
b3076f16 10789
10790cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 10791ac_cs_usage="\
10792\`$as_me' instantiates files from templates according to the
10793current configuration.
10794
10795Usage: $0 [OPTIONS] [FILE]...
10796
10797 -h, --help print this help, then exit
10798 -V, --version print version number, then exit
10799 -q, --quiet do not print progress messages
10800 -d, --debug don't remove temporary files
10801 --recheck update $as_me by reconfiguring in the same conditions
10802 --file=FILE[:TEMPLATE]
10803 instantiate the configuration file FILE
10804 --header=FILE[:TEMPLATE]
10805 instantiate the configuration header FILE
10806
10807Configuration files:
10808$config_files
10809
10810Configuration headers:
10811$config_headers
10812
ec1a68c8 10813Configuration commands:
10814$config_commands
10815
b3076f16 10816Report bugs to <bug-autoconf@gnu.org>."
b3076f16 10817
a8b2ad8d 10818_ACEOF
b3076f16 10819cat >>$CONFIG_STATUS <<_ACEOF
10820ac_cs_version="\\
63c95a47 10821X3 config.status 1.5
a8b2ad8d 10822configured by $0, generated by GNU Autoconf 2.60,
10823 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 10824
a8b2ad8d 10825Copyright (C) 2006 Free Software Foundation, Inc.
b3076f16 10826This config.status script is free software; the Free Software Foundation
10827gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 10828
10829ac_pwd='$ac_pwd'
10830srcdir='$srcdir'
10831INSTALL='$INSTALL'
b3076f16 10832_ACEOF
10833
10834cat >>$CONFIG_STATUS <<\_ACEOF
10835# If no file are specified by the user, then we need to provide default
10836# value. By we need to know if files were specified by the user.
10837ac_need_defaults=:
10838while test $# != 0
10839do
10840 case $1 in
10841 --*=*)
a8b2ad8d 10842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 10844 ac_shift=:
10845 ;;
a8b2ad8d 10846 *)
b3076f16 10847 ac_option=$1
10848 ac_optarg=$2
10849 ac_shift=shift
10850 ;;
b3076f16 10851 esac
10852
10853 case $ac_option in
10854 # Handling of the options.
b3076f16 10855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10856 ac_cs_recheck=: ;;
a8b2ad8d 10857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10858 echo "$ac_cs_version"; exit ;;
10859 --debug | --debu | --deb | --de | --d | -d )
b3076f16 10860 debug=: ;;
10861 --file | --fil | --fi | --f )
10862 $ac_shift
10863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10864 ac_need_defaults=false;;
10865 --header | --heade | --head | --hea )
10866 $ac_shift
10867 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10868 ac_need_defaults=false;;
a8b2ad8d 10869 --he | --h)
10870 # Conflict between --help and --header
10871 { echo "$as_me: error: ambiguous option: $1
10872Try \`$0 --help' for more information." >&2
10873 { (exit 1); exit 1; }; };;
10874 --help | --hel | -h )
10875 echo "$ac_cs_usage"; exit ;;
b3076f16 10876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10877 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10878 ac_cs_silent=: ;;
10879
10880 # This is an error.
a8b2ad8d 10881 -*) { echo "$as_me: error: unrecognized option: $1
10882Try \`$0 --help' for more information." >&2
b3076f16 10883 { (exit 1); exit 1; }; } ;;
10884
a8b2ad8d 10885 *) ac_config_targets="$ac_config_targets $1"
10886 ac_need_defaults=false ;;
b3076f16 10887
10888 esac
10889 shift
10890done
10891
10892ac_configure_extra_args=
10893
10894if $ac_cs_silent; then
10895 exec 6>/dev/null
10896 ac_configure_extra_args="$ac_configure_extra_args --silent"
10897fi
10898
10899_ACEOF
10900cat >>$CONFIG_STATUS <<_ACEOF
10901if \$ac_cs_recheck; then
a8b2ad8d 10902 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10903 CONFIG_SHELL=$SHELL
10904 export CONFIG_SHELL
10905 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b3076f16 10906fi
10907
10908_ACEOF
a8b2ad8d 10909cat >>$CONFIG_STATUS <<\_ACEOF
10910exec 5>>config.log
10911{
10912 echo
10913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10914## Running $as_me. ##
10915_ASBOX
10916 echo "$ac_log"
10917} >&5
b3076f16 10918
a8b2ad8d 10919_ACEOF
ec1a68c8 10920cat >>$CONFIG_STATUS <<_ACEOF
10921#
a8b2ad8d 10922# INIT-COMMANDS
ec1a68c8 10923#
ec1a68c8 10924AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10925
10926_ACEOF
b3076f16 10927
b3076f16 10928cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 10929
10930# Handling of arguments.
b3076f16 10931for ac_config_target in $ac_config_targets
10932do
a8b2ad8d 10933 case $ac_config_target in
10934 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10935 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10936 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10937 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
10938 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10939
b3076f16 10940 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10941echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10942 { (exit 1); exit 1; }; };;
10943 esac
10944done
10945
a8b2ad8d 10946
b3076f16 10947# If the user did not use the arguments to specify the items to instantiate,
10948# then the envvar interface is used. Set only those that are not.
10949# We use the long form for the default assignment because of an extremely
10950# bizarre bug on SunOS 4.1.3.
10951if $ac_need_defaults; then
10952 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10953 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 10954 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 10955fi
10956
10957# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 10958# simply because there is no reason against having it here, and in addition,
b3076f16 10959# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 10960# Hook for its removal unless debugging.
10961# Note that there is a small window in which the directory will not be cleaned:
10962# after its creation but before its name has been assigned to `$tmp'.
b3076f16 10963$debug ||
10964{
a8b2ad8d 10965 tmp=
10966 trap 'exit_status=$?
10967 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10968' 0
b3076f16 10969 trap '{ (exit 1); exit 1; }' 1 2 13 15
10970}
b3076f16 10971# Create a (secure) tmp directory for tmp files.
10972
10973{
a8b2ad8d 10974 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16 10975 test -n "$tmp" && test -d "$tmp"
10976} ||
10977{
a8b2ad8d 10978 tmp=./conf$$-$RANDOM
10979 (umask 077 && mkdir "$tmp")
b3076f16 10980} ||
10981{
10982 echo "$me: cannot create a temporary directory in ." >&2
10983 { (exit 1); exit 1; }
10984}
10985
b3076f16 10986#
a8b2ad8d 10987# Set up the sed scripts for CONFIG_FILES section.
b3076f16 10988#
10989
10990# No need to generate the scripts if there are no CONFIG_FILES.
10991# This happens for instance when ./config.status config.h
a8b2ad8d 10992if test -n "$CONFIG_FILES"; then
10993
10994_ACEOF
10995
10996
10997
10998ac_delim='%!_!# '
10999for ac_last_try in false false false false false :; do
11000 cat >conf$$subs.sed <<_ACEOF
11001SHELL!$SHELL$ac_delim
11002PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11003PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11004PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11005PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11006PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11007PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11008exec_prefix!$exec_prefix$ac_delim
11009prefix!$prefix$ac_delim
11010program_transform_name!$program_transform_name$ac_delim
11011bindir!$bindir$ac_delim
11012sbindir!$sbindir$ac_delim
11013libexecdir!$libexecdir$ac_delim
11014datarootdir!$datarootdir$ac_delim
11015datadir!$datadir$ac_delim
11016sysconfdir!$sysconfdir$ac_delim
11017sharedstatedir!$sharedstatedir$ac_delim
11018localstatedir!$localstatedir$ac_delim
11019includedir!$includedir$ac_delim
11020oldincludedir!$oldincludedir$ac_delim
11021docdir!$docdir$ac_delim
11022infodir!$infodir$ac_delim
11023htmldir!$htmldir$ac_delim
11024dvidir!$dvidir$ac_delim
11025pdfdir!$pdfdir$ac_delim
11026psdir!$psdir$ac_delim
11027libdir!$libdir$ac_delim
11028localedir!$localedir$ac_delim
11029mandir!$mandir$ac_delim
11030DEFS!$DEFS$ac_delim
11031ECHO_C!$ECHO_C$ac_delim
11032ECHO_N!$ECHO_N$ac_delim
11033ECHO_T!$ECHO_T$ac_delim
11034LIBS!$LIBS$ac_delim
11035build_alias!$build_alias$ac_delim
11036host_alias!$host_alias$ac_delim
11037target_alias!$target_alias$ac_delim
11038build!$build$ac_delim
11039build_cpu!$build_cpu$ac_delim
11040build_vendor!$build_vendor$ac_delim
11041build_os!$build_os$ac_delim
11042host!$host$ac_delim
11043host_cpu!$host_cpu$ac_delim
11044host_vendor!$host_vendor$ac_delim
11045host_os!$host_os$ac_delim
11046target!$target$ac_delim
11047target_cpu!$target_cpu$ac_delim
11048target_vendor!$target_vendor$ac_delim
11049target_os!$target_os$ac_delim
11050INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11051INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11052INSTALL_DATA!$INSTALL_DATA$ac_delim
11053CYGPATH_W!$CYGPATH_W$ac_delim
11054PACKAGE!$PACKAGE$ac_delim
11055VERSION!$VERSION$ac_delim
11056ACLOCAL!$ACLOCAL$ac_delim
11057AUTOCONF!$AUTOCONF$ac_delim
11058AUTOMAKE!$AUTOMAKE$ac_delim
11059AUTOHEADER!$AUTOHEADER$ac_delim
11060MAKEINFO!$MAKEINFO$ac_delim
11061install_sh!$install_sh$ac_delim
11062STRIP!$STRIP$ac_delim
11063INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11064mkdir_p!$mkdir_p$ac_delim
11065AWK!$AWK$ac_delim
11066SET_MAKE!$SET_MAKE$ac_delim
11067am__leading_dot!$am__leading_dot$ac_delim
11068AMTAR!$AMTAR$ac_delim
11069am__tar!$am__tar$ac_delim
11070am__untar!$am__untar$ac_delim
11071MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11072MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11073MAINT!$MAINT$ac_delim
11074CC!$CC$ac_delim
11075CFLAGS!$CFLAGS$ac_delim
11076LDFLAGS!$LDFLAGS$ac_delim
11077CPPFLAGS!$CPPFLAGS$ac_delim
11078ac_ct_CC!$ac_ct_CC$ac_delim
11079EXEEXT!$EXEEXT$ac_delim
11080OBJEXT!$OBJEXT$ac_delim
11081DEPDIR!$DEPDIR$ac_delim
11082am__include!$am__include$ac_delim
11083am__quote!$am__quote$ac_delim
11084AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11085AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11086AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11087CCDEPMODE!$CCDEPMODE$ac_delim
11088am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11089am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11090RANLIB!$RANLIB$ac_delim
11091LN_S!$LN_S$ac_delim
11092CPP!$CPP$ac_delim
11093GREP!$GREP$ac_delim
11094EGREP!$EGREP$ac_delim
11095MAKER!$MAKER$ac_delim
11096ALLOCA!$ALLOCA$ac_delim
11097MODULE_OBJS!$MODULE_OBJS$ac_delim
11098_ACEOF
11099
11100 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11101 break
11102 elif $ac_last_try; then
11103 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11104echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11105 { (exit 1); exit 1; }; }
11106 else
11107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b3076f16 11108 fi
a8b2ad8d 11109done
b3076f16 11110
a8b2ad8d 11111ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11112if test -n "$ac_eof"; then
11113 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11114 ac_eof=`expr $ac_eof + 1`
11115fi
11116
11117cat >>$CONFIG_STATUS <<_ACEOF
11118cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b3076f16 11120_ACEOF
a8b2ad8d 11121sed '
11122s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11123s/^/s,@/; s/!/@,|#_!!_#|/
11124:n
11125t n
11126s/'"$ac_delim"'$/,g/; t
11127s/$/\\/; p
11128N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11129' >>$CONFIG_STATUS <conf$$subs.sed
11130rm -f conf$$subs.sed
11131cat >>$CONFIG_STATUS <<_ACEOF
11132CEOF$ac_eof
11133_ACEOF
11134
11135
11136ac_delim='%!_!# '
11137for ac_last_try in false false false false false :; do
11138 cat >conf$$subs.sed <<_ACEOF
11139MY_SUBDIRS!$MY_SUBDIRS$ac_delim
11140RX_INCLUDES!$RX_INCLUDES$ac_delim
11141RX_LIBS!$RX_LIBS$ac_delim
11142TRACK!$TRACK$ac_delim
11143LIBOBJS!$LIBOBJS$ac_delim
11144LTLIBOBJS!$LTLIBOBJS$ac_delim
11145_ACEOF
11146
11147 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
11148 break
11149 elif $ac_last_try; then
11150 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11151echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11152 { (exit 1); exit 1; }; }
11153 else
11154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11155 fi
11156done
11157
11158ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11159if test -n "$ac_eof"; then
11160 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11161 ac_eof=`expr $ac_eof + 1`
11162fi
11163
11164cat >>$CONFIG_STATUS <<_ACEOF
11165cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11166/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11167_ACEOF
11168sed '
11169s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11170s/^/s,@/; s/!/@,|#_!!_#|/
11171:n
11172t n
11173s/'"$ac_delim"'$/,g/; t
11174s/$/\\/; p
11175N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11176' >>$CONFIG_STATUS <conf$$subs.sed
11177rm -f conf$$subs.sed
11178cat >>$CONFIG_STATUS <<_ACEOF
11179:end
11180s/|#_!!_#|//g
11181CEOF$ac_eof
11182_ACEOF
11183
11184
11185# VPATH may cause trouble with some makes, so we remove $(srcdir),
11186# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11187# trailing colons and then remove the whole line if VPATH becomes empty
11188# (actually we leave an empty line to preserve line numbers).
11189if test "x$srcdir" = x.; then
11190 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11191s/:*\$(srcdir):*/:/
11192s/:*\${srcdir}:*/:/
11193s/:*@srcdir@:*/:/
11194s/^\([^=]*=[ ]*\):*/\1/
11195s/:*$//
11196s/^[^=]*=[ ]*$//
11197}'
11198fi
11199
b3076f16 11200cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 11201fi # test -n "$CONFIG_FILES"
11202
11203
11204for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11205do
11206 case $ac_tag in
11207 :[FHLC]) ac_mode=$ac_tag; continue;;
11208 esac
11209 case $ac_mode$ac_tag in
11210 :[FHL]*:*);;
11211 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11212echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11213 { (exit 1); exit 1; }; };;
11214 :[FH]-) ac_tag=-:-;;
11215 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11216 esac
11217 ac_save_IFS=$IFS
11218 IFS=:
11219 set x $ac_tag
11220 IFS=$ac_save_IFS
11221 shift
11222 ac_file=$1
11223 shift
11224
11225 case $ac_mode in
11226 :L) ac_source=$1;;
11227 :[FH])
11228 ac_file_inputs=
11229 for ac_f
11230 do
11231 case $ac_f in
11232 -) ac_f="$tmp/stdin";;
11233 *) # Look for the file first in the build tree, then in the source tree
11234 # (if the path is not absolute). The absolute path cannot be DOS-style,
11235 # because $ac_f cannot contain `:'.
11236 test -f "$ac_f" ||
11237 case $ac_f in
11238 [\\/$]*) false;;
11239 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11240 esac ||
11241 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11242echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11243 { (exit 1); exit 1; }; };;
11244 esac
11245 ac_file_inputs="$ac_file_inputs $ac_f"
11246 done
11247
11248 # Let's still pretend it is `configure' which instantiates (i.e., don't
11249 # use $as_me), people would be surprised to read:
11250 # /* config.h. Generated by config.status. */
11251 configure_input="Generated from "`IFS=:
11252 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11253 if test x"$ac_file" != x-; then
11254 configure_input="$ac_file. $configure_input"
11255 { echo "$as_me:$LINENO: creating $ac_file" >&5
11256echo "$as_me: creating $ac_file" >&6;}
11257 fi
11258
11259 case $ac_tag in
11260 *:-:* | *:-) cat >"$tmp/stdin";;
11261 esac
11262 ;;
b3076f16 11263 esac
11264
a8b2ad8d 11265 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 11266$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11267 X"$ac_file" : 'X\(//\)[^/]' \| \
11268 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 11269 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11270echo X"$ac_file" |
a8b2ad8d 11271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11272 s//\1/
11273 q
11274 }
11275 /^X\(\/\/\)[^/].*/{
11276 s//\1/
11277 q
11278 }
11279 /^X\(\/\/\)$/{
11280 s//\1/
11281 q
11282 }
11283 /^X\(\/\).*/{
11284 s//\1/
11285 q
11286 }
11287 s/.*/./; q'`
11288 { as_dir="$ac_dir"
11289 case $as_dir in #(
11290 -*) as_dir=./$as_dir;;
11291 esac
11292 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b3076f16 11293 as_dirs=
a8b2ad8d 11294 while :; do
11295 case $as_dir in #(
11296 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11297 *) as_qdir=$as_dir;;
11298 esac
11299 as_dirs="'$as_qdir' $as_dirs"
11300 as_dir=`$as_dirname -- "$as_dir" ||
b3076f16 11301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11302 X"$as_dir" : 'X\(//\)[^/]' \| \
11303 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11305echo X"$as_dir" |
a8b2ad8d 11306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11307 s//\1/
11308 q
11309 }
11310 /^X\(\/\/\)[^/].*/{
11311 s//\1/
11312 q
11313 }
11314 /^X\(\/\/\)$/{
11315 s//\1/
11316 q
11317 }
11318 /^X\(\/\).*/{
11319 s//\1/
11320 q
11321 }
11322 s/.*/./; q'`
11323 test -d "$as_dir" && break
b3076f16 11324 done
a8b2ad8d 11325 test -z "$as_dirs" || eval "mkdir $as_dirs"
11326 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11327echo "$as_me: error: cannot create directory $as_dir" >&2;}
b3076f16 11328 { (exit 1); exit 1; }; }; }
b3076f16 11329 ac_builddir=.
11330
a8b2ad8d 11331case "$ac_dir" in
11332.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11333*)
b3076f16 11334 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 11335 # A ".." for each directory in $ac_dir_suffix.
11336 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11337 case $ac_top_builddir_sub in
11338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11340 esac ;;
11341esac
11342ac_abs_top_builddir=$ac_pwd
11343ac_abs_builddir=$ac_pwd$ac_dir_suffix
11344# for backward compatibility:
11345ac_top_builddir=$ac_top_build_prefix
b3076f16 11346
11347case $srcdir in
a8b2ad8d 11348 .) # We are building in place.
b3076f16 11349 ac_srcdir=.
a8b2ad8d 11350 ac_top_srcdir=$ac_top_builddir_sub
11351 ac_abs_top_srcdir=$ac_pwd ;;
11352 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 11353 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 11354 ac_top_srcdir=$srcdir
11355 ac_abs_top_srcdir=$srcdir ;;
11356 *) # Relative name.
11357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11358 ac_top_srcdir=$ac_top_build_prefix$srcdir
11359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 11360esac
a8b2ad8d 11361ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 11362
b3076f16 11363
a8b2ad8d 11364 case $ac_mode in
11365 :F)
11366 #
11367 # CONFIG_FILE
11368 #
b3076f16 11369
11370 case $INSTALL in
11371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 11372 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 11373 esac
a8b2ad8d 11374_ACEOF
b3076f16 11375
a8b2ad8d 11376cat >>$CONFIG_STATUS <<\_ACEOF
11377# If the template does not know about datarootdir, expand it.
11378# FIXME: This hack should be removed a few years after 2.60.
11379ac_datarootdir_hack=; ac_datarootdir_seen=
b8cb2a14 11380
a8b2ad8d 11381case `sed -n '/datarootdir/ {
11382 p
11383 q
11384}
11385/@datadir@/p
11386/@docdir@/p
11387/@infodir@/p
11388/@localedir@/p
11389/@mandir@/p
11390' $ac_file_inputs` in
11391*datarootdir*) ac_datarootdir_seen=yes;;
11392*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11393 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11394echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11395_ACEOF
11396cat >>$CONFIG_STATUS <<_ACEOF
11397 ac_datarootdir_hack='
11398 s&@datadir@&$datadir&g
11399 s&@docdir@&$docdir&g
11400 s&@infodir@&$infodir&g
11401 s&@localedir@&$localedir&g
11402 s&@mandir@&$mandir&g
11403 s&\\\${datarootdir}&$datarootdir&g' ;;
11404esac
b3076f16 11405_ACEOF
a8b2ad8d 11406
11407# Neutralize VPATH when `$srcdir' = `.'.
11408# Shell code in configure.ac might set extrasub.
11409# FIXME: do we really want to maintain this feature?
b3076f16 11410cat >>$CONFIG_STATUS <<_ACEOF
11411 sed "$ac_vpsub
11412$extrasub
11413_ACEOF
11414cat >>$CONFIG_STATUS <<\_ACEOF
11415:t
11416/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a8b2ad8d 11417s&@configure_input@&$configure_input&;t t
11418s&@top_builddir@&$ac_top_builddir_sub&;t t
11419s&@srcdir@&$ac_srcdir&;t t
11420s&@abs_srcdir@&$ac_abs_srcdir&;t t
11421s&@top_srcdir@&$ac_top_srcdir&;t t
11422s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11423s&@builddir@&$ac_builddir&;t t
11424s&@abs_builddir@&$ac_abs_builddir&;t t
11425s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11426s&@INSTALL@&$ac_INSTALL&;t t
11427$ac_datarootdir_hack
11428" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11429
11430test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11431 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11432 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11433 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11434which seems to be undefined. Please make sure it is defined." >&5
11435echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11436which seems to be undefined. Please make sure it is defined." >&2;}
11437
11438 rm -f "$tmp/stdin"
b3076f16 11439 case $ac_file in
a8b2ad8d 11440 -) cat "$tmp/out"; rm -f "$tmp/out";;
11441 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
b3076f16 11442 esac
a8b2ad8d 11443 ;;
11444 :H)
11445 #
11446 # CONFIG_HEADER
11447 #
11448_ACEOF
11449
11450# Transform confdefs.h into a sed script `conftest.defines', that
11451# substitutes the proper values into config.h.in to produce config.h.
11452rm -f conftest.defines conftest.tail
11453# First, append a space to every undef/define line, to ease matching.
11454echo 's/$/ /' >conftest.defines
11455# Then, protect against being on the right side of a sed subst, or in
11456# an unquoted here document, in config.status. If some macros were
11457# called several times there might be several #defines for the same
11458# symbol, which is useless. But do not sort them, since the last
11459# AC_DEFINE must be honored.
11460ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11461# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11462# NAME is the cpp macro being defined, VALUE is the value it is being given.
11463# PARAMS is the parameter list in the macro definition--in most cases, it's
11464# just an empty string.
11465ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11466ac_dB='\\)[ (].*,\\1define\\2'
11467ac_dC=' '
11468ac_dD=' ,'
11469
11470uniq confdefs.h |
11471 sed -n '
11472 t rset
11473 :rset
11474 s/^[ ]*#[ ]*define[ ][ ]*//
11475 t ok
11476 d
11477 :ok
11478 s/[\\&,]/\\&/g
11479 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11480 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11481 ' >>conftest.defines
11482
11483# Remove the space that was appended to ease matching.
11484# Then replace #undef with comments. This is necessary, for
b3076f16 11485# example, in the case of _POSIX_SOURCE, which is predefined and required
11486# on some systems where configure will not decide to define it.
a8b2ad8d 11487# (The regexp can be short, since the line contains either #define or #undef.)
11488echo 's/ $//
11489s,^[ #]*u.*,/* & */,' >>conftest.defines
11490
11491# Break up conftest.defines:
11492ac_max_sed_lines=50
11493
11494# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11495# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11496# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11497# et cetera.
11498ac_in='$ac_file_inputs'
11499ac_out='"$tmp/out1"'
11500ac_nxt='"$tmp/out2"'
11501
11502while :
b3076f16 11503do
a8b2ad8d 11504 # Write a here document:
11505 cat >>$CONFIG_STATUS <<_ACEOF
11506 # First, check the format of the line:
11507 cat >"\$tmp/defines.sed" <<\\CEOF
11508/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11509/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11510b
11511:def
11512_ACEOF
11513 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
b3076f16 11514 echo 'CEOF
a8b2ad8d 11515 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11516 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11517 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11518 grep . conftest.tail >/dev/null || break
b3076f16 11519 rm -f conftest.defines
11520 mv conftest.tail conftest.defines
11521done
a8b2ad8d 11522rm -f conftest.defines conftest.tail
b3076f16 11523
a8b2ad8d 11524echo "ac_result=$ac_in" >>$CONFIG_STATUS
b3076f16 11525cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 11526 if test x"$ac_file" != x-; then
a8b2ad8d 11527 echo "/* $configure_input */" >"$tmp/config.h"
11528 cat "$ac_result" >>"$tmp/config.h"
11529 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
b3076f16 11530 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11531echo "$as_me: $ac_file is unchanged" >&6;}
11532 else
b3076f16 11533 rm -f $ac_file
a8b2ad8d 11534 mv "$tmp/config.h" $ac_file
b3076f16 11535 fi
11536 else
a8b2ad8d 11537 echo "/* $configure_input */"
11538 cat "$ac_result"
b3076f16 11539 fi
a8b2ad8d 11540 rm -f "$tmp/out12"
ec1a68c8 11541# Compute $ac_file's index in $config_headers.
11542_am_stamp_count=1
11543for _am_header in $config_headers :; do
11544 case $_am_header in
11545 $ac_file | $ac_file:* )
11546 break ;;
11547 * )
11548 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11549 esac
11550done
a8b2ad8d 11551echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
ec1a68c8 11552$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11553 X$ac_file : 'X\(//\)[^/]' \| \
11554 X$ac_file : 'X\(//\)$' \| \
a8b2ad8d 11555 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11556echo X$ac_file |
a8b2ad8d 11557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11558 s//\1/
11559 q
11560 }
11561 /^X\(\/\/\)[^/].*/{
11562 s//\1/
11563 q
11564 }
11565 /^X\(\/\/\)$/{
11566 s//\1/
11567 q
11568 }
11569 /^X\(\/\).*/{
11570 s//\1/
11571 q
11572 }
11573 s/.*/./; q'`/stamp-h$_am_stamp_count
11574 ;;
ec1a68c8 11575
a8b2ad8d 11576 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11577echo "$as_me: executing $ac_file commands" >&6;}
11578 ;;
11579 esac
ec1a68c8 11580
11581
a8b2ad8d 11582 case $ac_file$ac_mode in
11583 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
ec1a68c8 11584 # Strip MF so we end up with the name of the file.
11585 mf=`echo "$mf" | sed -e 's/:.*$//'`
11586 # Check whether this is an Automake generated Makefile or not.
11587 # We used to match only the files named `Makefile.in', but
11588 # some people rename them; so instead we look at the file content.
11589 # Grep'ing the first line is not enough: some people post-process
11590 # each Makefile.in and add a new line on top of each file to say so.
11591 # So let's grep whole file.
11592 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
a8b2ad8d 11593 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 11594$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11595 X"$mf" : 'X\(//\)[^/]' \| \
11596 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 11597 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11598echo X"$mf" |
a8b2ad8d 11599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11600 s//\1/
11601 q
11602 }
11603 /^X\(\/\/\)[^/].*/{
11604 s//\1/
11605 q
11606 }
11607 /^X\(\/\/\)$/{
11608 s//\1/
11609 q
11610 }
11611 /^X\(\/\).*/{
11612 s//\1/
11613 q
11614 }
11615 s/.*/./; q'`
ec1a68c8 11616 else
11617 continue
11618 fi
11619 # Extract the definition of DEPDIR, am__include, and am__quote
11620 # from the Makefile without running `make'.
11621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11622 test -z "$DEPDIR" && continue
11623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11624 test -z "am__include" && continue
11625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11626 # When using ansi2knr, U may be empty or an underscore; expand it
11627 U=`sed -n 's/^U = //p' < "$mf"`
11628 # Find all dependency output files, they are included files with
11629 # $(DEPDIR) in their names. We invoke sed twice because it is the
11630 # simplest approach to changing $(DEPDIR) to its actual value in the
11631 # expansion.
11632 for file in `sed -n "
11633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11635 # Make sure the directory exists.
11636 test -f "$dirpart/$file" && continue
a8b2ad8d 11637 fdir=`$as_dirname -- "$file" ||
ec1a68c8 11638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11639 X"$file" : 'X\(//\)[^/]' \| \
11640 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 11641 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11642echo X"$file" |
a8b2ad8d 11643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11644 s//\1/
11645 q
11646 }
11647 /^X\(\/\/\)[^/].*/{
11648 s//\1/
11649 q
11650 }
11651 /^X\(\/\/\)$/{
11652 s//\1/
11653 q
11654 }
11655 /^X\(\/\).*/{
11656 s//\1/
11657 q
11658 }
11659 s/.*/./; q'`
11660 { as_dir=$dirpart/$fdir
11661 case $as_dir in #(
11662 -*) as_dir=./$as_dir;;
11663 esac
11664 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ec1a68c8 11665 as_dirs=
a8b2ad8d 11666 while :; do
11667 case $as_dir in #(
11668 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11669 *) as_qdir=$as_dir;;
11670 esac
11671 as_dirs="'$as_qdir' $as_dirs"
11672 as_dir=`$as_dirname -- "$as_dir" ||
ec1a68c8 11673$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11674 X"$as_dir" : 'X\(//\)[^/]' \| \
11675 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11677echo X"$as_dir" |
a8b2ad8d 11678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11679 s//\1/
11680 q
11681 }
11682 /^X\(\/\/\)[^/].*/{
11683 s//\1/
11684 q
11685 }
11686 /^X\(\/\/\)$/{
11687 s//\1/
11688 q
11689 }
11690 /^X\(\/\).*/{
11691 s//\1/
11692 q
11693 }
11694 s/.*/./; q'`
11695 test -d "$as_dir" && break
ec1a68c8 11696 done
a8b2ad8d 11697 test -z "$as_dirs" || eval "mkdir $as_dirs"
11698 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11699echo "$as_me: error: cannot create directory $as_dir" >&2;}
ec1a68c8 11700 { (exit 1); exit 1; }; }; }
ec1a68c8 11701 # echo "creating $dirpart/$file"
11702 echo '# dummy' > "$dirpart/$file"
11703 done
11704done
11705 ;;
a8b2ad8d 11706
ec1a68c8 11707 esac
a8b2ad8d 11708done # for ac_tag
b3076f16 11709
b3076f16 11710
11711{ (exit 0); exit 0; }
11712_ACEOF
11713chmod +x $CONFIG_STATUS
11714ac_clean_files=$ac_clean_files_save
11715
11716
11717# configure is writing to config.log, and then calls config.status.
11718# config.status does its own redirection, appending to config.log.
11719# Unfortunately, on DOS this fails, as config.log is still kept open
11720# by configure, so config.status won't be able to write to it; its
11721# output is simply discarded. So we exec the FD to /dev/null,
11722# effectively closing config.log, so it can be properly (re)opened and
11723# appended to by config.status. When coming back to configure, we
11724# need to make the FD available again.
11725if test "$no_create" != yes; then
11726 ac_cs_success=:
11727 ac_config_status_args=
11728 test "$silent" = yes &&
11729 ac_config_status_args="$ac_config_status_args --quiet"
11730 exec 5>/dev/null
11731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11732 exec 5>>config.log
11733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11734 # would make configure fail if this is the last instruction.
11735 $ac_cs_success || { (exit 1); exit 1; }
11736fi
11737
5b1166fd 11738
11739
11740
11741cat <<EOF
11742
11743Configuration summary
11744=====================
11745
11746X3 is now configured as follows:
11747
11748* Compilation environment
11749
11750 CC = $CC
11751 CFLAGS = $CFLAGS
11752 CPP = $CPP
11753 CPPFLAGS = $CPPFLAGS
11754 LD = $LD
11755 LDFLAGS = $LDFLAGS
11756 LIBS = $LIBS
11757
11758* X3 options
11759
a8b2ad8d 11760 Debug: $x3_debug
11761 Extra Modules: $module_list
11762 Malloc: $x3_malloc
11763 Protocol: $x3_ircd
11764 Regexp Library TRE $tre_version
11765 Coredumper Library Coredumper $core_version
5b1166fd 11766
a8b2ad8d 11767 Install to: $prefix
35305a49 11768
5b1166fd 11769Now you can proceed with compiling X3
11770
11771EOF
11772