]> jfr.im git - irc/evilnet/x3.git/blame - configure
mod-python: fix a bunch of typos
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
1136f709 2# From configure.in Id: configure.in 2430 2009-01-26 06:02:53Z rubin .
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
1136f709 4# Generated by GNU Autoconf 2.61 for X3 1.7.
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
0bd0bef6 16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
b3076f16 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 24 setopt NO_GLOB_SUBST
25else
0bd0bef6 26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
b3076f16 30fi
0bd0bef6 31
32
b3076f16 33
a8b2ad8d 34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
b3076f16 56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
a8b2ad8d 64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
b3076f16 97# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
b3076f16 101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
a8b2ad8d 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 115 fi
116done
117
118# Required to use basename.
a8b2ad8d 119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 121 as_expr=expr
122else
123 as_expr=false
124fi
125
a8b2ad8d 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
a8b2ad8d 134as_me=`$as_basename -- "$0" ||
b3076f16 135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 138echo X/"$0" |
a8b2ad8d 139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
b3076f16 152
a8b2ad8d 153# CDPATH.
154$as_unset CDPATH
b3076f16 155
b3076f16 156
a8b2ad8d 157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
b3076f16 162fi
163
a8b2ad8d 164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
b3076f16 180
a8b2ad8d 181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
b3076f16 188
a8b2ad8d 189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
b3076f16 224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0bd0bef6 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b3076f16 226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
a8b2ad8d 229 case $as_dir in
b3076f16 230 /*)
a8b2ad8d 231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
a8b2ad8d 243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
0bd0bef6 251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
a8b2ad8d 255fi
0bd0bef6 256
a8b2ad8d 257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
a8b2ad8d 264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
0bd0bef6 272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
a8b2ad8d 276fi
0bd0bef6 277
a8b2ad8d 278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
b3076f16 331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
b3076f16 333 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
b3076f16 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
b3076f16 445 sed '
a8b2ad8d 446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
b3076f16 450 N
a8b2ad8d 451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 453 t loop
a8b2ad8d 454 s/-\n.*//
b3076f16 455 ' >$as_me.lineno &&
a8b2ad8d 456 chmod +x "$as_me.lineno" ||
b3076f16 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
b3076f16 464 # Exit status is that of the last command.
465 exit
466}
467
468
a8b2ad8d 469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
b3076f16 484esac
485
a8b2ad8d 486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
b3076f16 500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 508 as_ln_s='cp -p'
b3076f16 509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
a8b2ad8d 514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
b3076f16 516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
0bd0bef6 524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
a8b2ad8d 526else
0bd0bef6 527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
a8b2ad8d 544fi
0bd0bef6 545as_executable_p=$as_test_x
b3076f16 546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
b3076f16 554
a8b2ad8d 555exec 7<&0 </dev/null 6>&1
b3076f16 556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
b3076f16 562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
a8b2ad8d 566ac_clean_files=
b3076f16 567ac_config_libobj_dir=.
a8b2ad8d 568LIBOBJS=
b3076f16 569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
b3076f16 575# Identity of this package.
ceafd592 576PACKAGE_NAME='X3'
577PACKAGE_TARNAME='x3'
1136f709 578PACKAGE_VERSION='1.7'
579PACKAGE_STRING='X3 1.7'
63c95a47 580PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
b3076f16 581
582ac_unique_file="src/opserv.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
0bd0bef6 586#ifdef HAVE_SYS_TYPES_H
b3076f16 587# include <sys/types.h>
588#endif
0bd0bef6 589#ifdef HAVE_SYS_STAT_H
b3076f16 590# include <sys/stat.h>
591#endif
0bd0bef6 592#ifdef STDC_HEADERS
b3076f16 593# include <stdlib.h>
594# include <stddef.h>
595#else
0bd0bef6 596# ifdef HAVE_STDLIB_H
b3076f16 597# include <stdlib.h>
598# endif
599#endif
0bd0bef6 600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b3076f16 602# include <memory.h>
603# endif
604# include <string.h>
605#endif
0bd0bef6 606#ifdef HAVE_STRINGS_H
b3076f16 607# include <strings.h>
608#endif
0bd0bef6 609#ifdef HAVE_INTTYPES_H
b3076f16 610# include <inttypes.h>
a8b2ad8d 611#endif
0bd0bef6 612#ifdef HAVE_STDINT_H
a8b2ad8d 613# include <stdint.h>
b3076f16 614#endif
0bd0bef6 615#ifdef HAVE_UNISTD_H
b3076f16 616# include <unistd.h>
617#endif"
618
a8b2ad8d 619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656build
657build_cpu
658build_vendor
659build_os
660host
661host_cpu
662host_vendor
663host_os
664target
665target_cpu
666target_vendor
667target_os
668INSTALL_PROGRAM
669INSTALL_SCRIPT
670INSTALL_DATA
2f65da8f 671am__isrc
a8b2ad8d 672CYGPATH_W
673PACKAGE
674VERSION
675ACLOCAL
676AUTOCONF
677AUTOMAKE
678AUTOHEADER
679MAKEINFO
680install_sh
681STRIP
682INSTALL_STRIP_PROGRAM
683mkdir_p
684AWK
685SET_MAKE
686am__leading_dot
687AMTAR
688am__tar
689am__untar
690MAINTAINER_MODE_TRUE
691MAINTAINER_MODE_FALSE
692MAINT
693CC
694CFLAGS
695LDFLAGS
696CPPFLAGS
697ac_ct_CC
698EXEEXT
699OBJEXT
700DEPDIR
701am__include
702am__quote
703AMDEP_TRUE
704AMDEP_FALSE
705AMDEPBACKSLASH
706CCDEPMODE
707am__fastdepCC_TRUE
708am__fastdepCC_FALSE
07559983 709CP
a8b2ad8d 710RANLIB
ff3b058a 711LN_S
ff3b058a 712CPP
0f6fe38c 713GREP
714EGREP
a8b2ad8d 715MAKER
716ALLOCA
2f65da8f 717pythonpath
718DO_PYTHON_TRUE
719DO_PYTHON_FALSE
a8b2ad8d 720MODULE_OBJS
721MY_SUBDIRS
722RX_INCLUDES
723RX_LIBS
724TRACK
2f65da8f 725PY_CFLAGS
726PY_LIBS
a8b2ad8d 727LIBOBJS
728LTLIBOBJS'
b3076f16 729ac_subst_files=''
a8b2ad8d 730 ac_precious_vars='build_alias
731host_alias
732target_alias
733CC
734CFLAGS
735LDFLAGS
0bd0bef6 736LIBS
a8b2ad8d 737CPPFLAGS
0f6fe38c 738CPP'
a8b2ad8d 739
b3076f16 740
741# Initialize some variables set by options.
742ac_init_help=
743ac_init_version=false
744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
a8b2ad8d 766# (The list follows the same order as the GNU Coding Standards.)
b3076f16 767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
a8b2ad8d 770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
b3076f16 772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
b3076f16 775includedir='${prefix}/include'
776oldincludedir='/usr/include'
a8b2ad8d 777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
b3076f16 786
787ac_prev=
a8b2ad8d 788ac_dashdash=
b3076f16 789for ac_option
790do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
a8b2ad8d 793 eval $ac_prev=\$ac_option
b3076f16 794 ac_prev=
795 continue
796 fi
797
a8b2ad8d 798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
b3076f16 802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
a8b2ad8d 805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
b3076f16 808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
a8b2ad8d 829 -datadir | --datadir | --datadi | --datad)
b3076f16 830 ac_prev=datadir ;;
a8b2ad8d 831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b3076f16 832 datadir=$ac_optarg ;;
833
a8b2ad8d 834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
b3076f16 841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
0bd0bef6 844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
0bd0bef6 847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
a8b2ad8d 848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
b3076f16 859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
0bd0bef6 863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
0bd0bef6 866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
a8b2ad8d 867 eval enable_$ac_feature=\$ac_optarg ;;
b3076f16 868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
a8b2ad8d 894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
b3076f16 900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
a8b2ad8d 924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
b3076f16 929 -localstatedir | --localstatedir | --localstatedi | --localstated \
a8b2ad8d 930 | --localstate | --localstat | --localsta | --localst | --locals)
b3076f16 931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a8b2ad8d 933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b3076f16 934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
a8b2ad8d 998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
b3076f16 1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
0bd0bef6 1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
0bd0bef6 1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
a8b2ad8d 1064 eval with_$ac_package=\$ac_optarg ;;
b3076f16 1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
0bd0bef6 1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
0bd0bef6 1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
a8b2ad8d 1073 eval with_$ac_package=no ;;
b3076f16 1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
a8b2ad8d 1104 eval $ac_envvar=\$ac_optarg
b3076f16 1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116done
1117
1118if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122fi
1123
a8b2ad8d 1124# Be sure to have absolute directory names.
1125for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
b3076f16 1129do
a8b2ad8d 1130 eval ac_val=\$$ac_var
b3076f16 1131 case $ac_val in
a8b2ad8d 1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b3076f16 1134 esac
a8b2ad8d 1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
b3076f16 1137done
1138
1139# There might be people who depend on the old broken behavior: `$host'
1140# used to hold the argument of --host etc.
1141# FIXME: To remove some day.
1142build=$build_alias
1143host=$host_alias
1144target=$target_alias
1145
1146# FIXME: To remove some day.
1147if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155fi
1156
1157ac_tool_prefix=
1158test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160test "$silent" = yes && exec 6>/dev/null
1161
1162
a8b2ad8d 1163ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164ac_ls_di=`ls -di .` &&
1165ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
b3076f16 1173# Find the source files, if location was not specified.
1174if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
a8b2ad8d 1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
b3076f16 1178$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 1182echo X"$0" |
a8b2ad8d 1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
b3076f16 1200 srcdir=$ac_confdir
a8b2ad8d 1201 if test ! -r "$srcdir/$ac_unique_file"; then
b3076f16 1202 srcdir=..
1203 fi
1204else
1205 ac_srcdir_defaulted=no
1206fi
a8b2ad8d 1207if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b3076f16 1210 { (exit 1); exit 1; }; }
b3076f16 1211fi
a8b2ad8d 1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
b3076f16 1215 { (exit 1); exit 1; }; }
a8b2ad8d 1216 pwd)`
1217# When building in place, set srcdir=.
1218if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220fi
1221# Remove unnecessary trailing slashes from srcdir.
1222# Double slashes in file names in object file debugging info
1223# mess up M-x gdb in Emacs.
1224case $srcdir in
1225*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226esac
1227for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232done
b3076f16 1233
1234#
1235# Report the --help message.
1236#
1237if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1136f709 1241\`configure' configures X3 1.7 to adapt to many kinds of systems.
b3076f16 1242
1243Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248Defaults for the options are specified in brackets.
1249
1250Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
b3076f16 1261Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267By default, \`make install' will install all the files in
1268\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270for instance \`--prefix=\$HOME'.
1271
1272For better control, use the options below.
1273
1274Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
b3076f16 1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
a8b2ad8d 1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
b3076f16 1294_ACEOF
1295
1296 cat <<\_ACEOF
1297
1298Program names:
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1302
1303System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 --target=TARGET configure for building compilers for TARGET [HOST]
1307_ACEOF
1308fi
1309
1310if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1136f709 1312 short | recursive ) echo "Configuration of X3 1.7:";;
b3076f16 1313 esac
1314 cat <<\_ACEOF
1315
1316Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing) to the casual installer
1321 --disable-dependency-tracking speeds up one-time build
1322 --enable-dependency-tracking do not reject slow dependency extractors
b3076f16 1323 --disable-tokens Disables tokenization of P10 protocol output
1324 (tokens required if linking to ircu 2.10.11)
1325 --enable-debug Enables debugging behaviors
1326 --enable-modules=list,of,modules Enable extra modules
2f65da8f 1327 --disable-python don't build the python plugin
b3076f16 1328
1329Optional Packages:
1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1332 --with-malloc=type Enables use of a special malloc library; one of:
b8cb2a14 1333 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 1334 --with-protocol=name Choose IRC dialect to support; one of:
7827220c 1335 p10 (the default)
1136f709 1336 --with-mail=name How to send mail; one of:
1337 sendmail (the default), smtp
1338 --without-epoll Disables the epoll_*() I/O backend
1339 --without-kevent Disables the kevent() I/O backend
b3076f16 1340 --without-getopt Disables building of the GNU getopt library
a8b2ad8d 1341 --with-tre=PATH Base path to where libtre is installed, such that
1342 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1343 --with-coredumper=PATH Base path to where core dumper is installed, such
1344 that PATH/lib/libcoredumper.so and
1345 PATH/include/google/coredumper.h exist.
73d4cc91 1346 --with-ssl=PATH Base path to where openssl is installed
8da89711 1347 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1348 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
b3076f16 1349
1350Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
0bd0bef6 1355 LIBS libraries to pass to the linker, e.g. -l<library>
a8b2ad8d 1356 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
b3076f16 1358 CPP C preprocessor
1359
1360Use these variables to override the choices made by `configure' or to help
1361it to find libraries and programs with nonstandard names/locations.
1362
63c95a47 1363Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1364_ACEOF
a8b2ad8d 1365ac_status=$?
b3076f16 1366fi
1367
1368if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
b3076f16 1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a8b2ad8d 1371 test -d "$ac_dir" || continue
b3076f16 1372 ac_builddir=.
1373
a8b2ad8d 1374case "$ac_dir" in
1375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376*)
b3076f16 1377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 esac ;;
1384esac
1385ac_abs_top_builddir=$ac_pwd
1386ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387# for backward compatibility:
1388ac_top_builddir=$ac_top_build_prefix
b3076f16 1389
1390case $srcdir in
a8b2ad8d 1391 .) # We are building in place.
b3076f16 1392 ac_srcdir=.
a8b2ad8d 1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1396 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1399 *) # Relative name.
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1403esac
a8b2ad8d 1404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1405
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1414 else
1415 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1416 fi || ac_status=$?
1417 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1418 done
1419fi
1420
a8b2ad8d 1421test -n "$ac_init_help" && exit $ac_status
b3076f16 1422if $ac_init_version; then
1423 cat <<\_ACEOF
1136f709 1424X3 configure 1.7
0bd0bef6 1425generated by GNU Autoconf 2.61
b3076f16 1426
a8b2ad8d 1427Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14282002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 1429This configure script is free software; the Free Software Foundation
1430gives unlimited permission to copy, distribute and modify it.
1431_ACEOF
a8b2ad8d 1432 exit
b3076f16 1433fi
a8b2ad8d 1434cat >config.log <<_ACEOF
b3076f16 1435This file contains any messages produced by compilers while
1436running configure, to aid debugging if configure makes a mistake.
1437
1136f709 1438It was created by X3 $as_me 1.7, which was
0bd0bef6 1439generated by GNU Autoconf 2.61. Invocation command line was
b3076f16 1440
1441 $ $0 $@
1442
1443_ACEOF
a8b2ad8d 1444exec 5>>config.log
b3076f16 1445{
1446cat <<_ASUNAME
1447## --------- ##
1448## Platform. ##
1449## --------- ##
1450
1451hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1452uname -m = `(uname -m) 2>/dev/null || echo unknown`
1453uname -r = `(uname -r) 2>/dev/null || echo unknown`
1454uname -s = `(uname -s) 2>/dev/null || echo unknown`
1455uname -v = `(uname -v) 2>/dev/null || echo unknown`
1456
1457/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1458/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1459
1460/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1461/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1462/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
a8b2ad8d 1463/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b3076f16 1464/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1465/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1466/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1467
1468_ASUNAME
1469
1470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471for as_dir in $PATH
1472do
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 echo "PATH: $as_dir"
1476done
a8b2ad8d 1477IFS=$as_save_IFS
b3076f16 1478
1479} >&5
1480
1481cat >&5 <<_ACEOF
1482
1483
1484## ----------- ##
1485## Core tests. ##
1486## ----------- ##
1487
1488_ACEOF
1489
1490
1491# Keep a trace of the command line.
1492# Strip out --no-create and --no-recursion so they do not pile up.
1493# Strip out --silent because we don't want to record it for future runs.
1494# Also quote any args containing shell meta-characters.
1495# Make two passes to allow for proper duplicate-argument suppression.
1496ac_configure_args=
1497ac_configure_args0=
1498ac_configure_args1=
b3076f16 1499ac_must_keep_next=false
1500for ac_pass in 1 2
1501do
1502 for ac_arg
1503 do
1504 case $ac_arg in
1505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1508 continue ;;
a8b2ad8d 1509 *\'*)
b3076f16 1510 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1511 esac
1512 case $ac_pass in
1513 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1514 2)
1515 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1516 if test $ac_must_keep_next = true; then
1517 ac_must_keep_next=false # Got value, back to normal.
1518 else
1519 case $ac_arg in
1520 *=* | --config-cache | -C | -disable-* | --disable-* \
1521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1523 | -with-* | --with-* | -without-* | --without-* | --x)
1524 case "$ac_configure_args0 " in
1525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1526 esac
1527 ;;
1528 -* ) ac_must_keep_next=true ;;
1529 esac
1530 fi
a8b2ad8d 1531 ac_configure_args="$ac_configure_args '$ac_arg'"
b3076f16 1532 ;;
1533 esac
1534 done
1535done
1536$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1537$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1538
1539# When interrupted or exit'd, cleanup temporary files, and complete
1540# config.log. We remove comments because anyway the quotes in there
1541# would cause problems or look ugly.
a8b2ad8d 1542# WARNING: Use '\'' to represent an apostrophe within the trap.
1543# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 1544trap 'exit_status=$?
1545 # Save into config.log some information that might help in debugging.
1546 {
1547 echo
1548
1549 cat <<\_ASBOX
1550## ---------------- ##
1551## Cache variables. ##
1552## ---------------- ##
1553_ASBOX
1554 echo
1555 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 1556(
1557 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1558 eval ac_val=\$$ac_var
1559 case $ac_val in #(
1560 *${as_nl}*)
1561 case $ac_var in #(
1562 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1563echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1564 esac
1565 case $ac_var in #(
1566 _ | IFS | as_nl) ;; #(
1567 *) $as_unset $ac_var ;;
1568 esac ;;
1569 esac
1570 done
b3076f16 1571 (set) 2>&1 |
a8b2ad8d 1572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1573 *${as_nl}ac_space=\ *)
b3076f16 1574 sed -n \
a8b2ad8d 1575 "s/'\''/'\''\\\\'\'''\''/g;
1576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1577 ;; #(
b3076f16 1578 *)
a8b2ad8d 1579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 1580 ;;
a8b2ad8d 1581 esac |
1582 sort
1583)
b3076f16 1584 echo
1585
1586 cat <<\_ASBOX
1587## ----------------- ##
1588## Output variables. ##
1589## ----------------- ##
1590_ASBOX
1591 echo
1592 for ac_var in $ac_subst_vars
1593 do
a8b2ad8d 1594 eval ac_val=\$$ac_var
1595 case $ac_val in
1596 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 esac
1598 echo "$ac_var='\''$ac_val'\''"
b3076f16 1599 done | sort
1600 echo
1601
1602 if test -n "$ac_subst_files"; then
1603 cat <<\_ASBOX
a8b2ad8d 1604## ------------------- ##
1605## File substitutions. ##
1606## ------------------- ##
b3076f16 1607_ASBOX
1608 echo
1609 for ac_var in $ac_subst_files
1610 do
a8b2ad8d 1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
b3076f16 1616 done | sort
1617 echo
1618 fi
1619
1620 if test -s confdefs.h; then
1621 cat <<\_ASBOX
1622## ----------- ##
1623## confdefs.h. ##
1624## ----------- ##
1625_ASBOX
1626 echo
a8b2ad8d 1627 cat confdefs.h
b3076f16 1628 echo
1629 fi
1630 test "$ac_signal" != 0 &&
1631 echo "$as_me: caught signal $ac_signal"
1632 echo "$as_me: exit $exit_status"
1633 } >&5
a8b2ad8d 1634 rm -f core *.core core.conftest.* &&
1635 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 1636 exit $exit_status
a8b2ad8d 1637' 0
b3076f16 1638for ac_signal in 1 2 13 15; do
1639 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1640done
1641ac_signal=0
1642
1643# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 1644rm -f -r conftest* confdefs.h
b3076f16 1645
1646# Predefined preprocessor variables.
1647
1648cat >>confdefs.h <<_ACEOF
1649#define PACKAGE_NAME "$PACKAGE_NAME"
1650_ACEOF
1651
1652
1653cat >>confdefs.h <<_ACEOF
1654#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1655_ACEOF
1656
1657
1658cat >>confdefs.h <<_ACEOF
1659#define PACKAGE_VERSION "$PACKAGE_VERSION"
1660_ACEOF
1661
1662
1663cat >>confdefs.h <<_ACEOF
1664#define PACKAGE_STRING "$PACKAGE_STRING"
1665_ACEOF
1666
1667
1668cat >>confdefs.h <<_ACEOF
1669#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1670_ACEOF
1671
1672
1673# Let the site file select an alternate cache file if it wants to.
1674# Prefer explicitly selected file to automatically selected ones.
a8b2ad8d 1675if test -n "$CONFIG_SITE"; then
1676 set x "$CONFIG_SITE"
1677elif test "x$prefix" != xNONE; then
1678 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1679else
1680 set x "$ac_default_prefix/share/config.site" \
1681 "$ac_default_prefix/etc/config.site"
b3076f16 1682fi
a8b2ad8d 1683shift
1684for ac_site_file
1685do
b3076f16 1686 if test -r "$ac_site_file"; then
1687 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1688echo "$as_me: loading site script $ac_site_file" >&6;}
1689 sed 's/^/| /' "$ac_site_file" >&5
1690 . "$ac_site_file"
1691 fi
1692done
1693
1694if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special
1696 # files actually), so we avoid doing that.
1697 if test -f "$cache_file"; then
1698 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1699echo "$as_me: loading cache $cache_file" >&6;}
1700 case $cache_file in
a8b2ad8d 1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
b3076f16 1703 esac
1704 fi
1705else
1706 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1707echo "$as_me: creating cache $cache_file" >&6;}
1708 >$cache_file
1709fi
1710
1711# Check that the precious variables saved in the cache have kept the same
1712# value.
1713ac_cache_corrupted=false
a8b2ad8d 1714for ac_var in $ac_precious_vars; do
b3076f16 1715 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1716 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 1717 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1718 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 1719 case $ac_old_set,$ac_new_set in
1720 set,)
1721 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1722echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1723 ac_cache_corrupted=: ;;
1724 ,set)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1726echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,);;
1729 *)
1730 if test "x$ac_old_val" != "x$ac_new_val"; then
1731 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1732echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1733 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1734echo "$as_me: former value: $ac_old_val" >&2;}
1735 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1736echo "$as_me: current value: $ac_new_val" >&2;}
1737 ac_cache_corrupted=:
1738 fi;;
1739 esac
1740 # Pass precious variables to config.status.
1741 if test "$ac_new_set" = set; then
1742 case $ac_new_val in
a8b2ad8d 1743 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 1744 *) ac_arg=$ac_var=$ac_new_val ;;
1745 esac
1746 case " $ac_configure_args " in
1747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1748 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1749 esac
1750 fi
1751done
1752if $ac_cache_corrupted; then
1753 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1754echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1755 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1756echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1757 { (exit 1); exit 1; }; }
1758fi
1759
b3076f16 1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
a8b2ad8d 1784ac_ext=c
1785ac_cpp='$CPP $CPPFLAGS'
1786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 1789
1790
ceafd592 1791CODENAME=X3
a8b2ad8d 1792ac_config_headers="$ac_config_headers src/config.h"
b3076f16 1793
1794
1795ac_aux_dir=
a8b2ad8d 1796for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1797 if test -f "$ac_dir/install-sh"; then
b3076f16 1798 ac_aux_dir=$ac_dir
1799 ac_install_sh="$ac_aux_dir/install-sh -c"
1800 break
a8b2ad8d 1801 elif test -f "$ac_dir/install.sh"; then
b3076f16 1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/install.sh -c"
1804 break
a8b2ad8d 1805 elif test -f "$ac_dir/shtool"; then
b3076f16 1806 ac_aux_dir=$ac_dir
1807 ac_install_sh="$ac_aux_dir/shtool install -c"
1808 break
1809 fi
1810done
1811if test -z "$ac_aux_dir"; then
a8b2ad8d 1812 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1813echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b3076f16 1814 { (exit 1); exit 1; }; }
1815fi
a8b2ad8d 1816
1817# These three variables are undocumented and unsupported,
1818# and are intended to be withdrawn in a future Autoconf release.
1819# They can cause serious problems if a builder's source tree is in a directory
1820# whose full name contains unusual characters.
1821ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1822ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1823ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1824
b3076f16 1825
1826# Make sure we can run config.sub.
a8b2ad8d 1827$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1828 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1829echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b3076f16 1830 { (exit 1); exit 1; }; }
1831
a8b2ad8d 1832{ echo "$as_me:$LINENO: checking build system type" >&5
1833echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b3076f16 1834if test "${ac_cv_build+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1836else
a8b2ad8d 1837 ac_build_alias=$build_alias
1838test "x$ac_build_alias" = x &&
1839 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1840test "x$ac_build_alias" = x &&
b3076f16 1841 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1842echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1843 { (exit 1); exit 1; }; }
a8b2ad8d 1844ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1845 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1846echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b3076f16 1847 { (exit 1); exit 1; }; }
1848
1849fi
a8b2ad8d 1850{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1851echo "${ECHO_T}$ac_cv_build" >&6; }
1852case $ac_cv_build in
1853*-*-*) ;;
1854*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1855echo "$as_me: error: invalid value of canonical build" >&2;}
1856 { (exit 1); exit 1; }; };;
1857esac
b3076f16 1858build=$ac_cv_build
a8b2ad8d 1859ac_save_IFS=$IFS; IFS='-'
1860set x $ac_cv_build
1861shift
1862build_cpu=$1
1863build_vendor=$2
1864shift; shift
1865# Remember, the first character of IFS is used to create $*,
1866# except with old shells:
1867build_os=$*
1868IFS=$ac_save_IFS
1869case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1870
1871
1872{ echo "$as_me:$LINENO: checking host system type" >&5
1873echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b3076f16 1874if test "${ac_cv_host+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876else
a8b2ad8d 1877 if test "x$host_alias" = x; then
1878 ac_cv_host=$ac_cv_build
1879else
1880 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1881 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1882echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b3076f16 1883 { (exit 1); exit 1; }; }
a8b2ad8d 1884fi
b3076f16 1885
1886fi
a8b2ad8d 1887{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1888echo "${ECHO_T}$ac_cv_host" >&6; }
1889case $ac_cv_host in
1890*-*-*) ;;
1891*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1892echo "$as_me: error: invalid value of canonical host" >&2;}
1893 { (exit 1); exit 1; }; };;
1894esac
b3076f16 1895host=$ac_cv_host
a8b2ad8d 1896ac_save_IFS=$IFS; IFS='-'
1897set x $ac_cv_host
1898shift
1899host_cpu=$1
1900host_vendor=$2
1901shift; shift
1902# Remember, the first character of IFS is used to create $*,
1903# except with old shells:
1904host_os=$*
1905IFS=$ac_save_IFS
1906case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1907
1908
1909{ echo "$as_me:$LINENO: checking target system type" >&5
1910echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b3076f16 1911if test "${ac_cv_target+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913else
a8b2ad8d 1914 if test "x$target_alias" = x; then
1915 ac_cv_target=$ac_cv_host
1916else
1917 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1918 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1919echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b3076f16 1920 { (exit 1); exit 1; }; }
a8b2ad8d 1921fi
b3076f16 1922
1923fi
a8b2ad8d 1924{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1925echo "${ECHO_T}$ac_cv_target" >&6; }
1926case $ac_cv_target in
1927*-*-*) ;;
1928*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1929echo "$as_me: error: invalid value of canonical target" >&2;}
1930 { (exit 1); exit 1; }; };;
1931esac
b3076f16 1932target=$ac_cv_target
a8b2ad8d 1933ac_save_IFS=$IFS; IFS='-'
1934set x $ac_cv_target
1935shift
1936target_cpu=$1
1937target_vendor=$2
1938shift; shift
1939# Remember, the first character of IFS is used to create $*,
1940# except with old shells:
1941target_os=$*
1942IFS=$ac_save_IFS
1943case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 1944
1945
1946# The aliases save the names the user supplied, while $host etc.
1947# will get canonicalized.
1948test -n "$target_alias" &&
1949 test "$program_prefix$program_suffix$program_transform_name" = \
1950 NONENONEs,x,x, &&
1951 program_prefix=${target_alias}-
2f65da8f 1952am__api_version='1.10'
1953
b3076f16 1954# Find a good install program. We prefer a C program (faster),
1955# so one script is as good as another. But avoid the broken or
1956# incompatible versions:
1957# SysV /etc/install, /usr/sbin/install
1958# SunOS /usr/etc/install
1959# IRIX /sbin/install
1960# AIX /bin/install
1961# AmigaOS /C/install, which installs bootblocks on floppy discs
1962# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1963# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1964# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1965# OS/2's system install, which has a completely different semantic
1966# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 1967{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1968echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 1969if test -z "$INSTALL"; then
1970if test "${ac_cv_path_install+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 # Account for people who put trailing slashes in PATH elements.
1979case $as_dir/ in
1980 ./ | .// | /cC/* | \
1981 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1982 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1983 /usr/ucb/* ) ;;
1984 *)
1985 # OSF1 and SCO ODT 3.0 have their own names for install.
1986 # Don't use installbsd from OSF since it installs stuff as root
1987 # by default.
1988 for ac_prog in ginstall scoinst install; do
1989 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 1990 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 1991 if test $ac_prog = install &&
1992 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993 # AIX install. It has an incompatible calling convention.
1994 :
1995 elif test $ac_prog = install &&
1996 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1997 # program-specific install script used by HP pwplus--don't use.
1998 :
1999 else
2000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2001 break 3
2002 fi
2003 fi
2004 done
2005 done
2006 ;;
2007esac
2008done
a8b2ad8d 2009IFS=$as_save_IFS
b3076f16 2010
2011
2012fi
2013 if test "${ac_cv_path_install+set}" = set; then
2014 INSTALL=$ac_cv_path_install
2015 else
a8b2ad8d 2016 # As a last resort, use the slow shell script. Don't cache a
2017 # value for INSTALL within a source directory, because that will
b3076f16 2018 # break other packages using the cache if that directory is
a8b2ad8d 2019 # removed, or if the value is a relative name.
b3076f16 2020 INSTALL=$ac_install_sh
2021 fi
2022fi
a8b2ad8d 2023{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2024echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 2025
2026# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2027# It thinks the first close brace ends the variable substitution.
2028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2029
2030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2031
2032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2033
a8b2ad8d 2034{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2035echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
b3076f16 2036# Just in case
2037sleep 1
ec1a68c8 2038echo timestamp > conftest.file
b3076f16 2039# Do `set' in a subshell so we don't clobber the current shell's
2040# arguments. Must try -L first in case configure is actually a
2041# symlink; some systems play weird games with the mod time of symlinks
2042# (eg FreeBSD returns the mod time of the symlink's containing
2043# directory).
2044if (
ec1a68c8 2045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 2046 if test "$*" = "X"; then
2047 # -L didn't work.
ec1a68c8 2048 set X `ls -t $srcdir/configure conftest.file`
b3076f16 2049 fi
ec1a68c8 2050 rm -f conftest.file
2051 if test "$*" != "X $srcdir/configure conftest.file" \
2052 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2053
2054 # If neither matched, then we have a broken ls. This can happen
2055 # if, for instance, CONFIG_SHELL is bash and it inherits a
2056 # broken ls alias from the environment. This has actually
2057 # happened. Such a system could not be considered "sane".
2058 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2059alias in your environment" >&5
2060echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2061alias in your environment" >&2;}
2062 { (exit 1); exit 1; }; }
2063 fi
2064
ec1a68c8 2065 test "$2" = conftest.file
b3076f16 2066 )
2067then
2068 # Ok.
2069 :
2070else
2071 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2072Check your system clock" >&5
2073echo "$as_me: error: newly created file is older than distributed files!
2074Check your system clock" >&2;}
2075 { (exit 1); exit 1; }; }
2076fi
a8b2ad8d 2077{ echo "$as_me:$LINENO: result: yes" >&5
2078echo "${ECHO_T}yes" >&6; }
b3076f16 2079test "$program_prefix" != NONE &&
a8b2ad8d 2080 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2081# Use a double $ so make ignores it.
2082test "$program_suffix" != NONE &&
a8b2ad8d 2083 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b3076f16 2084# Double any \ or $. echo might interpret backslashes.
2085# By default was `s,x,x', remove it if useless.
2086cat <<\_ACEOF >conftest.sed
2087s/[\\$]/&&/g;s/;s,x,x,$//
2088_ACEOF
2089program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
a8b2ad8d 2090rm -f conftest.sed
b3076f16 2091
ec1a68c8 2092# expand $ac_aux_dir to an absolute path
2093am_aux_dir=`cd $ac_aux_dir && pwd`
2094
2095test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2096# Use eval to expand $SHELL
2097if eval "$MISSING --run true"; then
2098 am_missing_run="$MISSING --run "
2099else
2100 am_missing_run=
2101 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2102echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2103fi
2104
2f65da8f 2105{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2106echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2107if test -z "$MKDIR_P"; then
2108 if test "${ac_cv_path_mkdir+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2113do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_prog in mkdir gmkdir; do
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2119 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2120 'mkdir (GNU coreutils) '* | \
2121 'mkdir (coreutils) '* | \
2122 'mkdir (fileutils) '4.1*)
2123 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2124 break 3;;
2125 esac
2126 done
2127 done
2128done
2129IFS=$as_save_IFS
2130
2131fi
2132
2133 if test "${ac_cv_path_mkdir+set}" = set; then
2134 MKDIR_P="$ac_cv_path_mkdir -p"
ec1a68c8 2135 else
2f65da8f 2136 # As a last resort, use the slow shell script. Don't cache a
2137 # value for MKDIR_P within a source directory, because that will
2138 # break other packages using the cache if that directory is
2139 # removed, or if the value is a relative name.
2140 test -d ./--version && rmdir ./--version
2141 MKDIR_P="$ac_install_sh -d"
ec1a68c8 2142 fi
2143fi
2f65da8f 2144{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2145echo "${ECHO_T}$MKDIR_P" >&6; }
2146
2147mkdir_p="$MKDIR_P"
2148case $mkdir_p in
2149 [\\/$]* | ?:[\\/]*) ;;
2150 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2151esac
ec1a68c8 2152
2153for ac_prog in gawk mawk nawk awk
2154do
2155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2156set dummy $ac_prog; ac_word=$2
a8b2ad8d 2157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2159if test "${ac_cv_prog_AWK+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162 if test -n "$AWK"; then
2163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2172 ac_cv_prog_AWK="$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2175 fi
2176done
2177done
a8b2ad8d 2178IFS=$as_save_IFS
ec1a68c8 2179
2180fi
2181fi
2182AWK=$ac_cv_prog_AWK
2183if test -n "$AWK"; then
a8b2ad8d 2184 { echo "$as_me:$LINENO: result: $AWK" >&5
2185echo "${ECHO_T}$AWK" >&6; }
ec1a68c8 2186else
a8b2ad8d 2187 { echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6; }
ec1a68c8 2189fi
2190
a8b2ad8d 2191
ec1a68c8 2192 test -n "$AWK" && break
2193done
2194
a8b2ad8d 2195{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2196echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2197set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2198if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201 cat >conftest.make <<\_ACEOF
a8b2ad8d 2202SHELL = /bin/sh
b3076f16 2203all:
a8b2ad8d 2204 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2205_ACEOF
2206# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2207case `${MAKE-make} -f conftest.make 2>/dev/null` in
2208 *@@@%%%=?*=@@@%%%*)
2209 eval ac_cv_prog_make_${ac_make}_set=yes;;
2210 *)
2211 eval ac_cv_prog_make_${ac_make}_set=no;;
2212esac
b3076f16 2213rm -f conftest.make
2214fi
a8b2ad8d 2215if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2216 { echo "$as_me:$LINENO: result: yes" >&5
2217echo "${ECHO_T}yes" >&6; }
b3076f16 2218 SET_MAKE=
2219else
a8b2ad8d 2220 { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
b3076f16 2222 SET_MAKE="MAKE=${MAKE-make}"
2223fi
2224
ec1a68c8 2225rm -rf .tst 2>/dev/null
2226mkdir .tst 2>/dev/null
2227if test -d .tst; then
2228 am__leading_dot=.
2229else
2230 am__leading_dot=_
2231fi
2232rmdir .tst 2>/dev/null
b3076f16 2233
2f65da8f 2234if test "`cd $srcdir && pwd`" != "`pwd`"; then
2235 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2236 # is not polluted with repeated "-I."
2237 am__isrc=' -I$(srcdir)'
2238 # test to see if srcdir already configured
2239 if test -f $srcdir/config.status; then
2240 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
b3076f16 2241echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2242 { (exit 1); exit 1; }; }
2f65da8f 2243 fi
b3076f16 2244fi
2245
ec1a68c8 2246# test whether we have cygpath
2247if test -z "$CYGPATH_W"; then
2248 if (cygpath --version) >/dev/null 2>/dev/null; then
2249 CYGPATH_W='cygpath -w'
2250 else
2251 CYGPATH_W=echo
2252 fi
2253fi
2254
2255
2256# Define the identity of the package.
ceafd592 2257 PACKAGE='x3'
1136f709 2258 VERSION='1.7'
ec1a68c8 2259
2260
b3076f16 2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE "$PACKAGE"
2263_ACEOF
2264
2265
2266cat >>confdefs.h <<_ACEOF
2267#define VERSION "$VERSION"
2268_ACEOF
2269
ec1a68c8 2270# Some tools Automake needs.
b3076f16 2271
ec1a68c8 2272ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2273
ec1a68c8 2274
2275AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2276
2277
2278AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2279
2280
2281AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2282
2283
2284MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2285
2f65da8f 2286install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
ec1a68c8 2287
2288# Installed binaries are usually stripped using `strip' when the user
2289# run `make install-strip'. However `strip' might not be the right
2290# tool to use in cross-compilation environments, therefore Automake
2291# will honor the `STRIP' environment variable to overrule this program.
2292if test "$cross_compiling" != no; then
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295set dummy ${ac_tool_prefix}strip; ac_word=$2
a8b2ad8d 2296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2298if test "${ac_cv_prog_STRIP+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 2300else
ec1a68c8 2301 if test -n "$STRIP"; then
2302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303else
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2314 fi
2315done
2316done
a8b2ad8d 2317IFS=$as_save_IFS
b3076f16 2318
ec1a68c8 2319fi
2320fi
2321STRIP=$ac_cv_prog_STRIP
2322if test -n "$STRIP"; then
a8b2ad8d 2323 { echo "$as_me:$LINENO: result: $STRIP" >&5
2324echo "${ECHO_T}$STRIP" >&6; }
b3076f16 2325else
a8b2ad8d 2326 { echo "$as_me:$LINENO: result: no" >&5
2327echo "${ECHO_T}no" >&6; }
b3076f16 2328fi
b2cf3d66 2329
a8b2ad8d 2330
b3076f16 2331fi
ec1a68c8 2332if test -z "$ac_cv_prog_STRIP"; then
2333 ac_ct_STRIP=$STRIP
2334 # Extract the first word of "strip", so it can be a program name with args.
2335set dummy strip; ac_word=$2
a8b2ad8d 2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 if test -n "$ac_ct_STRIP"; then
2342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2351 ac_cv_prog_ac_ct_STRIP="strip"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355done
2356done
a8b2ad8d 2357IFS=$as_save_IFS
b3076f16 2358
ec1a68c8 2359fi
2360fi
2361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2362if test -n "$ac_ct_STRIP"; then
a8b2ad8d 2363 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2364echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b3076f16 2365else
a8b2ad8d 2366 { echo "$as_me:$LINENO: result: no" >&5
2367echo "${ECHO_T}no" >&6; }
b3076f16 2368fi
2369
a8b2ad8d 2370 if test "x$ac_ct_STRIP" = x; then
2371 STRIP=":"
2372 else
2373 case $cross_compiling:$ac_tool_warned in
2374yes:)
2375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2376whose name does not start with the host triplet. If you think this
2377configuration is useful to you, please write to autoconf@gnu.org." >&5
2378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2379whose name does not start with the host triplet. If you think this
2380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2381ac_tool_warned=yes ;;
2382esac
2383 STRIP=$ac_ct_STRIP
2384 fi
b2cf3d66 2385else
ec1a68c8 2386 STRIP="$ac_cv_prog_STRIP"
b3076f16 2387fi
b3076f16 2388
ec1a68c8 2389fi
2f65da8f 2390INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
ec1a68c8 2391
2392# We need awk for the "check" target. The system "awk" is bad on
2393# some platforms.
2394# Always define AMTAR for backward compatibility.
2395
2396AMTAR=${AMTAR-"${am_missing_run}tar"}
2397
2398am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2399
2400
2401
2402
b3076f16 2403
a8b2ad8d 2404{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2405echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2406 # Check whether --enable-maintainer-mode was given.
b3076f16 2407if test "${enable_maintainer_mode+set}" = set; then
a8b2ad8d 2408 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2409else
2410 USE_MAINTAINER_MODE=no
a8b2ad8d 2411fi
2412
2413 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2414echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2f65da8f 2415 if test $USE_MAINTAINER_MODE = yes; then
b3076f16 2416 MAINTAINER_MODE_TRUE=
2417 MAINTAINER_MODE_FALSE='#'
2418else
2419 MAINTAINER_MODE_TRUE='#'
2420 MAINTAINER_MODE_FALSE=
2421fi
ec1a68c8 2422
b3076f16 2423 MAINT=$MAINTAINER_MODE_TRUE
2424
2425
2426
ec1a68c8 2427DEPDIR="${am__leading_dot}deps"
2428
a8b2ad8d 2429ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2430
2431
2432am_make=${MAKE-make}
2433cat > confinc << 'END'
2434am__doit:
2435 @echo done
2436.PHONY: am__doit
2437END
2438# If we don't find an include directive, just comment out the code.
a8b2ad8d 2439{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2440echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
ec1a68c8 2441am__include="#"
2442am__quote=
2443_am_result=none
2444# First try GNU make style include.
2445echo "include confinc" > confmf
2446# We grep out `Entering directory' and `Leaving directory'
2447# messages which can occur if `w' ends up in MAKEFLAGS.
2448# In particular we don't look at `^make:' because GNU make might
2449# be invoked under some other name (usually "gmake"), in which
2450# case it prints its new name instead of `make'.
2451if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2452 am__include=include
2453 am__quote=
2454 _am_result=GNU
2455fi
2456# Now try BSD make style include.
2457if test "$am__include" = "#"; then
2458 echo '.include "confinc"' > confmf
2459 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2460 am__include=.include
2461 am__quote="\""
2462 _am_result=BSD
2463 fi
2464fi
2465
2466
a8b2ad8d 2467{ echo "$as_me:$LINENO: result: $_am_result" >&5
2468echo "${ECHO_T}$_am_result" >&6; }
ec1a68c8 2469rm -f confinc confmf
2470
a8b2ad8d 2471# Check whether --enable-dependency-tracking was given.
ec1a68c8 2472if test "${enable_dependency_tracking+set}" = set; then
a8b2ad8d 2473 enableval=$enable_dependency_tracking;
2474fi
ec1a68c8 2475
ec1a68c8 2476if test "x$enable_dependency_tracking" != xno; then
2477 am_depcomp="$ac_aux_dir/depcomp"
2478 AMDEPBACKSLASH='\'
2479fi
2f65da8f 2480 if test "x$enable_dependency_tracking" != xno; then
ec1a68c8 2481 AMDEP_TRUE=
2482 AMDEP_FALSE='#'
2483else
2484 AMDEP_TRUE='#'
2485 AMDEP_FALSE=
2486fi
2487
2488
b3076f16 2489ac_ext=c
2490ac_cpp='$CPP $CPPFLAGS'
2491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2496set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 2497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2499if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2515 fi
2516done
2517done
a8b2ad8d 2518IFS=$as_save_IFS
b3076f16 2519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
a8b2ad8d 2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525echo "${ECHO_T}$CC" >&6; }
b3076f16 2526else
a8b2ad8d 2527 { echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6; }
b3076f16 2529fi
2530
a8b2ad8d 2531
b3076f16 2532fi
2533if test -z "$ac_cv_prog_CC"; then
2534 ac_ct_CC=$CC
2535 # Extract the first word of "gcc", so it can be a program name with args.
2536set dummy gcc; ac_word=$2
a8b2ad8d 2537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 if test -n "$ac_ct_CC"; then
2543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2552 ac_cv_prog_ac_ct_CC="gcc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556done
2557done
a8b2ad8d 2558IFS=$as_save_IFS
b3076f16 2559
2560fi
2561fi
2562ac_ct_CC=$ac_cv_prog_ac_ct_CC
2563if test -n "$ac_ct_CC"; then
a8b2ad8d 2564 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2565echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2566else
a8b2ad8d 2567 { echo "$as_me:$LINENO: result: no" >&5
2568echo "${ECHO_T}no" >&6; }
b3076f16 2569fi
2570
a8b2ad8d 2571 if test "x$ac_ct_CC" = x; then
2572 CC=""
2573 else
2574 case $cross_compiling:$ac_tool_warned in
2575yes:)
2576{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2577whose name does not start with the host triplet. If you think this
2578configuration is useful to you, please write to autoconf@gnu.org." >&5
2579echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2580whose name does not start with the host triplet. If you think this
2581configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2582ac_tool_warned=yes ;;
2583esac
2584 CC=$ac_ct_CC
2585 fi
b3076f16 2586else
2587 CC="$ac_cv_prog_CC"
2588fi
2589
2590if test -z "$CC"; then
a8b2ad8d 2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 2593set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 2594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2596if test "${ac_cv_prog_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2609 ac_cv_prog_CC="${ac_tool_prefix}cc"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613done
2614done
a8b2ad8d 2615IFS=$as_save_IFS
b3076f16 2616
2617fi
2618fi
2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
a8b2ad8d 2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622echo "${ECHO_T}$CC" >&6; }
b3076f16 2623else
a8b2ad8d 2624 { echo "$as_me:$LINENO: result: no" >&5
2625echo "${ECHO_T}no" >&6; }
b3076f16 2626fi
2627
b3076f16 2628
a8b2ad8d 2629 fi
b3076f16 2630fi
2631if test -z "$CC"; then
2632 # Extract the first word of "cc", so it can be a program name with args.
2633set dummy cc; ac_word=$2
a8b2ad8d 2634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2636if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641else
2642 ac_prog_rejected=no
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2651 ac_prog_rejected=yes
2652 continue
2653 fi
2654 ac_cv_prog_CC="cc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659done
a8b2ad8d 2660IFS=$as_save_IFS
b3076f16 2661
2662if test $ac_prog_rejected = yes; then
2663 # We found a bogon in the path, so make sure we never use it.
2664 set dummy $ac_cv_prog_CC
2665 shift
2666 if test $# != 0; then
2667 # We chose a different compiler from the bogus one.
2668 # However, it has the same basename, so the bogon will be chosen
2669 # first if we set CC to just the basename; use the full file name.
2670 shift
2671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2672 fi
2673fi
2674fi
2675fi
2676CC=$ac_cv_prog_CC
2677if test -n "$CC"; then
a8b2ad8d 2678 { echo "$as_me:$LINENO: result: $CC" >&5
2679echo "${ECHO_T}$CC" >&6; }
b3076f16 2680else
a8b2ad8d 2681 { echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6; }
b3076f16 2683fi
2684
a8b2ad8d 2685
b3076f16 2686fi
2687if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
a8b2ad8d 2689 for ac_prog in cl.exe
b3076f16 2690 do
2691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 2693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2695if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712done
2713done
a8b2ad8d 2714IFS=$as_save_IFS
b3076f16 2715
2716fi
2717fi
2718CC=$ac_cv_prog_CC
2719if test -n "$CC"; then
a8b2ad8d 2720 { echo "$as_me:$LINENO: result: $CC" >&5
2721echo "${ECHO_T}$CC" >&6; }
b3076f16 2722else
a8b2ad8d 2723 { echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6; }
b3076f16 2725fi
2726
a8b2ad8d 2727
b3076f16 2728 test -n "$CC" && break
2729 done
2730fi
2731if test -z "$CC"; then
2732 ac_ct_CC=$CC
a8b2ad8d 2733 for ac_prog in cl.exe
b3076f16 2734do
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736set dummy $ac_prog; ac_word=$2
a8b2ad8d 2737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741else
2742 if test -n "$ac_ct_CC"; then
2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2752 ac_cv_prog_ac_ct_CC="$ac_prog"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756done
2757done
a8b2ad8d 2758IFS=$as_save_IFS
b3076f16 2759
2760fi
2761fi
2762ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763if test -n "$ac_ct_CC"; then
a8b2ad8d 2764 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2766else
a8b2ad8d 2767 { echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6; }
b3076f16 2769fi
2770
a8b2ad8d 2771
b3076f16 2772 test -n "$ac_ct_CC" && break
2773done
2774
a8b2ad8d 2775 if test "x$ac_ct_CC" = x; then
2776 CC=""
2777 else
2778 case $cross_compiling:$ac_tool_warned in
2779yes:)
2780{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2781whose name does not start with the host triplet. If you think this
2782configuration is useful to you, please write to autoconf@gnu.org." >&5
2783echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2784whose name does not start with the host triplet. If you think this
2785configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2786ac_tool_warned=yes ;;
2787esac
2788 CC=$ac_ct_CC
2789 fi
b3076f16 2790fi
2791
2792fi
2793
2794
2795test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2796See \`config.log' for more details." >&5
2797echo "$as_me: error: no acceptable C compiler found in \$PATH
2798See \`config.log' for more details." >&2;}
2799 { (exit 1); exit 1; }; }
2800
2801# Provide some information about the compiler.
a8b2ad8d 2802echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 2803ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 2804{ (ac_try="$ac_compiler --version >&5"
2805case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }
a8b2ad8d 2814{ (ac_try="$ac_compiler -v >&5"
2815case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818esac
2819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }
a8b2ad8d 2824{ (ac_try="$ac_compiler -V >&5"
2825case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2834
2835cat >conftest.$ac_ext <<_ACEOF
2836/* confdefs.h. */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h. */
2841
2842int
2843main ()
2844{
2845
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850ac_clean_files_save=$ac_clean_files
2851ac_clean_files="$ac_clean_files a.out a.exe b.out"
2852# Try to create an executable without -o first, disregard a.out.
2853# It will help us diagnose broken compilers, and finding out an intuition
2854# of exeext.
a8b2ad8d 2855{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2856echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b3076f16 2857ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a8b2ad8d 2858#
2859# List of possible output files, starting from the most likely.
2860# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2861# only as a last resort. b.out is created by i960 compilers.
2862ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2863#
2864# The IRIX 6 linker writes into existing files which may not be
2865# executable, retaining their permissions. Remove them first so a
2866# subsequent execution test works.
2867ac_rmfiles=
2868for ac_file in $ac_files
2869do
2870 case $ac_file in
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873 esac
2874done
2875rm -f $ac_rmfiles
2876
2877if { (ac_try="$ac_link_default"
2878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link_default") 2>&5
b3076f16 2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
a8b2ad8d 2887 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2888# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2889# in a Makefile. We should not override ac_cv_exeext if it was cached,
2890# so that the user can short-circuit this test for compilers unknown to
2891# Autoconf.
0bd0bef6 2892for ac_file in $ac_files ''
b3076f16 2893do
2894 test -f "$ac_file" || continue
2895 case $ac_file in
a8b2ad8d 2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b3076f16 2897 ;;
2898 [ab].out )
2899 # We found the default executable, but exeext='' is most
2900 # certainly right.
2901 break;;
2902 *.* )
a8b2ad8d 2903 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2904 then :; else
2905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 fi
2907 # We set ac_cv_exeext here because the later test for it is not
2908 # safe: cross compilers may not add the suffix if given an `-o'
2909 # argument, so we may need to know it at that point already.
2910 # Even if this section looks crufty: it has the advantage of
2911 # actually working.
b3076f16 2912 break;;
2913 * )
2914 break;;
2915 esac
2916done
a8b2ad8d 2917test "$ac_cv_exeext" = no && ac_cv_exeext=
2918
b3076f16 2919else
0bd0bef6 2920 ac_file=''
2921fi
2922
2923{ echo "$as_me:$LINENO: result: $ac_file" >&5
2924echo "${ECHO_T}$ac_file" >&6; }
2925if test -z "$ac_file"; then
b3076f16 2926 echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2930See \`config.log' for more details." >&5
2931echo "$as_me: error: C compiler cannot create executables
2932See \`config.log' for more details." >&2;}
2933 { (exit 77); exit 77; }; }
2934fi
2935
2936ac_exeext=$ac_cv_exeext
b3076f16 2937
a8b2ad8d 2938# Check that the compiler produces executables we can run. If not, either
b3076f16 2939# the compiler is broken, or we cross compile.
a8b2ad8d 2940{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2941echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b3076f16 2942# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2943# If not cross compiling, check that we can run a simple program.
2944if test "$cross_compiling" != yes; then
2945 if { ac_try='./$ac_file'
a8b2ad8d 2946 { (case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_try") 2>&5
b3076f16 2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 cross_compiling=no
2956 else
2957 if test "$cross_compiling" = maybe; then
2958 cross_compiling=yes
2959 else
2960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2961If you meant to cross compile, use \`--host'.
2962See \`config.log' for more details." >&5
2963echo "$as_me: error: cannot run C compiled programs.
2964If you meant to cross compile, use \`--host'.
2965See \`config.log' for more details." >&2;}
2966 { (exit 1); exit 1; }; }
2967 fi
2968 fi
2969fi
a8b2ad8d 2970{ echo "$as_me:$LINENO: result: yes" >&5
2971echo "${ECHO_T}yes" >&6; }
b3076f16 2972
2973rm -f a.out a.exe conftest$ac_cv_exeext b.out
2974ac_clean_files=$ac_clean_files_save
a8b2ad8d 2975# Check that the compiler produces executables we can run. If not, either
b3076f16 2976# the compiler is broken, or we cross compile.
a8b2ad8d 2977{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2978echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2979{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2980echo "${ECHO_T}$cross_compiling" >&6; }
2981
2982{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2983echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2984if { (ac_try="$ac_link"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_link") 2>&5
b3076f16 2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2995# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2996# work properly (i.e., refer to `conftest.exe'), while it won't with
2997# `rm'.
2998for ac_file in conftest.exe conftest conftest.*; do
2999 test -f "$ac_file" || continue
3000 case $ac_file in
a8b2ad8d 3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b3076f16 3002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 3003 break;;
3004 * ) break;;
3005 esac
3006done
3007else
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3009See \`config.log' for more details." >&5
3010echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3011See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3013fi
3014
3015rm -f conftest$ac_cv_exeext
a8b2ad8d 3016{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3017echo "${ECHO_T}$ac_cv_exeext" >&6; }
b3076f16 3018
3019rm -f conftest.$ac_ext
3020EXEEXT=$ac_cv_exeext
3021ac_exeext=$EXEEXT
a8b2ad8d 3022{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3023echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b3076f16 3024if test "${ac_cv_objext+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027 cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h. */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h. */
3033
3034int
3035main ()
3036{
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042rm -f conftest.o conftest.obj
a8b2ad8d 3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>&5
b3076f16 3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; then
a8b2ad8d 3053 for ac_file in conftest.o conftest.obj conftest.*; do
3054 test -f "$ac_file" || continue;
b3076f16 3055 case $ac_file in
a8b2ad8d 3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b3076f16 3057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3058 break;;
3059 esac
3060done
3061else
3062 echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3066See \`config.log' for more details." >&5
3067echo "$as_me: error: cannot compute suffix of object files: cannot compile
3068See \`config.log' for more details." >&2;}
3069 { (exit 1); exit 1; }; }
3070fi
3071
3072rm -f conftest.$ac_cv_objext conftest.$ac_ext
3073fi
a8b2ad8d 3074{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3075echo "${ECHO_T}$ac_cv_objext" >&6; }
b3076f16 3076OBJEXT=$ac_cv_objext
3077ac_objext=$OBJEXT
a8b2ad8d 3078{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3079echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 3080if test "${ac_cv_c_compiler_gnu+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083 cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h. */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h. */
3089
3090int
3091main ()
3092{
3093#ifndef __GNUC__
3094 choke me
3095#endif
3096
3097 ;
3098 return 0;
3099}
3100_ACEOF
3101rm -f conftest.$ac_objext
a8b2ad8d 3102if { (ac_try="$ac_compile"
3103case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
b3076f16 3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3114 (exit $ac_status); } && {
3115 test -z "$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.$ac_objext; then
b3076f16 3118 ac_compiler_gnu=yes
3119else
3120 echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
a8b2ad8d 3123 ac_compiler_gnu=no
b3076f16 3124fi
a8b2ad8d 3125
3126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3127ac_cv_c_compiler_gnu=$ac_compiler_gnu
3128
3129fi
a8b2ad8d 3130{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3131echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 3132GCC=`test $ac_compiler_gnu = yes && echo yes`
3133ac_test_CFLAGS=${CFLAGS+set}
3134ac_save_CFLAGS=$CFLAGS
a8b2ad8d 3135{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3136echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 3137if test "${ac_cv_prog_cc_g+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
a8b2ad8d 3140 ac_save_c_werror_flag=$ac_c_werror_flag
3141 ac_c_werror_flag=yes
3142 ac_cv_prog_cc_g=no
3143 CFLAGS="-g"
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150
3151int
3152main ()
3153{
3154
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (ac_try="$ac_compile"
3161case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
a8b2ad8d 3176 ac_cv_prog_cc_g=yes
3177else
3178 echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 CFLAGS=""
3182 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h. */
3188
3189int
3190main ()
3191{
3192
3193 ;
3194 return 0;
3195}
3196_ACEOF
3197rm -f conftest.$ac_objext
3198if { (ac_try="$ac_compile"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
a8b2ad8d 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
0bd0bef6 3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
b3076f16 3253 ac_cv_prog_cc_g=yes
3254else
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
a8b2ad8d 3258
3259fi
3260
3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262fi
3263
3264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3265fi
a8b2ad8d 3266
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3269fi
a8b2ad8d 3270{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3271echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 3272if test "$ac_test_CFLAGS" = set; then
3273 CFLAGS=$ac_save_CFLAGS
3274elif test $ac_cv_prog_cc_g = yes; then
3275 if test "$GCC" = yes; then
3276 CFLAGS="-g -O2"
3277 else
3278 CFLAGS="-g"
3279 fi
3280else
3281 if test "$GCC" = yes; then
3282 CFLAGS="-O2"
3283 else
3284 CFLAGS=
3285 fi
3286fi
a8b2ad8d 3287{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3288echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3289if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
a8b2ad8d 3292 ac_cv_prog_cc_c89=no
b3076f16 3293ac_save_CC=$CC
3294cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300#include <stdarg.h>
3301#include <stdio.h>
3302#include <sys/types.h>
3303#include <sys/stat.h>
3304/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3305struct buf { int x; };
3306FILE * (*rcsopen) (struct buf *, struct stat *, int);
3307static char *e (p, i)
3308 char **p;
3309 int i;
3310{
3311 return p[i];
3312}
3313static char *f (char * (*g) (char **, int), char **p, ...)
3314{
3315 char *s;
3316 va_list v;
3317 va_start (v,p);
3318 s = g (p, va_arg (v,int));
3319 va_end (v);
3320 return s;
3321}
3322
3323/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3324 function prototypes and stuff, but not '\xHH' hex character constants.
3325 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3326 as 'x'. The following induces an error, until -std is added to get
b3076f16 3327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3328 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3329 that's true only with -std. */
b3076f16 3330int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3331
a8b2ad8d 3332/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333 inside strings and character constants. */
3334#define FOO(x) 'x'
3335int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3336
b3076f16 3337int test (int i, double x);
3338struct s1 {int (*f) (int a);};
3339struct s2 {int (*f) (double a);};
3340int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3341int argc;
3342char **argv;
3343int
3344main ()
3345{
3346return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3347 ;
3348 return 0;
3349}
3350_ACEOF
a8b2ad8d 3351for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3353do
3354 CC="$ac_save_CC $ac_arg"
3355 rm -f conftest.$ac_objext
a8b2ad8d 3356if { (ac_try="$ac_compile"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_compile") 2>conftest.er1
b3076f16 3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3368 (exit $ac_status); } && {
3369 test -z "$ac_c_werror_flag" ||
3370 test ! -s conftest.err
3371 } && test -s conftest.$ac_objext; then
a8b2ad8d 3372 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3373else
3374 echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
a8b2ad8d 3377
b3076f16 3378fi
a8b2ad8d 3379
3380rm -f core conftest.err conftest.$ac_objext
3381 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3382done
a8b2ad8d 3383rm -f conftest.$ac_ext
b3076f16 3384CC=$ac_save_CC
3385
3386fi
a8b2ad8d 3387# AC_CACHE_VAL
3388case "x$ac_cv_prog_cc_c89" in
3389 x)
3390 { echo "$as_me:$LINENO: result: none needed" >&5
3391echo "${ECHO_T}none needed" >&6; } ;;
3392 xno)
3393 { echo "$as_me:$LINENO: result: unsupported" >&5
3394echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 3395 *)
a8b2ad8d 3396 CC="$CC $ac_cv_prog_cc_c89"
3397 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3398echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3399esac
3400
b3076f16 3401
b3076f16 3402ac_ext=c
3403ac_cpp='$CPP $CPPFLAGS'
3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407
ec1a68c8 3408depcc="$CC" am_compiler_list=
3409
a8b2ad8d 3410{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3411echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 3412if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3416 # We make a subdir and do the tests there. Otherwise we can end up
3417 # making bogus files that we don't know about and never remove. For
3418 # instance it was reported that on HP-UX the gcc test will end up
3419 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # in D'.
3421 mkdir conftest.dir
3422 # Copy depcomp to subdir because otherwise we won't find it if we're
3423 # using a relative directory.
3424 cp "$am_depcomp" conftest.dir
3425 cd conftest.dir
3426 # We will build objects and dependencies in a subdirectory because
3427 # it helps to detect inapplicable dependency modes. For instance
3428 # both Tru64's cc and ICC support -MD to output dependencies as a
3429 # side effect of compilation, but ICC will put the dependencies in
3430 # the current directory while Tru64 will put them in the object
3431 # directory.
3432 mkdir sub
3433
3434 am_cv_CC_dependencies_compiler_type=none
3435 if test "$am_compiler_list" = ""; then
3436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3437 fi
3438 for depmode in $am_compiler_list; do
3439 # Setup a source with many dependencies, because some compilers
3440 # like to wrap large dependency lists on column 80 (with \), and
3441 # we should not choose a depcomp mode which is confused by this.
3442 #
3443 # We need to recreate these files for each test, as the compiler may
3444 # overwrite some of them when testing with obscure command lines.
3445 # This happens at least with the AIX C compiler.
3446 : > sub/conftest.c
3447 for i in 1 2 3 4 5 6; do
3448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450 # Solaris 8's {/usr,}/bin/sh.
3451 touch sub/conftst$i.h
3452 done
3453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454
3455 case $depmode in
3456 nosideeffect)
3457 # after this tag, mechanisms are not by side-effect, so they'll
3458 # only be used when explicitly requested
3459 if test "x$enable_dependency_tracking" = xyes; then
3460 continue
3461 else
3462 break
3463 fi
3464 ;;
3465 none) break ;;
3466 esac
3467 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3468 # mode. It turns out that the SunPro C++ compiler does not properly
3469 # handle `-M -o', and we need to detect this.
3470 if depmode=$depmode \
3471 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3473 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3474 >/dev/null 2>conftest.err &&
2f65da8f 3475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 3476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3477 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3479 # icc doesn't choke on unknown options, it will just issue warnings
3480 # or remarks (even with -Werror). So we grep stderr for any message
3481 # that says an option was ignored or not supported.
3482 # When given -MP, icc 7.0 and 7.1 complain thusly:
3483 # icc: Command line warning: ignoring option '-M'; no argument required
3484 # The diagnosis changed in icc 8.0:
3485 # icc: Command line remark: option '-MP' not supported
3486 if (grep 'ignoring option' conftest.err ||
3487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3488 am_cv_CC_dependencies_compiler_type=$depmode
3489 break
3490 fi
3491 fi
3492 done
3493
3494 cd ..
3495 rm -rf conftest.dir
3496else
3497 am_cv_CC_dependencies_compiler_type=none
3498fi
3499
3500fi
a8b2ad8d 3501{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3502echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3503CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3504
2f65da8f 3505 if
ec1a68c8 3506 test "x$enable_dependency_tracking" != xno \
3507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3508 am__fastdepCC_TRUE=
3509 am__fastdepCC_FALSE='#'
3510else
3511 am__fastdepCC_TRUE='#'
3512 am__fastdepCC_FALSE=
3513fi
3514
3515
b3076f16 3516
a8b2ad8d 3517{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3518echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
b3076f16 3519if test "${ac_cv_type_signal+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h. */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h. */
3528#include <sys/types.h>
3529#include <signal.h>
b3076f16 3530
3531int
3532main ()
3533{
a8b2ad8d 3534return *(signal (0, 0)) (0) == 1;
b3076f16 3535 ;
3536 return 0;
3537}
3538_ACEOF
3539rm -f conftest.$ac_objext
a8b2ad8d 3540if { (ac_try="$ac_compile"
3541case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544esac
3545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_compile") 2>conftest.er1
b3076f16 3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3552 (exit $ac_status); } && {
3553 test -z "$ac_c_werror_flag" ||
3554 test ! -s conftest.err
3555 } && test -s conftest.$ac_objext; then
a8b2ad8d 3556 ac_cv_type_signal=int
b3076f16 3557else
3558 echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
a8b2ad8d 3561 ac_cv_type_signal=void
b3076f16 3562fi
a8b2ad8d 3563
3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3565fi
a8b2ad8d 3566{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3567echo "${ECHO_T}$ac_cv_type_signal" >&6; }
b3076f16 3568
3569cat >>confdefs.h <<_ACEOF
3570#define RETSIGTYPE $ac_cv_type_signal
3571_ACEOF
3572
3573
a8b2ad8d 3574{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3575echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
b3076f16 3576if test "${ac_cv_c_const+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585
3586int
3587main ()
3588{
3589/* FIXME: Include the comments suggested by Paul. */
3590#ifndef __cplusplus
3591 /* Ultrix mips cc rejects this. */
3592 typedef int charset[2];
0bd0bef6 3593 const charset cs;
b3076f16 3594 /* SunOS 4.1.1 cc rejects this. */
0bd0bef6 3595 char const *const *pcpcc;
3596 char **ppc;
b3076f16 3597 /* NEC SVR4.0.2 mips cc rejects this. */
3598 struct point {int x, y;};
3599 static struct point const zero = {0,0};
3600 /* AIX XL C 1.02.0.0 rejects this.
3601 It does not let you subtract one const X* pointer from another in
3602 an arm of an if-expression whose if-part is not a constant
3603 expression */
3604 const char *g = "string";
0bd0bef6 3605 pcpcc = &g + (g ? g-g : 0);
b3076f16 3606 /* HPUX 7.0 cc rejects these. */
0bd0bef6 3607 ++pcpcc;
3608 ppc = (char**) pcpcc;
3609 pcpcc = (char const *const *) ppc;
b3076f16 3610 { /* SCO 3.2v4 cc rejects this. */
3611 char *t;
3612 char const *s = 0 ? (char *) 0 : (char const *) 0;
3613
3614 *t++ = 0;
a8b2ad8d 3615 if (s) return 0;
b3076f16 3616 }
3617 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3618 int x[] = {25, 17};
3619 const int *foo = &x[0];
3620 ++foo;
3621 }
3622 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3623 typedef const int *iptr;
3624 iptr p = 0;
3625 ++p;
3626 }
3627 { /* AIX XL C 1.02.0.0 rejects this saying
3628 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3629 struct s { int j; const int *ap[3]; };
3630 struct s *b; b->j = 5;
3631 }
3632 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3633 const int foo = 10;
a8b2ad8d 3634 if (!foo) return 0;
b3076f16 3635 }
0bd0bef6 3636 return !cs[0] && !zero.x;
b3076f16 3637#endif
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext
a8b2ad8d 3644if { (ac_try="$ac_compile"
3645case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648esac
3649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_compile") 2>conftest.er1
b3076f16 3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3656 (exit $ac_status); } && {
3657 test -z "$ac_c_werror_flag" ||
3658 test ! -s conftest.err
3659 } && test -s conftest.$ac_objext; then
b3076f16 3660 ac_cv_c_const=yes
3661else
3662 echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
a8b2ad8d 3665 ac_cv_c_const=no
b3076f16 3666fi
a8b2ad8d 3667
3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3669fi
a8b2ad8d 3670{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3671echo "${ECHO_T}$ac_cv_c_const" >&6; }
b3076f16 3672if test $ac_cv_c_const = no; then
3673
3674cat >>confdefs.h <<\_ACEOF
3675#define const
3676_ACEOF
3677
3678fi
3679
0f6fe38c 3680
3681for ac_prog in gawk mawk nawk awk
3682do
3683 # Extract the first word of "$ac_prog", so it can be a program name with args.
3684set dummy $ac_prog; ac_word=$2
3685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3687if test "${ac_cv_prog_AWK+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690 if test -n "$AWK"; then
3691 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0f6fe38c 3700 ac_cv_prog_AWK="$ac_prog"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704done
3705done
3706IFS=$as_save_IFS
3707
3708fi
3709fi
3710AWK=$ac_cv_prog_AWK
3711if test -n "$AWK"; then
3712 { echo "$as_me:$LINENO: result: $AWK" >&5
3713echo "${ECHO_T}$AWK" >&6; }
3714else
3715 { echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6; }
3717fi
b3076f16 3718
a8b2ad8d 3719
b3076f16 3720 test -n "$AWK" && break
3721done
3722
3723ac_ext=c
3724ac_cpp='$CPP $CPPFLAGS'
3725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3730set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 3731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3733if test "${ac_cv_prog_CC+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC="$CC" # Let the user override the test.
3738else
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750done
3751done
a8b2ad8d 3752IFS=$as_save_IFS
b3076f16 3753
3754fi
3755fi
3756CC=$ac_cv_prog_CC
3757if test -n "$CC"; then
a8b2ad8d 3758 { echo "$as_me:$LINENO: result: $CC" >&5
3759echo "${ECHO_T}$CC" >&6; }
b3076f16 3760else
a8b2ad8d 3761 { echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6; }
b3076f16 3763fi
3764
a8b2ad8d 3765
b3076f16 3766fi
3767if test -z "$ac_cv_prog_CC"; then
3768 ac_ct_CC=$CC
3769 # Extract the first word of "gcc", so it can be a program name with args.
3770set dummy gcc; ac_word=$2
a8b2ad8d 3771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3773if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778else
3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3786 ac_cv_prog_ac_ct_CC="gcc"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3789 fi
3790done
3791done
a8b2ad8d 3792IFS=$as_save_IFS
b3076f16 3793
3794fi
3795fi
3796ac_ct_CC=$ac_cv_prog_ac_ct_CC
3797if test -n "$ac_ct_CC"; then
a8b2ad8d 3798 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3799echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 3800else
a8b2ad8d 3801 { echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6; }
b3076f16 3803fi
3804
a8b2ad8d 3805 if test "x$ac_ct_CC" = x; then
3806 CC=""
3807 else
3808 case $cross_compiling:$ac_tool_warned in
3809yes:)
3810{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3811whose name does not start with the host triplet. If you think this
3812configuration is useful to you, please write to autoconf@gnu.org." >&5
3813echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3814whose name does not start with the host triplet. If you think this
3815configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3816ac_tool_warned=yes ;;
3817esac
3818 CC=$ac_ct_CC
3819 fi
b3076f16 3820else
3821 CC="$ac_cv_prog_CC"
3822fi
3823
3824if test -z "$CC"; then
a8b2ad8d 3825 if test -n "$ac_tool_prefix"; then
3826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3827set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 3828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3830if test "${ac_cv_prog_CC+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 if test -n "$CC"; then
3834 ac_cv_prog_CC="$CC" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3843 ac_cv_prog_CC="${ac_tool_prefix}cc"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847done
3848done
a8b2ad8d 3849IFS=$as_save_IFS
b3076f16 3850
3851fi
3852fi
3853CC=$ac_cv_prog_CC
3854if test -n "$CC"; then
a8b2ad8d 3855 { echo "$as_me:$LINENO: result: $CC" >&5
3856echo "${ECHO_T}$CC" >&6; }
b3076f16 3857else
a8b2ad8d 3858 { echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6; }
b3076f16 3860fi
3861
b3076f16 3862
a8b2ad8d 3863 fi
b3076f16 3864fi
3865if test -z "$CC"; then
3866 # Extract the first word of "cc", so it can be a program name with args.
3867set dummy cc; ac_word=$2
a8b2ad8d 3868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3870if test "${ac_cv_prog_CC+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 if test -n "$CC"; then
3874 ac_cv_prog_CC="$CC" # Let the user override the test.
3875else
3876 ac_prog_rejected=no
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3884 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3885 ac_prog_rejected=yes
3886 continue
3887 fi
3888 ac_cv_prog_CC="cc"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892done
3893done
a8b2ad8d 3894IFS=$as_save_IFS
b3076f16 3895
3896if test $ac_prog_rejected = yes; then
3897 # We found a bogon in the path, so make sure we never use it.
3898 set dummy $ac_cv_prog_CC
3899 shift
3900 if test $# != 0; then
3901 # We chose a different compiler from the bogus one.
3902 # However, it has the same basename, so the bogon will be chosen
3903 # first if we set CC to just the basename; use the full file name.
3904 shift
3905 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3906 fi
3907fi
3908fi
3909fi
3910CC=$ac_cv_prog_CC
3911if test -n "$CC"; then
a8b2ad8d 3912 { echo "$as_me:$LINENO: result: $CC" >&5
3913echo "${ECHO_T}$CC" >&6; }
b3076f16 3914else
a8b2ad8d 3915 { echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6; }
b3076f16 3917fi
3918
a8b2ad8d 3919
b3076f16 3920fi
3921if test -z "$CC"; then
3922 if test -n "$ac_tool_prefix"; then
a8b2ad8d 3923 for ac_prog in cl.exe
b3076f16 3924 do
3925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 3927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3929if test "${ac_cv_prog_CC+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932 if test -n "$CC"; then
3933 ac_cv_prog_CC="$CC" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947done
a8b2ad8d 3948IFS=$as_save_IFS
b3076f16 3949
3950fi
3951fi
3952CC=$ac_cv_prog_CC
3953if test -n "$CC"; then
a8b2ad8d 3954 { echo "$as_me:$LINENO: result: $CC" >&5
3955echo "${ECHO_T}$CC" >&6; }
b3076f16 3956else
a8b2ad8d 3957 { echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6; }
b3076f16 3959fi
3960
a8b2ad8d 3961
b3076f16 3962 test -n "$CC" && break
3963 done
3964fi
3965if test -z "$CC"; then
3966 ac_ct_CC=$CC
a8b2ad8d 3967 for ac_prog in cl.exe
b3076f16 3968do
3969 # Extract the first word of "$ac_prog", so it can be a program name with args.
3970set dummy $ac_prog; ac_word=$2
a8b2ad8d 3971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3973if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 if test -n "$ac_ct_CC"; then
3977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3978else
3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3986 ac_cv_prog_ac_ct_CC="$ac_prog"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990done
3991done
a8b2ad8d 3992IFS=$as_save_IFS
b3076f16 3993
3994fi
3995fi
3996ac_ct_CC=$ac_cv_prog_ac_ct_CC
3997if test -n "$ac_ct_CC"; then
a8b2ad8d 3998 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3999echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 4000else
a8b2ad8d 4001 { echo "$as_me:$LINENO: result: no" >&5
4002echo "${ECHO_T}no" >&6; }
b3076f16 4003fi
4004
a8b2ad8d 4005
b3076f16 4006 test -n "$ac_ct_CC" && break
4007done
4008
a8b2ad8d 4009 if test "x$ac_ct_CC" = x; then
4010 CC=""
4011 else
4012 case $cross_compiling:$ac_tool_warned in
4013yes:)
4014{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4015whose name does not start with the host triplet. If you think this
4016configuration is useful to you, please write to autoconf@gnu.org." >&5
4017echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4018whose name does not start with the host triplet. If you think this
4019configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4020ac_tool_warned=yes ;;
4021esac
4022 CC=$ac_ct_CC
4023 fi
b3076f16 4024fi
4025
4026fi
4027
4028
4029test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4030See \`config.log' for more details." >&5
4031echo "$as_me: error: no acceptable C compiler found in \$PATH
4032See \`config.log' for more details." >&2;}
4033 { (exit 1); exit 1; }; }
4034
4035# Provide some information about the compiler.
a8b2ad8d 4036echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 4037ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 4038{ (ac_try="$ac_compiler --version >&5"
4039case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042esac
4043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }
a8b2ad8d 4048{ (ac_try="$ac_compiler -v >&5"
4049case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }
a8b2ad8d 4058{ (ac_try="$ac_compiler -V >&5"
4059case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }
4068
a8b2ad8d 4069{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4070echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 4071if test "${ac_cv_c_compiler_gnu+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
4080
4081int
4082main ()
4083{
4084#ifndef __GNUC__
4085 choke me
4086#endif
4087
4088 ;
4089 return 0;
4090}
4091_ACEOF
4092rm -f conftest.$ac_objext
a8b2ad8d 4093if { (ac_try="$ac_compile"
4094case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compile") 2>conftest.er1
b3076f16 4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
b3076f16 4109 ac_compiler_gnu=yes
4110else
4111 echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
a8b2ad8d 4114 ac_compiler_gnu=no
b3076f16 4115fi
a8b2ad8d 4116
4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4118ac_cv_c_compiler_gnu=$ac_compiler_gnu
4119
4120fi
a8b2ad8d 4121{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4122echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 4123GCC=`test $ac_compiler_gnu = yes && echo yes`
4124ac_test_CFLAGS=${CFLAGS+set}
4125ac_save_CFLAGS=$CFLAGS
a8b2ad8d 4126{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4127echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 4128if test "${ac_cv_prog_cc_g+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
a8b2ad8d 4131 ac_save_c_werror_flag=$ac_c_werror_flag
4132 ac_c_werror_flag=yes
4133 ac_cv_prog_cc_g=no
4134 CFLAGS="-g"
4135 cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
4141
4142int
4143main ()
4144{
4145
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150rm -f conftest.$ac_objext
4151if { (ac_try="$ac_compile"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4163 (exit $ac_status); } && {
4164 test -z "$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
a8b2ad8d 4167 ac_cv_prog_cc_g=yes
4168else
4169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 CFLAGS=""
4173 cat >conftest.$ac_ext <<_ACEOF
4174/* confdefs.h. */
4175_ACEOF
4176cat confdefs.h >>conftest.$ac_ext
4177cat >>conftest.$ac_ext <<_ACEOF
4178/* end confdefs.h. */
4179
4180int
4181main ()
4182{
4183
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188rm -f conftest.$ac_objext
4189if { (ac_try="$ac_compile"
4190case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_compile") 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4201 (exit $ac_status); } && {
4202 test -z "$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4204 } && test -s conftest.$ac_objext; then
a8b2ad8d 4205 :
4206else
4207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4211 CFLAGS="-g"
4212 cat >conftest.$ac_ext <<_ACEOF
b3076f16 4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h. */
4218
4219int
4220main ()
4221{
4222
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227rm -f conftest.$ac_objext
a8b2ad8d 4228if { (ac_try="$ac_compile"
4229case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_compile") 2>conftest.er1
b3076f16 4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
b3076f16 4244 ac_cv_prog_cc_g=yes
4245else
4246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
a8b2ad8d 4249
4250fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253fi
4254
4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4256fi
a8b2ad8d 4257
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4260fi
a8b2ad8d 4261{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 4263if test "$ac_test_CFLAGS" = set; then
4264 CFLAGS=$ac_save_CFLAGS
4265elif test $ac_cv_prog_cc_g = yes; then
4266 if test "$GCC" = yes; then
4267 CFLAGS="-g -O2"
4268 else
4269 CFLAGS="-g"
4270 fi
4271else
4272 if test "$GCC" = yes; then
4273 CFLAGS="-O2"
4274 else
4275 CFLAGS=
4276 fi
4277fi
a8b2ad8d 4278{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4279echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4280if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
a8b2ad8d 4283 ac_cv_prog_cc_c89=no
b3076f16 4284ac_save_CC=$CC
4285cat >conftest.$ac_ext <<_ACEOF
4286/* confdefs.h. */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h. */
4291#include <stdarg.h>
4292#include <stdio.h>
4293#include <sys/types.h>
4294#include <sys/stat.h>
4295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4296struct buf { int x; };
4297FILE * (*rcsopen) (struct buf *, struct stat *, int);
4298static char *e (p, i)
4299 char **p;
4300 int i;
4301{
4302 return p[i];
4303}
4304static char *f (char * (*g) (char **, int), char **p, ...)
4305{
4306 char *s;
4307 va_list v;
4308 va_start (v,p);
4309 s = g (p, va_arg (v,int));
4310 va_end (v);
4311 return s;
4312}
4313
4314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4315 function prototypes and stuff, but not '\xHH' hex character constants.
4316 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4317 as 'x'. The following induces an error, until -std is added to get
b3076f16 4318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4319 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4320 that's true only with -std. */
b3076f16 4321int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4322
a8b2ad8d 4323/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4324 inside strings and character constants. */
4325#define FOO(x) 'x'
4326int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4327
b3076f16 4328int test (int i, double x);
4329struct s1 {int (*f) (int a);};
4330struct s2 {int (*f) (double a);};
4331int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4332int argc;
4333char **argv;
4334int
4335main ()
4336{
4337return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4338 ;
4339 return 0;
4340}
4341_ACEOF
a8b2ad8d 4342for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4344do
4345 CC="$ac_save_CC $ac_arg"
4346 rm -f conftest.$ac_objext
a8b2ad8d 4347if { (ac_try="$ac_compile"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_compile") 2>conftest.er1
b3076f16 4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4359 (exit $ac_status); } && {
4360 test -z "$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4362 } && test -s conftest.$ac_objext; then
a8b2ad8d 4363 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4364else
4365 echo "$as_me: failed program was:" >&5
4366sed 's/^/| /' conftest.$ac_ext >&5
4367
a8b2ad8d 4368
b3076f16 4369fi
a8b2ad8d 4370
4371rm -f core conftest.err conftest.$ac_objext
4372 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4373done
a8b2ad8d 4374rm -f conftest.$ac_ext
b3076f16 4375CC=$ac_save_CC
4376
4377fi
a8b2ad8d 4378# AC_CACHE_VAL
4379case "x$ac_cv_prog_cc_c89" in
4380 x)
4381 { echo "$as_me:$LINENO: result: none needed" >&5
4382echo "${ECHO_T}none needed" >&6; } ;;
4383 xno)
4384 { echo "$as_me:$LINENO: result: unsupported" >&5
4385echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 4386 *)
a8b2ad8d 4387 CC="$CC $ac_cv_prog_cc_c89"
4388 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4389echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4390esac
4391
b3076f16 4392
b3076f16 4393ac_ext=c
4394ac_cpp='$CPP $CPPFLAGS'
4395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
ec1a68c8 4399depcc="$CC" am_compiler_list=
4400
a8b2ad8d 4401{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4402echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 4403if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4407 # We make a subdir and do the tests there. Otherwise we can end up
4408 # making bogus files that we don't know about and never remove. For
4409 # instance it was reported that on HP-UX the gcc test will end up
4410 # making a dummy file named `D' -- because `-MD' means `put the output
4411 # in D'.
4412 mkdir conftest.dir
4413 # Copy depcomp to subdir because otherwise we won't find it if we're
4414 # using a relative directory.
4415 cp "$am_depcomp" conftest.dir
4416 cd conftest.dir
4417 # We will build objects and dependencies in a subdirectory because
4418 # it helps to detect inapplicable dependency modes. For instance
4419 # both Tru64's cc and ICC support -MD to output dependencies as a
4420 # side effect of compilation, but ICC will put the dependencies in
4421 # the current directory while Tru64 will put them in the object
4422 # directory.
4423 mkdir sub
4424
4425 am_cv_CC_dependencies_compiler_type=none
4426 if test "$am_compiler_list" = ""; then
4427 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4428 fi
4429 for depmode in $am_compiler_list; do
4430 # Setup a source with many dependencies, because some compilers
4431 # like to wrap large dependency lists on column 80 (with \), and
4432 # we should not choose a depcomp mode which is confused by this.
4433 #
4434 # We need to recreate these files for each test, as the compiler may
4435 # overwrite some of them when testing with obscure command lines.
4436 # This happens at least with the AIX C compiler.
4437 : > sub/conftest.c
4438 for i in 1 2 3 4 5 6; do
4439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4440 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4441 # Solaris 8's {/usr,}/bin/sh.
4442 touch sub/conftst$i.h
4443 done
4444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4445
4446 case $depmode in
4447 nosideeffect)
4448 # after this tag, mechanisms are not by side-effect, so they'll
4449 # only be used when explicitly requested
4450 if test "x$enable_dependency_tracking" = xyes; then
4451 continue
4452 else
4453 break
4454 fi
4455 ;;
4456 none) break ;;
4457 esac
4458 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4459 # mode. It turns out that the SunPro C++ compiler does not properly
4460 # handle `-M -o', and we need to detect this.
4461 if depmode=$depmode \
4462 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4464 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4465 >/dev/null 2>conftest.err &&
2f65da8f 4466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 4467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4468 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4470 # icc doesn't choke on unknown options, it will just issue warnings
4471 # or remarks (even with -Werror). So we grep stderr for any message
4472 # that says an option was ignored or not supported.
4473 # When given -MP, icc 7.0 and 7.1 complain thusly:
4474 # icc: Command line warning: ignoring option '-M'; no argument required
4475 # The diagnosis changed in icc 8.0:
4476 # icc: Command line remark: option '-MP' not supported
4477 if (grep 'ignoring option' conftest.err ||
4478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4479 am_cv_CC_dependencies_compiler_type=$depmode
4480 break
4481 fi
4482 fi
4483 done
4484
4485 cd ..
4486 rm -rf conftest.dir
4487else
4488 am_cv_CC_dependencies_compiler_type=none
4489fi
4490
4491fi
a8b2ad8d 4492{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4493echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4494CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4495
2f65da8f 4496 if
ec1a68c8 4497 test "x$enable_dependency_tracking" != xno \
4498 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4499 am__fastdepCC_TRUE=
4500 am__fastdepCC_FALSE='#'
4501else
4502 am__fastdepCC_TRUE='#'
4503 am__fastdepCC_FALSE=
4504fi
4505
4506
b3076f16 4507# Find a good install program. We prefer a C program (faster),
4508# so one script is as good as another. But avoid the broken or
4509# incompatible versions:
4510# SysV /etc/install, /usr/sbin/install
4511# SunOS /usr/etc/install
4512# IRIX /sbin/install
4513# AIX /bin/install
4514# AmigaOS /C/install, which installs bootblocks on floppy discs
4515# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4516# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4517# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4518# OS/2's system install, which has a completely different semantic
4519# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 4520{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4521echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 4522if test -z "$INSTALL"; then
4523if test "${ac_cv_path_install+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 # Account for people who put trailing slashes in PATH elements.
4532case $as_dir/ in
4533 ./ | .// | /cC/* | \
4534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4535 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4536 /usr/ucb/* ) ;;
4537 *)
4538 # OSF1 and SCO ODT 3.0 have their own names for install.
4539 # Don't use installbsd from OSF since it installs stuff as root
4540 # by default.
4541 for ac_prog in ginstall scoinst install; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 4544 if test $ac_prog = install &&
4545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4546 # AIX install. It has an incompatible calling convention.
4547 :
4548 elif test $ac_prog = install &&
4549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4550 # program-specific install script used by HP pwplus--don't use.
4551 :
4552 else
4553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4554 break 3
4555 fi
4556 fi
4557 done
4558 done
4559 ;;
4560esac
4561done
a8b2ad8d 4562IFS=$as_save_IFS
b3076f16 4563
4564
4565fi
4566 if test "${ac_cv_path_install+set}" = set; then
4567 INSTALL=$ac_cv_path_install
4568 else
a8b2ad8d 4569 # As a last resort, use the slow shell script. Don't cache a
4570 # value for INSTALL within a source directory, because that will
b3076f16 4571 # break other packages using the cache if that directory is
a8b2ad8d 4572 # removed, or if the value is a relative name.
b3076f16 4573 INSTALL=$ac_install_sh
4574 fi
4575fi
a8b2ad8d 4576{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4577echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 4578
4579# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4580# It thinks the first close brace ends the variable substitution.
4581test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4582
4583test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4584
4585test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4586
0f6fe38c 4587
07559983 4588# Extract the first word of "cp", so it can be a program name with args.
4589set dummy cp; ac_word=$2
4590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592if test "${ac_cv_path_CP+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594else
4595 case $CP in
4596 [\\/]* | ?:[\\/]*)
4597 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4598 ;;
4599 *)
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612done
4613IFS=$as_save_IFS
4614
4615 ;;
4616esac
4617fi
4618CP=$ac_cv_path_CP
4619if test -n "$CP"; then
4620 { echo "$as_me:$LINENO: result: $CP" >&5
4621echo "${ECHO_T}$CP" >&6; }
4622else
4623 { echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6; }
4625fi
4626
4627
4628
35305a49 4629if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4631set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8b2ad8d 4632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4634if test "${ac_cv_prog_RANLIB+set}" = set; then
2f61d1d7 4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
35305a49 4637 if test -n "$RANLIB"; then
4638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4639else
2f61d1d7 4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
35305a49 4645 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
2f61d1d7 4650 fi
35305a49 4651done
2f61d1d7 4652done
a8b2ad8d 4653IFS=$as_save_IFS
2f61d1d7 4654
b3076f16 4655fi
35305a49 4656fi
4657RANLIB=$ac_cv_prog_RANLIB
4658if test -n "$RANLIB"; then
a8b2ad8d 4659 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4660echo "${ECHO_T}$RANLIB" >&6; }
b3076f16 4661else
a8b2ad8d 4662 { echo "$as_me:$LINENO: result: no" >&5
4663echo "${ECHO_T}no" >&6; }
2f61d1d7 4664fi
2f61d1d7 4665
a8b2ad8d 4666
b3076f16 4667fi
35305a49 4668if test -z "$ac_cv_prog_RANLIB"; then
4669 ac_ct_RANLIB=$RANLIB
4670 # Extract the first word of "ranlib", so it can be a program name with args.
4671set dummy ranlib; ac_word=$2
a8b2ad8d 4672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4674if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2f61d1d7 4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
35305a49 4677 if test -n "$ac_ct_RANLIB"; then
4678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4679else
35305a49 4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4687 ac_cv_prog_ac_ct_RANLIB="ranlib"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691done
4692done
a8b2ad8d 4693IFS=$as_save_IFS
35305a49 4694
b3076f16 4695fi
2f61d1d7 4696fi
35305a49 4697ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4698if test -n "$ac_ct_RANLIB"; then
a8b2ad8d 4699 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4700echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
b3076f16 4701else
a8b2ad8d 4702 { echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6; }
b3076f16 4704fi
4705
a8b2ad8d 4706 if test "x$ac_ct_RANLIB" = x; then
4707 RANLIB=":"
4708 else
4709 case $cross_compiling:$ac_tool_warned in
4710yes:)
4711{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4712whose name does not start with the host triplet. If you think this
4713configuration is useful to you, please write to autoconf@gnu.org." >&5
4714echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4715whose name does not start with the host triplet. If you think this
4716configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4717ac_tool_warned=yes ;;
4718esac
4719 RANLIB=$ac_ct_RANLIB
4720 fi
2f61d1d7 4721else
35305a49 4722 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4723fi
2f61d1d7 4724
0f6fe38c 4725
4726{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4727echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4728LN_S=$as_ln_s
4729if test "$LN_S" = "ln -s"; then
4730 { echo "$as_me:$LINENO: result: yes" >&5
4731echo "${ECHO_T}yes" >&6; }
2f61d1d7 4732else
0f6fe38c 4733 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4734echo "${ECHO_T}no, using $LN_S" >&6; }
2f61d1d7 4735fi
4736
0f6fe38c 4737{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4738echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4739set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4740if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
2f61d1d7 4742else
0f6fe38c 4743 cat >conftest.make <<\_ACEOF
4744SHELL = /bin/sh
4745all:
4746 @echo '@@@%%%=$(MAKE)=@@@%%%'
4747_ACEOF
4748# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4749case `${MAKE-make} -f conftest.make 2>/dev/null` in
4750 *@@@%%%=?*=@@@%%%*)
4751 eval ac_cv_prog_make_${ac_make}_set=yes;;
4752 *)
4753 eval ac_cv_prog_make_${ac_make}_set=no;;
4754esac
4755rm -f conftest.make
35305a49 4756fi
0f6fe38c 4757if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4758 { echo "$as_me:$LINENO: result: yes" >&5
4759echo "${ECHO_T}yes" >&6; }
4760 SET_MAKE=
35305a49 4761else
0f6fe38c 4762 { echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6; }
4764 SET_MAKE="MAKE=${MAKE-make}"
2f61d1d7 4765fi
2f61d1d7 4766
0f6fe38c 4767ac_ext=c
4768ac_cpp='$CPP $CPPFLAGS'
4769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4773echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4774# On Suns, sometimes $CPP names a directory.
4775if test -n "$CPP" && test -d "$CPP"; then
4776 CPP=
4777fi
4778if test -z "$CPP"; then
4779 if test "${ac_cv_prog_CPP+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
ff3b058a 4781else
0f6fe38c 4782 # Double quotes because CPP needs to be expanded
4783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4784 do
4785 ac_preproc_ok=false
4786for ac_c_preproc_warn_flag in '' yes
ff3b058a 4787do
0f6fe38c 4788 # Use a header file that comes with gcc, so configuring glibc
4789 # with a fresh cross-compiler works.
4790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4791 # <limits.h> exists even on freestanding compilers.
4792 # On the NeXT, cc -E runs the code through the compiler's parser,
4793 # not just through cpp. "Syntax error" is here to catch this case.
4794 cat >conftest.$ac_ext <<_ACEOF
4795/* confdefs.h. */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h. */
4800#ifdef __STDC__
4801# include <limits.h>
4802#else
4803# include <assert.h>
4804#endif
4805 Syntax error
4806_ACEOF
4807if { (ac_try="$ac_cpp conftest.$ac_ext"
4808case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4811esac
4812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4819 (exit $ac_status); } >/dev/null && {
4820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4821 test ! -s conftest.err
4822 }; then
0f6fe38c 4823 :
4824else
4825 echo "$as_me: failed program was:" >&5
4826sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 # Broken: fails on valid input.
4829continue
4830fi
4831
4832rm -f conftest.err conftest.$ac_ext
4833
4834 # OK, works on sane cases. Now check whether nonexistent headers
4835 # can be detected and how.
4836 cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h. */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h. */
4842#include <ac_nonexistent.h>
4843_ACEOF
4844if { (ac_try="$ac_cpp conftest.$ac_ext"
4845case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848esac
4849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4856 (exit $ac_status); } >/dev/null && {
4857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 }; then
0f6fe38c 4860 # Broken: success on invalid input.
4861continue
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 # Passes both tests.
4867ac_preproc_ok=:
4868break
4869fi
4870
4871rm -f conftest.err conftest.$ac_ext
4872
ff3b058a 4873done
0f6fe38c 4874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875rm -f conftest.err conftest.$ac_ext
4876if $ac_preproc_ok; then
4877 break
4878fi
4879
4880 done
4881 ac_cv_prog_CPP=$CPP
4882
4883fi
4884 CPP=$ac_cv_prog_CPP
4885else
4886 ac_cv_prog_CPP=$CPP
4887fi
4888{ echo "$as_me:$LINENO: result: $CPP" >&5
4889echo "${ECHO_T}$CPP" >&6; }
4890ac_preproc_ok=false
4891for ac_c_preproc_warn_flag in '' yes
4892do
4893 # Use a header file that comes with gcc, so configuring glibc
4894 # with a fresh cross-compiler works.
4895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896 # <limits.h> exists even on freestanding compilers.
4897 # On the NeXT, cc -E runs the code through the compiler's parser,
4898 # not just through cpp. "Syntax error" is here to catch this case.
4899 cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h. */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h. */
4905#ifdef __STDC__
4906# include <limits.h>
4907#else
4908# include <assert.h>
4909#endif
4910 Syntax error
4911_ACEOF
4912if { (ac_try="$ac_cpp conftest.$ac_ext"
4913case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916esac
4917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4924 (exit $ac_status); } >/dev/null && {
4925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4927 }; then
0f6fe38c 4928 :
4929else
4930 echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 # Broken: fails on valid input.
4934continue
4935fi
4936
4937rm -f conftest.err conftest.$ac_ext
4938
4939 # OK, works on sane cases. Now check whether nonexistent headers
4940 # can be detected and how.
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947#include <ac_nonexistent.h>
4948_ACEOF
4949if { (ac_try="$ac_cpp conftest.$ac_ext"
4950case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953esac
4954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4961 (exit $ac_status); } >/dev/null && {
4962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 }; then
0f6fe38c 4965 # Broken: success on invalid input.
4966continue
4967else
4968 echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 # Passes both tests.
4972ac_preproc_ok=:
4973break
4974fi
ff3b058a 4975
0f6fe38c 4976rm -f conftest.err conftest.$ac_ext
4977
4978done
4979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4980rm -f conftest.err conftest.$ac_ext
4981if $ac_preproc_ok; then
4982 :
4983else
4984 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4985See \`config.log' for more details." >&5
4986echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4987See \`config.log' for more details." >&2;}
4988 { (exit 1); exit 1; }; }
2f61d1d7 4989fi
ff3b058a 4990
0f6fe38c 4991ac_ext=c
4992ac_cpp='$CPP $CPPFLAGS'
4993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995ac_compiler_gnu=$ac_cv_c_compiler_gnu
ff3b058a 4996
ff3b058a 4997
4998{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4999echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5000if test "${ac_cv_path_GREP+set}" = set; then
2f61d1d7 5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002else
ff3b058a 5003 # Extract the first word of "grep ggrep" to use in msg output
5004if test -z "$GREP"; then
5005set dummy grep ggrep; ac_prog_name=$2
5006if test "${ac_cv_path_GREP+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009 ac_path_GREP_found=false
5010# Loop through the user's path and test for each of PROGNAME-LIST
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
a8b2ad8d 5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_prog in grep ggrep; do
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
0bd0bef6 5019 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
a8b2ad8d 5020 # Check for GNU ac_path_GREP and select it if it is found.
5021 # Check for GNU $ac_path_GREP
5022case `"$ac_path_GREP" --version 2>&1` in
5023*GNU*)
5024 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5025*)
5026 ac_count=0
5027 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5028 while :
5029 do
5030 cat "conftest.in" "conftest.in" >"conftest.tmp"
5031 mv "conftest.tmp" "conftest.in"
5032 cp "conftest.in" "conftest.nl"
5033 echo 'GREP' >> "conftest.nl"
5034 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5036 ac_count=`expr $ac_count + 1`
5037 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5038 # Best one so far, save it but keep looking for a better one
5039 ac_cv_path_GREP="$ac_path_GREP"
5040 ac_path_GREP_max=$ac_count
5041 fi
5042 # 10*(2^10) chars as input seems more than enough
5043 test $ac_count -gt 10 && break
5044 done
5045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5046esac
5047
5048
5049 $ac_path_GREP_found && break 3
5050 done
5051done
5052
5053done
5054IFS=$as_save_IFS
5055
5056
5057fi
5058
5059GREP="$ac_cv_path_GREP"
5060if test -z "$GREP"; then
5061 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5062echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5063 { (exit 1); exit 1; }; }
5064fi
5065
5066else
5067 ac_cv_path_GREP=$GREP
5068fi
5069
5070
5071fi
5072{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5073echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5074 GREP="$ac_cv_path_GREP"
5075
5076
5077{ echo "$as_me:$LINENO: checking for egrep" >&5
5078echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5079if test "${ac_cv_path_EGREP+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5083 then ac_cv_path_EGREP="$GREP -E"
5084 else
5085 # Extract the first word of "egrep" to use in msg output
5086if test -z "$EGREP"; then
5087set dummy egrep; ac_prog_name=$2
5088if test "${ac_cv_path_EGREP+set}" = set; then
2f61d1d7 5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090else
a8b2ad8d 5091 ac_path_EGREP_found=false
5092# Loop through the user's path and test for each of PROGNAME-LIST
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_prog in egrep; do
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
0bd0bef6 5101 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
a8b2ad8d 5102 # Check for GNU ac_path_EGREP and select it if it is found.
0f6fe38c 5103 # Check for GNU $ac_path_EGREP
5104case `"$ac_path_EGREP" --version 2>&1` in
5105*GNU*)
5106 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5107*)
5108 ac_count=0
5109 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5110 while :
5111 do
5112 cat "conftest.in" "conftest.in" >"conftest.tmp"
5113 mv "conftest.tmp" "conftest.in"
5114 cp "conftest.in" "conftest.nl"
5115 echo 'EGREP' >> "conftest.nl"
5116 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5118 ac_count=`expr $ac_count + 1`
5119 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5120 # Best one so far, save it but keep looking for a better one
5121 ac_cv_path_EGREP="$ac_path_EGREP"
5122 ac_path_EGREP_max=$ac_count
5123 fi
5124 # 10*(2^10) chars as input seems more than enough
5125 test $ac_count -gt 10 && break
5126 done
5127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5128esac
ff3b058a 5129
5130
0f6fe38c 5131 $ac_path_EGREP_found && break 3
5132 done
5133done
ff3b058a 5134
0f6fe38c 5135done
5136IFS=$as_save_IFS
ff3b058a 5137
5138
0f6fe38c 5139fi
ff3b058a 5140
0f6fe38c 5141EGREP="$ac_cv_path_EGREP"
5142if test -z "$EGREP"; then
5143 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5144echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5145 { (exit 1); exit 1; }; }
a8b2ad8d 5146fi
5147
5148else
0f6fe38c 5149 ac_cv_path_EGREP=$EGREP
a8b2ad8d 5150fi
0f6fe38c 5151
5152
5153 fi
2f61d1d7 5154fi
0f6fe38c 5155{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5156echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5157 EGREP="$ac_cv_path_EGREP"
5158
b3076f16 5159
5160if test $ac_cv_c_compiler_gnu = yes; then
a8b2ad8d 5161 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5162echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
b3076f16 5163if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 ac_pattern="Autoconf.*'x'"
5167 cat >conftest.$ac_ext <<_ACEOF
5168/* confdefs.h. */
5169_ACEOF
5170cat confdefs.h >>conftest.$ac_ext
5171cat >>conftest.$ac_ext <<_ACEOF
5172/* end confdefs.h. */
5173#include <sgtty.h>
5174Autoconf TIOCGETP
5175_ACEOF
5176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5177 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5178 ac_cv_prog_gcc_traditional=yes
5179else
5180 ac_cv_prog_gcc_traditional=no
5181fi
5182rm -f conftest*
5183
5184
5185 if test $ac_cv_prog_gcc_traditional = no; then
5186 cat >conftest.$ac_ext <<_ACEOF
5187/* confdefs.h. */
5188_ACEOF
5189cat confdefs.h >>conftest.$ac_ext
5190cat >>conftest.$ac_ext <<_ACEOF
5191/* end confdefs.h. */
5192#include <termio.h>
5193Autoconf TCGETA
5194_ACEOF
5195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5197 ac_cv_prog_gcc_traditional=yes
5198fi
5199rm -f conftest*
5200
5201 fi
5202fi
a8b2ad8d 5203{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5204echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
b3076f16 5205 if test $ac_cv_prog_gcc_traditional = yes; then
5206 CC="$CC -traditional"
5207 fi
5208fi
5209
5b1166fd 5210# Extract the first word of "gmake", so it can be a program name with args.
5211set dummy gmake; ac_word=$2
a8b2ad8d 5212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5b1166fd 5214if test "${ac_cv_prog_MAKER+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217 if test -n "$MAKER"; then
5218 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5b1166fd 5227 ac_cv_prog_MAKER="gmake"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231done
5232done
a8b2ad8d 5233IFS=$as_save_IFS
5b1166fd 5234
5235 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5236fi
5237fi
5238MAKER=$ac_cv_prog_MAKER
5239if test -n "$MAKER"; then
a8b2ad8d 5240 { echo "$as_me:$LINENO: result: $MAKER" >&5
5241echo "${ECHO_T}$MAKER" >&6; }
5b1166fd 5242else
a8b2ad8d 5243 { echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6; }
5b1166fd 5245fi
5246
b3076f16 5247
a8b2ad8d 5248
b3076f16 5249case $target in
5250 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5251 ANSI_SRC=""
5252 ;;
5253 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5254 ANSI_SRC=""
b3076f16 5255 ;;
5256 *-solaris*)
5257 EXTRA_DEFINE="-D__SOLARIS__"
5258 ANSI_SRC="-fno-builtin"
5259 ;;
5260 *-cygwin)
5261 ANSI_SRC="-fno-builtin"
5262 ;;
5263 *-linux*)
5264 EXTRA_DEFINE="-D_GNU_SOURCE"
5265 ANSI_SRC=""
5266 ;;
5267 *)
5268 ANSI_SRC=""
5269 ;;
5270esac
5271CFLAGS="$CFLAGS $EXTRA_DEFINE"
5272
5273
a8b2ad8d 5274{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5275echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
b3076f16 5276if test "${ac_cv_lib_socket_socket+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278else
5279 ac_check_lib_save_LIBS=$LIBS
5280LIBS="-lsocket $LIBS"
5281cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h. */
5287
a8b2ad8d 5288/* Override any GCC internal prototype to avoid an error.
5289 Use char because int might match the return type of a GCC
5290 builtin and then its argument prototype would still apply. */
b3076f16 5291#ifdef __cplusplus
5292extern "C"
5293#endif
b3076f16 5294char socket ();
5295int
5296main ()
5297{
a8b2ad8d 5298return socket ();
b3076f16 5299 ;
5300 return 0;
5301}
5302_ACEOF
5303rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5304if { (ac_try="$ac_link"
5305case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308esac
5309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310 (eval "$ac_link") 2>conftest.er1
b3076f16 5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5316 (exit $ac_status); } && {
5317 test -z "$ac_c_werror_flag" ||
5318 test ! -s conftest.err
5319 } && test -s conftest$ac_exeext &&
5320 $as_test_x conftest$ac_exeext; then
b3076f16 5321 ac_cv_lib_socket_socket=yes
5322else
5323 echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
a8b2ad8d 5326 ac_cv_lib_socket_socket=no
b3076f16 5327fi
a8b2ad8d 5328
0bd0bef6 5329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 5330 conftest$ac_exeext conftest.$ac_ext
5331LIBS=$ac_check_lib_save_LIBS
5332fi
a8b2ad8d 5333{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5334echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
b3076f16 5335if test $ac_cv_lib_socket_socket = yes; then
5336 cat >>confdefs.h <<_ACEOF
5337#define HAVE_LIBSOCKET 1
5338_ACEOF
5339
5340 LIBS="-lsocket $LIBS"
5341
5342fi
5343
5344
a8b2ad8d 5345{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5346echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
b3076f16 5347if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350 ac_check_lib_save_LIBS=$LIBS
5351LIBS="-lnsl $LIBS"
5352cat >conftest.$ac_ext <<_ACEOF
5353/* confdefs.h. */
5354_ACEOF
5355cat confdefs.h >>conftest.$ac_ext
5356cat >>conftest.$ac_ext <<_ACEOF
5357/* end confdefs.h. */
5358
a8b2ad8d 5359/* Override any GCC internal prototype to avoid an error.
5360 Use char because int might match the return type of a GCC
5361 builtin and then its argument prototype would still apply. */
b3076f16 5362#ifdef __cplusplus
5363extern "C"
5364#endif
b3076f16 5365char gethostbyname ();
5366int
5367main ()
5368{
a8b2ad8d 5369return gethostbyname ();
b3076f16 5370 ;
5371 return 0;
5372}
5373_ACEOF
5374rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5375if { (ac_try="$ac_link"
5376case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379esac
5380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_link") 2>conftest.er1
b3076f16 5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest$ac_exeext &&
5391 $as_test_x conftest$ac_exeext; then
b3076f16 5392 ac_cv_lib_nsl_gethostbyname=yes
5393else
5394 echo "$as_me: failed program was:" >&5
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
a8b2ad8d 5397 ac_cv_lib_nsl_gethostbyname=no
b3076f16 5398fi
a8b2ad8d 5399
0bd0bef6 5400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 5401 conftest$ac_exeext conftest.$ac_ext
5402LIBS=$ac_check_lib_save_LIBS
5403fi
a8b2ad8d 5404{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5405echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
b3076f16 5406if test $ac_cv_lib_nsl_gethostbyname = yes; then
5407 cat >>confdefs.h <<_ACEOF
5408#define HAVE_LIBNSL 1
5409_ACEOF
5410
5411 LIBS="-lnsl $LIBS"
5412
5413fi
5414
5415
a8b2ad8d 5416{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5417echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
b3076f16 5418if test "${ac_cv_lib_m_main+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421 ac_check_lib_save_LIBS=$LIBS
5422LIBS="-lm $LIBS"
5423cat >conftest.$ac_ext <<_ACEOF
5424/* confdefs.h. */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
5428/* end confdefs.h. */
5429
5430
5431int
5432main ()
5433{
a8b2ad8d 5434return main ();
b3076f16 5435 ;
5436 return 0;
5437}
5438_ACEOF
5439rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5440if { (ac_try="$ac_link"
5441case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444esac
5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_link") 2>conftest.er1
b3076f16 5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest$ac_exeext &&
5456 $as_test_x conftest$ac_exeext; then
b3076f16 5457 ac_cv_lib_m_main=yes
5458else
5459 echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
a8b2ad8d 5462 ac_cv_lib_m_main=no
b3076f16 5463fi
a8b2ad8d 5464
0bd0bef6 5465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 5466 conftest$ac_exeext conftest.$ac_ext
5467LIBS=$ac_check_lib_save_LIBS
5468fi
a8b2ad8d 5469{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5470echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
b3076f16 5471if test $ac_cv_lib_m_main = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473#define HAVE_LIBM 1
5474_ACEOF
5475
5476 LIBS="-lm $LIBS"
5477
5478fi
5479
5480
a8b2ad8d 5481{ echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5482echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
21f6caee 5483if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486 ac_check_lib_save_LIBS=$LIBS
5487LIBS="-lGeoIP $LIBS"
5488cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h. */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h. */
5494
a8b2ad8d 5495/* Override any GCC internal prototype to avoid an error.
5496 Use char because int might match the return type of a GCC
5497 builtin and then its argument prototype would still apply. */
21f6caee 5498#ifdef __cplusplus
5499extern "C"
5500#endif
21f6caee 5501char GeoIP_open ();
5502int
5503main ()
5504{
a8b2ad8d 5505return GeoIP_open ();
21f6caee 5506 ;
5507 return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5511if { (ac_try="$ac_link"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_link") 2>conftest.er1
21f6caee 5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest$ac_exeext &&
5527 $as_test_x conftest$ac_exeext; then
21f6caee 5528 ac_cv_lib_GeoIP_GeoIP_open=yes
5529else
5530 echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
a8b2ad8d 5533 ac_cv_lib_GeoIP_GeoIP_open=no
21f6caee 5534fi
a8b2ad8d 5535
0bd0bef6 5536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21f6caee 5537 conftest$ac_exeext conftest.$ac_ext
5538LIBS=$ac_check_lib_save_LIBS
5539fi
a8b2ad8d 5540{ echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5541echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
21f6caee 5542if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544#define HAVE_LIBGEOIP 1
5545_ACEOF
5546
5547 LIBS="-lGeoIP $LIBS"
5548
5549fi
5550
5551
a8b2ad8d 5552{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5553echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
b3076f16 5554if test "${ac_cv_header_stdc+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h. */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h. */
5563#include <stdlib.h>
5564#include <stdarg.h>
5565#include <string.h>
5566#include <float.h>
5567
5568int
5569main ()
5570{
5571
5572 ;
5573 return 0;
5574}
5575_ACEOF
5576rm -f conftest.$ac_objext
a8b2ad8d 5577if { (ac_try="$ac_compile"
5578case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581esac
5582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_compile") 2>conftest.er1
b3076f16 5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5589 (exit $ac_status); } && {
5590 test -z "$ac_c_werror_flag" ||
5591 test ! -s conftest.err
5592 } && test -s conftest.$ac_objext; then
b3076f16 5593 ac_cv_header_stdc=yes
5594else
5595 echo "$as_me: failed program was:" >&5
5596sed 's/^/| /' conftest.$ac_ext >&5
5597
a8b2ad8d 5598 ac_cv_header_stdc=no
b3076f16 5599fi
a8b2ad8d 5600
5601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5602
5603if test $ac_cv_header_stdc = yes; then
5604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5605 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h. */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */
5611#include <string.h>
5612
5613_ACEOF
5614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615 $EGREP "memchr" >/dev/null 2>&1; then
5616 :
5617else
5618 ac_cv_header_stdc=no
5619fi
5620rm -f conftest*
5621
5622fi
5623
5624if test $ac_cv_header_stdc = yes; then
5625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5626 cat >conftest.$ac_ext <<_ACEOF
5627/* confdefs.h. */
5628_ACEOF
5629cat confdefs.h >>conftest.$ac_ext
5630cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h. */
5632#include <stdlib.h>
5633
5634_ACEOF
5635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "free" >/dev/null 2>&1; then
5637 :
5638else
5639 ac_cv_header_stdc=no
5640fi
5641rm -f conftest*
5642
5643fi
5644
5645if test $ac_cv_header_stdc = yes; then
5646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5647 if test "$cross_compiling" = yes; then
5648 :
5649else
5650 cat >conftest.$ac_ext <<_ACEOF
5651/* confdefs.h. */
5652_ACEOF
5653cat confdefs.h >>conftest.$ac_ext
5654cat >>conftest.$ac_ext <<_ACEOF
5655/* end confdefs.h. */
5656#include <ctype.h>
a8b2ad8d 5657#include <stdlib.h>
b3076f16 5658#if ((' ' & 0x0FF) == 0x020)
5659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5661#else
5662# define ISLOWER(c) \
5663 (('a' <= (c) && (c) <= 'i') \
5664 || ('j' <= (c) && (c) <= 'r') \
5665 || ('s' <= (c) && (c) <= 'z'))
5666# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5667#endif
5668
5669#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5670int
5671main ()
5672{
5673 int i;
5674 for (i = 0; i < 256; i++)
5675 if (XOR (islower (i), ISLOWER (i))
5676 || toupper (i) != TOUPPER (i))
a8b2ad8d 5677 return 2;
5678 return 0;
b3076f16 5679}
5680_ACEOF
5681rm -f conftest$ac_exeext
a8b2ad8d 5682if { (ac_try="$ac_link"
5683case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686esac
5687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_link") 2>&5
b3076f16 5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 5692 { (case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_try") 2>&5
b3076f16 5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 :
5702else
5703 echo "$as_me: program exited with status $ac_status" >&5
5704echo "$as_me: failed program was:" >&5
5705sed 's/^/| /' conftest.$ac_ext >&5
5706
5707( exit $ac_status )
5708ac_cv_header_stdc=no
5709fi
a8b2ad8d 5710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 5711fi
a8b2ad8d 5712
5713
b3076f16 5714fi
5715fi
a8b2ad8d 5716{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5717echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
b3076f16 5718if test $ac_cv_header_stdc = yes; then
5719
5720cat >>confdefs.h <<\_ACEOF
5721#define STDC_HEADERS 1
5722_ACEOF
5723
5724fi
5725
5726
a8b2ad8d 5727{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5728echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
b3076f16 5729if test "${ac_cv_header_time+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731else
5732 cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h. */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h. */
5738#include <sys/types.h>
5739#include <sys/time.h>
5740#include <time.h>
5741
5742int
5743main ()
5744{
5745if ((struct tm *) 0)
5746return 0;
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751rm -f conftest.$ac_objext
a8b2ad8d 5752if { (ac_try="$ac_compile"
5753case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756esac
5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
b3076f16 5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
b3076f16 5768 ac_cv_header_time=yes
5769else
5770 echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
a8b2ad8d 5773 ac_cv_header_time=no
b3076f16 5774fi
a8b2ad8d 5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5777fi
a8b2ad8d 5778{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5779echo "${ECHO_T}$ac_cv_header_time" >&6; }
b3076f16 5780if test $ac_cv_header_time = yes; then
5781
5782cat >>confdefs.h <<\_ACEOF
5783#define TIME_WITH_SYS_TIME 1
5784_ACEOF
5785
5786fi
5787
a8b2ad8d 5788{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5789echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
b3076f16 5790if test "${ac_cv_struct_tm+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793 cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */
5799#include <sys/types.h>
5800#include <time.h>
5801
5802int
5803main ()
5804{
0bd0bef6 5805struct tm tm;
5806 int *p = &tm.tm_sec;
5807 return !p;
ff3b058a 5808 ;
5809 return 0;
5810}
5811_ACEOF
5812rm -f conftest.$ac_objext
5813if { (ac_try="$ac_compile"
5814case "(($ac_try" in
a8b2ad8d 5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 5819 (eval "$ac_compile") 2>conftest.er1
35305a49 5820 ac_status=$?
ff3b058a 5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
35305a49 5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.$ac_objext; then
0f6fe38c 5829 ac_cv_struct_tm=time.h
5830else
5831 echo "$as_me: failed program was:" >&5
5832sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 ac_cv_struct_tm=sys/time.h
5835fi
5836
5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838fi
5839{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5840echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5841if test $ac_cv_struct_tm = sys/time.h; then
5842
5843cat >>confdefs.h <<\_ACEOF
5844#define TM_IN_SYS_TIME 1
5845_ACEOF
5846
5847fi
5848
5849
5850# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5861 inttypes.h stdint.h unistd.h
5862do
5863as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5864{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 cat >conftest.$ac_ext <<_ACEOF
5870/* confdefs.h. */
5871_ACEOF
5872cat confdefs.h >>conftest.$ac_ext
5873cat >>conftest.$ac_ext <<_ACEOF
5874/* end confdefs.h. */
5875$ac_includes_default
5876
5877#include <$ac_header>
5878_ACEOF
5879rm -f conftest.$ac_objext
5880if { (ac_try="$ac_compile"
5881case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884esac
5885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_compile") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest.$ac_objext; then
0f6fe38c 5896 eval "$as_ac_Header=yes"
35305a49 5897else
5898 echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
0f6fe38c 5901 eval "$as_ac_Header=no"
35305a49 5902fi
a8b2ad8d 5903
5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305a49 5905fi
0f6fe38c 5906ac_res=`eval echo '${'$as_ac_Header'}'`
5907 { echo "$as_me:$LINENO: result: $ac_res" >&5
5908echo "${ECHO_T}$ac_res" >&6; }
5909if test `eval echo '${'$as_ac_Header'}'` = yes; then
5910 cat >>confdefs.h <<_ACEOF
5911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35305a49 5912_ACEOF
5913
5914fi
5915
0f6fe38c 5916done
35305a49 5917
5918
b3076f16 5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
21f6caee 5939
5940
4cb36ef0 5941
1136f709 5942
5943
5944
5945for ac_header in GeoIP.h GeoIPCity.h arpa/inet.h fcntl.h math.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 sys/epoll.h sys/event.h
b3076f16 5946do
5947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 5948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953fi
a8b2ad8d 5954ac_res=`eval echo '${'$as_ac_Header'}'`
5955 { echo "$as_me:$LINENO: result: $ac_res" >&5
5956echo "${ECHO_T}$ac_res" >&6; }
b3076f16 5957else
5958 # Is the header compilable?
a8b2ad8d 5959{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5960echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 5961cat >conftest.$ac_ext <<_ACEOF
5962/* confdefs.h. */
5963_ACEOF
5964cat confdefs.h >>conftest.$ac_ext
5965cat >>conftest.$ac_ext <<_ACEOF
5966/* end confdefs.h. */
5967$ac_includes_default
5968#include <$ac_header>
5969_ACEOF
5970rm -f conftest.$ac_objext
a8b2ad8d 5971if { (ac_try="$ac_compile"
5972case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
b3076f16 5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
b3076f16 5987 ac_header_compiler=yes
5988else
5989 echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
a8b2ad8d 5992 ac_header_compiler=no
b3076f16 5993fi
a8b2ad8d 5994
5995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5997echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 5998
5999# Is the header present?
a8b2ad8d 6000{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 6002cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008#include <$ac_header>
6009_ACEOF
a8b2ad8d 6010if { (ac_try="$ac_cpp conftest.$ac_ext"
6011case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6022 (exit $ac_status); } >/dev/null && {
6023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6024 test ! -s conftest.err
6025 }; then
b3076f16 6026 ac_header_preproc=yes
6027else
6028 echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 ac_header_preproc=no
6032fi
a8b2ad8d 6033
b3076f16 6034rm -f conftest.err conftest.$ac_ext
a8b2ad8d 6035{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6036echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 6037
6038# So? What about this header?
6039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6040 yes:no: )
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6045 ac_header_preproc=yes
6046 ;;
6047 no:yes:* )
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6055echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 6060 ( cat <<\_ASBOX
63c95a47 6061## -------------------------------------------------- ##
6062## Report this to evilnet-devel@lists.sourceforge.net ##
6063## -------------------------------------------------- ##
b3076f16 6064_ASBOX
a8b2ad8d 6065 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 6066 ;;
6067esac
a8b2ad8d 6068{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073 eval "$as_ac_Header=\$ac_header_preproc"
6074fi
a8b2ad8d 6075ac_res=`eval echo '${'$as_ac_Header'}'`
6076 { echo "$as_me:$LINENO: result: $ac_res" >&5
6077echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6078
6079fi
6080if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081 cat >>confdefs.h <<_ACEOF
6082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6083_ACEOF
6084
6085fi
6086
6087done
6088
6089
a8b2ad8d 6090{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6091echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
2f61d1d7 6092if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16 6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095 cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
2f61d1d7 6101#include <sys/types.h>
6102#include <sys/socket.h>
b3076f16 6103
6104int
6105main ()
6106{
2f61d1d7 6107static struct sockaddr ac_aggr;
6108if (ac_aggr.sa_len)
b3076f16 6109return 0;
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext
a8b2ad8d 6115if { (ac_try="$ac_compile"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compile") 2>conftest.er1
b3076f16 6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6127 (exit $ac_status); } && {
6128 test -z "$ac_c_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest.$ac_objext; then
2f61d1d7 6131 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6132else
6133 echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
a8b2ad8d 6136 cat >conftest.$ac_ext <<_ACEOF
b3076f16 6137/* confdefs.h. */
6138_ACEOF
6139cat confdefs.h >>conftest.$ac_ext
6140cat >>conftest.$ac_ext <<_ACEOF
6141/* end confdefs.h. */
2f61d1d7 6142#include <sys/types.h>
6143#include <sys/socket.h>
b3076f16 6144
6145int
6146main ()
6147{
2f61d1d7 6148static struct sockaddr ac_aggr;
6149if (sizeof ac_aggr.sa_len)
b3076f16 6150return 0;
6151 ;
6152 return 0;
6153}
6154_ACEOF
6155rm -f conftest.$ac_objext
a8b2ad8d 6156if { (ac_try="$ac_compile"
6157case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160esac
6161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_compile") 2>conftest.er1
b3076f16 6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6168 (exit $ac_status); } && {
6169 test -z "$ac_c_werror_flag" ||
6170 test ! -s conftest.err
6171 } && test -s conftest.$ac_objext; then
2f61d1d7 6172 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6173else
6174 echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
a8b2ad8d 6177 ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 6178fi
a8b2ad8d 6179
6180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6181fi
a8b2ad8d 6182
6183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6184fi
a8b2ad8d 6185{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6186echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
2f61d1d7 6187if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16 6188
6189cat >>confdefs.h <<\_ACEOF
2f61d1d7 6190#define HAVE_SOCKADDR_SA_LEN
6191_ACEOF
6192
6193fi
6194
a8b2ad8d 6195{ echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6196echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
2f61d1d7 6197if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 cat >conftest.$ac_ext <<_ACEOF
6201/* confdefs.h. */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h. */
6206#include <sys/types.h>
6207#include <sys/socket.h>
6208#include <netdb.h>
6209
6210int
6211main ()
6212{
6213static struct addrinfo ac_aggr;
6214if (ac_aggr.ai_flags)
6215return 0;
6216 ;
6217 return 0;
6218}
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
2f61d1d7 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
0bd0bef6 6233 (exit $ac_status); } && {
6234 test -z "$ac_c_werror_flag" ||
6235 test ! -s conftest.err
6236 } && test -s conftest.$ac_objext; then
2f61d1d7 6237 ac_cv_member_struct_addrinfo_ai_flags=yes
6238else
6239 echo "$as_me: failed program was:" >&5
6240sed 's/^/| /' conftest.$ac_ext >&5
6241
a8b2ad8d 6242 cat >conftest.$ac_ext <<_ACEOF
2f61d1d7 6243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
6248#include <sys/types.h>
6249#include <sys/socket.h>
6250#include <netdb.h>
6251
6252int
6253main ()
6254{
6255static struct addrinfo ac_aggr;
6256if (sizeof ac_aggr.ai_flags)
6257return 0;
6258 ;
6259 return 0;
6260}
b3076f16 6261_ACEOF
2f61d1d7 6262rm -f conftest.$ac_objext
a8b2ad8d 6263if { (ac_try="$ac_compile"
6264case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
2f61d1d7 6279 ac_cv_member_struct_addrinfo_ai_flags=yes
6280else
6281 echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6283
a8b2ad8d 6284 ac_cv_member_struct_addrinfo_ai_flags=no
2f61d1d7 6285fi
a8b2ad8d 6286
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f61d1d7 6288fi
a8b2ad8d 6289
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6291fi
a8b2ad8d 6292{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6293echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
2f61d1d7 6294if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6295
6296cat >>confdefs.h <<\_ACEOF
6297#define HAVE_STRUCT_ADDRINFO
6298_ACEOF
b3076f16 6299
2f61d1d7 6300fi
b3076f16 6301
6302
21f6caee 6303
b3076f16 6304
b3076f16 6305
b3076f16 6306
b3076f16 6307
b3076f16 6308
b3076f16 6309
a8b2ad8d 6310
b3076f16 6311
b3076f16 6312
b3076f16 6313
1136f709 6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330for ac_func in freeaddrinfo getaddrinfo gai_strerror getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf inet_aton epoll_create kqueue kevent select gettimeofday times GetProcessTimes mprotect
b3076f16 6331do
6332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6333{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338 cat >conftest.$ac_ext <<_ACEOF
6339/* confdefs.h. */
6340_ACEOF
6341cat confdefs.h >>conftest.$ac_ext
6342cat >>conftest.$ac_ext <<_ACEOF
6343/* end confdefs.h. */
6344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6346#define $ac_func innocuous_$ac_func
6347
6348/* System header to define __stub macros and hopefully few prototypes,
6349 which can conflict with char $ac_func (); below.
6350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6351 <limits.h> exists even on freestanding compilers. */
6352
6353#ifdef __STDC__
6354# include <limits.h>
6355#else
6356# include <assert.h>
6357#endif
6358
6359#undef $ac_func
6360
a8b2ad8d 6361/* Override any GCC internal prototype to avoid an error.
6362 Use char because int might match the return type of a GCC
6363 builtin and then its argument prototype would still apply. */
b3076f16 6364#ifdef __cplusplus
6365extern "C"
b3076f16 6366#endif
b3076f16 6367char $ac_func ();
6368/* The GNU C library defines this for functions which it implements
6369 to always fail with ENOSYS. Some functions are actually named
6370 something starting with __ and the normal name is an alias. */
a8b2ad8d 6371#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6372choke me
b3076f16 6373#endif
6374
6375int
6376main ()
6377{
a8b2ad8d 6378return $ac_func ();
b3076f16 6379 ;
6380 return 0;
ff3b058a 6381}
6382_ACEOF
6383rm -f conftest.$ac_objext conftest$ac_exeext
6384if { (ac_try="$ac_link"
6385case "(($ac_try" in
a8b2ad8d 6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 6390 (eval "$ac_link") 2>conftest.er1
b3076f16 6391 ac_status=$?
ff3b058a 6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
b3076f16 6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6396 (exit $ac_status); } && {
6397 test -z "$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 } && test -s conftest$ac_exeext &&
6400 $as_test_x conftest$ac_exeext; then
b3076f16 6401 eval "$as_ac_var=yes"
6402else
6403 echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
a8b2ad8d 6406 eval "$as_ac_var=no"
b3076f16 6407fi
a8b2ad8d 6408
0bd0bef6 6409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6410 conftest$ac_exeext conftest.$ac_ext
6411fi
a8b2ad8d 6412ac_res=`eval echo '${'$as_ac_var'}'`
6413 { echo "$as_me:$LINENO: result: $ac_res" >&5
6414echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6415if test `eval echo '${'$as_ac_var'}'` = yes; then
6416 cat >>confdefs.h <<_ACEOF
6417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6418_ACEOF
6419
b3076f16 6420fi
6421done
6422
0f6fe38c 6423
6424
1136f709 6425if test $ac_cv_func_gettimeofday = no; then
0f6fe38c 6426
1136f709 6427for ac_func in ftime
b3076f16 6428do
6429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6430{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6432if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435 cat >conftest.$ac_ext <<_ACEOF
6436/* confdefs.h. */
6437_ACEOF
6438cat confdefs.h >>conftest.$ac_ext
6439cat >>conftest.$ac_ext <<_ACEOF
6440/* end confdefs.h. */
6441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6443#define $ac_func innocuous_$ac_func
6444
6445/* System header to define __stub macros and hopefully few prototypes,
6446 which can conflict with char $ac_func (); below.
6447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448 <limits.h> exists even on freestanding compilers. */
6449
6450#ifdef __STDC__
6451# include <limits.h>
6452#else
6453# include <assert.h>
6454#endif
6455
6456#undef $ac_func
6457
a8b2ad8d 6458/* Override any GCC internal prototype to avoid an error.
6459 Use char because int might match the return type of a GCC
6460 builtin and then its argument prototype would still apply. */
b3076f16 6461#ifdef __cplusplus
6462extern "C"
b3076f16 6463#endif
b3076f16 6464char $ac_func ();
6465/* The GNU C library defines this for functions which it implements
6466 to always fail with ENOSYS. Some functions are actually named
6467 something starting with __ and the normal name is an alias. */
a8b2ad8d 6468#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6469choke me
b3076f16 6470#endif
6471
6472int
6473main ()
6474{
a8b2ad8d 6475return $ac_func ();
b3076f16 6476 ;
6477 return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6481if { (ac_try="$ac_link"
6482case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485esac
6486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_link") 2>conftest.er1
b3076f16 6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest$ac_exeext &&
6497 $as_test_x conftest$ac_exeext; then
b3076f16 6498 eval "$as_ac_var=yes"
6499else
6500 echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
a8b2ad8d 6503 eval "$as_ac_var=no"
b3076f16 6504fi
a8b2ad8d 6505
0bd0bef6 6506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6507 conftest$ac_exeext conftest.$ac_ext
6508fi
a8b2ad8d 6509ac_res=`eval echo '${'$as_ac_var'}'`
6510 { echo "$as_me:$LINENO: result: $ac_res" >&5
6511echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6512if test `eval echo '${'$as_ac_var'}'` = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6515_ACEOF
6516
1136f709 6517else
6518 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6519echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
6520 { (exit 1); exit 1; }; }
b3076f16 6521fi
6522done
6523
1136f709 6524fi
b3076f16 6525
6526
6527
6528
6529
6530
1136f709 6531for ac_func in socket strcspn strspn strtod strtoul
b3076f16 6532do
6533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539 cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h. */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h. */
6545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6547#define $ac_func innocuous_$ac_func
6548
6549/* System header to define __stub macros and hopefully few prototypes,
6550 which can conflict with char $ac_func (); below.
6551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6552 <limits.h> exists even on freestanding compilers. */
6553
6554#ifdef __STDC__
6555# include <limits.h>
6556#else
6557# include <assert.h>
6558#endif
6559
6560#undef $ac_func
6561
a8b2ad8d 6562/* Override any GCC internal prototype to avoid an error.
6563 Use char because int might match the return type of a GCC
6564 builtin and then its argument prototype would still apply. */
b3076f16 6565#ifdef __cplusplus
6566extern "C"
b3076f16 6567#endif
b3076f16 6568char $ac_func ();
6569/* The GNU C library defines this for functions which it implements
6570 to always fail with ENOSYS. Some functions are actually named
6571 something starting with __ and the normal name is an alias. */
a8b2ad8d 6572#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6573choke me
b3076f16 6574#endif
6575
6576int
6577main ()
6578{
a8b2ad8d 6579return $ac_func ();
b3076f16 6580 ;
6581 return 0;
6582}
6583_ACEOF
6584rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6585if { (ac_try="$ac_link"
6586case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589esac
6590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_link") 2>conftest.er1
b3076f16 6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest$ac_exeext &&
6601 $as_test_x conftest$ac_exeext; then
b3076f16 6602 eval "$as_ac_var=yes"
6603else
6604 echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
a8b2ad8d 6607 eval "$as_ac_var=no"
b3076f16 6608fi
a8b2ad8d 6609
0bd0bef6 6610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6611 conftest$ac_exeext conftest.$ac_ext
6612fi
a8b2ad8d 6613ac_res=`eval echo '${'$as_ac_var'}'`
6614 { echo "$as_me:$LINENO: result: $ac_res" >&5
6615echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6616if test `eval echo '${'$as_ac_var'}'` = yes; then
6617 cat >>confdefs.h <<_ACEOF
6618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6619_ACEOF
6620
6621else
2f61d1d7 6622 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
6623echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 6624 { (exit 1); exit 1; }; }
6625fi
6626done
6627
6628
6629# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6630# for constant arguments. Useless!
a8b2ad8d 6631{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6632echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
b3076f16 6633if test "${ac_cv_working_alloca_h+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636 cat >conftest.$ac_ext <<_ACEOF
6637/* confdefs.h. */
6638_ACEOF
6639cat confdefs.h >>conftest.$ac_ext
6640cat >>conftest.$ac_ext <<_ACEOF
6641/* end confdefs.h. */
6642#include <alloca.h>
6643int
6644main ()
6645{
6646char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 6647 if (p) return 0;
b3076f16 6648 ;
6649 return 0;
6650}
6651_ACEOF
6652rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6653if { (ac_try="$ac_link"
6654case "(($ac_try" in
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6657esac
6658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_link") 2>conftest.er1
b3076f16 6660 ac_status=$?
6661 grep -v '^ *+' conftest.er1 >conftest.err
6662 rm -f conftest.er1
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest$ac_exeext &&
6669 $as_test_x conftest$ac_exeext; then
b3076f16 6670 ac_cv_working_alloca_h=yes
6671else
6672 echo "$as_me: failed program was:" >&5
6673sed 's/^/| /' conftest.$ac_ext >&5
6674
a8b2ad8d 6675 ac_cv_working_alloca_h=no
b3076f16 6676fi
a8b2ad8d 6677
0bd0bef6 6678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6679 conftest$ac_exeext conftest.$ac_ext
6680fi
a8b2ad8d 6681{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6682echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
b3076f16 6683if test $ac_cv_working_alloca_h = yes; then
6684
6685cat >>confdefs.h <<\_ACEOF
6686#define HAVE_ALLOCA_H 1
6687_ACEOF
6688
6689fi
6690
a8b2ad8d 6691{ echo "$as_me:$LINENO: checking for alloca" >&5
6692echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
b3076f16 6693if test "${ac_cv_func_alloca_works+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
6702#ifdef __GNUC__
6703# define alloca __builtin_alloca
6704#else
6705# ifdef _MSC_VER
6706# include <malloc.h>
6707# define alloca _alloca
6708# else
0bd0bef6 6709# ifdef HAVE_ALLOCA_H
b3076f16 6710# include <alloca.h>
6711# else
6712# ifdef _AIX
6713 #pragma alloca
6714# else
6715# ifndef alloca /* predefined by HP cc +Olibcalls */
6716char *alloca ();
6717# endif
6718# endif
6719# endif
6720# endif
6721#endif
6722
6723int
6724main ()
6725{
6726char *p = (char *) alloca (1);
a8b2ad8d 6727 if (p) return 0;
b3076f16 6728 ;
6729 return 0;
6730}
6731_ACEOF
6732rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6733if { (ac_try="$ac_link"
6734case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737esac
6738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_link") 2>conftest.er1
b3076f16 6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest$ac_exeext &&
6749 $as_test_x conftest$ac_exeext; then
b3076f16 6750 ac_cv_func_alloca_works=yes
6751else
6752 echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
a8b2ad8d 6755 ac_cv_func_alloca_works=no
b3076f16 6756fi
a8b2ad8d 6757
0bd0bef6 6758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6759 conftest$ac_exeext conftest.$ac_ext
6760fi
a8b2ad8d 6761{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6762echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
b3076f16 6763
6764if test $ac_cv_func_alloca_works = yes; then
6765
6766cat >>confdefs.h <<\_ACEOF
6767#define HAVE_ALLOCA 1
6768_ACEOF
6769
6770else
6771 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6772# that cause trouble. Some versions do not even contain alloca or
6773# contain a buggy version. If you still want to use their alloca,
6774# use ar to extract alloca.o from them instead of compiling alloca.c.
6775
a8b2ad8d 6776ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 6777
6778cat >>confdefs.h <<\_ACEOF
6779#define C_ALLOCA 1
6780_ACEOF
6781
6782
a8b2ad8d 6783{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6784echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
b3076f16 6785if test "${ac_cv_os_cray+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788 cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
a8b2ad8d 6794#if defined CRAY && ! defined CRAY2
b3076f16 6795webecray
6796#else
6797wenotbecray
6798#endif
6799
6800_ACEOF
6801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6802 $EGREP "webecray" >/dev/null 2>&1; then
6803 ac_cv_os_cray=yes
6804else
6805 ac_cv_os_cray=no
6806fi
6807rm -f conftest*
6808
6809fi
a8b2ad8d 6810{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6811echo "${ECHO_T}$ac_cv_os_cray" >&6; }
b3076f16 6812if test $ac_cv_os_cray = yes; then
6813 for ac_func in _getb67 GETB67 getb67; do
6814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6815{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 cat >conftest.$ac_ext <<_ACEOF
6821/* confdefs.h. */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h. */
6826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6828#define $ac_func innocuous_$ac_func
6829
6830/* System header to define __stub macros and hopefully few prototypes,
6831 which can conflict with char $ac_func (); below.
6832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 <limits.h> exists even on freestanding compilers. */
6834
6835#ifdef __STDC__
6836# include <limits.h>
6837#else
6838# include <assert.h>
6839#endif
6840
6841#undef $ac_func
6842
a8b2ad8d 6843/* Override any GCC internal prototype to avoid an error.
6844 Use char because int might match the return type of a GCC
6845 builtin and then its argument prototype would still apply. */
b3076f16 6846#ifdef __cplusplus
6847extern "C"
b3076f16 6848#endif
b3076f16 6849char $ac_func ();
6850/* The GNU C library defines this for functions which it implements
6851 to always fail with ENOSYS. Some functions are actually named
6852 something starting with __ and the normal name is an alias. */
a8b2ad8d 6853#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6854choke me
b3076f16 6855#endif
6856
6857int
6858main ()
6859{
a8b2ad8d 6860return $ac_func ();
b3076f16 6861 ;
6862 return 0;
6863}
6864_ACEOF
6865rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6866if { (ac_try="$ac_link"
6867case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870esac
6871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_link") 2>conftest.er1
b3076f16 6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6878 (exit $ac_status); } && {
6879 test -z "$ac_c_werror_flag" ||
6880 test ! -s conftest.err
6881 } && test -s conftest$ac_exeext &&
6882 $as_test_x conftest$ac_exeext; then
b3076f16 6883 eval "$as_ac_var=yes"
6884else
6885 echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
a8b2ad8d 6888 eval "$as_ac_var=no"
b3076f16 6889fi
a8b2ad8d 6890
0bd0bef6 6891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6892 conftest$ac_exeext conftest.$ac_ext
6893fi
a8b2ad8d 6894ac_res=`eval echo '${'$as_ac_var'}'`
6895 { echo "$as_me:$LINENO: result: $ac_res" >&5
6896echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6897if test `eval echo '${'$as_ac_var'}'` = yes; then
6898
6899cat >>confdefs.h <<_ACEOF
6900#define CRAY_STACKSEG_END $ac_func
6901_ACEOF
6902
6903 break
6904fi
6905
6906 done
6907fi
6908
a8b2ad8d 6909{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6910echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
b3076f16 6911if test "${ac_cv_c_stack_direction+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914 if test "$cross_compiling" = yes; then
6915 ac_cv_c_stack_direction=0
6916else
6917 cat >conftest.$ac_ext <<_ACEOF
6918/* confdefs.h. */
6919_ACEOF
6920cat confdefs.h >>conftest.$ac_ext
6921cat >>conftest.$ac_ext <<_ACEOF
6922/* end confdefs.h. */
a8b2ad8d 6923$ac_includes_default
b3076f16 6924int
6925find_stack_direction ()
6926{
6927 static char *addr = 0;
6928 auto char dummy;
6929 if (addr == 0)
6930 {
6931 addr = &dummy;
6932 return find_stack_direction ();
6933 }
6934 else
6935 return (&dummy > addr) ? 1 : -1;
6936}
6937
6938int
6939main ()
6940{
a8b2ad8d 6941 return find_stack_direction () < 0;
b3076f16 6942}
6943_ACEOF
6944rm -f conftest$ac_exeext
a8b2ad8d 6945if { (ac_try="$ac_link"
6946case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949esac
6950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_link") 2>&5
b3076f16 6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 6955 { (case "(($ac_try" in
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6958esac
6959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_try") 2>&5
b3076f16 6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; }; then
6964 ac_cv_c_stack_direction=1
6965else
6966 echo "$as_me: program exited with status $ac_status" >&5
6967echo "$as_me: failed program was:" >&5
6968sed 's/^/| /' conftest.$ac_ext >&5
6969
6970( exit $ac_status )
6971ac_cv_c_stack_direction=-1
6972fi
a8b2ad8d 6973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 6974fi
a8b2ad8d 6975
6976
b3076f16 6977fi
a8b2ad8d 6978{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6979echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
b3076f16 6980
6981cat >>confdefs.h <<_ACEOF
6982#define STACK_DIRECTION $ac_cv_c_stack_direction
6983_ACEOF
6984
6985
6986fi
6987
6988
6989
6990for ac_header in stdlib.h unistd.h
6991do
6992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998fi
a8b2ad8d 6999ac_res=`eval echo '${'$as_ac_Header'}'`
7000 { echo "$as_me:$LINENO: result: $ac_res" >&5
7001echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7002else
7003 # Is the header compilable?
a8b2ad8d 7004{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 7006cat >conftest.$ac_ext <<_ACEOF
7007/* confdefs.h. */
7008_ACEOF
7009cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF
7011/* end confdefs.h. */
7012$ac_includes_default
7013#include <$ac_header>
7014_ACEOF
7015rm -f conftest.$ac_objext
a8b2ad8d 7016if { (ac_try="$ac_compile"
7017case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7020esac
7021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_compile") 2>conftest.er1
b3076f16 7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest.$ac_objext; then
b3076f16 7032 ac_header_compiler=yes
7033else
7034 echo "$as_me: failed program was:" >&5
7035sed 's/^/| /' conftest.$ac_ext >&5
7036
a8b2ad8d 7037 ac_header_compiler=no
b3076f16 7038fi
a8b2ad8d 7039
7040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7042echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 7043
7044# Is the header present?
a8b2ad8d 7045{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 7047cat >conftest.$ac_ext <<_ACEOF
7048/* confdefs.h. */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h. */
7053#include <$ac_header>
7054_ACEOF
a8b2ad8d 7055if { (ac_try="$ac_cpp conftest.$ac_ext"
7056case "(($ac_try" in
7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058 *) ac_try_echo=$ac_try;;
7059esac
7060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7067 (exit $ac_status); } >/dev/null && {
7068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7069 test ! -s conftest.err
7070 }; then
b3076f16 7071 ac_header_preproc=yes
7072else
7073 echo "$as_me: failed program was:" >&5
7074sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 ac_header_preproc=no
7077fi
a8b2ad8d 7078
b3076f16 7079rm -f conftest.err conftest.$ac_ext
a8b2ad8d 7080{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7081echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 7082
7083# So? What about this header?
7084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7085 yes:no: )
7086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7090 ac_header_preproc=yes
7091 ;;
7092 no:yes:* )
7093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 7105 ( cat <<\_ASBOX
63c95a47 7106## -------------------------------------------------- ##
7107## Report this to evilnet-devel@lists.sourceforge.net ##
7108## -------------------------------------------------- ##
b3076f16 7109_ASBOX
a8b2ad8d 7110 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 7111 ;;
7112esac
a8b2ad8d 7113{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118 eval "$as_ac_Header=\$ac_header_preproc"
7119fi
a8b2ad8d 7120ac_res=`eval echo '${'$as_ac_Header'}'`
7121 { echo "$as_me:$LINENO: result: $ac_res" >&5
7122echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7123
7124fi
7125if test `eval echo '${'$as_ac_Header'}'` = yes; then
7126 cat >>confdefs.h <<_ACEOF
7127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7128_ACEOF
7129
7130fi
7131
7132done
7133
7134
7135for ac_func in getpagesize
7136do
7137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7138{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h. */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h. */
7149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7151#define $ac_func innocuous_$ac_func
7152
7153/* System header to define __stub macros and hopefully few prototypes,
7154 which can conflict with char $ac_func (); below.
7155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7156 <limits.h> exists even on freestanding compilers. */
7157
7158#ifdef __STDC__
7159# include <limits.h>
7160#else
7161# include <assert.h>
7162#endif
7163
7164#undef $ac_func
7165
a8b2ad8d 7166/* Override any GCC internal prototype to avoid an error.
7167 Use char because int might match the return type of a GCC
7168 builtin and then its argument prototype would still apply. */
b3076f16 7169#ifdef __cplusplus
7170extern "C"
b3076f16 7171#endif
b3076f16 7172char $ac_func ();
7173/* The GNU C library defines this for functions which it implements
7174 to always fail with ENOSYS. Some functions are actually named
7175 something starting with __ and the normal name is an alias. */
a8b2ad8d 7176#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7177choke me
b3076f16 7178#endif
7179
7180int
7181main ()
7182{
a8b2ad8d 7183return $ac_func ();
b3076f16 7184 ;
7185 return 0;
7186}
7187_ACEOF
7188rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7189if { (ac_try="$ac_link"
7190case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7193esac
7194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_link") 2>conftest.er1
b3076f16 7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest$ac_exeext &&
7205 $as_test_x conftest$ac_exeext; then
b3076f16 7206 eval "$as_ac_var=yes"
7207else
7208 echo "$as_me: failed program was:" >&5
7209sed 's/^/| /' conftest.$ac_ext >&5
7210
a8b2ad8d 7211 eval "$as_ac_var=no"
b3076f16 7212fi
a8b2ad8d 7213
0bd0bef6 7214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7215 conftest$ac_exeext conftest.$ac_ext
7216fi
a8b2ad8d 7217ac_res=`eval echo '${'$as_ac_var'}'`
7218 { echo "$as_me:$LINENO: result: $ac_res" >&5
7219echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7220if test `eval echo '${'$as_ac_var'}'` = yes; then
7221 cat >>confdefs.h <<_ACEOF
7222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7223_ACEOF
7224
7225fi
7226done
7227
a8b2ad8d 7228{ echo "$as_me:$LINENO: checking for working mmap" >&5
7229echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
b3076f16 7230if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 if test "$cross_compiling" = yes; then
7234 ac_cv_func_mmap_fixed_mapped=no
7235else
7236 cat >conftest.$ac_ext <<_ACEOF
7237/* confdefs.h. */
7238_ACEOF
7239cat confdefs.h >>conftest.$ac_ext
7240cat >>conftest.$ac_ext <<_ACEOF
7241/* end confdefs.h. */
7242$ac_includes_default
7243/* malloc might have been renamed as rpl_malloc. */
7244#undef malloc
7245
7246/* Thanks to Mike Haertel and Jim Avera for this test.
7247 Here is a matrix of mmap possibilities:
7248 mmap private not fixed
7249 mmap private fixed at somewhere currently unmapped
7250 mmap private fixed at somewhere already mapped
7251 mmap shared not fixed
7252 mmap shared fixed at somewhere currently unmapped
7253 mmap shared fixed at somewhere already mapped
7254 For private mappings, we should verify that changes cannot be read()
7255 back from the file, nor mmap's back from the file at a different
7256 address. (There have been systems where private was not correctly
7257 implemented like the infamous i386 svr4.0, and systems where the
7258 VM page cache was not coherent with the file system buffer cache
7259 like early versions of FreeBSD and possibly contemporary NetBSD.)
7260 For shared mappings, we should conversely verify that changes get
7261 propagated back to all the places they're supposed to be.
7262
7263 Grep wants private fixed already mapped.
7264 The main things grep needs to know about mmap are:
7265 * does it exist and is it safe to write into the mmap'd area
7266 * how to use it (BSD variants) */
7267
7268#include <fcntl.h>
7269#include <sys/mman.h>
7270
0bd0bef6 7271#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b3076f16 7272char *malloc ();
7273#endif
7274
7275/* This mess was copied from the GNU getpagesize.h. */
0bd0bef6 7276#ifndef HAVE_GETPAGESIZE
b3076f16 7277/* Assume that all systems that can run configure have sys/param.h. */
0bd0bef6 7278# ifndef HAVE_SYS_PARAM_H
b3076f16 7279# define HAVE_SYS_PARAM_H 1
7280# endif
7281
7282# ifdef _SC_PAGESIZE
7283# define getpagesize() sysconf(_SC_PAGESIZE)
7284# else /* no _SC_PAGESIZE */
0bd0bef6 7285# ifdef HAVE_SYS_PARAM_H
b3076f16 7286# include <sys/param.h>
7287# ifdef EXEC_PAGESIZE
7288# define getpagesize() EXEC_PAGESIZE
7289# else /* no EXEC_PAGESIZE */
7290# ifdef NBPG
7291# define getpagesize() NBPG * CLSIZE
7292# ifndef CLSIZE
7293# define CLSIZE 1
7294# endif /* no CLSIZE */
7295# else /* no NBPG */
7296# ifdef NBPC
7297# define getpagesize() NBPC
7298# else /* no NBPC */
7299# ifdef PAGESIZE
7300# define getpagesize() PAGESIZE
7301# endif /* PAGESIZE */
7302# endif /* no NBPC */
7303# endif /* no NBPG */
7304# endif /* no EXEC_PAGESIZE */
7305# else /* no HAVE_SYS_PARAM_H */
7306# define getpagesize() 8192 /* punt totally */
7307# endif /* no HAVE_SYS_PARAM_H */
7308# endif /* no _SC_PAGESIZE */
7309
7310#endif /* no HAVE_GETPAGESIZE */
7311
7312int
7313main ()
7314{
7315 char *data, *data2, *data3;
7316 int i, pagesize;
7317 int fd;
7318
7319 pagesize = getpagesize ();
7320
7321 /* First, make a file with some known garbage in it. */
7322 data = (char *) malloc (pagesize);
7323 if (!data)
a8b2ad8d 7324 return 1;
b3076f16 7325 for (i = 0; i < pagesize; ++i)
7326 *(data + i) = rand ();
7327 umask (0);
7328 fd = creat ("conftest.mmap", 0600);
7329 if (fd < 0)
a8b2ad8d 7330 return 1;
b3076f16 7331 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 7332 return 1;
b3076f16 7333 close (fd);
7334
7335 /* Next, try to mmap the file at a fixed address which already has
7336 something else allocated at it. If we can, also make sure that
7337 we see the same garbage. */
7338 fd = open ("conftest.mmap", O_RDWR);
7339 if (fd < 0)
a8b2ad8d 7340 return 1;
b3076f16 7341 data2 = (char *) malloc (2 * pagesize);
7342 if (!data2)
a8b2ad8d 7343 return 1;
7344 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16 7345 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7346 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 7347 return 1;
b3076f16 7348 for (i = 0; i < pagesize; ++i)
7349 if (*(data + i) != *(data2 + i))
a8b2ad8d 7350 return 1;
b3076f16 7351
7352 /* Finally, make sure that changes to the mapped area do not
7353 percolate back to the file as seen by read(). (This is a bug on
7354 some variants of i386 svr4.0.) */
7355 for (i = 0; i < pagesize; ++i)
7356 *(data2 + i) = *(data2 + i) + 1;
7357 data3 = (char *) malloc (pagesize);
7358 if (!data3)
a8b2ad8d 7359 return 1;
b3076f16 7360 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 7361 return 1;
b3076f16 7362 for (i = 0; i < pagesize; ++i)
7363 if (*(data + i) != *(data3 + i))
a8b2ad8d 7364 return 1;
b3076f16 7365 close (fd);
a8b2ad8d 7366 return 0;
b3076f16 7367}
7368_ACEOF
7369rm -f conftest$ac_exeext
a8b2ad8d 7370if { (ac_try="$ac_link"
7371case "(($ac_try" in
7372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7374esac
7375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7376 (eval "$ac_link") 2>&5
b3076f16 7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7380 { (case "(($ac_try" in
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7383esac
7384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385 (eval "$ac_try") 2>&5
b3076f16 7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7389 ac_cv_func_mmap_fixed_mapped=yes
7390else
7391 echo "$as_me: program exited with status $ac_status" >&5
7392echo "$as_me: failed program was:" >&5
7393sed 's/^/| /' conftest.$ac_ext >&5
7394
7395( exit $ac_status )
7396ac_cv_func_mmap_fixed_mapped=no
7397fi
a8b2ad8d 7398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7399fi
a8b2ad8d 7400
7401
b3076f16 7402fi
a8b2ad8d 7403{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7404echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 7405if test $ac_cv_func_mmap_fixed_mapped = yes; then
7406
7407cat >>confdefs.h <<\_ACEOF
7408#define HAVE_MMAP 1
7409_ACEOF
7410
7411fi
7412rm -f conftest.mmap
7413
7414
a8b2ad8d 7415{ echo "$as_me:$LINENO: checking for sin_len" >&5
7416echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
b3076f16 7417if test "${ac_cv_sin_len+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419else
7420 cat >conftest.$ac_ext <<_ACEOF
7421/* confdefs.h. */
7422_ACEOF
7423cat confdefs.h >>conftest.$ac_ext
7424cat >>conftest.$ac_ext <<_ACEOF
7425/* end confdefs.h. */
7426#include <sys/types.h>
7427#include <netinet/in.h>
7428int
7429main ()
7430{
7431struct sockaddr_in *sin; sin->sin_len = 0;
7432 ;
7433 return 0;
7434}
7435_ACEOF
7436rm -f conftest.$ac_objext
a8b2ad8d 7437if { (ac_try="$ac_compile"
7438case "(($ac_try" in
7439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440 *) ac_try_echo=$ac_try;;
7441esac
7442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443 (eval "$ac_compile") 2>conftest.er1
b3076f16 7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7449 (exit $ac_status); } && {
7450 test -z "$ac_c_werror_flag" ||
7451 test ! -s conftest.err
7452 } && test -s conftest.$ac_objext; then
b3076f16 7453 ac_cv_sin_len="yes"
7454else
7455 echo "$as_me: failed program was:" >&5
7456sed 's/^/| /' conftest.$ac_ext >&5
7457
a8b2ad8d 7458 ac_cv_sin_len="no"
b3076f16 7459fi
a8b2ad8d 7460
7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7462fi
a8b2ad8d 7463{ echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
7464echo "${ECHO_T}$ac_cv_sin_len" >&6; }
b3076f16 7465if test $ac_cv_sin_len = yes ; then
7466
7467cat >>confdefs.h <<\_ACEOF
7468#define HAVE_SIN_LEN 1
7469_ACEOF
7470
7471fi
7472
a8b2ad8d 7473{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7474echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
79886419 7475if test "${ac_cv_type_socklen_t+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
7478 cat >conftest.$ac_ext <<_ACEOF
7479/* confdefs.h. */
7480_ACEOF
7481cat confdefs.h >>conftest.$ac_ext
7482cat >>conftest.$ac_ext <<_ACEOF
7483/* end confdefs.h. */
7484#include <sys/types.h>
7485#include<sys/socket.h>
7486
a8b2ad8d 7487typedef socklen_t ac__type_new_;
79886419 7488int
7489main ()
7490{
a8b2ad8d 7491if ((ac__type_new_ *) 0)
79886419 7492 return 0;
a8b2ad8d 7493if (sizeof (ac__type_new_))
79886419 7494 return 0;
7495 ;
7496 return 0;
7497}
7498_ACEOF
7499rm -f conftest.$ac_objext
a8b2ad8d 7500if { (ac_try="$ac_compile"
7501case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504esac
7505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
79886419 7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7512 (exit $ac_status); } && {
7513 test -z "$ac_c_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.$ac_objext; then
0f6fe38c 7516 ac_cv_type_socklen_t=yes
ff3b058a 7517else
7518 echo "$as_me: failed program was:" >&5
7519sed 's/^/| /' conftest.$ac_ext >&5
7520
0f6fe38c 7521 ac_cv_type_socklen_t=no
ff3b058a 7522fi
7523
7524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff3b058a 7525fi
0f6fe38c 7526{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7527echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7528if test $ac_cv_type_socklen_t = yes; then
7529 :
7530else
ff3b058a 7531
0f6fe38c 7532 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
7533echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
7534 if test "${curl_cv_socklen_t_equiv+set}" = set; then
ff3b058a 7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
0f6fe38c 7537
7538 curl_cv_socklen_t_equiv=
7539 for arg2 in "struct sockaddr" void ; do
7540 for t in int size_t unsigned long "unsigned long" ; do
7541 cat >conftest.$ac_ext <<_ACEOF
ff3b058a 7542/* confdefs.h. */
7543_ACEOF
7544cat confdefs.h >>conftest.$ac_ext
7545cat >>conftest.$ac_ext <<_ACEOF
7546/* end confdefs.h. */
0f6fe38c 7547#include <sys/types.h>
7548#include <sys/socket.h>
7549int getpeername (int $arg2 *, $t *);
7550int
7551main ()
7552{
7553$t len;
7554 getpeername(0, 0, &len);
7555 ;
7556 return 0;
7557}
79886419 7558_ACEOF
7559rm -f conftest.$ac_objext
a8b2ad8d 7560if { (ac_try="$ac_compile"
7561case "(($ac_try" in
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7564esac
7565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566 (eval "$ac_compile") 2>conftest.er1
79886419 7567 ac_status=$?
7568 grep -v '^ *+' conftest.er1 >conftest.err
7569 rm -f conftest.er1
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7572 (exit $ac_status); } && {
7573 test -z "$ac_c_werror_flag" ||
7574 test ! -s conftest.err
7575 } && test -s conftest.$ac_objext; then
0f6fe38c 7576 curl_cv_socklen_t_equiv="$t"
7577 break
79886419 7578else
7579 echo "$as_me: failed program was:" >&5
7580sed 's/^/| /' conftest.$ac_ext >&5
7581
a8b2ad8d 7582
79886419 7583fi
a8b2ad8d 7584
7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0f6fe38c 7586 done
7587 done
79886419 7588
7589fi
7590
0f6fe38c 7591 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
7592echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
79886419 7593
0f6fe38c 7594cat >>confdefs.h <<_ACEOF
7595#define socklen_t $curl_cv_socklen_t_equiv
79886419 7596_ACEOF
7597
0f6fe38c 7598fi
7599
7600
7601OLD_CFLAGS=$CFLAGS
7602CFLAGS="$CFLAGS -W -Wall -Werror"
b3076f16 7603
1136f709 7604if test "z$USE_MAINTAINER_MODE" = zyes ; then
7605 CFLAGS="$CFLAGS -ansi"
7606fi
7607
7608{ echo "$as_me:$LINENO: checking for inline" >&5
7609echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7610if test "${ac_cv_c_inline+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613 ac_cv_c_inline=no
7614for ac_kw in inline __inline__ __inline; do
7615 cat >conftest.$ac_ext <<_ACEOF
7616/* confdefs.h. */
7617_ACEOF
7618cat confdefs.h >>conftest.$ac_ext
7619cat >>conftest.$ac_ext <<_ACEOF
7620/* end confdefs.h. */
7621#ifndef __cplusplus
7622typedef int foo_t;
7623static $ac_kw foo_t static_foo () {return 0; }
7624$ac_kw foo_t foo () {return 0; }
7625#endif
7626
7627_ACEOF
7628rm -f conftest.$ac_objext
7629if { (ac_try="$ac_compile"
7630case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633esac
7634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_compile") 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest.$ac_objext; then
7645 ac_cv_c_inline=$ac_kw
7646else
7647 echo "$as_me: failed program was:" >&5
7648sed 's/^/| /' conftest.$ac_ext >&5
7649
7650
7651fi
7652
7653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 test "$ac_cv_c_inline" != no && break
7655done
7656
7657fi
7658{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7659echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7660
7661
7662case $ac_cv_c_inline in
7663 inline | yes) ;;
7664 *)
7665 case $ac_cv_c_inline in
7666 no) ac_val=;;
7667 *) ac_val=$ac_cv_c_inline;;
7668 esac
7669 cat >>confdefs.h <<_ACEOF
7670#ifndef __cplusplus
7671#define inline $ac_val
7672#endif
7673_ACEOF
7674 ;;
7675esac
7676
7677
a8b2ad8d 7678{ echo "$as_me:$LINENO: checking for time_t format" >&5
7679echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
b3076f16 7680if test "${ac_cv_fmt_time_t+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683
7684ac_cv_fmt_time_t=no
7685cat >conftest.$ac_ext <<_ACEOF
7686#include <sys/types.h>
7687#include <stdio.h>
7688void myfunc(void) {
7689 time_t test=0;
7690 printf("%li", test);
7691}
7692_ACEOF
7693rm -f conftest.$ac_objext
a8b2ad8d 7694if { (ac_try="$ac_compile"
7695case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698esac
7699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700 (eval "$ac_compile") 2>conftest.er1
b3076f16 7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7706 (exit $ac_status); } && {
7707 test -z "$ac_c_werror_flag" ||
7708 test ! -s conftest.err
7709 } && test -s conftest.$ac_objext; then
b3076f16 7710 ac_cv_fmt_time_t="\"%li\""
7711else
7712 echo "$as_me: failed program was:" >&5
7713sed 's/^/| /' conftest.$ac_ext >&5
7714
a8b2ad8d 7715
b3076f16 7716fi
a8b2ad8d 7717
7718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7719if test $ac_cv_fmt_time_t = no; then
7720cat >conftest.$ac_ext <<_ACEOF
7721#include <sys/types.h>
7722#include <stdio.h>
7723void myfunc(void) {
7724 time_t test=0;
7725 printf("%i", test);
7726}
7727_ACEOF
7728rm -f conftest.$ac_objext
a8b2ad8d 7729if { (ac_try="$ac_compile"
7730case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733esac
7734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
b3076f16 7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
b3076f16 7745 ac_cv_fmt_time_t="\"%i\""
7746else
7747 echo "$as_me: failed program was:" >&5
7748sed 's/^/| /' conftest.$ac_ext >&5
7749
a8b2ad8d 7750
b3076f16 7751fi
a8b2ad8d 7752
7753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7754fi
7755if test $ac_cv_fmt_time_t = no; then
7756{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
7757Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
7758echo "$as_me: error: Cannot detect format string for time_t
7759Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
7760 { (exit 1); exit 1; }; }
7761fi
7762
7763fi
7764
7765
7766cat >>confdefs.h <<_ACEOF
7767#define FMT_TIME_T $ac_cv_fmt_time_t
7768_ACEOF
7769
a8b2ad8d 7770{ echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
7771echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
b3076f16 7772
a8b2ad8d 7773{ echo "$as_me:$LINENO: checking for va_copy" >&5
7774echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
b3076f16 7775if test "${ac_cv_c_va_copy+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777else
7778 cat >conftest.$ac_ext <<_ACEOF
7779/* confdefs.h. */
7780_ACEOF
7781cat confdefs.h >>conftest.$ac_ext
7782cat >>conftest.$ac_ext <<_ACEOF
7783/* end confdefs.h. */
7784#include <stdarg.h>
7785int
7786main ()
7787{
7788va_list ap1, ap2; va_copy(ap1, ap2);
7789 ;
7790 return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7794if { (ac_try="$ac_link"
7795case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798esac
7799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_link") 2>conftest.er1
b3076f16 7801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest$ac_exeext &&
7810 $as_test_x conftest$ac_exeext; then
b3076f16 7811 ac_cv_c_va_copy="yes"
7812else
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
a8b2ad8d 7816 ac_cv_c_va_copy="no"
b3076f16 7817
7818fi
a8b2ad8d 7819
0bd0bef6 7820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7821 conftest$ac_exeext conftest.$ac_ext
7822fi
a8b2ad8d 7823{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
7824echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
b3076f16 7825if test "$ac_cv_c_va_copy" = "yes" ; then
7826
7827cat >>confdefs.h <<\_ACEOF
7828#define HAVE_VA_COPY 1
7829_ACEOF
7830
7831fi
7832
a8b2ad8d 7833{ echo "$as_me:$LINENO: checking for __va_copy" >&5
7834echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
b3076f16 7835if test "${ac_cv_c___va_copy+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838 cat >conftest.$ac_ext <<_ACEOF
7839/* confdefs.h. */
7840_ACEOF
7841cat confdefs.h >>conftest.$ac_ext
7842cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h. */
7844#include <stdarg.h>
7845int
7846main ()
7847{
7848va_list ap1, ap2; __va_copy(ap1, ap2);
7849 ;
7850 return 0;
7851}
7852_ACEOF
7853rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7854if { (ac_try="$ac_link"
7855case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_link") 2>conftest.er1
b3076f16 7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest$ac_exeext &&
7870 $as_test_x conftest$ac_exeext; then
b3076f16 7871 ac_cv_c___va_copy="yes"
7872else
7873 echo "$as_me: failed program was:" >&5
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
a8b2ad8d 7876 ac_cv_c___va_copy="no"
b3076f16 7877
7878fi
a8b2ad8d 7879
0bd0bef6 7880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7881 conftest$ac_exeext conftest.$ac_ext
7882fi
a8b2ad8d 7883{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
7884echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
b3076f16 7885if test "$ac_cv_c___va_copy" = "yes" ; then
7886
7887cat >>confdefs.h <<\_ACEOF
7888#define HAVE___VA_COPY 1
7889_ACEOF
7890
7891fi
7892
7893CFLAGS=$OLD_CFLAGS
7894
a8b2ad8d 7895{ echo "$as_me:$LINENO: checking which malloc to use" >&5
7896echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
b3076f16 7897
a8b2ad8d 7898# Check whether --with-malloc was given.
b3076f16 7899if test "${with_malloc+set}" = set; then
a8b2ad8d 7900 withval=$with_malloc;
b3076f16 7901else
7902 withval="system"
a8b2ad8d 7903fi
7904
b3076f16 7905if test "x$withval" = "xsystem" ; then
a8b2ad8d 7906 { echo "$as_me:$LINENO: result: system" >&5
7907echo "${ECHO_T}system" >&6; }
b3076f16 7908
7909cat >>confdefs.h <<\_ACEOF
7910#define WITH_MALLOC_SYSTEM 1
7911_ACEOF
7912
5b1166fd 7913 x3_malloc="System"
b3076f16 7914elif test "x$withval" = "xdmalloc" ; then
a8b2ad8d 7915 { echo "$as_me:$LINENO: result: dmalloc" >&5
7916echo "${ECHO_T}dmalloc" >&6; }
b3076f16 7917
7918for ac_header in dmalloc.h
7919do
7920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926fi
a8b2ad8d 7927ac_res=`eval echo '${'$as_ac_Header'}'`
7928 { echo "$as_me:$LINENO: result: $ac_res" >&5
7929echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7930else
7931 # Is the header compilable?
a8b2ad8d 7932{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7933echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 7934cat >conftest.$ac_ext <<_ACEOF
7935/* confdefs.h. */
7936_ACEOF
7937cat confdefs.h >>conftest.$ac_ext
7938cat >>conftest.$ac_ext <<_ACEOF
7939/* end confdefs.h. */
7940$ac_includes_default
7941#include <$ac_header>
7942_ACEOF
7943rm -f conftest.$ac_objext
a8b2ad8d 7944if { (ac_try="$ac_compile"
7945case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948esac
7949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
b3076f16 7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
b3076f16 7960 ac_header_compiler=yes
7961else
7962 echo "$as_me: failed program was:" >&5
7963sed 's/^/| /' conftest.$ac_ext >&5
7964
a8b2ad8d 7965 ac_header_compiler=no
b3076f16 7966fi
a8b2ad8d 7967
7968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7970echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 7971
7972# Is the header present?
a8b2ad8d 7973{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 7975cat >conftest.$ac_ext <<_ACEOF
7976/* confdefs.h. */
7977_ACEOF
7978cat confdefs.h >>conftest.$ac_ext
7979cat >>conftest.$ac_ext <<_ACEOF
7980/* end confdefs.h. */
7981#include <$ac_header>
7982_ACEOF
a8b2ad8d 7983if { (ac_try="$ac_cpp conftest.$ac_ext"
7984case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7987esac
7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7995 (exit $ac_status); } >/dev/null && {
7996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7998 }; then
b3076f16 7999 ac_header_preproc=yes
8000else
8001 echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
8004 ac_header_preproc=no
8005fi
a8b2ad8d 8006
b3076f16 8007rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8008{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8009echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8010
8011# So? What about this header?
8012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8013 yes:no: )
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8018 ac_header_preproc=yes
8019 ;;
8020 no:yes:* )
8021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8033 ( cat <<\_ASBOX
63c95a47 8034## -------------------------------------------------- ##
8035## Report this to evilnet-devel@lists.sourceforge.net ##
8036## -------------------------------------------------- ##
b3076f16 8037_ASBOX
a8b2ad8d 8038 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8039 ;;
8040esac
a8b2ad8d 8041{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 eval "$as_ac_Header=\$ac_header_preproc"
8047fi
a8b2ad8d 8048ac_res=`eval echo '${'$as_ac_Header'}'`
8049 { echo "$as_me:$LINENO: result: $ac_res" >&5
8050echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8051
8052fi
8053if test `eval echo '${'$as_ac_Header'}'` = yes; then
8054 cat >>confdefs.h <<_ACEOF
8055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056_ACEOF
8057
8058else
8059 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8060echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8061 { (exit 1); exit 1; }; }
8062fi
8063
8064done
8065
8066
a8b2ad8d 8067{ echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8068echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
b3076f16 8069if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072 ac_check_lib_save_LIBS=$LIBS
8073LIBS="-ldmalloc $LIBS"
8074cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h. */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h. */
8080
a8b2ad8d 8081/* Override any GCC internal prototype to avoid an error.
8082 Use char because int might match the return type of a GCC
8083 builtin and then its argument prototype would still apply. */
b3076f16 8084#ifdef __cplusplus
8085extern "C"
8086#endif
b3076f16 8087char malloc ();
8088int
8089main ()
8090{
a8b2ad8d 8091return malloc ();
b3076f16 8092 ;
8093 return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8097if { (ac_try="$ac_link"
8098case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101esac
8102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_link") 2>conftest.er1
b3076f16 8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest$ac_exeext &&
8113 $as_test_x conftest$ac_exeext; then
b3076f16 8114 ac_cv_lib_dmalloc_malloc=yes
8115else
8116 echo "$as_me: failed program was:" >&5
8117sed 's/^/| /' conftest.$ac_ext >&5
8118
a8b2ad8d 8119 ac_cv_lib_dmalloc_malloc=no
b3076f16 8120fi
a8b2ad8d 8121
0bd0bef6 8122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8123 conftest$ac_exeext conftest.$ac_ext
8124LIBS=$ac_check_lib_save_LIBS
8125fi
a8b2ad8d 8126{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8127echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
b3076f16 8128if test $ac_cv_lib_dmalloc_malloc = yes; then
8129 cat >>confdefs.h <<_ACEOF
8130#define HAVE_LIBDMALLOC 1
8131_ACEOF
8132
8133 LIBS="-ldmalloc $LIBS"
8134
8135else
8136 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8137echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8138 { (exit 1); exit 1; }; }
8139fi
8140
8141
8142cat >>confdefs.h <<\_ACEOF
8143#define WITH_MALLOC_DMALLOC 1
8144_ACEOF
8145
5b1166fd 8146 x3_malloc="DMalloc"
b3076f16 8147elif test "x$withval" = "xmpatrol" ; then
a8b2ad8d 8148 { echo "$as_me:$LINENO: result: mpatrol" >&5
8149echo "${ECHO_T}mpatrol" >&6; }
b3076f16 8150
8151for ac_header in mpatrol.h
8152do
8153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159fi
a8b2ad8d 8160ac_res=`eval echo '${'$as_ac_Header'}'`
8161 { echo "$as_me:$LINENO: result: $ac_res" >&5
8162echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8163else
8164 # Is the header compilable?
a8b2ad8d 8165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8167cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8173$ac_includes_default
8174#include <$ac_header>
8175_ACEOF
8176rm -f conftest.$ac_objext
a8b2ad8d 8177if { (ac_try="$ac_compile"
8178case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181esac
8182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
b3076f16 8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
b3076f16 8193 ac_header_compiler=yes
8194else
8195 echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
a8b2ad8d 8198 ac_header_compiler=no
b3076f16 8199fi
a8b2ad8d 8200
8201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8203echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8204
8205# Is the header present?
a8b2ad8d 8206{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8208cat >conftest.$ac_ext <<_ACEOF
8209/* confdefs.h. */
8210_ACEOF
8211cat confdefs.h >>conftest.$ac_ext
8212cat >>conftest.$ac_ext <<_ACEOF
8213/* end confdefs.h. */
8214#include <$ac_header>
8215_ACEOF
a8b2ad8d 8216if { (ac_try="$ac_cpp conftest.$ac_ext"
8217case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220esac
8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8228 (exit $ac_status); } >/dev/null && {
8229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 }; then
b3076f16 8232 ac_header_preproc=yes
8233else
8234 echo "$as_me: failed program was:" >&5
8235sed 's/^/| /' conftest.$ac_ext >&5
8236
8237 ac_header_preproc=no
8238fi
a8b2ad8d 8239
b3076f16 8240rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8241{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8242echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8243
8244# So? What about this header?
8245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8246 yes:no: )
8247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8248echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8250echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8251 ac_header_preproc=yes
8252 ;;
8253 no:yes:* )
8254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8255echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8257echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8259echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8261echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8265echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8266 ( cat <<\_ASBOX
63c95a47 8267## -------------------------------------------------- ##
8268## Report this to evilnet-devel@lists.sourceforge.net ##
8269## -------------------------------------------------- ##
b3076f16 8270_ASBOX
a8b2ad8d 8271 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8272 ;;
8273esac
a8b2ad8d 8274{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279 eval "$as_ac_Header=\$ac_header_preproc"
8280fi
a8b2ad8d 8281ac_res=`eval echo '${'$as_ac_Header'}'`
8282 { echo "$as_me:$LINENO: result: $ac_res" >&5
8283echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8284
8285fi
8286if test `eval echo '${'$as_ac_Header'}'` = yes; then
8287 cat >>confdefs.h <<_ACEOF
8288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8289_ACEOF
8290
8291else
8292 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
8293echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
8294 { (exit 1); exit 1; }; }
8295fi
8296
8297done
8298
8299
a8b2ad8d 8300{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
8301echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
b3076f16 8302if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304else
8305 ac_check_lib_save_LIBS=$LIBS
8306LIBS="-lelf $LIBS"
8307cat >conftest.$ac_ext <<_ACEOF
8308/* confdefs.h. */
8309_ACEOF
8310cat confdefs.h >>conftest.$ac_ext
8311cat >>conftest.$ac_ext <<_ACEOF
8312/* end confdefs.h. */
8313
a8b2ad8d 8314/* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
b3076f16 8317#ifdef __cplusplus
8318extern "C"
8319#endif
b3076f16 8320char elf_begin ();
8321int
8322main ()
8323{
a8b2ad8d 8324return elf_begin ();
b3076f16 8325 ;
8326 return 0;
8327}
8328_ACEOF
8329rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8330if { (ac_try="$ac_link"
8331case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
8335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_link") 2>conftest.er1
b3076f16 8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest$ac_exeext &&
8346 $as_test_x conftest$ac_exeext; then
b3076f16 8347 ac_cv_lib_elf_elf_begin=yes
8348else
8349 echo "$as_me: failed program was:" >&5
8350sed 's/^/| /' conftest.$ac_ext >&5
8351
a8b2ad8d 8352 ac_cv_lib_elf_elf_begin=no
b3076f16 8353fi
a8b2ad8d 8354
0bd0bef6 8355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8356 conftest$ac_exeext conftest.$ac_ext
8357LIBS=$ac_check_lib_save_LIBS
8358fi
a8b2ad8d 8359{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
8360echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
b3076f16 8361if test $ac_cv_lib_elf_elf_begin = yes; then
8362 cat >>confdefs.h <<_ACEOF
8363#define HAVE_LIBELF 1
8364_ACEOF
8365
8366 LIBS="-lelf $LIBS"
8367
8368fi
8369
8370
a8b2ad8d 8371{ echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
8372echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
b3076f16 8373if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375else
8376 ac_check_lib_save_LIBS=$LIBS
8377LIBS="-lmpatrol $LIBS"
8378cat >conftest.$ac_ext <<_ACEOF
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
8384
a8b2ad8d 8385/* Override any GCC internal prototype to avoid an error.
8386 Use char because int might match the return type of a GCC
8387 builtin and then its argument prototype would still apply. */
b3076f16 8388#ifdef __cplusplus
8389extern "C"
8390#endif
b3076f16 8391char __mp_atexit ();
8392int
8393main ()
8394{
a8b2ad8d 8395return __mp_atexit ();
b3076f16 8396 ;
8397 return 0;
8398}
8399_ACEOF
8400rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8401if { (ac_try="$ac_link"
8402case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_link") 2>conftest.er1
b3076f16 8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest$ac_exeext &&
8417 $as_test_x conftest$ac_exeext; then
b3076f16 8418 ac_cv_lib_mpatrol___mp_atexit=yes
8419else
8420 echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
8422
a8b2ad8d 8423 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 8424fi
a8b2ad8d 8425
0bd0bef6 8426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8427 conftest$ac_exeext conftest.$ac_ext
8428LIBS=$ac_check_lib_save_LIBS
8429fi
a8b2ad8d 8430{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
8431echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
b3076f16 8432if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434#define HAVE_LIBMPATROL 1
8435_ACEOF
8436
8437 LIBS="-lmpatrol $LIBS"
8438
8439else
8440 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
8441echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
8442 { (exit 1); exit 1; }; }
8443fi
8444
8445
8446cat >>confdefs.h <<\_ACEOF
8447#define WITH_MALLOC_MPATROL 1
8448_ACEOF
8449
5b1166fd 8450 x3_malloc="MPatrol"
b3076f16 8451elif test "x$withval" = "xboehm-gc" ; then
a8b2ad8d 8452 { echo "$as_me:$LINENO: result: boehm-gc" >&5
8453echo "${ECHO_T}boehm-gc" >&6; }
b3076f16 8454
8455for ac_header in gc/gc.h
8456do
8457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463fi
a8b2ad8d 8464ac_res=`eval echo '${'$as_ac_Header'}'`
8465 { echo "$as_me:$LINENO: result: $ac_res" >&5
8466echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8467else
8468 # Is the header compilable?
a8b2ad8d 8469{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8471cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h. */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h. */
8477$ac_includes_default
ff3b058a 8478#include <$ac_header>
8479_ACEOF
8480rm -f conftest.$ac_objext
8481if { (ac_try="$ac_compile"
8482case "(($ac_try" in
a8b2ad8d 8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485esac
8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
0f6fe38c 8487 (eval "$ac_compile") 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest.$ac_objext; then
b3076f16 8497 ac_header_compiler=yes
8498else
8499 echo "$as_me: failed program was:" >&5
8500sed 's/^/| /' conftest.$ac_ext >&5
8501
a8b2ad8d 8502 ac_header_compiler=no
b3076f16 8503fi
a8b2ad8d 8504
8505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8507echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8508
8509# Is the header present?
a8b2ad8d 8510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8512cat >conftest.$ac_ext <<_ACEOF
8513/* confdefs.h. */
8514_ACEOF
8515cat confdefs.h >>conftest.$ac_ext
8516cat >>conftest.$ac_ext <<_ACEOF
8517/* end confdefs.h. */
8518#include <$ac_header>
8519_ACEOF
a8b2ad8d 8520if { (ac_try="$ac_cpp conftest.$ac_ext"
8521case "(($ac_try" in
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8524esac
8525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8532 (exit $ac_status); } >/dev/null && {
8533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 }; then
b3076f16 8536 ac_header_preproc=yes
8537else
8538 echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_header_preproc=no
8542fi
a8b2ad8d 8543
b3076f16 8544rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8546echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8547
8548# So? What about this header?
8549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8550 yes:no: )
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8555 ac_header_preproc=yes
8556 ;;
8557 no:yes:* )
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8570 ( cat <<\_ASBOX
63c95a47 8571## -------------------------------------------------- ##
8572## Report this to evilnet-devel@lists.sourceforge.net ##
8573## -------------------------------------------------- ##
b3076f16 8574_ASBOX
a8b2ad8d 8575 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8576 ;;
8577esac
a8b2ad8d 8578{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583 eval "$as_ac_Header=\$ac_header_preproc"
8584fi
a8b2ad8d 8585ac_res=`eval echo '${'$as_ac_Header'}'`
8586 { echo "$as_me:$LINENO: result: $ac_res" >&5
8587echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8588
8589fi
8590if test `eval echo '${'$as_ac_Header'}'` = yes; then
8591 cat >>confdefs.h <<_ACEOF
8592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8593_ACEOF
8594
8595else
8596 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
8597echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
8598 { (exit 1); exit 1; }; }
8599fi
8600
8601done
8602
8603
a8b2ad8d 8604{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8605echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
b3076f16 8606if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8608else
8609 ac_check_lib_save_LIBS=$LIBS
8610LIBS="-ldl $LIBS"
8611cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617
a8b2ad8d 8618/* Override any GCC internal prototype to avoid an error.
8619 Use char because int might match the return type of a GCC
8620 builtin and then its argument prototype would still apply. */
b3076f16 8621#ifdef __cplusplus
8622extern "C"
8623#endif
b3076f16 8624char dlopen ();
8625int
8626main ()
8627{
a8b2ad8d 8628return dlopen ();
b3076f16 8629 ;
8630 return 0;
8631}
8632_ACEOF
8633rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8634if { (ac_try="$ac_link"
8635case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
8639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_link") 2>conftest.er1
b3076f16 8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest$ac_exeext &&
8650 $as_test_x conftest$ac_exeext; then
b3076f16 8651 ac_cv_lib_dl_dlopen=yes
8652else
8653 echo "$as_me: failed program was:" >&5
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
a8b2ad8d 8656 ac_cv_lib_dl_dlopen=no
b3076f16 8657fi
a8b2ad8d 8658
0bd0bef6 8659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8660 conftest$ac_exeext conftest.$ac_ext
8661LIBS=$ac_check_lib_save_LIBS
8662fi
a8b2ad8d 8663{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8664echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
b3076f16 8665if test $ac_cv_lib_dl_dlopen = yes; then
8666 cat >>confdefs.h <<_ACEOF
8667#define HAVE_LIBDL 1
8668_ACEOF
8669
8670 LIBS="-ldl $LIBS"
8671
8672else
8673 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
8674echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
8675 { (exit 1); exit 1; }; }
8676fi
8677
8678
a8b2ad8d 8679{ echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
8680echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
b3076f16 8681if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683else
8684 ac_check_lib_save_LIBS=$LIBS
8685LIBS="-lgc $LIBS"
8686cat >conftest.$ac_ext <<_ACEOF
8687/* confdefs.h. */
8688_ACEOF
8689cat confdefs.h >>conftest.$ac_ext
8690cat >>conftest.$ac_ext <<_ACEOF
8691/* end confdefs.h. */
8692
a8b2ad8d 8693/* Override any GCC internal prototype to avoid an error.
8694 Use char because int might match the return type of a GCC
8695 builtin and then its argument prototype would still apply. */
b3076f16 8696#ifdef __cplusplus
8697extern "C"
8698#endif
b3076f16 8699char GC_gcollect ();
8700int
8701main ()
8702{
a8b2ad8d 8703return GC_gcollect ();
b3076f16 8704 ;
8705 return 0;
8706}
8707_ACEOF
8708rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8709if { (ac_try="$ac_link"
8710case "(($ac_try" in
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8713esac
8714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_link") 2>conftest.er1
b3076f16 8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest$ac_exeext &&
8725 $as_test_x conftest$ac_exeext; then
b3076f16 8726 ac_cv_lib_gc_GC_gcollect=yes
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
a8b2ad8d 8731 ac_cv_lib_gc_GC_gcollect=no
b3076f16 8732fi
a8b2ad8d 8733
0bd0bef6 8734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8735 conftest$ac_exeext conftest.$ac_ext
8736LIBS=$ac_check_lib_save_LIBS
8737fi
a8b2ad8d 8738{ echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
8739echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
b3076f16 8740if test $ac_cv_lib_gc_GC_gcollect = yes; then
8741 cat >>confdefs.h <<_ACEOF
8742#define HAVE_LIBGC 1
8743_ACEOF
8744
8745 LIBS="-lgc $LIBS"
8746
8747else
8748 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
8749echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
8750 { (exit 1); exit 1; }; }
8751fi
8752
8753
8754cat >>confdefs.h <<\_ACEOF
8755#define WITH_MALLOC_BOEHM_GC 1
8756_ACEOF
8757
5b1166fd 8758 x3_malloc="Boehm"
b8cb2a14 8759elif test "x$withval" = "xx3" ; then
a8b2ad8d 8760 { echo "$as_me:$LINENO: result: x3" >&5
8761echo "${ECHO_T}x3" >&6; }
ec1a68c8 8762
8763cat >>confdefs.h <<\_ACEOF
b8cb2a14 8764#define WITH_MALLOC_X3 1
ec1a68c8 8765_ACEOF
8766
b8cb2a14 8767 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 8768 x3_malloc="X3"
ceafd592 8769elif test "x$withval" = "xslab" ; then
a8b2ad8d 8770 { echo "$as_me:$LINENO: result: slab" >&5
8771echo "${ECHO_T}slab" >&6; }
ceafd592 8772
8773cat >>confdefs.h <<\_ACEOF
8774#define WITH_MALLOC_SLAB 1
8775_ACEOF
8776
8777 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 8778 x3_malloc="Slab"
b3076f16 8779else
8780 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
8781echo "$as_me: error: Unknown malloc type $withval" >&2;}
8782 { (exit 1); exit 1; }; }
8783fi
8784
a8b2ad8d 8785{ echo "$as_me:$LINENO: checking which protocol to use" >&5
8786echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
b3076f16 8787
a8b2ad8d 8788# Check whether --with-protocol was given.
b3076f16 8789if test "${with_protocol+set}" = set; then
a8b2ad8d 8790 withval=$with_protocol;
b3076f16 8791else
8792 withval="p10"
a8b2ad8d 8793fi
8794
b3076f16 8795if test "x$withval" = "xp10" ; then
a8b2ad8d 8796 { echo "$as_me:$LINENO: result: P10" >&5
8797echo "${ECHO_T}P10" >&6; }
b3076f16 8798
8799cat >>confdefs.h <<\_ACEOF
8800#define WITH_PROTOCOL_P10 1
8801_ACEOF
8802
2f61d1d7 8803 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
0f6fe38c 8804 PROTO_FILES=proto-p10.c
5b1166fd 8805 x3_ircd="P10"
b3076f16 8806else
8807 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
8808echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
8809 { (exit 1); exit 1; }; }
8810fi
8811
1136f709 8812{ echo "$as_me:$LINENO: checking how to send mail" >&5
8813echo $ECHO_N "checking how to send mail... $ECHO_C" >&6; }
8814
8815# Check whether --with-mail was given.
8816if test "${with_mail+set}" = set; then
8817 withval=$with_mail;
8818else
8819 withval="sendmail"
8820fi
8821
8822if test -r "${srcdir}/src/mail-${withval}.c" ; then
8823 { echo "$as_me:$LINENO: result: $withval" >&5
8824echo "${ECHO_T}$withval" >&6; }
8825 MODULE_OBJS="$MODULE_OBJS mail-${withval}.\$(OBJEXT)"
8826else
8827 { { echo "$as_me:$LINENO: error: Unknown mail method $withval" >&5
8828echo "$as_me: error: Unknown mail method $withval" >&2;}
8829 { (exit 1); exit 1; }; }
8830fi
8831
8832{ echo "$as_me:$LINENO: checking I/O multiplexing backends" >&5
8833echo $ECHO_N "checking I/O multiplexing backends... $ECHO_C" >&6; }
8834IOMUXES=""
8835
8836if test "x$ac_cv_func_select" = xyes ; then
8837
8838cat >>confdefs.h <<\_ACEOF
8839#define WITH_IOSET_SELECT 1
8840_ACEOF
8841
8842 MODULE_OBJS="$MODULE_OBJS ioset-select.\$(OBJEXT)"
8843 IOMUXES="$IOMUXES select"
8844fi
8845
8846
8847# Check whether --with-epoll was given.
8848if test "${with_epoll+set}" = set; then
8849 withval=$with_epoll;
8850else
8851 withval="$ac_cv_func_epoll_create"
8852fi
8853
8854if test "x$withval" = xyes ; then
8855
8856cat >>confdefs.h <<\_ACEOF
8857#define WITH_IOSET_EPOLL 1
8858_ACEOF
8859
8860 MODULE_OBJS="$MODULE_OBJS ioset-epoll.\$(OBJEXT)"
8861 IOMUXES="$IOMUXES epoll"
8862fi
8863
8864
8865# Check whether --with-kevent was given.
8866if test "${with_kevent+set}" = set; then
8867 withval=$with_kevent;
8868else
8869 withval="$ac_cv_func_kevent"
8870fi
8871
8872if test "x$withval" = xyes ; then
8873
8874cat >>confdefs.h <<\_ACEOF
8875#define WITH_IOSET_KEVENT 1
8876_ACEOF
8877
8878 MODULE_OBJS="$MODULE_OBJS ioset-kevent.\$(OBJEXT)"
8879 IOMUXES="$IOMUXES kevent"
8880fi
8881
8882IOMUXES=`echo $IOMUXES | sed 's/^ +//'`
8883{ echo "$as_me:$LINENO: result: $IOMUXES" >&5
8884echo "${ECHO_T}$IOMUXES" >&6; }
8885if test "x$IOMUXES" = "x" ; then
8886 { { echo "$as_me:$LINENO: error: No supported I/O multiplexing backend found" >&5
8887echo "$as_me: error: No supported I/O multiplexing backend found" >&2;}
8888 { (exit 1); exit 1; }; }
8889else
8890 { echo "$as_me:$LINENO: result: $IOMUXES" >&5
8891echo "${ECHO_T}$IOMUXES" >&6; }
8892fi
8893
8da89711 8894
8895# Check whether --with-getopt was given.
8896if test "${with_getopt+set}" = set; then
8897 withval=$with_getopt; if test "$withval" = no; then
8898
8899cat >>confdefs.h <<\_ACEOF
8900#define IGNORE_GETOPT 1
8901_ACEOF
8902
8903fi
8904fi
8905
8906
8907{ echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
8908echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
8909# Check whether --enable-tokens was given.
8910if test "${enable_tokens+set}" = set; then
8911 enableval=$enable_tokens;
8912else
8913 enableval=yes
8914fi
8915
8916if test "z$enableval" = zno ; then
8917 { echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6; }
8919else
8920
8921cat >>confdefs.h <<\_ACEOF
8922#define ENABLE_TOKENS 1
8923_ACEOF
8924
8925 { echo "$as_me:$LINENO: result: yes" >&5
8926echo "${ECHO_T}yes" >&6; }
8927fi
8928
8929{ echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
8930echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
8931# Check whether --enable-debug was given.
8932if test "${enable_debug+set}" = set; then
8933 enableval=$enable_debug;
8934 CPPFLAGS="$CPPFLAGS"
e166c31b 8935 { echo "$as_me:$LINENO: result: yes" >&5
8936echo "${ECHO_T}yes" >&6; }
8da89711 8937 x3_debug="Enabled"
e166c31b 8938
8939else
8940
8da89711 8941 CPPFLAGS="$CPPFLAGS -DNDEBUG"
e166c31b 8942 { echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6; }
8da89711 8944 x3_debug="Disabled"
e166c31b 8945
8946fi
8947
8948
8da89711 8949if test -e src ; then
8950 if test ! -d src ; then
8951 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
8952echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
8953 { (exit 1); exit 1; }; }
8954 fi
8955else
8956 mkdir src
8957fi
8958{ echo "$as_me:$LINENO: checking for extra module files" >&5
8959echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
8960MODULE_DEFINES="src/modules-list.h"
8961echo > $MODULE_DEFINES
8962touch $MODULE_DEFINES
8963# Check whether --enable-modules was given.
8964if test "${enable_modules+set}" = set; then
8965 enableval=$enable_modules;
8966 OIFS="$IFS"
8967 IFS=','
8968 EXTRA_MODULE_OBJS=""
8969 module_list=""
8970 for module in $enableval ; do
8971 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
8972 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
8973 module_list="$module_list $module"
8974 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
8975 if test "x$module" = "xtrack" ; then
8976 TRACK="-D HAVE_TRACK"
e166c31b 8977
8978cat >>confdefs.h <<\_ACEOF
8da89711 8979#define HAVE_TRACK 1
e166c31b 8980_ACEOF
8981
8da89711 8982 fi
8983 if test "x$module" = "xhelpserv" ; then
8984 TRACK="-D HAVE_HELPSERV"
e166c31b 8985
8da89711 8986cat >>confdefs.h <<\_ACEOF
8987#define HAVE_HELPSERV 1
e166c31b 8988_ACEOF
e166c31b 8989
8da89711 8990 fi
8991 done
8992 IFS="$OIFS"
8993 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
8994 { echo "$as_me:$LINENO: result: $module_list" >&5
8995echo "${ECHO_T}$module_list" >&6; }
8996
e166c31b 8997else
e166c31b 8998
8da89711 8999 { echo "$as_me:$LINENO: result: none" >&5
9000echo "${ECHO_T}none" >&6; }
e166c31b 9001
e166c31b 9002fi
e166c31b 9003
e166c31b 9004
2f65da8f 9005# Check whether --enable-python was given.
9006if test "${enable_python+set}" = set; then
9007 enableval=$enable_python; python=$enableval
9008else
9009 python=yes
9010fi
9011
9012
9013
8da89711 9014MY_SUBDIRS=""
9015RX_INCLUDES=""
9016RX_LIBS=""
9017if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9018 MY_SUBDIRS="rx $MY_SUBDIRS"
9019 RX_INCLUDES="-I../rx"
9020 RX_LIBS="../rx/librx.a"
9021fi
9022MY_SUBDIRS="$MY_SUBDIRS src"
9023CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9024if test "z$USE_MAINTAINER_MODE" = zyes ; then
0f6fe38c 9025 CFLAGS="$CFLAGS -Werror"
e166c31b 9026fi
9027
9028
8da89711 9029tre_version="0.7.5"
9030withval=''
9031
9032# Check whether --with-tre was given.
9033if test "${with_tre+set}" = set; then
9034 withval=$with_tre;
9035fi
9036
9037if test "x$withval" != "x"; then
9038 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9039echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
39edf54a 9040 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
8da89711 9041 LIBS="$LIBS -L$withval/lib"
9042else
9043 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9044echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
39edf54a 9045 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
8da89711 9046 LIBS="$LIBS -L${HOME}/lib"
9047fi
9048if test "${ac_cv_header_tre_regex_h+set}" = set; then
9049 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9050echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9051if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053fi
8da89711 9054{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9055echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9056else
9057 # Is the header compilable?
8da89711 9058{ echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9059echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
e166c31b 9060cat >conftest.$ac_ext <<_ACEOF
9061/* confdefs.h. */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h. */
9066$ac_includes_default
8da89711 9067#include <tre/regex.h>
e166c31b 9068_ACEOF
9069rm -f conftest.$ac_objext
9070if { (ac_try="$ac_compile"
9071case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_compile") 2>conftest.er1
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9082 (exit $ac_status); } && {
9083 test -z "$ac_c_werror_flag" ||
9084 test ! -s conftest.err
9085 } && test -s conftest.$ac_objext; then
e166c31b 9086 ac_header_compiler=yes
9087else
9088 echo "$as_me: failed program was:" >&5
9089sed 's/^/| /' conftest.$ac_ext >&5
9090
9091 ac_header_compiler=no
9092fi
9093
9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9096echo "${ECHO_T}$ac_header_compiler" >&6; }
9097
9098# Is the header present?
8da89711 9099{ echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9100echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
e166c31b 9101cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h. */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h. */
8da89711 9107#include <tre/regex.h>
e166c31b 9108_ACEOF
9109if { (ac_try="$ac_cpp conftest.$ac_ext"
9110case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113esac
9114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9121 (exit $ac_status); } >/dev/null && {
9122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 }; then
e166c31b 9125 ac_header_preproc=yes
9126else
9127 echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_header_preproc=no
9131fi
9132
9133rm -f conftest.err conftest.$ac_ext
9134{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9135echo "${ECHO_T}$ac_header_preproc" >&6; }
9136
9137# So? What about this header?
9138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9139 yes:no: )
8da89711 9140 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9141echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9143echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
e166c31b 9144 ac_header_preproc=yes
9145 ;;
9146 no:yes:* )
8da89711 9147 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9148echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9150echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9152echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9154echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9156echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9158echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
e166c31b 9159 ( cat <<\_ASBOX
9160## -------------------------------------------------- ##
9161## Report this to evilnet-devel@lists.sourceforge.net ##
9162## -------------------------------------------------- ##
9163_ASBOX
9164 ) | sed "s/^/$as_me: WARNING: /" >&2
9165 ;;
9166esac
8da89711 9167{ echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9168echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9169if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171else
8da89711 9172 ac_cv_header_tre_regex_h=$ac_header_preproc
e166c31b 9173fi
8da89711 9174{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9175echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9176
9177fi
8da89711 9178if test $ac_cv_header_tre_regex_h = yes; then
9179 :
e166c31b 9180else
0bd0bef6 9181 { { 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 convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
9182echo "$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 convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
e166c31b 9183 { (exit 1); exit 1; }; }
9184fi
9185
e166c31b 9186
b3076f16 9187
8da89711 9188{ echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9189echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
9190if test "${ac_cv_lib_tre_regexec+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 9192else
8da89711 9193 ac_check_lib_save_LIBS=$LIBS
9194LIBS="-ltre $LIBS"
9195cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h. */
b3076f16 9197_ACEOF
8da89711 9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h. */
b3076f16 9201
8da89711 9202/* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9205#ifdef __cplusplus
9206extern "C"
9207#endif
9208char regexec ();
9209int
9210main ()
9211{
9212return regexec ();
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217rm -f conftest.$ac_objext conftest$ac_exeext
9218if { (ac_try="$ac_link"
9219case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9222esac
9223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_link") 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9230 (exit $ac_status); } && {
9231 test -z "$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9233 } && test -s conftest$ac_exeext &&
9234 $as_test_x conftest$ac_exeext; then
8da89711 9235 ac_cv_lib_tre_regexec=yes
b3076f16 9236else
8da89711 9237 echo "$as_me: failed program was:" >&5
9238sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9239
8da89711 9240 ac_cv_lib_tre_regexec=no
a8b2ad8d 9241fi
9242
0bd0bef6 9243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8da89711 9244 conftest$ac_exeext conftest.$ac_ext
9245LIBS=$ac_check_lib_save_LIBS
b3076f16 9246fi
8da89711 9247{ echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
9248echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
9249if test $ac_cv_lib_tre_regexec = yes; then
9250 cat >>confdefs.h <<_ACEOF
9251#define HAVE_LIBTRE 1
8de34abd 9252_ACEOF
9253
8da89711 9254 LIBS="-ltre $LIBS"
b3076f16 9255
9256else
0bd0bef6 9257 { { 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 convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
9258echo "$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 convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
8da89711 9259 { (exit 1); exit 1; }; }
b3076f16 9260fi
9261
35305a49 9262
2784452e 9263core_version="1.1"
35305a49 9264withval=''
9265
8da89711 9266# Check whether --with-coredumper was given.
9267if test "${with_coredumper+set}" = set; then
9268 withval=$with_coredumper;
a8b2ad8d 9269fi
35305a49 9270
35305a49 9271if test "x$withval" != "x"; then
8da89711 9272 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
9273echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
39edf54a 9274 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
0754f993 9275 LIBS="$LIBS -L$withval/lib"
35305a49 9276else
8da89711 9277 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
9278echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
39edf54a 9279 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
2784452e 9280 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
35305a49 9281fi
8da89711 9282if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9283 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9284echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9285if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9287fi
8da89711 9288{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9289echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
35305a49 9290else
9291 # Is the header compilable?
8da89711 9292{ echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
9293echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
35305a49 9294cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h. */
9300$ac_includes_default
8da89711 9301#include <google/coredumper.h>
35305a49 9302_ACEOF
9303rm -f conftest.$ac_objext
a8b2ad8d 9304if { (ac_try="$ac_compile"
9305case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308esac
9309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_compile") 2>conftest.er1
35305a49 9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9316 (exit $ac_status); } && {
9317 test -z "$ac_c_werror_flag" ||
9318 test ! -s conftest.err
9319 } && test -s conftest.$ac_objext; then
35305a49 9320 ac_header_compiler=yes
9321else
9322 echo "$as_me: failed program was:" >&5
9323sed 's/^/| /' conftest.$ac_ext >&5
9324
a8b2ad8d 9325 ac_header_compiler=no
35305a49 9326fi
a8b2ad8d 9327
9328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9330echo "${ECHO_T}$ac_header_compiler" >&6; }
35305a49 9331
9332# Is the header present?
8da89711 9333{ echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
9334echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
35305a49 9335cat >conftest.$ac_ext <<_ACEOF
9336/* confdefs.h. */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h. */
8da89711 9341#include <google/coredumper.h>
35305a49 9342_ACEOF
a8b2ad8d 9343if { (ac_try="$ac_cpp conftest.$ac_ext"
9344case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347esac
9348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35305a49 9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9355 (exit $ac_status); } >/dev/null && {
9356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9357 test ! -s conftest.err
9358 }; then
35305a49 9359 ac_header_preproc=yes
9360else
9361 echo "$as_me: failed program was:" >&5
9362sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ac_header_preproc=no
9365fi
a8b2ad8d 9366
35305a49 9367rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9368{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9369echo "${ECHO_T}$ac_header_preproc" >&6; }
35305a49 9370
9371# So? What about this header?
9372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9373 yes:no: )
8da89711 9374 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
9375echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
9377echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
35305a49 9378 ac_header_preproc=yes
9379 ;;
9380 no:yes:* )
8da89711 9381 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
9382echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
9384echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
9386echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
9388echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
9390echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
9392echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9393 ( cat <<\_ASBOX
35305a49 9394## -------------------------------------------------- ##
9395## Report this to evilnet-devel@lists.sourceforge.net ##
9396## -------------------------------------------------- ##
9397_ASBOX
a8b2ad8d 9398 ) | sed "s/^/$as_me: WARNING: /" >&2
35305a49 9399 ;;
9400esac
8da89711 9401{ echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9402echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9403if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405else
8da89711 9406 ac_cv_header_google_coredumper_h=$ac_header_preproc
9407fi
9408{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9409echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
9410
9411fi
9412if test $ac_cv_header_google_coredumper_h = yes; then
9413 :
9414else
0bd0bef6 9415 { 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 convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
9416echo "${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 convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
8da89711 9417fi
9418
9419
9420
9421{ echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
9422echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
9423if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425else
9426 ac_check_lib_save_LIBS=$LIBS
9427LIBS="-lcoredumper $LIBS"
9428cat >conftest.$ac_ext <<_ACEOF
9429/* confdefs.h. */
9430_ACEOF
9431cat confdefs.h >>conftest.$ac_ext
9432cat >>conftest.$ac_ext <<_ACEOF
9433/* end confdefs.h. */
9434
9435/* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9438#ifdef __cplusplus
9439extern "C"
9440#endif
9441char WriteCoreDump ();
9442int
9443main ()
9444{
9445return WriteCoreDump ();
9446 ;
9447 return 0;
9448}
9449_ACEOF
9450rm -f conftest.$ac_objext conftest$ac_exeext
9451if { (ac_try="$ac_link"
9452case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9455esac
9456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_link") 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9463 (exit $ac_status); } && {
9464 test -z "$ac_c_werror_flag" ||
9465 test ! -s conftest.err
9466 } && test -s conftest$ac_exeext &&
9467 $as_test_x conftest$ac_exeext; then
8da89711 9468 ac_cv_lib_coredumper_WriteCoreDump=yes
9469else
9470 echo "$as_me: failed program was:" >&5
9471sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 ac_cv_lib_coredumper_WriteCoreDump=no
35305a49 9474fi
35305a49 9475
0bd0bef6 9476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8da89711 9477 conftest$ac_exeext conftest.$ac_ext
9478LIBS=$ac_check_lib_save_LIBS
35305a49 9479fi
8da89711 9480{ echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
9481echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
9482if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
9483 cat >>confdefs.h <<_ACEOF
9484#define HAVE_LIBCOREDUMPER 1
9485_ACEOF
9486
9487 LIBS="-lcoredumper $LIBS"
9488
35305a49 9489else
0bd0bef6 9490 { 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 convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
9491echo "${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 convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
35305a49 9492fi
9493
9494
73d4cc91 9495withval=''
9496
9497# Check whether --with-ssl was given.
9498if test "${with_ssl+set}" = set; then
9499 withval=$with_ssl;
9500fi
9501
9502if test "x$withval" != "x"; then
9503 { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5
9504echo "${ECHO_T}Using include dir $withval to find openssl" >&6; }
9505 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9506 LIBS="$LIBS -L$withval/lib"
9507else
9508 { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5
9509echo "${ECHO_T}Looking for openssl in system " >&6; }
9510fi
9511
9512{ echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5
9513echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; }
9514if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516else
9517 ac_check_lib_save_LIBS=$LIBS
9518LIBS="-lssl $LIBS"
9519cat >conftest.$ac_ext <<_ACEOF
9520/* confdefs.h. */
9521_ACEOF
9522cat confdefs.h >>conftest.$ac_ext
9523cat >>conftest.$ac_ext <<_ACEOF
9524/* end confdefs.h. */
9525
9526/* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9529#ifdef __cplusplus
9530extern "C"
9531#endif
9532char BIO_new ();
9533int
9534main ()
9535{
9536return BIO_new ();
9537 ;
9538 return 0;
9539}
9540_ACEOF
9541rm -f conftest.$ac_objext conftest$ac_exeext
9542if { (ac_try="$ac_link"
9543case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_link") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9554 (exit $ac_status); } && {
9555 test -z "$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest$ac_exeext &&
9558 $as_test_x conftest$ac_exeext; then
73d4cc91 9559 ac_cv_lib_ssl_BIO_new=yes
9560else
9561 echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
9563
9564 ac_cv_lib_ssl_BIO_new=no
9565fi
9566
0bd0bef6 9567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73d4cc91 9568 conftest$ac_exeext conftest.$ac_ext
9569LIBS=$ac_check_lib_save_LIBS
9570fi
9571{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5
9572echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; }
9573if test $ac_cv_lib_ssl_BIO_new = yes; then
9574
9575LIBS="-lssl $LIBS"
9576
9577for ac_header in openssl/bio.h
9578do
9579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585fi
9586ac_res=`eval echo '${'$as_ac_Header'}'`
9587 { echo "$as_me:$LINENO: result: $ac_res" >&5
9588echo "${ECHO_T}$ac_res" >&6; }
9589else
9590 # Is the header compilable?
9591{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9593cat >conftest.$ac_ext <<_ACEOF
9594/* confdefs.h. */
9595_ACEOF
9596cat confdefs.h >>conftest.$ac_ext
9597cat >>conftest.$ac_ext <<_ACEOF
9598/* end confdefs.h. */
9599$ac_includes_default
9600#include <$ac_header>
9601_ACEOF
9602rm -f conftest.$ac_objext
9603if { (ac_try="$ac_compile"
9604case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607esac
9608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_compile") 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9615 (exit $ac_status); } && {
9616 test -z "$ac_c_werror_flag" ||
9617 test ! -s conftest.err
9618 } && test -s conftest.$ac_objext; then
73d4cc91 9619 ac_header_compiler=yes
9620else
9621 echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 ac_header_compiler=no
9625fi
9626
9627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9629echo "${ECHO_T}$ac_header_compiler" >&6; }
9630
9631# Is the header present?
9632{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9634cat >conftest.$ac_ext <<_ACEOF
9635/* confdefs.h. */
9636_ACEOF
9637cat confdefs.h >>conftest.$ac_ext
9638cat >>conftest.$ac_ext <<_ACEOF
9639/* end confdefs.h. */
9640#include <$ac_header>
9641_ACEOF
9642if { (ac_try="$ac_cpp conftest.$ac_ext"
9643case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9654 (exit $ac_status); } >/dev/null && {
9655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9656 test ! -s conftest.err
9657 }; then
73d4cc91 9658 ac_header_preproc=yes
9659else
9660 echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_header_preproc=no
9664fi
9665
9666rm -f conftest.err conftest.$ac_ext
9667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668echo "${ECHO_T}$ac_header_preproc" >&6; }
9669
9670# So? What about this header?
9671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9672 yes:no: )
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9677 ac_header_preproc=yes
9678 ;;
9679 no:yes:* )
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9692 ( cat <<\_ASBOX
9693## -------------------------------------------------- ##
9694## Report this to evilnet-devel@lists.sourceforge.net ##
9695## -------------------------------------------------- ##
9696_ASBOX
9697 ) | sed "s/^/$as_me: WARNING: /" >&2
9698 ;;
9699esac
9700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705 eval "$as_ac_Header=\$ac_header_preproc"
9706fi
9707ac_res=`eval echo '${'$as_ac_Header'}'`
9708 { echo "$as_me:$LINENO: result: $ac_res" >&5
9709echo "${ECHO_T}$ac_res" >&6; }
9710
9711fi
9712if test `eval echo '${'$as_ac_Header'}'` = yes; then
9713 cat >>confdefs.h <<_ACEOF
9714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9715_ACEOF
9716
9717
9718cat >>confdefs.h <<\_ACEOF
9719#define WITH_SSL 1
9720_ACEOF
9721
9722ssl_message="LDAP library: enabled"
9723
9724else
9725
9726if test "x$withval" != "x"; then
9727 { { echo "$as_me:$LINENO: error: ssl headers not found" >&5
9728echo "$as_me: error: ssl headers not found" >&2;}
9729 { (exit 1); exit 1; }; }
9730fi
9731
9732fi
9733
9734done
9735
9736
9737else
9738
9739if test "x$withval" != "x"; then
9740 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9741echo "$as_me: error: libldap not found or not valid" >&2;}
9742 { (exit 1); exit 1; }; }
9743fi
9744
9745
9746fi
9747
9748{ echo "$as_me:$LINENO: result: $LIBS" >&5
9749echo "${ECHO_T}$LIBS" >&6; }
9750
9751
8da89711 9752withval=''
35305a49 9753
8da89711 9754# Check whether --with-ldap was given.
9755if test "${with_ldap+set}" = set; then
9756 withval=$with_ldap;
9757fi
9758
9759if test "x$withval" != "x"; then
9760 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
9761echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
9762 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9763 LIBS="$LIBS -L$withval/lib"
9764else
9765 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
9766echo "${ECHO_T}Looking for ldap in system " >&6; }
9767fi
9768
39edf54a 9769{ echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
9770echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; }
9771if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
35305a49 9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774 ac_check_lib_save_LIBS=$LIBS
8da89711 9775LIBS="-lldap $LIBS"
35305a49 9776cat >conftest.$ac_ext <<_ACEOF
9777/* confdefs.h. */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h. */
9782
a8b2ad8d 9783/* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
35305a49 9786#ifdef __cplusplus
9787extern "C"
9788#endif
39edf54a 9789char ldap_simple_bind_s ();
35305a49 9790int
9791main ()
9792{
39edf54a 9793return ldap_simple_bind_s ();
35305a49 9794 ;
9795 return 0;
9796}
9797_ACEOF
9798rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9799if { (ac_try="$ac_link"
9800case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803esac
9804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_link") 2>conftest.er1
35305a49 9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9811 (exit $ac_status); } && {
9812 test -z "$ac_c_werror_flag" ||
9813 test ! -s conftest.err
9814 } && test -s conftest$ac_exeext &&
9815 $as_test_x conftest$ac_exeext; then
39edf54a 9816 ac_cv_lib_ldap_ldap_simple_bind_s=yes
5b1166fd 9817else
35305a49 9818 echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
39edf54a 9821 ac_cv_lib_ldap_ldap_simple_bind_s=no
35305a49 9822fi
a8b2ad8d 9823
0bd0bef6 9824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35305a49 9825 conftest$ac_exeext conftest.$ac_ext
9826LIBS=$ac_check_lib_save_LIBS
5b1166fd 9827fi
39edf54a 9828{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
9829echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
9830if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
b3076f16 9831
39edf54a 9832LIBS="-lldap $LIBS"
b3076f16 9833
8da89711 9834for ac_header in ldap.h
9835do
9836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842fi
8da89711 9843ac_res=`eval echo '${'$as_ac_Header'}'`
9844 { echo "$as_me:$LINENO: result: $ac_res" >&5
9845echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 9846else
9847 # Is the header compilable?
8da89711 9848{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9849echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a8b2ad8d 9850cat >conftest.$ac_ext <<_ACEOF
9851/* confdefs.h. */
9852_ACEOF
9853cat confdefs.h >>conftest.$ac_ext
9854cat >>conftest.$ac_ext <<_ACEOF
9855/* end confdefs.h. */
9856$ac_includes_default
8da89711 9857#include <$ac_header>
a8b2ad8d 9858_ACEOF
9859rm -f conftest.$ac_objext
9860if { (ac_try="$ac_compile"
9861case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864esac
9865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_compile") 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest.$ac_objext; then
a8b2ad8d 9876 ac_header_compiler=yes
9877else
9878 echo "$as_me: failed program was:" >&5
9879sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9880
a8b2ad8d 9881 ac_header_compiler=no
9882fi
b3076f16 9883
a8b2ad8d 9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 9887
a8b2ad8d 9888# Is the header present?
8da89711 9889{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a8b2ad8d 9891cat >conftest.$ac_ext <<_ACEOF
9892/* confdefs.h. */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h. */
8da89711 9897#include <$ac_header>
a8b2ad8d 9898_ACEOF
9899if { (ac_try="$ac_cpp conftest.$ac_ext"
9900case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9903esac
9904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9906 ac_status=$?
9907 grep -v '^ *+' conftest.er1 >conftest.err
9908 rm -f conftest.er1
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9911 (exit $ac_status); } >/dev/null && {
9912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9913 test ! -s conftest.err
9914 }; then
a8b2ad8d 9915 ac_header_preproc=yes
9916else
9917 echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9919
a8b2ad8d 9920 ac_header_preproc=no
9921fi
ec311f39 9922
a8b2ad8d 9923rm -f conftest.err conftest.$ac_ext
9924{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9926
a8b2ad8d 9927# So? What about this header?
9928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9929 yes:no: )
8da89711 9930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
a8b2ad8d 9934 ac_header_preproc=yes
9935 ;;
9936 no:yes:* )
8da89711 9937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9949 ( cat <<\_ASBOX
9950## -------------------------------------------------- ##
9951## Report this to evilnet-devel@lists.sourceforge.net ##
9952## -------------------------------------------------- ##
9953_ASBOX
9954 ) | sed "s/^/$as_me: WARNING: /" >&2
9955 ;;
9956esac
8da89711 9957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961else
8da89711 9962 eval "$as_ac_Header=\$ac_header_preproc"
a8b2ad8d 9963fi
8da89711 9964ac_res=`eval echo '${'$as_ac_Header'}'`
9965 { echo "$as_me:$LINENO: result: $ac_res" >&5
9966echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 9967
9968fi
8da89711 9969if test `eval echo '${'$as_ac_Header'}'` = yes; then
9970 cat >>confdefs.h <<_ACEOF
9971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9972_ACEOF
a8b2ad8d 9973
9974
8da89711 9975cat >>confdefs.h <<\_ACEOF
9976#define WITH_LDAP 1
a8b2ad8d 9977_ACEOF
a8b2ad8d 9978
8da89711 9979ldap_message="LDAP library: enabled"
9980
a8b2ad8d 9981else
a8b2ad8d 9982
db9a9a8a 9983if test "x$withval" != "x"; then
8da89711 9984 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
9985echo "$as_me: error: ldap.h not found" >&2;}
9986 { (exit 1); exit 1; }; }
a8b2ad8d 9987fi
9988
a8b2ad8d 9989fi
a8b2ad8d 9990
8da89711 9991done
9992
a8b2ad8d 9993
9994else
8da89711 9995
db9a9a8a 9996if test "x$withval" != "x"; then
8da89711 9997 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9998echo "$as_me: error: libldap not found or not valid" >&2;}
9999 { (exit 1); exit 1; }; }
10000fi
10001
10002
a8b2ad8d 10003fi
10004
2f65da8f 10005
10006
10007if test "$python" = yes; then
10008 # Extract the first word of "python2", so it can be a program name with args.
10009set dummy python2; ac_word=$2
10010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10012if test "${ac_cv_path_pythonpath+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015 case $pythonpath in
10016 [\\/]* | ?:[\\/]*)
10017 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
10018 ;;
10019 *)
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021for as_dir in $PATH
10022do
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
10028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 break 2
10030 fi
10031done
10032done
10033IFS=$as_save_IFS
10034
10035 ;;
10036esac
10037fi
10038pythonpath=$ac_cv_path_pythonpath
10039if test -n "$pythonpath"; then
10040 { echo "$as_me:$LINENO: result: $pythonpath" >&5
10041echo "${ECHO_T}$pythonpath" >&6; }
10042else
10043 { echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6; }
10045fi
10046
10047
10048 if test "_$pythonpath" = _ ; then
10049 # Extract the first word of "python", so it can be a program name with args.
10050set dummy python; ac_word=$2
10051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10053if test "${ac_cv_path_pythonpath+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056 case $pythonpath in
10057 [\\/]* | ?:[\\/]*)
10058 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
10059 ;;
10060 *)
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in $PATH
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10068 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
10069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10071 fi
10072done
10073done
10074IFS=$as_save_IFS
10075
10076 ;;
10077esac
10078fi
10079pythonpath=$ac_cv_path_pythonpath
10080if test -n "$pythonpath"; then
10081 { echo "$as_me:$LINENO: result: $pythonpath" >&5
10082echo "${ECHO_T}$pythonpath" >&6; }
10083else
10084 { echo "$as_me:$LINENO: result: no" >&5
10085echo "${ECHO_T}no" >&6; }
10086fi
10087
10088
10089 fi
10090 if test "_$pythonpath" = _ ; then
10091 python=no
10092 else
10093 { echo "$as_me:$LINENO: checking Python version" >&5
10094echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
10095 PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'`
10096 PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'`
10097 PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'`
10098 $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
10099 { echo "$as_me:$LINENO: result: $PY_VER" >&5
10100echo "${ECHO_T}$PY_VER" >&6; }
10101 if test "$?" != "1"; then
10102 { echo "$as_me:$LINENO: checking Python compile flags" >&5
10103echo $ECHO_N "checking Python compile flags... $ECHO_C" >&6; }
10104 PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
10105 PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
10106 if test -f $PY_INC/Python.h; then
10107
10108cat >>confdefs.h <<\_ACEOF
10109#define WITH_PYTHON 1
10110_ACEOF
10111
10112 PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil"
10113 PY_CFLAGS="-I$PY_INC"
10114 { echo "$as_me:$LINENO: result: ok" >&5
10115echo "${ECHO_T}ok" >&6; }
cbfd323c 10116 CFLAGS="$CFLAGS $PY_CFLAGS"
10117 LIBS="$LIBS $PY_LIBS"
2f65da8f 10118 else
10119 python=no
10120 { echo "$as_me:$LINENO: result: Can't find Python.h" >&5
10121echo "${ECHO_T}Can't find Python.h" >&6; }
10122 fi
10123 else
10124 echo "Python too old. Only 2.2 or above is supported."
10125 python=no
10126 fi
10127 fi
10128fi
10129
10130 if test "x$python" = "xyes"; then
10131 DO_PYTHON_TRUE=
10132 DO_PYTHON_FALSE='#'
10133else
10134 DO_PYTHON_TRUE='#'
10135 DO_PYTHON_FALSE=
10136fi
10137
10138
39edf54a 10139{ echo "$as_me:$LINENO: result: $LIBS" >&5
10140echo "${ECHO_T}$LIBS" >&6; }
a8b2ad8d 10141
10142
10143cat >>confdefs.h <<_ACEOF
10144#define CODENAME "${CODENAME}"
10145_ACEOF
10146
10147
10148
10149
10150
10151
2f65da8f 10152
10153
10154
a8b2ad8d 10155ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10156
10157cat >confcache <<\_ACEOF
10158# This file is a shell script that caches the results of configure
10159# tests run on this system so they can be shared between configure
10160# scripts and configure runs, see configure's option --config-cache.
10161# It is not useful on other systems. If it contains results you don't
10162# want to keep, you may remove or edit it.
10163#
b3076f16 10164# config.status only pays attention to the cache file if you give it
10165# the --recheck option to rerun configure.
10166#
10167# `ac_cv_env_foo' variables (set or unset) will be overridden when
10168# loading this file, other *unset* `ac_cv_foo' will be assigned the
10169# following values.
10170
10171_ACEOF
10172
10173# The following way of writing the cache mishandles newlines in values,
10174# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 10175# So, we kill variables containing newlines.
b3076f16 10176# Ultrix sh set writes to stderr and can't be redirected directly,
10177# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 10178(
10179 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10180 eval ac_val=\$$ac_var
10181 case $ac_val in #(
10182 *${as_nl}*)
10183 case $ac_var in #(
10184 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10185echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10186 esac
10187 case $ac_var in #(
10188 _ | IFS | as_nl) ;; #(
10189 *) $as_unset $ac_var ;;
10190 esac ;;
10191 esac
10192 done
10193
b3076f16 10194 (set) 2>&1 |
a8b2ad8d 10195 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10196 *${as_nl}ac_space=\ *)
b3076f16 10197 # `set' does not quote correctly, so add quotes (double-quote
10198 # substitution turns \\\\ into \\, and sed turns \\ into \).
10199 sed -n \
10200 "s/'/'\\\\''/g;
10201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 10202 ;; #(
b3076f16 10203 *)
10204 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 10205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 10206 ;;
a8b2ad8d 10207 esac |
10208 sort
10209) |
b3076f16 10210 sed '
a8b2ad8d 10211 /^ac_cv_env_/b end
b3076f16 10212 t clear
a8b2ad8d 10213 :clear
b3076f16 10214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10215 t end
a8b2ad8d 10216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10217 :end' >>confcache
10218if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10219 if test -w "$cache_file"; then
10220 test "x$cache_file" != "x/dev/null" &&
10221 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10222echo "$as_me: updating cache $cache_file" >&6;}
b3076f16 10223 cat confcache >$cache_file
10224 else
a8b2ad8d 10225 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10226echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 10227 fi
10228fi
10229rm -f confcache
10230
10231test "x$prefix" = xNONE && prefix=$ac_default_prefix
10232# Let make expand exec_prefix.
10233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10234
b3076f16 10235DEFS=-DHAVE_CONFIG_H
10236
10237ac_libobjs=
10238ac_ltlibobjs=
10239for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10240 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 10241 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10242 ac_i=`echo "$ac_i" | sed "$ac_script"`
10243 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10244 # will be set to the directory where LIBOBJS objects are built.
10245 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10246 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 10247done
10248LIBOBJS=$ac_libobjs
10249
10250LTLIBOBJS=$ac_ltlibobjs
10251
10252
ec1a68c8 10253if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10254 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10255Usually this means the macro was only invoked conditionally." >&5
10256echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10257Usually this means the macro was only invoked conditionally." >&2;}
10258 { (exit 1); exit 1; }; }
10259fi
10260if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10261 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10262Usually this means the macro was only invoked conditionally." >&5
10263echo "$as_me: error: conditional \"AMDEP\" was never defined.
10264Usually this means the macro was only invoked conditionally." >&2;}
10265 { (exit 1); exit 1; }; }
10266fi
10267if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10268 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10269Usually this means the macro was only invoked conditionally." >&5
10270echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10271Usually this means the macro was only invoked conditionally." >&2;}
10272 { (exit 1); exit 1; }; }
10273fi
10274if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10275 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10276Usually this means the macro was only invoked conditionally." >&5
10277echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10278Usually this means the macro was only invoked conditionally." >&2;}
10279 { (exit 1); exit 1; }; }
10280fi
2f65da8f 10281if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then
10282 { { echo "$as_me:$LINENO: error: conditional \"DO_PYTHON\" was never defined.
10283Usually this means the macro was only invoked conditionally." >&5
10284echo "$as_me: error: conditional \"DO_PYTHON\" was never defined.
10285Usually this means the macro was only invoked conditionally." >&2;}
10286 { (exit 1); exit 1; }; }
10287fi
b3076f16 10288
10289: ${CONFIG_STATUS=./config.status}
10290ac_clean_files_save=$ac_clean_files
10291ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10292{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10293echo "$as_me: creating $CONFIG_STATUS" >&6;}
10294cat >$CONFIG_STATUS <<_ACEOF
10295#! $SHELL
10296# Generated by $as_me.
10297# Run this file to recreate the current configuration.
10298# Compiler output produced by configure, useful for debugging
10299# configure, is in config.log if it exists.
10300
10301debug=false
10302ac_cs_recheck=false
10303ac_cs_silent=false
10304SHELL=\${CONFIG_SHELL-$SHELL}
10305_ACEOF
10306
10307cat >>$CONFIG_STATUS <<\_ACEOF
10308## --------------------- ##
10309## M4sh Initialization. ##
10310## --------------------- ##
10311
0bd0bef6 10312# Be more Bourne compatible
10313DUALCASE=1; export DUALCASE # for MKS sh
b3076f16 10314if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10315 emulate sh
10316 NULLCMD=:
10317 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10318 # is contrary to our usage. Disable this feature.
10319 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 10320 setopt NO_GLOB_SUBST
10321else
0bd0bef6 10322 case `(set -o) 2>/dev/null` in
10323 *posix*) set -o posix ;;
10324esac
10325
b3076f16 10326fi
0bd0bef6 10327
10328
b3076f16 10329
a8b2ad8d 10330
10331# PATH needs CR
10332# Avoid depending upon Character Ranges.
10333as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10334as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10335as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10336as_cr_digits='0123456789'
10337as_cr_alnum=$as_cr_Letters$as_cr_digits
10338
10339# The user is always right.
10340if test "${PATH_SEPARATOR+set}" != set; then
10341 echo "#! /bin/sh" >conf$$.sh
10342 echo "exit 0" >>conf$$.sh
10343 chmod +x conf$$.sh
10344 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10345 PATH_SEPARATOR=';'
10346 else
10347 PATH_SEPARATOR=:
10348 fi
10349 rm -f conf$$.sh
10350fi
10351
b3076f16 10352# Support unset when possible.
10353if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10354 as_unset=unset
10355else
10356 as_unset=false
10357fi
10358
10359
a8b2ad8d 10360# IFS
10361# We need space, tab and new line, in precisely that order. Quoting is
10362# there to prevent editors from complaining about space-tab.
10363# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10364# splitting by setting IFS to empty value.)
10365as_nl='
10366'
10367IFS=" "" $as_nl"
10368
10369# Find who we are. Look in the path if we contain no directory separator.
10370case $0 in
10371 *[\\/]* ) as_myself=$0 ;;
10372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10378done
10379IFS=$as_save_IFS
10380
10381 ;;
10382esac
10383# We did not find ourselves, most probably we were run as `sh COMMAND'
10384# in which case we are not to be found in the path.
10385if test "x$as_myself" = x; then
10386 as_myself=$0
10387fi
10388if test ! -f "$as_myself"; then
10389 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10390 { (exit 1); exit 1; }
10391fi
10392
b3076f16 10393# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 10394for as_var in ENV MAIL MAILPATH
10395do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10396done
b3076f16 10397PS1='$ '
10398PS2='> '
10399PS4='+ '
10400
10401# NLS nuisances.
10402for as_var in \
10403 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10404 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10405 LC_TELEPHONE LC_TIME
10406do
10407 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10408 eval $as_var=C; export $as_var
10409 else
a8b2ad8d 10410 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 10411 fi
10412done
10413
10414# Required to use basename.
a8b2ad8d 10415if expr a : '\(a\)' >/dev/null 2>&1 &&
10416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10417 as_expr=expr
10418else
10419 as_expr=false
10420fi
10421
a8b2ad8d 10422if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 10423 as_basename=basename
10424else
10425 as_basename=false
10426fi
10427
10428
10429# Name of the executable.
a8b2ad8d 10430as_me=`$as_basename -- "$0" ||
b3076f16 10431$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10432 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 10433 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 10434echo X/"$0" |
a8b2ad8d 10435 sed '/^.*\/\([^/][^/]*\)\/*$/{
10436 s//\1/
10437 q
10438 }
10439 /^X\/\(\/\/\)$/{
10440 s//\1/
10441 q
10442 }
10443 /^X\/\(\/\).*/{
10444 s//\1/
10445 q
10446 }
10447 s/.*/./; q'`
b3076f16 10448
a8b2ad8d 10449# CDPATH.
10450$as_unset CDPATH
b3076f16 10451
10452
b3076f16 10453
b3076f16 10454 as_lineno_1=$LINENO
10455 as_lineno_2=$LINENO
b3076f16 10456 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 10457 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 10458
10459 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10460 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 10461 # line-number line after each line using $LINENO; the second 'sed'
10462 # does the real work. The second script uses 'N' to pair each
10463 # line-number line with the line containing $LINENO, and appends
10464 # trailing '-' during substitution so that $LINENO is not a special
10465 # case at line end.
b3076f16 10466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 10467 # scripts with optimization help from Paolo Bonzini. Blame Lee
10468 # E. McMahon (1931-1989) for sed's syntax. :-)
10469 sed -n '
10470 p
10471 /[$]LINENO/=
10472 ' <$as_myself |
b3076f16 10473 sed '
a8b2ad8d 10474 s/[$]LINENO.*/&-/
10475 t lineno
10476 b
10477 :lineno
b3076f16 10478 N
a8b2ad8d 10479 :loop
10480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 10481 t loop
a8b2ad8d 10482 s/-\n.*//
b3076f16 10483 ' >$as_me.lineno &&
a8b2ad8d 10484 chmod +x "$as_me.lineno" ||
10485 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b3076f16 10486 { (exit 1); exit 1; }; }
10487
10488 # Don't try to exec as it changes $[0], causing all sort of problems
10489 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 10490 # original and so on. Autoconf is especially sensitive to this).
10491 . "./$as_me.lineno"
b3076f16 10492 # Exit status is that of the last command.
10493 exit
10494}
10495
10496
a8b2ad8d 10497if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10498 as_dirname=dirname
10499else
10500 as_dirname=false
10501fi
10502
10503ECHO_C= ECHO_N= ECHO_T=
10504case `echo -n x` in
10505-n*)
10506 case `echo 'x\c'` in
10507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10508 *) ECHO_C='\c';;
10509 esac;;
10510*)
10511 ECHO_N='-n';;
b3076f16 10512esac
10513
a8b2ad8d 10514if expr a : '\(a\)' >/dev/null 2>&1 &&
10515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10516 as_expr=expr
10517else
10518 as_expr=false
10519fi
10520
10521rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 10522if test -d conf$$.dir; then
10523 rm -f conf$$.dir/conf$$.file
10524else
10525 rm -f conf$$.dir
10526 mkdir conf$$.dir
10527fi
b3076f16 10528echo >conf$$.file
10529if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 10530 as_ln_s='ln -s'
10531 # ... but there are two gotchas:
10532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10534 # In both cases, we have to default to `cp -p'.
10535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 10536 as_ln_s='cp -p'
b3076f16 10537elif ln conf$$.file conf$$ 2>/dev/null; then
10538 as_ln_s=ln
10539else
10540 as_ln_s='cp -p'
10541fi
a8b2ad8d 10542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10543rmdir conf$$.dir 2>/dev/null
b3076f16 10544
10545if mkdir -p . 2>/dev/null; then
10546 as_mkdir_p=:
10547else
10548 test -d ./-p && rmdir ./-p
10549 as_mkdir_p=false
10550fi
10551
0bd0bef6 10552if test -x / >/dev/null 2>&1; then
10553 as_test_x='test -x'
a8b2ad8d 10554else
0bd0bef6 10555 if ls -dL / >/dev/null 2>&1; then
10556 as_ls_L_option=L
10557 else
10558 as_ls_L_option=
10559 fi
10560 as_test_x='
10561 eval sh -c '\''
10562 if test -d "$1"; then
10563 test -d "$1/.";
10564 else
10565 case $1 in
10566 -*)set "./$1";;
10567 esac;
10568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10569 ???[sx]*):;;*)false;;esac;fi
10570 '\'' sh
10571 '
a8b2ad8d 10572fi
0bd0bef6 10573as_executable_p=$as_test_x
b3076f16 10574
10575# Sed expression to map a string onto a valid CPP name.
10576as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10577
10578# Sed expression to map a string onto a valid variable name.
10579as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10580
10581
b3076f16 10582exec 6>&1
10583
a8b2ad8d 10584# Save the log message, to keep $[0] and so on meaningful, and to
b3076f16 10585# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 10586# values after options handling.
10587ac_log="
1136f709 10588This file was extended by X3 $as_me 1.7, which was
0bd0bef6 10589generated by GNU Autoconf 2.61. Invocation command line was
b3076f16 10590
10591 CONFIG_FILES = $CONFIG_FILES
10592 CONFIG_HEADERS = $CONFIG_HEADERS
10593 CONFIG_LINKS = $CONFIG_LINKS
10594 CONFIG_COMMANDS = $CONFIG_COMMANDS
10595 $ $0 $@
10596
a8b2ad8d 10597on `(hostname || uname -n) 2>/dev/null | sed 1q`
10598"
10599
b3076f16 10600_ACEOF
10601
a8b2ad8d 10602cat >>$CONFIG_STATUS <<_ACEOF
b3076f16 10603# Files that config.status was made for.
a8b2ad8d 10604config_files="$ac_config_files"
10605config_headers="$ac_config_headers"
10606config_commands="$ac_config_commands"
b3076f16 10607
a8b2ad8d 10608_ACEOF
b3076f16 10609
10610cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 10611ac_cs_usage="\
10612\`$as_me' instantiates files from templates according to the
10613current configuration.
10614
10615Usage: $0 [OPTIONS] [FILE]...
10616
10617 -h, --help print this help, then exit
0bd0bef6 10618 -V, --version print version number and configuration settings, then exit
b3076f16 10619 -q, --quiet do not print progress messages
10620 -d, --debug don't remove temporary files
10621 --recheck update $as_me by reconfiguring in the same conditions
10622 --file=FILE[:TEMPLATE]
10623 instantiate the configuration file FILE
10624 --header=FILE[:TEMPLATE]
10625 instantiate the configuration header FILE
10626
10627Configuration files:
10628$config_files
10629
10630Configuration headers:
10631$config_headers
10632
ec1a68c8 10633Configuration commands:
10634$config_commands
10635
b3076f16 10636Report bugs to <bug-autoconf@gnu.org>."
b3076f16 10637
a8b2ad8d 10638_ACEOF
b3076f16 10639cat >>$CONFIG_STATUS <<_ACEOF
10640ac_cs_version="\\
1136f709 10641X3 config.status 1.7
0bd0bef6 10642configured by $0, generated by GNU Autoconf 2.61,
a8b2ad8d 10643 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 10644
a8b2ad8d 10645Copyright (C) 2006 Free Software Foundation, Inc.
b3076f16 10646This config.status script is free software; the Free Software Foundation
10647gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 10648
10649ac_pwd='$ac_pwd'
10650srcdir='$srcdir'
10651INSTALL='$INSTALL'
2f65da8f 10652MKDIR_P='$MKDIR_P'
b3076f16 10653_ACEOF
10654
10655cat >>$CONFIG_STATUS <<\_ACEOF
10656# If no file are specified by the user, then we need to provide default
10657# value. By we need to know if files were specified by the user.
10658ac_need_defaults=:
10659while test $# != 0
10660do
10661 case $1 in
10662 --*=*)
a8b2ad8d 10663 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10664 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 10665 ac_shift=:
10666 ;;
a8b2ad8d 10667 *)
b3076f16 10668 ac_option=$1
10669 ac_optarg=$2
10670 ac_shift=shift
10671 ;;
b3076f16 10672 esac
10673
10674 case $ac_option in
10675 # Handling of the options.
b3076f16 10676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10677 ac_cs_recheck=: ;;
a8b2ad8d 10678 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10679 echo "$ac_cs_version"; exit ;;
10680 --debug | --debu | --deb | --de | --d | -d )
b3076f16 10681 debug=: ;;
10682 --file | --fil | --fi | --f )
10683 $ac_shift
10684 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10685 ac_need_defaults=false;;
10686 --header | --heade | --head | --hea )
10687 $ac_shift
10688 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10689 ac_need_defaults=false;;
a8b2ad8d 10690 --he | --h)
10691 # Conflict between --help and --header
10692 { echo "$as_me: error: ambiguous option: $1
10693Try \`$0 --help' for more information." >&2
10694 { (exit 1); exit 1; }; };;
10695 --help | --hel | -h )
10696 echo "$ac_cs_usage"; exit ;;
b3076f16 10697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10698 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10699 ac_cs_silent=: ;;
10700
10701 # This is an error.
a8b2ad8d 10702 -*) { echo "$as_me: error: unrecognized option: $1
10703Try \`$0 --help' for more information." >&2
b3076f16 10704 { (exit 1); exit 1; }; } ;;
10705
a8b2ad8d 10706 *) ac_config_targets="$ac_config_targets $1"
10707 ac_need_defaults=false ;;
b3076f16 10708
10709 esac
10710 shift
10711done
10712
10713ac_configure_extra_args=
10714
10715if $ac_cs_silent; then
10716 exec 6>/dev/null
10717 ac_configure_extra_args="$ac_configure_extra_args --silent"
10718fi
10719
10720_ACEOF
10721cat >>$CONFIG_STATUS <<_ACEOF
10722if \$ac_cs_recheck; then
a8b2ad8d 10723 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10724 CONFIG_SHELL=$SHELL
10725 export CONFIG_SHELL
10726 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b3076f16 10727fi
10728
10729_ACEOF
a8b2ad8d 10730cat >>$CONFIG_STATUS <<\_ACEOF
10731exec 5>>config.log
10732{
10733 echo
10734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10735## Running $as_me. ##
10736_ASBOX
10737 echo "$ac_log"
10738} >&5
b3076f16 10739
a8b2ad8d 10740_ACEOF
ec1a68c8 10741cat >>$CONFIG_STATUS <<_ACEOF
10742#
a8b2ad8d 10743# INIT-COMMANDS
ec1a68c8 10744#
ec1a68c8 10745AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10746
10747_ACEOF
b3076f16 10748
b3076f16 10749cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 10750
10751# Handling of arguments.
b3076f16 10752for ac_config_target in $ac_config_targets
10753do
a8b2ad8d 10754 case $ac_config_target in
10755 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10756 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10758 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
10759 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10760
b3076f16 10761 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10762echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10763 { (exit 1); exit 1; }; };;
10764 esac
10765done
10766
a8b2ad8d 10767
b3076f16 10768# If the user did not use the arguments to specify the items to instantiate,
10769# then the envvar interface is used. Set only those that are not.
10770# We use the long form for the default assignment because of an extremely
10771# bizarre bug on SunOS 4.1.3.
10772if $ac_need_defaults; then
10773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 10775 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 10776fi
10777
10778# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 10779# simply because there is no reason against having it here, and in addition,
b3076f16 10780# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 10781# Hook for its removal unless debugging.
10782# Note that there is a small window in which the directory will not be cleaned:
10783# after its creation but before its name has been assigned to `$tmp'.
b3076f16 10784$debug ||
10785{
a8b2ad8d 10786 tmp=
10787 trap 'exit_status=$?
10788 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10789' 0
b3076f16 10790 trap '{ (exit 1); exit 1; }' 1 2 13 15
10791}
b3076f16 10792# Create a (secure) tmp directory for tmp files.
10793
10794{
a8b2ad8d 10795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16 10796 test -n "$tmp" && test -d "$tmp"
10797} ||
10798{
a8b2ad8d 10799 tmp=./conf$$-$RANDOM
10800 (umask 077 && mkdir "$tmp")
b3076f16 10801} ||
10802{
10803 echo "$me: cannot create a temporary directory in ." >&2
10804 { (exit 1); exit 1; }
10805}
10806
b3076f16 10807#
a8b2ad8d 10808# Set up the sed scripts for CONFIG_FILES section.
b3076f16 10809#
10810
10811# No need to generate the scripts if there are no CONFIG_FILES.
10812# This happens for instance when ./config.status config.h
a8b2ad8d 10813if test -n "$CONFIG_FILES"; then
10814
10815_ACEOF
10816
10817
10818
10819ac_delim='%!_!# '
10820for ac_last_try in false false false false false :; do
10821 cat >conf$$subs.sed <<_ACEOF
10822SHELL!$SHELL$ac_delim
10823PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10824PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10825PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10826PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10827PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10828PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10829exec_prefix!$exec_prefix$ac_delim
10830prefix!$prefix$ac_delim
10831program_transform_name!$program_transform_name$ac_delim
10832bindir!$bindir$ac_delim
10833sbindir!$sbindir$ac_delim
10834libexecdir!$libexecdir$ac_delim
10835datarootdir!$datarootdir$ac_delim
10836datadir!$datadir$ac_delim
10837sysconfdir!$sysconfdir$ac_delim
10838sharedstatedir!$sharedstatedir$ac_delim
10839localstatedir!$localstatedir$ac_delim
10840includedir!$includedir$ac_delim
10841oldincludedir!$oldincludedir$ac_delim
10842docdir!$docdir$ac_delim
10843infodir!$infodir$ac_delim
10844htmldir!$htmldir$ac_delim
10845dvidir!$dvidir$ac_delim
10846pdfdir!$pdfdir$ac_delim
10847psdir!$psdir$ac_delim
10848libdir!$libdir$ac_delim
10849localedir!$localedir$ac_delim
10850mandir!$mandir$ac_delim
10851DEFS!$DEFS$ac_delim
10852ECHO_C!$ECHO_C$ac_delim
10853ECHO_N!$ECHO_N$ac_delim
10854ECHO_T!$ECHO_T$ac_delim
10855LIBS!$LIBS$ac_delim
10856build_alias!$build_alias$ac_delim
10857host_alias!$host_alias$ac_delim
10858target_alias!$target_alias$ac_delim
10859build!$build$ac_delim
10860build_cpu!$build_cpu$ac_delim
10861build_vendor!$build_vendor$ac_delim
10862build_os!$build_os$ac_delim
10863host!$host$ac_delim
10864host_cpu!$host_cpu$ac_delim
10865host_vendor!$host_vendor$ac_delim
10866host_os!$host_os$ac_delim
10867target!$target$ac_delim
10868target_cpu!$target_cpu$ac_delim
10869target_vendor!$target_vendor$ac_delim
10870target_os!$target_os$ac_delim
10871INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10872INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10873INSTALL_DATA!$INSTALL_DATA$ac_delim
2f65da8f 10874am__isrc!$am__isrc$ac_delim
a8b2ad8d 10875CYGPATH_W!$CYGPATH_W$ac_delim
10876PACKAGE!$PACKAGE$ac_delim
10877VERSION!$VERSION$ac_delim
10878ACLOCAL!$ACLOCAL$ac_delim
10879AUTOCONF!$AUTOCONF$ac_delim
10880AUTOMAKE!$AUTOMAKE$ac_delim
10881AUTOHEADER!$AUTOHEADER$ac_delim
10882MAKEINFO!$MAKEINFO$ac_delim
10883install_sh!$install_sh$ac_delim
10884STRIP!$STRIP$ac_delim
10885INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10886mkdir_p!$mkdir_p$ac_delim
10887AWK!$AWK$ac_delim
10888SET_MAKE!$SET_MAKE$ac_delim
10889am__leading_dot!$am__leading_dot$ac_delim
10890AMTAR!$AMTAR$ac_delim
10891am__tar!$am__tar$ac_delim
10892am__untar!$am__untar$ac_delim
10893MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10894MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10895MAINT!$MAINT$ac_delim
10896CC!$CC$ac_delim
10897CFLAGS!$CFLAGS$ac_delim
10898LDFLAGS!$LDFLAGS$ac_delim
10899CPPFLAGS!$CPPFLAGS$ac_delim
10900ac_ct_CC!$ac_ct_CC$ac_delim
10901EXEEXT!$EXEEXT$ac_delim
10902OBJEXT!$OBJEXT$ac_delim
10903DEPDIR!$DEPDIR$ac_delim
10904am__include!$am__include$ac_delim
10905am__quote!$am__quote$ac_delim
10906AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10907AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10908AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10909CCDEPMODE!$CCDEPMODE$ac_delim
10910am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10911am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
07559983 10912CP!$CP$ac_delim
a8b2ad8d 10913RANLIB!$RANLIB$ac_delim
0f6fe38c 10914LN_S!$LN_S$ac_delim
10915CPP!$CPP$ac_delim
a8b2ad8d 10916GREP!$GREP$ac_delim
10917EGREP!$EGREP$ac_delim
0f6fe38c 10918MAKER!$MAKER$ac_delim
a8b2ad8d 10919_ACEOF
10920
10921 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10922 break
10923 elif $ac_last_try; then
10924 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10925echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10926 { (exit 1); exit 1; }; }
10927 else
10928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b3076f16 10929 fi
a8b2ad8d 10930done
b3076f16 10931
a8b2ad8d 10932ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10933if test -n "$ac_eof"; then
10934 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10935 ac_eof=`expr $ac_eof + 1`
10936fi
10937
10938cat >>$CONFIG_STATUS <<_ACEOF
10939cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10940/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b3076f16 10941_ACEOF
a8b2ad8d 10942sed '
10943s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10944s/^/s,@/; s/!/@,|#_!!_#|/
10945:n
10946t n
10947s/'"$ac_delim"'$/,g/; t
10948s/$/\\/; p
10949N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10950' >>$CONFIG_STATUS <conf$$subs.sed
10951rm -f conf$$subs.sed
10952cat >>$CONFIG_STATUS <<_ACEOF
10953CEOF$ac_eof
10954_ACEOF
10955
10956
10957ac_delim='%!_!# '
10958for ac_last_try in false false false false false :; do
10959 cat >conf$$subs.sed <<_ACEOF
07559983 10960ALLOCA!$ALLOCA$ac_delim
2f65da8f 10961pythonpath!$pythonpath$ac_delim
10962DO_PYTHON_TRUE!$DO_PYTHON_TRUE$ac_delim
10963DO_PYTHON_FALSE!$DO_PYTHON_FALSE$ac_delim
10964MODULE_OBJS!$MODULE_OBJS$ac_delim
a8b2ad8d 10965MY_SUBDIRS!$MY_SUBDIRS$ac_delim
10966RX_INCLUDES!$RX_INCLUDES$ac_delim
10967RX_LIBS!$RX_LIBS$ac_delim
10968TRACK!$TRACK$ac_delim
2f65da8f 10969PY_CFLAGS!$PY_CFLAGS$ac_delim
10970PY_LIBS!$PY_LIBS$ac_delim
a8b2ad8d 10971LIBOBJS!$LIBOBJS$ac_delim
10972LTLIBOBJS!$LTLIBOBJS$ac_delim
10973_ACEOF
10974
07559983 10975 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
a8b2ad8d 10976 break
10977 elif $ac_last_try; then
10978 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10979echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10980 { (exit 1); exit 1; }; }
10981 else
10982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10983 fi
10984done
10985
10986ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10987if test -n "$ac_eof"; then
10988 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10989 ac_eof=`expr $ac_eof + 1`
10990fi
10991
10992cat >>$CONFIG_STATUS <<_ACEOF
10993cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10994/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10995_ACEOF
10996sed '
10997s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10998s/^/s,@/; s/!/@,|#_!!_#|/
10999:n
11000t n
11001s/'"$ac_delim"'$/,g/; t
11002s/$/\\/; p
11003N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11004' >>$CONFIG_STATUS <conf$$subs.sed
11005rm -f conf$$subs.sed
11006cat >>$CONFIG_STATUS <<_ACEOF
11007:end
11008s/|#_!!_#|//g
11009CEOF$ac_eof
11010_ACEOF
11011
11012
11013# VPATH may cause trouble with some makes, so we remove $(srcdir),
11014# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11015# trailing colons and then remove the whole line if VPATH becomes empty
11016# (actually we leave an empty line to preserve line numbers).
11017if test "x$srcdir" = x.; then
11018 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11019s/:*\$(srcdir):*/:/
11020s/:*\${srcdir}:*/:/
11021s/:*@srcdir@:*/:/
11022s/^\([^=]*=[ ]*\):*/\1/
11023s/:*$//
11024s/^[^=]*=[ ]*$//
11025}'
11026fi
11027
b3076f16 11028cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 11029fi # test -n "$CONFIG_FILES"
11030
11031
11032for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11033do
11034 case $ac_tag in
11035 :[FHLC]) ac_mode=$ac_tag; continue;;
11036 esac
11037 case $ac_mode$ac_tag in
11038 :[FHL]*:*);;
11039 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11040echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11041 { (exit 1); exit 1; }; };;
11042 :[FH]-) ac_tag=-:-;;
11043 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11044 esac
11045 ac_save_IFS=$IFS
11046 IFS=:
11047 set x $ac_tag
11048 IFS=$ac_save_IFS
11049 shift
11050 ac_file=$1
11051 shift
11052
11053 case $ac_mode in
11054 :L) ac_source=$1;;
11055 :[FH])
11056 ac_file_inputs=
11057 for ac_f
11058 do
11059 case $ac_f in
11060 -) ac_f="$tmp/stdin";;
11061 *) # Look for the file first in the build tree, then in the source tree
11062 # (if the path is not absolute). The absolute path cannot be DOS-style,
11063 # because $ac_f cannot contain `:'.
11064 test -f "$ac_f" ||
11065 case $ac_f in
11066 [\\/$]*) false;;
11067 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11068 esac ||
11069 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11070echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11071 { (exit 1); exit 1; }; };;
11072 esac
11073 ac_file_inputs="$ac_file_inputs $ac_f"
11074 done
11075
11076 # Let's still pretend it is `configure' which instantiates (i.e., don't
11077 # use $as_me), people would be surprised to read:
11078 # /* config.h. Generated by config.status. */
11079 configure_input="Generated from "`IFS=:
11080 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11081 if test x"$ac_file" != x-; then
11082 configure_input="$ac_file. $configure_input"
11083 { echo "$as_me:$LINENO: creating $ac_file" >&5
11084echo "$as_me: creating $ac_file" >&6;}
11085 fi
11086
11087 case $ac_tag in
11088 *:-:* | *:-) cat >"$tmp/stdin";;
11089 esac
11090 ;;
b3076f16 11091 esac
11092
a8b2ad8d 11093 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 11094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11095 X"$ac_file" : 'X\(//\)[^/]' \| \
11096 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 11097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11098echo X"$ac_file" |
a8b2ad8d 11099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11100 s//\1/
11101 q
11102 }
11103 /^X\(\/\/\)[^/].*/{
11104 s//\1/
11105 q
11106 }
11107 /^X\(\/\/\)$/{
11108 s//\1/
11109 q
11110 }
11111 /^X\(\/\).*/{
11112 s//\1/
11113 q
11114 }
11115 s/.*/./; q'`
11116 { as_dir="$ac_dir"
11117 case $as_dir in #(
11118 -*) as_dir=./$as_dir;;
11119 esac
11120 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b3076f16 11121 as_dirs=
a8b2ad8d 11122 while :; do
11123 case $as_dir in #(
11124 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11125 *) as_qdir=$as_dir;;
11126 esac
11127 as_dirs="'$as_qdir' $as_dirs"
11128 as_dir=`$as_dirname -- "$as_dir" ||
b3076f16 11129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11130 X"$as_dir" : 'X\(//\)[^/]' \| \
11131 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11133echo X"$as_dir" |
a8b2ad8d 11134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11135 s//\1/
11136 q
11137 }
11138 /^X\(\/\/\)[^/].*/{
11139 s//\1/
11140 q
11141 }
11142 /^X\(\/\/\)$/{
11143 s//\1/
11144 q
11145 }
11146 /^X\(\/\).*/{
11147 s//\1/
11148 q
11149 }
11150 s/.*/./; q'`
11151 test -d "$as_dir" && break
b3076f16 11152 done
a8b2ad8d 11153 test -z "$as_dirs" || eval "mkdir $as_dirs"
11154 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11155echo "$as_me: error: cannot create directory $as_dir" >&2;}
b3076f16 11156 { (exit 1); exit 1; }; }; }
b3076f16 11157 ac_builddir=.
11158
a8b2ad8d 11159case "$ac_dir" in
11160.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11161*)
b3076f16 11162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 11163 # A ".." for each directory in $ac_dir_suffix.
11164 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11165 case $ac_top_builddir_sub in
11166 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11167 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11168 esac ;;
11169esac
11170ac_abs_top_builddir=$ac_pwd
11171ac_abs_builddir=$ac_pwd$ac_dir_suffix
11172# for backward compatibility:
11173ac_top_builddir=$ac_top_build_prefix
b3076f16 11174
11175case $srcdir in
a8b2ad8d 11176 .) # We are building in place.
b3076f16 11177 ac_srcdir=.
a8b2ad8d 11178 ac_top_srcdir=$ac_top_builddir_sub
11179 ac_abs_top_srcdir=$ac_pwd ;;
11180 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 11181 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 11182 ac_top_srcdir=$srcdir
11183 ac_abs_top_srcdir=$srcdir ;;
11184 *) # Relative name.
11185 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11186 ac_top_srcdir=$ac_top_build_prefix$srcdir
11187 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 11188esac
a8b2ad8d 11189ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 11190
b3076f16 11191
a8b2ad8d 11192 case $ac_mode in
11193 :F)
11194 #
11195 # CONFIG_FILE
11196 #
b3076f16 11197
11198 case $INSTALL in
11199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 11200 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 11201 esac
2f65da8f 11202 ac_MKDIR_P=$MKDIR_P
11203 case $MKDIR_P in
11204 [\\/$]* | ?:[\\/]* ) ;;
11205 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11206 esac
a8b2ad8d 11207_ACEOF
b3076f16 11208
a8b2ad8d 11209cat >>$CONFIG_STATUS <<\_ACEOF
11210# If the template does not know about datarootdir, expand it.
11211# FIXME: This hack should be removed a few years after 2.60.
11212ac_datarootdir_hack=; ac_datarootdir_seen=
b8cb2a14 11213
a8b2ad8d 11214case `sed -n '/datarootdir/ {
11215 p
11216 q
11217}
11218/@datadir@/p
11219/@docdir@/p
11220/@infodir@/p
11221/@localedir@/p
11222/@mandir@/p
11223' $ac_file_inputs` in
11224*datarootdir*) ac_datarootdir_seen=yes;;
11225*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11226 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11227echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11228_ACEOF
11229cat >>$CONFIG_STATUS <<_ACEOF
11230 ac_datarootdir_hack='
11231 s&@datadir@&$datadir&g
11232 s&@docdir@&$docdir&g
11233 s&@infodir@&$infodir&g
11234 s&@localedir@&$localedir&g
11235 s&@mandir@&$mandir&g
11236 s&\\\${datarootdir}&$datarootdir&g' ;;
11237esac
b3076f16 11238_ACEOF
a8b2ad8d 11239
11240# Neutralize VPATH when `$srcdir' = `.'.
11241# Shell code in configure.ac might set extrasub.
11242# FIXME: do we really want to maintain this feature?
b3076f16 11243cat >>$CONFIG_STATUS <<_ACEOF
11244 sed "$ac_vpsub
11245$extrasub
11246_ACEOF
11247cat >>$CONFIG_STATUS <<\_ACEOF
11248:t
11249/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a8b2ad8d 11250s&@configure_input@&$configure_input&;t t
11251s&@top_builddir@&$ac_top_builddir_sub&;t t
11252s&@srcdir@&$ac_srcdir&;t t
11253s&@abs_srcdir@&$ac_abs_srcdir&;t t
11254s&@top_srcdir@&$ac_top_srcdir&;t t
11255s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11256s&@builddir@&$ac_builddir&;t t
11257s&@abs_builddir@&$ac_abs_builddir&;t t
11258s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11259s&@INSTALL@&$ac_INSTALL&;t t
2f65da8f 11260s&@MKDIR_P@&$ac_MKDIR_P&;t t
a8b2ad8d 11261$ac_datarootdir_hack
11262" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11263
11264test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11265 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11266 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11267 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11268which seems to be undefined. Please make sure it is defined." >&5
11269echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11270which seems to be undefined. Please make sure it is defined." >&2;}
11271
11272 rm -f "$tmp/stdin"
b3076f16 11273 case $ac_file in
a8b2ad8d 11274 -) cat "$tmp/out"; rm -f "$tmp/out";;
11275 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
b3076f16 11276 esac
a8b2ad8d 11277 ;;
11278 :H)
11279 #
11280 # CONFIG_HEADER
11281 #
11282_ACEOF
11283
11284# Transform confdefs.h into a sed script `conftest.defines', that
11285# substitutes the proper values into config.h.in to produce config.h.
11286rm -f conftest.defines conftest.tail
11287# First, append a space to every undef/define line, to ease matching.
11288echo 's/$/ /' >conftest.defines
11289# Then, protect against being on the right side of a sed subst, or in
11290# an unquoted here document, in config.status. If some macros were
11291# called several times there might be several #defines for the same
11292# symbol, which is useless. But do not sort them, since the last
11293# AC_DEFINE must be honored.
11294ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11295# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11296# NAME is the cpp macro being defined, VALUE is the value it is being given.
11297# PARAMS is the parameter list in the macro definition--in most cases, it's
11298# just an empty string.
11299ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11300ac_dB='\\)[ (].*,\\1define\\2'
11301ac_dC=' '
11302ac_dD=' ,'
11303
11304uniq confdefs.h |
11305 sed -n '
11306 t rset
11307 :rset
11308 s/^[ ]*#[ ]*define[ ][ ]*//
11309 t ok
11310 d
11311 :ok
11312 s/[\\&,]/\\&/g
11313 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11314 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11315 ' >>conftest.defines
11316
11317# Remove the space that was appended to ease matching.
11318# Then replace #undef with comments. This is necessary, for
b3076f16 11319# example, in the case of _POSIX_SOURCE, which is predefined and required
11320# on some systems where configure will not decide to define it.
a8b2ad8d 11321# (The regexp can be short, since the line contains either #define or #undef.)
11322echo 's/ $//
11323s,^[ #]*u.*,/* & */,' >>conftest.defines
11324
11325# Break up conftest.defines:
11326ac_max_sed_lines=50
11327
11328# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11329# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11330# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11331# et cetera.
11332ac_in='$ac_file_inputs'
11333ac_out='"$tmp/out1"'
11334ac_nxt='"$tmp/out2"'
11335
11336while :
b3076f16 11337do
a8b2ad8d 11338 # Write a here document:
11339 cat >>$CONFIG_STATUS <<_ACEOF
11340 # First, check the format of the line:
11341 cat >"\$tmp/defines.sed" <<\\CEOF
11342/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11343/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11344b
11345:def
11346_ACEOF
11347 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
b3076f16 11348 echo 'CEOF
a8b2ad8d 11349 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11350 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11351 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11352 grep . conftest.tail >/dev/null || break
b3076f16 11353 rm -f conftest.defines
11354 mv conftest.tail conftest.defines
11355done
a8b2ad8d 11356rm -f conftest.defines conftest.tail
b3076f16 11357
a8b2ad8d 11358echo "ac_result=$ac_in" >>$CONFIG_STATUS
b3076f16 11359cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 11360 if test x"$ac_file" != x-; then
a8b2ad8d 11361 echo "/* $configure_input */" >"$tmp/config.h"
11362 cat "$ac_result" >>"$tmp/config.h"
11363 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
b3076f16 11364 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11365echo "$as_me: $ac_file is unchanged" >&6;}
11366 else
b3076f16 11367 rm -f $ac_file
a8b2ad8d 11368 mv "$tmp/config.h" $ac_file
b3076f16 11369 fi
11370 else
a8b2ad8d 11371 echo "/* $configure_input */"
11372 cat "$ac_result"
b3076f16 11373 fi
a8b2ad8d 11374 rm -f "$tmp/out12"
ec1a68c8 11375# Compute $ac_file's index in $config_headers.
cbfd323c 11376_am_arg=$ac_file
ec1a68c8 11377_am_stamp_count=1
11378for _am_header in $config_headers :; do
11379 case $_am_header in
cbfd323c 11380 $_am_arg | $_am_arg:* )
ec1a68c8 11381 break ;;
11382 * )
11383 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11384 esac
11385done
cbfd323c 11386echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11387$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11388 X"$_am_arg" : 'X\(//\)[^/]' \| \
11389 X"$_am_arg" : 'X\(//\)$' \| \
11390 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11391echo X"$_am_arg" |
a8b2ad8d 11392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11393 s//\1/
11394 q
11395 }
11396 /^X\(\/\/\)[^/].*/{
11397 s//\1/
11398 q
11399 }
11400 /^X\(\/\/\)$/{
11401 s//\1/
11402 q
11403 }
11404 /^X\(\/\).*/{
11405 s//\1/
11406 q
11407 }
11408 s/.*/./; q'`/stamp-h$_am_stamp_count
11409 ;;
ec1a68c8 11410
a8b2ad8d 11411 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11412echo "$as_me: executing $ac_file commands" >&6;}
11413 ;;
11414 esac
ec1a68c8 11415
11416
a8b2ad8d 11417 case $ac_file$ac_mode in
11418 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
ec1a68c8 11419 # Strip MF so we end up with the name of the file.
11420 mf=`echo "$mf" | sed -e 's/:.*$//'`
11421 # Check whether this is an Automake generated Makefile or not.
11422 # We used to match only the files named `Makefile.in', but
11423 # some people rename them; so instead we look at the file content.
11424 # Grep'ing the first line is not enough: some people post-process
11425 # each Makefile.in and add a new line on top of each file to say so.
2f65da8f 11426 # Grep'ing the whole file is not good either: AIX grep has a line
11427 # limit of 2048, but all sed's we know have understand at least 4000.
cbfd323c 11428 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
a8b2ad8d 11429 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 11430$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431 X"$mf" : 'X\(//\)[^/]' \| \
11432 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 11433 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11434echo X"$mf" |
a8b2ad8d 11435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11436 s//\1/
11437 q
11438 }
11439 /^X\(\/\/\)[^/].*/{
11440 s//\1/
11441 q
11442 }
11443 /^X\(\/\/\)$/{
11444 s//\1/
11445 q
11446 }
11447 /^X\(\/\).*/{
11448 s//\1/
11449 q
11450 }
11451 s/.*/./; q'`
ec1a68c8 11452 else
11453 continue
11454 fi
11455 # Extract the definition of DEPDIR, am__include, and am__quote
11456 # from the Makefile without running `make'.
11457 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11458 test -z "$DEPDIR" && continue
11459 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11460 test -z "am__include" && continue
11461 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11462 # When using ansi2knr, U may be empty or an underscore; expand it
11463 U=`sed -n 's/^U = //p' < "$mf"`
11464 # Find all dependency output files, they are included files with
11465 # $(DEPDIR) in their names. We invoke sed twice because it is the
11466 # simplest approach to changing $(DEPDIR) to its actual value in the
11467 # expansion.
11468 for file in `sed -n "
11469 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11470 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11471 # Make sure the directory exists.
11472 test -f "$dirpart/$file" && continue
a8b2ad8d 11473 fdir=`$as_dirname -- "$file" ||
ec1a68c8 11474$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11475 X"$file" : 'X\(//\)[^/]' \| \
11476 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 11477 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11478echo X"$file" |
a8b2ad8d 11479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11480 s//\1/
11481 q
11482 }
11483 /^X\(\/\/\)[^/].*/{
11484 s//\1/
11485 q
11486 }
11487 /^X\(\/\/\)$/{
11488 s//\1/
11489 q
11490 }
11491 /^X\(\/\).*/{
11492 s//\1/
11493 q
11494 }
11495 s/.*/./; q'`
11496 { as_dir=$dirpart/$fdir
11497 case $as_dir in #(
11498 -*) as_dir=./$as_dir;;
11499 esac
11500 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ec1a68c8 11501 as_dirs=
a8b2ad8d 11502 while :; do
11503 case $as_dir in #(
11504 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11505 *) as_qdir=$as_dir;;
11506 esac
11507 as_dirs="'$as_qdir' $as_dirs"
11508 as_dir=`$as_dirname -- "$as_dir" ||
ec1a68c8 11509$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11510 X"$as_dir" : 'X\(//\)[^/]' \| \
11511 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11513echo X"$as_dir" |
a8b2ad8d 11514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11515 s//\1/
11516 q
11517 }
11518 /^X\(\/\/\)[^/].*/{
11519 s//\1/
11520 q
11521 }
11522 /^X\(\/\/\)$/{
11523 s//\1/
11524 q
11525 }
11526 /^X\(\/\).*/{
11527 s//\1/
11528 q
11529 }
11530 s/.*/./; q'`
11531 test -d "$as_dir" && break
ec1a68c8 11532 done
a8b2ad8d 11533 test -z "$as_dirs" || eval "mkdir $as_dirs"
11534 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11535echo "$as_me: error: cannot create directory $as_dir" >&2;}
ec1a68c8 11536 { (exit 1); exit 1; }; }; }
ec1a68c8 11537 # echo "creating $dirpart/$file"
11538 echo '# dummy' > "$dirpart/$file"
11539 done
11540done
11541 ;;
a8b2ad8d 11542
ec1a68c8 11543 esac
a8b2ad8d 11544done # for ac_tag
b3076f16 11545
b3076f16 11546
11547{ (exit 0); exit 0; }
11548_ACEOF
11549chmod +x $CONFIG_STATUS
11550ac_clean_files=$ac_clean_files_save
11551
11552
11553# configure is writing to config.log, and then calls config.status.
11554# config.status does its own redirection, appending to config.log.
11555# Unfortunately, on DOS this fails, as config.log is still kept open
11556# by configure, so config.status won't be able to write to it; its
11557# output is simply discarded. So we exec the FD to /dev/null,
11558# effectively closing config.log, so it can be properly (re)opened and
11559# appended to by config.status. When coming back to configure, we
11560# need to make the FD available again.
11561if test "$no_create" != yes; then
11562 ac_cs_success=:
11563 ac_config_status_args=
11564 test "$silent" = yes &&
11565 ac_config_status_args="$ac_config_status_args --quiet"
11566 exec 5>/dev/null
11567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11568 exec 5>>config.log
11569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11570 # would make configure fail if this is the last instruction.
11571 $ac_cs_success || { (exit 1); exit 1; }
11572fi
11573
5b1166fd 11574
11575
11576
11577cat <<EOF
11578
11579Configuration summary
11580=====================
11581
11582X3 is now configured as follows:
11583
11584* Compilation environment
11585
11586 CC = $CC
11587 CFLAGS = $CFLAGS
11588 CPP = $CPP
11589 CPPFLAGS = $CPPFLAGS
11590 LD = $LD
11591 LDFLAGS = $LDFLAGS
11592 LIBS = $LIBS
11593
11594* X3 options
11595
a8b2ad8d 11596 Debug: $x3_debug
11597 Extra Modules: $module_list
11598 Malloc: $x3_malloc
11599 Protocol: $x3_ircd
11600 Regexp Library TRE $tre_version
11601 Coredumper Library Coredumper $core_version
8da89711 11602 $ldap_message
2f65da8f 11603 python: $python
5b1166fd 11604
a8b2ad8d 11605 Install to: $prefix
35305a49 11606
5b1166fd 11607Now you can proceed with compiling X3
11608
11609EOF
11610