]> jfr.im git - irc/blitzed-org/bopm.git/blame - configure
configure.in, configure:
[irc/blitzed-org/bopm.git] / configure
CommitLineData
f6649e03 1#! /bin/sh
f6649e03 2# Guess values for system-dependent variables and create Makefiles.
b457acc7 3# Generated by Autoconf 2.52.
f6649e03 4#
10891472 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
f6649e03 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
b457acc7 10# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
10891472 16
b457acc7 17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10891472 22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
10891472 31# Name of the executable.
b457acc7 32as_me=`echo "$0" |sed 's,.*[\\/],,'`
10891472 33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
b457acc7 60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
10891472 66
b457acc7 67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10891472 76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
b457acc7 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10891472 85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
f6649e03 96ac_default_prefix=/usr/local
10891472 97cross_compiling=no
98subdirs=
b457acc7 99MFLAGS= MAKEFLAGS=
10891472 100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete. It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
107ac_unique_file="opercmd.h"
108# Factoring default headers for most tests.
109ac_includes_default="\
110#include <stdio.h>
111#if HAVE_SYS_TYPES_H
112# include <sys/types.h>
113#endif
114#if HAVE_SYS_STAT_H
115# include <sys/stat.h>
116#endif
117#if STDC_HEADERS
118# include <stdlib.h>
119# include <stddef.h>
120#else
121# if HAVE_STDLIB_H
122# include <stdlib.h>
123# endif
124#endif
125#if HAVE_STRING_H
126# if !STDC_HEADERS && HAVE_MEMORY_H
127# include <memory.h>
128# endif
129# include <string.h>
130#endif
131#if HAVE_STRINGS_H
132# include <strings.h>
133#endif
134#if HAVE_INTTYPES_H
135# include <inttypes.h>
136#else
137# if HAVE_STDINT_H
138# include <stdint.h>
139# endif
140#endif
141#if HAVE_UNISTD_H
142# include <unistd.h>
143#endif"
f6649e03 144
145# Initialize some variables set by options.
10891472 146ac_init_help=
147ac_init_version=false
f6649e03 148# The variables have the same names as the options, with
149# dashes changed to underlines.
10891472 150cache_file=/dev/null
f6649e03 151exec_prefix=NONE
f6649e03 152no_create=
f6649e03 153no_recursion=
154prefix=NONE
155program_prefix=NONE
156program_suffix=NONE
157program_transform_name=s,x,x,
158silent=
159site=
160srcdir=
f6649e03 161verbose=
162x_includes=NONE
163x_libraries=NONE
10891472 164
165# Installation directory options.
166# These are left unexpanded so users can "make install exec_prefix=/foo"
167# and all the variables that are supposed to be based on exec_prefix
168# by default will actually change.
169# Use braces instead of parens because sh, perl, etc. also accept them.
f6649e03 170bindir='${exec_prefix}/bin'
171sbindir='${exec_prefix}/sbin'
172libexecdir='${exec_prefix}/libexec'
173datadir='${prefix}/share'
174sysconfdir='${prefix}/etc'
175sharedstatedir='${prefix}/com'
176localstatedir='${prefix}/var'
177libdir='${exec_prefix}/lib'
178includedir='${prefix}/include'
179oldincludedir='/usr/include'
180infodir='${prefix}/info'
181mandir='${prefix}/man'
182
10891472 183# Identity of this package.
184PACKAGE_NAME=
185PACKAGE_TARNAME=
186PACKAGE_VERSION=
187PACKAGE_STRING=
188PACKAGE_BUGREPORT=
f6649e03 189
190ac_prev=
191for ac_option
192do
f6649e03 193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
198 fi
199
10891472 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
f6649e03 201
202 # Accept the important Cygnus configure options, so we can diagnose typos.
203
10891472 204 case $ac_option in
f6649e03 205
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
10891472 209 bindir=$ac_optarg ;;
f6649e03 210
211 -build | --build | --buil | --bui | --bu)
10891472 212 ac_prev=build_alias ;;
f6649e03 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
10891472 214 build_alias=$ac_optarg ;;
f6649e03 215
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10891472 221 cache_file=$ac_optarg ;;
222
223 --config-cache | -C)
224 cache_file=config.cache ;;
f6649e03 225
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
10891472 230 datadir=$ac_optarg ;;
f6649e03 231
232 -disable-* | --disable-*)
10891472 233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
f6649e03 234 # Reject names that are not valid shell variable names.
10891472 235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
f6649e03 240
241 -enable-* | --enable-*)
10891472 242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
f6649e03 243 # Reject names that are not valid shell variable names.
10891472 244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
f6649e03 250 *) ac_optarg=yes ;;
251 esac
10891472 252 eval "enable_$ac_feature='$ac_optarg'" ;;
f6649e03 253
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
10891472 261 exec_prefix=$ac_optarg ;;
f6649e03 262
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
266
10891472 267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
f6649e03 273
274 -host | --host | --hos | --ho)
10891472 275 ac_prev=host_alias ;;
f6649e03 276 -host=* | --host=* | --hos=* | --ho=*)
10891472 277 host_alias=$ac_optarg ;;
f6649e03 278
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
10891472 284 includedir=$ac_optarg ;;
f6649e03 285
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
10891472 289 infodir=$ac_optarg ;;
f6649e03 290
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
10891472 294 libdir=$ac_optarg ;;
f6649e03 295
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
10891472 301 libexecdir=$ac_optarg ;;
f6649e03 302
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
10891472 310 localstatedir=$ac_optarg ;;
f6649e03 311
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10891472 315 mandir=$ac_optarg ;;
f6649e03 316
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
320
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
324
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
328
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10891472 336 oldincludedir=$ac_optarg ;;
f6649e03 337
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10891472 341 prefix=$ac_optarg ;;
f6649e03 342
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10891472 348 program_prefix=$ac_optarg ;;
f6649e03 349
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10891472 355 program_suffix=$ac_optarg ;;
f6649e03 356
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
10891472 372 program_transform_name=$ac_optarg ;;
f6649e03 373
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
377
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
10891472 382 sbindir=$ac_optarg ;;
f6649e03 383
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
10891472 393 sharedstatedir=$ac_optarg ;;
f6649e03 394
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
10891472 398 site=$ac_optarg ;;
f6649e03 399
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10891472 403 srcdir=$ac_optarg ;;
f6649e03 404
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10891472 410 sysconfdir=$ac_optarg ;;
f6649e03 411
412 -target | --target | --targe | --targ | --tar | --ta | --t)
10891472 413 ac_prev=target_alias ;;
f6649e03 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10891472 415 target_alias=$ac_optarg ;;
f6649e03 416
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
419
10891472 420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
f6649e03 422
423 -with-* | --with-*)
10891472 424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
f6649e03 425 # Reject names that are not valid shell variable names.
10891472 426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
f6649e03 429 ac_package=`echo $ac_package| sed 's/-/_/g'`
10891472 430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
f6649e03 432 *) ac_optarg=yes ;;
433 esac
10891472 434 eval "with_$ac_package='$ac_optarg'" ;;
f6649e03 435
436 -without-* | --without-*)
10891472 437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
f6649e03 438 # Reject names that are not valid shell variable names.
10891472 439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
f6649e03 444
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
448
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
10891472 454 x_includes=$ac_optarg ;;
f6649e03 455
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10891472 461 x_libraries=$ac_optarg ;;
f6649e03 462
10891472 463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
f6649e03 466 ;;
467
10891472 468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
477
f6649e03 478 *)
10891472 479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
f6649e03 484 ;;
485
486 esac
487done
488
489if test -n "$ac_prev"; then
10891472 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
f6649e03 493fi
f6649e03 494
10891472 495# Be sure to have absolute paths.
496for ac_var in exec_prefix prefix
497do
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504done
f6649e03 505
10891472 506# Be sure to have absolute paths.
507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
f6649e03 509do
10891472 510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
f6649e03 515 esac
516done
517
10891472 518# There might be people who depend on the old broken behavior: `$host'
519# used to hold the argument of --host etc.
520build=$build_alias
521host=$host_alias
522target=$target_alias
523
524# FIXME: should be removed in autoconf 3.0.
525if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
532 fi
533fi
f6649e03 534
10891472 535ac_tool_prefix=
536test -n "$host_alias" && ac_tool_prefix=$host_alias-
f6649e03 537
10891472 538test "$silent" = yes && exec 6>/dev/null
f6649e03 539
540# Find the source files, if location was not specified.
541if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
b457acc7 544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
f6649e03 547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
550 fi
551else
552 ac_srcdir_defaulted=no
553fi
554if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
b457acc7 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
10891472 557 { (exit 1); exit 1; }; }
f6649e03 558 else
b457acc7 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
10891472 560 { (exit 1); exit 1; }; }
f6649e03 561 fi
562fi
10891472 563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564ac_env_build_alias_set=${build_alias+set}
565ac_env_build_alias_value=$build_alias
566ac_cv_env_build_alias_set=${build_alias+set}
567ac_cv_env_build_alias_value=$build_alias
568ac_env_host_alias_set=${host_alias+set}
569ac_env_host_alias_value=$host_alias
570ac_cv_env_host_alias_set=${host_alias+set}
571ac_cv_env_host_alias_value=$host_alias
572ac_env_target_alias_set=${target_alias+set}
573ac_env_target_alias_value=$target_alias
574ac_cv_env_target_alias_set=${target_alias+set}
575ac_cv_env_target_alias_value=$target_alias
576ac_env_CC_set=${CC+set}
577ac_env_CC_value=$CC
578ac_cv_env_CC_set=${CC+set}
579ac_cv_env_CC_value=$CC
580ac_env_CFLAGS_set=${CFLAGS+set}
581ac_env_CFLAGS_value=$CFLAGS
582ac_cv_env_CFLAGS_set=${CFLAGS+set}
583ac_cv_env_CFLAGS_value=$CFLAGS
584ac_env_LDFLAGS_set=${LDFLAGS+set}
585ac_env_LDFLAGS_value=$LDFLAGS
586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587ac_cv_env_LDFLAGS_value=$LDFLAGS
588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589ac_env_CPPFLAGS_value=$CPPFLAGS
590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592ac_env_CPP_set=${CPP+set}
593ac_env_CPP_value=$CPP
594ac_cv_env_CPP_set=${CPP+set}
595ac_cv_env_CPP_value=$CPP
596
597#
598# Report the --help message.
599#
600if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
b457acc7 603 cat <<EOF
10891472 604\`configure' configures this package to adapt to many kinds of systems.
605
606Usage: $0 [OPTION]... [VAR=VALUE]...
607
608To assign environment variables (e.g., CC, CFLAGS...), specify them as
609VAR=VALUE. See below for descriptions of some of the useful variables.
610
611Defaults for the options are specified in brackets.
612
613Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623
b457acc7 624EOF
10891472 625
b457acc7 626 cat <<EOF
10891472 627Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
632
633By default, \`make install' will install all the files in
634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636for instance \`--prefix=\$HOME'.
637
638For better control, use the options below.
639
640Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
b457acc7 653EOF
10891472 654
b457acc7 655 cat <<\EOF
656EOF
10891472 657fi
658
659if test -n "$ac_init_help"; then
660
b457acc7 661 cat <<\EOF
10891472 662
663Optional Packages:
664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
666\
667 --with-select use select() instead of poll()
668\
669 --with-unreal you need this if you are using Unreal ircd (any version)
670
671Some influential environment variables:
672 CC C compiler command
673 CFLAGS C compiler flags
674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
675 nonstandard directory <lib dir>
676 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
677 headers in a nonstandard directory <include dir>
678 CPP C preprocessor
679
680Use these variables to override the choices made by `configure' or to help
681it to find libraries and programs with nonstandard names/locations.
682
b457acc7 683EOF
10891472 684fi
f6649e03 685
10891472 686if test "$ac_init_help" = "recursive"; then
687 # If there are subdirs, report their specific --help.
688 ac_popdir=`pwd`
b457acc7 689 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
690 cd $ac_subdir
691 # A "../" for each directory in /$ac_subdir.
692 ac_dots=`echo $ac_subdir |
693 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
694
695 case $srcdir in
696 .) # No --srcdir option. We are building in place.
697 ac_sub_srcdir=$srcdir ;;
698 [\\/]* | ?:[\\/]* ) # Absolute path.
699 ac_sub_srcdir=$srcdir/$ac_subdir ;;
700 *) # Relative path.
701 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
702 esac
10891472 703
10891472 704 # Check for guested configure; otherwise get Cygnus style configure.
b457acc7 705 if test -f $ac_sub_srcdir/configure.gnu; then
10891472 706 echo
b457acc7 707 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
708 elif test -f $ac_sub_srcdir/configure; then
10891472 709 echo
b457acc7 710 $SHELL $ac_sub_srcdir/configure --help=recursive
711 elif test -f $ac_sub_srcdir/configure.ac ||
712 test -f $ac_sub_srcdir/configure.in; then
10891472 713 echo
714 $ac_configure --help
715 else
b457acc7 716 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
10891472 717 fi
718 cd $ac_popdir
719 done
720fi
721
722test -n "$ac_init_help" && exit 0
723if $ac_init_version; then
b457acc7 724 cat <<\EOF
10891472 725
726Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
727Free Software Foundation, Inc.
728This configure script is free software; the Free Software Foundation
729gives unlimited permission to copy, distribute and modify it.
b457acc7 730EOF
10891472 731 exit 0
732fi
733exec 5>config.log
b457acc7 734cat >&5 <<EOF
10891472 735This file contains any messages produced by compilers while
736running configure, to aid debugging if configure makes a mistake.
737
738It was created by $as_me, which was
b457acc7 739generated by GNU Autoconf 2.52. Invocation command line was
10891472 740
741 $ $0 $@
742
b457acc7 743EOF
10891472 744{
745cat <<_ASUNAME
b457acc7 746## ---------- ##
747## Platform. ##
748## ---------- ##
10891472 749
750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
751uname -m = `(uname -m) 2>/dev/null || echo unknown`
752uname -r = `(uname -r) 2>/dev/null || echo unknown`
753uname -s = `(uname -s) 2>/dev/null || echo unknown`
754uname -v = `(uname -v) 2>/dev/null || echo unknown`
755
756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
757/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
758
759/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
760/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
762hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
763/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
764/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
765/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
766
b457acc7 767PATH = $PATH
10891472 768
b457acc7 769_ASUNAME
10891472 770} >&5
771
b457acc7 772cat >&5 <<EOF
773## ------------ ##
774## Core tests. ##
775## ------------ ##
10891472 776
b457acc7 777EOF
10891472 778
779# Keep a trace of the command line.
780# Strip out --no-create and --no-recursion so they do not pile up.
781# Also quote any args containing shell meta-characters.
782ac_configure_args=
783ac_sep=
784for ac_arg
785do
786 case $ac_arg in
787 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
788 | --no-cr | --no-c) ;;
789 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
790 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
791 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
792 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
793 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
794 ac_sep=" " ;;
795 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
796 ac_sep=" " ;;
797 esac
798 # Get rid of the leading space.
799done
800
801# When interrupted or exit'd, cleanup temporary files, and complete
802# config.log. We remove comments because anyway the quotes in there
803# would cause problems or look ugly.
10891472 804trap 'exit_status=$?
805 # Save into config.log some information that might help in debugging.
b457acc7 806 echo >&5
807 echo "## ----------------- ##" >&5
808 echo "## Cache variables. ##" >&5
809 echo "## ----------------- ##" >&5
810 echo >&5
811 # The following way of writing the cache mishandles newlines in values,
10891472 812{
813 (set) 2>&1 |
814 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
815 *ac_space=\ *)
816 sed -n \
817 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
819 ;;
820 *)
821 sed -n \
822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
823 ;;
824 esac;
b457acc7 825} >&5
826 sed "/^$/d" confdefs.h >conftest.log
827 if test -s conftest.log; then
828 echo >&5
829 echo "## ------------ ##" >&5
830 echo "## confdefs.h. ##" >&5
831 echo "## ------------ ##" >&5
832 echo >&5
833 cat conftest.log >&5
834 fi
835 (echo; echo) >&5
836 test "$ac_signal" != 0 &&
837 echo "$as_me: caught signal $ac_signal" >&5
838 echo "$as_me: exit $exit_status" >&5
10891472 839 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
840 exit $exit_status
841 ' 0
842for ac_signal in 1 2 13 15; do
843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
844done
845ac_signal=0
846
847# confdefs.h avoids OS command line length limits that DEFS can exceed.
848rm -rf conftest* confdefs.h
849# AIX cpp loses on an empty file, so make sure it contains at least a newline.
850echo >confdefs.h
851
852# Let the site file select an alternate cache file if it wants to.
f6649e03 853# Prefer explicitly selected file to automatically selected ones.
854if test -z "$CONFIG_SITE"; then
855 if test "x$prefix" != xNONE; then
856 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
857 else
858 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
859 fi
860fi
861for ac_site_file in $CONFIG_SITE; do
862 if test -r "$ac_site_file"; then
b457acc7 863 { echo "$as_me:863: loading site script $ac_site_file" >&5
10891472 864echo "$as_me: loading site script $ac_site_file" >&6;}
b457acc7 865 cat "$ac_site_file" >&5
f6649e03 866 . "$ac_site_file"
867 fi
868done
869
870if test -r "$cache_file"; then
10891472 871 # Some versions of bash will fail to source /dev/null (special
872 # files actually), so we avoid doing that.
873 if test -f "$cache_file"; then
b457acc7 874 { echo "$as_me:874: loading cache $cache_file" >&5
10891472 875echo "$as_me: loading cache $cache_file" >&6;}
876 case $cache_file in
877 [\\/]* | ?:[\\/]* ) . $cache_file;;
878 *) . ./$cache_file;;
879 esac
880 fi
f6649e03 881else
b457acc7 882 { echo "$as_me:882: creating cache $cache_file" >&5
10891472 883echo "$as_me: creating cache $cache_file" >&6;}
884 >$cache_file
f6649e03 885fi
886
10891472 887# Check that the precious variables saved in the cache have kept the same
888# value.
889ac_cache_corrupted=false
890for ac_var in `(set) 2>&1 |
891 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
893 eval ac_new_set=\$ac_env_${ac_var}_set
894 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
895 eval ac_new_val="\$ac_env_${ac_var}_value"
896 case $ac_old_set,$ac_new_set in
897 set,)
b457acc7 898 { echo "$as_me:898: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
10891472 899echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
900 ac_cache_corrupted=: ;;
901 ,set)
b457acc7 902 { echo "$as_me:902: error: \`$ac_var' was not set in the previous run" >&5
10891472 903echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
904 ac_cache_corrupted=: ;;
905 ,);;
906 *)
907 if test "x$ac_old_val" != "x$ac_new_val"; then
b457acc7 908 { echo "$as_me:908: error: \`$ac_var' has changed since the previous run:" >&5
10891472 909echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
b457acc7 910 { echo "$as_me:910: former value: $ac_old_val" >&5
10891472 911echo "$as_me: former value: $ac_old_val" >&2;}
b457acc7 912 { echo "$as_me:912: current value: $ac_new_val" >&5
10891472 913echo "$as_me: current value: $ac_new_val" >&2;}
914 ac_cache_corrupted=:
915 fi;;
916 esac
917 # Pass precious variables to config.status. It doesn't matter if
918 # we pass some twice (in addition to the command line arguments).
919 if test "$ac_new_set" = set; then
920 case $ac_new_val in
921 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
922 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
923 ac_configure_args="$ac_configure_args '$ac_arg'"
924 ;;
925 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
926 ;;
927 esac
f6649e03 928 fi
10891472 929done
930if $ac_cache_corrupted; then
b457acc7 931 { echo "$as_me:931: error: changes in the environment can compromise the build" >&5
10891472 932echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b457acc7 933 { { echo "$as_me:933: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
10891472 934echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
935 { (exit 1); exit 1; }; }
f6649e03 936fi
937
10891472 938ac_ext=c
939ac_cpp='$CPP $CPPFLAGS'
940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
942ac_compiler_gnu=$ac_cv_c_compiler_gnu
f6649e03 943
b457acc7 944case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
945 *c*,-n*) ECHO_N= ECHO_C='
946' ECHO_T=' ' ;;
947 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
948 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
949esac
950echo "#! $SHELL" >conftest.sh
951echo "exit 0" >>conftest.sh
952chmod +x conftest.sh
953if { (echo "$as_me:953: PATH=\".;.\"; conftest.sh") >&5
954 (PATH=".;."; conftest.sh) 2>&5
955 ac_status=$?
956 echo "$as_me:956: \$? = $ac_status" >&5
957 (exit $ac_status); }; then
958 ac_path_separator=';'
959else
960 ac_path_separator=:
961fi
962PATH_SEPARATOR="$ac_path_separator"
963rm -f conftest.sh
964
10891472 965ac_config_headers="$ac_config_headers setup.h"
f6649e03 966
5bd052df 967# Check whether --with-select or --without-select was given.
968if test "${with_select+set}" = set; then
969 withval="$with_select"
970 with_select=yes
971else
972 with_select=no
10891472 973fi;
5bd052df 974
eedb8c58 975# Check whether --with-unreal or --without-unreal was given.
976if test "${with_unreal+set}" = set; then
977 withval="$with_unreal"
978 with_unreal=yes
979else
980 with_unreal=no
10891472 981fi;
eedb8c58 982
10891472 983ac_ext=c
984ac_cpp='$CPP $CPPFLAGS'
985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
987ac_compiler_gnu=$ac_cv_c_compiler_gnu
988if test -n "$ac_tool_prefix"; then
989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
990set dummy ${ac_tool_prefix}gcc; ac_word=$2
b457acc7 991echo "$as_me:991: checking for $ac_word" >&5
10891472 992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
993if test "${ac_cv_prog_CC+set}" = set; then
994 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 995else
996 if test -n "$CC"; then
997 ac_cv_prog_CC="$CC" # Let the user override the test.
998else
b457acc7 999 ac_save_IFS=$IFS; IFS=$ac_path_separator
1000ac_dummy="$PATH"
1001for ac_dir in $ac_dummy; do
1002 IFS=$ac_save_IFS
1003 test -z "$ac_dir" && ac_dir=.
1004 $as_executable_p "$ac_dir/$ac_word" || continue
1005ac_cv_prog_CC="${ac_tool_prefix}gcc"
1006echo "$as_me:1006: found $ac_dir/$ac_word" >&5
1007break
10891472 1008done
1009
f6649e03 1010fi
1011fi
10891472 1012CC=$ac_cv_prog_CC
f6649e03 1013if test -n "$CC"; then
b457acc7 1014 echo "$as_me:1014: result: $CC" >&5
10891472 1015echo "${ECHO_T}$CC" >&6
f6649e03 1016else
b457acc7 1017 echo "$as_me:1017: result: no" >&5
10891472 1018echo "${ECHO_T}no" >&6
f6649e03 1019fi
1020
10891472 1021fi
1022if test -z "$ac_cv_prog_CC"; then
1023 ac_ct_CC=$CC
1024 # Extract the first word of "gcc", so it can be a program name with args.
1025set dummy gcc; ac_word=$2
b457acc7 1026echo "$as_me:1026: checking for $ac_word" >&5
10891472 1027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1028if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1029 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 1030else
10891472 1031 if test -n "$ac_ct_CC"; then
1032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f6649e03 1033else
b457acc7 1034 ac_save_IFS=$IFS; IFS=$ac_path_separator
1035ac_dummy="$PATH"
1036for ac_dir in $ac_dummy; do
1037 IFS=$ac_save_IFS
1038 test -z "$ac_dir" && ac_dir=.
1039 $as_executable_p "$ac_dir/$ac_word" || continue
1040ac_cv_prog_ac_ct_CC="gcc"
1041echo "$as_me:1041: found $ac_dir/$ac_word" >&5
1042break
10891472 1043done
1044
f6649e03 1045fi
1046fi
10891472 1047ac_ct_CC=$ac_cv_prog_ac_ct_CC
1048if test -n "$ac_ct_CC"; then
b457acc7 1049 echo "$as_me:1049: result: $ac_ct_CC" >&5
10891472 1050echo "${ECHO_T}$ac_ct_CC" >&6
1051else
b457acc7 1052 echo "$as_me:1052: result: no" >&5
10891472 1053echo "${ECHO_T}no" >&6
f6649e03 1054fi
10891472 1055
1056 CC=$ac_ct_CC
f6649e03 1057else
10891472 1058 CC="$ac_cv_prog_CC"
f6649e03 1059fi
1060
10891472 1061if test -z "$CC"; then
1062 if test -n "$ac_tool_prefix"; then
1063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1064set dummy ${ac_tool_prefix}cc; ac_word=$2
b457acc7 1065echo "$as_me:1065: checking for $ac_word" >&5
10891472 1066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1067if test "${ac_cv_prog_CC+set}" = set; then
1068 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 1069else
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC="$CC" # Let the user override the test.
1072else
b457acc7 1073 ac_save_IFS=$IFS; IFS=$ac_path_separator
1074ac_dummy="$PATH"
1075for ac_dir in $ac_dummy; do
1076 IFS=$ac_save_IFS
1077 test -z "$ac_dir" && ac_dir=.
1078 $as_executable_p "$ac_dir/$ac_word" || continue
1079ac_cv_prog_CC="${ac_tool_prefix}cc"
1080echo "$as_me:1080: found $ac_dir/$ac_word" >&5
1081break
10891472 1082done
1083
f6649e03 1084fi
1085fi
10891472 1086CC=$ac_cv_prog_CC
f6649e03 1087if test -n "$CC"; then
b457acc7 1088 echo "$as_me:1088: result: $CC" >&5
10891472 1089echo "${ECHO_T}$CC" >&6
f6649e03 1090else
b457acc7 1091 echo "$as_me:1091: result: no" >&5
10891472 1092echo "${ECHO_T}no" >&6
f6649e03 1093fi
10891472 1094
1095fi
1096if test -z "$ac_cv_prog_CC"; then
1097 ac_ct_CC=$CC
1098 # Extract the first word of "cc", so it can be a program name with args.
1099set dummy cc; ac_word=$2
b457acc7 1100echo "$as_me:1100: checking for $ac_word" >&5
10891472 1101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1102if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1103 echo $ECHO_N "(cached) $ECHO_C" >&6
1104else
1105 if test -n "$ac_ct_CC"; then
1106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1107else
b457acc7 1108 ac_save_IFS=$IFS; IFS=$ac_path_separator
1109ac_dummy="$PATH"
1110for ac_dir in $ac_dummy; do
1111 IFS=$ac_save_IFS
1112 test -z "$ac_dir" && ac_dir=.
1113 $as_executable_p "$ac_dir/$ac_word" || continue
1114ac_cv_prog_ac_ct_CC="cc"
1115echo "$as_me:1115: found $ac_dir/$ac_word" >&5
1116break
10891472 1117done
1118
1119fi
1120fi
1121ac_ct_CC=$ac_cv_prog_ac_ct_CC
1122if test -n "$ac_ct_CC"; then
b457acc7 1123 echo "$as_me:1123: result: $ac_ct_CC" >&5
10891472 1124echo "${ECHO_T}$ac_ct_CC" >&6
1125else
b457acc7 1126 echo "$as_me:1126: result: no" >&5
10891472 1127echo "${ECHO_T}no" >&6
f6649e03 1128fi
1129
10891472 1130 CC=$ac_ct_CC
1131else
1132 CC="$ac_cv_prog_CC"
1133fi
f6649e03 1134
10891472 1135fi
1136if test -z "$CC"; then
1137 # Extract the first word of "cc", so it can be a program name with args.
1138set dummy cc; ac_word=$2
b457acc7 1139echo "$as_me:1139: checking for $ac_word" >&5
10891472 1140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1141if test "${ac_cv_prog_CC+set}" = set; then
1142 echo $ECHO_N "(cached) $ECHO_C" >&6
1143else
1144 if test -n "$CC"; then
1145 ac_cv_prog_CC="$CC" # Let the user override the test.
1146else
1147 ac_prog_rejected=no
b457acc7 1148 ac_save_IFS=$IFS; IFS=$ac_path_separator
1149ac_dummy="$PATH"
1150for ac_dir in $ac_dummy; do
1151 IFS=$ac_save_IFS
1152 test -z "$ac_dir" && ac_dir=.
1153 $as_executable_p "$ac_dir/$ac_word" || continue
1154if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1155 ac_prog_rejected=yes
1156 continue
1157fi
1158ac_cv_prog_CC="cc"
1159echo "$as_me:1159: found $ac_dir/$ac_word" >&5
1160break
10891472 1161done
1162
1163if test $ac_prog_rejected = yes; then
1164 # We found a bogon in the path, so make sure we never use it.
1165 set dummy $ac_cv_prog_CC
1166 shift
1167 if test $# != 0; then
1168 # We chose a different compiler from the bogus one.
1169 # However, it has the same basename, so the bogon will be chosen
1170 # first if we set CC to just the basename; use the full file name.
1171 shift
b457acc7 1172 set dummy "$ac_dir/$ac_word" ${1+"$@"}
10891472 1173 shift
1174 ac_cv_prog_CC="$@"
1175 fi
1176fi
1177fi
1178fi
1179CC=$ac_cv_prog_CC
1180if test -n "$CC"; then
b457acc7 1181 echo "$as_me:1181: result: $CC" >&5
10891472 1182echo "${ECHO_T}$CC" >&6
1183else
b457acc7 1184 echo "$as_me:1184: result: no" >&5
10891472 1185echo "${ECHO_T}no" >&6
1186fi
1187
1188fi
1189if test -z "$CC"; then
1190 if test -n "$ac_tool_prefix"; then
1191 for ac_prog in cl
1192 do
1193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b457acc7 1195echo "$as_me:1195: checking for $ac_word" >&5
10891472 1196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1197if test "${ac_cv_prog_CC+set}" = set; then
1198 echo $ECHO_N "(cached) $ECHO_C" >&6
1199else
1200 if test -n "$CC"; then
1201 ac_cv_prog_CC="$CC" # Let the user override the test.
1202else
b457acc7 1203 ac_save_IFS=$IFS; IFS=$ac_path_separator
1204ac_dummy="$PATH"
1205for ac_dir in $ac_dummy; do
1206 IFS=$ac_save_IFS
1207 test -z "$ac_dir" && ac_dir=.
1208 $as_executable_p "$ac_dir/$ac_word" || continue
1209ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1210echo "$as_me:1210: found $ac_dir/$ac_word" >&5
1211break
10891472 1212done
1213
1214fi
1215fi
1216CC=$ac_cv_prog_CC
1217if test -n "$CC"; then
b457acc7 1218 echo "$as_me:1218: result: $CC" >&5
10891472 1219echo "${ECHO_T}$CC" >&6
1220else
b457acc7 1221 echo "$as_me:1221: result: no" >&5
10891472 1222echo "${ECHO_T}no" >&6
1223fi
1224
1225 test -n "$CC" && break
1226 done
1227fi
1228if test -z "$CC"; then
1229 ac_ct_CC=$CC
1230 for ac_prog in cl
1231do
1232 # Extract the first word of "$ac_prog", so it can be a program name with args.
1233set dummy $ac_prog; ac_word=$2
b457acc7 1234echo "$as_me:1234: checking for $ac_word" >&5
10891472 1235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1236if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1237 echo $ECHO_N "(cached) $ECHO_C" >&6
1238else
1239 if test -n "$ac_ct_CC"; then
1240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1241else
b457acc7 1242 ac_save_IFS=$IFS; IFS=$ac_path_separator
1243ac_dummy="$PATH"
1244for ac_dir in $ac_dummy; do
1245 IFS=$ac_save_IFS
1246 test -z "$ac_dir" && ac_dir=.
1247 $as_executable_p "$ac_dir/$ac_word" || continue
1248ac_cv_prog_ac_ct_CC="$ac_prog"
1249echo "$as_me:1249: found $ac_dir/$ac_word" >&5
1250break
10891472 1251done
1252
1253fi
1254fi
1255ac_ct_CC=$ac_cv_prog_ac_ct_CC
1256if test -n "$ac_ct_CC"; then
b457acc7 1257 echo "$as_me:1257: result: $ac_ct_CC" >&5
10891472 1258echo "${ECHO_T}$ac_ct_CC" >&6
1259else
b457acc7 1260 echo "$as_me:1260: result: no" >&5
10891472 1261echo "${ECHO_T}no" >&6
1262fi
1263
1264 test -n "$ac_ct_CC" && break
1265done
1266
1267 CC=$ac_ct_CC
1268fi
f6649e03 1269
10891472 1270fi
f6649e03 1271
b457acc7 1272test -z "$CC" && { { echo "$as_me:1272: error: no acceptable cc found in \$PATH" >&5
10891472 1273echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1274 { (exit 1); exit 1; }; }
1275
1276# Provide some information about the compiler.
b457acc7 1277echo "$as_me:1277:" \
10891472 1278 "checking for C compiler version" >&5
1279ac_compiler=`set X $ac_compile; echo $2`
b457acc7 1280{ (eval echo "$as_me:1280: \"$ac_compiler --version </dev/null >&5\"") >&5
10891472 1281 (eval $ac_compiler --version </dev/null >&5) 2>&5
1282 ac_status=$?
b457acc7 1283 echo "$as_me:1283: \$? = $ac_status" >&5
10891472 1284 (exit $ac_status); }
b457acc7 1285{ (eval echo "$as_me:1285: \"$ac_compiler -v </dev/null >&5\"") >&5
10891472 1286 (eval $ac_compiler -v </dev/null >&5) 2>&5
1287 ac_status=$?
b457acc7 1288 echo "$as_me:1288: \$? = $ac_status" >&5
10891472 1289 (exit $ac_status); }
b457acc7 1290{ (eval echo "$as_me:1290: \"$ac_compiler -V </dev/null >&5\"") >&5
10891472 1291 (eval $ac_compiler -V </dev/null >&5) 2>&5
1292 ac_status=$?
b457acc7 1293 echo "$as_me:1293: \$? = $ac_status" >&5
10891472 1294 (exit $ac_status); }
1295
1296cat >conftest.$ac_ext <<_ACEOF
b457acc7 1297#line 1297 "configure"
f6649e03 1298#include "confdefs.h"
1299
10891472 1300int
1301main ()
1302{
1303
1304 ;
1305 return 0;
1306}
1307_ACEOF
1308ac_clean_files_save=$ac_clean_files
1309ac_clean_files="$ac_clean_files a.out a.exe"
1310# Try to create an executable without -o first, disregard a.out.
1311# It will help us diagnose broken compilers, and finding out an intuition
1312# of exeext.
b457acc7 1313echo "$as_me:1313: checking for C compiler default output" >&5
10891472 1314echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1315ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
b457acc7 1316if { (eval echo "$as_me:1316: \"$ac_link_default\"") >&5
10891472 1317 (eval $ac_link_default) 2>&5
1318 ac_status=$?
b457acc7 1319 echo "$as_me:1319: \$? = $ac_status" >&5
10891472 1320 (exit $ac_status); }; then
1321 # Find the output, starting from the most likely. This scheme is
1322# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1323# resort.
b457acc7 1324for ac_file in `ls a.exe conftest.exe 2>/dev/null;
10891472 1325 ls a.out conftest 2>/dev/null;
1326 ls a.* conftest.* 2>/dev/null`; do
1327 case $ac_file in
b457acc7 1328 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
10891472 1329 a.out ) # We found the default executable, but exeext='' is most
1330 # certainly right.
1331 break;;
1332 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1333 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1334 export ac_cv_exeext
1335 break;;
1336 * ) break;;
1337 esac
1338done
1339else
1340 echo "$as_me: failed program was:" >&5
1341cat conftest.$ac_ext >&5
b457acc7 1342{ { echo "$as_me:1342: error: C compiler cannot create executables" >&5
10891472 1343echo "$as_me: error: C compiler cannot create executables" >&2;}
1344 { (exit 77); exit 77; }; }
1345fi
1346
1347ac_exeext=$ac_cv_exeext
b457acc7 1348echo "$as_me:1348: result: $ac_file" >&5
10891472 1349echo "${ECHO_T}$ac_file" >&6
1350
1351# Check the compiler produces executables we can run. If not, either
1352# the compiler is broken, or we cross compile.
b457acc7 1353echo "$as_me:1353: checking whether the C compiler works" >&5
10891472 1354echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1355# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1356# If not cross compiling, check that we can run a simple program.
1357if test "$cross_compiling" != yes; then
1358 if { ac_try='./$ac_file'
b457acc7 1359 { (eval echo "$as_me:1359: \"$ac_try\"") >&5
10891472 1360 (eval $ac_try) 2>&5
1361 ac_status=$?
b457acc7 1362 echo "$as_me:1362: \$? = $ac_status" >&5
10891472 1363 (exit $ac_status); }; }; then
1364 cross_compiling=no
f6649e03 1365 else
10891472 1366 if test "$cross_compiling" = maybe; then
1367 cross_compiling=yes
1368 else
b457acc7 1369 { { echo "$as_me:1369: error: cannot run C compiled programs.
10891472 1370If you meant to cross compile, use \`--host'." >&5
1371echo "$as_me: error: cannot run C compiled programs.
1372If you meant to cross compile, use \`--host'." >&2;}
1373 { (exit 1); exit 1; }; }
1374 fi
f6649e03 1375 fi
10891472 1376fi
b457acc7 1377echo "$as_me:1377: result: yes" >&5
10891472 1378echo "${ECHO_T}yes" >&6
1379
1380rm -f a.out a.exe conftest$ac_cv_exeext
1381ac_clean_files=$ac_clean_files_save
1382# Check the compiler produces executables we can run. If not, either
1383# the compiler is broken, or we cross compile.
b457acc7 1384echo "$as_me:1384: checking whether we are cross compiling" >&5
10891472 1385echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
b457acc7 1386echo "$as_me:1386: result: $cross_compiling" >&5
10891472 1387echo "${ECHO_T}$cross_compiling" >&6
1388
b457acc7 1389echo "$as_me:1389: checking for executable suffix" >&5
10891472 1390echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
b457acc7 1391if { (eval echo "$as_me:1391: \"$ac_link\"") >&5
10891472 1392 (eval $ac_link) 2>&5
1393 ac_status=$?
b457acc7 1394 echo "$as_me:1394: \$? = $ac_status" >&5
10891472 1395 (exit $ac_status); }; then
1396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1397# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1398# work properly (i.e., refer to `conftest.exe'), while it won't with
1399# `rm'.
1400for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1401 case $ac_file in
1402 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1404 export ac_cv_exeext
1405 break;;
1406 * ) break;;
1407 esac
1408done
f6649e03 1409else
b457acc7 1410 { { echo "$as_me:1410: error: cannot compute EXEEXT: cannot compile and link" >&5
10891472 1411echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1412 { (exit 1); exit 1; }; }
f6649e03 1413fi
10891472 1414
1415rm -f conftest$ac_cv_exeext
b457acc7 1416echo "$as_me:1416: result: $ac_cv_exeext" >&5
10891472 1417echo "${ECHO_T}$ac_cv_exeext" >&6
1418
1419rm -f conftest.$ac_ext
1420EXEEXT=$ac_cv_exeext
1421ac_exeext=$EXEEXT
b457acc7 1422echo "$as_me:1422: checking for object suffix" >&5
10891472 1423echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1424if test "${ac_cv_objext+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426else
1427 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1428#line 1428 "configure"
10891472 1429#include "confdefs.h"
1430
10891472 1431int
1432main ()
1433{
1434
1435 ;
1436 return 0;
1437}
1438_ACEOF
1439rm -f conftest.o conftest.obj
b457acc7 1440if { (eval echo "$as_me:1440: \"$ac_compile\"") >&5
10891472 1441 (eval $ac_compile) 2>&5
1442 ac_status=$?
b457acc7 1443 echo "$as_me:1443: \$? = $ac_status" >&5
10891472 1444 (exit $ac_status); }; then
1445 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1446 case $ac_file in
1447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1449 break;;
1450 esac
1451done
f6649e03 1452else
10891472 1453 echo "$as_me: failed program was:" >&5
1454cat conftest.$ac_ext >&5
b457acc7 1455{ { echo "$as_me:1455: error: cannot compute OBJEXT: cannot compile" >&5
10891472 1456echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1457 { (exit 1); exit 1; }; }
f6649e03 1458fi
10891472 1459
1460rm -f conftest.$ac_cv_objext conftest.$ac_ext
f6649e03 1461fi
b457acc7 1462echo "$as_me:1462: result: $ac_cv_objext" >&5
10891472 1463echo "${ECHO_T}$ac_cv_objext" >&6
1464OBJEXT=$ac_cv_objext
1465ac_objext=$OBJEXT
b457acc7 1466echo "$as_me:1466: checking whether we are using the GNU C compiler" >&5
10891472 1467echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1468if test "${ac_cv_c_compiler_gnu+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470else
1471 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1472#line 1472 "configure"
10891472 1473#include "confdefs.h"
f6649e03 1474
10891472 1475int
1476main ()
1477{
1478#ifndef __GNUC__
1479 choke me
1480#endif
f6649e03 1481
10891472 1482 ;
1483 return 0;
1484}
1485_ACEOF
1486rm -f conftest.$ac_objext
b457acc7 1487if { (eval echo "$as_me:1487: \"$ac_compile\"") >&5
10891472 1488 (eval $ac_compile) 2>&5
1489 ac_status=$?
b457acc7 1490 echo "$as_me:1490: \$? = $ac_status" >&5
10891472 1491 (exit $ac_status); } &&
1492 { ac_try='test -s conftest.$ac_objext'
b457acc7 1493 { (eval echo "$as_me:1493: \"$ac_try\"") >&5
10891472 1494 (eval $ac_try) 2>&5
1495 ac_status=$?
b457acc7 1496 echo "$as_me:1496: \$? = $ac_status" >&5
10891472 1497 (exit $ac_status); }; }; then
1498 ac_compiler_gnu=yes
f6649e03 1499else
10891472 1500 echo "$as_me: failed program was:" >&5
1501cat conftest.$ac_ext >&5
1502ac_compiler_gnu=no
f6649e03 1503fi
10891472 1504rm -f conftest.$ac_objext conftest.$ac_ext
1505ac_cv_c_compiler_gnu=$ac_compiler_gnu
f6649e03 1506
10891472 1507fi
b457acc7 1508echo "$as_me:1508: result: $ac_cv_c_compiler_gnu" >&5
10891472 1509echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1510GCC=`test $ac_compiler_gnu = yes && echo yes`
1511ac_test_CFLAGS=${CFLAGS+set}
1512ac_save_CFLAGS=$CFLAGS
1513CFLAGS="-g"
b457acc7 1514echo "$as_me:1514: checking whether $CC accepts -g" >&5
10891472 1515echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1516if test "${ac_cv_prog_cc_g+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 1518else
10891472 1519 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1520#line 1520 "configure"
10891472 1521#include "confdefs.h"
1522
10891472 1523int
1524main ()
1525{
1526
1527 ;
1528 return 0;
1529}
1530_ACEOF
1531rm -f conftest.$ac_objext
b457acc7 1532if { (eval echo "$as_me:1532: \"$ac_compile\"") >&5
10891472 1533 (eval $ac_compile) 2>&5
1534 ac_status=$?
b457acc7 1535 echo "$as_me:1535: \$? = $ac_status" >&5
10891472 1536 (exit $ac_status); } &&
1537 { ac_try='test -s conftest.$ac_objext'
b457acc7 1538 { (eval echo "$as_me:1538: \"$ac_try\"") >&5
10891472 1539 (eval $ac_try) 2>&5
1540 ac_status=$?
b457acc7 1541 echo "$as_me:1541: \$? = $ac_status" >&5
10891472 1542 (exit $ac_status); }; }; then
f6649e03 1543 ac_cv_prog_cc_g=yes
1544else
10891472 1545 echo "$as_me: failed program was:" >&5
1546cat conftest.$ac_ext >&5
1547ac_cv_prog_cc_g=no
f6649e03 1548fi
10891472 1549rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 1550fi
b457acc7 1551echo "$as_me:1551: result: $ac_cv_prog_cc_g" >&5
10891472 1552echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f6649e03 1553if test "$ac_test_CFLAGS" = set; then
10891472 1554 CFLAGS=$ac_save_CFLAGS
f6649e03 1555elif test $ac_cv_prog_cc_g = yes; then
1556 if test "$GCC" = yes; then
1557 CFLAGS="-g -O2"
1558 else
1559 CFLAGS="-g"
1560 fi
1561else
1562 if test "$GCC" = yes; then
1563 CFLAGS="-O2"
1564 else
1565 CFLAGS=
1566 fi
1567fi
10891472 1568# Some people use a C++ compiler to compile C. Since we use `exit',
1569# in C++ we need to declare it. In case someone uses the same compiler
1570# for both compiling C and C++ we need to have the C++ compiler decide
1571# the declaration of exit, since it's the most demanding environment.
1572cat >conftest.$ac_ext <<_ACEOF
1573#ifndef __cplusplus
1574 choke me
1575#endif
1576_ACEOF
1577rm -f conftest.$ac_objext
b457acc7 1578if { (eval echo "$as_me:1578: \"$ac_compile\"") >&5
10891472 1579 (eval $ac_compile) 2>&5
1580 ac_status=$?
b457acc7 1581 echo "$as_me:1581: \$? = $ac_status" >&5
10891472 1582 (exit $ac_status); } &&
1583 { ac_try='test -s conftest.$ac_objext'
b457acc7 1584 { (eval echo "$as_me:1584: \"$ac_try\"") >&5
10891472 1585 (eval $ac_try) 2>&5
1586 ac_status=$?
b457acc7 1587 echo "$as_me:1587: \$? = $ac_status" >&5
10891472 1588 (exit $ac_status); }; }; then
1589 for ac_declaration in \
1590 ''\
1591 '#include <stdlib.h>' \
1592 'extern "C" void std::exit (int) throw (); using std::exit;' \
1593 'extern "C" void std::exit (int); using std::exit;' \
1594 'extern "C" void exit (int) throw ();' \
1595 'extern "C" void exit (int);' \
1596 'void exit (int);'
1597do
1598 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1599#line 1599 "configure"
10891472 1600#include "confdefs.h"
1601#include <stdlib.h>
1602$ac_declaration
10891472 1603int
1604main ()
1605{
1606exit (42);
1607 ;
1608 return 0;
1609}
1610_ACEOF
1611rm -f conftest.$ac_objext
b457acc7 1612if { (eval echo "$as_me:1612: \"$ac_compile\"") >&5
10891472 1613 (eval $ac_compile) 2>&5
1614 ac_status=$?
b457acc7 1615 echo "$as_me:1615: \$? = $ac_status" >&5
10891472 1616 (exit $ac_status); } &&
1617 { ac_try='test -s conftest.$ac_objext'
b457acc7 1618 { (eval echo "$as_me:1618: \"$ac_try\"") >&5
10891472 1619 (eval $ac_try) 2>&5
1620 ac_status=$?
b457acc7 1621 echo "$as_me:1621: \$? = $ac_status" >&5
10891472 1622 (exit $ac_status); }; }; then
1623 :
1624else
1625 echo "$as_me: failed program was:" >&5
1626cat conftest.$ac_ext >&5
1627continue
1628fi
1629rm -f conftest.$ac_objext conftest.$ac_ext
1630 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1631#line 1631 "configure"
10891472 1632#include "confdefs.h"
1633$ac_declaration
10891472 1634int
1635main ()
1636{
1637exit (42);
1638 ;
1639 return 0;
1640}
1641_ACEOF
1642rm -f conftest.$ac_objext
b457acc7 1643if { (eval echo "$as_me:1643: \"$ac_compile\"") >&5
10891472 1644 (eval $ac_compile) 2>&5
1645 ac_status=$?
b457acc7 1646 echo "$as_me:1646: \$? = $ac_status" >&5
10891472 1647 (exit $ac_status); } &&
1648 { ac_try='test -s conftest.$ac_objext'
b457acc7 1649 { (eval echo "$as_me:1649: \"$ac_try\"") >&5
10891472 1650 (eval $ac_try) 2>&5
1651 ac_status=$?
b457acc7 1652 echo "$as_me:1652: \$? = $ac_status" >&5
10891472 1653 (exit $ac_status); }; }; then
1654 break
1655else
1656 echo "$as_me: failed program was:" >&5
1657cat conftest.$ac_ext >&5
1658fi
1659rm -f conftest.$ac_objext conftest.$ac_ext
1660done
1661rm -f conftest*
1662if test -n "$ac_declaration"; then
1663 echo '#ifdef __cplusplus' >>confdefs.h
1664 echo $ac_declaration >>confdefs.h
1665 echo '#endif' >>confdefs.h
1666fi
f6649e03 1667
10891472 1668else
1669 echo "$as_me: failed program was:" >&5
1670cat conftest.$ac_ext >&5
1671fi
1672rm -f conftest.$ac_objext conftest.$ac_ext
1673ac_ext=c
1674ac_cpp='$CPP $CPPFLAGS'
1675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1677ac_compiler_gnu=$ac_cv_c_compiler_gnu
f6649e03 1678
10891472 1679ac_ext=c
1680ac_cpp='$CPP $CPPFLAGS'
1681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1683ac_compiler_gnu=$ac_cv_c_compiler_gnu
b457acc7 1684echo "$as_me:1684: checking how to run the C preprocessor" >&5
10891472 1685echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
f6649e03 1686# On Suns, sometimes $CPP names a directory.
1687if test -n "$CPP" && test -d "$CPP"; then
1688 CPP=
1689fi
1690if test -z "$CPP"; then
10891472 1691 if test "${ac_cv_prog_CPP+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 1693else
10891472 1694 # Double quotes because CPP needs to be expanded
1695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1696 do
1697 ac_preproc_ok=false
1698for ac_c_preproc_warn_flag in '' yes
1699do
1700 # Use a header file that comes with gcc, so configuring glibc
1701 # with a fresh cross-compiler works.
f6649e03 1702 # On the NeXT, cc -E runs the code through the compiler's parser,
10891472 1703 # not just through cpp. "Syntax error" is here to catch this case.
1704 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1705#line 1705 "configure"
f6649e03 1706#include "confdefs.h"
1707#include <assert.h>
10891472 1708 Syntax error
1709_ACEOF
b457acc7 1710if { (eval echo "$as_me:1710: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 1711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1712 ac_status=$?
1713 egrep -v '^ *\+' conftest.er1 >conftest.err
1714 rm -f conftest.er1
1715 cat conftest.err >&5
b457acc7 1716 echo "$as_me:1716: \$? = $ac_status" >&5
10891472 1717 (exit $ac_status); } >/dev/null; then
1718 if test -s conftest.err; then
1719 ac_cpp_err=$ac_c_preproc_warn_flag
1720 else
1721 ac_cpp_err=
1722 fi
1723else
1724 ac_cpp_err=yes
1725fi
1726if test -z "$ac_cpp_err"; then
f6649e03 1727 :
1728else
10891472 1729 echo "$as_me: failed program was:" >&5
f6649e03 1730 cat conftest.$ac_ext >&5
10891472 1731 # Broken: fails on valid input.
1732continue
1733fi
1734rm -f conftest.err conftest.$ac_ext
1735
1736 # OK, works on sane cases. Now check whether non-existent headers
1737 # can be detected and how.
1738 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1739#line 1739 "configure"
f6649e03 1740#include "confdefs.h"
10891472 1741#include <ac_nonexistent.h>
1742_ACEOF
b457acc7 1743if { (eval echo "$as_me:1743: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 1744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1745 ac_status=$?
1746 egrep -v '^ *\+' conftest.er1 >conftest.err
1747 rm -f conftest.er1
1748 cat conftest.err >&5
b457acc7 1749 echo "$as_me:1749: \$? = $ac_status" >&5
10891472 1750 (exit $ac_status); } >/dev/null; then
1751 if test -s conftest.err; then
1752 ac_cpp_err=$ac_c_preproc_warn_flag
1753 else
1754 ac_cpp_err=
1755 fi
1756else
1757 ac_cpp_err=yes
1758fi
1759if test -z "$ac_cpp_err"; then
1760 # Broken: success on invalid input.
1761continue
f6649e03 1762else
10891472 1763 echo "$as_me: failed program was:" >&5
f6649e03 1764 cat conftest.$ac_ext >&5
10891472 1765 # Passes both tests.
1766ac_preproc_ok=:
1767break
1768fi
1769rm -f conftest.err conftest.$ac_ext
1770
1771done
1772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1773rm -f conftest.err conftest.$ac_ext
1774if $ac_preproc_ok; then
1775 break
1776fi
1777
1778 done
1779 ac_cv_prog_CPP=$CPP
1780
1781fi
1782 CPP=$ac_cv_prog_CPP
1783else
1784 ac_cv_prog_CPP=$CPP
1785fi
b457acc7 1786echo "$as_me:1786: result: $CPP" >&5
10891472 1787echo "${ECHO_T}$CPP" >&6
1788ac_preproc_ok=false
1789for ac_c_preproc_warn_flag in '' yes
1790do
1791 # Use a header file that comes with gcc, so configuring glibc
1792 # with a fresh cross-compiler works.
1793 # On the NeXT, cc -E runs the code through the compiler's parser,
1794 # not just through cpp. "Syntax error" is here to catch this case.
1795 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1796#line 1796 "configure"
f6649e03 1797#include "confdefs.h"
1798#include <assert.h>
10891472 1799 Syntax error
1800_ACEOF
b457acc7 1801if { (eval echo "$as_me:1801: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 1802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1803 ac_status=$?
1804 egrep -v '^ *\+' conftest.er1 >conftest.err
1805 rm -f conftest.er1
1806 cat conftest.err >&5
b457acc7 1807 echo "$as_me:1807: \$? = $ac_status" >&5
10891472 1808 (exit $ac_status); } >/dev/null; then
1809 if test -s conftest.err; then
1810 ac_cpp_err=$ac_c_preproc_warn_flag
1811 else
1812 ac_cpp_err=
1813 fi
1814else
1815 ac_cpp_err=yes
1816fi
1817if test -z "$ac_cpp_err"; then
f6649e03 1818 :
1819else
10891472 1820 echo "$as_me: failed program was:" >&5
f6649e03 1821 cat conftest.$ac_ext >&5
10891472 1822 # Broken: fails on valid input.
1823continue
f6649e03 1824fi
10891472 1825rm -f conftest.err conftest.$ac_ext
1826
1827 # OK, works on sane cases. Now check whether non-existent headers
1828 # can be detected and how.
1829 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1830#line 1830 "configure"
10891472 1831#include "confdefs.h"
1832#include <ac_nonexistent.h>
1833_ACEOF
b457acc7 1834if { (eval echo "$as_me:1834: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 1835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1836 ac_status=$?
1837 egrep -v '^ *\+' conftest.er1 >conftest.err
1838 rm -f conftest.er1
1839 cat conftest.err >&5
b457acc7 1840 echo "$as_me:1840: \$? = $ac_status" >&5
10891472 1841 (exit $ac_status); } >/dev/null; then
1842 if test -s conftest.err; then
1843 ac_cpp_err=$ac_c_preproc_warn_flag
1844 else
1845 ac_cpp_err=
1846 fi
1847else
1848 ac_cpp_err=yes
f6649e03 1849fi
10891472 1850if test -z "$ac_cpp_err"; then
1851 # Broken: success on invalid input.
1852continue
1853else
1854 echo "$as_me: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 # Passes both tests.
1857ac_preproc_ok=:
1858break
f6649e03 1859fi
10891472 1860rm -f conftest.err conftest.$ac_ext
1861
1862done
1863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1864rm -f conftest.err conftest.$ac_ext
1865if $ac_preproc_ok; then
1866 :
f6649e03 1867else
b457acc7 1868 { { echo "$as_me:1868: error: C preprocessor \"$CPP\" fails sanity check" >&5
10891472 1869echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1870 { (exit 1); exit 1; }; }
f6649e03 1871fi
f6649e03 1872
10891472 1873ac_ext=c
1874ac_cpp='$CPP $CPPFLAGS'
1875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878
b457acc7 1879echo "$as_me:1879: checking for ANSI C header files" >&5
10891472 1880echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1881if test "${ac_cv_header_stdc+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 1883else
10891472 1884 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1885#line 1885 "configure"
f6649e03 1886#include "confdefs.h"
1887#include <stdlib.h>
1888#include <stdarg.h>
1889#include <string.h>
1890#include <float.h>
10891472 1891
1892_ACEOF
b457acc7 1893if { (eval echo "$as_me:1893: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 1894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1895 ac_status=$?
1896 egrep -v '^ *\+' conftest.er1 >conftest.err
1897 rm -f conftest.er1
1898 cat conftest.err >&5
b457acc7 1899 echo "$as_me:1899: \$? = $ac_status" >&5
10891472 1900 (exit $ac_status); } >/dev/null; then
1901 if test -s conftest.err; then
1902 ac_cpp_err=$ac_c_preproc_warn_flag
1903 else
1904 ac_cpp_err=
1905 fi
1906else
1907 ac_cpp_err=yes
1908fi
1909if test -z "$ac_cpp_err"; then
f6649e03 1910 ac_cv_header_stdc=yes
1911else
10891472 1912 echo "$as_me: failed program was:" >&5
f6649e03 1913 cat conftest.$ac_ext >&5
f6649e03 1914 ac_cv_header_stdc=no
1915fi
10891472 1916rm -f conftest.err conftest.$ac_ext
f6649e03 1917
1918if test $ac_cv_header_stdc = yes; then
1919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10891472 1920 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1921#line 1921 "configure"
f6649e03 1922#include "confdefs.h"
1923#include <string.h>
10891472 1924
1925_ACEOF
f6649e03 1926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1927 egrep "memchr" >/dev/null 2>&1; then
1928 :
1929else
f6649e03 1930 ac_cv_header_stdc=no
1931fi
1932rm -f conftest*
1933
1934fi
1935
1936if test $ac_cv_header_stdc = yes; then
1937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10891472 1938 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1939#line 1939 "configure"
f6649e03 1940#include "confdefs.h"
1941#include <stdlib.h>
10891472 1942
1943_ACEOF
f6649e03 1944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1945 egrep "free" >/dev/null 2>&1; then
1946 :
1947else
f6649e03 1948 ac_cv_header_stdc=no
1949fi
1950rm -f conftest*
1951
1952fi
1953
1954if test $ac_cv_header_stdc = yes; then
1955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10891472 1956 if test "$cross_compiling" = yes; then
f6649e03 1957 :
1958else
10891472 1959 cat >conftest.$ac_ext <<_ACEOF
b457acc7 1960#line 1960 "configure"
f6649e03 1961#include "confdefs.h"
1962#include <ctype.h>
10891472 1963#if ((' ' & 0x0FF) == 0x020)
1964# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1965# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1966#else
1967# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1968 || ('j' <= (c) && (c) <= 'r') \
1969 || ('s' <= (c) && (c) <= 'z'))
1970# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1971#endif
f6649e03 1972
10891472 1973#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1974int
1975main ()
1976{
1977 int i;
1978 for (i = 0; i < 256; i++)
1979 if (XOR (islower (i), ISLOWER (i))
1980 || toupper (i) != TOUPPER (i))
1981 exit(2);
1982 exit (0);
1983}
1984_ACEOF
1985rm -f conftest$ac_exeext
b457acc7 1986if { (eval echo "$as_me:1986: \"$ac_link\"") >&5
10891472 1987 (eval $ac_link) 2>&5
1988 ac_status=$?
b457acc7 1989 echo "$as_me:1989: \$? = $ac_status" >&5
10891472 1990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b457acc7 1991 { (eval echo "$as_me:1991: \"$ac_try\"") >&5
10891472 1992 (eval $ac_try) 2>&5
1993 ac_status=$?
b457acc7 1994 echo "$as_me:1994: \$? = $ac_status" >&5
10891472 1995 (exit $ac_status); }; }; then
f6649e03 1996 :
1997else
10891472 1998 echo "$as_me: program exited with status $ac_status" >&5
1999echo "$as_me: failed program was:" >&5
2000cat conftest.$ac_ext >&5
10891472 2001ac_cv_header_stdc=no
f6649e03 2002fi
10891472 2003rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f6649e03 2004fi
f6649e03 2005fi
2006fi
b457acc7 2007echo "$as_me:2007: result: $ac_cv_header_stdc" >&5
10891472 2008echo "${ECHO_T}$ac_cv_header_stdc" >&6
f6649e03 2009if test $ac_cv_header_stdc = yes; then
10891472 2010
b457acc7 2011cat >>confdefs.h <<\EOF
f6649e03 2012#define STDC_HEADERS 1
b457acc7 2013EOF
f6649e03 2014
2015fi
2016
5bd052df 2017if test "$with_select" = "yes"; then
2018 echo "use of select() forced, skipping poll() checks..."
10891472 2019
b457acc7 2020cat >>confdefs.h <<\EOF
5bd052df 2021#define WITH_SELECT 1
b457acc7 2022EOF
5bd052df 2023
2024else
10891472 2025
c99ff383 2026for ac_header in sys/poll.h
2027do
2028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b457acc7 2029echo "$as_me:2029: checking for $ac_header" >&5
c99ff383 2030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2031if eval "test \"\${$as_ac_Header+set}\" = set"; then
10891472 2032 echo $ECHO_N "(cached) $ECHO_C" >&6
10891472 2033else
b457acc7 2034 cat >conftest.$ac_ext <<_ACEOF
2035#line 2035 "configure"
10891472 2036#include "confdefs.h"
c99ff383 2037#include <$ac_header>
10891472 2038_ACEOF
b457acc7 2039if { (eval echo "$as_me:2039: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 2040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2041 ac_status=$?
2042 egrep -v '^ *\+' conftest.er1 >conftest.err
2043 rm -f conftest.er1
2044 cat conftest.err >&5
b457acc7 2045 echo "$as_me:2045: \$? = $ac_status" >&5
10891472 2046 (exit $ac_status); } >/dev/null; then
2047 if test -s conftest.err; then
2048 ac_cpp_err=$ac_c_preproc_warn_flag
2049 else
2050 ac_cpp_err=
2051 fi
2052else
2053 ac_cpp_err=yes
2054fi
2055if test -z "$ac_cpp_err"; then
b457acc7 2056 eval "$as_ac_Header=yes"
10891472 2057else
2058 echo "$as_me: failed program was:" >&5
5bd052df 2059 cat conftest.$ac_ext >&5
b457acc7 2060 eval "$as_ac_Header=no"
5bd052df 2061fi
10891472 2062rm -f conftest.err conftest.$ac_ext
10891472 2063fi
b457acc7 2064echo "$as_me:2064: result: `eval echo '${'$as_ac_Header'}'`" >&5
c99ff383 2065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c99ff383 2066if test `eval echo '${'$as_ac_Header'}'` = yes; then
b457acc7 2067 cat >>confdefs.h <<EOF
c99ff383 2068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
b457acc7 2069EOF
c99ff383 2070 have_poll_sys_h=yes
5bd052df 2071else
10891472 2072 have_sys_poll_h=no
5bd052df 2073fi
c99ff383 2074done
2075
5bd052df 2076fi
2077
eedb8c58 2078if test "$with_unreal" = "yes"; then
2079 echo "configuring for Unreal ircd"
10891472 2080
b457acc7 2081cat >>confdefs.h <<\EOF
eedb8c58 2082#define WITH_UNREAL 1
b457acc7 2083EOF
eedb8c58 2084
2085fi
2086
b457acc7 2087for ac_header in fcntl.h sys/time.h unistd.h strings.h
f6649e03 2088do
10891472 2089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b457acc7 2090echo "$as_me:2090: checking for $ac_header" >&5
10891472 2091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2092if eval "test \"\${$as_ac_Header+set}\" = set"; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
10891472 2094else
b457acc7 2095 cat >conftest.$ac_ext <<_ACEOF
2096#line 2096 "configure"
10891472 2097#include "confdefs.h"
2098#include <$ac_header>
2099_ACEOF
b457acc7 2100if { (eval echo "$as_me:2100: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 2101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2102 ac_status=$?
2103 egrep -v '^ *\+' conftest.er1 >conftest.err
2104 rm -f conftest.er1
2105 cat conftest.err >&5
b457acc7 2106 echo "$as_me:2106: \$? = $ac_status" >&5
10891472 2107 (exit $ac_status); } >/dev/null; then
2108 if test -s conftest.err; then
2109 ac_cpp_err=$ac_c_preproc_warn_flag
2110 else
2111 ac_cpp_err=
2112 fi
2113else
2114 ac_cpp_err=yes
f6649e03 2115fi
10891472 2116if test -z "$ac_cpp_err"; then
b457acc7 2117 eval "$as_ac_Header=yes"
f6649e03 2118else
10891472 2119 echo "$as_me: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
b457acc7 2121 eval "$as_ac_Header=no"
10891472 2122fi
2123rm -f conftest.err conftest.$ac_ext
10891472 2124fi
b457acc7 2125echo "$as_me:2125: result: `eval echo '${'$as_ac_Header'}'`" >&5
10891472 2126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10891472 2127if test `eval echo '${'$as_ac_Header'}'` = yes; then
b457acc7 2128 cat >>confdefs.h <<EOF
10891472 2129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
b457acc7 2130EOF
10891472 2131
f6649e03 2132fi
10891472 2133done
f6649e03 2134
b457acc7 2135echo "$as_me:2135: checking for $CC option to accept ANSI C" >&5
10891472 2136echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2137if test "${ac_cv_prog_cc_stdc+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2139else
10891472 2140 ac_cv_prog_cc_stdc=no
2141ac_save_CC=$CC
2142cat >conftest.$ac_ext <<_ACEOF
b457acc7 2143#line 2143 "configure"
f6649e03 2144#include "confdefs.h"
10891472 2145#include <stdarg.h>
2146#include <stdio.h>
2147#include <sys/types.h>
2148#include <sys/stat.h>
2149/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2150struct buf { int x; };
2151FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152static char *e (p, i)
2153 char **p;
2154 int i;
2155{
2156 return p[i];
f6649e03 2157}
10891472 2158static char *f (char * (*g) (char **, int), char **p, ...)
2159{
2160 char *s;
2161 va_list v;
2162 va_start (v,p);
2163 s = g (p, va_arg (v,int));
2164 va_end (v);
2165 return s;
f6649e03 2166}
10891472 2167int test (int i, double x);
2168struct s1 {int (*f) (int a);};
2169struct s2 {int (*f) (double a);};
2170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171int argc;
2172char **argv;
10891472 2173int
2174main ()
2175{
2176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 ;
2178 return 0;
f6649e03 2179}
10891472 2180_ACEOF
2181# Don't try gcc -ansi; that turns off useful extensions and
2182# breaks some systems' header files.
2183# AIX -qlanglvl=ansi
2184# Ultrix and OSF/1 -std1
2185# HP-UX 10.20 and later -Ae
2186# HP-UX older versions -Aa -D_HPUX_SOURCE
2187# SVR4 -Xc -D__EXTENSIONS__
2188for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189do
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
b457acc7 2192if { (eval echo "$as_me:2192: \"$ac_compile\"") >&5
10891472 2193 (eval $ac_compile) 2>&5
2194 ac_status=$?
b457acc7 2195 echo "$as_me:2195: \$? = $ac_status" >&5
10891472 2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
b457acc7 2198 { (eval echo "$as_me:2198: \"$ac_try\"") >&5
10891472 2199 (eval $ac_try) 2>&5
2200 ac_status=$?
b457acc7 2201 echo "$as_me:2201: \$? = $ac_status" >&5
10891472 2202 (exit $ac_status); }; }; then
2203 ac_cv_prog_cc_stdc=$ac_arg
2204break
2205else
2206 echo "$as_me: failed program was:" >&5
2207cat conftest.$ac_ext >&5
2208fi
2209rm -f conftest.$ac_objext
2210done
2211rm -f conftest.$ac_ext conftest.$ac_objext
2212CC=$ac_save_CC
2213
2214fi
2215
2216case "x$ac_cv_prog_cc_stdc" in
2217 x|xno)
b457acc7 2218 echo "$as_me:2218: result: none needed" >&5
10891472 2219echo "${ECHO_T}none needed" >&6 ;;
2220 *)
b457acc7 2221 echo "$as_me:2221: result: $ac_cv_prog_cc_stdc" >&5
10891472 2222echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2223 CC="$CC $ac_cv_prog_cc_stdc" ;;
2224esac
2225
b457acc7 2226echo "$as_me:2226: checking for an ANSI C-conforming const" >&5
10891472 2227echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2228if test "${ac_cv_c_const+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2232#line 2232 "configure"
10891472 2233#include "confdefs.h"
2234
10891472 2235int
2236main ()
2237{
2238/* FIXME: Include the comments suggested by Paul. */
2239#ifndef __cplusplus
2240 /* Ultrix mips cc rejects this. */
2241 typedef int charset[2];
2242 const charset x;
2243 /* SunOS 4.1.1 cc rejects this. */
2244 char const *const *ccp;
2245 char **p;
2246 /* NEC SVR4.0.2 mips cc rejects this. */
2247 struct point {int x, y;};
2248 static struct point const zero = {0,0};
2249 /* AIX XL C 1.02.0.0 rejects this.
2250 It does not let you subtract one const X* pointer from another in
2251 an arm of an if-expression whose if-part is not a constant
2252 expression */
2253 const char *g = "string";
2254 ccp = &g + (g ? g-g : 0);
2255 /* HPUX 7.0 cc rejects these. */
2256 ++ccp;
2257 p = (char**) ccp;
2258 ccp = (char const *const *) p;
2259 { /* SCO 3.2v4 cc rejects this. */
2260 char *t;
2261 char const *s = 0 ? (char *) 0 : (char const *) 0;
2262
2263 *t++ = 0;
2264 }
2265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2266 int x[] = {25, 17};
2267 const int *foo = &x[0];
2268 ++foo;
2269 }
2270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2271 typedef const int *iptr;
2272 iptr p = 0;
2273 ++p;
2274 }
2275 { /* AIX XL C 1.02.0.0 rejects this saying
2276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2277 struct s { int j; const int *ap[3]; };
2278 struct s *b; b->j = 5;
2279 }
2280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2281 const int foo = 10;
2282 }
2283#endif
f6649e03 2284
10891472 2285 ;
2286 return 0;
2287}
2288_ACEOF
2289rm -f conftest.$ac_objext
b457acc7 2290if { (eval echo "$as_me:2290: \"$ac_compile\"") >&5
10891472 2291 (eval $ac_compile) 2>&5
2292 ac_status=$?
b457acc7 2293 echo "$as_me:2293: \$? = $ac_status" >&5
10891472 2294 (exit $ac_status); } &&
2295 { ac_try='test -s conftest.$ac_objext'
b457acc7 2296 { (eval echo "$as_me:2296: \"$ac_try\"") >&5
10891472 2297 (eval $ac_try) 2>&5
2298 ac_status=$?
b457acc7 2299 echo "$as_me:2299: \$? = $ac_status" >&5
10891472 2300 (exit $ac_status); }; }; then
f6649e03 2301 ac_cv_c_const=yes
2302else
10891472 2303 echo "$as_me: failed program was:" >&5
2304cat conftest.$ac_ext >&5
2305ac_cv_c_const=no
f6649e03 2306fi
10891472 2307rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 2308fi
b457acc7 2309echo "$as_me:2309: result: $ac_cv_c_const" >&5
10891472 2310echo "${ECHO_T}$ac_cv_c_const" >&6
f6649e03 2311if test $ac_cv_c_const = no; then
10891472 2312
b457acc7 2313cat >>confdefs.h <<\EOF
10891472 2314#define const
b457acc7 2315EOF
2316
2317fi
2318
2319# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2320
2321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2322 inttypes.h stdint.h unistd.h
2323do
2324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2325echo "$as_me:2325: checking for $ac_header" >&5
2326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2327if eval "test \"\${$as_ac_Header+set}\" = set"; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330 cat >conftest.$ac_ext <<_ACEOF
2331#line 2331 "configure"
2332#include "confdefs.h"
2333$ac_includes_default
2334#include <$ac_header>
10891472 2335_ACEOF
b457acc7 2336rm -f conftest.$ac_objext
2337if { (eval echo "$as_me:2337: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>&5
2339 ac_status=$?
2340 echo "$as_me:2340: \$? = $ac_status" >&5
2341 (exit $ac_status); } &&
2342 { ac_try='test -s conftest.$ac_objext'
2343 { (eval echo "$as_me:2343: \"$ac_try\"") >&5
2344 (eval $ac_try) 2>&5
2345 ac_status=$?
2346 echo "$as_me:2346: \$? = $ac_status" >&5
2347 (exit $ac_status); }; }; then
2348 eval "$as_ac_Header=yes"
2349else
2350 echo "$as_me: failed program was:" >&5
2351cat conftest.$ac_ext >&5
2352eval "$as_ac_Header=no"
2353fi
2354rm -f conftest.$ac_objext conftest.$ac_ext
2355fi
2356echo "$as_me:2356: result: `eval echo '${'$as_ac_Header'}'`" >&5
2357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2358if test `eval echo '${'$as_ac_Header'}'` = yes; then
2359 cat >>confdefs.h <<EOF
2360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2361EOF
f6649e03 2362
2363fi
b457acc7 2364done
f6649e03 2365
b457acc7 2366echo "$as_me:2366: checking for size_t" >&5
10891472 2367echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2368if test "${ac_cv_type_size_t+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2370else
10891472 2371 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2372#line 2372 "configure"
f6649e03 2373#include "confdefs.h"
10891472 2374$ac_includes_default
10891472 2375int
2376main ()
2377{
2378if ((size_t *) 0)
2379 return 0;
2380if (sizeof (size_t))
2381 return 0;
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
b457acc7 2387if { (eval echo "$as_me:2387: \"$ac_compile\"") >&5
10891472 2388 (eval $ac_compile) 2>&5
2389 ac_status=$?
b457acc7 2390 echo "$as_me:2390: \$? = $ac_status" >&5
10891472 2391 (exit $ac_status); } &&
2392 { ac_try='test -s conftest.$ac_objext'
b457acc7 2393 { (eval echo "$as_me:2393: \"$ac_try\"") >&5
10891472 2394 (eval $ac_try) 2>&5
2395 ac_status=$?
b457acc7 2396 echo "$as_me:2396: \$? = $ac_status" >&5
10891472 2397 (exit $ac_status); }; }; then
f6649e03 2398 ac_cv_type_size_t=yes
2399else
10891472 2400 echo "$as_me: failed program was:" >&5
2401cat conftest.$ac_ext >&5
2402ac_cv_type_size_t=no
f6649e03 2403fi
10891472 2404rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 2405fi
b457acc7 2406echo "$as_me:2406: result: $ac_cv_type_size_t" >&5
10891472 2407echo "${ECHO_T}$ac_cv_type_size_t" >&6
2408if test $ac_cv_type_size_t = yes; then
2409 :
2410else
2411
b457acc7 2412cat >>confdefs.h <<EOF
f6649e03 2413#define size_t unsigned
b457acc7 2414EOF
f6649e03 2415
2416fi
2417
b457acc7 2418echo "$as_me:2418: checking whether time.h and sys/time.h may both be included" >&5
10891472 2419echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2420if test "${ac_cv_header_time+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2422else
10891472 2423 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2424#line 2424 "configure"
f6649e03 2425#include "confdefs.h"
2426#include <sys/types.h>
2427#include <sys/time.h>
2428#include <time.h>
10891472 2429
10891472 2430int
2431main ()
2432{
2433if ((struct tm *) 0)
2434return 0;
2435 ;
2436 return 0;
2437}
2438_ACEOF
2439rm -f conftest.$ac_objext
b457acc7 2440if { (eval echo "$as_me:2440: \"$ac_compile\"") >&5
10891472 2441 (eval $ac_compile) 2>&5
2442 ac_status=$?
b457acc7 2443 echo "$as_me:2443: \$? = $ac_status" >&5
10891472 2444 (exit $ac_status); } &&
2445 { ac_try='test -s conftest.$ac_objext'
b457acc7 2446 { (eval echo "$as_me:2446: \"$ac_try\"") >&5
10891472 2447 (eval $ac_try) 2>&5
2448 ac_status=$?
b457acc7 2449 echo "$as_me:2449: \$? = $ac_status" >&5
10891472 2450 (exit $ac_status); }; }; then
f6649e03 2451 ac_cv_header_time=yes
2452else
10891472 2453 echo "$as_me: failed program was:" >&5
2454cat conftest.$ac_ext >&5
2455ac_cv_header_time=no
f6649e03 2456fi
10891472 2457rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 2458fi
b457acc7 2459echo "$as_me:2459: result: $ac_cv_header_time" >&5
10891472 2460echo "${ECHO_T}$ac_cv_header_time" >&6
f6649e03 2461if test $ac_cv_header_time = yes; then
10891472 2462
b457acc7 2463cat >>confdefs.h <<\EOF
f6649e03 2464#define TIME_WITH_SYS_TIME 1
b457acc7 2465EOF
f6649e03 2466
2467fi
2468
b457acc7 2469echo "$as_me:2469: checking whether struct tm is in sys/time.h or time.h" >&5
10891472 2470echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
2471if test "${ac_cv_struct_tm+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2473else
10891472 2474 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2475#line 2475 "configure"
f6649e03 2476#include "confdefs.h"
2477#include <sys/types.h>
2478#include <time.h>
10891472 2479
10891472 2480int
2481main ()
2482{
f6649e03 2483struct tm *tp; tp->tm_sec;
10891472 2484 ;
2485 return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
b457acc7 2489if { (eval echo "$as_me:2489: \"$ac_compile\"") >&5
10891472 2490 (eval $ac_compile) 2>&5
2491 ac_status=$?
b457acc7 2492 echo "$as_me:2492: \$? = $ac_status" >&5
10891472 2493 (exit $ac_status); } &&
2494 { ac_try='test -s conftest.$ac_objext'
b457acc7 2495 { (eval echo "$as_me:2495: \"$ac_try\"") >&5
10891472 2496 (eval $ac_try) 2>&5
2497 ac_status=$?
b457acc7 2498 echo "$as_me:2498: \$? = $ac_status" >&5
10891472 2499 (exit $ac_status); }; }; then
f6649e03 2500 ac_cv_struct_tm=time.h
2501else
10891472 2502 echo "$as_me: failed program was:" >&5
2503cat conftest.$ac_ext >&5
2504ac_cv_struct_tm=sys/time.h
f6649e03 2505fi
10891472 2506rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 2507fi
b457acc7 2508echo "$as_me:2508: result: $ac_cv_struct_tm" >&5
10891472 2509echo "${ECHO_T}$ac_cv_struct_tm" >&6
f6649e03 2510if test $ac_cv_struct_tm = sys/time.h; then
10891472 2511
b457acc7 2512cat >>confdefs.h <<\EOF
f6649e03 2513#define TM_IN_SYS_TIME 1
b457acc7 2514EOF
f6649e03 2515
2516fi
2517
b457acc7 2518echo "$as_me:2518: checking return type of signal handlers" >&5
10891472 2519echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2520if test "${ac_cv_type_signal+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2522else
10891472 2523 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2524#line 2524 "configure"
f6649e03 2525#include "confdefs.h"
2526#include <sys/types.h>
2527#include <signal.h>
2528#ifdef signal
10891472 2529# undef signal
f6649e03 2530#endif
2531#ifdef __cplusplus
2532extern "C" void (*signal (int, void (*)(int)))(int);
2533#else
2534void (*signal ()) ();
2535#endif
2536
10891472 2537int
2538main ()
2539{
f6649e03 2540int i;
10891472 2541 ;
2542 return 0;
2543}
2544_ACEOF
2545rm -f conftest.$ac_objext
b457acc7 2546if { (eval echo "$as_me:2546: \"$ac_compile\"") >&5
10891472 2547 (eval $ac_compile) 2>&5
2548 ac_status=$?
b457acc7 2549 echo "$as_me:2549: \$? = $ac_status" >&5
10891472 2550 (exit $ac_status); } &&
2551 { ac_try='test -s conftest.$ac_objext'
b457acc7 2552 { (eval echo "$as_me:2552: \"$ac_try\"") >&5
10891472 2553 (eval $ac_try) 2>&5
2554 ac_status=$?
b457acc7 2555 echo "$as_me:2555: \$? = $ac_status" >&5
10891472 2556 (exit $ac_status); }; }; then
f6649e03 2557 ac_cv_type_signal=void
2558else
10891472 2559 echo "$as_me: failed program was:" >&5
2560cat conftest.$ac_ext >&5
2561ac_cv_type_signal=int
f6649e03 2562fi
10891472 2563rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 2564fi
b457acc7 2565echo "$as_me:2565: result: $ac_cv_type_signal" >&5
10891472 2566echo "${ECHO_T}$ac_cv_type_signal" >&6
f6649e03 2567
b457acc7 2568cat >>confdefs.h <<EOF
f6649e03 2569#define RETSIGTYPE $ac_cv_type_signal
b457acc7 2570EOF
f6649e03 2571
10891472 2572for ac_func in strftime
2573do
2574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b457acc7 2575echo "$as_me:2575: checking for $ac_func" >&5
10891472 2576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2577if eval "test \"\${$as_ac_var+set}\" = set"; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2579else
10891472 2580 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2581#line 2581 "configure"
f6649e03 2582#include "confdefs.h"
2583/* System header to define __stub macros and hopefully few prototypes,
10891472 2584 which can conflict with char $ac_func (); below. */
f6649e03 2585#include <assert.h>
2586/* Override any gcc2 internal prototype to avoid an error. */
10891472 2587#ifdef __cplusplus
2588extern "C"
2589#endif
f6649e03 2590/* We use char because int might match the return type of a gcc2
10891472 2591 builtin and then its argument prototype would still apply. */
2592char $ac_func ();
2593char (*f) ();
2594
10891472 2595int
2596main ()
2597{
f6649e03 2598/* The GNU C library defines this for functions which it implements
2599 to always fail with ENOSYS. Some functions are actually named
2600 something starting with __ and the normal name is an alias. */
10891472 2601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f6649e03 2602choke me
2603#else
10891472 2604f = $ac_func;
f6649e03 2605#endif
2606
10891472 2607 ;
2608 return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext conftest$ac_exeext
b457acc7 2612if { (eval echo "$as_me:2612: \"$ac_link\"") >&5
10891472 2613 (eval $ac_link) 2>&5
2614 ac_status=$?
b457acc7 2615 echo "$as_me:2615: \$? = $ac_status" >&5
10891472 2616 (exit $ac_status); } &&
2617 { ac_try='test -s conftest$ac_exeext'
b457acc7 2618 { (eval echo "$as_me:2618: \"$ac_try\"") >&5
10891472 2619 (eval $ac_try) 2>&5
2620 ac_status=$?
b457acc7 2621 echo "$as_me:2621: \$? = $ac_status" >&5
10891472 2622 (exit $ac_status); }; }; then
2623 eval "$as_ac_var=yes"
f6649e03 2624else
10891472 2625 echo "$as_me: failed program was:" >&5
2626cat conftest.$ac_ext >&5
2627eval "$as_ac_var=no"
f6649e03 2628fi
10891472 2629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f6649e03 2630fi
b457acc7 2631echo "$as_me:2631: result: `eval echo '${'$as_ac_var'}'`" >&5
10891472 2632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2633if test `eval echo '${'$as_ac_var'}'` = yes; then
b457acc7 2634 cat >>confdefs.h <<EOF
10891472 2635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
b457acc7 2636EOF
f6649e03 2637
2638else
10891472 2639 # strftime is in -lintl on SCO UNIX.
b457acc7 2640echo "$as_me:2640: checking for strftime in -lintl" >&5
10891472 2641echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
2642if test "${ac_cv_lib_intl_strftime+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2644else
10891472 2645 ac_check_lib_save_LIBS=$LIBS
f6649e03 2646LIBS="-lintl $LIBS"
10891472 2647cat >conftest.$ac_ext <<_ACEOF
b457acc7 2648#line 2648 "configure"
f6649e03 2649#include "confdefs.h"
10891472 2650
f6649e03 2651/* Override any gcc2 internal prototype to avoid an error. */
10891472 2652#ifdef __cplusplus
2653extern "C"
2654#endif
f6649e03 2655/* We use char because int might match the return type of a gcc2
10891472 2656 builtin and then its argument prototype would still apply. */
2657char strftime ();
10891472 2658int
2659main ()
2660{
2661strftime ();
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext conftest$ac_exeext
b457acc7 2667if { (eval echo "$as_me:2667: \"$ac_link\"") >&5
10891472 2668 (eval $ac_link) 2>&5
2669 ac_status=$?
b457acc7 2670 echo "$as_me:2670: \$? = $ac_status" >&5
10891472 2671 (exit $ac_status); } &&
2672 { ac_try='test -s conftest$ac_exeext'
b457acc7 2673 { (eval echo "$as_me:2673: \"$ac_try\"") >&5
10891472 2674 (eval $ac_try) 2>&5
2675 ac_status=$?
b457acc7 2676 echo "$as_me:2676: \$? = $ac_status" >&5
10891472 2677 (exit $ac_status); }; }; then
2678 ac_cv_lib_intl_strftime=yes
2679else
2680 echo "$as_me: failed program was:" >&5
2681cat conftest.$ac_ext >&5
2682ac_cv_lib_intl_strftime=no
f6649e03 2683fi
10891472 2684rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2685LIBS=$ac_check_lib_save_LIBS
f6649e03 2686fi
b457acc7 2687echo "$as_me:2687: result: $ac_cv_lib_intl_strftime" >&5
10891472 2688echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
2689if test $ac_cv_lib_intl_strftime = yes; then
b457acc7 2690 cat >>confdefs.h <<\EOF
f6649e03 2691#define HAVE_STRFTIME 1
b457acc7 2692EOF
f6649e03 2693
2694LIBS="-lintl $LIBS"
f6649e03 2695fi
2696
2697fi
10891472 2698done
5bd052df 2699
2700if test "$with_select" = "yes" || test "$have_sys_poll_h" = "no"; then
10891472 2701
2702for ac_func in select
5bd052df 2703do
10891472 2704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b457acc7 2705echo "$as_me:2705: checking for $ac_func" >&5
10891472 2706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2707if eval "test \"\${$as_ac_var+set}\" = set"; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
5bd052df 2709else
10891472 2710 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2711#line 2711 "configure"
5bd052df 2712#include "confdefs.h"
2713/* System header to define __stub macros and hopefully few prototypes,
10891472 2714 which can conflict with char $ac_func (); below. */
5bd052df 2715#include <assert.h>
2716/* Override any gcc2 internal prototype to avoid an error. */
10891472 2717#ifdef __cplusplus
2718extern "C"
2719#endif
5bd052df 2720/* We use char because int might match the return type of a gcc2
10891472 2721 builtin and then its argument prototype would still apply. */
2722char $ac_func ();
2723char (*f) ();
2724
10891472 2725int
2726main ()
2727{
5bd052df 2728/* The GNU C library defines this for functions which it implements
2729 to always fail with ENOSYS. Some functions are actually named
2730 something starting with __ and the normal name is an alias. */
2731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2732choke me
2733#else
10891472 2734f = $ac_func;
5bd052df 2735#endif
2736
10891472 2737 ;
2738 return 0;
2739}
2740_ACEOF
2741rm -f conftest.$ac_objext conftest$ac_exeext
b457acc7 2742if { (eval echo "$as_me:2742: \"$ac_link\"") >&5
10891472 2743 (eval $ac_link) 2>&5
2744 ac_status=$?
b457acc7 2745 echo "$as_me:2745: \$? = $ac_status" >&5
10891472 2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest$ac_exeext'
b457acc7 2748 { (eval echo "$as_me:2748: \"$ac_try\"") >&5
10891472 2749 (eval $ac_try) 2>&5
2750 ac_status=$?
b457acc7 2751 echo "$as_me:2751: \$? = $ac_status" >&5
10891472 2752 (exit $ac_status); }; }; then
2753 eval "$as_ac_var=yes"
5bd052df 2754else
10891472 2755 echo "$as_me: failed program was:" >&5
2756cat conftest.$ac_ext >&5
2757eval "$as_ac_var=no"
5bd052df 2758fi
10891472 2759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5bd052df 2760fi
b457acc7 2761echo "$as_me:2761: result: `eval echo '${'$as_ac_var'}'`" >&5
10891472 2762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2763if test `eval echo '${'$as_ac_var'}'` = yes; then
b457acc7 2764 cat >>confdefs.h <<EOF
10891472 2765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
b457acc7 2766EOF
5bd052df 2767 have_select=yes
2768else
10891472 2769 have_select=no
5bd052df 2770fi
2771done
2772
2773 if test "$have_select" = "no"; then
b457acc7 2774 { { echo "$as_me:2774: error: No select() implementation found" >&5
10891472 2775echo "$as_me: error: No select() implementation found" >&2;}
2776 { (exit 1); exit 1; }; }
5bd052df 2777 fi
2778fi
2779
23b298fa 2780for ac_func in inet_aton socket strdup strstr
f6649e03 2781do
10891472 2782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b457acc7 2783echo "$as_me:2783: checking for $ac_func" >&5
10891472 2784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2785if eval "test \"\${$as_ac_var+set}\" = set"; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2787else
10891472 2788 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2789#line 2789 "configure"
f6649e03 2790#include "confdefs.h"
2791/* System header to define __stub macros and hopefully few prototypes,
10891472 2792 which can conflict with char $ac_func (); below. */
f6649e03 2793#include <assert.h>
2794/* Override any gcc2 internal prototype to avoid an error. */
10891472 2795#ifdef __cplusplus
2796extern "C"
2797#endif
f6649e03 2798/* We use char because int might match the return type of a gcc2
10891472 2799 builtin and then its argument prototype would still apply. */
2800char $ac_func ();
2801char (*f) ();
2802
10891472 2803int
2804main ()
2805{
f6649e03 2806/* The GNU C library defines this for functions which it implements
2807 to always fail with ENOSYS. Some functions are actually named
2808 something starting with __ and the normal name is an alias. */
2809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2810choke me
2811#else
10891472 2812f = $ac_func;
f6649e03 2813#endif
2814
10891472 2815 ;
2816 return 0;
2817}
2818_ACEOF
2819rm -f conftest.$ac_objext conftest$ac_exeext
b457acc7 2820if { (eval echo "$as_me:2820: \"$ac_link\"") >&5
10891472 2821 (eval $ac_link) 2>&5
2822 ac_status=$?
b457acc7 2823 echo "$as_me:2823: \$? = $ac_status" >&5
10891472 2824 (exit $ac_status); } &&
2825 { ac_try='test -s conftest$ac_exeext'
b457acc7 2826 { (eval echo "$as_me:2826: \"$ac_try\"") >&5
10891472 2827 (eval $ac_try) 2>&5
2828 ac_status=$?
b457acc7 2829 echo "$as_me:2829: \$? = $ac_status" >&5
10891472 2830 (exit $ac_status); }; }; then
2831 eval "$as_ac_var=yes"
f6649e03 2832else
10891472 2833 echo "$as_me: failed program was:" >&5
2834cat conftest.$ac_ext >&5
2835eval "$as_ac_var=no"
f6649e03 2836fi
10891472 2837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f6649e03 2838fi
b457acc7 2839echo "$as_me:2839: result: `eval echo '${'$as_ac_var'}'`" >&5
10891472 2840echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2841if test `eval echo '${'$as_ac_var'}'` = yes; then
b457acc7 2842 cat >>confdefs.h <<EOF
10891472 2843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
b457acc7 2844EOF
f6649e03 2845
f6649e03 2846fi
2847done
2848
b457acc7 2849echo "$as_me:2849: checking whether byte ordering is bigendian" >&5
10891472 2850echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2851if test "${ac_cv_c_bigendian+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
1122cc60 2853else
b457acc7 2854 ac_cv_c_bigendian=unknown
2855# See if sys/param.h defines the BYTE_ORDER macro.
10891472 2856cat >conftest.$ac_ext <<_ACEOF
b457acc7 2857#line 2857 "configure"
1122cc60 2858#include "confdefs.h"
2859#include <sys/types.h>
2860#include <sys/param.h>
1122cc60 2861
10891472 2862int
2863main ()
2864{
1122cc60 2865#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2866 bogus endian macros
2867#endif
10891472 2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873rm -f conftest.$ac_objext
b457acc7 2874if { (eval echo "$as_me:2874: \"$ac_compile\"") >&5
10891472 2875 (eval $ac_compile) 2>&5
2876 ac_status=$?
b457acc7 2877 echo "$as_me:2877: \$? = $ac_status" >&5
10891472 2878 (exit $ac_status); } &&
2879 { ac_try='test -s conftest.$ac_objext'
b457acc7 2880 { (eval echo "$as_me:2880: \"$ac_try\"") >&5
10891472 2881 (eval $ac_try) 2>&5
2882 ac_status=$?
b457acc7 2883 echo "$as_me:2883: \$? = $ac_status" >&5
10891472 2884 (exit $ac_status); }; }; then
1122cc60 2885 # It does; now see whether it defined to BIG_ENDIAN or not.
10891472 2886cat >conftest.$ac_ext <<_ACEOF
b457acc7 2887#line 2887 "configure"
1122cc60 2888#include "confdefs.h"
2889#include <sys/types.h>
2890#include <sys/param.h>
1122cc60 2891
10891472 2892int
2893main ()
2894{
1122cc60 2895#if BYTE_ORDER != BIG_ENDIAN
2896 not big endian
2897#endif
10891472 2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext
b457acc7 2904if { (eval echo "$as_me:2904: \"$ac_compile\"") >&5
10891472 2905 (eval $ac_compile) 2>&5
2906 ac_status=$?
b457acc7 2907 echo "$as_me:2907: \$? = $ac_status" >&5
10891472 2908 (exit $ac_status); } &&
2909 { ac_try='test -s conftest.$ac_objext'
b457acc7 2910 { (eval echo "$as_me:2910: \"$ac_try\"") >&5
10891472 2911 (eval $ac_try) 2>&5
2912 ac_status=$?
b457acc7 2913 echo "$as_me:2913: \$? = $ac_status" >&5
10891472 2914 (exit $ac_status); }; }; then
1122cc60 2915 ac_cv_c_bigendian=yes
2916else
10891472 2917 echo "$as_me: failed program was:" >&5
2918cat conftest.$ac_ext >&5
2919ac_cv_c_bigendian=no
1122cc60 2920fi
10891472 2921rm -f conftest.$ac_objext conftest.$ac_ext
1122cc60 2922else
10891472 2923 echo "$as_me: failed program was:" >&5
2924cat conftest.$ac_ext >&5
10891472 2925fi
2926rm -f conftest.$ac_objext conftest.$ac_ext
b457acc7 2927if test $ac_cv_c_bigendian = unknown; then
2928if test "$cross_compiling" = yes; then
2929 { { echo "$as_me:2929: error: cannot run test program while cross compiling" >&5
2930echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2931 { (exit 1); exit 1; }; }
1122cc60 2932else
10891472 2933 cat >conftest.$ac_ext <<_ACEOF
b457acc7 2934#line 2934 "configure"
1122cc60 2935#include "confdefs.h"
10891472 2936int
2937main ()
2938{
1122cc60 2939 /* Are we little or big endian? From Harbison&Steele. */
2940 union
2941 {
2942 long l;
2943 char c[sizeof (long)];
2944 } u;
2945 u.l = 1;
2946 exit (u.c[sizeof (long) - 1] == 1);
2947}
10891472 2948_ACEOF
2949rm -f conftest$ac_exeext
b457acc7 2950if { (eval echo "$as_me:2950: \"$ac_link\"") >&5
10891472 2951 (eval $ac_link) 2>&5
2952 ac_status=$?
b457acc7 2953 echo "$as_me:2953: \$? = $ac_status" >&5
10891472 2954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b457acc7 2955 { (eval echo "$as_me:2955: \"$ac_try\"") >&5
10891472 2956 (eval $ac_try) 2>&5
2957 ac_status=$?
b457acc7 2958 echo "$as_me:2958: \$? = $ac_status" >&5
10891472 2959 (exit $ac_status); }; }; then
1122cc60 2960 ac_cv_c_bigendian=no
2961else
10891472 2962 echo "$as_me: program exited with status $ac_status" >&5
2963echo "$as_me: failed program was:" >&5
2964cat conftest.$ac_ext >&5
10891472 2965ac_cv_c_bigendian=yes
1122cc60 2966fi
10891472 2967rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1122cc60 2968fi
1122cc60 2969fi
2970fi
b457acc7 2971echo "$as_me:2971: result: $ac_cv_c_bigendian" >&5
10891472 2972echo "${ECHO_T}$ac_cv_c_bigendian" >&6
b457acc7 2973if test $ac_cv_c_bigendian = yes; then
1122cc60 2974
b457acc7 2975cat >>confdefs.h <<\EOF
1122cc60 2976#define WORDS_BIGENDIAN 1
b457acc7 2977EOF
2978
2979fi
1122cc60 2980
6be205c9 2981echo "$as_me:2981: checking for socket in -lsocket" >&5
2982echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2983if test "${ac_cv_lib_socket_socket+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986 ac_check_lib_save_LIBS=$LIBS
2987LIBS="-lsocket $LIBS"
2988cat >conftest.$ac_ext <<_ACEOF
2989#line 2989 "configure"
2990#include "confdefs.h"
2991
2992/* Override any gcc2 internal prototype to avoid an error. */
2993#ifdef __cplusplus
2994extern "C"
2995#endif
2996/* We use char because int might match the return type of a gcc2
2997 builtin and then its argument prototype would still apply. */
2998char socket ();
2999int
3000main ()
3001{
3002socket ();
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007rm -f conftest.$ac_objext conftest$ac_exeext
3008if { (eval echo "$as_me:3008: \"$ac_link\"") >&5
3009 (eval $ac_link) 2>&5
3010 ac_status=$?
3011 echo "$as_me:3011: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -s conftest$ac_exeext'
3014 { (eval echo "$as_me:3014: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:3017: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 ac_cv_lib_socket_socket=yes
3020else
3021 echo "$as_me: failed program was:" >&5
3022cat conftest.$ac_ext >&5
3023ac_cv_lib_socket_socket=no
3024fi
3025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3026LIBS=$ac_check_lib_save_LIBS
3027fi
3028echo "$as_me:3028: result: $ac_cv_lib_socket_socket" >&5
3029echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3030if test $ac_cv_lib_socket_socket = yes; then
3031 LSOCKET=-lsocket
3032
3033fi
3034
3035echo "$as_me:3035: checking for gethostbyname in -lnsl" >&5
3036echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3037if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039else
3040 ac_check_lib_save_LIBS=$LIBS
3041LIBS="-lnsl $LIBS"
3042cat >conftest.$ac_ext <<_ACEOF
3043#line 3043 "configure"
3044#include "confdefs.h"
3045
3046/* Override any gcc2 internal prototype to avoid an error. */
3047#ifdef __cplusplus
3048extern "C"
3049#endif
3050/* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3052char gethostbyname ();
3053int
3054main ()
3055{
3056gethostbyname ();
3057 ;
3058 return 0;
3059}
3060_ACEOF
3061rm -f conftest.$ac_objext conftest$ac_exeext
3062if { (eval echo "$as_me:3062: \"$ac_link\"") >&5
3063 (eval $ac_link) 2>&5
3064 ac_status=$?
3065 echo "$as_me:3065: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -s conftest$ac_exeext'
3068 { (eval echo "$as_me:3068: \"$ac_try\"") >&5
3069 (eval $ac_try) 2>&5
3070 ac_status=$?
3071 echo "$as_me:3071: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3073 ac_cv_lib_nsl_gethostbyname=yes
3074else
3075 echo "$as_me: failed program was:" >&5
3076cat conftest.$ac_ext >&5
3077ac_cv_lib_nsl_gethostbyname=no
3078fi
3079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3080LIBS=$ac_check_lib_save_LIBS
3081fi
3082echo "$as_me:3082: result: $ac_cv_lib_nsl_gethostbyname" >&5
3083echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3084if test $ac_cv_lib_nsl_gethostbyname = yes; then
3085 LNSL=-lnsl
3086
3087fi
3088
c8b56db0 3089echo $ECHO_N "checking for POSIX-compliant goat $ECHO_C"
580e6f7d 3090for bleh in 1 2 3; do
13579374 3091 echo $ECHO_N ".\a"
580e6f7d 3092 sleep 1
3093done
6be205c9 3094echo "$as_me:3094: result: http://www.blitzed.org/goat_winter_2001.phtml" >&5
10891472 3095echo "${ECHO_T} http://www.blitzed.org/goat_winter_2001.phtml" >&6
5bd052df 3096
10891472 3097ac_config_files="$ac_config_files Makefile"
3098cat >confcache <<\_ACEOF
f6649e03 3099# This file is a shell script that caches the results of configure
3100# tests run on this system so they can be shared between configure
10891472 3101# scripts and configure runs, see configure's option --config-cache.
3102# It is not useful on other systems. If it contains results you don't
3103# want to keep, you may remove or edit it.
f6649e03 3104#
10891472 3105# config.status only pays attention to the cache file if you give it
3106# the --recheck option to rerun configure.
f6649e03 3107#
10891472 3108# `ac_cv_env_foo' variables (set or unset) will be overriden when
3109# loading this file, other *unset* `ac_cv_foo' will be assigned the
3110# following values.
3111
3112_ACEOF
3113
f6649e03 3114# The following way of writing the cache mishandles newlines in values,
3115# but we know of no workaround that is simple, portable, and efficient.
3116# So, don't put newlines in cache variables' values.
3117# Ultrix sh set writes to stderr and can't be redirected directly,
3118# and sets the high bit in the cache file unless we assign to the vars.
10891472 3119{
3120 (set) 2>&1 |
3121 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3122 *ac_space=\ *)
3123 # `set' does not quote correctly, so add quotes (double-quote
3124 # substitution turns \\\\ into \\, and sed turns \\ into \).
3125 sed -n \
3126 "s/'/'\\\\''/g;
3127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3128 ;;
3129 *)
3130 # `set' quotes correctly as required by POSIX, so do not add quotes.
3131 sed -n \
3132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3133 ;;
3134 esac;
3135} |
3136 sed '
3137 t clear
3138 : clear
3139 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3140 t end
3141 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3142 : end' >>confcache
3143if cmp -s $cache_file confcache; then :; else
f6649e03 3144 if test -w $cache_file; then
10891472 3145 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3146 cat confcache >$cache_file
f6649e03 3147 else
3148 echo "not updating unwritable cache $cache_file"
3149 fi
3150fi
3151rm -f confcache
3152
f6649e03 3153test "x$prefix" = xNONE && prefix=$ac_default_prefix
3154# Let make expand exec_prefix.
3155test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3156
10891472 3157# VPATH may cause trouble with some makes, so we remove $(srcdir),
3158# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3159# trailing colons and then remove the whole line if VPATH becomes empty
3160# (actually we leave an empty line to preserve line numbers).
f6649e03 3161if test "x$srcdir" = x.; then
10891472 3162 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3163s/:*\$(srcdir):*/:/;
3164s/:*\${srcdir}:*/:/;
3165s/:*@srcdir@:*/:/;
3166s/^\([^=]*=[ ]*\):*/\1/;
3167s/:*$//;
3168s/^[^=]*=[ ]*$//;
3169}'
f6649e03 3170fi
3171
f6649e03 3172DEFS=-DHAVE_CONFIG_H
3173
f6649e03 3174: ${CONFIG_STATUS=./config.status}
10891472 3175ac_clean_files_save=$ac_clean_files
3176ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6be205c9 3177{ echo "$as_me:3177: creating $CONFIG_STATUS" >&5
10891472 3178echo "$as_me: creating $CONFIG_STATUS" >&6;}
3179cat >$CONFIG_STATUS <<_ACEOF
3180#! $SHELL
b457acc7 3181# Generated automatically by configure.
f6649e03 3182# Run this file to recreate the current configuration.
f6649e03 3183# Compiler output produced by configure, useful for debugging
10891472 3184# configure, is in config.log if it exists.
f6649e03 3185
10891472 3186debug=false
3187SHELL=\${CONFIG_SHELL-$SHELL}
b457acc7 3188ac_cs_invocation="\$0 \$@"
3189
10891472 3190_ACEOF
3191
3192cat >>$CONFIG_STATUS <<\_ACEOF
10891472 3193# Be Bourne compatible
3194if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3195 emulate sh
3196 NULLCMD=:
3197elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3198 set -o posix
3199fi
3200
10891472 3201# Name of the executable.
b457acc7 3202as_me=`echo "$0" |sed 's,.*[\\/],,'`
f6649e03 3203
10891472 3204if expr a : '\(a\)' >/dev/null 2>&1; then
3205 as_expr=expr
3206else
3207 as_expr=false
3208fi
f6649e03 3209
10891472 3210rm -f conf$$ conf$$.exe conf$$.file
3211echo >conf$$.file
3212if ln -s conf$$.file conf$$ 2>/dev/null; then
3213 # We could just check for DJGPP; but this test a) works b) is more generic
3214 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3215 if test -f conf$$.exe; then
3216 # Don't use ln at all; we don't have any links
3217 as_ln_s='cp -p'
f6649e03 3218 else
10891472 3219 as_ln_s='ln -s'
f6649e03 3220 fi
10891472 3221elif ln conf$$.file conf$$ 2>/dev/null; then
3222 as_ln_s=ln
3223else
3224 as_ln_s='cp -p'
3225fi
3226rm -f conf$$ conf$$.exe conf$$.file
3227
3228as_executable_p="test -f"
3229
b457acc7 3230# Support unset when possible.
3231if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3232 as_unset=unset
3233else
3234 as_unset=false
3235fi
10891472 3236
b457acc7 3237# NLS nuisances.
3238$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3239$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3240$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3241$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3242$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3243$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3244$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3245$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10891472 3246
3247# IFS
3248# We need space, tab and new line, in precisely that order.
3249as_nl='
3250'
3251IFS=" $as_nl"
3252
3253# CDPATH.
b457acc7 3254$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10891472 3255
3256exec 6>&1
3257
10891472 3258_ACEOF
3259
3260# Files that config.status was made for.
3261if test -n "$ac_config_files"; then
3262 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3263fi
3264
3265if test -n "$ac_config_headers"; then
3266 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
f6649e03 3267fi
f6649e03 3268
10891472 3269if test -n "$ac_config_links"; then
3270 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3271fi
f6649e03 3272
10891472 3273if test -n "$ac_config_commands"; then
3274 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3275fi
3276
b457acc7 3277cat >>$CONFIG_STATUS <<\EOF
10891472 3278
3279ac_cs_usage="\
3280\`$as_me' instantiates files from templates according to the
3281current configuration.
3282
3283Usage: $0 [OPTIONS] [FILE]...
3284
3285 -h, --help print this help, then exit
3286 -V, --version print version number, then exit
3287 -d, --debug don't remove temporary files
3288 --recheck update $as_me by reconfiguring in the same conditions
3289 --file=FILE[:TEMPLATE]
3290 instantiate the configuration file FILE
3291 --header=FILE[:TEMPLATE]
3292 instantiate the configuration header FILE
3293
3294Configuration files:
3295$config_files
3296
3297Configuration headers:
3298$config_headers
3299
3300Report bugs to <bug-autoconf@gnu.org>."
b457acc7 3301EOF
10891472 3302
b457acc7 3303cat >>$CONFIG_STATUS <<EOF
10891472 3304ac_cs_version="\\
3305config.status
b457acc7 3306configured by $0, generated by GNU Autoconf 2.52,
10891472 3307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3308
3309Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3310Free Software Foundation, Inc.
3311This config.status script is free software; the Free Software Foundation
3312gives unlimited permission to copy, distribute and modify it."
3313srcdir=$srcdir
b457acc7 3314EOF
10891472 3315
b457acc7 3316cat >>$CONFIG_STATUS <<\EOF
10891472 3317# If no file are specified by the user, then we need to provide default
3318# value. By we need to know if files were specified by the user.
3319ac_need_defaults=:
3320while test $# != 0
3321do
3322 case $1 in
3323 --*=*)
3324 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3325 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3326 shift
3327 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3328 shift
3329 ;;
3330 -*);;
3331 *) # This is not an option, so the user has probably given explicit
3332 # arguments.
3333 ac_need_defaults=false;;
f6649e03 3334 esac
3335
10891472 3336 case $1 in
3337 # Handling of the options.
b457acc7 3338EOF
3339cat >>$CONFIG_STATUS <<EOF
10891472 3340 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3341 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3342 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
b457acc7 3343EOF
3344cat >>$CONFIG_STATUS <<\EOF
10891472 3345 --version | --vers* | -V )
3346 echo "$ac_cs_version"; exit 0 ;;
3347 --he | --h)
3348 # Conflict between --help and --header
6be205c9 3349 { { echo "$as_me:3349: error: ambiguous option: $1
10891472 3350Try \`$0 --help' for more information." >&5
3351echo "$as_me: error: ambiguous option: $1
3352Try \`$0 --help' for more information." >&2;}
3353 { (exit 1); exit 1; }; };;
3354 --help | --hel | -h )
3355 echo "$ac_cs_usage"; exit 0 ;;
3356 --debug | --d* | -d )
3357 debug=: ;;
3358 --file | --fil | --fi | --f )
3359 shift
3360 CONFIG_FILES="$CONFIG_FILES $1"
3361 ac_need_defaults=false;;
3362 --header | --heade | --head | --hea )
3363 shift
3364 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3365 ac_need_defaults=false;;
f6649e03 3366
10891472 3367 # This is an error.
6be205c9 3368 -*) { { echo "$as_me:3368: error: unrecognized option: $1
10891472 3369Try \`$0 --help' for more information." >&5
3370echo "$as_me: error: unrecognized option: $1
3371Try \`$0 --help' for more information." >&2;}
3372 { (exit 1); exit 1; }; } ;;
3373
3374 *) ac_config_targets="$ac_config_targets $1" ;;
f6649e03 3375
f6649e03 3376 esac
10891472 3377 shift
3378done
f6649e03 3379
b457acc7 3380exec 5>>config.log
3381cat >&5 << _ACEOF
3382
3383## ----------------------- ##
3384## Running config.status. ##
3385## ----------------------- ##
3386
3387This file was extended by $as_me 2.52, executed with
3388 CONFIG_FILES = $CONFIG_FILES
3389 CONFIG_HEADERS = $CONFIG_HEADERS
3390 CONFIG_LINKS = $CONFIG_LINKS
3391 CONFIG_COMMANDS = $CONFIG_COMMANDS
3392 > $ac_cs_invocation
3393on `(hostname || uname -n) 2>/dev/null | sed 1q`
3394
10891472 3395_ACEOF
b457acc7 3396EOF
f6649e03 3397
b457acc7 3398cat >>$CONFIG_STATUS <<\EOF
10891472 3399for ac_config_target in $ac_config_targets
3400do
3401 case "$ac_config_target" in
3402 # Handling of arguments.
3403 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3404 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
6be205c9 3405 *) { { echo "$as_me:3405: error: invalid argument: $ac_config_target" >&5
10891472 3406echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3407 { (exit 1); exit 1; }; };;
f6649e03 3408 esac
10891472 3409done
3410
3411# If the user did not use the arguments to specify the items to instantiate,
3412# then the envvar interface is used. Set only those that are not.
3413# We use the long form for the default assignment because of an extremely
3414# bizarre bug on SunOS 4.1.3.
3415if $ac_need_defaults; then
3416 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3417 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3418fi
3419
3420# Create a temporary directory, and hook for its removal unless debugging.
3421$debug ||
3422{
3423 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3424 trap '{ (exit 1); exit 1; }' 1 2 13 15
3425}
3426
3427# Create a (secure) tmp directory for tmp files.
3428: ${TMPDIR=/tmp}
3429{
3430 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3431 test -n "$tmp" && test -d "$tmp"
3432} ||
3433{
3434 tmp=$TMPDIR/cs$$-$RANDOM
3435 (umask 077 && mkdir $tmp)
3436} ||
3437{
3438 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3439 { (exit 1); exit 1; }
3440}
3441
b457acc7 3442EOF
10891472 3443
b457acc7 3444cat >>$CONFIG_STATUS <<EOF
10891472 3445
3446#
3447# CONFIG_FILES section.
3448#
3449
3450# No need to generate the scripts if there are no CONFIG_FILES.
3451# This happens for instance when ./config.status config.h
3452if test -n "\$CONFIG_FILES"; then
3453 # Protect against being on the right side of a sed subst in config.status.
3454 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3455 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3456s,@SHELL@,$SHELL,;t t
10891472 3457s,@exec_prefix@,$exec_prefix,;t t
3458s,@prefix@,$prefix,;t t
3459s,@program_transform_name@,$program_transform_name,;t t
3460s,@bindir@,$bindir,;t t
3461s,@sbindir@,$sbindir,;t t
3462s,@libexecdir@,$libexecdir,;t t
3463s,@datadir@,$datadir,;t t
3464s,@sysconfdir@,$sysconfdir,;t t
3465s,@sharedstatedir@,$sharedstatedir,;t t
3466s,@localstatedir@,$localstatedir,;t t
3467s,@libdir@,$libdir,;t t
3468s,@includedir@,$includedir,;t t
3469s,@oldincludedir@,$oldincludedir,;t t
3470s,@infodir@,$infodir,;t t
3471s,@mandir@,$mandir,;t t
3472s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3473s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3474s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3475s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3476s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3477s,@build_alias@,$build_alias,;t t
3478s,@host_alias@,$host_alias,;t t
3479s,@target_alias@,$target_alias,;t t
10891472 3480s,@ECHO_C@,$ECHO_C,;t t
3481s,@ECHO_N@,$ECHO_N,;t t
3482s,@ECHO_T@,$ECHO_T,;t t
b457acc7 3483s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3484s,@DEFS@,$DEFS,;t t
10891472 3485s,@LIBS@,$LIBS,;t t
3486s,@CC@,$CC,;t t
3487s,@CFLAGS@,$CFLAGS,;t t
3488s,@LDFLAGS@,$LDFLAGS,;t t
3489s,@CPPFLAGS@,$CPPFLAGS,;t t
3490s,@ac_ct_CC@,$ac_ct_CC,;t t
3491s,@EXEEXT@,$EXEEXT,;t t
3492s,@OBJEXT@,$OBJEXT,;t t
3493s,@CPP@,$CPP,;t t
6be205c9 3494s,@LSOCKET@,$LSOCKET,;t t
3495s,@LNSL@,$LNSL,;t t
10891472 3496CEOF
3497
b457acc7 3498EOF
10891472 3499
b457acc7 3500 cat >>$CONFIG_STATUS <<\EOF
10891472 3501 # Split the substitutions into bite-sized pieces for seds with
3502 # small command number limits, like on Digital OSF/1 and HP-UX.
3503 ac_max_sed_lines=48
3504 ac_sed_frag=1 # Number of current file.
3505 ac_beg=1 # First line for current file.
3506 ac_end=$ac_max_sed_lines # Line after last line for current file.
3507 ac_more_lines=:
3508 ac_sed_cmds=
3509 while $ac_more_lines; do
3510 if test $ac_beg -gt 1; then
3511 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3512 else
3513 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3514 fi
3515 if test ! -s $tmp/subs.frag; then
3516 ac_more_lines=false
3517 else
3518 # The purpose of the label and of the branching condition is to
3519 # speed up the sed processing (if there are no `@' at all, there
3520 # is no need to browse any of the substitutions).
3521 # These are the two extra sed commands mentioned above.
3522 (echo ':t
3523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3524 if test -z "$ac_sed_cmds"; then
3525 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3526 else
3527 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3528 fi
3529 ac_sed_frag=`expr $ac_sed_frag + 1`
3530 ac_beg=$ac_end
3531 ac_end=`expr $ac_end + $ac_max_sed_lines`
3532 fi
3533 done
3534 if test -z "$ac_sed_cmds"; then
3535 ac_sed_cmds=cat
3536 fi
3537fi # test -n "$CONFIG_FILES"
3538
b457acc7 3539EOF
3540cat >>$CONFIG_STATUS <<\EOF
10891472 3541for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3543 case $ac_file in
3544 - | *:- | *:-:* ) # input from stdin
3545 cat >$tmp/stdin
3546 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3548 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3550 * ) ac_file_in=$ac_file.in ;;
3551 esac
3552
3553 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
b457acc7 3554 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10891472 3555 X"$ac_file" : 'X\(//\)[^/]' \| \
3556 X"$ac_file" : 'X\(//\)$' \| \
3557 X"$ac_file" : 'X\(/\)' \| \
3558 . : '\(.\)' 2>/dev/null ||
3559echo X"$ac_file" |
3560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3562 /^X\(\/\/\)$/{ s//\1/; q; }
3563 /^X\(\/\).*/{ s//\1/; q; }
3564 s/.*/./; q'`
b457acc7 3565 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3566 { case "$ac_dir" in
10891472 3567 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3568 *) as_incr_dir=.;;
3569esac
3570as_dummy="$ac_dir"
3571for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3572 case $as_mkdir_dir in
3573 # Skip DOS drivespec
3574 ?:) as_incr_dir=$as_mkdir_dir ;;
3575 *)
3576 as_incr_dir=$as_incr_dir/$as_mkdir_dir
b457acc7 3577 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
10891472 3578 ;;
3579 esac
3580done; }
3581
b457acc7 3582 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3583 # A "../" for each directory in $ac_dir_suffix.
3584 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3585 else
3586 ac_dir_suffix= ac_dots=
3587 fi
10891472 3588
b457acc7 3589 case $srcdir in
3590 .) ac_srcdir=.
3591 if test -z "$ac_dots"; then
3592 ac_top_srcdir=.
3593 else
3594 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3595 fi ;;
3596 [\\/]* | ?:[\\/]* )
3597 ac_srcdir=$srcdir$ac_dir_suffix;
3598 ac_top_srcdir=$srcdir ;;
10891472 3599 *) # Relative path.
b457acc7 3600 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3601 ac_top_srcdir=$ac_dots$srcdir ;;
3602 esac
10891472 3603
3604 if test x"$ac_file" != x-; then
6be205c9 3605 { echo "$as_me:3605: creating $ac_file" >&5
10891472 3606echo "$as_me: creating $ac_file" >&6;}
3607 rm -f "$ac_file"
3608 fi
3609 # Let's still pretend it is `configure' which instantiates (i.e., don't
3610 # use $as_me), people would be surprised to read:
b457acc7 3611 # /* config.h. Generated automatically by config.status. */
3612 configure_input="Generated automatically from `echo $ac_file_in |
3613 sed 's,.*/,,'` by configure."
10891472 3614
3615 # First look for the input files in the build tree, otherwise in the
3616 # src tree.
3617 ac_file_inputs=`IFS=:
3618 for f in $ac_file_in; do
3619 case $f in
3620 -) echo $tmp/stdin ;;
3621 [\\/$]*)
3622 # Absolute (can't be DOS-style, as IFS=:)
6be205c9 3623 test -f "$f" || { { echo "$as_me:3623: error: cannot find input file: $f" >&5
10891472 3624echo "$as_me: error: cannot find input file: $f" >&2;}
3625 { (exit 1); exit 1; }; }
3626 echo $f;;
3627 *) # Relative
3628 if test -f "$f"; then
3629 # Build tree
3630 echo $f
3631 elif test -f "$srcdir/$f"; then
3632 # Source tree
3633 echo $srcdir/$f
3634 else
3635 # /dev/null tree
6be205c9 3636 { { echo "$as_me:3636: error: cannot find input file: $f" >&5
10891472 3637echo "$as_me: error: cannot find input file: $f" >&2;}
3638 { (exit 1); exit 1; }; }
3639 fi;;
3640 esac
3641 done` || { (exit 1); exit 1; }
b457acc7 3642EOF
3643cat >>$CONFIG_STATUS <<EOF
10891472 3644 sed "$ac_vpsub
3645$extrasub
b457acc7 3646EOF
3647cat >>$CONFIG_STATUS <<\EOF
10891472 3648:t
3649/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3650s,@configure_input@,$configure_input,;t t
3651s,@srcdir@,$ac_srcdir,;t t
10891472 3652s,@top_srcdir@,$ac_top_srcdir,;t t
10891472 3653" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3654 rm -f $tmp/stdin
3655 if test x"$ac_file" != x-; then
3656 mv $tmp/out $ac_file
3657 else
3658 cat $tmp/out
3659 rm -f $tmp/out
3660 fi
3661
3662done
b457acc7 3663EOF
3664cat >>$CONFIG_STATUS <<\EOF
f6649e03 3665
10891472 3666#
3667# CONFIG_HEADER section.
3668#
f6649e03 3669
3670# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3671# NAME is the cpp macro being defined and VALUE is the value it is being given.
3672#
3673# ac_d sets the value in "#define NAME VALUE" lines.
10891472 3674ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3675ac_dB='[ ].*$,\1#\2'
3676ac_dC=' '
3677ac_dD=',;t'
3678# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3679ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3680ac_uB='$,\1#\2define\3'
f6649e03 3681ac_uC=' '
10891472 3682ac_uD=',;t'
3683
3684for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
f6649e03 3685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10891472 3686 case $ac_file in
3687 - | *:- | *:-:* ) # input from stdin
3688 cat >$tmp/stdin
3689 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3691 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3693 * ) ac_file_in=$ac_file.in ;;
f6649e03 3694 esac
3695
6be205c9 3696 test x"$ac_file" != x- && { echo "$as_me:3696: creating $ac_file" >&5
10891472 3697echo "$as_me: creating $ac_file" >&6;}
3698
3699 # First look for the input files in the build tree, otherwise in the
3700 # src tree.
3701 ac_file_inputs=`IFS=:
3702 for f in $ac_file_in; do
3703 case $f in
3704 -) echo $tmp/stdin ;;
3705 [\\/$]*)
3706 # Absolute (can't be DOS-style, as IFS=:)
6be205c9 3707 test -f "$f" || { { echo "$as_me:3707: error: cannot find input file: $f" >&5
10891472 3708echo "$as_me: error: cannot find input file: $f" >&2;}
3709 { (exit 1); exit 1; }; }
3710 echo $f;;
3711 *) # Relative
3712 if test -f "$f"; then
3713 # Build tree
3714 echo $f
3715 elif test -f "$srcdir/$f"; then
3716 # Source tree
3717 echo $srcdir/$f
3718 else
3719 # /dev/null tree
6be205c9 3720 { { echo "$as_me:3720: error: cannot find input file: $f" >&5
10891472 3721echo "$as_me: error: cannot find input file: $f" >&2;}
3722 { (exit 1); exit 1; }; }
3723 fi;;
3724 esac
3725 done` || { (exit 1); exit 1; }
3726 # Remove the trailing spaces.
3727 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3728
b457acc7 3729EOF
10891472 3730
3731# Transform confdefs.h into two sed scripts, `conftest.defines' and
3732# `conftest.undefs', that substitutes the proper values into
3733# config.h.in to produce config.h. The first handles `#define'
3734# templates, and the second `#undef' templates.
3735# And first: Protect against being on the right side of a sed subst in
3736# config.status. Protect against being in an unquoted here document
3737# in config.status.
3738rm -f conftest.defines conftest.undefs
3739# Using a here document instead of a string reduces the quoting nightmare.
3740# Putting comments in sed scripts is not portable.
3741#
3742# `end' is used to avoid that the second main sed command (meant for
3743# 0-ary CPP macros) applies to n-ary macro definitions.
3744# See the Autoconf documentation for `clear'.
b457acc7 3745cat >confdef2sed.sed <<\EOF
10891472 3746s/[\\&,]/\\&/g
3747s,[\\$`],\\&,g
3748t clear
3749: clear
b457acc7 3750s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
10891472 3751t end
3752s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3753: end
b457acc7 3754EOF
10891472 3755# If some macros were called several times there might be several times
3756# the same #defines, which is useless. Nevertheless, we may not want to
3757# sort them, since we want the *last* AC-DEFINE to be honored.
3758uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3759sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3760rm -f confdef2sed.sed
f6649e03 3761
3762# This sed command replaces #undef with comments. This is necessary, for
3763# example, in the case of _POSIX_SOURCE, which is predefined and required
3764# on some systems where configure will not decide to define it.
b457acc7 3765cat >>conftest.undefs <<\EOF
10891472 3766s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
b457acc7 3767EOF
10891472 3768
3769# Break up conftest.defines because some shells have a limit on the size
3770# of here documents, and old seds have small limits too (100 cmds).
3771echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3772echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3773echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3774echo ' :' >>$CONFIG_STATUS
3775rm -f conftest.tail
3776while grep . conftest.defines >/dev/null
3777do
3778 # Write a limited-size here document to $tmp/defines.sed.
3779 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3780 # Speed up: don't consider the non `#define' lines.
3781 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3782 # Work around the forget-to-reset-the-flag bug.
3783 echo 't clr' >>$CONFIG_STATUS
3784 echo ': clr' >>$CONFIG_STATUS
3785 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3786 echo 'CEOF
3787 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3788 rm -f $tmp/in
3789 mv $tmp/out $tmp/in
3790' >>$CONFIG_STATUS
3791 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3792 rm -f conftest.defines
3793 mv conftest.tail conftest.defines
3794done
3795rm -f conftest.defines
3796echo ' fi # egrep' >>$CONFIG_STATUS
3797echo >>$CONFIG_STATUS
f6649e03 3798
10891472 3799# Break up conftest.undefs because some shells have a limit on the size
3800# of here documents, and old seds have small limits too (100 cmds).
3801echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
f6649e03 3802rm -f conftest.tail
10891472 3803while grep . conftest.undefs >/dev/null
f6649e03 3804do
10891472 3805 # Write a limited-size here document to $tmp/undefs.sed.
3806 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3807 # Speed up: don't consider the non `#undef'
3808 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3809 # Work around the forget-to-reset-the-flag bug.
3810 echo 't clr' >>$CONFIG_STATUS
3811 echo ': clr' >>$CONFIG_STATUS
3812 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
f6649e03 3813 echo 'CEOF
10891472 3814 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3815 rm -f $tmp/in
3816 mv $tmp/out $tmp/in
3817' >>$CONFIG_STATUS
3818 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3819 rm -f conftest.undefs
3820 mv conftest.tail conftest.undefs
f6649e03 3821done
10891472 3822rm -f conftest.undefs
3823
b457acc7 3824cat >>$CONFIG_STATUS <<\EOF
10891472 3825 # Let's still pretend it is `configure' which instantiates (i.e., don't
3826 # use $as_me), people would be surprised to read:
b457acc7 3827 # /* config.h. Generated automatically by config.status. */
10891472 3828 if test x"$ac_file" = x-; then
b457acc7 3829 echo "/* Generated automatically by configure. */" >$tmp/config.h
f6649e03 3830 else
b457acc7 3831 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
f6649e03 3832 fi
10891472 3833 cat $tmp/in >>$tmp/config.h
3834 rm -f $tmp/in
3835 if test x"$ac_file" != x-; then
3836 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6be205c9 3837 { echo "$as_me:3837: $ac_file is unchanged" >&5
10891472 3838echo "$as_me: $ac_file is unchanged" >&6;}
3839 else
b457acc7 3840 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10891472 3841 X"$ac_file" : 'X\(//\)[^/]' \| \
3842 X"$ac_file" : 'X\(//\)$' \| \
3843 X"$ac_file" : 'X\(/\)' \| \
3844 . : '\(.\)' 2>/dev/null ||
3845echo X"$ac_file" |
3846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3848 /^X\(\/\/\)$/{ s//\1/; q; }
3849 /^X\(\/\).*/{ s//\1/; q; }
3850 s/.*/./; q'`
b457acc7 3851 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3852 { case "$ac_dir" in
10891472 3853 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3854 *) as_incr_dir=.;;
3855esac
3856as_dummy="$ac_dir"
3857for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3858 case $as_mkdir_dir in
3859 # Skip DOS drivespec
3860 ?:) as_incr_dir=$as_mkdir_dir ;;
3861 *)
3862 as_incr_dir=$as_incr_dir/$as_mkdir_dir
b457acc7 3863 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
10891472 3864 ;;
3865 esac
3866done; }
f6649e03 3867
b457acc7 3868 fi
10891472 3869 rm -f $ac_file
3870 mv $tmp/config.h $ac_file
3871 fi
3872 else
3873 cat $tmp/config.h
3874 rm -f $tmp/config.h
3875 fi
3876done
b457acc7 3877EOF
f6649e03 3878
b457acc7 3879cat >>$CONFIG_STATUS <<\EOF
f6649e03 3880
10891472 3881{ (exit 0); exit 0; }
b457acc7 3882EOF
f6649e03 3883chmod +x $CONFIG_STATUS
10891472 3884ac_clean_files=$ac_clean_files_save
3885
3886# configure is writing to config.log, and then calls config.status.
3887# config.status does its own redirection, appending to config.log.
3888# Unfortunately, on DOS this fails, as config.log is still kept open
3889# by configure, so config.status won't be able to write to it; its
3890# output is simply discarded. So we exec the FD to /dev/null,
3891# effectively closing config.log, so it can be properly (re)opened and
3892# appended to by config.status. When coming back to configure, we
3893# need to make the FD available again.
3894if test "$no_create" != yes; then
3895 ac_cs_success=:
3896 exec 5>/dev/null
3897 $SHELL $CONFIG_STATUS || ac_cs_success=false
3898 exec 5>>config.log
3899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3900 # would make configure fail if this is the last instruction.
3901 $ac_cs_success || { (exit 1); exit 1; }
3902fi
580e6f7d 3903
99f4c865 3904echo "##############################################################################"
3905echo "# Everything is now configured, but you can find some more (infrequently #"
3906echo "# changed) options in options.h. To compile BOPM now, just type make. It #"
3907echo "# requires GNU Make, which may be installed as gmake on your system. #"
3908echo "# #"
3909echo "# If possible, PLEASE CONTRIBUTE TO OUR DNSBL BY REPORTING YOUR PROXIES!! #"
3910echo "# #"
3911echo "# o What is DNSBL? #"
3912echo "# It's the database of open proxies we provide and your BOPM checks #"
3913echo "# against BEFORE bothering to scan the client, therefore killing KNOWN #"
3914echo "# proxies faster and more efficiently. #"
3915echo "# #"
3916echo "# o Why should my network contribute? #"
3917echo "# Because the more that do, the more proxies we know about and the #"
3918echo "# better the service becomes for all BOPM users including YOU! People #"
3919echo "# are also using our DNSBL to block spam (spammers use open proxies #"
3920echo "# too!) so you'd be helping the whole Internet. #"
3921echo "# #"
3922echo "# o Sounds complicated, what do you need? #"
3923echo "# BOPM is already designed to report the proxies you find, but it is #"
3924echo "# turned off by default. To enable it all you have to do is: #"
3925echo "# - Set DNSBL_FROM to a unique email address that we can contact you #"
3926echo "# at if there is ever any problem with your reports. #"
3927echo "# - Email us now at opm@lists.blitzed.org to tell us what you have #"
3928echo "# set your DNSBL_FROM to. #"
3929echo "# - Set DNSBL_TO to proxy-report@blitzed.org. #"
3930echo "# - Set SENDMAIL to contain the path to your sendmail binary (even #"
3931echo "# if you don't use sendmail you will have a binary named sendmail in #"
3932echo "# /usr/sbin or /usr/lib. #"
3933echo "# #"
3934echo "# For more info about the people who already report their proxies, please #"
3935echo "# see http://www.blitzed.org/bopm/ - Thank you! #"
3936echo "##############################################################################"