]> jfr.im git - irc/evilnet/x3.git/blame - configure
mod-python: generalised the setting of the PYTHONPATH environment variable
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
07559983 2# From configure.in Id: configure.in 2427 2009-01-23 23:27:32Z rubin .
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
90746c83 4# Generated by GNU Autoconf 2.61 for X3 1.6.
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'
90746c83 578PACKAGE_VERSION='1.6'
579PACKAGE_STRING='X3 1.6'
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
90746c83 1241\`configure' configures X3 1.6 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
90746c83 1312 short | recursive ) echo "Configuration of X3 1.6:";;
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)
b3076f16 1336 --without-getopt Disables building of the GNU getopt library
a8b2ad8d 1337 --with-tre=PATH Base path to where libtre is installed, such that
1338 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1339 --with-coredumper=PATH Base path to where core dumper is installed, such
1340 that PATH/lib/libcoredumper.so and
1341 PATH/include/google/coredumper.h exist.
73d4cc91 1342 --with-ssl=PATH Base path to where openssl is installed
8da89711 1343 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1344 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
b3076f16 1345
1346Some influential environment variables:
1347 CC C compiler command
1348 CFLAGS C compiler flags
1349 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1350 nonstandard directory <lib dir>
0bd0bef6 1351 LIBS libraries to pass to the linker, e.g. -l<library>
a8b2ad8d 1352 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1353 you have headers in a nonstandard directory <include dir>
b3076f16 1354 CPP C preprocessor
1355
1356Use these variables to override the choices made by `configure' or to help
1357it to find libraries and programs with nonstandard names/locations.
1358
63c95a47 1359Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1360_ACEOF
a8b2ad8d 1361ac_status=$?
b3076f16 1362fi
1363
1364if test "$ac_init_help" = "recursive"; then
1365 # If there are subdirs, report their specific --help.
b3076f16 1366 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a8b2ad8d 1367 test -d "$ac_dir" || continue
b3076f16 1368 ac_builddir=.
1369
a8b2ad8d 1370case "$ac_dir" in
1371.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372*)
b3076f16 1373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 1374 # A ".." for each directory in $ac_dir_suffix.
1375 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1376 case $ac_top_builddir_sub in
1377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1379 esac ;;
1380esac
1381ac_abs_top_builddir=$ac_pwd
1382ac_abs_builddir=$ac_pwd$ac_dir_suffix
1383# for backward compatibility:
1384ac_top_builddir=$ac_top_build_prefix
b3076f16 1385
1386case $srcdir in
a8b2ad8d 1387 .) # We are building in place.
b3076f16 1388 ac_srcdir=.
a8b2ad8d 1389 ac_top_srcdir=$ac_top_builddir_sub
1390 ac_abs_top_srcdir=$ac_pwd ;;
1391 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1392 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1393 ac_top_srcdir=$srcdir
1394 ac_abs_top_srcdir=$srcdir ;;
1395 *) # Relative name.
1396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1397 ac_top_srcdir=$ac_top_build_prefix$srcdir
1398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1399esac
a8b2ad8d 1400ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1401
1402 cd "$ac_dir" || { ac_status=$?; continue; }
1403 # Check for guested configure.
1404 if test -f "$ac_srcdir/configure.gnu"; then
1405 echo &&
1406 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1407 elif test -f "$ac_srcdir/configure"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1410 else
1411 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1412 fi || ac_status=$?
1413 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1414 done
1415fi
1416
a8b2ad8d 1417test -n "$ac_init_help" && exit $ac_status
b3076f16 1418if $ac_init_version; then
1419 cat <<\_ACEOF
90746c83 1420X3 configure 1.6
0bd0bef6 1421generated by GNU Autoconf 2.61
b3076f16 1422
a8b2ad8d 1423Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14242002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 1425This configure script is free software; the Free Software Foundation
1426gives unlimited permission to copy, distribute and modify it.
1427_ACEOF
a8b2ad8d 1428 exit
b3076f16 1429fi
a8b2ad8d 1430cat >config.log <<_ACEOF
b3076f16 1431This file contains any messages produced by compilers while
1432running configure, to aid debugging if configure makes a mistake.
1433
90746c83 1434It was created by X3 $as_me 1.6, which was
0bd0bef6 1435generated by GNU Autoconf 2.61. Invocation command line was
b3076f16 1436
1437 $ $0 $@
1438
1439_ACEOF
a8b2ad8d 1440exec 5>>config.log
b3076f16 1441{
1442cat <<_ASUNAME
1443## --------- ##
1444## Platform. ##
1445## --------- ##
1446
1447hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1448uname -m = `(uname -m) 2>/dev/null || echo unknown`
1449uname -r = `(uname -r) 2>/dev/null || echo unknown`
1450uname -s = `(uname -s) 2>/dev/null || echo unknown`
1451uname -v = `(uname -v) 2>/dev/null || echo unknown`
1452
1453/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1454/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1455
1456/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1457/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1458/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
a8b2ad8d 1459/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b3076f16 1460/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1461/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1462/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1463
1464_ASUNAME
1465
1466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467for as_dir in $PATH
1468do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 echo "PATH: $as_dir"
1472done
a8b2ad8d 1473IFS=$as_save_IFS
b3076f16 1474
1475} >&5
1476
1477cat >&5 <<_ACEOF
1478
1479
1480## ----------- ##
1481## Core tests. ##
1482## ----------- ##
1483
1484_ACEOF
1485
1486
1487# Keep a trace of the command line.
1488# Strip out --no-create and --no-recursion so they do not pile up.
1489# Strip out --silent because we don't want to record it for future runs.
1490# Also quote any args containing shell meta-characters.
1491# Make two passes to allow for proper duplicate-argument suppression.
1492ac_configure_args=
1493ac_configure_args0=
1494ac_configure_args1=
b3076f16 1495ac_must_keep_next=false
1496for ac_pass in 1 2
1497do
1498 for ac_arg
1499 do
1500 case $ac_arg in
1501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1504 continue ;;
a8b2ad8d 1505 *\'*)
b3076f16 1506 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1507 esac
1508 case $ac_pass in
1509 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1510 2)
1511 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1512 if test $ac_must_keep_next = true; then
1513 ac_must_keep_next=false # Got value, back to normal.
1514 else
1515 case $ac_arg in
1516 *=* | --config-cache | -C | -disable-* | --disable-* \
1517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1519 | -with-* | --with-* | -without-* | --without-* | --x)
1520 case "$ac_configure_args0 " in
1521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1522 esac
1523 ;;
1524 -* ) ac_must_keep_next=true ;;
1525 esac
1526 fi
a8b2ad8d 1527 ac_configure_args="$ac_configure_args '$ac_arg'"
b3076f16 1528 ;;
1529 esac
1530 done
1531done
1532$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1533$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1534
1535# When interrupted or exit'd, cleanup temporary files, and complete
1536# config.log. We remove comments because anyway the quotes in there
1537# would cause problems or look ugly.
a8b2ad8d 1538# WARNING: Use '\'' to represent an apostrophe within the trap.
1539# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 1540trap 'exit_status=$?
1541 # Save into config.log some information that might help in debugging.
1542 {
1543 echo
1544
1545 cat <<\_ASBOX
1546## ---------------- ##
1547## Cache variables. ##
1548## ---------------- ##
1549_ASBOX
1550 echo
1551 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 1552(
1553 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1554 eval ac_val=\$$ac_var
1555 case $ac_val in #(
1556 *${as_nl}*)
1557 case $ac_var in #(
1558 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1559echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1560 esac
1561 case $ac_var in #(
1562 _ | IFS | as_nl) ;; #(
1563 *) $as_unset $ac_var ;;
1564 esac ;;
1565 esac
1566 done
b3076f16 1567 (set) 2>&1 |
a8b2ad8d 1568 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1569 *${as_nl}ac_space=\ *)
b3076f16 1570 sed -n \
a8b2ad8d 1571 "s/'\''/'\''\\\\'\'''\''/g;
1572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1573 ;; #(
b3076f16 1574 *)
a8b2ad8d 1575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 1576 ;;
a8b2ad8d 1577 esac |
1578 sort
1579)
b3076f16 1580 echo
1581
1582 cat <<\_ASBOX
1583## ----------------- ##
1584## Output variables. ##
1585## ----------------- ##
1586_ASBOX
1587 echo
1588 for ac_var in $ac_subst_vars
1589 do
a8b2ad8d 1590 eval ac_val=\$$ac_var
1591 case $ac_val in
1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1593 esac
1594 echo "$ac_var='\''$ac_val'\''"
b3076f16 1595 done | sort
1596 echo
1597
1598 if test -n "$ac_subst_files"; then
1599 cat <<\_ASBOX
a8b2ad8d 1600## ------------------- ##
1601## File substitutions. ##
1602## ------------------- ##
b3076f16 1603_ASBOX
1604 echo
1605 for ac_var in $ac_subst_files
1606 do
a8b2ad8d 1607 eval ac_val=\$$ac_var
1608 case $ac_val in
1609 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 esac
1611 echo "$ac_var='\''$ac_val'\''"
b3076f16 1612 done | sort
1613 echo
1614 fi
1615
1616 if test -s confdefs.h; then
1617 cat <<\_ASBOX
1618## ----------- ##
1619## confdefs.h. ##
1620## ----------- ##
1621_ASBOX
1622 echo
a8b2ad8d 1623 cat confdefs.h
b3076f16 1624 echo
1625 fi
1626 test "$ac_signal" != 0 &&
1627 echo "$as_me: caught signal $ac_signal"
1628 echo "$as_me: exit $exit_status"
1629 } >&5
a8b2ad8d 1630 rm -f core *.core core.conftest.* &&
1631 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 1632 exit $exit_status
a8b2ad8d 1633' 0
b3076f16 1634for ac_signal in 1 2 13 15; do
1635 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1636done
1637ac_signal=0
1638
1639# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 1640rm -f -r conftest* confdefs.h
b3076f16 1641
1642# Predefined preprocessor variables.
1643
1644cat >>confdefs.h <<_ACEOF
1645#define PACKAGE_NAME "$PACKAGE_NAME"
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_VERSION "$PACKAGE_VERSION"
1656_ACEOF
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_STRING "$PACKAGE_STRING"
1661_ACEOF
1662
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1666_ACEOF
1667
1668
1669# Let the site file select an alternate cache file if it wants to.
1670# Prefer explicitly selected file to automatically selected ones.
a8b2ad8d 1671if test -n "$CONFIG_SITE"; then
1672 set x "$CONFIG_SITE"
1673elif test "x$prefix" != xNONE; then
1674 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1675else
1676 set x "$ac_default_prefix/share/config.site" \
1677 "$ac_default_prefix/etc/config.site"
b3076f16 1678fi
a8b2ad8d 1679shift
1680for ac_site_file
1681do
b3076f16 1682 if test -r "$ac_site_file"; then
1683 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1684echo "$as_me: loading site script $ac_site_file" >&6;}
1685 sed 's/^/| /' "$ac_site_file" >&5
1686 . "$ac_site_file"
1687 fi
1688done
1689
1690if test -r "$cache_file"; then
1691 # Some versions of bash will fail to source /dev/null (special
1692 # files actually), so we avoid doing that.
1693 if test -f "$cache_file"; then
1694 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1695echo "$as_me: loading cache $cache_file" >&6;}
1696 case $cache_file in
a8b2ad8d 1697 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1698 *) . "./$cache_file";;
b3076f16 1699 esac
1700 fi
1701else
1702 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1703echo "$as_me: creating cache $cache_file" >&6;}
1704 >$cache_file
1705fi
1706
1707# Check that the precious variables saved in the cache have kept the same
1708# value.
1709ac_cache_corrupted=false
a8b2ad8d 1710for ac_var in $ac_precious_vars; do
b3076f16 1711 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1712 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 1713 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1714 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 1715 case $ac_old_set,$ac_new_set in
1716 set,)
1717 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1718echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1719 ac_cache_corrupted=: ;;
1720 ,set)
1721 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1722echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1723 ac_cache_corrupted=: ;;
1724 ,);;
1725 *)
1726 if test "x$ac_old_val" != "x$ac_new_val"; then
1727 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1728echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1729 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1730echo "$as_me: former value: $ac_old_val" >&2;}
1731 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1732echo "$as_me: current value: $ac_new_val" >&2;}
1733 ac_cache_corrupted=:
1734 fi;;
1735 esac
1736 # Pass precious variables to config.status.
1737 if test "$ac_new_set" = set; then
1738 case $ac_new_val in
a8b2ad8d 1739 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 1740 *) ac_arg=$ac_var=$ac_new_val ;;
1741 esac
1742 case " $ac_configure_args " in
1743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1744 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1745 esac
1746 fi
1747done
1748if $ac_cache_corrupted; then
1749 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1750echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1751 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1752echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1753 { (exit 1); exit 1; }; }
1754fi
1755
b3076f16 1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
a8b2ad8d 1780ac_ext=c
1781ac_cpp='$CPP $CPPFLAGS'
1782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 1785
1786
ceafd592 1787CODENAME=X3
a8b2ad8d 1788ac_config_headers="$ac_config_headers src/config.h"
b3076f16 1789
1790
1791ac_aux_dir=
a8b2ad8d 1792for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1793 if test -f "$ac_dir/install-sh"; then
b3076f16 1794 ac_aux_dir=$ac_dir
1795 ac_install_sh="$ac_aux_dir/install-sh -c"
1796 break
a8b2ad8d 1797 elif 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/shtool"; then
b3076f16 1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/shtool install -c"
1804 break
1805 fi
1806done
1807if test -z "$ac_aux_dir"; then
a8b2ad8d 1808 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1809echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b3076f16 1810 { (exit 1); exit 1; }; }
1811fi
a8b2ad8d 1812
1813# These three variables are undocumented and unsupported,
1814# and are intended to be withdrawn in a future Autoconf release.
1815# They can cause serious problems if a builder's source tree is in a directory
1816# whose full name contains unusual characters.
1817ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1818ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1819ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1820
b3076f16 1821
1822# Make sure we can run config.sub.
a8b2ad8d 1823$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1824 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1825echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b3076f16 1826 { (exit 1); exit 1; }; }
1827
a8b2ad8d 1828{ echo "$as_me:$LINENO: checking build system type" >&5
1829echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b3076f16 1830if test "${ac_cv_build+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
a8b2ad8d 1833 ac_build_alias=$build_alias
1834test "x$ac_build_alias" = x &&
1835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1836test "x$ac_build_alias" = x &&
b3076f16 1837 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1838echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1839 { (exit 1); exit 1; }; }
a8b2ad8d 1840ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1841 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1842echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b3076f16 1843 { (exit 1); exit 1; }; }
1844
1845fi
a8b2ad8d 1846{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1847echo "${ECHO_T}$ac_cv_build" >&6; }
1848case $ac_cv_build in
1849*-*-*) ;;
1850*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1851echo "$as_me: error: invalid value of canonical build" >&2;}
1852 { (exit 1); exit 1; }; };;
1853esac
b3076f16 1854build=$ac_cv_build
a8b2ad8d 1855ac_save_IFS=$IFS; IFS='-'
1856set x $ac_cv_build
1857shift
1858build_cpu=$1
1859build_vendor=$2
1860shift; shift
1861# Remember, the first character of IFS is used to create $*,
1862# except with old shells:
1863build_os=$*
1864IFS=$ac_save_IFS
1865case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1866
1867
1868{ echo "$as_me:$LINENO: checking host system type" >&5
1869echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b3076f16 1870if test "${ac_cv_host+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
a8b2ad8d 1873 if test "x$host_alias" = x; then
1874 ac_cv_host=$ac_cv_build
1875else
1876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1877 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1878echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b3076f16 1879 { (exit 1); exit 1; }; }
a8b2ad8d 1880fi
b3076f16 1881
1882fi
a8b2ad8d 1883{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1884echo "${ECHO_T}$ac_cv_host" >&6; }
1885case $ac_cv_host in
1886*-*-*) ;;
1887*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1888echo "$as_me: error: invalid value of canonical host" >&2;}
1889 { (exit 1); exit 1; }; };;
1890esac
b3076f16 1891host=$ac_cv_host
a8b2ad8d 1892ac_save_IFS=$IFS; IFS='-'
1893set x $ac_cv_host
1894shift
1895host_cpu=$1
1896host_vendor=$2
1897shift; shift
1898# Remember, the first character of IFS is used to create $*,
1899# except with old shells:
1900host_os=$*
1901IFS=$ac_save_IFS
1902case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1903
1904
1905{ echo "$as_me:$LINENO: checking target system type" >&5
1906echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b3076f16 1907if test "${ac_cv_target+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
a8b2ad8d 1910 if test "x$target_alias" = x; then
1911 ac_cv_target=$ac_cv_host
1912else
1913 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1914 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1915echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b3076f16 1916 { (exit 1); exit 1; }; }
a8b2ad8d 1917fi
b3076f16 1918
1919fi
a8b2ad8d 1920{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1921echo "${ECHO_T}$ac_cv_target" >&6; }
1922case $ac_cv_target in
1923*-*-*) ;;
1924*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1925echo "$as_me: error: invalid value of canonical target" >&2;}
1926 { (exit 1); exit 1; }; };;
1927esac
b3076f16 1928target=$ac_cv_target
a8b2ad8d 1929ac_save_IFS=$IFS; IFS='-'
1930set x $ac_cv_target
1931shift
1932target_cpu=$1
1933target_vendor=$2
1934shift; shift
1935# Remember, the first character of IFS is used to create $*,
1936# except with old shells:
1937target_os=$*
1938IFS=$ac_save_IFS
1939case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 1940
1941
1942# The aliases save the names the user supplied, while $host etc.
1943# will get canonicalized.
1944test -n "$target_alias" &&
1945 test "$program_prefix$program_suffix$program_transform_name" = \
1946 NONENONEs,x,x, &&
1947 program_prefix=${target_alias}-
2f65da8f 1948am__api_version='1.10'
1949
b3076f16 1950# Find a good install program. We prefer a C program (faster),
1951# so one script is as good as another. But avoid the broken or
1952# incompatible versions:
1953# SysV /etc/install, /usr/sbin/install
1954# SunOS /usr/etc/install
1955# IRIX /sbin/install
1956# AIX /bin/install
1957# AmigaOS /C/install, which installs bootblocks on floppy discs
1958# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1959# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1960# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1961# OS/2's system install, which has a completely different semantic
1962# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 1963{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1964echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 1965if test -z "$INSTALL"; then
1966if test "${ac_cv_path_install+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 # Account for people who put trailing slashes in PATH elements.
1975case $as_dir/ in
1976 ./ | .// | /cC/* | \
1977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1978 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1979 /usr/ucb/* ) ;;
1980 *)
1981 # OSF1 and SCO ODT 3.0 have their own names for install.
1982 # Don't use installbsd from OSF since it installs stuff as root
1983 # by default.
1984 for ac_prog in ginstall scoinst install; do
1985 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 1986 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 1987 if test $ac_prog = install &&
1988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1989 # AIX install. It has an incompatible calling convention.
1990 :
1991 elif test $ac_prog = install &&
1992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993 # program-specific install script used by HP pwplus--don't use.
1994 :
1995 else
1996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1997 break 3
1998 fi
1999 fi
2000 done
2001 done
2002 ;;
2003esac
2004done
a8b2ad8d 2005IFS=$as_save_IFS
b3076f16 2006
2007
2008fi
2009 if test "${ac_cv_path_install+set}" = set; then
2010 INSTALL=$ac_cv_path_install
2011 else
a8b2ad8d 2012 # As a last resort, use the slow shell script. Don't cache a
2013 # value for INSTALL within a source directory, because that will
b3076f16 2014 # break other packages using the cache if that directory is
a8b2ad8d 2015 # removed, or if the value is a relative name.
b3076f16 2016 INSTALL=$ac_install_sh
2017 fi
2018fi
a8b2ad8d 2019{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2020echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 2021
2022# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023# It thinks the first close brace ends the variable substitution.
2024test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2025
2026test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2027
2028test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2029
a8b2ad8d 2030{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2031echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
b3076f16 2032# Just in case
2033sleep 1
ec1a68c8 2034echo timestamp > conftest.file
b3076f16 2035# Do `set' in a subshell so we don't clobber the current shell's
2036# arguments. Must try -L first in case configure is actually a
2037# symlink; some systems play weird games with the mod time of symlinks
2038# (eg FreeBSD returns the mod time of the symlink's containing
2039# directory).
2040if (
ec1a68c8 2041 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 2042 if test "$*" = "X"; then
2043 # -L didn't work.
ec1a68c8 2044 set X `ls -t $srcdir/configure conftest.file`
b3076f16 2045 fi
ec1a68c8 2046 rm -f conftest.file
2047 if test "$*" != "X $srcdir/configure conftest.file" \
2048 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2049
2050 # If neither matched, then we have a broken ls. This can happen
2051 # if, for instance, CONFIG_SHELL is bash and it inherits a
2052 # broken ls alias from the environment. This has actually
2053 # happened. Such a system could not be considered "sane".
2054 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2055alias in your environment" >&5
2056echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2057alias in your environment" >&2;}
2058 { (exit 1); exit 1; }; }
2059 fi
2060
ec1a68c8 2061 test "$2" = conftest.file
b3076f16 2062 )
2063then
2064 # Ok.
2065 :
2066else
2067 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2068Check your system clock" >&5
2069echo "$as_me: error: newly created file is older than distributed files!
2070Check your system clock" >&2;}
2071 { (exit 1); exit 1; }; }
2072fi
a8b2ad8d 2073{ echo "$as_me:$LINENO: result: yes" >&5
2074echo "${ECHO_T}yes" >&6; }
b3076f16 2075test "$program_prefix" != NONE &&
a8b2ad8d 2076 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2077# Use a double $ so make ignores it.
2078test "$program_suffix" != NONE &&
a8b2ad8d 2079 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b3076f16 2080# Double any \ or $. echo might interpret backslashes.
2081# By default was `s,x,x', remove it if useless.
2082cat <<\_ACEOF >conftest.sed
2083s/[\\$]/&&/g;s/;s,x,x,$//
2084_ACEOF
2085program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
a8b2ad8d 2086rm -f conftest.sed
b3076f16 2087
ec1a68c8 2088# expand $ac_aux_dir to an absolute path
2089am_aux_dir=`cd $ac_aux_dir && pwd`
2090
2091test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2092# Use eval to expand $SHELL
2093if eval "$MISSING --run true"; then
2094 am_missing_run="$MISSING --run "
2095else
2096 am_missing_run=
2097 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2098echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2099fi
2100
2f65da8f 2101{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2102echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2103if test -z "$MKDIR_P"; then
2104 if test "${ac_cv_path_mkdir+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2109do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 for ac_prog in mkdir gmkdir; do
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2115 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2116 'mkdir (GNU coreutils) '* | \
2117 'mkdir (coreutils) '* | \
2118 'mkdir (fileutils) '4.1*)
2119 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2120 break 3;;
2121 esac
2122 done
2123 done
2124done
2125IFS=$as_save_IFS
2126
2127fi
2128
2129 if test "${ac_cv_path_mkdir+set}" = set; then
2130 MKDIR_P="$ac_cv_path_mkdir -p"
ec1a68c8 2131 else
2f65da8f 2132 # As a last resort, use the slow shell script. Don't cache a
2133 # value for MKDIR_P within a source directory, because that will
2134 # break other packages using the cache if that directory is
2135 # removed, or if the value is a relative name.
2136 test -d ./--version && rmdir ./--version
2137 MKDIR_P="$ac_install_sh -d"
ec1a68c8 2138 fi
2139fi
2f65da8f 2140{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2141echo "${ECHO_T}$MKDIR_P" >&6; }
2142
2143mkdir_p="$MKDIR_P"
2144case $mkdir_p in
2145 [\\/$]* | ?:[\\/]*) ;;
2146 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2147esac
ec1a68c8 2148
2149for ac_prog in gawk mawk nawk awk
2150do
2151 # Extract the first word of "$ac_prog", so it can be a program name with args.
2152set dummy $ac_prog; ac_word=$2
a8b2ad8d 2153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2155if test "${ac_cv_prog_AWK+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158 if test -n "$AWK"; then
2159 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2160else
2161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH
2163do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2168 ac_cv_prog_AWK="$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2171 fi
2172done
2173done
a8b2ad8d 2174IFS=$as_save_IFS
ec1a68c8 2175
2176fi
2177fi
2178AWK=$ac_cv_prog_AWK
2179if test -n "$AWK"; then
a8b2ad8d 2180 { echo "$as_me:$LINENO: result: $AWK" >&5
2181echo "${ECHO_T}$AWK" >&6; }
ec1a68c8 2182else
a8b2ad8d 2183 { echo "$as_me:$LINENO: result: no" >&5
2184echo "${ECHO_T}no" >&6; }
ec1a68c8 2185fi
2186
a8b2ad8d 2187
ec1a68c8 2188 test -n "$AWK" && break
2189done
2190
a8b2ad8d 2191{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2192echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2193set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2194if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197 cat >conftest.make <<\_ACEOF
a8b2ad8d 2198SHELL = /bin/sh
b3076f16 2199all:
a8b2ad8d 2200 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2201_ACEOF
2202# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2203case `${MAKE-make} -f conftest.make 2>/dev/null` in
2204 *@@@%%%=?*=@@@%%%*)
2205 eval ac_cv_prog_make_${ac_make}_set=yes;;
2206 *)
2207 eval ac_cv_prog_make_${ac_make}_set=no;;
2208esac
b3076f16 2209rm -f conftest.make
2210fi
a8b2ad8d 2211if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2212 { echo "$as_me:$LINENO: result: yes" >&5
2213echo "${ECHO_T}yes" >&6; }
b3076f16 2214 SET_MAKE=
2215else
a8b2ad8d 2216 { echo "$as_me:$LINENO: result: no" >&5
2217echo "${ECHO_T}no" >&6; }
b3076f16 2218 SET_MAKE="MAKE=${MAKE-make}"
2219fi
2220
ec1a68c8 2221rm -rf .tst 2>/dev/null
2222mkdir .tst 2>/dev/null
2223if test -d .tst; then
2224 am__leading_dot=.
2225else
2226 am__leading_dot=_
2227fi
2228rmdir .tst 2>/dev/null
b3076f16 2229
2f65da8f 2230if test "`cd $srcdir && pwd`" != "`pwd`"; then
2231 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2232 # is not polluted with repeated "-I."
2233 am__isrc=' -I$(srcdir)'
2234 # test to see if srcdir already configured
2235 if test -f $srcdir/config.status; then
2236 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
b3076f16 2237echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2238 { (exit 1); exit 1; }; }
2f65da8f 2239 fi
b3076f16 2240fi
2241
ec1a68c8 2242# test whether we have cygpath
2243if test -z "$CYGPATH_W"; then
2244 if (cygpath --version) >/dev/null 2>/dev/null; then
2245 CYGPATH_W='cygpath -w'
2246 else
2247 CYGPATH_W=echo
2248 fi
2249fi
2250
2251
2252# Define the identity of the package.
ceafd592 2253 PACKAGE='x3'
90746c83 2254 VERSION='1.6'
ec1a68c8 2255
2256
b3076f16 2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE "$PACKAGE"
2259_ACEOF
2260
2261
2262cat >>confdefs.h <<_ACEOF
2263#define VERSION "$VERSION"
2264_ACEOF
2265
ec1a68c8 2266# Some tools Automake needs.
b3076f16 2267
ec1a68c8 2268ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2269
ec1a68c8 2270
2271AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2272
2273
2274AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2275
2276
2277AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2278
2279
2280MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2281
2f65da8f 2282install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
ec1a68c8 2283
2284# Installed binaries are usually stripped using `strip' when the user
2285# run `make install-strip'. However `strip' might not be the right
2286# tool to use in cross-compilation environments, therefore Automake
2287# will honor the `STRIP' environment variable to overrule this program.
2288if test "$cross_compiling" != no; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}strip; ac_word=$2
a8b2ad8d 2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2294if test "${ac_cv_prog_STRIP+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 2296else
ec1a68c8 2297 if test -n "$STRIP"; then
2298 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2307 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311done
2312done
a8b2ad8d 2313IFS=$as_save_IFS
b3076f16 2314
ec1a68c8 2315fi
2316fi
2317STRIP=$ac_cv_prog_STRIP
2318if test -n "$STRIP"; then
a8b2ad8d 2319 { echo "$as_me:$LINENO: result: $STRIP" >&5
2320echo "${ECHO_T}$STRIP" >&6; }
b3076f16 2321else
a8b2ad8d 2322 { echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6; }
b3076f16 2324fi
b2cf3d66 2325
a8b2ad8d 2326
b3076f16 2327fi
ec1a68c8 2328if test -z "$ac_cv_prog_STRIP"; then
2329 ac_ct_STRIP=$STRIP
2330 # Extract the first word of "strip", so it can be a program name with args.
2331set dummy strip; ac_word=$2
a8b2ad8d 2332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2334if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337 if test -n "$ac_ct_STRIP"; then
2338 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2339else
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2347 ac_cv_prog_ac_ct_STRIP="strip"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2350 fi
2351done
2352done
a8b2ad8d 2353IFS=$as_save_IFS
b3076f16 2354
ec1a68c8 2355fi
2356fi
2357ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2358if test -n "$ac_ct_STRIP"; then
a8b2ad8d 2359 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2360echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b3076f16 2361else
a8b2ad8d 2362 { echo "$as_me:$LINENO: result: no" >&5
2363echo "${ECHO_T}no" >&6; }
b3076f16 2364fi
2365
a8b2ad8d 2366 if test "x$ac_ct_STRIP" = x; then
2367 STRIP=":"
2368 else
2369 case $cross_compiling:$ac_tool_warned in
2370yes:)
2371{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2372whose name does not start with the host triplet. If you think this
2373configuration is useful to you, please write to autoconf@gnu.org." >&5
2374echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2375whose name does not start with the host triplet. If you think this
2376configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2377ac_tool_warned=yes ;;
2378esac
2379 STRIP=$ac_ct_STRIP
2380 fi
b2cf3d66 2381else
ec1a68c8 2382 STRIP="$ac_cv_prog_STRIP"
b3076f16 2383fi
b3076f16 2384
ec1a68c8 2385fi
2f65da8f 2386INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
ec1a68c8 2387
2388# We need awk for the "check" target. The system "awk" is bad on
2389# some platforms.
2390# Always define AMTAR for backward compatibility.
2391
2392AMTAR=${AMTAR-"${am_missing_run}tar"}
2393
2394am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2395
2396
2397
2398
b3076f16 2399
a8b2ad8d 2400{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2401echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2402 # Check whether --enable-maintainer-mode was given.
b3076f16 2403if test "${enable_maintainer_mode+set}" = set; then
a8b2ad8d 2404 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2405else
2406 USE_MAINTAINER_MODE=no
a8b2ad8d 2407fi
2408
2409 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2410echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2f65da8f 2411 if test $USE_MAINTAINER_MODE = yes; then
b3076f16 2412 MAINTAINER_MODE_TRUE=
2413 MAINTAINER_MODE_FALSE='#'
2414else
2415 MAINTAINER_MODE_TRUE='#'
2416 MAINTAINER_MODE_FALSE=
2417fi
ec1a68c8 2418
b3076f16 2419 MAINT=$MAINTAINER_MODE_TRUE
2420
2421
2422
ec1a68c8 2423DEPDIR="${am__leading_dot}deps"
2424
a8b2ad8d 2425ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2426
2427
2428am_make=${MAKE-make}
2429cat > confinc << 'END'
2430am__doit:
2431 @echo done
2432.PHONY: am__doit
2433END
2434# If we don't find an include directive, just comment out the code.
a8b2ad8d 2435{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2436echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
ec1a68c8 2437am__include="#"
2438am__quote=
2439_am_result=none
2440# First try GNU make style include.
2441echo "include confinc" > confmf
2442# We grep out `Entering directory' and `Leaving directory'
2443# messages which can occur if `w' ends up in MAKEFLAGS.
2444# In particular we don't look at `^make:' because GNU make might
2445# be invoked under some other name (usually "gmake"), in which
2446# case it prints its new name instead of `make'.
2447if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2448 am__include=include
2449 am__quote=
2450 _am_result=GNU
2451fi
2452# Now try BSD make style include.
2453if test "$am__include" = "#"; then
2454 echo '.include "confinc"' > confmf
2455 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2456 am__include=.include
2457 am__quote="\""
2458 _am_result=BSD
2459 fi
2460fi
2461
2462
a8b2ad8d 2463{ echo "$as_me:$LINENO: result: $_am_result" >&5
2464echo "${ECHO_T}$_am_result" >&6; }
ec1a68c8 2465rm -f confinc confmf
2466
a8b2ad8d 2467# Check whether --enable-dependency-tracking was given.
ec1a68c8 2468if test "${enable_dependency_tracking+set}" = set; then
a8b2ad8d 2469 enableval=$enable_dependency_tracking;
2470fi
ec1a68c8 2471
ec1a68c8 2472if test "x$enable_dependency_tracking" != xno; then
2473 am_depcomp="$ac_aux_dir/depcomp"
2474 AMDEPBACKSLASH='\'
2475fi
2f65da8f 2476 if test "x$enable_dependency_tracking" != xno; then
ec1a68c8 2477 AMDEP_TRUE=
2478 AMDEP_FALSE='#'
2479else
2480 AMDEP_TRUE='#'
2481 AMDEP_FALSE=
2482fi
2483
2484
b3076f16 2485ac_ext=c
2486ac_cpp='$CPP $CPPFLAGS'
2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490if test -n "$ac_tool_prefix"; then
2491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2492set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 2493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2495if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500else
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512done
2513done
a8b2ad8d 2514IFS=$as_save_IFS
b3076f16 2515
2516fi
2517fi
2518CC=$ac_cv_prog_CC
2519if test -n "$CC"; then
a8b2ad8d 2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521echo "${ECHO_T}$CC" >&6; }
b3076f16 2522else
a8b2ad8d 2523 { echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6; }
b3076f16 2525fi
2526
a8b2ad8d 2527
b3076f16 2528fi
2529if test -z "$ac_cv_prog_CC"; then
2530 ac_ct_CC=$CC
2531 # Extract the first word of "gcc", so it can be a program name with args.
2532set dummy gcc; ac_word=$2
a8b2ad8d 2533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2535if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538 if test -n "$ac_ct_CC"; then
2539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2548 ac_cv_prog_ac_ct_CC="gcc"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552done
2553done
a8b2ad8d 2554IFS=$as_save_IFS
b3076f16 2555
2556fi
2557fi
2558ac_ct_CC=$ac_cv_prog_ac_ct_CC
2559if test -n "$ac_ct_CC"; then
a8b2ad8d 2560 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2561echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2562else
a8b2ad8d 2563 { echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6; }
b3076f16 2565fi
2566
a8b2ad8d 2567 if test "x$ac_ct_CC" = x; then
2568 CC=""
2569 else
2570 case $cross_compiling:$ac_tool_warned in
2571yes:)
2572{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2573whose name does not start with the host triplet. If you think this
2574configuration is useful to you, please write to autoconf@gnu.org." >&5
2575echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2576whose name does not start with the host triplet. If you think this
2577configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2578ac_tool_warned=yes ;;
2579esac
2580 CC=$ac_ct_CC
2581 fi
b3076f16 2582else
2583 CC="$ac_cv_prog_CC"
2584fi
2585
2586if test -z "$CC"; then
a8b2ad8d 2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 2589set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 2590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2592if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2605 ac_cv_prog_CC="${ac_tool_prefix}cc"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609done
2610done
a8b2ad8d 2611IFS=$as_save_IFS
b3076f16 2612
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
a8b2ad8d 2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
b3076f16 2619else
a8b2ad8d 2620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
b3076f16 2622fi
2623
b3076f16 2624
a8b2ad8d 2625 fi
b3076f16 2626fi
2627if test -z "$CC"; then
2628 # Extract the first word of "cc", so it can be a program name with args.
2629set dummy cc; ac_word=$2
a8b2ad8d 2630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2632if test "${ac_cv_prog_CC+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2637else
2638 ac_prog_rejected=no
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2647 ac_prog_rejected=yes
2648 continue
2649 fi
2650 ac_cv_prog_CC="cc"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654done
2655done
a8b2ad8d 2656IFS=$as_save_IFS
b3076f16 2657
2658if test $ac_prog_rejected = yes; then
2659 # We found a bogon in the path, so make sure we never use it.
2660 set dummy $ac_cv_prog_CC
2661 shift
2662 if test $# != 0; then
2663 # We chose a different compiler from the bogus one.
2664 # However, it has the same basename, so the bogon will be chosen
2665 # first if we set CC to just the basename; use the full file name.
2666 shift
2667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2668 fi
2669fi
2670fi
2671fi
2672CC=$ac_cv_prog_CC
2673if test -n "$CC"; then
a8b2ad8d 2674 { echo "$as_me:$LINENO: result: $CC" >&5
2675echo "${ECHO_T}$CC" >&6; }
b3076f16 2676else
a8b2ad8d 2677 { echo "$as_me:$LINENO: result: no" >&5
2678echo "${ECHO_T}no" >&6; }
b3076f16 2679fi
2680
a8b2ad8d 2681
b3076f16 2682fi
2683if test -z "$CC"; then
2684 if test -n "$ac_tool_prefix"; then
a8b2ad8d 2685 for ac_prog in cl.exe
b3076f16 2686 do
2687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 2689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2691if test "${ac_cv_prog_CC+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2693else
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708done
2709done
a8b2ad8d 2710IFS=$as_save_IFS
b3076f16 2711
2712fi
2713fi
2714CC=$ac_cv_prog_CC
2715if test -n "$CC"; then
a8b2ad8d 2716 { echo "$as_me:$LINENO: result: $CC" >&5
2717echo "${ECHO_T}$CC" >&6; }
b3076f16 2718else
a8b2ad8d 2719 { echo "$as_me:$LINENO: result: no" >&5
2720echo "${ECHO_T}no" >&6; }
b3076f16 2721fi
2722
a8b2ad8d 2723
b3076f16 2724 test -n "$CC" && break
2725 done
2726fi
2727if test -z "$CC"; then
2728 ac_ct_CC=$CC
a8b2ad8d 2729 for ac_prog in cl.exe
b3076f16 2730do
2731 # Extract the first word of "$ac_prog", so it can be a program name with args.
2732set dummy $ac_prog; ac_word=$2
a8b2ad8d 2733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2748 ac_cv_prog_ac_ct_CC="$ac_prog"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753done
a8b2ad8d 2754IFS=$as_save_IFS
b3076f16 2755
2756fi
2757fi
2758ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759if test -n "$ac_ct_CC"; then
a8b2ad8d 2760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2762else
a8b2ad8d 2763 { echo "$as_me:$LINENO: result: no" >&5
2764echo "${ECHO_T}no" >&6; }
b3076f16 2765fi
2766
a8b2ad8d 2767
b3076f16 2768 test -n "$ac_ct_CC" && break
2769done
2770
a8b2ad8d 2771 if test "x$ac_ct_CC" = x; then
2772 CC=""
2773 else
2774 case $cross_compiling:$ac_tool_warned in
2775yes:)
2776{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2777whose name does not start with the host triplet. If you think this
2778configuration is useful to you, please write to autoconf@gnu.org." >&5
2779echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2780whose name does not start with the host triplet. If you think this
2781configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2782ac_tool_warned=yes ;;
2783esac
2784 CC=$ac_ct_CC
2785 fi
b3076f16 2786fi
2787
2788fi
2789
2790
2791test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2792See \`config.log' for more details." >&5
2793echo "$as_me: error: no acceptable C compiler found in \$PATH
2794See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2796
2797# Provide some information about the compiler.
a8b2ad8d 2798echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 2799ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 2800{ (ac_try="$ac_compiler --version >&5"
2801case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }
a8b2ad8d 2810{ (ac_try="$ac_compiler -v >&5"
2811case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814esac
2815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }
a8b2ad8d 2820{ (ac_try="$ac_compiler -V >&5"
2821case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824esac
2825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830
2831cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h. */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h. */
2837
2838int
2839main ()
2840{
2841
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846ac_clean_files_save=$ac_clean_files
2847ac_clean_files="$ac_clean_files a.out a.exe b.out"
2848# Try to create an executable without -o first, disregard a.out.
2849# It will help us diagnose broken compilers, and finding out an intuition
2850# of exeext.
a8b2ad8d 2851{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2852echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b3076f16 2853ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a8b2ad8d 2854#
2855# List of possible output files, starting from the most likely.
2856# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2857# only as a last resort. b.out is created by i960 compilers.
2858ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2859#
2860# The IRIX 6 linker writes into existing files which may not be
2861# executable, retaining their permissions. Remove them first so a
2862# subsequent execution test works.
2863ac_rmfiles=
2864for ac_file in $ac_files
2865do
2866 case $ac_file in
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2869 esac
2870done
2871rm -f $ac_rmfiles
2872
2873if { (ac_try="$ac_link_default"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_link_default") 2>&5
b3076f16 2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; then
a8b2ad8d 2883 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2884# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2885# in a Makefile. We should not override ac_cv_exeext if it was cached,
2886# so that the user can short-circuit this test for compilers unknown to
2887# Autoconf.
0bd0bef6 2888for ac_file in $ac_files ''
b3076f16 2889do
2890 test -f "$ac_file" || continue
2891 case $ac_file in
a8b2ad8d 2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b3076f16 2893 ;;
2894 [ab].out )
2895 # We found the default executable, but exeext='' is most
2896 # certainly right.
2897 break;;
2898 *.* )
a8b2ad8d 2899 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2900 then :; else
2901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 fi
2903 # We set ac_cv_exeext here because the later test for it is not
2904 # safe: cross compilers may not add the suffix if given an `-o'
2905 # argument, so we may need to know it at that point already.
2906 # Even if this section looks crufty: it has the advantage of
2907 # actually working.
b3076f16 2908 break;;
2909 * )
2910 break;;
2911 esac
2912done
a8b2ad8d 2913test "$ac_cv_exeext" = no && ac_cv_exeext=
2914
b3076f16 2915else
0bd0bef6 2916 ac_file=''
2917fi
2918
2919{ echo "$as_me:$LINENO: result: $ac_file" >&5
2920echo "${ECHO_T}$ac_file" >&6; }
2921if test -z "$ac_file"; then
b3076f16 2922 echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2926See \`config.log' for more details." >&5
2927echo "$as_me: error: C compiler cannot create executables
2928See \`config.log' for more details." >&2;}
2929 { (exit 77); exit 77; }; }
2930fi
2931
2932ac_exeext=$ac_cv_exeext
b3076f16 2933
a8b2ad8d 2934# Check that the compiler produces executables we can run. If not, either
b3076f16 2935# the compiler is broken, or we cross compile.
a8b2ad8d 2936{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2937echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b3076f16 2938# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2939# If not cross compiling, check that we can run a simple program.
2940if test "$cross_compiling" != yes; then
2941 if { ac_try='./$ac_file'
a8b2ad8d 2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
b3076f16 2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2951 cross_compiling=no
2952 else
2953 if test "$cross_compiling" = maybe; then
2954 cross_compiling=yes
2955 else
2956 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2957If you meant to cross compile, use \`--host'.
2958See \`config.log' for more details." >&5
2959echo "$as_me: error: cannot run C compiled programs.
2960If you meant to cross compile, use \`--host'.
2961See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2963 fi
2964 fi
2965fi
a8b2ad8d 2966{ echo "$as_me:$LINENO: result: yes" >&5
2967echo "${ECHO_T}yes" >&6; }
b3076f16 2968
2969rm -f a.out a.exe conftest$ac_cv_exeext b.out
2970ac_clean_files=$ac_clean_files_save
a8b2ad8d 2971# Check that the compiler produces executables we can run. If not, either
b3076f16 2972# the compiler is broken, or we cross compile.
a8b2ad8d 2973{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2974echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2975{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2976echo "${ECHO_T}$cross_compiling" >&6; }
2977
2978{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2979echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2980if { (ac_try="$ac_link"
2981case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_link") 2>&5
b3076f16 2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2992# work properly (i.e., refer to `conftest.exe'), while it won't with
2993# `rm'.
2994for ac_file in conftest.exe conftest conftest.*; do
2995 test -f "$ac_file" || continue
2996 case $ac_file in
a8b2ad8d 2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b3076f16 2998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 2999 break;;
3000 * ) break;;
3001 esac
3002done
3003else
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3005See \`config.log' for more details." >&5
3006echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3007See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
3009fi
3010
3011rm -f conftest$ac_cv_exeext
a8b2ad8d 3012{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3013echo "${ECHO_T}$ac_cv_exeext" >&6; }
b3076f16 3014
3015rm -f conftest.$ac_ext
3016EXEEXT=$ac_cv_exeext
3017ac_exeext=$EXEEXT
a8b2ad8d 3018{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3019echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b3076f16 3020if test "${ac_cv_objext+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h. */
3029
3030int
3031main ()
3032{
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.o conftest.obj
a8b2ad8d 3039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>&5
b3076f16 3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; then
a8b2ad8d 3049 for ac_file in conftest.o conftest.obj conftest.*; do
3050 test -f "$ac_file" || continue;
b3076f16 3051 case $ac_file in
a8b2ad8d 3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b3076f16 3053 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3054 break;;
3055 esac
3056done
3057else
3058 echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
3061{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3062See \`config.log' for more details." >&5
3063echo "$as_me: error: cannot compute suffix of object files: cannot compile
3064See \`config.log' for more details." >&2;}
3065 { (exit 1); exit 1; }; }
3066fi
3067
3068rm -f conftest.$ac_cv_objext conftest.$ac_ext
3069fi
a8b2ad8d 3070{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3071echo "${ECHO_T}$ac_cv_objext" >&6; }
b3076f16 3072OBJEXT=$ac_cv_objext
3073ac_objext=$OBJEXT
a8b2ad8d 3074{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3075echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 3076if test "${ac_cv_c_compiler_gnu+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085
3086int
3087main ()
3088{
3089#ifndef __GNUC__
3090 choke me
3091#endif
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext
a8b2ad8d 3098if { (ac_try="$ac_compile"
3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
b3076f16 3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
b3076f16 3114 ac_compiler_gnu=yes
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
a8b2ad8d 3119 ac_compiler_gnu=no
b3076f16 3120fi
a8b2ad8d 3121
3122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3123ac_cv_c_compiler_gnu=$ac_compiler_gnu
3124
3125fi
a8b2ad8d 3126{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3127echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 3128GCC=`test $ac_compiler_gnu = yes && echo yes`
3129ac_test_CFLAGS=${CFLAGS+set}
3130ac_save_CFLAGS=$CFLAGS
a8b2ad8d 3131{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3132echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 3133if test "${ac_cv_prog_cc_g+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135else
a8b2ad8d 3136 ac_save_c_werror_flag=$ac_c_werror_flag
3137 ac_c_werror_flag=yes
3138 ac_cv_prog_cc_g=no
3139 CFLAGS="-g"
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (ac_try="$ac_compile"
3157case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3168 (exit $ac_status); } && {
3169 test -z "$ac_c_werror_flag" ||
3170 test ! -s conftest.err
3171 } && test -s conftest.$ac_objext; then
a8b2ad8d 3172 ac_cv_prog_cc_g=yes
3173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 CFLAGS=""
3178 cat >conftest.$ac_ext <<_ACEOF
3179/* confdefs.h. */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h. */
3184
3185int
3186main ()
3187{
3188
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext
3194if { (ac_try="$ac_compile"
3195case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3206 (exit $ac_status); } && {
3207 test -z "$ac_c_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.$ac_objext; then
a8b2ad8d 3210 :
3211else
3212 echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 ac_c_werror_flag=$ac_save_c_werror_flag
3216 CFLAGS="-g"
3217 cat >conftest.$ac_ext <<_ACEOF
b3076f16 3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
3232rm -f conftest.$ac_objext
a8b2ad8d 3233if { (ac_try="$ac_compile"
3234case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
3238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_compile") 2>conftest.er1
b3076f16 3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3245 (exit $ac_status); } && {
3246 test -z "$ac_c_werror_flag" ||
3247 test ! -s conftest.err
3248 } && test -s conftest.$ac_objext; then
b3076f16 3249 ac_cv_prog_cc_g=yes
3250else
3251 echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
a8b2ad8d 3254
3255fi
3256
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258fi
3259
3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3261fi
a8b2ad8d 3262
3263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3265fi
a8b2ad8d 3266{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3267echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 3268if test "$ac_test_CFLAGS" = set; then
3269 CFLAGS=$ac_save_CFLAGS
3270elif test $ac_cv_prog_cc_g = yes; then
3271 if test "$GCC" = yes; then
3272 CFLAGS="-g -O2"
3273 else
3274 CFLAGS="-g"
3275 fi
3276else
3277 if test "$GCC" = yes; then
3278 CFLAGS="-O2"
3279 else
3280 CFLAGS=
3281 fi
3282fi
a8b2ad8d 3283{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3284echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3285if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287else
a8b2ad8d 3288 ac_cv_prog_cc_c89=no
b3076f16 3289ac_save_CC=$CC
3290cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h. */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h. */
3296#include <stdarg.h>
3297#include <stdio.h>
3298#include <sys/types.h>
3299#include <sys/stat.h>
3300/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3301struct buf { int x; };
3302FILE * (*rcsopen) (struct buf *, struct stat *, int);
3303static char *e (p, i)
3304 char **p;
3305 int i;
3306{
3307 return p[i];
3308}
3309static char *f (char * (*g) (char **, int), char **p, ...)
3310{
3311 char *s;
3312 va_list v;
3313 va_start (v,p);
3314 s = g (p, va_arg (v,int));
3315 va_end (v);
3316 return s;
3317}
3318
3319/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3320 function prototypes and stuff, but not '\xHH' hex character constants.
3321 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3322 as 'x'. The following induces an error, until -std is added to get
b3076f16 3323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3324 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3325 that's true only with -std. */
b3076f16 3326int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3327
a8b2ad8d 3328/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3329 inside strings and character constants. */
3330#define FOO(x) 'x'
3331int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3332
b3076f16 3333int test (int i, double x);
3334struct s1 {int (*f) (int a);};
3335struct s2 {int (*f) (double a);};
3336int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337int argc;
3338char **argv;
3339int
3340main ()
3341{
3342return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3343 ;
3344 return 0;
3345}
3346_ACEOF
a8b2ad8d 3347for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3349do
3350 CC="$ac_save_CC $ac_arg"
3351 rm -f conftest.$ac_objext
a8b2ad8d 3352if { (ac_try="$ac_compile"
3353case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356esac
3357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compile") 2>conftest.er1
b3076f16 3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.$ac_objext; then
a8b2ad8d 3368 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3369else
3370 echo "$as_me: failed program was:" >&5
3371sed 's/^/| /' conftest.$ac_ext >&5
3372
a8b2ad8d 3373
b3076f16 3374fi
a8b2ad8d 3375
3376rm -f core conftest.err conftest.$ac_objext
3377 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3378done
a8b2ad8d 3379rm -f conftest.$ac_ext
b3076f16 3380CC=$ac_save_CC
3381
3382fi
a8b2ad8d 3383# AC_CACHE_VAL
3384case "x$ac_cv_prog_cc_c89" in
3385 x)
3386 { echo "$as_me:$LINENO: result: none needed" >&5
3387echo "${ECHO_T}none needed" >&6; } ;;
3388 xno)
3389 { echo "$as_me:$LINENO: result: unsupported" >&5
3390echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 3391 *)
a8b2ad8d 3392 CC="$CC $ac_cv_prog_cc_c89"
3393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3394echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3395esac
3396
b3076f16 3397
b3076f16 3398ac_ext=c
3399ac_cpp='$CPP $CPPFLAGS'
3400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403
ec1a68c8 3404depcc="$CC" am_compiler_list=
3405
a8b2ad8d 3406{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3407echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 3408if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3412 # We make a subdir and do the tests there. Otherwise we can end up
3413 # making bogus files that we don't know about and never remove. For
3414 # instance it was reported that on HP-UX the gcc test will end up
3415 # making a dummy file named `D' -- because `-MD' means `put the output
3416 # in D'.
3417 mkdir conftest.dir
3418 # Copy depcomp to subdir because otherwise we won't find it if we're
3419 # using a relative directory.
3420 cp "$am_depcomp" conftest.dir
3421 cd conftest.dir
3422 # We will build objects and dependencies in a subdirectory because
3423 # it helps to detect inapplicable dependency modes. For instance
3424 # both Tru64's cc and ICC support -MD to output dependencies as a
3425 # side effect of compilation, but ICC will put the dependencies in
3426 # the current directory while Tru64 will put them in the object
3427 # directory.
3428 mkdir sub
3429
3430 am_cv_CC_dependencies_compiler_type=none
3431 if test "$am_compiler_list" = ""; then
3432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3433 fi
3434 for depmode in $am_compiler_list; do
3435 # Setup a source with many dependencies, because some compilers
3436 # like to wrap large dependency lists on column 80 (with \), and
3437 # we should not choose a depcomp mode which is confused by this.
3438 #
3439 # We need to recreate these files for each test, as the compiler may
3440 # overwrite some of them when testing with obscure command lines.
3441 # This happens at least with the AIX C compiler.
3442 : > sub/conftest.c
3443 for i in 1 2 3 4 5 6; do
3444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446 # Solaris 8's {/usr,}/bin/sh.
3447 touch sub/conftst$i.h
3448 done
3449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450
3451 case $depmode in
3452 nosideeffect)
3453 # after this tag, mechanisms are not by side-effect, so they'll
3454 # only be used when explicitly requested
3455 if test "x$enable_dependency_tracking" = xyes; then
3456 continue
3457 else
3458 break
3459 fi
3460 ;;
3461 none) break ;;
3462 esac
3463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464 # mode. It turns out that the SunPro C++ compiler does not properly
3465 # handle `-M -o', and we need to detect this.
3466 if depmode=$depmode \
3467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3470 >/dev/null 2>conftest.err &&
2f65da8f 3471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 3472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3473 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3475 # icc doesn't choke on unknown options, it will just issue warnings
3476 # or remarks (even with -Werror). So we grep stderr for any message
3477 # that says an option was ignored or not supported.
3478 # When given -MP, icc 7.0 and 7.1 complain thusly:
3479 # icc: Command line warning: ignoring option '-M'; no argument required
3480 # The diagnosis changed in icc 8.0:
3481 # icc: Command line remark: option '-MP' not supported
3482 if (grep 'ignoring option' conftest.err ||
3483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3484 am_cv_CC_dependencies_compiler_type=$depmode
3485 break
3486 fi
3487 fi
3488 done
3489
3490 cd ..
3491 rm -rf conftest.dir
3492else
3493 am_cv_CC_dependencies_compiler_type=none
3494fi
3495
3496fi
a8b2ad8d 3497{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3498echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3499CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3500
2f65da8f 3501 if
ec1a68c8 3502 test "x$enable_dependency_tracking" != xno \
3503 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3504 am__fastdepCC_TRUE=
3505 am__fastdepCC_FALSE='#'
3506else
3507 am__fastdepCC_TRUE='#'
3508 am__fastdepCC_FALSE=
3509fi
3510
3511
b3076f16 3512
a8b2ad8d 3513{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3514echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
b3076f16 3515if test "${ac_cv_type_signal+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518 cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524#include <sys/types.h>
3525#include <signal.h>
b3076f16 3526
3527int
3528main ()
3529{
a8b2ad8d 3530return *(signal (0, 0)) (0) == 1;
b3076f16 3531 ;
3532 return 0;
3533}
3534_ACEOF
3535rm -f conftest.$ac_objext
a8b2ad8d 3536if { (ac_try="$ac_compile"
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compile") 2>conftest.er1
b3076f16 3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest.$ac_objext; then
a8b2ad8d 3552 ac_cv_type_signal=int
b3076f16 3553else
3554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
a8b2ad8d 3557 ac_cv_type_signal=void
b3076f16 3558fi
a8b2ad8d 3559
3560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3561fi
a8b2ad8d 3562{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3563echo "${ECHO_T}$ac_cv_type_signal" >&6; }
b3076f16 3564
3565cat >>confdefs.h <<_ACEOF
3566#define RETSIGTYPE $ac_cv_type_signal
3567_ACEOF
3568
3569
a8b2ad8d 3570{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3571echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
b3076f16 3572if test "${ac_cv_c_const+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575 cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h. */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h. */
3581
3582int
3583main ()
3584{
3585/* FIXME: Include the comments suggested by Paul. */
3586#ifndef __cplusplus
3587 /* Ultrix mips cc rejects this. */
3588 typedef int charset[2];
0bd0bef6 3589 const charset cs;
b3076f16 3590 /* SunOS 4.1.1 cc rejects this. */
0bd0bef6 3591 char const *const *pcpcc;
3592 char **ppc;
b3076f16 3593 /* NEC SVR4.0.2 mips cc rejects this. */
3594 struct point {int x, y;};
3595 static struct point const zero = {0,0};
3596 /* AIX XL C 1.02.0.0 rejects this.
3597 It does not let you subtract one const X* pointer from another in
3598 an arm of an if-expression whose if-part is not a constant
3599 expression */
3600 const char *g = "string";
0bd0bef6 3601 pcpcc = &g + (g ? g-g : 0);
b3076f16 3602 /* HPUX 7.0 cc rejects these. */
0bd0bef6 3603 ++pcpcc;
3604 ppc = (char**) pcpcc;
3605 pcpcc = (char const *const *) ppc;
b3076f16 3606 { /* SCO 3.2v4 cc rejects this. */
3607 char *t;
3608 char const *s = 0 ? (char *) 0 : (char const *) 0;
3609
3610 *t++ = 0;
a8b2ad8d 3611 if (s) return 0;
b3076f16 3612 }
3613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3614 int x[] = {25, 17};
3615 const int *foo = &x[0];
3616 ++foo;
3617 }
3618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3619 typedef const int *iptr;
3620 iptr p = 0;
3621 ++p;
3622 }
3623 { /* AIX XL C 1.02.0.0 rejects this saying
3624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3625 struct s { int j; const int *ap[3]; };
3626 struct s *b; b->j = 5;
3627 }
3628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3629 const int foo = 10;
a8b2ad8d 3630 if (!foo) return 0;
b3076f16 3631 }
0bd0bef6 3632 return !cs[0] && !zero.x;
b3076f16 3633#endif
3634
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639rm -f conftest.$ac_objext
a8b2ad8d 3640if { (ac_try="$ac_compile"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_compile") 2>conftest.er1
b3076f16 3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
b3076f16 3656 ac_cv_c_const=yes
3657else
3658 echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
a8b2ad8d 3661 ac_cv_c_const=no
b3076f16 3662fi
a8b2ad8d 3663
3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3665fi
a8b2ad8d 3666{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3667echo "${ECHO_T}$ac_cv_c_const" >&6; }
b3076f16 3668if test $ac_cv_c_const = no; then
3669
3670cat >>confdefs.h <<\_ACEOF
3671#define const
3672_ACEOF
3673
3674fi
3675
0f6fe38c 3676{ echo "$as_me:$LINENO: checking for inline" >&5
3677echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3678if test "${ac_cv_c_inline+set}" = set; then
b3076f16 3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
0f6fe38c 3681 ac_cv_c_inline=no
3682for ac_kw in inline __inline__ __inline; do
3683 cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h. */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h. */
3689#ifndef __cplusplus
3690typedef int foo_t;
3691static $ac_kw foo_t static_foo () {return 0; }
3692$ac_kw foo_t foo () {return 0; }
3693#endif
3694
3695_ACEOF
3696rm -f conftest.$ac_objext
3697if { (ac_try="$ac_compile"
3698case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701esac
3702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
0f6fe38c 3713 ac_cv_c_inline=$ac_kw
3714else
3715 echo "$as_me: failed program was:" >&5
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3718
3719fi
3720
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 test "$ac_cv_c_inline" != no && break
3723done
3724
3725fi
3726{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3727echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3728
3729
3730case $ac_cv_c_inline in
3731 inline | yes) ;;
3732 *)
3733 case $ac_cv_c_inline in
3734 no) ac_val=;;
3735 *) ac_val=$ac_cv_c_inline;;
3736 esac
3737 cat >>confdefs.h <<_ACEOF
3738#ifndef __cplusplus
3739#define inline $ac_val
3740#endif
3741_ACEOF
3742 ;;
3743esac
3744
3745
3746for ac_prog in gawk mawk nawk awk
3747do
3748 # Extract the first word of "$ac_prog", so it can be a program name with args.
3749set dummy $ac_prog; ac_word=$2
3750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3752if test "${ac_cv_prog_AWK+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755 if test -n "$AWK"; then
3756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3757else
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH
3760do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0f6fe38c 3765 ac_cv_prog_AWK="$ac_prog"
3766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3768 fi
3769done
3770done
3771IFS=$as_save_IFS
3772
3773fi
3774fi
3775AWK=$ac_cv_prog_AWK
3776if test -n "$AWK"; then
3777 { echo "$as_me:$LINENO: result: $AWK" >&5
3778echo "${ECHO_T}$AWK" >&6; }
3779else
3780 { echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6; }
3782fi
b3076f16 3783
a8b2ad8d 3784
b3076f16 3785 test -n "$AWK" && break
3786done
3787
3788ac_ext=c
3789ac_cpp='$CPP $CPPFLAGS'
3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3795set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 3796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3798if test "${ac_cv_prog_CC+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3811 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
a8b2ad8d 3817IFS=$as_save_IFS
b3076f16 3818
3819fi
3820fi
3821CC=$ac_cv_prog_CC
3822if test -n "$CC"; then
a8b2ad8d 3823 { echo "$as_me:$LINENO: result: $CC" >&5
3824echo "${ECHO_T}$CC" >&6; }
b3076f16 3825else
a8b2ad8d 3826 { echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6; }
b3076f16 3828fi
3829
a8b2ad8d 3830
b3076f16 3831fi
3832if test -z "$ac_cv_prog_CC"; then
3833 ac_ct_CC=$CC
3834 # Extract the first word of "gcc", so it can be a program name with args.
3835set dummy gcc; ac_word=$2
a8b2ad8d 3836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3838if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 if test -n "$ac_ct_CC"; then
3842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3851 ac_cv_prog_ac_ct_CC="gcc"
3852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855done
3856done
a8b2ad8d 3857IFS=$as_save_IFS
b3076f16 3858
3859fi
3860fi
3861ac_ct_CC=$ac_cv_prog_ac_ct_CC
3862if test -n "$ac_ct_CC"; then
a8b2ad8d 3863 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3864echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 3865else
a8b2ad8d 3866 { echo "$as_me:$LINENO: result: no" >&5
3867echo "${ECHO_T}no" >&6; }
b3076f16 3868fi
3869
a8b2ad8d 3870 if test "x$ac_ct_CC" = x; then
3871 CC=""
3872 else
3873 case $cross_compiling:$ac_tool_warned in
3874yes:)
3875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3876whose name does not start with the host triplet. If you think this
3877configuration is useful to you, please write to autoconf@gnu.org." >&5
3878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3879whose name does not start with the host triplet. If you think this
3880configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3881ac_tool_warned=yes ;;
3882esac
3883 CC=$ac_ct_CC
3884 fi
b3076f16 3885else
3886 CC="$ac_cv_prog_CC"
3887fi
3888
3889if test -z "$CC"; then
a8b2ad8d 3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3892set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 3893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3895if test "${ac_cv_prog_CC+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3908 ac_cv_prog_CC="${ac_tool_prefix}cc"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912done
3913done
a8b2ad8d 3914IFS=$as_save_IFS
b3076f16 3915
3916fi
3917fi
3918CC=$ac_cv_prog_CC
3919if test -n "$CC"; then
a8b2ad8d 3920 { echo "$as_me:$LINENO: result: $CC" >&5
3921echo "${ECHO_T}$CC" >&6; }
b3076f16 3922else
a8b2ad8d 3923 { echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6; }
b3076f16 3925fi
3926
b3076f16 3927
a8b2ad8d 3928 fi
b3076f16 3929fi
3930if test -z "$CC"; then
3931 # Extract the first word of "cc", so it can be a program name with args.
3932set dummy cc; ac_word=$2
a8b2ad8d 3933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3935if test "${ac_cv_prog_CC+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC="$CC" # Let the user override the test.
3940else
3941 ac_prog_rejected=no
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3949 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3950 ac_prog_rejected=yes
3951 continue
3952 fi
3953 ac_cv_prog_CC="cc"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957done
3958done
a8b2ad8d 3959IFS=$as_save_IFS
b3076f16 3960
3961if test $ac_prog_rejected = yes; then
3962 # We found a bogon in the path, so make sure we never use it.
3963 set dummy $ac_cv_prog_CC
3964 shift
3965 if test $# != 0; then
3966 # We chose a different compiler from the bogus one.
3967 # However, it has the same basename, so the bogon will be chosen
3968 # first if we set CC to just the basename; use the full file name.
3969 shift
3970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3971 fi
3972fi
3973fi
3974fi
3975CC=$ac_cv_prog_CC
3976if test -n "$CC"; then
a8b2ad8d 3977 { echo "$as_me:$LINENO: result: $CC" >&5
3978echo "${ECHO_T}$CC" >&6; }
b3076f16 3979else
a8b2ad8d 3980 { echo "$as_me:$LINENO: result: no" >&5
3981echo "${ECHO_T}no" >&6; }
b3076f16 3982fi
3983
a8b2ad8d 3984
b3076f16 3985fi
3986if test -z "$CC"; then
3987 if test -n "$ac_tool_prefix"; then
a8b2ad8d 3988 for ac_prog in cl.exe
b3076f16 3989 do
3990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3991set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 3992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3994if test "${ac_cv_prog_CC+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997 if test -n "$CC"; then
3998 ac_cv_prog_CC="$CC" # Let the user override the test.
3999else
4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4007 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011done
4012done
a8b2ad8d 4013IFS=$as_save_IFS
b3076f16 4014
4015fi
4016fi
4017CC=$ac_cv_prog_CC
4018if test -n "$CC"; then
a8b2ad8d 4019 { echo "$as_me:$LINENO: result: $CC" >&5
4020echo "${ECHO_T}$CC" >&6; }
b3076f16 4021else
a8b2ad8d 4022 { echo "$as_me:$LINENO: result: no" >&5
4023echo "${ECHO_T}no" >&6; }
b3076f16 4024fi
4025
a8b2ad8d 4026
b3076f16 4027 test -n "$CC" && break
4028 done
4029fi
4030if test -z "$CC"; then
4031 ac_ct_CC=$CC
a8b2ad8d 4032 for ac_prog in cl.exe
b3076f16 4033do
4034 # Extract the first word of "$ac_prog", so it can be a program name with args.
4035set dummy $ac_prog; ac_word=$2
a8b2ad8d 4036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4038if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 if test -n "$ac_ct_CC"; then
4042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4043else
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4051 ac_cv_prog_ac_ct_CC="$ac_prog"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055done
4056done
a8b2ad8d 4057IFS=$as_save_IFS
b3076f16 4058
4059fi
4060fi
4061ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062if test -n "$ac_ct_CC"; then
a8b2ad8d 4063 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4064echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 4065else
a8b2ad8d 4066 { echo "$as_me:$LINENO: result: no" >&5
4067echo "${ECHO_T}no" >&6; }
b3076f16 4068fi
4069
a8b2ad8d 4070
b3076f16 4071 test -n "$ac_ct_CC" && break
4072done
4073
a8b2ad8d 4074 if test "x$ac_ct_CC" = x; then
4075 CC=""
4076 else
4077 case $cross_compiling:$ac_tool_warned in
4078yes:)
4079{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4080whose name does not start with the host triplet. If you think this
4081configuration is useful to you, please write to autoconf@gnu.org." >&5
4082echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4083whose name does not start with the host triplet. If you think this
4084configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4085ac_tool_warned=yes ;;
4086esac
4087 CC=$ac_ct_CC
4088 fi
b3076f16 4089fi
4090
4091fi
4092
4093
4094test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4095See \`config.log' for more details." >&5
4096echo "$as_me: error: no acceptable C compiler found in \$PATH
4097See \`config.log' for more details." >&2;}
4098 { (exit 1); exit 1; }; }
4099
4100# Provide some information about the compiler.
a8b2ad8d 4101echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 4102ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 4103{ (ac_try="$ac_compiler --version >&5"
4104case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
4108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }
a8b2ad8d 4113{ (ac_try="$ac_compiler -v >&5"
4114case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }
a8b2ad8d 4123{ (ac_try="$ac_compiler -V >&5"
4124case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }
4133
a8b2ad8d 4134{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4135echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 4136if test "${ac_cv_c_compiler_gnu+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139 cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
4144/* end confdefs.h. */
4145
4146int
4147main ()
4148{
4149#ifndef __GNUC__
4150 choke me
4151#endif
4152
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157rm -f conftest.$ac_objext
a8b2ad8d 4158if { (ac_try="$ac_compile"
4159case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
b3076f16 4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4170 (exit $ac_status); } && {
4171 test -z "$ac_c_werror_flag" ||
4172 test ! -s conftest.err
4173 } && test -s conftest.$ac_objext; then
b3076f16 4174 ac_compiler_gnu=yes
4175else
4176 echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
a8b2ad8d 4179 ac_compiler_gnu=no
b3076f16 4180fi
a8b2ad8d 4181
4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4183ac_cv_c_compiler_gnu=$ac_compiler_gnu
4184
4185fi
a8b2ad8d 4186{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4187echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 4188GCC=`test $ac_compiler_gnu = yes && echo yes`
4189ac_test_CFLAGS=${CFLAGS+set}
4190ac_save_CFLAGS=$CFLAGS
a8b2ad8d 4191{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4192echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 4193if test "${ac_cv_prog_cc_g+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
a8b2ad8d 4196 ac_save_c_werror_flag=$ac_c_werror_flag
4197 ac_c_werror_flag=yes
4198 ac_cv_prog_cc_g=no
4199 CFLAGS="-g"
4200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206
4207int
4208main ()
4209{
4210
4211 ;
4212 return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext
4216if { (ac_try="$ac_compile"
4217case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_compile") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4228 (exit $ac_status); } && {
4229 test -z "$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4231 } && test -s conftest.$ac_objext; then
a8b2ad8d 4232 ac_cv_prog_cc_g=yes
4233else
4234 echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 CFLAGS=""
4238 cat >conftest.$ac_ext <<_ACEOF
4239/* confdefs.h. */
4240_ACEOF
4241cat confdefs.h >>conftest.$ac_ext
4242cat >>conftest.$ac_ext <<_ACEOF
4243/* end confdefs.h. */
4244
4245int
4246main ()
4247{
4248
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext
4254if { (ac_try="$ac_compile"
4255case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
4259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_compile") 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4266 (exit $ac_status); } && {
4267 test -z "$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4269 } && test -s conftest.$ac_objext; then
a8b2ad8d 4270 :
4271else
4272 echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 ac_c_werror_flag=$ac_save_c_werror_flag
4276 CFLAGS="-g"
4277 cat >conftest.$ac_ext <<_ACEOF
b3076f16 4278/* confdefs.h. */
4279_ACEOF
4280cat confdefs.h >>conftest.$ac_ext
4281cat >>conftest.$ac_ext <<_ACEOF
4282/* end confdefs.h. */
4283
4284int
4285main ()
4286{
4287
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext
a8b2ad8d 4293if { (ac_try="$ac_compile"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
b3076f16 4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4305 (exit $ac_status); } && {
4306 test -z "$ac_c_werror_flag" ||
4307 test ! -s conftest.err
4308 } && test -s conftest.$ac_objext; then
b3076f16 4309 ac_cv_prog_cc_g=yes
4310else
4311 echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
a8b2ad8d 4314
4315fi
4316
4317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318fi
4319
4320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4321fi
a8b2ad8d 4322
4323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4325fi
a8b2ad8d 4326{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4327echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 4328if test "$ac_test_CFLAGS" = set; then
4329 CFLAGS=$ac_save_CFLAGS
4330elif test $ac_cv_prog_cc_g = yes; then
4331 if test "$GCC" = yes; then
4332 CFLAGS="-g -O2"
4333 else
4334 CFLAGS="-g"
4335 fi
4336else
4337 if test "$GCC" = yes; then
4338 CFLAGS="-O2"
4339 else
4340 CFLAGS=
4341 fi
4342fi
a8b2ad8d 4343{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4344echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4345if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
a8b2ad8d 4348 ac_cv_prog_cc_c89=no
b3076f16 4349ac_save_CC=$CC
4350cat >conftest.$ac_ext <<_ACEOF
4351/* confdefs.h. */
4352_ACEOF
4353cat confdefs.h >>conftest.$ac_ext
4354cat >>conftest.$ac_ext <<_ACEOF
4355/* end confdefs.h. */
4356#include <stdarg.h>
4357#include <stdio.h>
4358#include <sys/types.h>
4359#include <sys/stat.h>
4360/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4361struct buf { int x; };
4362FILE * (*rcsopen) (struct buf *, struct stat *, int);
4363static char *e (p, i)
4364 char **p;
4365 int i;
4366{
4367 return p[i];
4368}
4369static char *f (char * (*g) (char **, int), char **p, ...)
4370{
4371 char *s;
4372 va_list v;
4373 va_start (v,p);
4374 s = g (p, va_arg (v,int));
4375 va_end (v);
4376 return s;
4377}
4378
4379/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4380 function prototypes and stuff, but not '\xHH' hex character constants.
4381 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4382 as 'x'. The following induces an error, until -std is added to get
b3076f16 4383 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4384 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4385 that's true only with -std. */
b3076f16 4386int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4387
a8b2ad8d 4388/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4389 inside strings and character constants. */
4390#define FOO(x) 'x'
4391int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4392
b3076f16 4393int test (int i, double x);
4394struct s1 {int (*f) (int a);};
4395struct s2 {int (*f) (double a);};
4396int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4397int argc;
4398char **argv;
4399int
4400main ()
4401{
4402return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4403 ;
4404 return 0;
4405}
4406_ACEOF
a8b2ad8d 4407for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4408 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4409do
4410 CC="$ac_save_CC $ac_arg"
4411 rm -f conftest.$ac_objext
a8b2ad8d 4412if { (ac_try="$ac_compile"
4413case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_compile") 2>conftest.er1
b3076f16 4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
a8b2ad8d 4428 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
a8b2ad8d 4433
b3076f16 4434fi
a8b2ad8d 4435
4436rm -f core conftest.err conftest.$ac_objext
4437 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4438done
a8b2ad8d 4439rm -f conftest.$ac_ext
b3076f16 4440CC=$ac_save_CC
4441
4442fi
a8b2ad8d 4443# AC_CACHE_VAL
4444case "x$ac_cv_prog_cc_c89" in
4445 x)
4446 { echo "$as_me:$LINENO: result: none needed" >&5
4447echo "${ECHO_T}none needed" >&6; } ;;
4448 xno)
4449 { echo "$as_me:$LINENO: result: unsupported" >&5
4450echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 4451 *)
a8b2ad8d 4452 CC="$CC $ac_cv_prog_cc_c89"
4453 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4454echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4455esac
4456
b3076f16 4457
b3076f16 4458ac_ext=c
4459ac_cpp='$CPP $CPPFLAGS'
4460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
ec1a68c8 4464depcc="$CC" am_compiler_list=
4465
a8b2ad8d 4466{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4467echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 4468if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4472 # We make a subdir and do the tests there. Otherwise we can end up
4473 # making bogus files that we don't know about and never remove. For
4474 # instance it was reported that on HP-UX the gcc test will end up
4475 # making a dummy file named `D' -- because `-MD' means `put the output
4476 # in D'.
4477 mkdir conftest.dir
4478 # Copy depcomp to subdir because otherwise we won't find it if we're
4479 # using a relative directory.
4480 cp "$am_depcomp" conftest.dir
4481 cd conftest.dir
4482 # We will build objects and dependencies in a subdirectory because
4483 # it helps to detect inapplicable dependency modes. For instance
4484 # both Tru64's cc and ICC support -MD to output dependencies as a
4485 # side effect of compilation, but ICC will put the dependencies in
4486 # the current directory while Tru64 will put them in the object
4487 # directory.
4488 mkdir sub
4489
4490 am_cv_CC_dependencies_compiler_type=none
4491 if test "$am_compiler_list" = ""; then
4492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4493 fi
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4498 #
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4502 : > sub/conftest.c
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4506 # Solaris 8's {/usr,}/bin/sh.
4507 touch sub/conftst$i.h
4508 done
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4510
4511 case $depmode in
4512 nosideeffect)
4513 # after this tag, mechanisms are not by side-effect, so they'll
4514 # only be used when explicitly requested
4515 if test "x$enable_dependency_tracking" = xyes; then
4516 continue
4517 else
4518 break
4519 fi
4520 ;;
4521 none) break ;;
4522 esac
4523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4524 # mode. It turns out that the SunPro C++ compiler does not properly
4525 # handle `-M -o', and we need to detect this.
4526 if depmode=$depmode \
4527 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4529 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4530 >/dev/null 2>conftest.err &&
2f65da8f 4531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 4532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4533 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4535 # icc doesn't choke on unknown options, it will just issue warnings
4536 # or remarks (even with -Werror). So we grep stderr for any message
4537 # that says an option was ignored or not supported.
4538 # When given -MP, icc 7.0 and 7.1 complain thusly:
4539 # icc: Command line warning: ignoring option '-M'; no argument required
4540 # The diagnosis changed in icc 8.0:
4541 # icc: Command line remark: option '-MP' not supported
4542 if (grep 'ignoring option' conftest.err ||
4543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4544 am_cv_CC_dependencies_compiler_type=$depmode
4545 break
4546 fi
4547 fi
4548 done
4549
4550 cd ..
4551 rm -rf conftest.dir
4552else
4553 am_cv_CC_dependencies_compiler_type=none
4554fi
4555
4556fi
a8b2ad8d 4557{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4558echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4559CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4560
2f65da8f 4561 if
ec1a68c8 4562 test "x$enable_dependency_tracking" != xno \
4563 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4564 am__fastdepCC_TRUE=
4565 am__fastdepCC_FALSE='#'
4566else
4567 am__fastdepCC_TRUE='#'
4568 am__fastdepCC_FALSE=
4569fi
4570
4571
b3076f16 4572# Find a good install program. We prefer a C program (faster),
4573# so one script is as good as another. But avoid the broken or
4574# incompatible versions:
4575# SysV /etc/install, /usr/sbin/install
4576# SunOS /usr/etc/install
4577# IRIX /sbin/install
4578# AIX /bin/install
4579# AmigaOS /C/install, which installs bootblocks on floppy discs
4580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4583# OS/2's system install, which has a completely different semantic
4584# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 4585{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4586echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 4587if test -z "$INSTALL"; then
4588if test "${ac_cv_path_install+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 # Account for people who put trailing slashes in PATH elements.
4597case $as_dir/ in
4598 ./ | .// | /cC/* | \
4599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4600 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4601 /usr/ucb/* ) ;;
4602 *)
4603 # OSF1 and SCO ODT 3.0 have their own names for install.
4604 # Don't use installbsd from OSF since it installs stuff as root
4605 # by default.
4606 for ac_prog in ginstall scoinst install; do
4607 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4608 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 4609 if test $ac_prog = install &&
4610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4611 # AIX install. It has an incompatible calling convention.
4612 :
4613 elif test $ac_prog = install &&
4614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4615 # program-specific install script used by HP pwplus--don't use.
4616 :
4617 else
4618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4619 break 3
4620 fi
4621 fi
4622 done
4623 done
4624 ;;
4625esac
4626done
a8b2ad8d 4627IFS=$as_save_IFS
b3076f16 4628
4629
4630fi
4631 if test "${ac_cv_path_install+set}" = set; then
4632 INSTALL=$ac_cv_path_install
4633 else
a8b2ad8d 4634 # As a last resort, use the slow shell script. Don't cache a
4635 # value for INSTALL within a source directory, because that will
b3076f16 4636 # break other packages using the cache if that directory is
a8b2ad8d 4637 # removed, or if the value is a relative name.
b3076f16 4638 INSTALL=$ac_install_sh
4639 fi
4640fi
a8b2ad8d 4641{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4642echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 4643
4644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4645# It thinks the first close brace ends the variable substitution.
4646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4647
4648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4649
4650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4651
0f6fe38c 4652
07559983 4653# Extract the first word of "cp", so it can be a program name with args.
4654set dummy cp; ac_word=$2
4655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657if test "${ac_cv_path_CP+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 case $CP in
4661 [\\/]* | ?:[\\/]*)
4662 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4663 ;;
4664 *)
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677done
4678IFS=$as_save_IFS
4679
4680 ;;
4681esac
4682fi
4683CP=$ac_cv_path_CP
4684if test -n "$CP"; then
4685 { echo "$as_me:$LINENO: result: $CP" >&5
4686echo "${ECHO_T}$CP" >&6; }
4687else
4688 { echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6; }
4690fi
4691
4692
4693
35305a49 4694if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4696set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8b2ad8d 4697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4699if test "${ac_cv_prog_RANLIB+set}" = set; then
2f61d1d7 4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
35305a49 4702 if test -n "$RANLIB"; then
4703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4704else
2f61d1d7 4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
35305a49 4710 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
2f61d1d7 4715 fi
35305a49 4716done
2f61d1d7 4717done
a8b2ad8d 4718IFS=$as_save_IFS
2f61d1d7 4719
b3076f16 4720fi
35305a49 4721fi
4722RANLIB=$ac_cv_prog_RANLIB
4723if test -n "$RANLIB"; then
a8b2ad8d 4724 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4725echo "${ECHO_T}$RANLIB" >&6; }
b3076f16 4726else
a8b2ad8d 4727 { echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6; }
2f61d1d7 4729fi
2f61d1d7 4730
a8b2ad8d 4731
b3076f16 4732fi
35305a49 4733if test -z "$ac_cv_prog_RANLIB"; then
4734 ac_ct_RANLIB=$RANLIB
4735 # Extract the first word of "ranlib", so it can be a program name with args.
4736set dummy ranlib; ac_word=$2
a8b2ad8d 4737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4739if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2f61d1d7 4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
35305a49 4742 if test -n "$ac_ct_RANLIB"; then
4743 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4744else
35305a49 4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4752 ac_cv_prog_ac_ct_RANLIB="ranlib"
4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756done
4757done
a8b2ad8d 4758IFS=$as_save_IFS
35305a49 4759
b3076f16 4760fi
2f61d1d7 4761fi
35305a49 4762ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4763if test -n "$ac_ct_RANLIB"; then
a8b2ad8d 4764 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4765echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
b3076f16 4766else
a8b2ad8d 4767 { echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6; }
b3076f16 4769fi
4770
a8b2ad8d 4771 if test "x$ac_ct_RANLIB" = x; then
4772 RANLIB=":"
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775yes:)
4776{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4777whose name does not start with the host triplet. If you think this
4778configuration is useful to you, please write to autoconf@gnu.org." >&5
4779echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4780whose name does not start with the host triplet. If you think this
4781configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4782ac_tool_warned=yes ;;
4783esac
4784 RANLIB=$ac_ct_RANLIB
4785 fi
2f61d1d7 4786else
35305a49 4787 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4788fi
2f61d1d7 4789
0f6fe38c 4790
4791{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4792echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4793LN_S=$as_ln_s
4794if test "$LN_S" = "ln -s"; then
4795 { echo "$as_me:$LINENO: result: yes" >&5
4796echo "${ECHO_T}yes" >&6; }
2f61d1d7 4797else
0f6fe38c 4798 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4799echo "${ECHO_T}no, using $LN_S" >&6; }
2f61d1d7 4800fi
4801
0f6fe38c 4802{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4803echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4804set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4805if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
2f61d1d7 4807else
0f6fe38c 4808 cat >conftest.make <<\_ACEOF
4809SHELL = /bin/sh
4810all:
4811 @echo '@@@%%%=$(MAKE)=@@@%%%'
4812_ACEOF
4813# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4814case `${MAKE-make} -f conftest.make 2>/dev/null` in
4815 *@@@%%%=?*=@@@%%%*)
4816 eval ac_cv_prog_make_${ac_make}_set=yes;;
4817 *)
4818 eval ac_cv_prog_make_${ac_make}_set=no;;
4819esac
4820rm -f conftest.make
35305a49 4821fi
0f6fe38c 4822if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4823 { echo "$as_me:$LINENO: result: yes" >&5
4824echo "${ECHO_T}yes" >&6; }
4825 SET_MAKE=
35305a49 4826else
0f6fe38c 4827 { echo "$as_me:$LINENO: result: no" >&5
4828echo "${ECHO_T}no" >&6; }
4829 SET_MAKE="MAKE=${MAKE-make}"
2f61d1d7 4830fi
2f61d1d7 4831
0f6fe38c 4832ac_ext=c
4833ac_cpp='$CPP $CPPFLAGS'
4834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4838echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4839# On Suns, sometimes $CPP names a directory.
4840if test -n "$CPP" && test -d "$CPP"; then
4841 CPP=
4842fi
4843if test -z "$CPP"; then
4844 if test "${ac_cv_prog_CPP+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
ff3b058a 4846else
0f6fe38c 4847 # Double quotes because CPP needs to be expanded
4848 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4849 do
4850 ac_preproc_ok=false
4851for ac_c_preproc_warn_flag in '' yes
ff3b058a 4852do
0f6fe38c 4853 # Use a header file that comes with gcc, so configuring glibc
4854 # with a fresh cross-compiler works.
4855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856 # <limits.h> exists even on freestanding compilers.
4857 # On the NeXT, cc -E runs the code through the compiler's parser,
4858 # not just through cpp. "Syntax error" is here to catch this case.
4859 cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h. */
4865#ifdef __STDC__
4866# include <limits.h>
4867#else
4868# include <assert.h>
4869#endif
4870 Syntax error
4871_ACEOF
4872if { (ac_try="$ac_cpp conftest.$ac_ext"
4873case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876esac
4877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4884 (exit $ac_status); } >/dev/null && {
4885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 }; then
0f6fe38c 4888 :
4889else
4890 echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 # Broken: fails on valid input.
4894continue
4895fi
4896
4897rm -f conftest.err conftest.$ac_ext
4898
4899 # OK, works on sane cases. Now check whether nonexistent headers
4900 # can be detected and how.
4901 cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907#include <ac_nonexistent.h>
4908_ACEOF
4909if { (ac_try="$ac_cpp conftest.$ac_ext"
4910case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913esac
4914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4921 (exit $ac_status); } >/dev/null && {
4922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4923 test ! -s conftest.err
4924 }; then
0f6fe38c 4925 # Broken: success on invalid input.
4926continue
4927else
4928 echo "$as_me: failed program was:" >&5
4929sed 's/^/| /' conftest.$ac_ext >&5
4930
4931 # Passes both tests.
4932ac_preproc_ok=:
4933break
4934fi
4935
4936rm -f conftest.err conftest.$ac_ext
4937
ff3b058a 4938done
0f6fe38c 4939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4940rm -f conftest.err conftest.$ac_ext
4941if $ac_preproc_ok; then
4942 break
4943fi
4944
4945 done
4946 ac_cv_prog_CPP=$CPP
4947
4948fi
4949 CPP=$ac_cv_prog_CPP
4950else
4951 ac_cv_prog_CPP=$CPP
4952fi
4953{ echo "$as_me:$LINENO: result: $CPP" >&5
4954echo "${ECHO_T}$CPP" >&6; }
4955ac_preproc_ok=false
4956for ac_c_preproc_warn_flag in '' yes
4957do
4958 # Use a header file that comes with gcc, so configuring glibc
4959 # with a fresh cross-compiler works.
4960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961 # <limits.h> exists even on freestanding compilers.
4962 # On the NeXT, cc -E runs the code through the compiler's parser,
4963 # not just through cpp. "Syntax error" is here to catch this case.
4964 cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970#ifdef __STDC__
4971# include <limits.h>
4972#else
4973# include <assert.h>
4974#endif
4975 Syntax error
4976_ACEOF
4977if { (ac_try="$ac_cpp conftest.$ac_ext"
4978case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981esac
4982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4989 (exit $ac_status); } >/dev/null && {
4990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 }; then
0f6fe38c 4993 :
4994else
4995 echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 # Broken: fails on valid input.
4999continue
5000fi
5001
5002rm -f conftest.err conftest.$ac_ext
5003
5004 # OK, works on sane cases. Now check whether nonexistent headers
5005 # can be detected and how.
5006 cat >conftest.$ac_ext <<_ACEOF
5007/* confdefs.h. */
5008_ACEOF
5009cat confdefs.h >>conftest.$ac_ext
5010cat >>conftest.$ac_ext <<_ACEOF
5011/* end confdefs.h. */
5012#include <ac_nonexistent.h>
5013_ACEOF
5014if { (ac_try="$ac_cpp conftest.$ac_ext"
5015case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018esac
5019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5026 (exit $ac_status); } >/dev/null && {
5027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5028 test ! -s conftest.err
5029 }; then
0f6fe38c 5030 # Broken: success on invalid input.
5031continue
5032else
5033 echo "$as_me: failed program was:" >&5
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 # Passes both tests.
5037ac_preproc_ok=:
5038break
5039fi
ff3b058a 5040
0f6fe38c 5041rm -f conftest.err conftest.$ac_ext
5042
5043done
5044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5045rm -f conftest.err conftest.$ac_ext
5046if $ac_preproc_ok; then
5047 :
5048else
5049 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5050See \`config.log' for more details." >&5
5051echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5052See \`config.log' for more details." >&2;}
5053 { (exit 1); exit 1; }; }
2f61d1d7 5054fi
ff3b058a 5055
0f6fe38c 5056ac_ext=c
5057ac_cpp='$CPP $CPPFLAGS'
5058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060ac_compiler_gnu=$ac_cv_c_compiler_gnu
ff3b058a 5061
ff3b058a 5062
5063{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5064echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5065if test "${ac_cv_path_GREP+set}" = set; then
2f61d1d7 5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
ff3b058a 5068 # Extract the first word of "grep ggrep" to use in msg output
5069if test -z "$GREP"; then
5070set dummy grep ggrep; ac_prog_name=$2
5071if test "${ac_cv_path_GREP+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
5074 ac_path_GREP_found=false
5075# Loop through the user's path and test for each of PROGNAME-LIST
5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
a8b2ad8d 5078do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in grep ggrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
0bd0bef6 5084 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
a8b2ad8d 5085 # Check for GNU ac_path_GREP and select it if it is found.
5086 # Check for GNU $ac_path_GREP
5087case `"$ac_path_GREP" --version 2>&1` in
5088*GNU*)
5089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5090*)
5091 ac_count=0
5092 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5093 while :
5094 do
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 echo 'GREP' >> "conftest.nl"
5099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 ac_count=`expr $ac_count + 1`
5102 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_GREP="$ac_path_GREP"
5105 ac_path_GREP_max=$ac_count
5106 fi
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5109 done
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111esac
5112
5113
5114 $ac_path_GREP_found && break 3
5115 done
5116done
5117
5118done
5119IFS=$as_save_IFS
5120
5121
5122fi
5123
5124GREP="$ac_cv_path_GREP"
5125if test -z "$GREP"; then
5126 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5127echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5128 { (exit 1); exit 1; }; }
5129fi
5130
5131else
5132 ac_cv_path_GREP=$GREP
5133fi
5134
5135
5136fi
5137{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5138echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5139 GREP="$ac_cv_path_GREP"
5140
5141
5142{ echo "$as_me:$LINENO: checking for egrep" >&5
5143echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5144if test "${ac_cv_path_EGREP+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5148 then ac_cv_path_EGREP="$GREP -E"
5149 else
5150 # Extract the first word of "egrep" to use in msg output
5151if test -z "$EGREP"; then
5152set dummy egrep; ac_prog_name=$2
5153if test "${ac_cv_path_EGREP+set}" = set; then
2f61d1d7 5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
a8b2ad8d 5156 ac_path_EGREP_found=false
5157# Loop through the user's path and test for each of PROGNAME-LIST
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_prog in egrep; do
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
0bd0bef6 5166 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
a8b2ad8d 5167 # Check for GNU ac_path_EGREP and select it if it is found.
0f6fe38c 5168 # Check for GNU $ac_path_EGREP
5169case `"$ac_path_EGREP" --version 2>&1` in
5170*GNU*)
5171 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5172*)
5173 ac_count=0
5174 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5175 while :
5176 do
5177 cat "conftest.in" "conftest.in" >"conftest.tmp"
5178 mv "conftest.tmp" "conftest.in"
5179 cp "conftest.in" "conftest.nl"
5180 echo 'EGREP' >> "conftest.nl"
5181 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5183 ac_count=`expr $ac_count + 1`
5184 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5185 # Best one so far, save it but keep looking for a better one
5186 ac_cv_path_EGREP="$ac_path_EGREP"
5187 ac_path_EGREP_max=$ac_count
5188 fi
5189 # 10*(2^10) chars as input seems more than enough
5190 test $ac_count -gt 10 && break
5191 done
5192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5193esac
ff3b058a 5194
5195
0f6fe38c 5196 $ac_path_EGREP_found && break 3
5197 done
5198done
ff3b058a 5199
0f6fe38c 5200done
5201IFS=$as_save_IFS
ff3b058a 5202
5203
0f6fe38c 5204fi
ff3b058a 5205
0f6fe38c 5206EGREP="$ac_cv_path_EGREP"
5207if test -z "$EGREP"; then
5208 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5209echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5210 { (exit 1); exit 1; }; }
a8b2ad8d 5211fi
5212
5213else
0f6fe38c 5214 ac_cv_path_EGREP=$EGREP
a8b2ad8d 5215fi
0f6fe38c 5216
5217
5218 fi
2f61d1d7 5219fi
0f6fe38c 5220{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5221echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5223
b3076f16 5224
5225if test $ac_cv_c_compiler_gnu = yes; then
a8b2ad8d 5226 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5227echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
b3076f16 5228if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 ac_pattern="Autoconf.*'x'"
5232 cat >conftest.$ac_ext <<_ACEOF
5233/* confdefs.h. */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h. */
5238#include <sgtty.h>
5239Autoconf TIOCGETP
5240_ACEOF
5241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5243 ac_cv_prog_gcc_traditional=yes
5244else
5245 ac_cv_prog_gcc_traditional=no
5246fi
5247rm -f conftest*
5248
5249
5250 if test $ac_cv_prog_gcc_traditional = no; then
5251 cat >conftest.$ac_ext <<_ACEOF
5252/* confdefs.h. */
5253_ACEOF
5254cat confdefs.h >>conftest.$ac_ext
5255cat >>conftest.$ac_ext <<_ACEOF
5256/* end confdefs.h. */
5257#include <termio.h>
5258Autoconf TCGETA
5259_ACEOF
5260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5262 ac_cv_prog_gcc_traditional=yes
5263fi
5264rm -f conftest*
5265
5266 fi
5267fi
a8b2ad8d 5268{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5269echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
b3076f16 5270 if test $ac_cv_prog_gcc_traditional = yes; then
5271 CC="$CC -traditional"
5272 fi
5273fi
5274
5b1166fd 5275# Extract the first word of "gmake", so it can be a program name with args.
5276set dummy gmake; ac_word=$2
a8b2ad8d 5277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5b1166fd 5279if test "${ac_cv_prog_MAKER+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 if test -n "$MAKER"; then
5283 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5284else
5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5b1166fd 5292 ac_cv_prog_MAKER="gmake"
5293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296done
5297done
a8b2ad8d 5298IFS=$as_save_IFS
5b1166fd 5299
5300 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5301fi
5302fi
5303MAKER=$ac_cv_prog_MAKER
5304if test -n "$MAKER"; then
a8b2ad8d 5305 { echo "$as_me:$LINENO: result: $MAKER" >&5
5306echo "${ECHO_T}$MAKER" >&6; }
5b1166fd 5307else
a8b2ad8d 5308 { echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6; }
5b1166fd 5310fi
5311
b3076f16 5312
a8b2ad8d 5313
b3076f16 5314case $target in
5315 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5316 ANSI_SRC=""
5317 ;;
5318 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5319 ANSI_SRC=""
b3076f16 5320 ;;
5321 *-solaris*)
5322 EXTRA_DEFINE="-D__SOLARIS__"
5323 ANSI_SRC="-fno-builtin"
5324 ;;
5325 *-cygwin)
5326 ANSI_SRC="-fno-builtin"
5327 ;;
5328 *-linux*)
5329 EXTRA_DEFINE="-D_GNU_SOURCE"
5330 ANSI_SRC=""
5331 ;;
5332 *)
5333 ANSI_SRC=""
5334 ;;
5335esac
5336CFLAGS="$CFLAGS $EXTRA_DEFINE"
5337
5338
a8b2ad8d 5339{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5340echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
b3076f16 5341if test "${ac_cv_lib_socket_socket+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344 ac_check_lib_save_LIBS=$LIBS
5345LIBS="-lsocket $LIBS"
5346cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h. */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h. */
5352
a8b2ad8d 5353/* Override any GCC internal prototype to avoid an error.
5354 Use char because int might match the return type of a GCC
5355 builtin and then its argument prototype would still apply. */
b3076f16 5356#ifdef __cplusplus
5357extern "C"
5358#endif
b3076f16 5359char socket ();
5360int
5361main ()
5362{
a8b2ad8d 5363return socket ();
b3076f16 5364 ;
5365 return 0;
5366}
5367_ACEOF
5368rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5369if { (ac_try="$ac_link"
5370case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_link") 2>conftest.er1
b3076f16 5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5381 (exit $ac_status); } && {
5382 test -z "$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 } && test -s conftest$ac_exeext &&
5385 $as_test_x conftest$ac_exeext; then
b3076f16 5386 ac_cv_lib_socket_socket=yes
5387else
5388 echo "$as_me: failed program was:" >&5
5389sed 's/^/| /' conftest.$ac_ext >&5
5390
a8b2ad8d 5391 ac_cv_lib_socket_socket=no
b3076f16 5392fi
a8b2ad8d 5393
0bd0bef6 5394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 5395 conftest$ac_exeext conftest.$ac_ext
5396LIBS=$ac_check_lib_save_LIBS
5397fi
a8b2ad8d 5398{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5399echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
b3076f16 5400if test $ac_cv_lib_socket_socket = yes; then
5401 cat >>confdefs.h <<_ACEOF
5402#define HAVE_LIBSOCKET 1
5403_ACEOF
5404
5405 LIBS="-lsocket $LIBS"
5406
5407fi
5408
5409
a8b2ad8d 5410{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5411echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
b3076f16 5412if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414else
5415 ac_check_lib_save_LIBS=$LIBS
5416LIBS="-lnsl $LIBS"
5417cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423
a8b2ad8d 5424/* Override any GCC internal prototype to avoid an error.
5425 Use char because int might match the return type of a GCC
5426 builtin and then its argument prototype would still apply. */
b3076f16 5427#ifdef __cplusplus
5428extern "C"
5429#endif
b3076f16 5430char gethostbyname ();
5431int
5432main ()
5433{
a8b2ad8d 5434return gethostbyname ();
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_nsl_gethostbyname=yes
5458else
5459 echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
a8b2ad8d 5462 ac_cv_lib_nsl_gethostbyname=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_nsl_gethostbyname" >&5
5470echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
b3076f16 5471if test $ac_cv_lib_nsl_gethostbyname = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473#define HAVE_LIBNSL 1
5474_ACEOF
5475
5476 LIBS="-lnsl $LIBS"
5477
5478fi
5479
5480
a8b2ad8d 5481{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5482echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
b3076f16 5483if test "${ac_cv_lib_m_main+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486 ac_check_lib_save_LIBS=$LIBS
5487LIBS="-lm $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
5495
5496int
5497main ()
5498{
a8b2ad8d 5499return main ();
b3076f16 5500 ;
5501 return 0;
5502}
5503_ACEOF
5504rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5505if { (ac_try="$ac_link"
5506case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_link") 2>conftest.er1
b3076f16 5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest$ac_exeext &&
5521 $as_test_x conftest$ac_exeext; then
b3076f16 5522 ac_cv_lib_m_main=yes
5523else
5524 echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
a8b2ad8d 5527 ac_cv_lib_m_main=no
b3076f16 5528fi
a8b2ad8d 5529
0bd0bef6 5530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 5531 conftest$ac_exeext conftest.$ac_ext
5532LIBS=$ac_check_lib_save_LIBS
5533fi
a8b2ad8d 5534{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5535echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
b3076f16 5536if test $ac_cv_lib_m_main = yes; then
5537 cat >>confdefs.h <<_ACEOF
5538#define HAVE_LIBM 1
5539_ACEOF
5540
5541 LIBS="-lm $LIBS"
5542
5543fi
5544
5545
a8b2ad8d 5546{ echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5547echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
21f6caee 5548if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551 ac_check_lib_save_LIBS=$LIBS
5552LIBS="-lGeoIP $LIBS"
5553cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h. */
5559
a8b2ad8d 5560/* Override any GCC internal prototype to avoid an error.
5561 Use char because int might match the return type of a GCC
5562 builtin and then its argument prototype would still apply. */
21f6caee 5563#ifdef __cplusplus
5564extern "C"
5565#endif
21f6caee 5566char GeoIP_open ();
5567int
5568main ()
5569{
a8b2ad8d 5570return GeoIP_open ();
21f6caee 5571 ;
5572 return 0;
5573}
5574_ACEOF
5575rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5576if { (ac_try="$ac_link"
5577case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_link") 2>conftest.er1
21f6caee 5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5588 (exit $ac_status); } && {
5589 test -z "$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 } && test -s conftest$ac_exeext &&
5592 $as_test_x conftest$ac_exeext; then
21f6caee 5593 ac_cv_lib_GeoIP_GeoIP_open=yes
5594else
5595 echo "$as_me: failed program was:" >&5
5596sed 's/^/| /' conftest.$ac_ext >&5
5597
a8b2ad8d 5598 ac_cv_lib_GeoIP_GeoIP_open=no
21f6caee 5599fi
a8b2ad8d 5600
0bd0bef6 5601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21f6caee 5602 conftest$ac_exeext conftest.$ac_ext
5603LIBS=$ac_check_lib_save_LIBS
5604fi
a8b2ad8d 5605{ echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5606echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
21f6caee 5607if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5608 cat >>confdefs.h <<_ACEOF
5609#define HAVE_LIBGEOIP 1
5610_ACEOF
5611
5612 LIBS="-lGeoIP $LIBS"
5613
5614fi
5615
5616
a8b2ad8d 5617{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5618echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
b3076f16 5619if test "${ac_cv_header_stdc+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622 cat >conftest.$ac_ext <<_ACEOF
5623/* confdefs.h. */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h. */
5628#include <stdlib.h>
5629#include <stdarg.h>
5630#include <string.h>
5631#include <float.h>
5632
5633int
5634main ()
5635{
5636
5637 ;
5638 return 0;
5639}
5640_ACEOF
5641rm -f conftest.$ac_objext
a8b2ad8d 5642if { (ac_try="$ac_compile"
5643case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646esac
5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_compile") 2>conftest.er1
b3076f16 5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5654 (exit $ac_status); } && {
5655 test -z "$ac_c_werror_flag" ||
5656 test ! -s conftest.err
5657 } && test -s conftest.$ac_objext; then
b3076f16 5658 ac_cv_header_stdc=yes
5659else
5660 echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
a8b2ad8d 5663 ac_cv_header_stdc=no
b3076f16 5664fi
a8b2ad8d 5665
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5667
5668if test $ac_cv_header_stdc = yes; then
5669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5670 cat >conftest.$ac_ext <<_ACEOF
5671/* confdefs.h. */
5672_ACEOF
5673cat confdefs.h >>conftest.$ac_ext
5674cat >>conftest.$ac_ext <<_ACEOF
5675/* end confdefs.h. */
5676#include <string.h>
5677
5678_ACEOF
5679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "memchr" >/dev/null 2>&1; then
5681 :
5682else
5683 ac_cv_header_stdc=no
5684fi
5685rm -f conftest*
5686
5687fi
5688
5689if test $ac_cv_header_stdc = yes; then
5690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5691 cat >conftest.$ac_ext <<_ACEOF
5692/* confdefs.h. */
5693_ACEOF
5694cat confdefs.h >>conftest.$ac_ext
5695cat >>conftest.$ac_ext <<_ACEOF
5696/* end confdefs.h. */
5697#include <stdlib.h>
5698
5699_ACEOF
5700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701 $EGREP "free" >/dev/null 2>&1; then
5702 :
5703else
5704 ac_cv_header_stdc=no
5705fi
5706rm -f conftest*
5707
5708fi
5709
5710if test $ac_cv_header_stdc = yes; then
5711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5712 if test "$cross_compiling" = yes; then
5713 :
5714else
5715 cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h. */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
5721#include <ctype.h>
a8b2ad8d 5722#include <stdlib.h>
b3076f16 5723#if ((' ' & 0x0FF) == 0x020)
5724# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5725# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5726#else
5727# define ISLOWER(c) \
5728 (('a' <= (c) && (c) <= 'i') \
5729 || ('j' <= (c) && (c) <= 'r') \
5730 || ('s' <= (c) && (c) <= 'z'))
5731# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5732#endif
5733
5734#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5735int
5736main ()
5737{
5738 int i;
5739 for (i = 0; i < 256; i++)
5740 if (XOR (islower (i), ISLOWER (i))
5741 || toupper (i) != TOUPPER (i))
a8b2ad8d 5742 return 2;
5743 return 0;
b3076f16 5744}
5745_ACEOF
5746rm -f conftest$ac_exeext
a8b2ad8d 5747if { (ac_try="$ac_link"
5748case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_link") 2>&5
b3076f16 5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 5757 { (case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_try") 2>&5
b3076f16 5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 :
5767else
5768 echo "$as_me: program exited with status $ac_status" >&5
5769echo "$as_me: failed program was:" >&5
5770sed 's/^/| /' conftest.$ac_ext >&5
5771
5772( exit $ac_status )
5773ac_cv_header_stdc=no
5774fi
a8b2ad8d 5775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 5776fi
a8b2ad8d 5777
5778
b3076f16 5779fi
5780fi
a8b2ad8d 5781{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5782echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
b3076f16 5783if test $ac_cv_header_stdc = yes; then
5784
5785cat >>confdefs.h <<\_ACEOF
5786#define STDC_HEADERS 1
5787_ACEOF
5788
5789fi
5790
5791
a8b2ad8d 5792{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5793echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
b3076f16 5794if test "${ac_cv_header_time+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
5803#include <sys/types.h>
5804#include <sys/time.h>
5805#include <time.h>
5806
5807int
5808main ()
5809{
5810if ((struct tm *) 0)
5811return 0;
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
a8b2ad8d 5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
b3076f16 5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
b3076f16 5833 ac_cv_header_time=yes
5834else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
a8b2ad8d 5838 ac_cv_header_time=no
b3076f16 5839fi
a8b2ad8d 5840
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5842fi
a8b2ad8d 5843{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5844echo "${ECHO_T}$ac_cv_header_time" >&6; }
b3076f16 5845if test $ac_cv_header_time = yes; then
5846
5847cat >>confdefs.h <<\_ACEOF
5848#define TIME_WITH_SYS_TIME 1
5849_ACEOF
5850
5851fi
5852
a8b2ad8d 5853{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5854echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
b3076f16 5855if test "${ac_cv_struct_tm+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857else
5858 cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h. */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h. */
5864#include <sys/types.h>
5865#include <time.h>
5866
5867int
5868main ()
5869{
0bd0bef6 5870struct tm tm;
5871 int *p = &tm.tm_sec;
5872 return !p;
ff3b058a 5873 ;
5874 return 0;
5875}
5876_ACEOF
5877rm -f conftest.$ac_objext
5878if { (ac_try="$ac_compile"
5879case "(($ac_try" in
a8b2ad8d 5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 5884 (eval "$ac_compile") 2>conftest.er1
35305a49 5885 ac_status=$?
ff3b058a 5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
35305a49 5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5890 (exit $ac_status); } && {
5891 test -z "$ac_c_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest.$ac_objext; then
0f6fe38c 5894 ac_cv_struct_tm=time.h
5895else
5896 echo "$as_me: failed program was:" >&5
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 ac_cv_struct_tm=sys/time.h
5900fi
5901
5902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903fi
5904{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5905echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5906if test $ac_cv_struct_tm = sys/time.h; then
5907
5908cat >>confdefs.h <<\_ACEOF
5909#define TM_IN_SYS_TIME 1
5910_ACEOF
5911
5912fi
5913
5914
5915# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5926 inttypes.h stdint.h unistd.h
5927do
5928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5929{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934 cat >conftest.$ac_ext <<_ACEOF
5935/* confdefs.h. */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
5939/* end confdefs.h. */
5940$ac_includes_default
5941
5942#include <$ac_header>
5943_ACEOF
5944rm -f conftest.$ac_objext
5945if { (ac_try="$ac_compile"
5946case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest.$ac_objext; then
0f6fe38c 5961 eval "$as_ac_Header=yes"
35305a49 5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
0f6fe38c 5966 eval "$as_ac_Header=no"
35305a49 5967fi
a8b2ad8d 5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305a49 5970fi
0f6fe38c 5971ac_res=`eval echo '${'$as_ac_Header'}'`
5972 { echo "$as_me:$LINENO: result: $ac_res" >&5
5973echo "${ECHO_T}$ac_res" >&6; }
5974if test `eval echo '${'$as_ac_Header'}'` = yes; then
5975 cat >>confdefs.h <<_ACEOF
5976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35305a49 5977_ACEOF
5978
5979fi
5980
0f6fe38c 5981done
35305a49 5982
5983
b3076f16 5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
21f6caee 6004
6005
4cb36ef0 6006
6007for ac_header in GeoIP.h GeoIPCity.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
b3076f16 6008do
6009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015fi
a8b2ad8d 6016ac_res=`eval echo '${'$as_ac_Header'}'`
6017 { echo "$as_me:$LINENO: result: $ac_res" >&5
6018echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6019else
6020 # Is the header compilable?
a8b2ad8d 6021{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 6023cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h. */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h. */
6029$ac_includes_default
6030#include <$ac_header>
6031_ACEOF
6032rm -f conftest.$ac_objext
a8b2ad8d 6033if { (ac_try="$ac_compile"
6034case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_compile") 2>conftest.er1
b3076f16 6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6045 (exit $ac_status); } && {
6046 test -z "$ac_c_werror_flag" ||
6047 test ! -s conftest.err
6048 } && test -s conftest.$ac_objext; then
b3076f16 6049 ac_header_compiler=yes
6050else
6051 echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
a8b2ad8d 6054 ac_header_compiler=no
b3076f16 6055fi
a8b2ad8d 6056
6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6059echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 6060
6061# Is the header present?
a8b2ad8d 6062{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 6064cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h. */
6070#include <$ac_header>
6071_ACEOF
a8b2ad8d 6072if { (ac_try="$ac_cpp conftest.$ac_ext"
6073case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076esac
6077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6084 (exit $ac_status); } >/dev/null && {
6085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 }; then
b3076f16 6088 ac_header_preproc=yes
6089else
6090 echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 ac_header_preproc=no
6094fi
a8b2ad8d 6095
b3076f16 6096rm -f conftest.err conftest.$ac_ext
a8b2ad8d 6097{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6098echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 6099
6100# So? What about this header?
6101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6102 yes:no: )
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6107 ac_header_preproc=yes
6108 ;;
6109 no:yes:* )
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6113echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6117echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 6122 ( cat <<\_ASBOX
63c95a47 6123## -------------------------------------------------- ##
6124## Report this to evilnet-devel@lists.sourceforge.net ##
6125## -------------------------------------------------- ##
b3076f16 6126_ASBOX
a8b2ad8d 6127 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 6128 ;;
6129esac
a8b2ad8d 6130{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134else
6135 eval "$as_ac_Header=\$ac_header_preproc"
6136fi
a8b2ad8d 6137ac_res=`eval echo '${'$as_ac_Header'}'`
6138 { echo "$as_me:$LINENO: result: $ac_res" >&5
6139echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6140
6141fi
6142if test `eval echo '${'$as_ac_Header'}'` = yes; then
6143 cat >>confdefs.h <<_ACEOF
6144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145_ACEOF
6146
6147fi
6148
6149done
6150
6151
a8b2ad8d 6152{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6153echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
2f61d1d7 6154if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16 6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157 cat >conftest.$ac_ext <<_ACEOF
6158/* confdefs.h. */
6159_ACEOF
6160cat confdefs.h >>conftest.$ac_ext
6161cat >>conftest.$ac_ext <<_ACEOF
6162/* end confdefs.h. */
2f61d1d7 6163#include <sys/types.h>
6164#include <sys/socket.h>
b3076f16 6165
6166int
6167main ()
6168{
2f61d1d7 6169static struct sockaddr ac_aggr;
6170if (ac_aggr.sa_len)
b3076f16 6171return 0;
6172 ;
6173 return 0;
6174}
6175_ACEOF
6176rm -f conftest.$ac_objext
a8b2ad8d 6177if { (ac_try="$ac_compile"
6178case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181esac
6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_compile") 2>conftest.er1
b3076f16 6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest.$ac_objext; then
2f61d1d7 6193 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6194else
6195 echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
a8b2ad8d 6198 cat >conftest.$ac_ext <<_ACEOF
b3076f16 6199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
2f61d1d7 6204#include <sys/types.h>
6205#include <sys/socket.h>
b3076f16 6206
6207int
6208main ()
6209{
2f61d1d7 6210static struct sockaddr ac_aggr;
6211if (sizeof ac_aggr.sa_len)
b3076f16 6212return 0;
6213 ;
6214 return 0;
6215}
6216_ACEOF
6217rm -f conftest.$ac_objext
a8b2ad8d 6218if { (ac_try="$ac_compile"
6219case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222esac
6223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compile") 2>conftest.er1
b3076f16 6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest.$ac_objext; then
2f61d1d7 6234 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6235else
6236 echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
6238
a8b2ad8d 6239 ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 6240fi
a8b2ad8d 6241
6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6243fi
a8b2ad8d 6244
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6246fi
a8b2ad8d 6247{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6248echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
2f61d1d7 6249if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16 6250
6251cat >>confdefs.h <<\_ACEOF
2f61d1d7 6252#define HAVE_SOCKADDR_SA_LEN
6253_ACEOF
6254
6255fi
6256
a8b2ad8d 6257{ echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6258echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
2f61d1d7 6259if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
6262 cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
6268#include <sys/types.h>
6269#include <sys/socket.h>
6270#include <netdb.h>
6271
6272int
6273main ()
6274{
6275static struct addrinfo ac_aggr;
6276if (ac_aggr.ai_flags)
6277return 0;
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext
a8b2ad8d 6283if { (ac_try="$ac_compile"
6284case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287esac
6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
2f61d1d7 6299 ac_cv_member_struct_addrinfo_ai_flags=yes
6300else
6301 echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
a8b2ad8d 6304 cat >conftest.$ac_ext <<_ACEOF
2f61d1d7 6305/* confdefs.h. */
6306_ACEOF
6307cat confdefs.h >>conftest.$ac_ext
6308cat >>conftest.$ac_ext <<_ACEOF
6309/* end confdefs.h. */
6310#include <sys/types.h>
6311#include <sys/socket.h>
6312#include <netdb.h>
6313
6314int
6315main ()
6316{
6317static struct addrinfo ac_aggr;
6318if (sizeof ac_aggr.ai_flags)
6319return 0;
6320 ;
6321 return 0;
6322}
b3076f16 6323_ACEOF
2f61d1d7 6324rm -f conftest.$ac_objext
a8b2ad8d 6325if { (ac_try="$ac_compile"
6326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6337 (exit $ac_status); } && {
6338 test -z "$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6340 } && test -s conftest.$ac_objext; then
2f61d1d7 6341 ac_cv_member_struct_addrinfo_ai_flags=yes
6342else
6343 echo "$as_me: failed program was:" >&5
6344sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6345
a8b2ad8d 6346 ac_cv_member_struct_addrinfo_ai_flags=no
2f61d1d7 6347fi
a8b2ad8d 6348
6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f61d1d7 6350fi
a8b2ad8d 6351
6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6353fi
a8b2ad8d 6354{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6355echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
2f61d1d7 6356if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6357
6358cat >>confdefs.h <<\_ACEOF
6359#define HAVE_STRUCT_ADDRINFO
6360_ACEOF
b3076f16 6361
2f61d1d7 6362fi
b3076f16 6363
6364
21f6caee 6365
0f6fe38c 6366for ac_func in gettimeofday
6367do
6368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6369{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374 cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
6380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6382#define $ac_func innocuous_$ac_func
b3076f16 6383
0f6fe38c 6384/* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func (); below.
6386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387 <limits.h> exists even on freestanding compilers. */
b3076f16 6388
0f6fe38c 6389#ifdef __STDC__
6390# include <limits.h>
6391#else
6392# include <assert.h>
6393#endif
b3076f16 6394
0f6fe38c 6395#undef $ac_func
b3076f16 6396
0f6fe38c 6397/* Override any GCC internal prototype to avoid an error.
6398 Use char because int might match the return type of a GCC
6399 builtin and then its argument prototype would still apply. */
6400#ifdef __cplusplus
6401extern "C"
6402#endif
6403char $ac_func ();
6404/* The GNU C library defines this for functions which it implements
6405 to always fail with ENOSYS. Some functions are actually named
6406 something starting with __ and the normal name is an alias. */
6407#if defined __stub_$ac_func || defined __stub___$ac_func
6408choke me
6409#endif
b3076f16 6410
0f6fe38c 6411int
6412main ()
6413{
6414return $ac_func ();
6415 ;
6416 return 0;
6417}
6418_ACEOF
6419rm -f conftest.$ac_objext conftest$ac_exeext
6420if { (ac_try="$ac_link"
6421case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424esac
6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext &&
6436 $as_test_x conftest$ac_exeext; then
0f6fe38c 6437 eval "$as_ac_var=yes"
6438else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6441
0f6fe38c 6442 eval "$as_ac_var=no"
6443fi
a8b2ad8d 6444
0bd0bef6 6445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0f6fe38c 6446 conftest$ac_exeext conftest.$ac_ext
6447fi
6448ac_res=`eval echo '${'$as_ac_var'}'`
6449 { echo "$as_me:$LINENO: result: $ac_res" >&5
6450echo "${ECHO_T}$ac_res" >&6; }
6451if test `eval echo '${'$as_ac_var'}'` = yes; then
6452 cat >>confdefs.h <<_ACEOF
6453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6454_ACEOF
b3076f16 6455
0f6fe38c 6456fi
6457done
b3076f16 6458
0f6fe38c 6459if test $ac_cv_func_gettimeofday = no; then
b3076f16 6460
0f6fe38c 6461for ac_func in ftime
b3076f16 6462do
6463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6464{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469 cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h. */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h. */
6475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6477#define $ac_func innocuous_$ac_func
6478
6479/* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char $ac_func (); below.
6481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6482 <limits.h> exists even on freestanding compilers. */
6483
6484#ifdef __STDC__
6485# include <limits.h>
6486#else
6487# include <assert.h>
6488#endif
6489
6490#undef $ac_func
6491
a8b2ad8d 6492/* Override any GCC internal prototype to avoid an error.
6493 Use char because int might match the return type of a GCC
6494 builtin and then its argument prototype would still apply. */
b3076f16 6495#ifdef __cplusplus
6496extern "C"
b3076f16 6497#endif
b3076f16 6498char $ac_func ();
6499/* The GNU C library defines this for functions which it implements
6500 to always fail with ENOSYS. Some functions are actually named
6501 something starting with __ and the normal name is an alias. */
a8b2ad8d 6502#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6503choke me
b3076f16 6504#endif
6505
6506int
6507main ()
6508{
a8b2ad8d 6509return $ac_func ();
b3076f16 6510 ;
6511 return 0;
ff3b058a 6512}
6513_ACEOF
6514rm -f conftest.$ac_objext conftest$ac_exeext
6515if { (ac_try="$ac_link"
6516case "(($ac_try" in
a8b2ad8d 6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 6521 (eval "$ac_link") 2>conftest.er1
b3076f16 6522 ac_status=$?
ff3b058a 6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
b3076f16 6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest$ac_exeext &&
6531 $as_test_x conftest$ac_exeext; then
b3076f16 6532 eval "$as_ac_var=yes"
6533else
6534 echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
a8b2ad8d 6537 eval "$as_ac_var=no"
b3076f16 6538fi
a8b2ad8d 6539
0bd0bef6 6540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6541 conftest$ac_exeext conftest.$ac_ext
6542fi
a8b2ad8d 6543ac_res=`eval echo '${'$as_ac_var'}'`
6544 { echo "$as_me:$LINENO: result: $ac_res" >&5
6545echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6546if test `eval echo '${'$as_ac_var'}'` = yes; then
6547 cat >>confdefs.h <<_ACEOF
6548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6549_ACEOF
6550
0f6fe38c 6551else
6552 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6553echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
6554 { (exit 1); exit 1; }; }
b3076f16 6555fi
6556done
6557
0f6fe38c 6558fi
6559
b3076f16 6560
6561
0f6fe38c 6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
b3076f16 6575do
6576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6577{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6579if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582 cat >conftest.$ac_ext <<_ACEOF
6583/* confdefs.h. */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h. */
6588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6590#define $ac_func innocuous_$ac_func
6591
6592/* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func (); below.
6594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6595 <limits.h> exists even on freestanding compilers. */
6596
6597#ifdef __STDC__
6598# include <limits.h>
6599#else
6600# include <assert.h>
6601#endif
6602
6603#undef $ac_func
6604
a8b2ad8d 6605/* Override any GCC internal prototype to avoid an error.
6606 Use char because int might match the return type of a GCC
6607 builtin and then its argument prototype would still apply. */
b3076f16 6608#ifdef __cplusplus
6609extern "C"
b3076f16 6610#endif
b3076f16 6611char $ac_func ();
6612/* The GNU C library defines this for functions which it implements
6613 to always fail with ENOSYS. Some functions are actually named
6614 something starting with __ and the normal name is an alias. */
a8b2ad8d 6615#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6616choke me
b3076f16 6617#endif
6618
6619int
6620main ()
6621{
a8b2ad8d 6622return $ac_func ();
b3076f16 6623 ;
6624 return 0;
6625}
6626_ACEOF
6627rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6628if { (ac_try="$ac_link"
6629case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632esac
6633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_link") 2>conftest.er1
b3076f16 6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest$ac_exeext &&
6644 $as_test_x conftest$ac_exeext; then
b3076f16 6645 eval "$as_ac_var=yes"
6646else
6647 echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
a8b2ad8d 6650 eval "$as_ac_var=no"
b3076f16 6651fi
a8b2ad8d 6652
0bd0bef6 6653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6654 conftest$ac_exeext conftest.$ac_ext
6655fi
a8b2ad8d 6656ac_res=`eval echo '${'$as_ac_var'}'`
6657 { echo "$as_me:$LINENO: result: $ac_res" >&5
6658echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6659if test `eval echo '${'$as_ac_var'}'` = yes; then
6660 cat >>confdefs.h <<_ACEOF
6661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6662_ACEOF
6663
6664fi
6665done
6666
6667
6668
6669
6670
6671
6672
0f6fe38c 6673
6674for ac_func in select socket strcspn strspn strtod strtoul
b3076f16 6675do
6676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6677{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681else
6682 cat >conftest.$ac_ext <<_ACEOF
6683/* confdefs.h. */
6684_ACEOF
6685cat confdefs.h >>conftest.$ac_ext
6686cat >>conftest.$ac_ext <<_ACEOF
6687/* end confdefs.h. */
6688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6690#define $ac_func innocuous_$ac_func
6691
6692/* System header to define __stub macros and hopefully few prototypes,
6693 which can conflict with char $ac_func (); below.
6694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6695 <limits.h> exists even on freestanding compilers. */
6696
6697#ifdef __STDC__
6698# include <limits.h>
6699#else
6700# include <assert.h>
6701#endif
6702
6703#undef $ac_func
6704
a8b2ad8d 6705/* Override any GCC internal prototype to avoid an error.
6706 Use char because int might match the return type of a GCC
6707 builtin and then its argument prototype would still apply. */
b3076f16 6708#ifdef __cplusplus
6709extern "C"
b3076f16 6710#endif
b3076f16 6711char $ac_func ();
6712/* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
a8b2ad8d 6715#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6716choke me
b3076f16 6717#endif
6718
6719int
6720main ()
6721{
a8b2ad8d 6722return $ac_func ();
b3076f16 6723 ;
6724 return 0;
6725}
6726_ACEOF
6727rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6728if { (ac_try="$ac_link"
6729case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732esac
6733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_link") 2>conftest.er1
b3076f16 6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6740 (exit $ac_status); } && {
6741 test -z "$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 } && test -s conftest$ac_exeext &&
6744 $as_test_x conftest$ac_exeext; then
b3076f16 6745 eval "$as_ac_var=yes"
6746else
6747 echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
a8b2ad8d 6750 eval "$as_ac_var=no"
b3076f16 6751fi
a8b2ad8d 6752
0bd0bef6 6753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6754 conftest$ac_exeext conftest.$ac_ext
6755fi
a8b2ad8d 6756ac_res=`eval echo '${'$as_ac_var'}'`
6757 { echo "$as_me:$LINENO: result: $ac_res" >&5
6758echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6759if test `eval echo '${'$as_ac_var'}'` = yes; then
6760 cat >>confdefs.h <<_ACEOF
6761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6762_ACEOF
6763
6764else
2f61d1d7 6765 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
6766echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 6767 { (exit 1); exit 1; }; }
6768fi
6769done
6770
6771
6772# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6773# for constant arguments. Useless!
a8b2ad8d 6774{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6775echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
b3076f16 6776if test "${ac_cv_working_alloca_h+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779 cat >conftest.$ac_ext <<_ACEOF
6780/* confdefs.h. */
6781_ACEOF
6782cat confdefs.h >>conftest.$ac_ext
6783cat >>conftest.$ac_ext <<_ACEOF
6784/* end confdefs.h. */
6785#include <alloca.h>
6786int
6787main ()
6788{
6789char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 6790 if (p) return 0;
b3076f16 6791 ;
6792 return 0;
6793}
6794_ACEOF
6795rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6796if { (ac_try="$ac_link"
6797case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800esac
6801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>conftest.er1
b3076f16 6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest$ac_exeext &&
6812 $as_test_x conftest$ac_exeext; then
b3076f16 6813 ac_cv_working_alloca_h=yes
6814else
6815 echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
a8b2ad8d 6818 ac_cv_working_alloca_h=no
b3076f16 6819fi
a8b2ad8d 6820
0bd0bef6 6821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6822 conftest$ac_exeext conftest.$ac_ext
6823fi
a8b2ad8d 6824{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6825echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
b3076f16 6826if test $ac_cv_working_alloca_h = yes; then
6827
6828cat >>confdefs.h <<\_ACEOF
6829#define HAVE_ALLOCA_H 1
6830_ACEOF
6831
6832fi
6833
a8b2ad8d 6834{ echo "$as_me:$LINENO: checking for alloca" >&5
6835echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
b3076f16 6836if test "${ac_cv_func_alloca_works+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838else
6839 cat >conftest.$ac_ext <<_ACEOF
6840/* confdefs.h. */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h. */
6845#ifdef __GNUC__
6846# define alloca __builtin_alloca
6847#else
6848# ifdef _MSC_VER
6849# include <malloc.h>
6850# define alloca _alloca
6851# else
0bd0bef6 6852# ifdef HAVE_ALLOCA_H
b3076f16 6853# include <alloca.h>
6854# else
6855# ifdef _AIX
6856 #pragma alloca
6857# else
6858# ifndef alloca /* predefined by HP cc +Olibcalls */
6859char *alloca ();
6860# endif
6861# endif
6862# endif
6863# endif
6864#endif
6865
6866int
6867main ()
6868{
6869char *p = (char *) alloca (1);
a8b2ad8d 6870 if (p) return 0;
b3076f16 6871 ;
6872 return 0;
6873}
6874_ACEOF
6875rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6876if { (ac_try="$ac_link"
6877case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880esac
6881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_link") 2>conftest.er1
b3076f16 6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest$ac_exeext &&
6892 $as_test_x conftest$ac_exeext; then
b3076f16 6893 ac_cv_func_alloca_works=yes
6894else
6895 echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
a8b2ad8d 6898 ac_cv_func_alloca_works=no
b3076f16 6899fi
a8b2ad8d 6900
0bd0bef6 6901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6902 conftest$ac_exeext conftest.$ac_ext
6903fi
a8b2ad8d 6904{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6905echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
b3076f16 6906
6907if test $ac_cv_func_alloca_works = yes; then
6908
6909cat >>confdefs.h <<\_ACEOF
6910#define HAVE_ALLOCA 1
6911_ACEOF
6912
6913else
6914 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6915# that cause trouble. Some versions do not even contain alloca or
6916# contain a buggy version. If you still want to use their alloca,
6917# use ar to extract alloca.o from them instead of compiling alloca.c.
6918
a8b2ad8d 6919ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 6920
6921cat >>confdefs.h <<\_ACEOF
6922#define C_ALLOCA 1
6923_ACEOF
6924
6925
a8b2ad8d 6926{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6927echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
b3076f16 6928if test "${ac_cv_os_cray+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930else
6931 cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h. */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h. */
a8b2ad8d 6937#if defined CRAY && ! defined CRAY2
b3076f16 6938webecray
6939#else
6940wenotbecray
6941#endif
6942
6943_ACEOF
6944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945 $EGREP "webecray" >/dev/null 2>&1; then
6946 ac_cv_os_cray=yes
6947else
6948 ac_cv_os_cray=no
6949fi
6950rm -f conftest*
6951
6952fi
a8b2ad8d 6953{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6954echo "${ECHO_T}$ac_cv_os_cray" >&6; }
b3076f16 6955if test $ac_cv_os_cray = yes; then
6956 for ac_func in _getb67 GETB67 getb67; do
6957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6958{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6960if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963 cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
6969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6971#define $ac_func innocuous_$ac_func
6972
6973/* System header to define __stub macros and hopefully few prototypes,
6974 which can conflict with char $ac_func (); below.
6975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6976 <limits.h> exists even on freestanding compilers. */
6977
6978#ifdef __STDC__
6979# include <limits.h>
6980#else
6981# include <assert.h>
6982#endif
6983
6984#undef $ac_func
6985
a8b2ad8d 6986/* Override any GCC internal prototype to avoid an error.
6987 Use char because int might match the return type of a GCC
6988 builtin and then its argument prototype would still apply. */
b3076f16 6989#ifdef __cplusplus
6990extern "C"
b3076f16 6991#endif
b3076f16 6992char $ac_func ();
6993/* The GNU C library defines this for functions which it implements
6994 to always fail with ENOSYS. Some functions are actually named
6995 something starting with __ and the normal name is an alias. */
a8b2ad8d 6996#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6997choke me
b3076f16 6998#endif
6999
7000int
7001main ()
7002{
a8b2ad8d 7003return $ac_func ();
b3076f16 7004 ;
7005 return 0;
7006}
7007_ACEOF
7008rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7009if { (ac_try="$ac_link"
7010case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013esac
7014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_link") 2>conftest.er1
b3076f16 7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest$ac_exeext &&
7025 $as_test_x conftest$ac_exeext; then
b3076f16 7026 eval "$as_ac_var=yes"
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
a8b2ad8d 7031 eval "$as_ac_var=no"
b3076f16 7032fi
a8b2ad8d 7033
0bd0bef6 7034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7035 conftest$ac_exeext conftest.$ac_ext
7036fi
a8b2ad8d 7037ac_res=`eval echo '${'$as_ac_var'}'`
7038 { echo "$as_me:$LINENO: result: $ac_res" >&5
7039echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7040if test `eval echo '${'$as_ac_var'}'` = yes; then
7041
7042cat >>confdefs.h <<_ACEOF
7043#define CRAY_STACKSEG_END $ac_func
7044_ACEOF
7045
7046 break
7047fi
7048
7049 done
7050fi
7051
a8b2ad8d 7052{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7053echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
b3076f16 7054if test "${ac_cv_c_stack_direction+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056else
7057 if test "$cross_compiling" = yes; then
7058 ac_cv_c_stack_direction=0
7059else
7060 cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h. */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h. */
a8b2ad8d 7066$ac_includes_default
b3076f16 7067int
7068find_stack_direction ()
7069{
7070 static char *addr = 0;
7071 auto char dummy;
7072 if (addr == 0)
7073 {
7074 addr = &dummy;
7075 return find_stack_direction ();
7076 }
7077 else
7078 return (&dummy > addr) ? 1 : -1;
7079}
7080
7081int
7082main ()
7083{
a8b2ad8d 7084 return find_stack_direction () < 0;
b3076f16 7085}
7086_ACEOF
7087rm -f conftest$ac_exeext
a8b2ad8d 7088if { (ac_try="$ac_link"
7089case "(($ac_try" in
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7092esac
7093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094 (eval "$ac_link") 2>&5
b3076f16 7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7098 { (case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101esac
7102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_try") 2>&5
b3076f16 7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 ac_cv_c_stack_direction=1
7108else
7109 echo "$as_me: program exited with status $ac_status" >&5
7110echo "$as_me: failed program was:" >&5
7111sed 's/^/| /' conftest.$ac_ext >&5
7112
7113( exit $ac_status )
7114ac_cv_c_stack_direction=-1
7115fi
a8b2ad8d 7116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7117fi
a8b2ad8d 7118
7119
b3076f16 7120fi
a8b2ad8d 7121{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7122echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
b3076f16 7123
7124cat >>confdefs.h <<_ACEOF
7125#define STACK_DIRECTION $ac_cv_c_stack_direction
7126_ACEOF
7127
7128
7129fi
7130
7131
7132
7133for ac_header in stdlib.h unistd.h
7134do
7135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141fi
a8b2ad8d 7142ac_res=`eval echo '${'$as_ac_Header'}'`
7143 { echo "$as_me:$LINENO: result: $ac_res" >&5
7144echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7145else
7146 # Is the header compilable?
a8b2ad8d 7147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 7149cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h. */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h. */
7155$ac_includes_default
7156#include <$ac_header>
7157_ACEOF
7158rm -f conftest.$ac_objext
a8b2ad8d 7159if { (ac_try="$ac_compile"
7160case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163esac
7164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
b3076f16 7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
b3076f16 7175 ac_header_compiler=yes
7176else
7177 echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
7179
a8b2ad8d 7180 ac_header_compiler=no
b3076f16 7181fi
a8b2ad8d 7182
7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 7186
7187# Is the header present?
a8b2ad8d 7188{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 7190cat >conftest.$ac_ext <<_ACEOF
7191/* confdefs.h. */
7192_ACEOF
7193cat confdefs.h >>conftest.$ac_ext
7194cat >>conftest.$ac_ext <<_ACEOF
7195/* end confdefs.h. */
7196#include <$ac_header>
7197_ACEOF
a8b2ad8d 7198if { (ac_try="$ac_cpp conftest.$ac_ext"
7199case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202esac
7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7210 (exit $ac_status); } >/dev/null && {
7211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 }; then
b3076f16 7214 ac_header_preproc=yes
7215else
7216 echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_header_preproc=no
7220fi
a8b2ad8d 7221
b3076f16 7222rm -f conftest.err conftest.$ac_ext
a8b2ad8d 7223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7224echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 7225
7226# So? What about this header?
7227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7228 yes:no: )
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7233 ac_header_preproc=yes
7234 ;;
7235 no:yes:* )
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 7248 ( cat <<\_ASBOX
63c95a47 7249## -------------------------------------------------- ##
7250## Report this to evilnet-devel@lists.sourceforge.net ##
7251## -------------------------------------------------- ##
b3076f16 7252_ASBOX
a8b2ad8d 7253 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 7254 ;;
7255esac
a8b2ad8d 7256{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261 eval "$as_ac_Header=\$ac_header_preproc"
7262fi
a8b2ad8d 7263ac_res=`eval echo '${'$as_ac_Header'}'`
7264 { echo "$as_me:$LINENO: result: $ac_res" >&5
7265echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7266
7267fi
7268if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7271_ACEOF
7272
7273fi
7274
7275done
7276
7277
7278for ac_func in getpagesize
7279do
7280as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7281{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7282echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7283if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286 cat >conftest.$ac_ext <<_ACEOF
7287/* confdefs.h. */
7288_ACEOF
7289cat confdefs.h >>conftest.$ac_ext
7290cat >>conftest.$ac_ext <<_ACEOF
7291/* end confdefs.h. */
7292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7294#define $ac_func innocuous_$ac_func
7295
7296/* System header to define __stub macros and hopefully few prototypes,
7297 which can conflict with char $ac_func (); below.
7298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7299 <limits.h> exists even on freestanding compilers. */
7300
7301#ifdef __STDC__
7302# include <limits.h>
7303#else
7304# include <assert.h>
7305#endif
7306
7307#undef $ac_func
7308
a8b2ad8d 7309/* Override any GCC internal prototype to avoid an error.
7310 Use char because int might match the return type of a GCC
7311 builtin and then its argument prototype would still apply. */
b3076f16 7312#ifdef __cplusplus
7313extern "C"
b3076f16 7314#endif
b3076f16 7315char $ac_func ();
7316/* The GNU C library defines this for functions which it implements
7317 to always fail with ENOSYS. Some functions are actually named
7318 something starting with __ and the normal name is an alias. */
a8b2ad8d 7319#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7320choke me
b3076f16 7321#endif
7322
7323int
7324main ()
7325{
a8b2ad8d 7326return $ac_func ();
b3076f16 7327 ;
7328 return 0;
7329}
7330_ACEOF
7331rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7332if { (ac_try="$ac_link"
7333case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336esac
7337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_link") 2>conftest.er1
b3076f16 7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest$ac_exeext &&
7348 $as_test_x conftest$ac_exeext; then
b3076f16 7349 eval "$as_ac_var=yes"
7350else
7351 echo "$as_me: failed program was:" >&5
7352sed 's/^/| /' conftest.$ac_ext >&5
7353
a8b2ad8d 7354 eval "$as_ac_var=no"
b3076f16 7355fi
a8b2ad8d 7356
0bd0bef6 7357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7358 conftest$ac_exeext conftest.$ac_ext
7359fi
a8b2ad8d 7360ac_res=`eval echo '${'$as_ac_var'}'`
7361 { echo "$as_me:$LINENO: result: $ac_res" >&5
7362echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7363if test `eval echo '${'$as_ac_var'}'` = yes; then
7364 cat >>confdefs.h <<_ACEOF
7365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7366_ACEOF
7367
7368fi
7369done
7370
a8b2ad8d 7371{ echo "$as_me:$LINENO: checking for working mmap" >&5
7372echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
b3076f16 7373if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376 if test "$cross_compiling" = yes; then
7377 ac_cv_func_mmap_fixed_mapped=no
7378else
7379 cat >conftest.$ac_ext <<_ACEOF
7380/* confdefs.h. */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h. */
7385$ac_includes_default
7386/* malloc might have been renamed as rpl_malloc. */
7387#undef malloc
7388
7389/* Thanks to Mike Haertel and Jim Avera for this test.
7390 Here is a matrix of mmap possibilities:
7391 mmap private not fixed
7392 mmap private fixed at somewhere currently unmapped
7393 mmap private fixed at somewhere already mapped
7394 mmap shared not fixed
7395 mmap shared fixed at somewhere currently unmapped
7396 mmap shared fixed at somewhere already mapped
7397 For private mappings, we should verify that changes cannot be read()
7398 back from the file, nor mmap's back from the file at a different
7399 address. (There have been systems where private was not correctly
7400 implemented like the infamous i386 svr4.0, and systems where the
7401 VM page cache was not coherent with the file system buffer cache
7402 like early versions of FreeBSD and possibly contemporary NetBSD.)
7403 For shared mappings, we should conversely verify that changes get
7404 propagated back to all the places they're supposed to be.
7405
7406 Grep wants private fixed already mapped.
7407 The main things grep needs to know about mmap are:
7408 * does it exist and is it safe to write into the mmap'd area
7409 * how to use it (BSD variants) */
7410
7411#include <fcntl.h>
7412#include <sys/mman.h>
7413
0bd0bef6 7414#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b3076f16 7415char *malloc ();
7416#endif
7417
7418/* This mess was copied from the GNU getpagesize.h. */
0bd0bef6 7419#ifndef HAVE_GETPAGESIZE
b3076f16 7420/* Assume that all systems that can run configure have sys/param.h. */
0bd0bef6 7421# ifndef HAVE_SYS_PARAM_H
b3076f16 7422# define HAVE_SYS_PARAM_H 1
7423# endif
7424
7425# ifdef _SC_PAGESIZE
7426# define getpagesize() sysconf(_SC_PAGESIZE)
7427# else /* no _SC_PAGESIZE */
0bd0bef6 7428# ifdef HAVE_SYS_PARAM_H
b3076f16 7429# include <sys/param.h>
7430# ifdef EXEC_PAGESIZE
7431# define getpagesize() EXEC_PAGESIZE
7432# else /* no EXEC_PAGESIZE */
7433# ifdef NBPG
7434# define getpagesize() NBPG * CLSIZE
7435# ifndef CLSIZE
7436# define CLSIZE 1
7437# endif /* no CLSIZE */
7438# else /* no NBPG */
7439# ifdef NBPC
7440# define getpagesize() NBPC
7441# else /* no NBPC */
7442# ifdef PAGESIZE
7443# define getpagesize() PAGESIZE
7444# endif /* PAGESIZE */
7445# endif /* no NBPC */
7446# endif /* no NBPG */
7447# endif /* no EXEC_PAGESIZE */
7448# else /* no HAVE_SYS_PARAM_H */
7449# define getpagesize() 8192 /* punt totally */
7450# endif /* no HAVE_SYS_PARAM_H */
7451# endif /* no _SC_PAGESIZE */
7452
7453#endif /* no HAVE_GETPAGESIZE */
7454
7455int
7456main ()
7457{
7458 char *data, *data2, *data3;
7459 int i, pagesize;
7460 int fd;
7461
7462 pagesize = getpagesize ();
7463
7464 /* First, make a file with some known garbage in it. */
7465 data = (char *) malloc (pagesize);
7466 if (!data)
a8b2ad8d 7467 return 1;
b3076f16 7468 for (i = 0; i < pagesize; ++i)
7469 *(data + i) = rand ();
7470 umask (0);
7471 fd = creat ("conftest.mmap", 0600);
7472 if (fd < 0)
a8b2ad8d 7473 return 1;
b3076f16 7474 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 7475 return 1;
b3076f16 7476 close (fd);
7477
7478 /* Next, try to mmap the file at a fixed address which already has
7479 something else allocated at it. If we can, also make sure that
7480 we see the same garbage. */
7481 fd = open ("conftest.mmap", O_RDWR);
7482 if (fd < 0)
a8b2ad8d 7483 return 1;
b3076f16 7484 data2 = (char *) malloc (2 * pagesize);
7485 if (!data2)
a8b2ad8d 7486 return 1;
7487 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16 7488 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7489 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 7490 return 1;
b3076f16 7491 for (i = 0; i < pagesize; ++i)
7492 if (*(data + i) != *(data2 + i))
a8b2ad8d 7493 return 1;
b3076f16 7494
7495 /* Finally, make sure that changes to the mapped area do not
7496 percolate back to the file as seen by read(). (This is a bug on
7497 some variants of i386 svr4.0.) */
7498 for (i = 0; i < pagesize; ++i)
7499 *(data2 + i) = *(data2 + i) + 1;
7500 data3 = (char *) malloc (pagesize);
7501 if (!data3)
a8b2ad8d 7502 return 1;
b3076f16 7503 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 7504 return 1;
b3076f16 7505 for (i = 0; i < pagesize; ++i)
7506 if (*(data + i) != *(data3 + i))
a8b2ad8d 7507 return 1;
b3076f16 7508 close (fd);
a8b2ad8d 7509 return 0;
b3076f16 7510}
7511_ACEOF
7512rm -f conftest$ac_exeext
a8b2ad8d 7513if { (ac_try="$ac_link"
7514case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517esac
7518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_link") 2>&5
b3076f16 7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7523 { (case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526esac
7527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_try") 2>&5
b3076f16 7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 ac_cv_func_mmap_fixed_mapped=yes
7533else
7534 echo "$as_me: program exited with status $ac_status" >&5
7535echo "$as_me: failed program was:" >&5
7536sed 's/^/| /' conftest.$ac_ext >&5
7537
7538( exit $ac_status )
7539ac_cv_func_mmap_fixed_mapped=no
7540fi
a8b2ad8d 7541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7542fi
a8b2ad8d 7543
7544
b3076f16 7545fi
a8b2ad8d 7546{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7547echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 7548if test $ac_cv_func_mmap_fixed_mapped = yes; then
7549
7550cat >>confdefs.h <<\_ACEOF
7551#define HAVE_MMAP 1
7552_ACEOF
7553
7554fi
7555rm -f conftest.mmap
7556
7557
a8b2ad8d 7558{ echo "$as_me:$LINENO: checking for sin_len" >&5
7559echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
b3076f16 7560if test "${ac_cv_sin_len+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 cat >conftest.$ac_ext <<_ACEOF
7564/* confdefs.h. */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h. */
7569#include <sys/types.h>
7570#include <netinet/in.h>
7571int
7572main ()
7573{
7574struct sockaddr_in *sin; sin->sin_len = 0;
7575 ;
7576 return 0;
7577}
7578_ACEOF
7579rm -f conftest.$ac_objext
a8b2ad8d 7580if { (ac_try="$ac_compile"
7581case "(($ac_try" in
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7584esac
7585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_compile") 2>conftest.er1
b3076f16 7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7592 (exit $ac_status); } && {
7593 test -z "$ac_c_werror_flag" ||
7594 test ! -s conftest.err
7595 } && test -s conftest.$ac_objext; then
b3076f16 7596 ac_cv_sin_len="yes"
7597else
7598 echo "$as_me: failed program was:" >&5
7599sed 's/^/| /' conftest.$ac_ext >&5
7600
a8b2ad8d 7601 ac_cv_sin_len="no"
b3076f16 7602fi
a8b2ad8d 7603
7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7605fi
a8b2ad8d 7606{ echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
7607echo "${ECHO_T}$ac_cv_sin_len" >&6; }
b3076f16 7608if test $ac_cv_sin_len = yes ; then
7609
7610cat >>confdefs.h <<\_ACEOF
7611#define HAVE_SIN_LEN 1
7612_ACEOF
7613
7614fi
7615
a8b2ad8d 7616{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7617echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
79886419 7618if test "${ac_cv_type_socklen_t+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621 cat >conftest.$ac_ext <<_ACEOF
7622/* confdefs.h. */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h. */
7627#include <sys/types.h>
7628#include<sys/socket.h>
7629
a8b2ad8d 7630typedef socklen_t ac__type_new_;
79886419 7631int
7632main ()
7633{
a8b2ad8d 7634if ((ac__type_new_ *) 0)
79886419 7635 return 0;
a8b2ad8d 7636if (sizeof (ac__type_new_))
79886419 7637 return 0;
7638 ;
7639 return 0;
7640}
7641_ACEOF
7642rm -f conftest.$ac_objext
a8b2ad8d 7643if { (ac_try="$ac_compile"
7644case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647esac
7648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_compile") 2>conftest.er1
79886419 7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
0f6fe38c 7659 ac_cv_type_socklen_t=yes
ff3b058a 7660else
7661 echo "$as_me: failed program was:" >&5
7662sed 's/^/| /' conftest.$ac_ext >&5
7663
0f6fe38c 7664 ac_cv_type_socklen_t=no
ff3b058a 7665fi
7666
7667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff3b058a 7668fi
0f6fe38c 7669{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7670echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7671if test $ac_cv_type_socklen_t = yes; then
7672 :
7673else
ff3b058a 7674
0f6fe38c 7675 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
7676echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
7677 if test "${curl_cv_socklen_t_equiv+set}" = set; then
ff3b058a 7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
0f6fe38c 7680
7681 curl_cv_socklen_t_equiv=
7682 for arg2 in "struct sockaddr" void ; do
7683 for t in int size_t unsigned long "unsigned long" ; do
7684 cat >conftest.$ac_ext <<_ACEOF
ff3b058a 7685/* confdefs.h. */
7686_ACEOF
7687cat confdefs.h >>conftest.$ac_ext
7688cat >>conftest.$ac_ext <<_ACEOF
7689/* end confdefs.h. */
0f6fe38c 7690#include <sys/types.h>
7691#include <sys/socket.h>
7692int getpeername (int $arg2 *, $t *);
7693int
7694main ()
7695{
7696$t len;
7697 getpeername(0, 0, &len);
7698 ;
7699 return 0;
7700}
79886419 7701_ACEOF
7702rm -f conftest.$ac_objext
a8b2ad8d 7703if { (ac_try="$ac_compile"
7704case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
7708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
79886419 7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
0f6fe38c 7719 curl_cv_socklen_t_equiv="$t"
7720 break
79886419 7721else
7722 echo "$as_me: failed program was:" >&5
7723sed 's/^/| /' conftest.$ac_ext >&5
7724
a8b2ad8d 7725
79886419 7726fi
a8b2ad8d 7727
7728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0f6fe38c 7729 done
7730 done
79886419 7731
7732fi
7733
0f6fe38c 7734 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
7735echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
79886419 7736
0f6fe38c 7737cat >>confdefs.h <<_ACEOF
7738#define socklen_t $curl_cv_socklen_t_equiv
79886419 7739_ACEOF
7740
0f6fe38c 7741fi
7742
7743
7744OLD_CFLAGS=$CFLAGS
7745CFLAGS="$CFLAGS -W -Wall -Werror"
b3076f16 7746
a8b2ad8d 7747{ echo "$as_me:$LINENO: checking for time_t format" >&5
7748echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
b3076f16 7749if test "${ac_cv_fmt_time_t+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752
7753ac_cv_fmt_time_t=no
7754cat >conftest.$ac_ext <<_ACEOF
7755#include <sys/types.h>
7756#include <stdio.h>
7757void myfunc(void) {
7758 time_t test=0;
7759 printf("%li", test);
7760}
7761_ACEOF
7762rm -f conftest.$ac_objext
a8b2ad8d 7763if { (ac_try="$ac_compile"
7764case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767esac
7768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_compile") 2>conftest.er1
b3076f16 7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7775 (exit $ac_status); } && {
7776 test -z "$ac_c_werror_flag" ||
7777 test ! -s conftest.err
7778 } && test -s conftest.$ac_objext; then
b3076f16 7779 ac_cv_fmt_time_t="\"%li\""
7780else
7781 echo "$as_me: failed program was:" >&5
7782sed 's/^/| /' conftest.$ac_ext >&5
7783
a8b2ad8d 7784
b3076f16 7785fi
a8b2ad8d 7786
7787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7788if test $ac_cv_fmt_time_t = no; then
7789cat >conftest.$ac_ext <<_ACEOF
7790#include <sys/types.h>
7791#include <stdio.h>
7792void myfunc(void) {
7793 time_t test=0;
7794 printf("%i", test);
7795}
7796_ACEOF
7797rm -f conftest.$ac_objext
a8b2ad8d 7798if { (ac_try="$ac_compile"
7799case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802esac
7803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_compile") 2>conftest.er1
b3076f16 7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
b3076f16 7814 ac_cv_fmt_time_t="\"%i\""
7815else
7816 echo "$as_me: failed program was:" >&5
7817sed 's/^/| /' conftest.$ac_ext >&5
7818
a8b2ad8d 7819
b3076f16 7820fi
a8b2ad8d 7821
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7823fi
7824if test $ac_cv_fmt_time_t = no; then
7825{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
7826Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
7827echo "$as_me: error: Cannot detect format string for time_t
7828Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
7829 { (exit 1); exit 1; }; }
7830fi
7831
7832fi
7833
7834
7835cat >>confdefs.h <<_ACEOF
7836#define FMT_TIME_T $ac_cv_fmt_time_t
7837_ACEOF
7838
a8b2ad8d 7839{ echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
7840echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
b3076f16 7841
a8b2ad8d 7842{ echo "$as_me:$LINENO: checking for va_copy" >&5
7843echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
b3076f16 7844if test "${ac_cv_c_va_copy+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847 cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853#include <stdarg.h>
7854int
7855main ()
7856{
7857va_list ap1, ap2; va_copy(ap1, ap2);
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7863if { (ac_try="$ac_link"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
b3076f16 7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest$ac_exeext &&
7879 $as_test_x conftest$ac_exeext; then
b3076f16 7880 ac_cv_c_va_copy="yes"
7881else
7882 echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
a8b2ad8d 7885 ac_cv_c_va_copy="no"
b3076f16 7886
7887fi
a8b2ad8d 7888
0bd0bef6 7889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7890 conftest$ac_exeext conftest.$ac_ext
7891fi
a8b2ad8d 7892{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
7893echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
b3076f16 7894if test "$ac_cv_c_va_copy" = "yes" ; then
7895
7896cat >>confdefs.h <<\_ACEOF
7897#define HAVE_VA_COPY 1
7898_ACEOF
7899
7900fi
7901
a8b2ad8d 7902{ echo "$as_me:$LINENO: checking for __va_copy" >&5
7903echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
b3076f16 7904if test "${ac_cv_c___va_copy+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907 cat >conftest.$ac_ext <<_ACEOF
7908/* confdefs.h. */
7909_ACEOF
7910cat confdefs.h >>conftest.$ac_ext
7911cat >>conftest.$ac_ext <<_ACEOF
7912/* end confdefs.h. */
7913#include <stdarg.h>
7914int
7915main ()
7916{
7917va_list ap1, ap2; __va_copy(ap1, ap2);
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7923if { (ac_try="$ac_link"
7924case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_link") 2>conftest.er1
b3076f16 7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest$ac_exeext &&
7939 $as_test_x conftest$ac_exeext; then
b3076f16 7940 ac_cv_c___va_copy="yes"
7941else
7942 echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
a8b2ad8d 7945 ac_cv_c___va_copy="no"
b3076f16 7946
7947fi
a8b2ad8d 7948
0bd0bef6 7949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7950 conftest$ac_exeext conftest.$ac_ext
7951fi
a8b2ad8d 7952{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
7953echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
b3076f16 7954if test "$ac_cv_c___va_copy" = "yes" ; then
7955
7956cat >>confdefs.h <<\_ACEOF
7957#define HAVE___VA_COPY 1
7958_ACEOF
7959
7960fi
7961
7962CFLAGS=$OLD_CFLAGS
7963
a8b2ad8d 7964{ echo "$as_me:$LINENO: checking which malloc to use" >&5
7965echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
b3076f16 7966
a8b2ad8d 7967# Check whether --with-malloc was given.
b3076f16 7968if test "${with_malloc+set}" = set; then
a8b2ad8d 7969 withval=$with_malloc;
b3076f16 7970else
7971 withval="system"
a8b2ad8d 7972fi
7973
b3076f16 7974if test "x$withval" = "xsystem" ; then
a8b2ad8d 7975 { echo "$as_me:$LINENO: result: system" >&5
7976echo "${ECHO_T}system" >&6; }
b3076f16 7977
7978cat >>confdefs.h <<\_ACEOF
7979#define WITH_MALLOC_SYSTEM 1
7980_ACEOF
7981
5b1166fd 7982 x3_malloc="System"
b3076f16 7983elif test "x$withval" = "xdmalloc" ; then
a8b2ad8d 7984 { echo "$as_me:$LINENO: result: dmalloc" >&5
7985echo "${ECHO_T}dmalloc" >&6; }
b3076f16 7986
7987for ac_header in dmalloc.h
7988do
7989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995fi
a8b2ad8d 7996ac_res=`eval echo '${'$as_ac_Header'}'`
7997 { echo "$as_me:$LINENO: result: $ac_res" >&5
7998echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7999else
8000 # Is the header compilable?
a8b2ad8d 8001{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8003cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h. */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h. */
8009$ac_includes_default
8010#include <$ac_header>
8011_ACEOF
8012rm -f conftest.$ac_objext
a8b2ad8d 8013if { (ac_try="$ac_compile"
8014case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017esac
8018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
b3076f16 8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
b3076f16 8029 ac_header_compiler=yes
8030else
8031 echo "$as_me: failed program was:" >&5
8032sed 's/^/| /' conftest.$ac_ext >&5
8033
a8b2ad8d 8034 ac_header_compiler=no
b3076f16 8035fi
a8b2ad8d 8036
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8039echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8040
8041# Is the header present?
a8b2ad8d 8042{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8043echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8044cat >conftest.$ac_ext <<_ACEOF
8045/* confdefs.h. */
8046_ACEOF
8047cat confdefs.h >>conftest.$ac_ext
8048cat >>conftest.$ac_ext <<_ACEOF
8049/* end confdefs.h. */
8050#include <$ac_header>
8051_ACEOF
a8b2ad8d 8052if { (ac_try="$ac_cpp conftest.$ac_ext"
8053case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056esac
8057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8064 (exit $ac_status); } >/dev/null && {
8065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 }; then
b3076f16 8068 ac_header_preproc=yes
8069else
8070 echo "$as_me: failed program was:" >&5
8071sed 's/^/| /' conftest.$ac_ext >&5
8072
8073 ac_header_preproc=no
8074fi
a8b2ad8d 8075
b3076f16 8076rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8077{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8078echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8079
8080# So? What about this header?
8081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8082 yes:no: )
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8084echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8086echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8087 ac_header_preproc=yes
8088 ;;
8089 no:yes:* )
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8091echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8093echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8095echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8097echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8101echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8102 ( cat <<\_ASBOX
63c95a47 8103## -------------------------------------------------- ##
8104## Report this to evilnet-devel@lists.sourceforge.net ##
8105## -------------------------------------------------- ##
b3076f16 8106_ASBOX
a8b2ad8d 8107 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8108 ;;
8109esac
a8b2ad8d 8110{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115 eval "$as_ac_Header=\$ac_header_preproc"
8116fi
a8b2ad8d 8117ac_res=`eval echo '${'$as_ac_Header'}'`
8118 { echo "$as_me:$LINENO: result: $ac_res" >&5
8119echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8120
8121fi
8122if test `eval echo '${'$as_ac_Header'}'` = yes; then
8123 cat >>confdefs.h <<_ACEOF
8124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8125_ACEOF
8126
8127else
8128 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8129echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8130 { (exit 1); exit 1; }; }
8131fi
8132
8133done
8134
8135
a8b2ad8d 8136{ echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8137echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
b3076f16 8138if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 ac_check_lib_save_LIBS=$LIBS
8142LIBS="-ldmalloc $LIBS"
8143cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
8149
a8b2ad8d 8150/* Override any GCC internal prototype to avoid an error.
8151 Use char because int might match the return type of a GCC
8152 builtin and then its argument prototype would still apply. */
b3076f16 8153#ifdef __cplusplus
8154extern "C"
8155#endif
b3076f16 8156char malloc ();
8157int
8158main ()
8159{
a8b2ad8d 8160return malloc ();
b3076f16 8161 ;
8162 return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8166if { (ac_try="$ac_link"
8167case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170esac
8171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_link") 2>conftest.er1
b3076f16 8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest$ac_exeext &&
8182 $as_test_x conftest$ac_exeext; then
b3076f16 8183 ac_cv_lib_dmalloc_malloc=yes
8184else
8185 echo "$as_me: failed program was:" >&5
8186sed 's/^/| /' conftest.$ac_ext >&5
8187
a8b2ad8d 8188 ac_cv_lib_dmalloc_malloc=no
b3076f16 8189fi
a8b2ad8d 8190
0bd0bef6 8191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8192 conftest$ac_exeext conftest.$ac_ext
8193LIBS=$ac_check_lib_save_LIBS
8194fi
a8b2ad8d 8195{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8196echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
b3076f16 8197if test $ac_cv_lib_dmalloc_malloc = yes; then
8198 cat >>confdefs.h <<_ACEOF
8199#define HAVE_LIBDMALLOC 1
8200_ACEOF
8201
8202 LIBS="-ldmalloc $LIBS"
8203
8204else
8205 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8206echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8207 { (exit 1); exit 1; }; }
8208fi
8209
8210
8211cat >>confdefs.h <<\_ACEOF
8212#define WITH_MALLOC_DMALLOC 1
8213_ACEOF
8214
5b1166fd 8215 x3_malloc="DMalloc"
b3076f16 8216elif test "x$withval" = "xmpatrol" ; then
a8b2ad8d 8217 { echo "$as_me:$LINENO: result: mpatrol" >&5
8218echo "${ECHO_T}mpatrol" >&6; }
b3076f16 8219
8220for ac_header in mpatrol.h
8221do
8222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228fi
a8b2ad8d 8229ac_res=`eval echo '${'$as_ac_Header'}'`
8230 { echo "$as_me:$LINENO: result: $ac_res" >&5
8231echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8232else
8233 # Is the header compilable?
a8b2ad8d 8234{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8235echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8236cat >conftest.$ac_ext <<_ACEOF
8237/* confdefs.h. */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
8241/* end confdefs.h. */
8242$ac_includes_default
8243#include <$ac_header>
8244_ACEOF
8245rm -f conftest.$ac_objext
a8b2ad8d 8246if { (ac_try="$ac_compile"
8247case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
b3076f16 8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
b3076f16 8262 ac_header_compiler=yes
8263else
8264 echo "$as_me: failed program was:" >&5
8265sed 's/^/| /' conftest.$ac_ext >&5
8266
a8b2ad8d 8267 ac_header_compiler=no
b3076f16 8268fi
a8b2ad8d 8269
8270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8272echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8273
8274# Is the header present?
a8b2ad8d 8275{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8277cat >conftest.$ac_ext <<_ACEOF
8278/* confdefs.h. */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
8282/* end confdefs.h. */
8283#include <$ac_header>
8284_ACEOF
a8b2ad8d 8285if { (ac_try="$ac_cpp conftest.$ac_ext"
8286case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8289esac
8290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8297 (exit $ac_status); } >/dev/null && {
8298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 }; then
b3076f16 8301 ac_header_preproc=yes
8302else
8303 echo "$as_me: failed program was:" >&5
8304sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 ac_header_preproc=no
8307fi
a8b2ad8d 8308
b3076f16 8309rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8310{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8311echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8312
8313# So? What about this header?
8314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8315 yes:no: )
8316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8320 ac_header_preproc=yes
8321 ;;
8322 no:yes:* )
8323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8335 ( cat <<\_ASBOX
63c95a47 8336## -------------------------------------------------- ##
8337## Report this to evilnet-devel@lists.sourceforge.net ##
8338## -------------------------------------------------- ##
b3076f16 8339_ASBOX
a8b2ad8d 8340 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8341 ;;
8342esac
a8b2ad8d 8343{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347else
8348 eval "$as_ac_Header=\$ac_header_preproc"
8349fi
a8b2ad8d 8350ac_res=`eval echo '${'$as_ac_Header'}'`
8351 { echo "$as_me:$LINENO: result: $ac_res" >&5
8352echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8353
8354fi
8355if test `eval echo '${'$as_ac_Header'}'` = yes; then
8356 cat >>confdefs.h <<_ACEOF
8357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358_ACEOF
8359
8360else
8361 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
8362echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
8363 { (exit 1); exit 1; }; }
8364fi
8365
8366done
8367
8368
a8b2ad8d 8369{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
8370echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
b3076f16 8371if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374 ac_check_lib_save_LIBS=$LIBS
8375LIBS="-lelf $LIBS"
8376cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382
a8b2ad8d 8383/* Override any GCC internal prototype to avoid an error.
8384 Use char because int might match the return type of a GCC
8385 builtin and then its argument prototype would still apply. */
b3076f16 8386#ifdef __cplusplus
8387extern "C"
8388#endif
b3076f16 8389char elf_begin ();
8390int
8391main ()
8392{
a8b2ad8d 8393return elf_begin ();
b3076f16 8394 ;
8395 return 0;
8396}
8397_ACEOF
8398rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8399if { (ac_try="$ac_link"
8400case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_link") 2>conftest.er1
b3076f16 8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest$ac_exeext &&
8415 $as_test_x conftest$ac_exeext; then
b3076f16 8416 ac_cv_lib_elf_elf_begin=yes
8417else
8418 echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
a8b2ad8d 8421 ac_cv_lib_elf_elf_begin=no
b3076f16 8422fi
a8b2ad8d 8423
0bd0bef6 8424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8425 conftest$ac_exeext conftest.$ac_ext
8426LIBS=$ac_check_lib_save_LIBS
8427fi
a8b2ad8d 8428{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
8429echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
b3076f16 8430if test $ac_cv_lib_elf_elf_begin = yes; then
8431 cat >>confdefs.h <<_ACEOF
8432#define HAVE_LIBELF 1
8433_ACEOF
8434
8435 LIBS="-lelf $LIBS"
8436
8437fi
8438
8439
a8b2ad8d 8440{ echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
8441echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
b3076f16 8442if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444else
8445 ac_check_lib_save_LIBS=$LIBS
8446LIBS="-lmpatrol $LIBS"
8447cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h. */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h. */
8453
a8b2ad8d 8454/* Override any GCC internal prototype to avoid an error.
8455 Use char because int might match the return type of a GCC
8456 builtin and then its argument prototype would still apply. */
b3076f16 8457#ifdef __cplusplus
8458extern "C"
8459#endif
b3076f16 8460char __mp_atexit ();
8461int
8462main ()
8463{
a8b2ad8d 8464return __mp_atexit ();
b3076f16 8465 ;
8466 return 0;
8467}
8468_ACEOF
8469rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8470if { (ac_try="$ac_link"
8471case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474esac
8475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_link") 2>conftest.er1
b3076f16 8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8482 (exit $ac_status); } && {
8483 test -z "$ac_c_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest$ac_exeext &&
8486 $as_test_x conftest$ac_exeext; then
b3076f16 8487 ac_cv_lib_mpatrol___mp_atexit=yes
8488else
8489 echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5
8491
a8b2ad8d 8492 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 8493fi
a8b2ad8d 8494
0bd0bef6 8495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8496 conftest$ac_exeext conftest.$ac_ext
8497LIBS=$ac_check_lib_save_LIBS
8498fi
a8b2ad8d 8499{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
8500echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
b3076f16 8501if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503#define HAVE_LIBMPATROL 1
8504_ACEOF
8505
8506 LIBS="-lmpatrol $LIBS"
8507
8508else
8509 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
8510echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
8511 { (exit 1); exit 1; }; }
8512fi
8513
8514
8515cat >>confdefs.h <<\_ACEOF
8516#define WITH_MALLOC_MPATROL 1
8517_ACEOF
8518
5b1166fd 8519 x3_malloc="MPatrol"
b3076f16 8520elif test "x$withval" = "xboehm-gc" ; then
a8b2ad8d 8521 { echo "$as_me:$LINENO: result: boehm-gc" >&5
8522echo "${ECHO_T}boehm-gc" >&6; }
b3076f16 8523
8524for ac_header in gc/gc.h
8525do
8526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532fi
a8b2ad8d 8533ac_res=`eval echo '${'$as_ac_Header'}'`
8534 { echo "$as_me:$LINENO: result: $ac_res" >&5
8535echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8536else
8537 # Is the header compilable?
a8b2ad8d 8538{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8539echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8540cat >conftest.$ac_ext <<_ACEOF
8541/* confdefs.h. */
8542_ACEOF
8543cat confdefs.h >>conftest.$ac_ext
8544cat >>conftest.$ac_ext <<_ACEOF
8545/* end confdefs.h. */
8546$ac_includes_default
ff3b058a 8547#include <$ac_header>
8548_ACEOF
8549rm -f conftest.$ac_objext
8550if { (ac_try="$ac_compile"
8551case "(($ac_try" in
a8b2ad8d 8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
0f6fe38c 8556 (eval "$ac_compile") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
b3076f16 8566 ac_header_compiler=yes
8567else
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
a8b2ad8d 8571 ac_header_compiler=no
b3076f16 8572fi
a8b2ad8d 8573
8574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8576echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8577
8578# Is the header present?
a8b2ad8d 8579{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8581cat >conftest.$ac_ext <<_ACEOF
8582/* confdefs.h. */
8583_ACEOF
8584cat confdefs.h >>conftest.$ac_ext
8585cat >>conftest.$ac_ext <<_ACEOF
8586/* end confdefs.h. */
8587#include <$ac_header>
8588_ACEOF
a8b2ad8d 8589if { (ac_try="$ac_cpp conftest.$ac_ext"
8590case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593esac
8594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8601 (exit $ac_status); } >/dev/null && {
8602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 }; then
b3076f16 8605 ac_header_preproc=yes
8606else
8607 echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ac_header_preproc=no
8611fi
a8b2ad8d 8612
b3076f16 8613rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8614{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8615echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8616
8617# So? What about this header?
8618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8619 yes:no: )
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8624 ac_header_preproc=yes
8625 ;;
8626 no:yes:* )
8627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8639 ( cat <<\_ASBOX
63c95a47 8640## -------------------------------------------------- ##
8641## Report this to evilnet-devel@lists.sourceforge.net ##
8642## -------------------------------------------------- ##
b3076f16 8643_ASBOX
a8b2ad8d 8644 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8645 ;;
8646esac
a8b2ad8d 8647{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
8652 eval "$as_ac_Header=\$ac_header_preproc"
8653fi
a8b2ad8d 8654ac_res=`eval echo '${'$as_ac_Header'}'`
8655 { echo "$as_me:$LINENO: result: $ac_res" >&5
8656echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8657
8658fi
8659if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8662_ACEOF
8663
8664else
8665 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
8666echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
8667 { (exit 1); exit 1; }; }
8668fi
8669
8670done
8671
8672
a8b2ad8d 8673{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8674echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
b3076f16 8675if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678 ac_check_lib_save_LIBS=$LIBS
8679LIBS="-ldl $LIBS"
8680cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
8686
a8b2ad8d 8687/* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
b3076f16 8690#ifdef __cplusplus
8691extern "C"
8692#endif
b3076f16 8693char dlopen ();
8694int
8695main ()
8696{
a8b2ad8d 8697return dlopen ();
b3076f16 8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8703if { (ac_try="$ac_link"
8704case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707esac
8708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_link") 2>conftest.er1
b3076f16 8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest$ac_exeext &&
8719 $as_test_x conftest$ac_exeext; then
b3076f16 8720 ac_cv_lib_dl_dlopen=yes
8721else
8722 echo "$as_me: failed program was:" >&5
8723sed 's/^/| /' conftest.$ac_ext >&5
8724
a8b2ad8d 8725 ac_cv_lib_dl_dlopen=no
b3076f16 8726fi
a8b2ad8d 8727
0bd0bef6 8728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8729 conftest$ac_exeext conftest.$ac_ext
8730LIBS=$ac_check_lib_save_LIBS
8731fi
a8b2ad8d 8732{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8733echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
b3076f16 8734if test $ac_cv_lib_dl_dlopen = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736#define HAVE_LIBDL 1
8737_ACEOF
8738
8739 LIBS="-ldl $LIBS"
8740
8741else
8742 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
8743echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
8744 { (exit 1); exit 1; }; }
8745fi
8746
8747
a8b2ad8d 8748{ echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
8749echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
b3076f16 8750if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752else
8753 ac_check_lib_save_LIBS=$LIBS
8754LIBS="-lgc $LIBS"
8755cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
8761
a8b2ad8d 8762/* Override any GCC internal prototype to avoid an error.
8763 Use char because int might match the return type of a GCC
8764 builtin and then its argument prototype would still apply. */
b3076f16 8765#ifdef __cplusplus
8766extern "C"
8767#endif
b3076f16 8768char GC_gcollect ();
8769int
8770main ()
8771{
a8b2ad8d 8772return GC_gcollect ();
b3076f16 8773 ;
8774 return 0;
8775}
8776_ACEOF
8777rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8778if { (ac_try="$ac_link"
8779case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782esac
8783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_link") 2>conftest.er1
b3076f16 8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8790 (exit $ac_status); } && {
8791 test -z "$ac_c_werror_flag" ||
8792 test ! -s conftest.err
8793 } && test -s conftest$ac_exeext &&
8794 $as_test_x conftest$ac_exeext; then
b3076f16 8795 ac_cv_lib_gc_GC_gcollect=yes
8796else
8797 echo "$as_me: failed program was:" >&5
8798sed 's/^/| /' conftest.$ac_ext >&5
8799
a8b2ad8d 8800 ac_cv_lib_gc_GC_gcollect=no
b3076f16 8801fi
a8b2ad8d 8802
0bd0bef6 8803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8804 conftest$ac_exeext conftest.$ac_ext
8805LIBS=$ac_check_lib_save_LIBS
8806fi
a8b2ad8d 8807{ echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
8808echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
b3076f16 8809if test $ac_cv_lib_gc_GC_gcollect = yes; then
8810 cat >>confdefs.h <<_ACEOF
8811#define HAVE_LIBGC 1
8812_ACEOF
8813
8814 LIBS="-lgc $LIBS"
8815
8816else
8817 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
8818echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
8819 { (exit 1); exit 1; }; }
8820fi
8821
8822
8823cat >>confdefs.h <<\_ACEOF
8824#define WITH_MALLOC_BOEHM_GC 1
8825_ACEOF
8826
5b1166fd 8827 x3_malloc="Boehm"
b8cb2a14 8828elif test "x$withval" = "xx3" ; then
a8b2ad8d 8829 { echo "$as_me:$LINENO: result: x3" >&5
8830echo "${ECHO_T}x3" >&6; }
ec1a68c8 8831
8832cat >>confdefs.h <<\_ACEOF
b8cb2a14 8833#define WITH_MALLOC_X3 1
ec1a68c8 8834_ACEOF
8835
b8cb2a14 8836 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 8837 x3_malloc="X3"
ceafd592 8838elif test "x$withval" = "xslab" ; then
a8b2ad8d 8839 { echo "$as_me:$LINENO: result: slab" >&5
8840echo "${ECHO_T}slab" >&6; }
ceafd592 8841
8842cat >>confdefs.h <<\_ACEOF
8843#define WITH_MALLOC_SLAB 1
8844_ACEOF
8845
8846 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 8847 x3_malloc="Slab"
b3076f16 8848else
8849 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
8850echo "$as_me: error: Unknown malloc type $withval" >&2;}
8851 { (exit 1); exit 1; }; }
8852fi
8853
a8b2ad8d 8854{ echo "$as_me:$LINENO: checking which protocol to use" >&5
8855echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
b3076f16 8856
a8b2ad8d 8857# Check whether --with-protocol was given.
b3076f16 8858if test "${with_protocol+set}" = set; then
a8b2ad8d 8859 withval=$with_protocol;
b3076f16 8860else
8861 withval="p10"
a8b2ad8d 8862fi
8863
b3076f16 8864if test "x$withval" = "xp10" ; then
a8b2ad8d 8865 { echo "$as_me:$LINENO: result: P10" >&5
8866echo "${ECHO_T}P10" >&6; }
b3076f16 8867
8868cat >>confdefs.h <<\_ACEOF
8869#define WITH_PROTOCOL_P10 1
8870_ACEOF
8871
2f61d1d7 8872 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
0f6fe38c 8873 PROTO_FILES=proto-p10.c
5b1166fd 8874 x3_ircd="P10"
b3076f16 8875else
8876 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
8877echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
8878 { (exit 1); exit 1; }; }
8879fi
8880
8da89711 8881
8882# Check whether --with-getopt was given.
8883if test "${with_getopt+set}" = set; then
8884 withval=$with_getopt; if test "$withval" = no; then
8885
8886cat >>confdefs.h <<\_ACEOF
8887#define IGNORE_GETOPT 1
8888_ACEOF
8889
8890fi
8891fi
8892
8893
8894{ echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
8895echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
8896# Check whether --enable-tokens was given.
8897if test "${enable_tokens+set}" = set; then
8898 enableval=$enable_tokens;
8899else
8900 enableval=yes
8901fi
8902
8903if test "z$enableval" = zno ; then
8904 { echo "$as_me:$LINENO: result: no" >&5
8905echo "${ECHO_T}no" >&6; }
8906else
8907
8908cat >>confdefs.h <<\_ACEOF
8909#define ENABLE_TOKENS 1
8910_ACEOF
8911
8912 { echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6; }
8914fi
8915
8916{ echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
8917echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
8918# Check whether --enable-debug was given.
8919if test "${enable_debug+set}" = set; then
8920 enableval=$enable_debug;
8921 CPPFLAGS="$CPPFLAGS"
e166c31b 8922 { echo "$as_me:$LINENO: result: yes" >&5
8923echo "${ECHO_T}yes" >&6; }
8da89711 8924 x3_debug="Enabled"
e166c31b 8925
8926else
8927
8da89711 8928 CPPFLAGS="$CPPFLAGS -DNDEBUG"
e166c31b 8929 { echo "$as_me:$LINENO: result: no" >&5
8930echo "${ECHO_T}no" >&6; }
8da89711 8931 x3_debug="Disabled"
e166c31b 8932
8933fi
8934
8935
8da89711 8936if test -e src ; then
8937 if test ! -d src ; then
8938 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
8939echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
8940 { (exit 1); exit 1; }; }
8941 fi
8942else
8943 mkdir src
8944fi
8945{ echo "$as_me:$LINENO: checking for extra module files" >&5
8946echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
8947MODULE_DEFINES="src/modules-list.h"
8948echo > $MODULE_DEFINES
8949touch $MODULE_DEFINES
8950# Check whether --enable-modules was given.
8951if test "${enable_modules+set}" = set; then
8952 enableval=$enable_modules;
8953 OIFS="$IFS"
8954 IFS=','
8955 EXTRA_MODULE_OBJS=""
8956 module_list=""
8957 for module in $enableval ; do
8958 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
8959 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
8960 module_list="$module_list $module"
8961 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
8962 if test "x$module" = "xtrack" ; then
8963 TRACK="-D HAVE_TRACK"
e166c31b 8964
8965cat >>confdefs.h <<\_ACEOF
8da89711 8966#define HAVE_TRACK 1
e166c31b 8967_ACEOF
8968
8da89711 8969 fi
8970 if test "x$module" = "xhelpserv" ; then
8971 TRACK="-D HAVE_HELPSERV"
e166c31b 8972
8da89711 8973cat >>confdefs.h <<\_ACEOF
8974#define HAVE_HELPSERV 1
e166c31b 8975_ACEOF
e166c31b 8976
8da89711 8977 fi
8978 done
8979 IFS="$OIFS"
8980 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
8981 { echo "$as_me:$LINENO: result: $module_list" >&5
8982echo "${ECHO_T}$module_list" >&6; }
8983
e166c31b 8984else
e166c31b 8985
8da89711 8986 { echo "$as_me:$LINENO: result: none" >&5
8987echo "${ECHO_T}none" >&6; }
e166c31b 8988
e166c31b 8989fi
e166c31b 8990
e166c31b 8991
2f65da8f 8992# Check whether --enable-python was given.
8993if test "${enable_python+set}" = set; then
8994 enableval=$enable_python; python=$enableval
8995else
8996 python=yes
8997fi
8998
8999
9000
8da89711 9001MY_SUBDIRS=""
9002RX_INCLUDES=""
9003RX_LIBS=""
9004if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9005 MY_SUBDIRS="rx $MY_SUBDIRS"
9006 RX_INCLUDES="-I../rx"
9007 RX_LIBS="../rx/librx.a"
9008fi
9009MY_SUBDIRS="$MY_SUBDIRS src"
9010CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9011if test "z$USE_MAINTAINER_MODE" = zyes ; then
0f6fe38c 9012 CFLAGS="$CFLAGS -Werror"
e166c31b 9013fi
9014
9015
8da89711 9016tre_version="0.7.5"
9017withval=''
9018
9019# Check whether --with-tre was given.
9020if test "${with_tre+set}" = set; then
9021 withval=$with_tre;
9022fi
9023
9024if test "x$withval" != "x"; then
9025 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9026echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
39edf54a 9027 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
8da89711 9028 LIBS="$LIBS -L$withval/lib"
9029else
9030 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9031echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
39edf54a 9032 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
8da89711 9033 LIBS="$LIBS -L${HOME}/lib"
9034fi
9035if test "${ac_cv_header_tre_regex_h+set}" = set; then
9036 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9037echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9038if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040fi
8da89711 9041{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9042echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9043else
9044 # Is the header compilable?
8da89711 9045{ echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9046echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
e166c31b 9047cat >conftest.$ac_ext <<_ACEOF
9048/* confdefs.h. */
9049_ACEOF
9050cat confdefs.h >>conftest.$ac_ext
9051cat >>conftest.$ac_ext <<_ACEOF
9052/* end confdefs.h. */
9053$ac_includes_default
8da89711 9054#include <tre/regex.h>
e166c31b 9055_ACEOF
9056rm -f conftest.$ac_objext
9057if { (ac_try="$ac_compile"
9058case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061esac
9062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_compile") 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest.$ac_objext; then
e166c31b 9073 ac_header_compiler=yes
9074else
9075 echo "$as_me: failed program was:" >&5
9076sed 's/^/| /' conftest.$ac_ext >&5
9077
9078 ac_header_compiler=no
9079fi
9080
9081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9083echo "${ECHO_T}$ac_header_compiler" >&6; }
9084
9085# Is the header present?
8da89711 9086{ echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9087echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
e166c31b 9088cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h. */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h. */
8da89711 9094#include <tre/regex.h>
e166c31b 9095_ACEOF
9096if { (ac_try="$ac_cpp conftest.$ac_ext"
9097case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100esac
9101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9108 (exit $ac_status); } >/dev/null && {
9109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9110 test ! -s conftest.err
9111 }; then
e166c31b 9112 ac_header_preproc=yes
9113else
9114 echo "$as_me: failed program was:" >&5
9115sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ac_header_preproc=no
9118fi
9119
9120rm -f conftest.err conftest.$ac_ext
9121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9122echo "${ECHO_T}$ac_header_preproc" >&6; }
9123
9124# So? What about this header?
9125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9126 yes:no: )
8da89711 9127 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9128echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9130echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
e166c31b 9131 ac_header_preproc=yes
9132 ;;
9133 no:yes:* )
8da89711 9134 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9135echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9137echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9139echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9141echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9143echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9145echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
e166c31b 9146 ( cat <<\_ASBOX
9147## -------------------------------------------------- ##
9148## Report this to evilnet-devel@lists.sourceforge.net ##
9149## -------------------------------------------------- ##
9150_ASBOX
9151 ) | sed "s/^/$as_me: WARNING: /" >&2
9152 ;;
9153esac
8da89711 9154{ echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9155echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9156if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158else
8da89711 9159 ac_cv_header_tre_regex_h=$ac_header_preproc
e166c31b 9160fi
8da89711 9161{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9162echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9163
9164fi
8da89711 9165if test $ac_cv_header_tre_regex_h = yes; then
9166 :
e166c31b 9167else
0bd0bef6 9168 { { 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
9169echo "$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 9170 { (exit 1); exit 1; }; }
9171fi
9172
e166c31b 9173
b3076f16 9174
8da89711 9175{ echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9176echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
9177if test "${ac_cv_lib_tre_regexec+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 9179else
8da89711 9180 ac_check_lib_save_LIBS=$LIBS
9181LIBS="-ltre $LIBS"
9182cat >conftest.$ac_ext <<_ACEOF
9183/* confdefs.h. */
b3076f16 9184_ACEOF
8da89711 9185cat confdefs.h >>conftest.$ac_ext
9186cat >>conftest.$ac_ext <<_ACEOF
9187/* end confdefs.h. */
b3076f16 9188
8da89711 9189/* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9192#ifdef __cplusplus
9193extern "C"
9194#endif
9195char regexec ();
9196int
9197main ()
9198{
9199return regexec ();
9200 ;
9201 return 0;
9202}
9203_ACEOF
9204rm -f conftest.$ac_objext conftest$ac_exeext
9205if { (ac_try="$ac_link"
9206case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_link") 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest$ac_exeext &&
9221 $as_test_x conftest$ac_exeext; then
8da89711 9222 ac_cv_lib_tre_regexec=yes
b3076f16 9223else
8da89711 9224 echo "$as_me: failed program was:" >&5
9225sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9226
8da89711 9227 ac_cv_lib_tre_regexec=no
a8b2ad8d 9228fi
9229
0bd0bef6 9230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8da89711 9231 conftest$ac_exeext conftest.$ac_ext
9232LIBS=$ac_check_lib_save_LIBS
b3076f16 9233fi
8da89711 9234{ echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
9235echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
9236if test $ac_cv_lib_tre_regexec = yes; then
9237 cat >>confdefs.h <<_ACEOF
9238#define HAVE_LIBTRE 1
8de34abd 9239_ACEOF
9240
8da89711 9241 LIBS="-ltre $LIBS"
b3076f16 9242
9243else
0bd0bef6 9244 { { 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
9245echo "$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 9246 { (exit 1); exit 1; }; }
b3076f16 9247fi
9248
35305a49 9249
2784452e 9250core_version="1.1"
35305a49 9251withval=''
9252
8da89711 9253# Check whether --with-coredumper was given.
9254if test "${with_coredumper+set}" = set; then
9255 withval=$with_coredumper;
a8b2ad8d 9256fi
35305a49 9257
35305a49 9258if test "x$withval" != "x"; then
8da89711 9259 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
9260echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
39edf54a 9261 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
0754f993 9262 LIBS="$LIBS -L$withval/lib"
35305a49 9263else
8da89711 9264 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
9265echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
39edf54a 9266 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
2784452e 9267 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
35305a49 9268fi
8da89711 9269if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9270 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9271echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9272if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274fi
8da89711 9275{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9276echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
35305a49 9277else
9278 # Is the header compilable?
8da89711 9279{ echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
9280echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
35305a49 9281cat >conftest.$ac_ext <<_ACEOF
9282/* confdefs.h. */
9283_ACEOF
9284cat confdefs.h >>conftest.$ac_ext
9285cat >>conftest.$ac_ext <<_ACEOF
9286/* end confdefs.h. */
9287$ac_includes_default
8da89711 9288#include <google/coredumper.h>
35305a49 9289_ACEOF
9290rm -f conftest.$ac_objext
a8b2ad8d 9291if { (ac_try="$ac_compile"
9292case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295esac
9296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_compile") 2>conftest.er1
35305a49 9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest.$ac_objext; then
35305a49 9307 ac_header_compiler=yes
9308else
9309 echo "$as_me: failed program was:" >&5
9310sed 's/^/| /' conftest.$ac_ext >&5
9311
a8b2ad8d 9312 ac_header_compiler=no
35305a49 9313fi
a8b2ad8d 9314
9315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9317echo "${ECHO_T}$ac_header_compiler" >&6; }
35305a49 9318
9319# Is the header present?
8da89711 9320{ echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
9321echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
35305a49 9322cat >conftest.$ac_ext <<_ACEOF
9323/* confdefs.h. */
9324_ACEOF
9325cat confdefs.h >>conftest.$ac_ext
9326cat >>conftest.$ac_ext <<_ACEOF
9327/* end confdefs.h. */
8da89711 9328#include <google/coredumper.h>
35305a49 9329_ACEOF
a8b2ad8d 9330if { (ac_try="$ac_cpp conftest.$ac_ext"
9331case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334esac
9335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35305a49 9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9342 (exit $ac_status); } >/dev/null && {
9343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 }; then
35305a49 9346 ac_header_preproc=yes
9347else
9348 echo "$as_me: failed program was:" >&5
9349sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 ac_header_preproc=no
9352fi
a8b2ad8d 9353
35305a49 9354rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9355{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9356echo "${ECHO_T}$ac_header_preproc" >&6; }
35305a49 9357
9358# So? What about this header?
9359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9360 yes:no: )
8da89711 9361 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
9362echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
9364echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
35305a49 9365 ac_header_preproc=yes
9366 ;;
9367 no:yes:* )
8da89711 9368 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
9369echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
9371echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
9373echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
9375echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
9377echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
9379echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9380 ( cat <<\_ASBOX
35305a49 9381## -------------------------------------------------- ##
9382## Report this to evilnet-devel@lists.sourceforge.net ##
9383## -------------------------------------------------- ##
9384_ASBOX
a8b2ad8d 9385 ) | sed "s/^/$as_me: WARNING: /" >&2
35305a49 9386 ;;
9387esac
8da89711 9388{ echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9389echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9390if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392else
8da89711 9393 ac_cv_header_google_coredumper_h=$ac_header_preproc
9394fi
9395{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9396echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
9397
9398fi
9399if test $ac_cv_header_google_coredumper_h = yes; then
9400 :
9401else
0bd0bef6 9402 { 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
9403echo "${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 9404fi
9405
9406
9407
9408{ echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
9409echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
9410if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413 ac_check_lib_save_LIBS=$LIBS
9414LIBS="-lcoredumper $LIBS"
9415cat >conftest.$ac_ext <<_ACEOF
9416/* confdefs.h. */
9417_ACEOF
9418cat confdefs.h >>conftest.$ac_ext
9419cat >>conftest.$ac_ext <<_ACEOF
9420/* end confdefs.h. */
9421
9422/* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9425#ifdef __cplusplus
9426extern "C"
9427#endif
9428char WriteCoreDump ();
9429int
9430main ()
9431{
9432return WriteCoreDump ();
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext conftest$ac_exeext
9438if { (ac_try="$ac_link"
9439case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_link") 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest$ac_exeext &&
9454 $as_test_x conftest$ac_exeext; then
8da89711 9455 ac_cv_lib_coredumper_WriteCoreDump=yes
9456else
9457 echo "$as_me: failed program was:" >&5
9458sed 's/^/| /' conftest.$ac_ext >&5
9459
9460 ac_cv_lib_coredumper_WriteCoreDump=no
35305a49 9461fi
35305a49 9462
0bd0bef6 9463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8da89711 9464 conftest$ac_exeext conftest.$ac_ext
9465LIBS=$ac_check_lib_save_LIBS
35305a49 9466fi
8da89711 9467{ echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
9468echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
9469if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
9470 cat >>confdefs.h <<_ACEOF
9471#define HAVE_LIBCOREDUMPER 1
9472_ACEOF
9473
9474 LIBS="-lcoredumper $LIBS"
9475
35305a49 9476else
0bd0bef6 9477 { 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
9478echo "${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 9479fi
9480
9481
73d4cc91 9482withval=''
9483
9484# Check whether --with-ssl was given.
9485if test "${with_ssl+set}" = set; then
9486 withval=$with_ssl;
9487fi
9488
9489if test "x$withval" != "x"; then
9490 { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5
9491echo "${ECHO_T}Using include dir $withval to find openssl" >&6; }
9492 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9493 LIBS="$LIBS -L$withval/lib"
9494else
9495 { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5
9496echo "${ECHO_T}Looking for openssl in system " >&6; }
9497fi
9498
9499{ echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5
9500echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; }
9501if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503else
9504 ac_check_lib_save_LIBS=$LIBS
9505LIBS="-lssl $LIBS"
9506cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
9511/* end confdefs.h. */
9512
9513/* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516#ifdef __cplusplus
9517extern "C"
9518#endif
9519char BIO_new ();
9520int
9521main ()
9522{
9523return BIO_new ();
9524 ;
9525 return 0;
9526}
9527_ACEOF
9528rm -f conftest.$ac_objext conftest$ac_exeext
9529if { (ac_try="$ac_link"
9530case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533esac
9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_link") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest$ac_exeext &&
9545 $as_test_x conftest$ac_exeext; then
73d4cc91 9546 ac_cv_lib_ssl_BIO_new=yes
9547else
9548 echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 ac_cv_lib_ssl_BIO_new=no
9552fi
9553
0bd0bef6 9554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73d4cc91 9555 conftest$ac_exeext conftest.$ac_ext
9556LIBS=$ac_check_lib_save_LIBS
9557fi
9558{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5
9559echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; }
9560if test $ac_cv_lib_ssl_BIO_new = yes; then
9561
9562LIBS="-lssl $LIBS"
9563
9564for ac_header in openssl/bio.h
9565do
9566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9572fi
9573ac_res=`eval echo '${'$as_ac_Header'}'`
9574 { echo "$as_me:$LINENO: result: $ac_res" >&5
9575echo "${ECHO_T}$ac_res" >&6; }
9576else
9577 # Is the header compilable?
9578{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9580cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586$ac_includes_default
9587#include <$ac_header>
9588_ACEOF
9589rm -f conftest.$ac_objext
9590if { (ac_try="$ac_compile"
9591case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_compile") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest.$ac_objext; then
73d4cc91 9606 ac_header_compiler=yes
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 ac_header_compiler=no
9612fi
9613
9614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9616echo "${ECHO_T}$ac_header_compiler" >&6; }
9617
9618# Is the header present?
9619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9621cat >conftest.$ac_ext <<_ACEOF
9622/* confdefs.h. */
9623_ACEOF
9624cat confdefs.h >>conftest.$ac_ext
9625cat >>conftest.$ac_ext <<_ACEOF
9626/* end confdefs.h. */
9627#include <$ac_header>
9628_ACEOF
9629if { (ac_try="$ac_cpp conftest.$ac_ext"
9630case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633esac
9634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9641 (exit $ac_status); } >/dev/null && {
9642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 }; then
73d4cc91 9645 ac_header_preproc=yes
9646else
9647 echo "$as_me: failed program was:" >&5
9648sed 's/^/| /' conftest.$ac_ext >&5
9649
9650 ac_header_preproc=no
9651fi
9652
9653rm -f conftest.err conftest.$ac_ext
9654{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655echo "${ECHO_T}$ac_header_preproc" >&6; }
9656
9657# So? What about this header?
9658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9659 yes:no: )
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9664 ac_header_preproc=yes
9665 ;;
9666 no:yes:* )
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9679 ( cat <<\_ASBOX
9680## -------------------------------------------------- ##
9681## Report this to evilnet-devel@lists.sourceforge.net ##
9682## -------------------------------------------------- ##
9683_ASBOX
9684 ) | sed "s/^/$as_me: WARNING: /" >&2
9685 ;;
9686esac
9687{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692 eval "$as_ac_Header=\$ac_header_preproc"
9693fi
9694ac_res=`eval echo '${'$as_ac_Header'}'`
9695 { echo "$as_me:$LINENO: result: $ac_res" >&5
9696echo "${ECHO_T}$ac_res" >&6; }
9697
9698fi
9699if test `eval echo '${'$as_ac_Header'}'` = yes; then
9700 cat >>confdefs.h <<_ACEOF
9701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9702_ACEOF
9703
9704
9705cat >>confdefs.h <<\_ACEOF
9706#define WITH_SSL 1
9707_ACEOF
9708
9709ssl_message="LDAP library: enabled"
9710
9711else
9712
9713if test "x$withval" != "x"; then
9714 { { echo "$as_me:$LINENO: error: ssl headers not found" >&5
9715echo "$as_me: error: ssl headers not found" >&2;}
9716 { (exit 1); exit 1; }; }
9717fi
9718
9719fi
9720
9721done
9722
9723
9724else
9725
9726if test "x$withval" != "x"; then
9727 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9728echo "$as_me: error: libldap not found or not valid" >&2;}
9729 { (exit 1); exit 1; }; }
9730fi
9731
9732
9733fi
9734
9735{ echo "$as_me:$LINENO: result: $LIBS" >&5
9736echo "${ECHO_T}$LIBS" >&6; }
9737
9738
8da89711 9739withval=''
35305a49 9740
8da89711 9741# Check whether --with-ldap was given.
9742if test "${with_ldap+set}" = set; then
9743 withval=$with_ldap;
9744fi
9745
9746if test "x$withval" != "x"; then
9747 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
9748echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
9749 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9750 LIBS="$LIBS -L$withval/lib"
9751else
9752 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
9753echo "${ECHO_T}Looking for ldap in system " >&6; }
9754fi
9755
39edf54a 9756{ echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
9757echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; }
9758if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
35305a49 9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760else
9761 ac_check_lib_save_LIBS=$LIBS
8da89711 9762LIBS="-lldap $LIBS"
35305a49 9763cat >conftest.$ac_ext <<_ACEOF
9764/* confdefs.h. */
9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
9769
a8b2ad8d 9770/* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
35305a49 9773#ifdef __cplusplus
9774extern "C"
9775#endif
39edf54a 9776char ldap_simple_bind_s ();
35305a49 9777int
9778main ()
9779{
39edf54a 9780return ldap_simple_bind_s ();
35305a49 9781 ;
9782 return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9786if { (ac_try="$ac_link"
9787case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9790esac
9791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_link") 2>conftest.er1
35305a49 9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext &&
9802 $as_test_x conftest$ac_exeext; then
39edf54a 9803 ac_cv_lib_ldap_ldap_simple_bind_s=yes
5b1166fd 9804else
35305a49 9805 echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
39edf54a 9808 ac_cv_lib_ldap_ldap_simple_bind_s=no
35305a49 9809fi
a8b2ad8d 9810
0bd0bef6 9811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35305a49 9812 conftest$ac_exeext conftest.$ac_ext
9813LIBS=$ac_check_lib_save_LIBS
5b1166fd 9814fi
39edf54a 9815{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
9816echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
9817if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
b3076f16 9818
39edf54a 9819LIBS="-lldap $LIBS"
b3076f16 9820
8da89711 9821for ac_header in ldap.h
9822do
9823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829fi
8da89711 9830ac_res=`eval echo '${'$as_ac_Header'}'`
9831 { echo "$as_me:$LINENO: result: $ac_res" >&5
9832echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 9833else
9834 # Is the header compilable?
8da89711 9835{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a8b2ad8d 9837cat >conftest.$ac_ext <<_ACEOF
9838/* confdefs.h. */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h. */
9843$ac_includes_default
8da89711 9844#include <$ac_header>
a8b2ad8d 9845_ACEOF
9846rm -f conftest.$ac_objext
9847if { (ac_try="$ac_compile"
9848case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851esac
9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_compile") 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9859 (exit $ac_status); } && {
9860 test -z "$ac_c_werror_flag" ||
9861 test ! -s conftest.err
9862 } && test -s conftest.$ac_objext; then
a8b2ad8d 9863 ac_header_compiler=yes
9864else
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9867
a8b2ad8d 9868 ac_header_compiler=no
9869fi
b3076f16 9870
a8b2ad8d 9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9873echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 9874
a8b2ad8d 9875# Is the header present?
8da89711 9876{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a8b2ad8d 9878cat >conftest.$ac_ext <<_ACEOF
9879/* confdefs.h. */
9880_ACEOF
9881cat confdefs.h >>conftest.$ac_ext
9882cat >>conftest.$ac_ext <<_ACEOF
9883/* end confdefs.h. */
8da89711 9884#include <$ac_header>
a8b2ad8d 9885_ACEOF
9886if { (ac_try="$ac_cpp conftest.$ac_ext"
9887case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9898 (exit $ac_status); } >/dev/null && {
9899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9900 test ! -s conftest.err
9901 }; then
a8b2ad8d 9902 ac_header_preproc=yes
9903else
9904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9906
a8b2ad8d 9907 ac_header_preproc=no
9908fi
ec311f39 9909
a8b2ad8d 9910rm -f conftest.err conftest.$ac_ext
9911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9913
a8b2ad8d 9914# So? What about this header?
9915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9916 yes:no: )
8da89711 9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
a8b2ad8d 9921 ac_header_preproc=yes
9922 ;;
9923 no:yes:* )
8da89711 9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9936 ( cat <<\_ASBOX
9937## -------------------------------------------------- ##
9938## Report this to evilnet-devel@lists.sourceforge.net ##
9939## -------------------------------------------------- ##
9940_ASBOX
9941 ) | sed "s/^/$as_me: WARNING: /" >&2
9942 ;;
9943esac
8da89711 9944{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
8da89711 9949 eval "$as_ac_Header=\$ac_header_preproc"
a8b2ad8d 9950fi
8da89711 9951ac_res=`eval echo '${'$as_ac_Header'}'`
9952 { echo "$as_me:$LINENO: result: $ac_res" >&5
9953echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 9954
9955fi
8da89711 9956if test `eval echo '${'$as_ac_Header'}'` = yes; then
9957 cat >>confdefs.h <<_ACEOF
9958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9959_ACEOF
a8b2ad8d 9960
9961
8da89711 9962cat >>confdefs.h <<\_ACEOF
9963#define WITH_LDAP 1
a8b2ad8d 9964_ACEOF
a8b2ad8d 9965
8da89711 9966ldap_message="LDAP library: enabled"
9967
a8b2ad8d 9968else
a8b2ad8d 9969
db9a9a8a 9970if test "x$withval" != "x"; then
8da89711 9971 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
9972echo "$as_me: error: ldap.h not found" >&2;}
9973 { (exit 1); exit 1; }; }
a8b2ad8d 9974fi
9975
a8b2ad8d 9976fi
a8b2ad8d 9977
8da89711 9978done
9979
a8b2ad8d 9980
9981else
8da89711 9982
db9a9a8a 9983if test "x$withval" != "x"; then
8da89711 9984 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9985echo "$as_me: error: libldap not found or not valid" >&2;}
9986 { (exit 1); exit 1; }; }
9987fi
9988
9989
a8b2ad8d 9990fi
9991
2f65da8f 9992
9993
9994if test "$python" = yes; then
9995 # Extract the first word of "python2", so it can be a program name with args.
9996set dummy python2; ac_word=$2
9997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9999if test "${ac_cv_path_pythonpath+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001else
10002 case $pythonpath in
10003 [\\/]* | ?:[\\/]*)
10004 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
10005 ;;
10006 *)
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008for as_dir in $PATH
10009do
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10014 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
10015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10017 fi
10018done
10019done
10020IFS=$as_save_IFS
10021
10022 ;;
10023esac
10024fi
10025pythonpath=$ac_cv_path_pythonpath
10026if test -n "$pythonpath"; then
10027 { echo "$as_me:$LINENO: result: $pythonpath" >&5
10028echo "${ECHO_T}$pythonpath" >&6; }
10029else
10030 { echo "$as_me:$LINENO: result: no" >&5
10031echo "${ECHO_T}no" >&6; }
10032fi
10033
10034
10035 if test "_$pythonpath" = _ ; then
10036 # Extract the first word of "python", so it can be a program name with args.
10037set dummy python; ac_word=$2
10038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10040if test "${ac_cv_path_pythonpath+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042else
10043 case $pythonpath in
10044 [\\/]* | ?:[\\/]*)
10045 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
10046 ;;
10047 *)
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
10056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10058 fi
10059done
10060done
10061IFS=$as_save_IFS
10062
10063 ;;
10064esac
10065fi
10066pythonpath=$ac_cv_path_pythonpath
10067if test -n "$pythonpath"; then
10068 { echo "$as_me:$LINENO: result: $pythonpath" >&5
10069echo "${ECHO_T}$pythonpath" >&6; }
10070else
10071 { echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6; }
10073fi
10074
10075
10076 fi
10077 if test "_$pythonpath" = _ ; then
10078 python=no
10079 else
10080 { echo "$as_me:$LINENO: checking Python version" >&5
10081echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
10082 PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'`
10083 PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'`
10084 PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'`
10085 $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
10086 { echo "$as_me:$LINENO: result: $PY_VER" >&5
10087echo "${ECHO_T}$PY_VER" >&6; }
10088 if test "$?" != "1"; then
10089 { echo "$as_me:$LINENO: checking Python compile flags" >&5
10090echo $ECHO_N "checking Python compile flags... $ECHO_C" >&6; }
10091 PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
10092 PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
10093 if test -f $PY_INC/Python.h; then
10094
10095cat >>confdefs.h <<\_ACEOF
10096#define WITH_PYTHON 1
10097_ACEOF
10098
10099 PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil"
10100 PY_CFLAGS="-I$PY_INC"
10101 { echo "$as_me:$LINENO: result: ok" >&5
10102echo "${ECHO_T}ok" >&6; }
cbfd323c 10103 CFLAGS="$CFLAGS $PY_CFLAGS"
10104 LIBS="$LIBS $PY_LIBS"
2f65da8f 10105 else
10106 python=no
10107 { echo "$as_me:$LINENO: result: Can't find Python.h" >&5
10108echo "${ECHO_T}Can't find Python.h" >&6; }
10109 fi
10110 else
10111 echo "Python too old. Only 2.2 or above is supported."
10112 python=no
10113 fi
10114 fi
10115fi
10116
10117 if test "x$python" = "xyes"; then
10118 DO_PYTHON_TRUE=
10119 DO_PYTHON_FALSE='#'
10120else
10121 DO_PYTHON_TRUE='#'
10122 DO_PYTHON_FALSE=
10123fi
10124
10125
39edf54a 10126{ echo "$as_me:$LINENO: result: $LIBS" >&5
10127echo "${ECHO_T}$LIBS" >&6; }
a8b2ad8d 10128
10129
10130cat >>confdefs.h <<_ACEOF
10131#define CODENAME "${CODENAME}"
10132_ACEOF
10133
10134
10135
10136
10137
10138
2f65da8f 10139
10140
10141
a8b2ad8d 10142ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10143
10144cat >confcache <<\_ACEOF
10145# This file is a shell script that caches the results of configure
10146# tests run on this system so they can be shared between configure
10147# scripts and configure runs, see configure's option --config-cache.
10148# It is not useful on other systems. If it contains results you don't
10149# want to keep, you may remove or edit it.
10150#
b3076f16 10151# config.status only pays attention to the cache file if you give it
10152# the --recheck option to rerun configure.
10153#
10154# `ac_cv_env_foo' variables (set or unset) will be overridden when
10155# loading this file, other *unset* `ac_cv_foo' will be assigned the
10156# following values.
10157
10158_ACEOF
10159
10160# The following way of writing the cache mishandles newlines in values,
10161# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 10162# So, we kill variables containing newlines.
b3076f16 10163# Ultrix sh set writes to stderr and can't be redirected directly,
10164# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 10165(
10166 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10167 eval ac_val=\$$ac_var
10168 case $ac_val in #(
10169 *${as_nl}*)
10170 case $ac_var in #(
10171 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10172echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10173 esac
10174 case $ac_var in #(
10175 _ | IFS | as_nl) ;; #(
10176 *) $as_unset $ac_var ;;
10177 esac ;;
10178 esac
10179 done
10180
b3076f16 10181 (set) 2>&1 |
a8b2ad8d 10182 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10183 *${as_nl}ac_space=\ *)
b3076f16 10184 # `set' does not quote correctly, so add quotes (double-quote
10185 # substitution turns \\\\ into \\, and sed turns \\ into \).
10186 sed -n \
10187 "s/'/'\\\\''/g;
10188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 10189 ;; #(
b3076f16 10190 *)
10191 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 10192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 10193 ;;
a8b2ad8d 10194 esac |
10195 sort
10196) |
b3076f16 10197 sed '
a8b2ad8d 10198 /^ac_cv_env_/b end
b3076f16 10199 t clear
a8b2ad8d 10200 :clear
b3076f16 10201 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10202 t end
a8b2ad8d 10203 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10204 :end' >>confcache
10205if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10206 if test -w "$cache_file"; then
10207 test "x$cache_file" != "x/dev/null" &&
10208 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10209echo "$as_me: updating cache $cache_file" >&6;}
b3076f16 10210 cat confcache >$cache_file
10211 else
a8b2ad8d 10212 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10213echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 10214 fi
10215fi
10216rm -f confcache
10217
10218test "x$prefix" = xNONE && prefix=$ac_default_prefix
10219# Let make expand exec_prefix.
10220test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10221
b3076f16 10222DEFS=-DHAVE_CONFIG_H
10223
10224ac_libobjs=
10225ac_ltlibobjs=
10226for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10227 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 10228 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10229 ac_i=`echo "$ac_i" | sed "$ac_script"`
10230 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10231 # will be set to the directory where LIBOBJS objects are built.
10232 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10233 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 10234done
10235LIBOBJS=$ac_libobjs
10236
10237LTLIBOBJS=$ac_ltlibobjs
10238
10239
ec1a68c8 10240if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10241 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10242Usually this means the macro was only invoked conditionally." >&5
10243echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10244Usually this means the macro was only invoked conditionally." >&2;}
10245 { (exit 1); exit 1; }; }
10246fi
10247if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10248 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10249Usually this means the macro was only invoked conditionally." >&5
10250echo "$as_me: error: conditional \"AMDEP\" was never defined.
10251Usually this means the macro was only invoked conditionally." >&2;}
10252 { (exit 1); exit 1; }; }
10253fi
10254if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10255 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10256Usually this means the macro was only invoked conditionally." >&5
10257echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10258Usually this means the macro was only invoked conditionally." >&2;}
10259 { (exit 1); exit 1; }; }
10260fi
10261if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10262 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10263Usually this means the macro was only invoked conditionally." >&5
10264echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10265Usually this means the macro was only invoked conditionally." >&2;}
10266 { (exit 1); exit 1; }; }
10267fi
2f65da8f 10268if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then
10269 { { echo "$as_me:$LINENO: error: conditional \"DO_PYTHON\" was never defined.
10270Usually this means the macro was only invoked conditionally." >&5
10271echo "$as_me: error: conditional \"DO_PYTHON\" was never defined.
10272Usually this means the macro was only invoked conditionally." >&2;}
10273 { (exit 1); exit 1; }; }
10274fi
b3076f16 10275
10276: ${CONFIG_STATUS=./config.status}
10277ac_clean_files_save=$ac_clean_files
10278ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10279{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10280echo "$as_me: creating $CONFIG_STATUS" >&6;}
10281cat >$CONFIG_STATUS <<_ACEOF
10282#! $SHELL
10283# Generated by $as_me.
10284# Run this file to recreate the current configuration.
10285# Compiler output produced by configure, useful for debugging
10286# configure, is in config.log if it exists.
10287
10288debug=false
10289ac_cs_recheck=false
10290ac_cs_silent=false
10291SHELL=\${CONFIG_SHELL-$SHELL}
10292_ACEOF
10293
10294cat >>$CONFIG_STATUS <<\_ACEOF
10295## --------------------- ##
10296## M4sh Initialization. ##
10297## --------------------- ##
10298
0bd0bef6 10299# Be more Bourne compatible
10300DUALCASE=1; export DUALCASE # for MKS sh
b3076f16 10301if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10302 emulate sh
10303 NULLCMD=:
10304 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10305 # is contrary to our usage. Disable this feature.
10306 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 10307 setopt NO_GLOB_SUBST
10308else
0bd0bef6 10309 case `(set -o) 2>/dev/null` in
10310 *posix*) set -o posix ;;
10311esac
10312
b3076f16 10313fi
0bd0bef6 10314
10315
b3076f16 10316
a8b2ad8d 10317
10318# PATH needs CR
10319# Avoid depending upon Character Ranges.
10320as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10321as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10322as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10323as_cr_digits='0123456789'
10324as_cr_alnum=$as_cr_Letters$as_cr_digits
10325
10326# The user is always right.
10327if test "${PATH_SEPARATOR+set}" != set; then
10328 echo "#! /bin/sh" >conf$$.sh
10329 echo "exit 0" >>conf$$.sh
10330 chmod +x conf$$.sh
10331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10332 PATH_SEPARATOR=';'
10333 else
10334 PATH_SEPARATOR=:
10335 fi
10336 rm -f conf$$.sh
10337fi
10338
b3076f16 10339# Support unset when possible.
10340if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10341 as_unset=unset
10342else
10343 as_unset=false
10344fi
10345
10346
a8b2ad8d 10347# IFS
10348# We need space, tab and new line, in precisely that order. Quoting is
10349# there to prevent editors from complaining about space-tab.
10350# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10351# splitting by setting IFS to empty value.)
10352as_nl='
10353'
10354IFS=" "" $as_nl"
10355
10356# Find who we are. Look in the path if we contain no directory separator.
10357case $0 in
10358 *[\\/]* ) as_myself=$0 ;;
10359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360for as_dir in $PATH
10361do
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
10364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10365done
10366IFS=$as_save_IFS
10367
10368 ;;
10369esac
10370# We did not find ourselves, most probably we were run as `sh COMMAND'
10371# in which case we are not to be found in the path.
10372if test "x$as_myself" = x; then
10373 as_myself=$0
10374fi
10375if test ! -f "$as_myself"; then
10376 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10377 { (exit 1); exit 1; }
10378fi
10379
b3076f16 10380# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 10381for as_var in ENV MAIL MAILPATH
10382do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10383done
b3076f16 10384PS1='$ '
10385PS2='> '
10386PS4='+ '
10387
10388# NLS nuisances.
10389for as_var in \
10390 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10391 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10392 LC_TELEPHONE LC_TIME
10393do
10394 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10395 eval $as_var=C; export $as_var
10396 else
a8b2ad8d 10397 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 10398 fi
10399done
10400
10401# Required to use basename.
a8b2ad8d 10402if expr a : '\(a\)' >/dev/null 2>&1 &&
10403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10404 as_expr=expr
10405else
10406 as_expr=false
10407fi
10408
a8b2ad8d 10409if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 10410 as_basename=basename
10411else
10412 as_basename=false
10413fi
10414
10415
10416# Name of the executable.
a8b2ad8d 10417as_me=`$as_basename -- "$0" ||
b3076f16 10418$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10419 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 10420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 10421echo X/"$0" |
a8b2ad8d 10422 sed '/^.*\/\([^/][^/]*\)\/*$/{
10423 s//\1/
10424 q
10425 }
10426 /^X\/\(\/\/\)$/{
10427 s//\1/
10428 q
10429 }
10430 /^X\/\(\/\).*/{
10431 s//\1/
10432 q
10433 }
10434 s/.*/./; q'`
b3076f16 10435
a8b2ad8d 10436# CDPATH.
10437$as_unset CDPATH
b3076f16 10438
10439
b3076f16 10440
b3076f16 10441 as_lineno_1=$LINENO
10442 as_lineno_2=$LINENO
b3076f16 10443 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 10444 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 10445
10446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10447 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 10448 # line-number line after each line using $LINENO; the second 'sed'
10449 # does the real work. The second script uses 'N' to pair each
10450 # line-number line with the line containing $LINENO, and appends
10451 # trailing '-' during substitution so that $LINENO is not a special
10452 # case at line end.
b3076f16 10453 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 10454 # scripts with optimization help from Paolo Bonzini. Blame Lee
10455 # E. McMahon (1931-1989) for sed's syntax. :-)
10456 sed -n '
10457 p
10458 /[$]LINENO/=
10459 ' <$as_myself |
b3076f16 10460 sed '
a8b2ad8d 10461 s/[$]LINENO.*/&-/
10462 t lineno
10463 b
10464 :lineno
b3076f16 10465 N
a8b2ad8d 10466 :loop
10467 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 10468 t loop
a8b2ad8d 10469 s/-\n.*//
b3076f16 10470 ' >$as_me.lineno &&
a8b2ad8d 10471 chmod +x "$as_me.lineno" ||
10472 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b3076f16 10473 { (exit 1); exit 1; }; }
10474
10475 # Don't try to exec as it changes $[0], causing all sort of problems
10476 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 10477 # original and so on. Autoconf is especially sensitive to this).
10478 . "./$as_me.lineno"
b3076f16 10479 # Exit status is that of the last command.
10480 exit
10481}
10482
10483
a8b2ad8d 10484if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10485 as_dirname=dirname
10486else
10487 as_dirname=false
10488fi
10489
10490ECHO_C= ECHO_N= ECHO_T=
10491case `echo -n x` in
10492-n*)
10493 case `echo 'x\c'` in
10494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10495 *) ECHO_C='\c';;
10496 esac;;
10497*)
10498 ECHO_N='-n';;
b3076f16 10499esac
10500
a8b2ad8d 10501if expr a : '\(a\)' >/dev/null 2>&1 &&
10502 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10503 as_expr=expr
10504else
10505 as_expr=false
10506fi
10507
10508rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 10509if test -d conf$$.dir; then
10510 rm -f conf$$.dir/conf$$.file
10511else
10512 rm -f conf$$.dir
10513 mkdir conf$$.dir
10514fi
b3076f16 10515echo >conf$$.file
10516if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 10517 as_ln_s='ln -s'
10518 # ... but there are two gotchas:
10519 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10520 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10521 # In both cases, we have to default to `cp -p'.
10522 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 10523 as_ln_s='cp -p'
b3076f16 10524elif ln conf$$.file conf$$ 2>/dev/null; then
10525 as_ln_s=ln
10526else
10527 as_ln_s='cp -p'
10528fi
a8b2ad8d 10529rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10530rmdir conf$$.dir 2>/dev/null
b3076f16 10531
10532if mkdir -p . 2>/dev/null; then
10533 as_mkdir_p=:
10534else
10535 test -d ./-p && rmdir ./-p
10536 as_mkdir_p=false
10537fi
10538
0bd0bef6 10539if test -x / >/dev/null 2>&1; then
10540 as_test_x='test -x'
a8b2ad8d 10541else
0bd0bef6 10542 if ls -dL / >/dev/null 2>&1; then
10543 as_ls_L_option=L
10544 else
10545 as_ls_L_option=
10546 fi
10547 as_test_x='
10548 eval sh -c '\''
10549 if test -d "$1"; then
10550 test -d "$1/.";
10551 else
10552 case $1 in
10553 -*)set "./$1";;
10554 esac;
10555 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10556 ???[sx]*):;;*)false;;esac;fi
10557 '\'' sh
10558 '
a8b2ad8d 10559fi
0bd0bef6 10560as_executable_p=$as_test_x
b3076f16 10561
10562# Sed expression to map a string onto a valid CPP name.
10563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10564
10565# Sed expression to map a string onto a valid variable name.
10566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10567
10568
b3076f16 10569exec 6>&1
10570
a8b2ad8d 10571# Save the log message, to keep $[0] and so on meaningful, and to
b3076f16 10572# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 10573# values after options handling.
10574ac_log="
90746c83 10575This file was extended by X3 $as_me 1.6, which was
0bd0bef6 10576generated by GNU Autoconf 2.61. Invocation command line was
b3076f16 10577
10578 CONFIG_FILES = $CONFIG_FILES
10579 CONFIG_HEADERS = $CONFIG_HEADERS
10580 CONFIG_LINKS = $CONFIG_LINKS
10581 CONFIG_COMMANDS = $CONFIG_COMMANDS
10582 $ $0 $@
10583
a8b2ad8d 10584on `(hostname || uname -n) 2>/dev/null | sed 1q`
10585"
10586
b3076f16 10587_ACEOF
10588
a8b2ad8d 10589cat >>$CONFIG_STATUS <<_ACEOF
b3076f16 10590# Files that config.status was made for.
a8b2ad8d 10591config_files="$ac_config_files"
10592config_headers="$ac_config_headers"
10593config_commands="$ac_config_commands"
b3076f16 10594
a8b2ad8d 10595_ACEOF
b3076f16 10596
10597cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 10598ac_cs_usage="\
10599\`$as_me' instantiates files from templates according to the
10600current configuration.
10601
10602Usage: $0 [OPTIONS] [FILE]...
10603
10604 -h, --help print this help, then exit
0bd0bef6 10605 -V, --version print version number and configuration settings, then exit
b3076f16 10606 -q, --quiet do not print progress messages
10607 -d, --debug don't remove temporary files
10608 --recheck update $as_me by reconfiguring in the same conditions
10609 --file=FILE[:TEMPLATE]
10610 instantiate the configuration file FILE
10611 --header=FILE[:TEMPLATE]
10612 instantiate the configuration header FILE
10613
10614Configuration files:
10615$config_files
10616
10617Configuration headers:
10618$config_headers
10619
ec1a68c8 10620Configuration commands:
10621$config_commands
10622
b3076f16 10623Report bugs to <bug-autoconf@gnu.org>."
b3076f16 10624
a8b2ad8d 10625_ACEOF
b3076f16 10626cat >>$CONFIG_STATUS <<_ACEOF
10627ac_cs_version="\\
90746c83 10628X3 config.status 1.6
0bd0bef6 10629configured by $0, generated by GNU Autoconf 2.61,
a8b2ad8d 10630 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 10631
a8b2ad8d 10632Copyright (C) 2006 Free Software Foundation, Inc.
b3076f16 10633This config.status script is free software; the Free Software Foundation
10634gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 10635
10636ac_pwd='$ac_pwd'
10637srcdir='$srcdir'
10638INSTALL='$INSTALL'
2f65da8f 10639MKDIR_P='$MKDIR_P'
b3076f16 10640_ACEOF
10641
10642cat >>$CONFIG_STATUS <<\_ACEOF
10643# If no file are specified by the user, then we need to provide default
10644# value. By we need to know if files were specified by the user.
10645ac_need_defaults=:
10646while test $# != 0
10647do
10648 case $1 in
10649 --*=*)
a8b2ad8d 10650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 10652 ac_shift=:
10653 ;;
a8b2ad8d 10654 *)
b3076f16 10655 ac_option=$1
10656 ac_optarg=$2
10657 ac_shift=shift
10658 ;;
b3076f16 10659 esac
10660
10661 case $ac_option in
10662 # Handling of the options.
b3076f16 10663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10664 ac_cs_recheck=: ;;
a8b2ad8d 10665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10666 echo "$ac_cs_version"; exit ;;
10667 --debug | --debu | --deb | --de | --d | -d )
b3076f16 10668 debug=: ;;
10669 --file | --fil | --fi | --f )
10670 $ac_shift
10671 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10672 ac_need_defaults=false;;
10673 --header | --heade | --head | --hea )
10674 $ac_shift
10675 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10676 ac_need_defaults=false;;
a8b2ad8d 10677 --he | --h)
10678 # Conflict between --help and --header
10679 { echo "$as_me: error: ambiguous option: $1
10680Try \`$0 --help' for more information." >&2
10681 { (exit 1); exit 1; }; };;
10682 --help | --hel | -h )
10683 echo "$ac_cs_usage"; exit ;;
b3076f16 10684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10686 ac_cs_silent=: ;;
10687
10688 # This is an error.
a8b2ad8d 10689 -*) { echo "$as_me: error: unrecognized option: $1
10690Try \`$0 --help' for more information." >&2
b3076f16 10691 { (exit 1); exit 1; }; } ;;
10692
a8b2ad8d 10693 *) ac_config_targets="$ac_config_targets $1"
10694 ac_need_defaults=false ;;
b3076f16 10695
10696 esac
10697 shift
10698done
10699
10700ac_configure_extra_args=
10701
10702if $ac_cs_silent; then
10703 exec 6>/dev/null
10704 ac_configure_extra_args="$ac_configure_extra_args --silent"
10705fi
10706
10707_ACEOF
10708cat >>$CONFIG_STATUS <<_ACEOF
10709if \$ac_cs_recheck; then
a8b2ad8d 10710 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10711 CONFIG_SHELL=$SHELL
10712 export CONFIG_SHELL
10713 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b3076f16 10714fi
10715
10716_ACEOF
a8b2ad8d 10717cat >>$CONFIG_STATUS <<\_ACEOF
10718exec 5>>config.log
10719{
10720 echo
10721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10722## Running $as_me. ##
10723_ASBOX
10724 echo "$ac_log"
10725} >&5
b3076f16 10726
a8b2ad8d 10727_ACEOF
ec1a68c8 10728cat >>$CONFIG_STATUS <<_ACEOF
10729#
a8b2ad8d 10730# INIT-COMMANDS
ec1a68c8 10731#
ec1a68c8 10732AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10733
10734_ACEOF
b3076f16 10735
b3076f16 10736cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 10737
10738# Handling of arguments.
b3076f16 10739for ac_config_target in $ac_config_targets
10740do
a8b2ad8d 10741 case $ac_config_target in
10742 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10743 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10744 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10745 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
10746 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10747
b3076f16 10748 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10749echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10750 { (exit 1); exit 1; }; };;
10751 esac
10752done
10753
a8b2ad8d 10754
b3076f16 10755# If the user did not use the arguments to specify the items to instantiate,
10756# then the envvar interface is used. Set only those that are not.
10757# We use the long form for the default assignment because of an extremely
10758# bizarre bug on SunOS 4.1.3.
10759if $ac_need_defaults; then
10760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 10762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 10763fi
10764
10765# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 10766# simply because there is no reason against having it here, and in addition,
b3076f16 10767# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 10768# Hook for its removal unless debugging.
10769# Note that there is a small window in which the directory will not be cleaned:
10770# after its creation but before its name has been assigned to `$tmp'.
b3076f16 10771$debug ||
10772{
a8b2ad8d 10773 tmp=
10774 trap 'exit_status=$?
10775 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10776' 0
b3076f16 10777 trap '{ (exit 1); exit 1; }' 1 2 13 15
10778}
b3076f16 10779# Create a (secure) tmp directory for tmp files.
10780
10781{
a8b2ad8d 10782 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16 10783 test -n "$tmp" && test -d "$tmp"
10784} ||
10785{
a8b2ad8d 10786 tmp=./conf$$-$RANDOM
10787 (umask 077 && mkdir "$tmp")
b3076f16 10788} ||
10789{
10790 echo "$me: cannot create a temporary directory in ." >&2
10791 { (exit 1); exit 1; }
10792}
10793
b3076f16 10794#
a8b2ad8d 10795# Set up the sed scripts for CONFIG_FILES section.
b3076f16 10796#
10797
10798# No need to generate the scripts if there are no CONFIG_FILES.
10799# This happens for instance when ./config.status config.h
a8b2ad8d 10800if test -n "$CONFIG_FILES"; then
10801
10802_ACEOF
10803
10804
10805
10806ac_delim='%!_!# '
10807for ac_last_try in false false false false false :; do
10808 cat >conf$$subs.sed <<_ACEOF
10809SHELL!$SHELL$ac_delim
10810PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10811PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10812PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10813PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10814PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10815PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10816exec_prefix!$exec_prefix$ac_delim
10817prefix!$prefix$ac_delim
10818program_transform_name!$program_transform_name$ac_delim
10819bindir!$bindir$ac_delim
10820sbindir!$sbindir$ac_delim
10821libexecdir!$libexecdir$ac_delim
10822datarootdir!$datarootdir$ac_delim
10823datadir!$datadir$ac_delim
10824sysconfdir!$sysconfdir$ac_delim
10825sharedstatedir!$sharedstatedir$ac_delim
10826localstatedir!$localstatedir$ac_delim
10827includedir!$includedir$ac_delim
10828oldincludedir!$oldincludedir$ac_delim
10829docdir!$docdir$ac_delim
10830infodir!$infodir$ac_delim
10831htmldir!$htmldir$ac_delim
10832dvidir!$dvidir$ac_delim
10833pdfdir!$pdfdir$ac_delim
10834psdir!$psdir$ac_delim
10835libdir!$libdir$ac_delim
10836localedir!$localedir$ac_delim
10837mandir!$mandir$ac_delim
10838DEFS!$DEFS$ac_delim
10839ECHO_C!$ECHO_C$ac_delim
10840ECHO_N!$ECHO_N$ac_delim
10841ECHO_T!$ECHO_T$ac_delim
10842LIBS!$LIBS$ac_delim
10843build_alias!$build_alias$ac_delim
10844host_alias!$host_alias$ac_delim
10845target_alias!$target_alias$ac_delim
10846build!$build$ac_delim
10847build_cpu!$build_cpu$ac_delim
10848build_vendor!$build_vendor$ac_delim
10849build_os!$build_os$ac_delim
10850host!$host$ac_delim
10851host_cpu!$host_cpu$ac_delim
10852host_vendor!$host_vendor$ac_delim
10853host_os!$host_os$ac_delim
10854target!$target$ac_delim
10855target_cpu!$target_cpu$ac_delim
10856target_vendor!$target_vendor$ac_delim
10857target_os!$target_os$ac_delim
10858INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10859INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10860INSTALL_DATA!$INSTALL_DATA$ac_delim
2f65da8f 10861am__isrc!$am__isrc$ac_delim
a8b2ad8d 10862CYGPATH_W!$CYGPATH_W$ac_delim
10863PACKAGE!$PACKAGE$ac_delim
10864VERSION!$VERSION$ac_delim
10865ACLOCAL!$ACLOCAL$ac_delim
10866AUTOCONF!$AUTOCONF$ac_delim
10867AUTOMAKE!$AUTOMAKE$ac_delim
10868AUTOHEADER!$AUTOHEADER$ac_delim
10869MAKEINFO!$MAKEINFO$ac_delim
10870install_sh!$install_sh$ac_delim
10871STRIP!$STRIP$ac_delim
10872INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10873mkdir_p!$mkdir_p$ac_delim
10874AWK!$AWK$ac_delim
10875SET_MAKE!$SET_MAKE$ac_delim
10876am__leading_dot!$am__leading_dot$ac_delim
10877AMTAR!$AMTAR$ac_delim
10878am__tar!$am__tar$ac_delim
10879am__untar!$am__untar$ac_delim
10880MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10881MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10882MAINT!$MAINT$ac_delim
10883CC!$CC$ac_delim
10884CFLAGS!$CFLAGS$ac_delim
10885LDFLAGS!$LDFLAGS$ac_delim
10886CPPFLAGS!$CPPFLAGS$ac_delim
10887ac_ct_CC!$ac_ct_CC$ac_delim
10888EXEEXT!$EXEEXT$ac_delim
10889OBJEXT!$OBJEXT$ac_delim
10890DEPDIR!$DEPDIR$ac_delim
10891am__include!$am__include$ac_delim
10892am__quote!$am__quote$ac_delim
10893AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10894AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10895AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10896CCDEPMODE!$CCDEPMODE$ac_delim
10897am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10898am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
07559983 10899CP!$CP$ac_delim
a8b2ad8d 10900RANLIB!$RANLIB$ac_delim
0f6fe38c 10901LN_S!$LN_S$ac_delim
10902CPP!$CPP$ac_delim
a8b2ad8d 10903GREP!$GREP$ac_delim
10904EGREP!$EGREP$ac_delim
0f6fe38c 10905MAKER!$MAKER$ac_delim
a8b2ad8d 10906_ACEOF
10907
10908 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10909 break
10910 elif $ac_last_try; then
10911 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10912echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10913 { (exit 1); exit 1; }; }
10914 else
10915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b3076f16 10916 fi
a8b2ad8d 10917done
b3076f16 10918
a8b2ad8d 10919ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10920if test -n "$ac_eof"; then
10921 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10922 ac_eof=`expr $ac_eof + 1`
10923fi
10924
10925cat >>$CONFIG_STATUS <<_ACEOF
10926cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10927/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b3076f16 10928_ACEOF
a8b2ad8d 10929sed '
10930s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10931s/^/s,@/; s/!/@,|#_!!_#|/
10932:n
10933t n
10934s/'"$ac_delim"'$/,g/; t
10935s/$/\\/; p
10936N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10937' >>$CONFIG_STATUS <conf$$subs.sed
10938rm -f conf$$subs.sed
10939cat >>$CONFIG_STATUS <<_ACEOF
10940CEOF$ac_eof
10941_ACEOF
10942
10943
10944ac_delim='%!_!# '
10945for ac_last_try in false false false false false :; do
10946 cat >conf$$subs.sed <<_ACEOF
07559983 10947ALLOCA!$ALLOCA$ac_delim
2f65da8f 10948pythonpath!$pythonpath$ac_delim
10949DO_PYTHON_TRUE!$DO_PYTHON_TRUE$ac_delim
10950DO_PYTHON_FALSE!$DO_PYTHON_FALSE$ac_delim
10951MODULE_OBJS!$MODULE_OBJS$ac_delim
a8b2ad8d 10952MY_SUBDIRS!$MY_SUBDIRS$ac_delim
10953RX_INCLUDES!$RX_INCLUDES$ac_delim
10954RX_LIBS!$RX_LIBS$ac_delim
10955TRACK!$TRACK$ac_delim
2f65da8f 10956PY_CFLAGS!$PY_CFLAGS$ac_delim
10957PY_LIBS!$PY_LIBS$ac_delim
a8b2ad8d 10958LIBOBJS!$LIBOBJS$ac_delim
10959LTLIBOBJS!$LTLIBOBJS$ac_delim
10960_ACEOF
10961
07559983 10962 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
a8b2ad8d 10963 break
10964 elif $ac_last_try; then
10965 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10966echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10967 { (exit 1); exit 1; }; }
10968 else
10969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10970 fi
10971done
10972
10973ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10974if test -n "$ac_eof"; then
10975 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10976 ac_eof=`expr $ac_eof + 1`
10977fi
10978
10979cat >>$CONFIG_STATUS <<_ACEOF
10980cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10981/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10982_ACEOF
10983sed '
10984s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10985s/^/s,@/; s/!/@,|#_!!_#|/
10986:n
10987t n
10988s/'"$ac_delim"'$/,g/; t
10989s/$/\\/; p
10990N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10991' >>$CONFIG_STATUS <conf$$subs.sed
10992rm -f conf$$subs.sed
10993cat >>$CONFIG_STATUS <<_ACEOF
10994:end
10995s/|#_!!_#|//g
10996CEOF$ac_eof
10997_ACEOF
10998
10999
11000# VPATH may cause trouble with some makes, so we remove $(srcdir),
11001# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11002# trailing colons and then remove the whole line if VPATH becomes empty
11003# (actually we leave an empty line to preserve line numbers).
11004if test "x$srcdir" = x.; then
11005 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11006s/:*\$(srcdir):*/:/
11007s/:*\${srcdir}:*/:/
11008s/:*@srcdir@:*/:/
11009s/^\([^=]*=[ ]*\):*/\1/
11010s/:*$//
11011s/^[^=]*=[ ]*$//
11012}'
11013fi
11014
b3076f16 11015cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 11016fi # test -n "$CONFIG_FILES"
11017
11018
11019for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11020do
11021 case $ac_tag in
11022 :[FHLC]) ac_mode=$ac_tag; continue;;
11023 esac
11024 case $ac_mode$ac_tag in
11025 :[FHL]*:*);;
11026 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11027echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11028 { (exit 1); exit 1; }; };;
11029 :[FH]-) ac_tag=-:-;;
11030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11031 esac
11032 ac_save_IFS=$IFS
11033 IFS=:
11034 set x $ac_tag
11035 IFS=$ac_save_IFS
11036 shift
11037 ac_file=$1
11038 shift
11039
11040 case $ac_mode in
11041 :L) ac_source=$1;;
11042 :[FH])
11043 ac_file_inputs=
11044 for ac_f
11045 do
11046 case $ac_f in
11047 -) ac_f="$tmp/stdin";;
11048 *) # Look for the file first in the build tree, then in the source tree
11049 # (if the path is not absolute). The absolute path cannot be DOS-style,
11050 # because $ac_f cannot contain `:'.
11051 test -f "$ac_f" ||
11052 case $ac_f in
11053 [\\/$]*) false;;
11054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11055 esac ||
11056 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11057echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11058 { (exit 1); exit 1; }; };;
11059 esac
11060 ac_file_inputs="$ac_file_inputs $ac_f"
11061 done
11062
11063 # Let's still pretend it is `configure' which instantiates (i.e., don't
11064 # use $as_me), people would be surprised to read:
11065 # /* config.h. Generated by config.status. */
11066 configure_input="Generated from "`IFS=:
11067 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11068 if test x"$ac_file" != x-; then
11069 configure_input="$ac_file. $configure_input"
11070 { echo "$as_me:$LINENO: creating $ac_file" >&5
11071echo "$as_me: creating $ac_file" >&6;}
11072 fi
11073
11074 case $ac_tag in
11075 *:-:* | *:-) cat >"$tmp/stdin";;
11076 esac
11077 ;;
b3076f16 11078 esac
11079
a8b2ad8d 11080 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 11081$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11082 X"$ac_file" : 'X\(//\)[^/]' \| \
11083 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 11084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11085echo X"$ac_file" |
a8b2ad8d 11086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11087 s//\1/
11088 q
11089 }
11090 /^X\(\/\/\)[^/].*/{
11091 s//\1/
11092 q
11093 }
11094 /^X\(\/\/\)$/{
11095 s//\1/
11096 q
11097 }
11098 /^X\(\/\).*/{
11099 s//\1/
11100 q
11101 }
11102 s/.*/./; q'`
11103 { as_dir="$ac_dir"
11104 case $as_dir in #(
11105 -*) as_dir=./$as_dir;;
11106 esac
11107 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b3076f16 11108 as_dirs=
a8b2ad8d 11109 while :; do
11110 case $as_dir in #(
11111 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11112 *) as_qdir=$as_dir;;
11113 esac
11114 as_dirs="'$as_qdir' $as_dirs"
11115 as_dir=`$as_dirname -- "$as_dir" ||
b3076f16 11116$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11117 X"$as_dir" : 'X\(//\)[^/]' \| \
11118 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11120echo X"$as_dir" |
a8b2ad8d 11121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11122 s//\1/
11123 q
11124 }
11125 /^X\(\/\/\)[^/].*/{
11126 s//\1/
11127 q
11128 }
11129 /^X\(\/\/\)$/{
11130 s//\1/
11131 q
11132 }
11133 /^X\(\/\).*/{
11134 s//\1/
11135 q
11136 }
11137 s/.*/./; q'`
11138 test -d "$as_dir" && break
b3076f16 11139 done
a8b2ad8d 11140 test -z "$as_dirs" || eval "mkdir $as_dirs"
11141 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11142echo "$as_me: error: cannot create directory $as_dir" >&2;}
b3076f16 11143 { (exit 1); exit 1; }; }; }
b3076f16 11144 ac_builddir=.
11145
a8b2ad8d 11146case "$ac_dir" in
11147.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11148*)
b3076f16 11149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 11150 # A ".." for each directory in $ac_dir_suffix.
11151 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11152 case $ac_top_builddir_sub in
11153 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11154 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11155 esac ;;
11156esac
11157ac_abs_top_builddir=$ac_pwd
11158ac_abs_builddir=$ac_pwd$ac_dir_suffix
11159# for backward compatibility:
11160ac_top_builddir=$ac_top_build_prefix
b3076f16 11161
11162case $srcdir in
a8b2ad8d 11163 .) # We are building in place.
b3076f16 11164 ac_srcdir=.
a8b2ad8d 11165 ac_top_srcdir=$ac_top_builddir_sub
11166 ac_abs_top_srcdir=$ac_pwd ;;
11167 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 11168 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 11169 ac_top_srcdir=$srcdir
11170 ac_abs_top_srcdir=$srcdir ;;
11171 *) # Relative name.
11172 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11173 ac_top_srcdir=$ac_top_build_prefix$srcdir
11174 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 11175esac
a8b2ad8d 11176ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 11177
b3076f16 11178
a8b2ad8d 11179 case $ac_mode in
11180 :F)
11181 #
11182 # CONFIG_FILE
11183 #
b3076f16 11184
11185 case $INSTALL in
11186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 11187 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 11188 esac
2f65da8f 11189 ac_MKDIR_P=$MKDIR_P
11190 case $MKDIR_P in
11191 [\\/$]* | ?:[\\/]* ) ;;
11192 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11193 esac
a8b2ad8d 11194_ACEOF
b3076f16 11195
a8b2ad8d 11196cat >>$CONFIG_STATUS <<\_ACEOF
11197# If the template does not know about datarootdir, expand it.
11198# FIXME: This hack should be removed a few years after 2.60.
11199ac_datarootdir_hack=; ac_datarootdir_seen=
b8cb2a14 11200
a8b2ad8d 11201case `sed -n '/datarootdir/ {
11202 p
11203 q
11204}
11205/@datadir@/p
11206/@docdir@/p
11207/@infodir@/p
11208/@localedir@/p
11209/@mandir@/p
11210' $ac_file_inputs` in
11211*datarootdir*) ac_datarootdir_seen=yes;;
11212*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11213 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11214echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11215_ACEOF
11216cat >>$CONFIG_STATUS <<_ACEOF
11217 ac_datarootdir_hack='
11218 s&@datadir@&$datadir&g
11219 s&@docdir@&$docdir&g
11220 s&@infodir@&$infodir&g
11221 s&@localedir@&$localedir&g
11222 s&@mandir@&$mandir&g
11223 s&\\\${datarootdir}&$datarootdir&g' ;;
11224esac
b3076f16 11225_ACEOF
a8b2ad8d 11226
11227# Neutralize VPATH when `$srcdir' = `.'.
11228# Shell code in configure.ac might set extrasub.
11229# FIXME: do we really want to maintain this feature?
b3076f16 11230cat >>$CONFIG_STATUS <<_ACEOF
11231 sed "$ac_vpsub
11232$extrasub
11233_ACEOF
11234cat >>$CONFIG_STATUS <<\_ACEOF
11235:t
11236/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a8b2ad8d 11237s&@configure_input@&$configure_input&;t t
11238s&@top_builddir@&$ac_top_builddir_sub&;t t
11239s&@srcdir@&$ac_srcdir&;t t
11240s&@abs_srcdir@&$ac_abs_srcdir&;t t
11241s&@top_srcdir@&$ac_top_srcdir&;t t
11242s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11243s&@builddir@&$ac_builddir&;t t
11244s&@abs_builddir@&$ac_abs_builddir&;t t
11245s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11246s&@INSTALL@&$ac_INSTALL&;t t
2f65da8f 11247s&@MKDIR_P@&$ac_MKDIR_P&;t t
a8b2ad8d 11248$ac_datarootdir_hack
11249" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11250
11251test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11252 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11254 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11255which seems to be undefined. Please make sure it is defined." >&5
11256echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11257which seems to be undefined. Please make sure it is defined." >&2;}
11258
11259 rm -f "$tmp/stdin"
b3076f16 11260 case $ac_file in
a8b2ad8d 11261 -) cat "$tmp/out"; rm -f "$tmp/out";;
11262 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
b3076f16 11263 esac
a8b2ad8d 11264 ;;
11265 :H)
11266 #
11267 # CONFIG_HEADER
11268 #
11269_ACEOF
11270
11271# Transform confdefs.h into a sed script `conftest.defines', that
11272# substitutes the proper values into config.h.in to produce config.h.
11273rm -f conftest.defines conftest.tail
11274# First, append a space to every undef/define line, to ease matching.
11275echo 's/$/ /' >conftest.defines
11276# Then, protect against being on the right side of a sed subst, or in
11277# an unquoted here document, in config.status. If some macros were
11278# called several times there might be several #defines for the same
11279# symbol, which is useless. But do not sort them, since the last
11280# AC_DEFINE must be honored.
11281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11282# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11283# NAME is the cpp macro being defined, VALUE is the value it is being given.
11284# PARAMS is the parameter list in the macro definition--in most cases, it's
11285# just an empty string.
11286ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11287ac_dB='\\)[ (].*,\\1define\\2'
11288ac_dC=' '
11289ac_dD=' ,'
11290
11291uniq confdefs.h |
11292 sed -n '
11293 t rset
11294 :rset
11295 s/^[ ]*#[ ]*define[ ][ ]*//
11296 t ok
11297 d
11298 :ok
11299 s/[\\&,]/\\&/g
11300 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11301 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11302 ' >>conftest.defines
11303
11304# Remove the space that was appended to ease matching.
11305# Then replace #undef with comments. This is necessary, for
b3076f16 11306# example, in the case of _POSIX_SOURCE, which is predefined and required
11307# on some systems where configure will not decide to define it.
a8b2ad8d 11308# (The regexp can be short, since the line contains either #define or #undef.)
11309echo 's/ $//
11310s,^[ #]*u.*,/* & */,' >>conftest.defines
11311
11312# Break up conftest.defines:
11313ac_max_sed_lines=50
11314
11315# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11316# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11317# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11318# et cetera.
11319ac_in='$ac_file_inputs'
11320ac_out='"$tmp/out1"'
11321ac_nxt='"$tmp/out2"'
11322
11323while :
b3076f16 11324do
a8b2ad8d 11325 # Write a here document:
11326 cat >>$CONFIG_STATUS <<_ACEOF
11327 # First, check the format of the line:
11328 cat >"\$tmp/defines.sed" <<\\CEOF
11329/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11330/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11331b
11332:def
11333_ACEOF
11334 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
b3076f16 11335 echo 'CEOF
a8b2ad8d 11336 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11337 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11338 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11339 grep . conftest.tail >/dev/null || break
b3076f16 11340 rm -f conftest.defines
11341 mv conftest.tail conftest.defines
11342done
a8b2ad8d 11343rm -f conftest.defines conftest.tail
b3076f16 11344
a8b2ad8d 11345echo "ac_result=$ac_in" >>$CONFIG_STATUS
b3076f16 11346cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 11347 if test x"$ac_file" != x-; then
a8b2ad8d 11348 echo "/* $configure_input */" >"$tmp/config.h"
11349 cat "$ac_result" >>"$tmp/config.h"
11350 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
b3076f16 11351 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11352echo "$as_me: $ac_file is unchanged" >&6;}
11353 else
b3076f16 11354 rm -f $ac_file
a8b2ad8d 11355 mv "$tmp/config.h" $ac_file
b3076f16 11356 fi
11357 else
a8b2ad8d 11358 echo "/* $configure_input */"
11359 cat "$ac_result"
b3076f16 11360 fi
a8b2ad8d 11361 rm -f "$tmp/out12"
ec1a68c8 11362# Compute $ac_file's index in $config_headers.
cbfd323c 11363_am_arg=$ac_file
ec1a68c8 11364_am_stamp_count=1
11365for _am_header in $config_headers :; do
11366 case $_am_header in
cbfd323c 11367 $_am_arg | $_am_arg:* )
ec1a68c8 11368 break ;;
11369 * )
11370 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11371 esac
11372done
cbfd323c 11373echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11374$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11375 X"$_am_arg" : 'X\(//\)[^/]' \| \
11376 X"$_am_arg" : 'X\(//\)$' \| \
11377 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11378echo X"$_am_arg" |
a8b2ad8d 11379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11380 s//\1/
11381 q
11382 }
11383 /^X\(\/\/\)[^/].*/{
11384 s//\1/
11385 q
11386 }
11387 /^X\(\/\/\)$/{
11388 s//\1/
11389 q
11390 }
11391 /^X\(\/\).*/{
11392 s//\1/
11393 q
11394 }
11395 s/.*/./; q'`/stamp-h$_am_stamp_count
11396 ;;
ec1a68c8 11397
a8b2ad8d 11398 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11399echo "$as_me: executing $ac_file commands" >&6;}
11400 ;;
11401 esac
ec1a68c8 11402
11403
a8b2ad8d 11404 case $ac_file$ac_mode in
11405 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
ec1a68c8 11406 # Strip MF so we end up with the name of the file.
11407 mf=`echo "$mf" | sed -e 's/:.*$//'`
11408 # Check whether this is an Automake generated Makefile or not.
11409 # We used to match only the files named `Makefile.in', but
11410 # some people rename them; so instead we look at the file content.
11411 # Grep'ing the first line is not enough: some people post-process
11412 # each Makefile.in and add a new line on top of each file to say so.
2f65da8f 11413 # Grep'ing the whole file is not good either: AIX grep has a line
11414 # limit of 2048, but all sed's we know have understand at least 4000.
cbfd323c 11415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
a8b2ad8d 11416 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 11417$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11418 X"$mf" : 'X\(//\)[^/]' \| \
11419 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 11420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11421echo X"$mf" |
a8b2ad8d 11422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11423 s//\1/
11424 q
11425 }
11426 /^X\(\/\/\)[^/].*/{
11427 s//\1/
11428 q
11429 }
11430 /^X\(\/\/\)$/{
11431 s//\1/
11432 q
11433 }
11434 /^X\(\/\).*/{
11435 s//\1/
11436 q
11437 }
11438 s/.*/./; q'`
ec1a68c8 11439 else
11440 continue
11441 fi
11442 # Extract the definition of DEPDIR, am__include, and am__quote
11443 # from the Makefile without running `make'.
11444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11445 test -z "$DEPDIR" && continue
11446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11447 test -z "am__include" && continue
11448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11449 # When using ansi2knr, U may be empty or an underscore; expand it
11450 U=`sed -n 's/^U = //p' < "$mf"`
11451 # Find all dependency output files, they are included files with
11452 # $(DEPDIR) in their names. We invoke sed twice because it is the
11453 # simplest approach to changing $(DEPDIR) to its actual value in the
11454 # expansion.
11455 for file in `sed -n "
11456 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11457 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11458 # Make sure the directory exists.
11459 test -f "$dirpart/$file" && continue
a8b2ad8d 11460 fdir=`$as_dirname -- "$file" ||
ec1a68c8 11461$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11462 X"$file" : 'X\(//\)[^/]' \| \
11463 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 11464 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11465echo X"$file" |
a8b2ad8d 11466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11467 s//\1/
11468 q
11469 }
11470 /^X\(\/\/\)[^/].*/{
11471 s//\1/
11472 q
11473 }
11474 /^X\(\/\/\)$/{
11475 s//\1/
11476 q
11477 }
11478 /^X\(\/\).*/{
11479 s//\1/
11480 q
11481 }
11482 s/.*/./; q'`
11483 { as_dir=$dirpart/$fdir
11484 case $as_dir in #(
11485 -*) as_dir=./$as_dir;;
11486 esac
11487 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ec1a68c8 11488 as_dirs=
a8b2ad8d 11489 while :; do
11490 case $as_dir in #(
11491 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11492 *) as_qdir=$as_dir;;
11493 esac
11494 as_dirs="'$as_qdir' $as_dirs"
11495 as_dir=`$as_dirname -- "$as_dir" ||
ec1a68c8 11496$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11497 X"$as_dir" : 'X\(//\)[^/]' \| \
11498 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11499 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11500echo X"$as_dir" |
a8b2ad8d 11501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11502 s//\1/
11503 q
11504 }
11505 /^X\(\/\/\)[^/].*/{
11506 s//\1/
11507 q
11508 }
11509 /^X\(\/\/\)$/{
11510 s//\1/
11511 q
11512 }
11513 /^X\(\/\).*/{
11514 s//\1/
11515 q
11516 }
11517 s/.*/./; q'`
11518 test -d "$as_dir" && break
ec1a68c8 11519 done
a8b2ad8d 11520 test -z "$as_dirs" || eval "mkdir $as_dirs"
11521 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11522echo "$as_me: error: cannot create directory $as_dir" >&2;}
ec1a68c8 11523 { (exit 1); exit 1; }; }; }
ec1a68c8 11524 # echo "creating $dirpart/$file"
11525 echo '# dummy' > "$dirpart/$file"
11526 done
11527done
11528 ;;
a8b2ad8d 11529
ec1a68c8 11530 esac
a8b2ad8d 11531done # for ac_tag
b3076f16 11532
b3076f16 11533
11534{ (exit 0); exit 0; }
11535_ACEOF
11536chmod +x $CONFIG_STATUS
11537ac_clean_files=$ac_clean_files_save
11538
11539
11540# configure is writing to config.log, and then calls config.status.
11541# config.status does its own redirection, appending to config.log.
11542# Unfortunately, on DOS this fails, as config.log is still kept open
11543# by configure, so config.status won't be able to write to it; its
11544# output is simply discarded. So we exec the FD to /dev/null,
11545# effectively closing config.log, so it can be properly (re)opened and
11546# appended to by config.status. When coming back to configure, we
11547# need to make the FD available again.
11548if test "$no_create" != yes; then
11549 ac_cs_success=:
11550 ac_config_status_args=
11551 test "$silent" = yes &&
11552 ac_config_status_args="$ac_config_status_args --quiet"
11553 exec 5>/dev/null
11554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11555 exec 5>>config.log
11556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11557 # would make configure fail if this is the last instruction.
11558 $ac_cs_success || { (exit 1); exit 1; }
11559fi
11560
5b1166fd 11561
11562
11563
11564cat <<EOF
11565
11566Configuration summary
11567=====================
11568
11569X3 is now configured as follows:
11570
11571* Compilation environment
11572
11573 CC = $CC
11574 CFLAGS = $CFLAGS
11575 CPP = $CPP
11576 CPPFLAGS = $CPPFLAGS
11577 LD = $LD
11578 LDFLAGS = $LDFLAGS
11579 LIBS = $LIBS
11580
11581* X3 options
11582
a8b2ad8d 11583 Debug: $x3_debug
11584 Extra Modules: $module_list
11585 Malloc: $x3_malloc
11586 Protocol: $x3_ircd
11587 Regexp Library TRE $tre_version
11588 Coredumper Library Coredumper $core_version
8da89711 11589 $ldap_message
2f65da8f 11590 python: $python
5b1166fd 11591
a8b2ad8d 11592 Install to: $prefix
35305a49 11593
5b1166fd 11594Now you can proceed with compiling X3
11595
11596EOF
11597